Difference between revisions of "MediaWiki:Common.js"

From Data JW United
Jump to navigation Jump to search
Line 1: Line 1:
/******/ (function(modules) { // webpackBootstrap
+
!
/******/ // The module cache
 
/******/ var installedModules = {};
 
/******/
 
/******/ // The require function
 
/******/ function __webpack_require__(moduleId) {
 
/******/
 
/******/ // Check if module is in cache
 
/******/ if(installedModules[moduleId]) {
 
/******/ return installedModules[moduleId].exports;
 
/******/ }
 
/******/ // Create a new module (and put it into the cache)
 
/******/ var module = installedModules[moduleId] = {
 
/******/ i: moduleId,
 
/******/ l: false,
 
/******/ exports: {}
 
/******/ };
 
/******/
 
/******/ // Execute the module function
 
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
 
/******/
 
/******/ // Flag the module as loaded
 
/******/ module.l = true;
 
/******/
 
/******/ // Return the exports of the module
 
/******/ return module.exports;
 
/******/ }
 
/******/
 
/******/
 
/******/ // expose the modules object (__webpack_modules__)
 
/******/ __webpack_require__.m = modules;
 
/******/
 
/******/ // expose the module cache
 
/******/ __webpack_require__.c = installedModules;
 
/******/
 
/******/ // define getter function for harmony exports
 
/******/ __webpack_require__.d = function(exports, name, getter) {
 
/******/ if(!__webpack_require__.o(exports, name)) {
 
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
 
/******/ }
 
/******/ };
 
/******/
 
/******/ // define __esModule on exports
 
/******/ __webpack_require__.r = function(exports) {
 
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
 
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
 
/******/ }
 
/******/ Object.defineProperty(exports, '__esModule', { value: true });
 
/******/ };
 
/******/
 
/******/ // create a fake namespace object
 
/******/ // mode & 1: value is a module id, require it
 
/******/ // mode & 2: merge all properties of value into the ns
 
/******/ // mode & 4: return value when already ns object
 
/******/ // mode & 8|1: behave like require
 
/******/ __webpack_require__.t = function(value, mode) {
 
/******/ if(mode & 1) value = __webpack_require__(value);
 
/******/ if(mode & 8) return value;
 
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
 
/******/ var ns = Object.create(null);
 
/******/ __webpack_require__.r(ns);
 
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
 
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
 
/******/ return ns;
 
/******/ };
 
/******/
 
/******/ // getDefaultExport function for compatibility with non-harmony modules
 
/******/ __webpack_require__.n = function(module) {
 
/******/ var getter = module && module.__esModule ?
 
/******/ function getDefault() { return module['default']; } :
 
/******/ function getModuleExports() { return module; };
 
/******/ __webpack_require__.d(getter, 'a', getter);
 
/******/ return getter;
 
/******/ };
 
/******/
 
/******/ // Object.prototype.hasOwnProperty.call
 
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
 
/******/
 
/******/ // __webpack_public_path__
 
/******/ __webpack_require__.p = "";
 
/******/
 
/******/
 
/******/ // Load entry module and return exports
 
/******/ return __webpack_require__(__webpack_require__.s = 0);
 
/******/ })
 
/************************************************************************/
 
/******/ ({
 
 
 
/***/ "./app.js":
 
/*!****************!*\
 
  !*** ./app.js ***!
 
  \****************/
 
/*! no static exports found */
 
/***/ (function(module, exports) {
 
 
 
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
 
 
 
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
 
 
 
// =====================JAVASCRIPT AREA=====================
 
// configuration
 
var colorForSpecialElements = '#933221'; // can be one of: <ro> <hu> <en>
 
 
 
var configuredFor = 'ro';
 
var roNWTURL = 'https://172.26.13.175:3001/ro/';
 
var huNWTURL = 'https://172.26.13.175:3001/hu/';
 
var enNWTURL = 'https://172.26.13.175:3001/en/'; // DOM side effects
 
 
 
var verses = Array.prototype.slice.call(document.getElementsByClassName("bible-verse"), 0);
 
verses.forEach(function (verse) {
 
  verse.addEventListener("mouseover", function () {
 
    verse.style.cursor = "pointer";
 
  });
 
});
 
verses.forEach(function (verse) {
 
  verse.addEventListener("click", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
 
    var newLis;
 
    return regeneratorRuntime.wrap(function _callee$(_context) {
 
      while (1) {
 
        switch (_context.prev = _context.next) {
 
          case 0:
 
            toggleState(verse);
 
 
 
            if (!areVersesAlreadyFetched(verse)) {
 
              _context.next = 5;
 
              break;
 
            }
 
 
 
            return _context.abrupt("return");
 
 
 
          case 5:
 
            verse.setAttribute('loaded', true);
 
            _context.next = 8;
 
            return createDinamicLis(verse);
 
 
 
          case 8:
 
            newLis = _context.sent;
 
            clearAllChildrenAndAddElementsToParrent(verse.children[2].children[1], newLis);
 
 
 
          case 10:
 
          case "end":
 
            return _context.stop();
 
        }
 
      }
 
    }, _callee);
 
  })));
 
});
 
 
 
function clearAllChildrenAndAddElementsToParrent(parrent, children) {
 
  parrent.innerHTML = '';
 
  children.forEach(function (child) {
 
    return parrent.appendChild(child);
 
  });
 
}
 
 
 
function areVersesAlreadyFetched(verse) {
 
  return verse.getAttribute('loaded') == 'true';
 
}
 
 
 
function createDinamicLis(_x) {
 
  return _createDinamicLis.apply(this, arguments);
 
}
 
 
 
function _createDinamicLis() {
 
  _createDinamicLis = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(verse) {
 
    var parsedVerse, ulElement;
 
    return regeneratorRuntime.wrap(function _callee2$(_context2) {
 
      while (1) {
 
        switch (_context2.prev = _context2.next) {
 
          case 0:
 
            parsedVerse = verse.children[0].innerText; //let parsedVerse = verse.getAttribute("verse")
 
 
 
            ulElement = verse.children[2].children[1];
 
            _context2.next = 4;
 
            return fetchNWTVerses(parseVerseAttribute(parsedVerse));
 
 
 
          case 4:
 
            fetchedVerses = _context2.sent;
 
            return _context2.abrupt("return", createLiElements(fetchedVerses, ulElement));
 
 
 
          case 6:
 
          case "end":
 
            return _context2.stop();
 
        }
 
      }
 
    }, _callee2);
 
  }));
 
  return _createDinamicLis.apply(this, arguments);
 
}
 
 
 
function createLiElements(fetchedVerses, ul) {
 
  var result = [];
 
  fetchedVerses.forEach(function (versesGroup) {
 
    var li = document.createElement('li');
 
    li.style.color = colorForSpecialElements;
 
    li.style.fontSize = '1.5em';
 
    li.style.textTransform = 'capitalize';
 
    li.style.paddingBottom = '0.3em';
 
    li.innerHTML = versesGroup.book + ' ' + versesGroup.chapter;
 
    result.push(li);
 
    versesGroup.verseElements.forEach(function (verse) {
 
      var li = document.createElement('li');
 
      var hr = document.createElement('hr');
 
      hr.style.borderStyle = 'ridge';
 
      var liContent = "";
 
      verse.forEach(function (el) {
 
        liContent = liContent + el + '<br>';
 
      });
 
      li.innerHTML = liContent;
 
      result.push(li);
 
      result.push(hr);
 
    });
 
  });
 
  return result;
 
}
 
 
 
function toggleState(verse) {
 
  var verseDisplay = verse.getElementsByClassName("translations-container")[0].style.display;
 
  hideAllVerses(verses);
 
  verse.getElementsByClassName("translations-container")[0].style.display = renderState(verseDisplay, "block");
 
}
 
 
 
function hideAllVerses(elements) {
 
  elements.forEach(function (element) {
 
    element.getElementsByClassName("translations-container")[0].style.display = "none";
 
  });
 
}
 
 
 
function renderState(currentState, toggledState) {
 
  if (currentState === "none") {
 
    return toggledState;
 
  }
 
 
 
  return "none";
 
}
 
 
 
function getVersesFromMainBlock(mainBlock) {
 
  var result = [];
 
  changeNumberOfTheFirstVerseWithNumberOne(mainBlock);
 
  Array.from(mainBlock.children).forEach(function (verse) {
 
    var verseContent = [];
 
 
 
    if (verse.classList.contains('verse')) {
 
      Array.from(verse.children).forEach(function (child) {
 
        if (child.innerText != '') {
 
          verseContent.push(stripSymbols(['+', '*'], child.innerText));
 
        }
 
      });
 
      changeColorOfVerseNumber(verseContent);
 
      result.push(verseContent);
 
    }
 
  });
 
  return result;
 
}
 
 
 
function changeColorOfVerseNumber(verseContent) {
 
  var re = new RegExp(/^\d+|\d+\b|\d+(?=\w)/g); //starts with digit, one or more
 
 
 
  var m = re.exec(verseContent[0]);
 
 
 
  if (m != null) {
 
    verseContent[0] = verseContent[0].replace(m[0], '<strong style="color: ' + colorForSpecialElements + '"' + '>' + m[0] + '</strong>');
 
  }
 
}
 
 
 
function changeNumberOfTheFirstVerseWithNumberOne(mainBlock) {
 
  var re = new RegExp(/^\d+|\d+\b|\d+(?=\w)/g); //starts with digit, one or more
 
 
 
  var m = re.exec(mainBlock.getElementsByClassName('verse')[0].children[0].innerText);
 
  mainBlock.getElementsByClassName('verse')[0].children[0].innerText = '&nbsp' + mainBlock.getElementsByClassName('verse')[0].children[0].innerText.replace(m[0], 1);
 
}
 
 
 
function getSpecificVerses(versesList, arrayOfSpecificVerses) {
 
  var result = [];
 
  arrayOfSpecificVerses.forEach(function (verseNumber) {
 
    result.push(versesList[verseNumber - 1]);
 
  });
 
  return result;
 
} // Bussiness logic
 
 
 
 
 
function parseVerseAttribute(verseString) {
 
  // 21:1;22:2
 
  var arrayOfGroupsDelimiter = ';'; // 21:1-7,9
 
 
 
  var versesGroupsDelimiter = ',';
 
  var book = verseString.replace(/ .*/, '');
 
  var stringWithoutBook = verseString.replace(book, '');
 
  var result = {
 
    book: book,
 
    groups: processChaptersAndVerses(stringWithoutBook)
 
  };
 
  return result;
 
 
 
  function processChaptersAndVerses(stringWithoutBook) {
 
    var groups = stringWithoutBook.split(arrayOfGroupsDelimiter);
 
    var result = [];
 
    groups.forEach(function (group) {
 
      result.push(processGroup(group));
 
    });
 
    return result;
 
  }
 
 
 
  if (verseString.includes(";")) {
 
    var _book = verseString.replace(/ .*/, '');
 
 
 
    var _stringWithoutBook = verseString.replace(_book, '');
 
 
 
    var groups = _stringWithoutBook.split(';');
 
 
 
    var parsedGroups = [];
 
    groups.forEach(function (group) {
 
      parsedGroups.push(createObjectForStringGroup(group));
 
    });
 
  }
 
 
 
  function processGroup(group) {
 
    var chapter = group.split(':')[0];
 
    var verses = group.split(':')[1];
 
    return {
 
      chapter: parseInt(chapter),
 
      verses: processVersesGroups(verses)
 
    };
 
  }
 
 
 
  function processVersesGroups(verses) {
 
    var versesGroups = verses.split(',');
 
    var result = [];
 
    versesGroups.forEach(function (verseGroup) {
 
      if (isRangeVerseGroup(verseGroup)) {
 
        Array.prototype.push.apply(result, processVerseGroup(verseGroup));
 
      } else {
 
        result.push(processVerseGroup(verseGroup));
 
      }
 
    });
 
    return result;
 
  }
 
 
 
  function processVerseGroup(group) {
 
    if (isSimpleVerseGroup(group)) {
 
      return Number(group);
 
    }
 
 
 
    if (isMultipleVerseGroup(group)) {
 
      console.log("Range verse group: " + group);
 
    }
 
 
 
    if (isRangeVerseGroup(group)) {
 
      var parsed = group.split('-');
 
      var _result = [];
 
 
 
      for (var i = Number(parsed[0]); i <= Number(parsed[1]); i++) {
 
        _result.push(Number(i));
 
      }
 
 
 
      return _result;
 
    }
 
  }
 
 
 
  function createObjectForStringGroup(group) {
 
    var chapter = Number(group.split(":")[0]);
 
    var verses = group.split(":")[1];
 
    var parsedVerses = parseVerses(verses);
 
    console.log('');
 
  }
 
}
 
 
 
function fetchNWTVerses(_x2) {
 
  return _fetchNWTVerses.apply(this, arguments);
 
}
 
 
 
function _fetchNWTVerses() {
 
  _fetchNWTVerses = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(verses) {
 
    var book;
 
    return regeneratorRuntime.wrap(function _callee3$(_context3) {
 
      while (1) {
 
        switch (_context3.prev = _context3.next) {
 
          case 0:
 
            // let roBaseURL = 'https://www.jw.org/ro/biblioteca/biblia/nwt/carti/'
 
            if (configuredFor === 'ro') {
 
              URL = roNWTURL;
 
            }
 
 
 
            if (configuredFor === 'hu') {
 
              URL = huNWTURL;
 
            }
 
 
 
            if (configuredFor === 'en') {
 
              URL = enNWTURL;
 
            }
 
 
 
            book = verses.book;
 
            return _context3.abrupt("return", new Promise(function (resolve, reject) {
 
              var result = [];
 
 
 
              var _loop = function _loop(i) {
 
                var url = URL + book + "/" + verses.groups[i].chapter;
 
                fetch(url).then(function (response) {
 
                  return response.text();
 
                }).then(function (data) {
 
                  var parser = new DOMParser();
 
                  var htmlDoc = parser.parseFromString(data, 'text/html');
 
                  return htmlDoc;
 
                }).then(function (parser) {
 
                  var mainBlock = parser.getElementById('bibleText');
 
 
 
                  if (verses.groups.length - 1 == i) {
 
                    result.push({
 
                      book: clearDashSimbolFromInputString(book),
 
                      chapter: verses.groups[i].chapter,
 
                      verseElements: getSpecificVerses(getVersesFromMainBlock(mainBlock), verses.groups[i].verses)
 
                    });
 
                    resolve(result);
 
                  } else {
 
                    result.push({
 
                      book: clearDashSimbolFromInputString(book),
 
                      chapter: verses.groups[i].chapter,
 
                      verseElements: getSpecificVerses(getVersesFromMainBlock(mainBlock), verses.groups[i].verses)
 
                    });
 
                  }
 
                })["catch"](function (error) {
 
                  console.log(error);
 
                  reject();
 
                });
 
              };
 
 
 
              for (var i = 0; i < verses.groups.length; i++) {
 
                _loop(i);
 
              }
 
            }));
 
 
 
          case 5:
 
          case "end":
 
            return _context3.stop();
 
        }
 
      }
 
    }, _callee3);
 
  }));
 
  return _fetchNWTVerses.apply(this, arguments);
 
}
 
 
 
function clearDashSimbolFromInputString(string) {
 
  return string.replaceAll('-', ' ');
 
}
 
 
 
function stripSymbols(symbolsToBeRemoved, verseElement) {
 
  symbolsToBeRemoved.forEach(function (symbol) {
 
    verseElement = verseElement.replaceAll(symbol, '');
 
  });
 
  return verseElement;
 
}
 
 
 
function isSimpleVerseGroup(group) {
 
  if (Number(group)) {
 
    return true;
 
  }
 
 
 
  return false;
 
}
 
 
 
function isMultipleVerseGroup(group) {
 
  if (group.includes(',')) {
 
    return true;
 
  }
 
 
 
  return false;
 
}
 
 
 
function isRangeVerseGroup(group) {
 
  if (group.includes('-')) {
 
    return true;
 
  }
 
 
 
  return false;
 
} //=====================TESTING AREA=====================
 
 
 
 
 
var tempTest = [];
 
var nwtParserTests = [givenMainBlock_ShouldGetVerseContent, givenMainBlockOfVersesWithArrayOfNeededVerses_SouldReturnOnlyTheNeededVerses];
 
var tests = [givenElementsAndParrent_ShouldAddElementsToParrentAndRemoveExistingLoader, givenLoadedVerses_ShouldReturnTrue, givenVersesNotLoaded_ShouldReturnFalse, givenFetchedVerses_ShouldCreateDOMLiElements, givenNoneStateShouldReturnToggledValue, givenBiblicalElementShouldBeParsedAccordingly, givenSimpleVerseGroupToIsSimpleVerseGroupShouldReturnTrue, givenMultipleVerseGroupToIsSimpleVerseGroupShouldReturnFalse, givenRangeVerseGroupToIsSimpleVerseGroupShouldReturnFalse, givenNonValidVerseGroupToIsSimpleVerseGroupShouldReturnFalse, givenSimpleVerseGroupToIsMultipleVerseGroup_ShouldReturnFalse, givenMultipleVerseGroupToIsMultipleVerseGroup_ShouldReturnTrue, givenSimpleVerseGroupToIsRangeVerseGroup_ShouldReturnFalse, givenMultipleVerseGroupToIsRangeVerseGroup_ShouldReturnFalse, givenRangeVerseGroupToIsRangeVerseGroup_ShouldReturnTrue, givenMainBlock_ShouldGetAllElementsFromAVerseMadeUpByMultipleSpans, givenMainBlock_ShouldRemoveAllBlankElementsFromVerses, givenMainBlock_ShouldStructureElementsThatAreMakingUpVersesIntoIndividualVerse, givenVerseElementWithPlusSimbol_ShouldRemoveThePlusSymbol, givenChapterWithFirstVerseNumberedAsChapterNumber_ShouldChangeTheVerseNumberAsNumberOne, givenBlock_ShouldAddAsVersesOnlyElementsThatContainsTheClassVerse, giveBookTitleWithDashInIt_shouldClearUpTheDashCharacter];
 
runTests(tempTest);
 
runTests(tests);
 
runTests(nwtParserTests);
 
 
 
function runTests(tests) {
 
  tests.forEach(function (test) {
 
    if (test() == true) {
 
      console.log("passed " + test.name);
 
    } else {
 
      console.log("FAILED " + test.name);
 
    }
 
  });
 
}
 
 
 
function giveBookTitleWithDashInIt_shouldClearUpTheDashCharacter() {
 
  var input = '2-cronici';
 
  var expected = '2 cronici';
 
  var result = clearDashSimbolFromInputString(input);
 
 
 
  if (expected === result) {
 
    return true;
 
  }
 
}
 
 
 
function givenBlock_ShouldAddAsVersesOnlyElementsThatContainsTheClassVerse() {
 
  var content = [[' 1 first content'], ['2 second content']];
 
  var mainBlock = createNWTDOMStructureWithVerseMadeUpByTreeSpans();
 
  mainBlock.children[0].children[0].innerText = ['This is just a note'];
 
  mainBlock.children[1].children[0].innerText = content[0];
 
  mainBlock.children[2].children[0].innerText = content[1];
 
  var result = getVersesFromMainBlock(mainBlock);
 
 
 
  if (result.length == 2) {
 
    return true;
 
  }
 
}
 
 
 
function givenChapterWithFirstVerseNumberedAsChapterNumber_ShouldChangeTheVerseNumberAsNumberOne() {
 
  var expected = [['&nbsp<strong style="color: ' + colorForSpecialElements + '"' + '>1</strong> first content'], ['2 second content']];
 
  var mainBlock = createNWTDOMStructureWithTwoElements();
 
  mainBlock.children[0].children[0].innerText = ['54 first content'];
 
  mainBlock.children[1].children[0].innerText = expected[1];
 
  var result = getVersesFromMainBlock(mainBlock);
 
 
 
  if (result[0][0] === expected[0][0] && result[1][1] === expected[1][1]) {
 
    return true;
 
  }
 
}
 
 
 
function givenVerseElementWithPlusSimbol_ShouldRemoveThePlusSymbol() {
 
  var symbolsToBeRemoved = ["+", "*"];
 
  var verseElement = 'This* is a + element +that forms a * verse*';
 
  var expected = 'This is a  element that forms a  verse';
 
  var result = stripSymbols(symbolsToBeRemoved, verseElement);
 
 
 
  if (result === expected) {
 
    return true;
 
  }
 
}
 
 
 
function givenMainBlockOfVersesWithArrayOfNeededVerses_SouldReturnOnlyTheNeededVerses() {
 
  var availableVerses = ['1 first content', '2 second content'];
 
  var result = getSpecificVerses(availableVerses, [1]);
 
 
 
  if (result[0] === availableVerses[0] && result.length === 1) {
 
    return true;
 
  }
 
}
 
 
 
function givenMainBlock_ShouldGetVerseContent() {
 
  var expected = [['&nbsp<strong style="color: ' + colorForSpecialElements + '"' + '>1</strong> first content'], ['&nbsp<strong style="color: ' + colorForSpecialElements + '"' + '>2</strong> second content']];
 
  var mainBlock = createNWTDOMStructureWithTwoElements();
 
  mainBlock.children[0].children[0].innerText = '1 first content';
 
  mainBlock.children[1].children[0].innerText = '2 second content';
 
  var result = getVersesFromMainBlock(mainBlock);
 
 
 
  if (result[0][0] === expected[0][0] && result[1][1] === expected[1][1]) {
 
    return true;
 
  }
 
}
 
 
 
function givenMainBlock_ShouldGetAllElementsFromAVerseMadeUpByMultipleSpans() {
 
  var first = '1 first';
 
  var second = '2 second';
 
  var third = '3 third';
 
  var expected = ['&nbsp<strong style="color: ' + colorForSpecialElements + '"' + '>1</strong> first', second, third];
 
  var mainBlock = createNWTDOMStructureWithVerseMadeUpByMultipleSpans();
 
  mainBlock.children[0].children[0].innerText = first;
 
  mainBlock.children[0].children[1].innerText = second;
 
  mainBlock.children[0].children[2].innerText = third;
 
  var result = getVersesFromMainBlock(mainBlock);
 
 
 
  if (JSON.stringify(result[0]) === JSON.stringify(expected)) {
 
    return true;
 
  }
 
}
 
 
 
function givenMainBlock_ShouldRemoveAllBlankElementsFromVerses() {
 
  var expected = ['1 first content', ''];
 
  var mainBlock = createNWTDOMStructureWithTwoElements();
 
  mainBlock.children[0].children[0].innerText = expected[0];
 
  mainBlock.children[1].children[0].innerText = expected[1];
 
  var result = getVersesFromMainBlock(mainBlock);
 
 
 
  if (result[0].length === 1) {
 
    return true;
 
  }
 
}
 
 
 
function givenMainBlock_ShouldStructureElementsThatAreMakingUpVersesIntoIndividualVerse() {
 
  var expected = ['&nbsp<strong style="color: ' + colorForSpecialElements + '"' + '>1</strong> first', 'second', 'third'];
 
  var mainBlock = createNWTDOMStructureWithVerseMadeUpByMultipleSpans();
 
  mainBlock.children[0].children[0].innerText = '1 first';
 
  mainBlock.children[0].children[1].innerText = expected[1];
 
  mainBlock.children[0].children[2].innerText = expected[2];
 
  var result = getVersesFromMainBlock(mainBlock);
 
 
 
  if (result.length === 1 && JSON.stringify(result[0]) === JSON.stringify(expected)) {
 
    return true;
 
  }
 
}
 
 
 
function createNWTDOMStructureWithVerseMadeUpByTreeSpans() {
 
  var mainBlock = document.createElement('div');
 
  var note = document.createElement('sup');
 
  var verseOne = document.createElement('span');
 
  verseOne.classList.add('verse');
 
  var verseTwo = document.createElement('span');
 
  verseTwo.classList.add('verse');
 
  var firstStyleB = document.createElement('span');
 
  var secondStyleB = document.createElement('span');
 
  var thirdStyleB = document.createElement('span');
 
  note.appendChild(firstStyleB);
 
  verseOne.appendChild(secondStyleB);
 
  verseTwo.appendChild(thirdStyleB);
 
  mainBlock.appendChild(note);
 
  mainBlock.appendChild(verseOne);
 
  mainBlock.appendChild(verseTwo);
 
  return mainBlock;
 
}
 
 
 
function createNWTDOMStructureWithVerseMadeUpByMultipleSpans() {
 
  var mainBlock = document.createElement('div');
 
  var verseOne = document.createElement('span');
 
  verseOne.classList.add('verse');
 
  var verseTwo = document.createElement('span');
 
  verseTwo.classList.add('verse');
 
  var firstStyleB = document.createElement('span');
 
  var secondStyleB = document.createElement('span');
 
  var thirdStyleB = document.createElement('span');
 
  verseOne.appendChild(firstStyleB);
 
  verseOne.appendChild(secondStyleB);
 
  verseOne.appendChild(thirdStyleB);
 
  mainBlock.appendChild(verseOne);
 
  return mainBlock;
 
}
 
 
 
function createNWTDOMStructureWithTwoElements() {
 
  var mainBlock = document.createElement('div');
 
  var verseOne = document.createElement('span');
 
  verseOne.classList.add('verse');
 
  var verseTwo = document.createElement('span');
 
  verseTwo.classList.add('verse');
 
  var firstStyleB = document.createElement('span');
 
  var secondStyleB = document.createElement('span');
 
  verseOne.appendChild(firstStyleB);
 
  verseTwo.appendChild(secondStyleB);
 
  mainBlock.appendChild(verseOne);
 
  mainBlock.appendChild(verseTwo);
 
  return mainBlock;
 
}
 
 
 
function givenNoneStateShouldReturnToggledValue() {
 
  var currentState = "none";
 
  var toggledState = "flex";
 
  var result = renderState(currentState, toggledState);
 
  var assertion = assertConditions([toggledState === result]);
 
  return assertion;
 
}
 
 
 
function givenBiblicalElementShouldBeParsedAccordingly() {
 
  var tests = [{
 
    string: "Isaiah 21:1;22:2;23:1-5,7",
 
    expected: {
 
      book: "Isaiah",
 
      groups: [{
 
        chapter: 21,
 
        verses: [1]
 
      }, {
 
        chapter: 22,
 
        verses: [2]
 
      }, {
 
        chapter: 23,
 
        verses: [1, 2, 3, 4, 5, 7]
 
      }]
 
    }
 
  }, {
 
    string: "Isaiah 21:1",
 
    expected: {
 
      book: "Isaiah",
 
      groups: [{
 
        chapter: 21,
 
        verses: [1]
 
      }]
 
    }
 
  }, {
 
    string: "Isaiah 21:1,5,7",
 
    expected: {
 
      book: "Isaiah",
 
      groups: [{
 
        chapter: 21,
 
        verses: [1, 5, 7]
 
      }]
 
    }
 
  }, {
 
    string: "Isaiah 21:1-7",
 
    expected: {
 
      book: "Isaiah",
 
      groups: [{
 
        chapter: 21,
 
        verses: [1, 2, 3, 4, 5, 6, 7]
 
      }]
 
    }
 
  }, {
 
    string: "Isaiah 54:1,2,5-10",
 
    expected: {
 
      book: "Isaiah",
 
      groups: [{
 
        chapter: 54,
 
        verses: [1, 2, 5, 6, 7, 8, 9, 10]
 
      }]
 
    }
 
  }];
 
 
 
  function processTestCases(tests) {
 
    var testsResults = [];
 
    tests.forEach(function (test) {
 
      testsResults.push(runTest(test));
 
    });
 
    return assertConditions(testsResults);
 
  }
 
 
 
  function runTest(test) {
 
    var result = parseVerseAttribute(test.string);
 
    var equality = JSON.stringify(test.expected) === JSON.stringify(result);
 
 
 
    if (equality === false) {
 
      console.log(test.string + " FAILED");
 
      console.log(JSON.stringify(test.expected) + " Expected");
 
      console.log(JSON.stringify(result) + " Result");
 
    }
 
 
 
    return equality;
 
  }
 
 
 
  return assertConditions([processTestCases(tests)]);
 
}
 
 
 
function givenSimpleVerseGroupToIsSimpleVerseGroupShouldReturnTrue() {
 
  var simpleVerseGroup = "1";
 
  var result = isSimpleVerseGroup(simpleVerseGroup);
 
  return result;
 
}
 
 
 
function givenMultipleVerseGroupToIsSimpleVerseGroupShouldReturnFalse() {
 
  var multipleVerseGroup = "1,2";
 
  var result = isSimpleVerseGroup(multipleVerseGroup);
 
  return !result;
 
}
 
 
 
function givenRangeVerseGroupToIsSimpleVerseGroupShouldReturnFalse() {
 
  var rangeVerseGroup = "1-5";
 
  var result = isSimpleVerseGroup(rangeVerseGroup);
 
  return !result;
 
}
 
 
 
function givenNonValidVerseGroupToIsSimpleVerseGroupShouldReturnFalse() {
 
  var nonValidVerseGroup = "1a";
 
  var result = isSimpleVerseGroup(nonValidVerseGroup);
 
  return !result;
 
}
 
 
 
function givenSimpleVerseGroupToIsMultipleVerseGroup_ShouldReturnFalse() {
 
  var multipleVerseGroup = "1";
 
  var result = isMultipleVerseGroup(multipleVerseGroup);
 
  return !result;
 
}
 
 
 
function givenMultipleVerseGroupToIsMultipleVerseGroup_ShouldReturnTrue() {
 
  var multipleVerseGroup = "1,2,3";
 
  var result = isMultipleVerseGroup(multipleVerseGroup);
 
  return result;
 
}
 
 
 
function givenRangeVerseGroupToIsMultipleVerseGroup_ShouldReturnFalse() {
 
  var group = "1-5";
 
  var result = isMultipleVerseGroup(group);
 
  return !result;
 
}
 
 
 
function givenSimpleVerseGroupToIsRangeVerseGroup_ShouldReturnFalse() {
 
  var group = "1";
 
  var result = isRangeVerseGroup(group);
 
  return !result;
 
}
 
 
 
function givenMultipleVerseGroupToIsRangeVerseGroup_ShouldReturnFalse() {
 
  var group = "1,2,3";
 
  var result = isRangeVerseGroup(group);
 
  return !result;
 
}
 
 
 
function givenRangeVerseGroupToIsRangeVerseGroup_ShouldReturnTrue() {
 
  var group = "1-5";
 
  var result = isRangeVerseGroup(group);
 
  return result;
 
}
 
 
 
function givenFetchedVerses_ShouldCreateDOMLiElements() {
 
  var fetchedVerses = [{
 
    book: 'Genesis',
 
    chapter: 12,
 
    number: 10,
 
    verseElements: [['One', 'Two']]
 
  }, {
 
    book: 'Genesis',
 
    chapter: 13,
 
    number: 20,
 
    verseElements: [['Three', 'Four']]
 
  }];
 
  var result = createLiElements(fetchedVerses, document.createElement('ul'));
 
  var firstLi = createOneLi('li', fetchedVerses[0].book + ' ' + fetchedVerses[0].chapter);
 
  var secondLi = createOneLi('li', fetchedVerses[0].verseElements[0][0] + '<br>' + fetchedVerses[0].verseElements[0][1] + '<br>');
 
  var thirdLi = createOneLi('hr', '');
 
  var forthLi = createOneLi('li', fetchedVerses[1].book + ' ' + fetchedVerses[1].chapter);
 
  var fifthLi = createOneLi('li', fetchedVerses[1].verseElements[0][0] + '<br>' + fetchedVerses[1].verseElements[0][1] + '<br>');
 
  var sixthLi = createOneLi('hr', '');
 
  var expected = [firstLi, secondLi, thirdLi, forthLi, fifthLi, sixthLi];
 
  return isValidResult(result);
 
 
 
  function createOneLi(tagType, innerHTML) {
 
    var result = document.createElement(tagType);
 
    result.innerHTML = innerHTML;
 
    return result;
 
  }
 
 
 
  function isValidResult(result) {
 
    if (isSameLenght(expected, result) && isMatchOfContent(result)) {
 
      return true;
 
    }
 
 
 
    return false;
 
 
 
    function isSameLenght(firstArray, secondArray) {
 
      if (firstArray.lenght === secondArray.lenght) {
 
        return true;
 
      }
 
    }
 
 
 
    function isMatchOfContent(result) {
 
      for (var i = 0; i < result.length; i++) {
 
        if (!areNodesMatching(i)) {
 
          return false;
 
        }
 
      }
 
 
 
      return true;
 
 
 
      function areNodesMatching(i) {
 
        return result[i].nodeName == expected[i].nodeName && result[i].innerHTML == expected[i].innerHTML;
 
      }
 
    }
 
  }
 
}
 
 
 
function givenLoadedVerses_ShouldReturnTrue() {
 
  var verse = document.createElement('div');
 
  verse.setAttribute('loaded', true);
 
  return areVersesAlreadyFetched(verse);
 
}
 
 
 
function givenVersesNotLoaded_ShouldReturnFalse() {
 
  var verse = document.createElement('div');
 
 
 
  if (!areVersesAlreadyFetched(verse)) {
 
    return true;
 
  } else {
 
    return false;
 
  }
 
}
 
 
 
function givenElementsAndParrent_ShouldAddElementsToParrentAndRemoveExistingLoader() {
 
  var parrent = document.createElement('ul');
 
  var loader = document.createElement('li');
 
  parrent.appendChild(loader);
 
  var children = [document.createElement('li'), document.createElement('li')];
 
  clearAllChildrenAndAddElementsToParrent(parrent, children);
 
 
 
  if (parrent.children.length === 2) {
 
    return true;
 
  }
 
}
 
 
 
function isExpectedEqualWithResult(object) {
 
  JSON.stringify(object.expected) === JSON.stringify(object.result);
 
}
 
 
 
function assertConditions(arrayOfConditions) {
 
  for (var i = 0; i < arrayOfConditions.length; i++) {
 
    if (arrayOfConditions[i] === false) {
 
      return false;
 
    }
 
 
 
    return true;
 
  }
 
}
 
 
 
/***/ }),
 
 
 
/***/ "./node_modules/@babel/polyfill/lib/index.js":
 
/*!***************************************************!*\
 
  !*** ./node_modules/@babel/polyfill/lib/index.js ***!
 
  \***************************************************/
 
/*! no static exports found */
 
/***/ (function(module, exports, __webpack_require__) {
 
 
 
"use strict";
 
 
 
 
 
__webpack_require__(/*! ./noConflict */ "./node_modules/@babel/polyfill/lib/noConflict.js");
 
 
 
var _global = _interopRequireDefault(__webpack_require__(/*! core-js/library/fn/global */ "./node_modules/@babel/polyfill/node_modules/core-js/library/fn/global.js"));
 
 
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
 
 
 
if (_global["default"]._babelPolyfill && typeof console !== "undefined" && console.warn) {
 
  console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended " + "and may have consequences if different versions of the polyfills are applied sequentially. " + "If you do need to load the polyfill more than once, use @babel/polyfill/noConflict " + "instead to bypass the warning.");
 
}
 
 
 
_global["default"]._babelPolyfill = true;
 
 
 
/***/ }),
 
 
 
/***/ "./node_modules/@babel/polyfill/lib/noConflict.js":
 
/*!********************************************************!*\
 
  !*** ./node_modules/@babel/polyfill/lib/noConflict.js ***!
 
  \********************************************************/
 
/*! no static exports found */
 
/***/ (function(module, exports, __webpack_require__) {
 
 
 
"use strict";
 
 
 
 
 
__webpack_require__(/*! core-js/es6 */ "./node_modules/@babel/polyfill/node_modules/core-js/es6/index.js");
 
 
 
__webpack_require__(/*! core-js/fn/array/includes */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/array/includes.js");
 
 
 
__webpack_require__(/*! core-js/fn/array/flat-map */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/array/flat-map.js");
 
 
 
__webpack_require__(/*! core-js/fn/string/pad-start */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/string/pad-start.js");
 
 
 
__webpack_require__(/*! core-js/fn/string/pad-end */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/string/pad-end.js");
 
 
 
__webpack_require__(/*! core-js/fn/string/trim-start */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/string/trim-start.js");
 
 
 
__webpack_require__(/*! core-js/fn/string/trim-end */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/string/trim-end.js");
 
 
 
__webpack_require__(/*! core-js/fn/symbol/async-iterator */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/symbol/async-iterator.js");
 
 
 
__webpack_require__(/*! core-js/fn/object/get-own-property-descriptors */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/object/get-own-property-descriptors.js");
 
 
 
__webpack_require__(/*! core-js/fn/object/values */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/object/values.js");
 
 
 
__webpack_require__(/*! core-js/fn/object/entries */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/object/entries.js");
 
 
 
__webpack_require__(/*! core-js/fn/promise/finally */ "./node_modules/@babel/polyfill/node_modules/core-js/fn/promise/finally.js");
 
 
 
__webpack_require__(/*! core-js/web */ "./node_modules/@babel/polyfill/node_modules/core-js/web/index.js");
 
 
 
__webpack_require__(/*! regenerator-runtime/runtime */ "./node_modules/regenerator-runtime/runtime.js");
 
 
 
/***/ }),
 
 
 
/***/ "./node_modules/@babel/polyfill/node_modules/core-js/es6/index.js":
 
/*!************************************************************************!*\
 
  !*** ./node_modules/@babel/polyfill/node_modules/core-js/es6/index.js ***!
 
  \************************************************************************/
 
/*! no static exports found */
 
/***/ (function(module, exports, __webpack_require__) {
 
 
 
__webpack_require__(/*! ../modules/es6.symbol */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.symbol.js");
 
__webpack_require__(/*! ../modules/es6.object.create */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.create.js");
 
__webpack_require__(/*! ../modules/es6.object.define-property */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.define-property.js");
 
__webpack_require__(/*! ../modules/es6.object.define-properties */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.define-properties.js");
 
__webpack_require__(/*! ../modules/es6.object.get-own-property-descriptor */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.get-own-property-descriptor.js");
 
__webpack_require__(/*! ../modules/es6.object.get-prototype-of */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.get-prototype-of.js");
 
__webpack_require__(/*! ../modules/es6.object.keys */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.keys.js");
 
__webpack_require__(/*! ../modules/es6.object.get-own-property-names */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.get-own-property-names.js");
 
__webpack_require__(/*! ../modules/es6.object.freeze */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.freeze.js");
 
__webpack_require__(/*! ../modules/es6.object.seal */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.seal.js");
 
__webpack_require__(/*! ../modules/es6.object.prevent-extensions */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.prevent-extensions.js");
 
__webpack_require__(/*! ../modules/es6.object.is-frozen */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.is-frozen.js");
 
__webpack_require__(/*! ../modules/es6.object.is-sealed */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.is-sealed.js");
 
__webpack_require__(/*! ../modules/es6.object.is-extensible */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.is-extensible.js");
 
__webpack_require__(/*! ../modules/es6.object.assign */ "./node_modules/@babel/polyfill/node_modules/core-js/modules/es6.object.assign.js");
 
__webpack_require__(/*! ../modules/es6.object.is */
 
 
//# sourceMappingURL=bundle.js.map
 
//# sourceMappingURL=bundle.js.map

Revision as of 12:30, 10 March 2021

!function(t){var n={};function r(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)r.d(e,i,function(n){return t[n]}.bind(null,i));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=121)}([function(t,n,r){var e=r(1),i=r(7),o=r(14),u=r(11),c=r(17),a=function(t,n,r){var f,s,l,h,p=t&a.F,v=t&a.G,d=t&a.S,y=t&a.P,g=t&a.B,m=v?e:d?e[n]||(e[n]={}):(e[n]||{}).prototype,x=v?i:i[n]||(i[n]={}),b=x.prototype||(x.prototype={});for(f in v&&(r=n),r)l=((s=!p&&m&&void 0!==m[f])?m:r)[f],h=g&&s?c(l,e):y&&"function"==typeof l?c(Function.call,l):l,m&&u(m,f,l,t&a.U),x[f]!=l&&o(x,f,h),y&&b[f]!=l&&(b[f]=l)};e.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){var e=r(4);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(48)("wks"),i=r(29),o=r(1).Symbol,u="function"==typeof o;(t.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=e},function(t,n,r){var e=r(19),i=Math.min;t.exports=function(t){return t>0?i(e(t),9007199254740991):0}},function(t,n){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,n,r){t.exports=!r(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(3),i=r(88),o=r(26),u=Object.defineProperty;n.f=r(8)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(24);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(1),i=r(14),o=r(13),u=r(29)("src"),c=r(126),a=(""+c).split("toString");r(7).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,c){var f="function"==typeof r;f&&(o(r,"name")||i(r,"name",n)),t[n]!==r&&(f&&(o(r,u)||i(r,u,t[n]?""+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[u]||c.call(this)}))},function(t,n,r){var e=r(0),i=r(2),o=r(24),u=/"/g,c=function(t,n,r,e){var i=String(o(t)),c="<"+n;return""!==r&&(c+=" "+r+'="'+String(e).replace(u,"&quot;")+'"'),c+">"+i+"</"+n+">"};t.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i((function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3})),"String",r)}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){var e=r(9),i=r(28);t.exports=r(8)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(44),i=r(24);t.exports=function(t){return e(i(t))}},function(t,n,r){"use strict";var e=r(2);t.exports=function(t,n){return!!t&&e((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},function(t,n,r){var e=r(18);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(45),i=r(28),o=r(15),u=r(26),c=r(13),a=r(88),f=Object.getOwnPropertyDescriptor;n.f=r(8)?f:function(t,n){if(t=o(t),n=u(n,!0),a)try{return f(t,n)}catch(t){}if(c(t,n))return i(!e.f.call(t,n),t[n])}},function(t,n,r){var e=r(0),i=r(7),o=r(2);t.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o((function(){r(1)})),"Object",u)}},function(t,n,r){var e=r(17),i=r(44),o=r(10),u=r(6),c=r(104);t.exports=function(t,n){var r=1==t,a=2==t,f=3==t,s=4==t,l=6==t,h=5==t||l,p=n||c;return function(n,c,v){for(var d,y,g=o(n),m=i(g),x=e(c,v,3),b=u(m.length),w=0,S=r?p(n,b):a?p(n,0):void 0;b>w;w++)if((h||w in m)&&(y=x(d=m[w],w,g),t))if(r)S[w]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return w;case 2:S.push(d)}else if(s)return!1;return l?-1:f||s?s:S}}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,n,r){"use strict";if(r(8)){var e=r(30),i=r(1),o=r(2),u=r(0),c=r(59),a=r(84),f=r(17),s=r(42),l=r(28),h=r(14),p=r(43),v=r(19),d=r(6),y=r(115),g=r(32),m=r(26),x=r(13),b=r(46),w=r(4),S=r(10),_=r(76),E=r(33),O=r(35),P=r(34).f,F=r(78),M=r(29),A=r(5),j=r(22),I=r(49),N=r(47),T=r(80),L=r(40),R=r(52),k=r(41),C=r(79),D=r(106),W=r(9),B=r(20),U=W.f,V=B.f,G=i.RangeError,z=i.TypeError,Y=i.Uint8Array,q=Array.prototype,H=a.ArrayBuffer,$=a.DataView,K=j(0),J=j(2),X=j(3),Z=j(4),Q=j(5),tt=j(6),nt=I(!0),rt=I(!1),et=T.values,it=T.keys,ot=T.entries,ut=q.lastIndexOf,ct=q.reduce,at=q.reduceRight,ft=q.join,st=q.sort,lt=q.slice,ht=q.toString,pt=q.toLocaleString,vt=A("iterator"),dt=A("toStringTag"),yt=M("typed_constructor"),gt=M("def_constructor"),mt=c.CONSTR,xt=c.TYPED,bt=c.VIEW,wt=j(1,(function(t,n){return Pt(N(t,t[gt]),n)})),St=o((function(){return 1===new Y(new Uint16Array([1]).buffer)[0]})),_t=!!Y&&!!Y.prototype.set&&o((function(){new Y(1).set({})})),Et=function(t,n){var r=v(t);if(r<0||r%n)throw G("Wrong offset!");return r},Ot=function(t){if(w(t)&&xt in t)return t;throw z(t+" is not a typed array!")},Pt=function(t,n){if(!w(t)||!(yt in t))throw z("It is not a typed array constructor!");return new t(n)},Ft=function(t,n){return Mt(N(t,t[gt]),n)},Mt=function(t,n){for(var r=0,e=n.length,i=Pt(t,e);e>r;)i[r]=n[r++];return i},At=function(t,n,r){U(t,n,{get:function(){return this._d[r]}})},jt=function(t){var n,r,e,i,o,u,c=S(t),a=arguments.length,s=a>1?arguments[1]:void 0,l=void 0!==s,h=F(c);if(null!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&a>2&&(s=f(s,arguments[2],2)),n=0,r=d(c.length),i=Pt(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},It=function(){for(var t=0,n=arguments.length,r=Pt(this,n);n>t;)r[t]=arguments[t++];return r},Nt=!!Y&&o((function(){pt.call(new Y(1))})),Tt=function(){return pt.apply(Nt?lt.call(Ot(this)):Ot(this),arguments)},Lt={copyWithin:function(t,n){return D.call(Ot(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Ot(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return C.apply(Ot(this),arguments)},filter:function(t){return Ft(this,J(Ot(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Ot(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Ot(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return rt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ft.apply(Ot(this),arguments)},lastIndexOf:function(t){return ut.apply(Ot(this),arguments)},map:function(t){return wt(Ot(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ct.apply(Ot(this),arguments)},reduceRight:function(t){return at.apply(Ot(this),arguments)},reverse:function(){for(var t,n=Ot(this).length,r=Math.floor(n/2),e=0;e<r;)t=this[e],this[e++]=this[--n],this[n]=t;return this},some:function(t){return X(Ot(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return st.call(Ot(this),t)},subarray:function(t,n){var r=Ot(this),e=r.length,i=g(t,e);return new(N(r,r[gt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===n?e:g(n,e))-i))}},Rt=function(t,n){return Ft(this,lt.call(Ot(this),t,n))},kt=function(t){Ot(this);var n=Et(arguments[1],1),r=this.length,e=S(t),i=d(e.length),o=0;if(i+n>r)throw G("Wrong length!");for(;o<i;)this[n+o]=e[o++]},Ct={entries:function(){return ot.call(Ot(this))},keys:function(){return it.call(Ot(this))},values:function(){return et.call(Ot(this))}},Dt=function(t,n){return w(t)&&t[xt]&&"symbol"!=typeof n&&n in t&&String(+n)==String(n)},Wt=function(t,n){return Dt(t,n=m(n,!0))?l(2,t[n]):V(t,n)},Bt=function(t,n,r){return!(Dt(t,n=m(n,!0))&&w(r)&&x(r,"value"))||x(r,"get")||x(r,"set")||r.configurable||x(r,"writable")&&!r.writable||x(r,"enumerable")&&!r.enumerable?U(t,n,r):(t[n]=r.value,t)};mt||(B.f=Wt,W.f=Bt),u(u.S+u.F*!mt,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:Bt}),o((function(){ht.call({})}))&&(ht=pt=function(){return ft.call(this)});var Ut=p({},Lt);p(Ut,Ct),h(Ut,vt,Ct.values),p(Ut,{slice:Rt,set:kt,constructor:function(){},toString:ht,toLocaleString:Tt}),At(Ut,"buffer","b"),At(Ut,"byteOffset","o"),At(Ut,"byteLength","l"),At(Ut,"length","e"),U(Ut,dt,{get:function(){return this[xt]}}),t.exports=function(t,n,r,a){var f=t+((a=!!a)?"Clamped":"")+"Array",l="get"+t,p="set"+t,v=i[f],g=v||{},m=v&&O(v),x=!v||!c.ABV,S={},_=v&&v.prototype,F=function(t,r){U(t,r,{get:function(){return function(t,r){var e=t._d;return e.v[l](r*n+e.o,St)}(this,r)},set:function(t){return function(t,r,e){var i=t._d;a&&(e=(e=Math.round(e))<0?0:e>255?255:255&e),i.v[p](r*n+i.o,e,St)}(this,r,t)},enumerable:!0})};x?(v=r((function(t,r,e,i){s(t,v,f,"_d");var o,u,c,a,l=0,p=0;if(w(r)){if(!(r instanceof H||"ArrayBuffer"==(a=b(r))||"SharedArrayBuffer"==a))return xt in r?Mt(v,r):jt.call(v,r);o=r,p=Et(e,n);var g=r.byteLength;if(void 0===i){if(g%n)throw G("Wrong length!");if((u=g-p)<0)throw G("Wrong length!")}else if((u=d(i)*n)+p>g)throw G("Wrong length!");c=u/n}else c=y(r),o=new H(u=c*n);for(h(t,"_d",{b:o,o:p,l:u,e:c,v:new $(o)});l<c;)F(t,l++)})),_=v.prototype=E(Ut),h(_,"constructor",v)):o((function(){v(1)}))&&o((function(){new v(-1)}))&&R((function(t){new v,new v(null),new v(1.5),new v(t)}),!0)||(v=r((function(t,r,e,i){var o;return s(t,v,f),w(r)?r instanceof H||"ArrayBuffer"==(o=b(r))||"SharedArrayBuffer"==o?void 0!==i?new g(r,Et(e,n),i):void 0!==e?new g(r,Et(e,n)):new g(r):xt in r?Mt(v,r):jt.call(v,r):new g(y(r))})),K(m!==Function.prototype?P(g).concat(P(m)):P(g),(function(t){t in v||h(v,t,g[t])})),v.prototype=_,e||(_.constructor=v));var M=_[vt],A=!!M&&("values"==M.name||null==M.name),j=Ct.values;h(v,yt,!0),h(_,xt,f),h(_,bt,!0),h(_,gt,v),(a?new v(1)[dt]==f:dt in _)||U(_,dt,{get:function(){return f}}),S[f]=v,u(u.G+u.W+u.F*(v!=g),S),u(u.S,f,{BYTES_PER_ELEMENT:n}),u(u.S+u.F*o((function(){g.of.call(v,1)})),f,{from:jt,of:It}),"BYTES_PER_ELEMENT"in _||h(_,"BYTES_PER_ELEMENT",n),u(u.P,f,Lt),k(f),u(u.P+u.F*_t,f,{set:kt}),u(u.P+u.F*!A,f,Ct),e||_.toString==ht||(_.toString=ht),u(u.P+u.F*o((function(){new v(1).slice()})),f,{slice:Rt}),u(u.P+u.F*(o((function(){return[1,2].toLocaleString()!=new v([1,2]).toLocaleString()}))||!o((function(){_.toLocaleString.call([1,2])}))),f,{toLocaleString:Tt}),L[f]=A?M:j,e||A||h(_,vt,j)}}else t.exports=function(){}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(29)("meta"),i=r(4),o=r(13),u=r(9).f,c=0,a=Object.isExtensible||function(){return!0},f=!r(2)((function(){return a(Object.preventExtensions({}))})),s=function(t){u(t,e,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,e)){if(!a(t))return"F";if(!n)return"E";s(t)}return t[e].i},getWeak:function(t,n){if(!o(t,e)){if(!a(t))return!0;if(!n)return!1;s(t)}return t[e].w},onFreeze:function(t){return f&&l.NEED&&a(t)&&!o(t,e)&&s(t),t}}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n){t.exports=!1},function(t,n,r){var e=r(90),i=r(63);t.exports=Object.keys||function(t){return e(t,i)}},function(t,n,r){var e=r(19),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=e(t))<0?i(t+n,0):o(t,n)}},function(t,n,r){var e=r(3),i=r(91),o=r(63),u=r(62)("IE_PROTO"),c=function(){},a=function(){var t,n=r(60)("iframe"),e=o.length;for(n.style.display="none",r(64).appendChild(n),n.src="javascript:",(t=n.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;e--;)delete a.prototype[o[e]];return a()};t.exports=Object.create||function(t,n){var r;return null!==t?(c.prototype=e(t),r=new c,c.prototype=null,r[u]=t):r=a(),void 0===n?r:i(r,n)}},function(t,n,r){var e=r(90),i=r(63).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,i)}},function(t,n,r){var e=r(13),i=r(10),o=r(62)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,r){var e=r(5)("unscopables"),i=Array.prototype;null==i[e]&&r(14)(i,e,{}),t.exports=function(t){i[e][t]=!0}},function(t,n,r){var e=r(4);t.exports=function(t,n){if(!e(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,r){var e=r(9).f,i=r(13),o=r(5)("toStringTag");t.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},function(t,n,r){var e=r(0),i=r(24),o=r(2),u=r(66),c="["+u+"]",a=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),s=function(t,n,r){var i={},c=o((function(){return!!u[t]()||"​…"!="​…"[t]()})),a=i[t]=c?n(l):u[t];r&&(i[r]=a),e(e.P+e.F*c,"String",i)},l=s.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(a,"")),2&n&&(t=t.replace(f,"")),t};t.exports=s},function(t,n){t.exports={}},function(t,n,r){"use strict";var e=r(1),i=r(9),o=r(8),u=r(5)("species");t.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,n,r){var e=r(11);t.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},function(t,n,r){var e=r(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,r){var e=r(23),i=r(5)("toStringTag"),o="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?r:o?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(3),i=r(18),o=r(5)("species");t.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||null==(r=e(u)[o])?n:i(r)}},function(t,n,r){var e=r(7),i=r(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:e.version,mode:r(30)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n,r){var e=r(15),i=r(6),o=r(32);t.exports=function(t){return function(n,r,u){var c,a=e(n),f=i(a.length),s=o(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(23);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n,r){var e=r(5)("iterator"),i=!1;try{var o=[7][e]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){return{done:r=!0}},o[e]=function(){return u},t(o)}catch(t){}return r}},function(t,n,r){"use strict";var e=r(3);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,r){"use strict";var e=r(46),i=RegExp.prototype.exec;t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var o=r.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==e(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,r){"use strict";r(108);var e=r(11),i=r(14),o=r(2),u=r(24),c=r(5),a=r(81),f=c("species"),s=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,n,r){var h=c(t),p=!o((function(){var n={};return n[h]=function(){return 7},7!=""[t](n)})),v=p?!o((function(){var n=!1,r=/a/;return r.exec=function(){return n=!0,null},"split"===t&&(r.constructor={},r.constructor[f]=function(){return r}),r[h](""),!n})):void 0;if(!p||!v||"replace"===t&&!s||"split"===t&&!l){var d=/./[h],y=r(u,h,""[t],(function(t,n,r,e,i){return n.exec===a?p&&!i?{done:!0,value:d.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}})),g=y[0],m=y[1];e(String.prototype,t,g),i(RegExp.prototype,h,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}}},function(t,n,r){var e=r(17),i=r(103),o=r(76),u=r(3),c=r(6),a=r(78),f={},s={};(n=t.exports=function(t,n,r,l,h){var p,v,d,y,g=h?function(){return t}:a(t),m=e(r,l,n?2:1),x=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(p=c(t.length);p>x;x++)if((y=n?m(u(v=t[x])[0],v[1]):m(t[x]))===f||y===s)return y}else for(d=g.call(t);!(v=d.next()).done;)if((y=i(d,m,v.value,n))===f||y===s)return y}).BREAK=f,n.RETURN=s},function(t,n,r){var e=r(1).navigator;t.exports=e&&e.userAgent||""},function(t,n,r){"use strict";var e=r(1),i=r(0),o=r(11),u=r(43),c=r(27),a=r(56),f=r(42),s=r(4),l=r(2),h=r(52),p=r(38),v=r(67);t.exports=function(t,n,r,d,y,g){var m=e[t],x=m,b=y?"set":"add",w=x&&x.prototype,S={},_=function(t){var n=w[t];o(w,t,"delete"==t||"has"==t?function(t){return!(g&&!s(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof x&&(g||w.forEach&&!l((function(){(new x).entries().next()})))){var E=new x,O=E[b](g?{}:-0,1)!=E,P=l((function(){E.has(1)})),F=h((function(t){new x(t)})),M=!g&&l((function(){for(var t=new x,n=5;n--;)t[b](n,n);return!t.has(-0)}));F||((x=n((function(n,r){f(n,x,t);var e=v(new m,n,x);return null!=r&&a(r,y,e[b],e),e}))).prototype=w,w.constructor=x),(P||M)&&(_("delete"),_("has"),y&&_("get")),(M||O)&&_(b),g&&w.clear&&delete w.clear}else x=d.getConstructor(n,t,y,b),u(x.prototype,r),c.NEED=!0;return p(x,t),S[t]=x,i(i.G+i.W+i.F*(x!=m),S),g||d.setStrong(x,t,y),x}},function(t,n,r){for(var e,i=r(1),o=r(14),u=r(29),c=u("typed_array"),a=u("view"),f=!(!i.ArrayBuffer||!i.DataView),s=f,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(e=i[h[l++]])?(o(e.prototype,c,!0),o(e.prototype,a,!0)):s=!1;t.exports={ABV:f,CONSTR:s,TYPED:c,VIEW:a}},function(t,n,r){var e=r(4),i=r(1).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){n.f=r(5)},function(t,n,r){var e=r(48)("keys"),i=r(29);t.exports=function(t){return e[t]||(e[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,r){var e=r(1).document;t.exports=e&&e.documentElement},function(t,n,r){var e=r(4),i=r(3),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,e){try{(e=r(17)(Function.call,r(20).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,r){return o(t,r),n?t.__proto__=r:e(t,r),t}}({},!1):void 0),check:o}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,r){var e=r(4),i=r(65).set;t.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&"function"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},function(t,n,r){"use strict";var e=r(19),i=r(24);t.exports=function(t){var n=String(i(this)),r="",o=e(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var r=Math.expm1;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:r},function(t,n,r){var e=r(19),i=r(24);t.exports=function(t){return function(n,r){var o,u,c=String(i(n)),a=e(r),f=c.length;return a<0||a>=f?t?"":void 0:(o=c.charCodeAt(a))<55296||o>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):o:t?c.slice(a,a+2):u-56320+(o-55296<<10)+65536}}},function(t,n,r){"use strict";var e=r(30),i=r(0),o=r(11),u=r(14),c=r(40),a=r(102),f=r(38),s=r(35),l=r(5)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,n,r,v,d,y,g){a(r,n,v);var m,x,b,w=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},S=n+" Iterator",_="values"==d,E=!1,O=t.prototype,P=O[l]||O["@@iterator"]||d&&O[d],F=P||w(d),M=d?_?w("entries"):F:void 0,A="Array"==n&&O.entries||P;if(A&&(b=s(A.call(new t)))!==Object.prototype&&b.next&&(f(b,S,!0),e||"function"==typeof b[l]||u(b,l,p)),_&&P&&"values"!==P.name&&(E=!0,F=function(){return P.call(this)}),e&&!g||!h&&!E&&O[l]||u(O,l,F),c[n]=F,c[S]=p,d)if(m={values:_?F:w("values"),keys:y?F:w("keys"),entries:M},g)for(x in m)x in O||o(O,x,m[x]);else i(i.P+i.F*(h||E),n,m);return m}},function(t,n,r){var e=r(74),i=r(24);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},function(t,n,r){var e=r(4),i=r(23),o=r(5)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,r){var e=r(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(r){try{return n[e]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,r){var e=r(40),i=r(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},function(t,n,r){"use strict";var e=r(9),i=r(28);t.exports=function(t,n,r){n in t?e.f(t,n,i(0,r)):t[n]=r}},function(t,n,r){var e=r(46),i=r(5)("iterator"),o=r(40);t.exports=r(7).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,n,r){"use strict";var e=r(10),i=r(32),o=r(6);t.exports=function(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),a=u>2?arguments[2]:void 0,f=void 0===a?r:i(a,r);f>c;)n[c++]=t;return n}},function(t,n,r){"use strict";var e=r(36),i=r(107),o=r(40),u=r(15);t.exports=r(72)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?r:"values"==n?t[r]:[r,t[r]])}),"values"),o.Arguments=o.Array,e("keys"),e("values"),e("entries")},function(t,n,r){"use strict";var e,i,o=r(53),u=RegExp.prototype.exec,c=String.prototype.replace,a=u,f=(e=/a/,i=/b*/g,u.call(e,"a"),u.call(i,"a"),0!==e.lastIndex||0!==i.lastIndex),s=void 0!==/()??/.exec("")[1];(f||s)&&(a=function(t){var n,r,e,i,a=this;return s&&(r=new RegExp("^"+a.source+"$(?!\\s)",o.call(a))),f&&(n=a.lastIndex),e=u.call(a,t),f&&e&&(a.lastIndex=a.global?e.index+e[0].length:n),s&&e&&e.length>1&&c.call(e[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(e[i]=void 0)})),e}),t.exports=a},function(t,n,r){"use strict";var e=r(71)(!0);t.exports=function(t,n,r){return n+(r?e(t,n).length:1)}},function(t,n,r){var e,i,o,u=r(17),c=r(96),a=r(64),f=r(60),s=r(1),l=s.process,h=s.setImmediate,p=s.clearImmediate,v=s.MessageChannel,d=s.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var n=g[t];delete g[t],n()}},x=function(t){m.call(t.data)};h&&p||(h=function(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return g[++y]=function(){c("function"==typeof t?t:Function(t),n)},e(y),y},p=function(t){delete g[t]},"process"==r(23)(l)?e=function(t){l.nextTick(u(m,t,1))}:d&&d.now?e=function(t){d.now(u(m,t,1))}:v?(o=(i=new v).port2,i.port1.onmessage=x,e=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+"","*")},s.addEventListener("message",x,!1)):e="onreadystatechange"in f("script")?function(t){a.appendChild(f("script")).onreadystatechange=function(){a.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:h,clear:p}},function(t,n,r){"use strict";var e=r(1),i=r(8),o=r(30),u=r(59),c=r(14),a=r(43),f=r(2),s=r(42),l=r(19),h=r(6),p=r(115),v=r(34).f,d=r(9).f,y=r(79),g=r(38),m=e.ArrayBuffer,x=e.DataView,b=e.Math,w=e.RangeError,S=e.Infinity,_=m,E=b.abs,O=b.pow,P=b.floor,F=b.log,M=b.LN2,A=i?"_b":"buffer",j=i?"_l":"byteLength",I=i?"_o":"byteOffset";function N(t,n,r){var e,i,o,u=new Array(r),c=8*r-n-1,a=(1<<c)-1,f=a>>1,s=23===n?O(2,-24)-O(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=E(t))!=t||t===S?(i=t!=t?1:0,e=a):(e=P(F(t)/M),t*(o=O(2,-e))<1&&(e--,o*=2),(t+=e+f>=1?s/o:s*O(2,1-f))*o>=2&&(e++,o/=2),e+f>=a?(i=0,e=a):e+f>=1?(i=(t*o-1)*O(2,n),e+=f):(i=t*O(2,f-1)*O(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<<n|i,c+=n;c>0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u}function T(t,n,r){var e,i=8*r-n-1,o=(1<<i)-1,u=o>>1,c=i-7,a=r-1,f=t[a--],s=127&f;for(f>>=7;c>0;s=256*s+t[a],a--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[a],a--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:f?-S:S;e+=O(2,n),s-=u}return(f?-1:1)*e*O(2,s-n)}function L(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function C(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function D(t){return N(t,52,8)}function W(t){return N(t,23,4)}function B(t,n,r){d(t.prototype,n,{get:function(){return this[r]}})}function U(t,n,r,e){var i=p(+r);if(i+n>t[j])throw w("Wrong index!");var o=t[A]._b,u=i+t[I],c=o.slice(u,u+n);return e?c:c.reverse()}function V(t,n,r,e,i,o){var u=p(+r);if(u+n>t[j])throw w("Wrong index!");for(var c=t[A]._b,a=u+t[I],f=e(+i),s=0;s<n;s++)c[a+s]=f[o?s:n-s-1]}if(u.ABV){if(!f((function(){m(1)}))||!f((function(){new m(-1)}))||f((function(){return new m,new m(1.5),new m(NaN),"ArrayBuffer"!=m.name}))){for(var G,z=(m=function(t){return s(this,m),new _(p(t))}).prototype=_.prototype,Y=v(_),q=0;Y.length>q;)(G=Y[q++])in m||c(m,G,_[G]);o||(z.constructor=m)}var H=new x(new m(2)),$=x.prototype.setInt8;H.setInt8(0,2147483648),H.setInt8(1,2147483649),!H.getInt8(0)&&H.getInt8(1)||a(x.prototype,{setInt8:function(t,n){$.call(this,t,n<<24>>24)},setUint8:function(t,n){$.call(this,t,n<<24>>24)}},!0)}else m=function(t){s(this,m,"ArrayBuffer");var n=p(t);this._b=y.call(new Array(n),0),this[j]=n},x=function(t,n,r){s(this,x,"DataView"),s(t,m,"DataView");var e=t[j],i=l(n);if(i<0||i>e)throw w("Wrong offset!");if(i+(r=void 0===r?e-i:h(r))>e)throw w("Wrong length!");this[A]=t,this[I]=i,this[j]=r},i&&(B(m,"byteLength","_l"),B(x,"buffer","_b"),B(x,"byteLength","_l"),B(x,"byteOffset","_o")),a(x.prototype,{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var n=U(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=U(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return L(U(this,4,t,arguments[1]))},getUint32:function(t){return L(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return T(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return T(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){V(this,1,t,R,n)},setUint8:function(t,n){V(this,1,t,R,n)},setInt16:function(t,n){V(this,2,t,k,n,arguments[2])},setUint16:function(t,n){V(this,2,t,k,n,arguments[2])},setInt32:function(t,n){V(this,4,t,C,n,arguments[2])},setUint32:function(t,n){V(this,4,t,C,n,arguments[2])},setFloat32:function(t,n){V(this,4,t,W,n,arguments[2])},setFloat64:function(t,n){V(this,8,t,D,n,arguments[2])}});g(m,"ArrayBuffer"),g(x,"DataView"),c(x.prototype,u.VIEW,!0),n.ArrayBuffer=m,n.DataView=x},function(t,n){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){t.exports=!r(120)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,r){t.exports=!r(8)&&!r(2)((function(){return 7!=Object.defineProperty(r(60)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(1),i=r(7),o=r(30),u=r(61),c=r(9).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:e.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,r){var e=r(13),i=r(15),o=r(49)(!1),u=r(62)("IE_PROTO");t.exports=function(t,n){var r,c=i(t),a=0,f=[];for(r in c)r!=u&&e(c,r)&&f.push(r);for(;n.length>a;)e(c,r=n[a++])&&(~o(f,r)||f.push(r));return f}},function(t,n,r){var e=r(9),i=r(3),o=r(31);t.exports=r(8)?Object.defineProperties:function(t,n){i(t);for(var r,u=o(n),c=u.length,a=0;c>a;)e.f(t,r=u[a++],n[r]);return t}},function(t,n,r){var e=r(15),i=r(34).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(e(t))}},function(t,n,r){"use strict";var e=r(8),i=r(31),o=r(50),u=r(45),c=r(10),a=r(44),f=Object.assign;t.exports=!f||r(2)((function(){var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach((function(t){n[t]=t})),7!=f({},t)[r]||Object.keys(f({},n)).join("")!=e}))?function(t,n){for(var r=c(t),f=arguments.length,s=1,l=o.f,h=u.f;f>s;)for(var p,v=a(arguments[s++]),d=l?i(v).concat(l(v)):i(v),y=d.length,g=0;y>g;)p=d[g++],e&&!h.call(v,p)||(r[p]=v[p]);return r}:f},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,r){"use strict";var e=r(18),i=r(4),o=r(96),u=[].slice,c={},a=function(t,n,r){if(!(n in c)){for(var e=[],i=0;i<n;i++)e[i]="a["+i+"]";c[n]=Function("F,a","return new F("+e.join(",")+")")}return c[n](t,r)};t.exports=Function.bind||function(t){var n=e(this),r=u.call(arguments,1),c=function(){var e=r.concat(u.call(arguments));return this instanceof c?a(n,e.length,e):o(n,e,t)};return i(n.prototype)&&(c.prototype=n.prototype),c}},function(t,n){t.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},function(t,n,r){var e=r(1).parseInt,i=r(39).trim,o=r(66),u=/^[-+]?0[xX]/;t.exports=8!==e(o+"08")||22!==e(o+"0x16")?function(t,n){var r=i(String(t),3);return e(r,n>>>0||(u.test(r)?16:10))}:e},function(t,n,r){var e=r(1).parseFloat,i=r(39).trim;t.exports=1/e(r(66)+"-0")!=-1/0?function(t){var n=i(String(t),3),r=e(n);return 0===r&&"-"==n.charAt(0)?-0:r}:e},function(t,n,r){var e=r(23);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=e(t))throw TypeError(n);return+t}},function(t,n,r){var e=r(4),i=Math.floor;t.exports=function(t){return!e(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,r){"use strict";var e=r(33),i=r(28),o=r(38),u={};r(14)(u,r(5)("iterator"),(function(){return this})),t.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+" Iterator")}},function(t,n,r){var e=r(3);t.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(n){var o=t.return;throw void 0!==o&&e(o.call(t)),n}}},function(t,n,r){var e=r(216);t.exports=function(t,n){return new(e(t))(n)}},function(t,n,r){var e=r(18),i=r(10),o=r(44),u=r(6);t.exports=function(t,n,r,c,a){e(n);var f=i(t),s=o(f),l=u(f.length),h=a?l-1:0,p=a?-1:1;if(r<2)for(;;){if(h in s){c=s[h],h+=p;break}if(h+=p,a?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;a?h>=0:l>h;h+=p)h in s&&(c=n(c,s[h],h,f));return c}},function(t,n,r){"use strict";var e=r(10),i=r(32),o=r(6);t.exports=[].copyWithin||function(t,n){var r=e(this),u=o(r.length),c=i(t,u),a=i(n,u),f=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===f?u:i(f,u))-a,u-c),l=1;for(a<c&&c<a+s&&(l=-1,a+=s-1,c+=s-1);s-- >0;)a in r?r[c]=r[a]:delete r[c],c+=l,a+=l;return r}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(81);r(0)({target:"RegExp",proto:!0,forced:e!==/./.exec},{exec:e})},function(t,n,r){r(8)&&"g"!=/./g.flags&&r(9).f(RegExp.prototype,"flags",{configurable:!0,get:r(53)})},function(t,n,r){"use strict";var e,i,o,u,c=r(30),a=r(1),f=r(17),s=r(46),l=r(0),h=r(4),p=r(18),v=r(42),d=r(56),y=r(47),g=r(83).set,m=r(236)(),x=r(111),b=r(237),w=r(57),S=r(112),_=a.TypeError,E=a.process,O=E&&E.versions,P=O&&O.v8||"",F=a.Promise,M="process"==s(E),A=function(){},j=i=x.f,I=!!function(){try{var t=F.resolve(1),n=(t.constructor={})[r(5)("species")]=function(t){t(A,A)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof n&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),N=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var r=t._c;m((function(){for(var e=t._v,i=1==t._s,o=0,u=function(n){var r,o,u,c=i?n.ok:n.fail,a=n.resolve,f=n.reject,s=n.domain;try{c?(i||(2==t._h&&k(t),t._h=1),!0===c?r=e:(s&&s.enter(),r=c(e),s&&(s.exit(),u=!0)),r===n.promise?f(_("Promise-chain cycle")):(o=N(r))?o.call(r,a,f):a(r)):f(e)}catch(t){s&&!u&&s.exit(),f(t)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,n&&!t._h&&L(t)}))}},L=function(t){g.call(a,(function(){var n,r,e,i=t._v,o=R(t);if(o&&(n=b((function(){M?E.emit("unhandledRejection",i,t):(r=a.onunhandledrejection)?r({promise:t,reason:i}):(e=a.console)&&e.error&&e.error("Unhandled promise rejection",i)})),t._h=M||R(t)?2:1),t._a=void 0,o&&n.e)throw n.v}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},k=function(t){g.call(a,(function(){var n;M?E.emit("rejectionHandled",t):(n=a.onrejectionhandled)&&n({promise:t,reason:t._v})}))},C=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},D=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(n=N(t))?m((function(){var e={_w:r,_d:!1};try{n.call(t,f(D,e,1),f(C,e,1))}catch(t){C.call(e,t)}})):(r._v=t,r._s=1,T(r,!1))}catch(t){C.call({_w:r,_d:!1},t)}}};I||(F=function(t){v(this,F,"Promise","_h"),p(t),e.call(this);try{t(f(D,this,1),f(C,this,1))}catch(t){C.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(43)(F.prototype,{then:function(t,n){var r=j(y(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof n&&n,r.domain=M?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=f(D,t,1),this.reject=f(C,t,1)},x.f=j=function(t){return t===F||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!I,{Promise:F}),r(38)(F,"Promise"),r(41)("Promise"),u=r(7).Promise,l(l.S+l.F*!I,"Promise",{reject:function(t){var n=j(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(c||!I),"Promise",{resolve:function(t){return S(c&&this===u?F:this,t)}}),l(l.S+l.F*!(I&&r(52)((function(t){F.all(t).catch(A)}))),"Promise",{all:function(t){var n=this,r=j(n),e=r.resolve,i=r.reject,o=b((function(){var r=[],o=0,u=1;d(t,!1,(function(t){var c=o++,a=!1;r.push(void 0),u++,n.resolve(t).then((function(t){a||(a=!0,r[c]=t,--u||e(r))}),i)})),--u||e(r)}));return o.e&&i(o.v),r.promise},race:function(t){var n=this,r=j(n),e=r.reject,i=b((function(){d(t,!1,(function(t){n.resolve(t).then(r.resolve,e)}))}));return i.e&&e(i.v),r.promise}})},function(t,n,r){"use strict";var e=r(18);function i(t){var n,r;this.promise=new t((function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e})),this.resolve=e(n),this.reject=e(r)}t.exports.f=function(t){return new i(t)}},function(t,n,r){var e=r(3),i=r(4),o=r(111);t.exports=function(t,n){if(e(t),i(n)&&n.constructor===t)return n;var r=o.f(t);return(0,r.resolve)(n),r.promise}},function(t,n,r){"use strict";var e=r(9).f,i=r(33),o=r(43),u=r(17),c=r(42),a=r(56),f=r(72),s=r(107),l=r(41),h=r(8),p=r(27).fastKey,v=r(37),d=h?"_s":"size",y=function(t,n){var r,e=p(n);if("F"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};t.exports={getConstructor:function(t,n,r,f){var s=t((function(t,e){c(t,s,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[d]=0,null!=e&&a(e,r,t[f],t)}));return o(s.prototype,{clear:function(){for(var t=v(this,n),r=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete r[e.i];t._f=t._l=void 0,t[d]=0},delete:function(t){var r=v(this,n),e=y(r,t);if(e){var i=e.n,o=e.p;delete r._i[e.i],e.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==e&&(r._f=i),r._l==e&&(r._l=o),r[d]--}return!!e},forEach:function(t){v(this,n);for(var r,e=u(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(e(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(v(this,n),t)}}),h&&e(s.prototype,"size",{get:function(){return v(this,n)[d]}}),s},def:function(t,n,r){var e,i,o=y(t,n);return o?o.v=r:(t._l=o={i:i=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[d]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,n,r){f(t,n,(function(t,r){this._t=v(t,n),this._k=r,this._l=void 0}),(function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?s(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,s(1))}),r?"entries":"values",!r,!0),l(n)}}},function(t,n,r){"use strict";var e=r(43),i=r(27).getWeak,o=r(3),u=r(4),c=r(42),a=r(56),f=r(22),s=r(13),l=r(37),h=f(5),p=f(6),v=0,d=function(t){return t._l||(t._l=new y)},y=function(){this.a=[]},g=function(t,n){return h(t.a,(function(t){return t[0]===n}))};y.prototype={get:function(t){var n=g(this,t);if(n)return n[1]},has:function(t){return!!g(this,t)},set:function(t,n){var r=g(this,t);r?r[1]=n:this.a.push([t,n])},delete:function(t){var n=p(this.a,(function(n){return n[0]===t}));return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,r,o){var f=t((function(t,e){c(t,f,n,"_i"),t._t=n,t._i=v++,t._l=void 0,null!=e&&a(e,r,t[o],t)}));return e(f.prototype,{delete:function(t){if(!u(t))return!1;var r=i(t);return!0===r?d(l(this,n)).delete(t):r&&s(r,this._i)&&delete r[this._i]},has:function(t){if(!u(t))return!1;var r=i(t);return!0===r?d(l(this,n)).has(t):r&&s(r,this._i)}}),f},def:function(t,n,r){var e=i(o(n),!0);return!0===e?d(t).set(n,r):e[t._i]=r,t},ufstore:d}},function(t,n,r){var e=r(19),i=r(6);t.exports=function(t){if(void 0===t)return 0;var n=e(t),r=i(n);if(n!==r)throw RangeError("Wrong length!");return r}},function(t,n,r){var e=r(34),i=r(50),o=r(3),u=r(1).Reflect;t.exports=u&&u.ownKeys||function(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(6),i=r(68),o=r(24);t.exports=function(t,n,r,u){var c=String(o(t)),a=c.length,f=void 0===r?" ":String(r),s=e(n);if(s<=a||""==f)return c;var l=s-a,h=i.call(f,Math.ceil(l/f.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},function(t,n,r){var e=r(8),i=r(31),o=r(15),u=r(45).f;t.exports=function(t){return function(n){for(var r,c=o(n),a=i(c),f=a.length,s=0,l=[];f>s;)r=a[s++],e&&!u.call(c,r)||l.push(t?[r,c[r]]:c[r]);return l}}},function(t,n){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,r){r(122),t.exports=r(308)},function(t,n,r){"use strict";r(123);var e,i=(e=r(295))&&e.__esModule?e:{default:e};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},function(t,n,r){"use strict";r(124),r(267),r(269),r(272),r(274),r(276),r(278),r(280),r(282),r(284),r(286),r(288),r(290),r(294)},function(t,n,r){r(125),r(128),r(129),r(130),r(131),r(132),r(133),r(134),r(135),r(136),r(137),r(138),r(139),r(140),r(141),r(142),r(143),r(144),r(145),r(146),r(147),r(148),r(149),r(150),r(151),r(152),r(153),r(154),r(155),r(156),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(194),r(195),r(196),r(197),r(198),r(199),r(200),r(201),r(202),r(203),r(204),r(206),r(207),r(209),r(210),r(211),r(212),r(213),r(214),r(215),r(217),r(218),r(219),r(220),r(221),r(222),r(223),r(224),r(225),r(226),r(227),r(228),r(229),r(80),r(230),r(108),r(231),r(109),r(232),r(233),r(234),r(235),r(110),r(238),r(239),r(240),r(241),r(242),r(243),r(244),r(245),r(246),r(247),r(248),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(263),r(264),r(265),r(266),t.exports=r(7)},function(t,n,r){"use strict";var e=r(1),i=r(13),o=r(8),u=r(0),c=r(11),a=r(27).KEY,f=r(2),s=r(48),l=r(38),h=r(29),p=r(5),v=r(61),d=r(89),y=r(127),g=r(51),m=r(3),x=r(4),b=r(10),w=r(15),S=r(26),_=r(28),E=r(33),O=r(92),P=r(20),F=r(50),M=r(9),A=r(31),j=P.f,I=M.f,N=O.f,T=e.Symbol,L=e.JSON,R=L&&L.stringify,k=p("_hidden"),C=p("toPrimitive"),D={}.propertyIsEnumerable,W=s("symbol-registry"),B=s("symbols"),U=s("op-symbols"),V=Object.prototype,G="function"==typeof T&&!!F.f,z=e.QObject,Y=!z||!z.prototype||!z.prototype.findChild,q=o&&f((function(){return 7!=E(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(t,n,r){var e=j(V,n);e&&delete V[n],I(t,n,r),e&&t!==V&&I(V,n,e)}:I,H=function(t){var n=B[t]=E(T.prototype);return n._k=t,n},$=G&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},K=function(t,n,r){return t===V&&K(U,n,r),m(t),n=S(n,!0),m(r),i(B,n)?(r.enumerable?(i(t,k)&&t[k][n]&&(t[k][n]=!1),r=E(r,{enumerable:_(0,!1)})):(i(t,k)||I(t,k,_(1,{})),t[k][n]=!0),q(t,n,r)):I(t,n,r)},J=function(t,n){m(t);for(var r,e=y(n=w(n)),i=0,o=e.length;o>i;)K(t,r=e[i++],n[r]);return t},X=function(t){var n=D.call(this,t=S(t,!0));return!(this===V&&i(B,t)&&!i(U,t))&&(!(n||!i(this,t)||!i(B,t)||i(this,k)&&this[k][t])||n)},Z=function(t,n){if(t=w(t),n=S(n,!0),t!==V||!i(B,n)||i(U,n)){var r=j(t,n);return!r||!i(B,n)||i(t,k)&&t[k][n]||(r.enumerable=!0),r}},Q=function(t){for(var n,r=N(w(t)),e=[],o=0;r.length>o;)i(B,n=r[o++])||n==k||n==a||e.push(n);return e},tt=function(t){for(var n,r=t===V,e=N(r?U:w(t)),o=[],u=0;e.length>u;)!i(B,n=e[u++])||r&&!i(V,n)||o.push(B[n]);return o};G||(c((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(r){this===V&&n.call(U,r),i(this,k)&&i(this[k],t)&&(this[k][t]=!1),q(this,t,_(1,r))};return o&&Y&&q(V,t,{configurable:!0,set:n}),H(t)}).prototype,"toString",(function(){return this._k})),P.f=Z,M.f=K,r(34).f=O.f=Q,r(45).f=X,F.f=tt,o&&!r(30)&&c(V,"propertyIsEnumerable",X,!0),v.f=function(t){return H(p(t))}),u(u.G+u.W+u.F*!G,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;nt.length>rt;)p(nt[rt++]);for(var et=A(p.store),it=0;et.length>it;)d(et[it++]);u(u.S+u.F*!G,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=T(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var n in W)if(W[n]===t)return n},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),u(u.S+u.F*!G,"Object",{create:function(t,n){return void 0===n?E(t):J(E(t),n)},defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=f((function(){F.f(1)}));u(u.S+u.F*ot,"Object",{getOwnPropertySymbols:function(t){return F.f(b(t))}}),L&&u(u.S+u.F*(!G||f((function(){var t=T();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);if(r=n=e[1],(x(n)||void 0!==t)&&!$(t))return g(n)||(n=function(t,n){if("function"==typeof r&&(n=r.call(this,t,n)),!$(n))return n}),e[1]=n,R.apply(L,e)}}),T.prototype[C]||r(14)(T.prototype,C,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(e.JSON,"JSON",!0)},function(t,n,r){t.exports=r(48)("native-function-to-string",Function.toString)},function(t,n,r){var e=r(31),i=r(50),o=r(45);t.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),a=o.f,f=0;c.length>f;)a.call(t,u=c[f++])&&n.push(u);return n}},function(t,n,r){var e=r(0);e(e.S,"Object",{create:r(33)})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(8),"Object",{defineProperty:r(9).f})},function(t,n,r){var e=r(0);e(e.S+e.F*!r(8),"Object",{defineProperties:r(91)})},function(t,n,r){var e=r(15),i=r(20).f;r(21)("getOwnPropertyDescriptor",(function(){return function(t,n){return i(e(t),n)}}))},function(t,n,r){var e=r(10),i=r(35);r(21)("getPrototypeOf",(function(){return function(t){return i(e(t))}}))},function(t,n,r){var e=r(10),i=r(31);r(21)("keys",(function(){return function(t){return i(e(t))}}))},function(t,n,r){r(21)("getOwnPropertyNames",(function(){return r(92).f}))},function(t,n,r){var e=r(4),i=r(27).onFreeze;r(21)("freeze",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(4),i=r(27).onFreeze;r(21)("seal",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(4),i=r(27).onFreeze;r(21)("preventExtensions",(function(t){return function(n){return t&&e(n)?t(i(n)):n}}))},function(t,n,r){var e=r(4);r(21)("isFrozen",(function(t){return function(n){return!e(n)||!!t&&t(n)}}))},function(t,n,r){var e=r(4);r(21)("isSealed",(function(t){return function(n){return!e(n)||!!t&&t(n)}}))},function(t,n,r){var e=r(4);r(21)("isExtensible",(function(t){return function(n){return!!e(n)&&(!t||t(n))}}))},function(t,n,r){var e=r(0);e(e.S+e.F,"Object",{assign:r(93)})},function(t,n,r){var e=r(0);e(e.S,"Object",{is:r(94)})},function(t,n,r){var e=r(0);e(e.S,"Object",{setPrototypeOf:r(65).set})},function(t,n,r){"use strict";var e=r(46),i={};i[r(5)("toStringTag")]="z",i+""!="[object z]"&&r(11)(Object.prototype,"toString",(function(){return"[object "+e(this)+"]"}),!0)},function(t,n,r){var e=r(0);e(e.P,"Function",{bind:r(95)})},function(t,n,r){var e=r(9).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||r(8)&&e(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,r){"use strict";var e=r(4),i=r(35),o=r(5)("hasInstance"),u=Function.prototype;o in u||r(9).f(u,o,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){var e=r(0),i=r(97);e(e.G+e.F*(parseInt!=i),{parseInt:i})},function(t,n,r){var e=r(0),i=r(98);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},function(t,n,r){"use strict";var e=r(1),i=r(13),o=r(23),u=r(67),c=r(26),a=r(2),f=r(34).f,s=r(20).f,l=r(9).f,h=r(39).trim,p=e.Number,v=p,d=p.prototype,y="Number"==o(r(33)(d)),g="trim"in String.prototype,m=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){var r,e,i,o=(n=g?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(r=n.charCodeAt(2))||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,a=n.slice(2),f=0,s=a.length;f<s;f++)if((u=a.charCodeAt(f))<48||u>i)return NaN;return parseInt(a,e)}}return+n};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof p&&(y?a((function(){d.valueOf.call(r)})):"Number"!=o(r))?u(new v(m(n)),r,p):m(n)};for(var x,b=r(8)?f(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)i(v,x=b[w])&&!i(p,x)&&l(p,x,s(v,x));p.prototype=d,d.constructor=p,r(11)(e,"Number",p)}},function(t,n,r){"use strict";var e=r(0),i=r(19),o=r(99),u=r(68),c=1..toFixed,a=Math.floor,f=[0,0,0,0,0,0],s="Number.toFixed: incorrect invocation!",l=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*f[r],f[r]=e%1e7,e=a(e/1e7)},h=function(t){for(var n=6,r=0;--n>=0;)r+=f[n],f[n]=a(r/t),r=r%t*1e7},p=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==f[t]){var r=String(f[t]);n=""===n?r:n+u.call("0",7-r.length)+r}return n},v=function(t,n,r){return 0===n?r:n%2==1?v(t,n-1,r*t):v(t*t,n/2,r)};e(e.P+e.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r(2)((function(){c.call({})}))),"Number",{toFixed:function(t){var n,r,e,c,a=o(this,s),f=i(t),d="",y="0";if(f<0||f>20)throw RangeError(s);if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return String(a);if(a<0&&(d="-",a=-a),a>1e-21)if(r=(n=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n}(a*v(2,69,1))-69)<0?a*v(2,-n,1):a/v(2,n,1),r*=4503599627370496,(n=52-n)>0){for(l(0,r),e=f;e>=7;)l(1e7,0),e-=7;for(l(v(10,e,1),0),e=n-1;e>=23;)h(1<<23),e-=23;h(1<<e),l(1,1),h(2),y=p()}else l(0,r),l(1<<-n,0),y=p()+u.call("0",f);return y=f>0?d+((c=y.length)<=f?"0."+u.call("0",f-c)+y:y.slice(0,c-f)+"."+y.slice(c-f)):d+y}})},function(t,n,r){"use strict";var e=r(0),i=r(2),o=r(99),u=1..toPrecision;e(e.P+e.F*(i((function(){return"1"!==u.call(1,void 0)}))||!i((function(){u.call({})}))),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,r){var e=r(0),i=r(1).isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,r){var e=r(0);e(e.S,"Number",{isInteger:r(100)})},function(t,n,r){var e=r(0);e(e.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,r){var e=r(0),i=r(100),o=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,r){var e=r(0);e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,r){var e=r(0);e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,r){var e=r(0),i=r(98);e(e.S+e.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,r){var e=r(0),i=r(97);e(e.S+e.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,r){var e=r(0),i=r(101),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,r){var e=r(0),i=Math.asinh;e(e.S+e.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,r){var e=r(0),i=Math.atanh;e(e.S+e.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,r){var e=r(0),i=r(69);e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,r){var e=r(0),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,r){var e=r(0),i=r(70);e(e.S+e.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,r){var e=r(0);e(e.S,"Math",{fround:r(170)})},function(t,n,r){var e=r(69),i=Math.pow,o=i(2,-52),u=i(2,-23),c=i(2,127)*(2-u),a=i(2,-126);t.exports=Math.fround||function(t){var n,r,i=Math.abs(t),f=e(t);return i<a?f*(i/a/u+1/o-1/o)*a*u:(r=(n=(1+u/o)*i)-(n-i))>c||r!=r?f*(1/0):f*r}},function(t,n,r){var e=r(0),i=Math.abs;e(e.S,"Math",{hypot:function(t,n){for(var r,e,o=0,u=0,c=arguments.length,a=0;u<c;)a<(r=i(arguments[u++]))?(o=o*(e=a/r)*e+1,a=r):o+=r>0?(e=r/a)*e:r;return a===1/0?1/0:a*Math.sqrt(o)}})},function(t,n,r){var e=r(0),i=Math.imul;e(e.S+e.F*r(2)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,n){var r=+t,e=+n,i=65535&r,o=65535&e;return 0|i*o+((65535&r>>>16)*o+i*(65535&e>>>16)<<16>>>0)}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,r){var e=r(0);e(e.S,"Math",{log1p:r(101)})},function(t,n,r){var e=r(0);e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,r){var e=r(0);e(e.S,"Math",{sign:r(69)})},function(t,n,r){var e=r(0),i=r(70),o=Math.exp;e(e.S+e.F*r(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,r){var e=r(0),i=r(70),o=Math.exp;e(e.S,"Math",{tanh:function(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},function(t,n,r){var e=r(0);e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,r){var e=r(0),i=r(32),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");r.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return r.join("")}})},function(t,n,r){var e=r(0),i=r(15),o=r(6);e(e.S,"String",{raw:function(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),c<e&&u.push(String(arguments[c]));return u.join("")}})},function(t,n,r){"use strict";r(39)("trim",(function(t){return function(){return t(this,3)}}))},function(t,n,r){"use strict";var e=r(71)(!0);r(72)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})}))},function(t,n,r){"use strict";var e=r(0),i=r(71)(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,r){"use strict";var e=r(0),i=r(6),o=r(73),u="".endsWith;e(e.P+e.F*r(75)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),c=void 0===r?e:Math.min(i(r),e),a=String(t);return u?u.call(n,a,c):n.slice(c-a.length,c)===a}})},function(t,n,r){"use strict";var e=r(0),i=r(73);e(e.P+e.F*r(75)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(0);e(e.P,"String",{repeat:r(68)})},function(t,n,r){"use strict";var e=r(0),i=r(6),o=r(73),u="".startsWith;e(e.P+e.F*r(75)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return u?u.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){"use strict";r(12)("anchor",(function(t){return function(n){return t(this,"a","name",n)}}))},function(t,n,r){"use strict";r(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,n,r){"use strict";r(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,n,r){"use strict";r(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,n,r){"use strict";r(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,n,r){"use strict";r(12)("fontcolor",(function(t){return function(n){return t(this,"font","color",n)}}))},function(t,n,r){"use strict";r(12)("fontsize",(function(t){return function(n){return t(this,"font","size",n)}}))},function(t,n,r){"use strict";r(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,n,r){"use strict";r(12)("link",(function(t){return function(n){return t(this,"a","href",n)}}))},function(t,n,r){"use strict";r(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,n,r){"use strict";r(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,n,r){"use strict";r(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,r){"use strict";r(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,n,r){var e=r(0);e(e.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,r){"use strict";var e=r(0),i=r(10),o=r(26);e(e.P+e.F*r(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var n=i(this),r=o(n);return"number"!=typeof r||isFinite(r)?n.toISOString():null}})},function(t,n,r){var e=r(0),i=r(205);e(e.P+e.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,r){"use strict";var e=r(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=e((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!e((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=n<0?"-":n>9999?"+":"";return e+("00000"+Math.abs(n)).slice(e?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(r>99?r:"0"+u(r))+"Z"}:o},function(t,n,r){var e=Date.prototype,i=e.toString,o=e.getTime;new Date(NaN)+""!="Invalid Date"&&r(11)(e,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,n,r){var e=r(5)("toPrimitive"),i=Date.prototype;e in i||r(14)(i,e,r(208))},function(t,n,r){"use strict";var e=r(3),i=r(26);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(e(this),"number"!=t)}},function(t,n,r){var e=r(0);e(e.S,"Array",{isArray:r(51)})},function(t,n,r){"use strict";var e=r(17),i=r(0),o=r(10),u=r(103),c=r(76),a=r(6),f=r(77),s=r(78);i(i.S+i.F*!r(52)((function(t){Array.from(t)})),"Array",{from:function(t){var n,r,i,l,h=o(t),p="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,y=void 0!==d,g=0,m=s(h);if(y&&(d=e(d,v>2?arguments[2]:void 0,2)),null==m||p==Array&&c(m))for(r=new p(n=a(h.length));n>g;g++)f(r,g,y?d(h[g],g):h[g]);else for(l=m.call(h),r=new p;!(i=l.next()).done;g++)f(r,g,y?u(l,d,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,n,r){"use strict";var e=r(0),i=r(77);e(e.S+e.F*r(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)i(r,t,arguments[t++]);return r.length=n,r}})},function(t,n,r){"use strict";var e=r(0),i=r(15),o=[].join;e(e.P+e.F*(r(44)!=Object||!r(16)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,r){"use strict";var e=r(0),i=r(64),o=r(23),u=r(32),c=r(6),a=[].slice;e(e.P+e.F*r(2)((function(){i&&a.call(i)})),"Array",{slice:function(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,"Array"==e)return a.call(this,t,n);for(var i=u(t,r),f=u(n,r),s=c(f-i),l=new Array(s),h=0;h<s;h++)l[h]="String"==e?this.charAt(i+h):this[i+h];return l}})},function(t,n,r){"use strict";var e=r(0),i=r(18),o=r(10),u=r(2),c=[].sort,a=[1,2,3];e(e.P+e.F*(u((function(){a.sort(void 0)}))||!u((function(){a.sort(null)}))||!r(16)(c)),"Array",{sort:function(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},function(t,n,r){"use strict";var e=r(0),i=r(22)(0),o=r(16)([].forEach,!0);e(e.P+e.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,n,r){var e=r(4),i=r(51),o=r(5)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),e(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,r){"use strict";var e=r(0),i=r(22)(1);e(e.P+e.F*!r(16)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(22)(2);e(e.P+e.F*!r(16)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(22)(3);e(e.P+e.F*!r(16)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(22)(4);e(e.P+e.F*!r(16)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(105);e(e.P+e.F*!r(16)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,n,r){"use strict";var e=r(0),i=r(105);e(e.P+e.F*!r(16)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,n,r){"use strict";var e=r(0),i=r(49)(!1),o=[].indexOf,u=!!o&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(u||!r(16)(o)),"Array",{indexOf:function(t){return u?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,n,r){"use strict";var e=r(0),i=r(15),o=r(19),u=r(6),c=[].lastIndexOf,a=!!c&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(a||!r(16)(c)),"Array",{lastIndexOf:function(t){if(a)return c.apply(this,arguments)||0;var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),e<0&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e||0;return-1}})},function(t,n,r){var e=r(0);e(e.P,"Array",{copyWithin:r(106)}),r(36)("copyWithin")},function(t,n,r){var e=r(0);e(e.P,"Array",{fill:r(79)}),r(36)("fill")},function(t,n,r){"use strict";var e=r(0),i=r(22)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),e(e.P+e.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(36)("find")},function(t,n,r){"use strict";var e=r(0),i=r(22)(6),o="findIndex",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),e(e.P+e.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(36)(o)},function(t,n,r){r(41)("Array")},function(t,n,r){var e=r(1),i=r(67),o=r(9).f,u=r(34).f,c=r(74),a=r(53),f=e.RegExp,s=f,l=f.prototype,h=/a/g,p=/a/g,v=new f(h)!==h;if(r(8)&&(!v||r(2)((function(){return p[r(5)("match")]=!1,f(h)!=h||f(p)==p||"/a/i"!=f(h,"i")})))){f=function(t,n){var r=this instanceof f,e=c(t),o=void 0===n;return!r&&e&&t.constructor===f&&o?t:i(v?new s(e&&!o?t.source:t,n):s((e=t instanceof f)?t.source:t,e&&o?a.call(t):n),r?this:l,f)};for(var d=function(t){t in f||o(f,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})},y=u(s),g=0;y.length>g;)d(y[g++]);l.constructor=f,f.prototype=l,r(11)(e,"RegExp",f)}r(41)("RegExp")},function(t,n,r){"use strict";r(109);var e=r(3),i=r(53),o=r(8),u=/./.toString,c=function(t){r(11)(RegExp.prototype,"toString",t,!0)};r(2)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?c((function(){var t=e(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=u.name&&c((function(){return u.call(this)}))},function(t,n,r){"use strict";var e=r(3),i=r(6),o=r(82),u=r(54);r(55)("match",1,(function(t,n,r,c){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=c(r,t,this);if(n.done)return n.value;var a=e(t),f=String(this);if(!a.global)return u(a,f);var s=a.unicode;a.lastIndex=0;for(var l,h=[],p=0;null!==(l=u(a,f));){var v=String(l[0]);h[p]=v,""===v&&(a.lastIndex=o(f,i(a.lastIndex),s)),p++}return 0===p?null:h}]}))},function(t,n,r){"use strict";var e=r(3),i=r(10),o=r(6),u=r(19),c=r(82),a=r(54),f=Math.max,s=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;r(55)("replace",2,(function(t,n,r,v){return[function(e,i){var o=t(this),u=null==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},function(t,n){var i=v(r,t,this,n);if(i.done)return i.value;var l=e(t),h=String(this),p="function"==typeof n;p||(n=String(n));var y=l.global;if(y){var g=l.unicode;l.lastIndex=0}for(var m=[];;){var x=a(l,h);if(null===x)break;if(m.push(x),!y)break;""===String(x[0])&&(l.lastIndex=c(h,o(l.lastIndex),g))}for(var b,w="",S=0,_=0;_<m.length;_++){x=m[_];for(var E=String(x[0]),O=f(s(u(x.index),h.length),0),P=[],F=1;F<x.length;F++)P.push(void 0===(b=x[F])?b:String(b));var M=x.groups;if(p){var A=[E].concat(P,O,h);void 0!==M&&A.push(M);var j=String(n.apply(void 0,A))}else j=d(E,h,O,P,M,n);O>=S&&(w+=h.slice(S,O)+j,S=O+E.length)}return w+h.slice(S)}];function d(t,n,e,o,u,c){var a=e+t.length,f=o.length,s=p;return void 0!==u&&(u=i(u),s=h),r.call(c,s,(function(r,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,e);case"'":return n.slice(a);case"<":c=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return r;if(s>f){var h=l(s/10);return 0===h?r:h<=f?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}c=o[s-1]}return void 0===c?"":c}))}}))},function(t,n,r){"use strict";var e=r(3),i=r(94),o=r(54);r(55)("search",1,(function(t,n,r,u){return[function(r){var e=t(this),i=null==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},function(t){var n=u(r,t,this);if(n.done)return n.value;var c=e(t),a=String(this),f=c.lastIndex;i(f,0)||(c.lastIndex=0);var s=o(c,a);return i(c.lastIndex,f)||(c.lastIndex=f),null===s?-1:s.index}]}))},function(t,n,r){"use strict";var e=r(74),i=r(3),o=r(47),u=r(82),c=r(6),a=r(54),f=r(81),s=r(2),l=Math.min,h=[].push,p="length",v=!s((function(){RegExp(4294967295,"y")}));r(55)("split",2,(function(t,n,r,s){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[p]||2!="ab".split(/(?:ab)*/)[p]||4!=".".split(/(.?)(.?)/)[p]||".".split(/()()/)[p]>1||"".split(/.?/)[p]?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!e(t))return r.call(i,t,n);for(var o,u,c,a=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,v=void 0===n?4294967295:n>>>0,d=new RegExp(t.source,s+"g");(o=f.call(d,i))&&!((u=d.lastIndex)>l&&(a.push(i.slice(l,o.index)),o[p]>1&&o.index<i[p]&&h.apply(a,o.slice(1)),c=o[0][p],l=u,a[p]>=v));)d.lastIndex===o.index&&d.lastIndex++;return l===i[p]?!c&&d.test("")||a.push(""):a.push(i.slice(l)),a[p]>v?a.slice(0,v):a}:"0".split(void 0,0)[p]?function(t,n){return void 0===t&&0===n?[]:r.call(this,t,n)}:r,[function(r,e){var i=t(this),o=null==r?void 0:r[n];return void 0!==o?o.call(r,i,e):d.call(String(i),r,e)},function(t,n){var e=s(d,t,this,n,d!==r);if(e.done)return e.value;var f=i(t),h=String(this),p=o(f,RegExp),y=f.unicode,g=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(v?"y":"g"),m=new p(v?f:"^(?:"+f.source+")",g),x=void 0===n?4294967295:n>>>0;if(0===x)return[];if(0===h.length)return null===a(m,h)?[h]:[];for(var b=0,w=0,S=[];w<h.length;){m.lastIndex=v?w:0;var _,E=a(m,v?h:h.slice(w));if(null===E||(_=l(c(m.lastIndex+(v?0:w)),h.length))===b)w=u(h,w,y);else{if(S.push(h.slice(b,w)),S.length===x)return S;for(var O=1;O<=E.length-1;O++)if(S.push(E[O]),S.length===x)return S;w=b=_}}return S.push(h.slice(b)),S}]}))},function(t,n,r){var e=r(1),i=r(83).set,o=e.MutationObserver||e.WebKitMutationObserver,u=e.process,c=e.Promise,a="process"==r(23)(u);t.exports=function(){var t,n,r,f=function(){var e,i;for(a&&(e=u.domain)&&e.exit();t;){i=t.fn,t=t.next;try{i()}catch(e){throw t?r():n=void 0,e}}n=void 0,e&&e.enter()};if(a)r=function(){u.nextTick(f)};else if(!o||e.navigator&&e.navigator.standalone)if(c&&c.resolve){var s=c.resolve(void 0);r=function(){s.then(f)}}else r=function(){i.call(e,f)};else{var l=!0,h=document.createTextNode("");new o(f).observe(h,{characterData:!0}),r=function(){h.data=l=!l}}return function(e){var i={fn:e,next:void 0};n&&(n.next=i),t||(t=i,r()),n=i}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,r){"use strict";var e=r(113),i=r(37);t.exports=r(58)("Map",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var n=e.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return e.def(i(this,"Map"),0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(113),i=r(37);t.exports=r(58)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return e.def(i(this,"Set"),t=0===t?0:t,t)}},e)},function(t,n,r){"use strict";var e,i=r(1),o=r(22)(0),u=r(11),c=r(27),a=r(93),f=r(114),s=r(4),l=r(37),h=r(37),p=!i.ActiveXObject&&"ActiveXObject"in i,v=c.getWeak,d=Object.isExtensible,y=f.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(s(t)){var n=v(t);return!0===n?y(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return f.def(l(this,"WeakMap"),t,n)}},x=t.exports=r(58)("WeakMap",g,m,f,!0,!0);h&&p&&(a((e=f.getConstructor(g,"WeakMap")).prototype,m),c.NEED=!0,o(["delete","has","get","set"],(function(t){var n=x.prototype,r=n[t];u(n,t,(function(n,i){if(s(n)&&!d(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return"set"==t?this:o}return r.call(this,n,i)}))})))},function(t,n,r){"use strict";var e=r(114),i=r(37);r(58)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return e.def(i(this,"WeakSet"),t,!0)}},e,!1,!0)},function(t,n,r){"use strict";var e=r(0),i=r(59),o=r(84),u=r(3),c=r(32),a=r(6),f=r(4),s=r(1).ArrayBuffer,l=r(47),h=o.ArrayBuffer,p=o.DataView,v=i.ABV&&s.isView,d=h.prototype.slice,y=i.VIEW;e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return v&&v(t)||f(t)&&y in t}}),e(e.P+e.U+e.F*r(2)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,n){if(void 0!==d&&void 0===n)return d.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(a(i-e)),f=new p(this),s=new p(o),v=0;e<i;)s.setUint8(v++,f.getUint8(e++));return o}}),r(41)("ArrayBuffer")},function(t,n,r){var e=r(0);e(e.G+e.W+e.F*!r(59).ABV,{DataView:r(84).DataView})},function(t,n,r){r(25)("Int8",1,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(25)("Uint8",1,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(25)("Uint8",1,(function(t){return function(n,r,e){return t(this,n,r,e)}}),!0)},function(t,n,r){r(25)("Int16",2,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(25)("Uint16",2,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(25)("Int32",4,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(25)("Uint32",4,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(25)("Float32",4,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){r(25)("Float64",8,(function(t){return function(n,r,e){return t(this,n,r,e)}}))},function(t,n,r){var e=r(0),i=r(18),o=r(3),u=(r(1).Reflect||{}).apply,c=Function.apply;e(e.S+e.F*!r(2)((function(){u((function(){}))})),"Reflect",{apply:function(t,n,r){var e=i(t),a=o(r);return u?u(e,n,a):c.call(e,n,a)}})},function(t,n,r){var e=r(0),i=r(33),o=r(18),u=r(3),c=r(4),a=r(2),f=r(95),s=(r(1).Reflect||{}).construct,l=a((function(){function t(){}return!(s((function(){}),[],t)instanceof t)})),h=!a((function(){s((function(){}))}));e(e.S+e.F*(l||h),"Reflect",{construct:function(t,n){o(t),u(n);var r=arguments.length<3?t:o(arguments[2]);if(h&&!l)return s(t,n,r);if(t==r){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(f.apply(t,e))}var a=r.prototype,p=i(c(a)?a:Object.prototype),v=Function.apply.call(t,p,n);return c(v)?v:p}})},function(t,n,r){var e=r(9),i=r(0),o=r(3),u=r(26);i(i.S+i.F*r(2)((function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,n,r){o(t),n=u(n,!0),o(r);try{return e.f(t,n,r),!0}catch(t){return!1}}})},function(t,n,r){var e=r(0),i=r(20).f,o=r(3);e(e.S,"Reflect",{deleteProperty:function(t,n){var r=i(o(t),n);return!(r&&!r.configurable)&&delete t[n]}})},function(t,n,r){"use strict";var e=r(0),i=r(3),o=function(t){this._t=i(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)};r(102)(o,"Object",(function(){var t,n=this._k;do{if(this._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}})),e(e.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,r){var e=r(20),i=r(35),o=r(13),u=r(0),c=r(4),a=r(3);u(u.S,"Reflect",{get:function t(n,r){var u,f,s=arguments.length<3?n:arguments[2];return a(n)===s?n[r]:(u=e.f(n,r))?o(u,"value")?u.value:void 0!==u.get?u.get.call(s):void 0:c(f=i(n))?t(f,r,s):void 0}})},function(t,n,r){var e=r(20),i=r(0),o=r(3);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return e.f(o(t),n)}})},function(t,n,r){var e=r(0),i=r(35),o=r(3);e(e.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,r){var e=r(0),i=r(3),o=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,r){var e=r(0);e(e.S,"Reflect",{ownKeys:r(116)})},function(t,n,r){var e=r(0),i=r(3),o=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,r){var e=r(9),i=r(20),o=r(35),u=r(13),c=r(0),a=r(28),f=r(3),s=r(4);c(c.S,"Reflect",{set:function t(n,r,c){var l,h,p=arguments.length<4?n:arguments[3],v=i.f(f(n),r);if(!v){if(s(h=o(n)))return t(h,r,c,p);v=a(0)}if(u(v,"value")){if(!1===v.writable||!s(p))return!1;if(l=i.f(p,r)){if(l.get||l.set||!1===l.writable)return!1;l.value=c,e.f(p,r,l)}else e.f(p,r,a(0,c));return!0}return void 0!==v.set&&(v.set.call(p,c),!0)}})},function(t,n,r){var e=r(0),i=r(65);i&&e(e.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,r){r(268),t.exports=r(7).Array.includes},function(t,n,r){"use strict";var e=r(0),i=r(49)(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r(36)("includes")},function(t,n,r){r(270),t.exports=r(7).Array.flatMap},function(t,n,r){"use strict";var e=r(0),i=r(271),o=r(10),u=r(6),c=r(18),a=r(104);e(e.P,"Array",{flatMap:function(t){var n,r,e=o(this);return c(t),n=u(e.length),r=a(e,0),i(r,e,e,n,0,1,t,arguments[1]),r}}),r(36)("flatMap")},function(t,n,r){"use strict";var e=r(51),i=r(4),o=r(6),u=r(17),c=r(5)("isConcatSpreadable");t.exports=function t(n,r,a,f,s,l,h,p){for(var v,d,y=s,g=0,m=!!h&&u(h,p,3);g<f;){if(g in a){if(v=m?m(a[g],g,r):a[g],d=!1,i(v)&&(d=void 0!==(d=v[c])?!!d:e(v)),d&&l>0)y=t(n,r,v,o(v.length),y,l-1)-1;else{if(y>=9007199254740991)throw TypeError();n[y]=v}y++}g++}return y}},function(t,n,r){r(273),t.exports=r(7).String.padStart},function(t,n,r){"use strict";var e=r(0),i=r(117),o=r(57),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,r){r(275),t.exports=r(7).String.padEnd},function(t,n,r){"use strict";var e=r(0),i=r(117),o=r(57),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);e(e.P+e.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,r){r(277),t.exports=r(7).String.trimLeft},function(t,n,r){"use strict";r(39)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,n,r){r(279),t.exports=r(7).String.trimRight},function(t,n,r){"use strict";r(39)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,n,r){r(281),t.exports=r(61).f("asyncIterator")},function(t,n,r){r(89)("asyncIterator")},function(t,n,r){r(283),t.exports=r(7).Object.getOwnPropertyDescriptors},function(t,n,r){var e=r(0),i=r(116),o=r(15),u=r(20),c=r(77);e(e.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,r,e=o(t),a=u.f,f=i(e),s={},l=0;f.length>l;)void 0!==(r=a(e,n=f[l++]))&&c(s,n,r);return s}})},function(t,n,r){r(285),t.exports=r(7).Object.values},function(t,n,r){var e=r(0),i=r(118)(!1);e(e.S,"Object",{values:function(t){return i(t)}})},function(t,n,r){r(287),t.exports=r(7).Object.entries},function(t,n,r){var e=r(0),i=r(118)(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},function(t,n,r){"use strict";r(110),r(289),t.exports=r(7).Promise.finally},function(t,n,r){"use strict";var e=r(0),i=r(7),o=r(1),u=r(47),c=r(112);e(e.P+e.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return c(n,t()).then((function(){return r}))}:t,r?function(r){return c(n,t()).then((function(){throw r}))}:t)}})},function(t,n,r){r(291),r(292),r(293),t.exports=r(7)},function(t,n,r){var e=r(1),i=r(0),o=r(57),u=[].slice,c=/MSIE .\./.test(o),a=function(t){return function(n,r){var e=arguments.length>2,i=!!e&&u.call(arguments,2);return t(e?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,r)}};i(i.G+i.B+i.F*c,{setTimeout:a(e.setTimeout),setInterval:a(e.setInterval)})},function(t,n,r){var e=r(0),i=r(83);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,r){for(var e=r(80),i=r(31),o=r(11),u=r(1),c=r(14),a=r(40),f=r(5),s=f("iterator"),l=f("toStringTag"),h=a.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=i(p),d=0;d<v.length;d++){var y,g=v[d],m=p[g],x=u[g],b=x&&x.prototype;if(b&&(b[s]||c(b,s,h),b[l]||c(b,l,g),a[g]=h,m))for(y in e)b[y]||o(b,y,e[y],!0)}},function(t,n,r){var e=function(t){"use strict";var n=Object.prototype,r=n.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",o=e.asyncIterator||"@@asyncIterator",u=e.toStringTag||"@@toStringTag";function c(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{c({},"")}catch(t){c=function(t,n,r){return t[n]=r}}function a(t,n,r,e){var i=n&&n.prototype instanceof l?n:l,o=Object.create(i.prototype),u=new _(e||[]);return o._invoke=function(t,n,r){var e="suspendedStart";return function(i,o){if("executing"===e)throw new Error("Generator is already running");if("completed"===e){if("throw"===i)throw o;return O()}for(r.method=i,r.arg=o;;){var u=r.delegate;if(u){var c=b(u,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===e)throw e="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);e="executing";var a=f(t,n,r);if("normal"===a.type){if(e=r.done?"completed":"suspendedYield",a.arg===s)continue;return{value:a.arg,done:r.done}}"throw"===a.type&&(e="completed",r.method="throw",r.arg=a.arg)}}}(t,r,u),o}function f(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var s={};function l(){}function h(){}function p(){}var v={};v[i]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(E([])));y&&y!==n&&r.call(y,i)&&(v=y);var g=p.prototype=l.prototype=Object.create(v);function m(t){["next","throw","return"].forEach((function(n){c(t,n,(function(t){return this._invoke(n,t)}))}))}function x(t,n){var e;this._invoke=function(i,o){function u(){return new n((function(e,u){!function e(i,o,u,c){var a=f(t[i],t,o);if("throw"!==a.type){var s=a.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?n.resolve(l.__await).then((function(t){e("next",t,u,c)}),(function(t){e("throw",t,u,c)})):n.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return e("throw",t,u,c)}))}c(a.arg)}(i,o,e,u)}))}return e=e?e.then(u,u):u()}}function b(t,n){var r=t.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,b(t,n),"throw"===n.method))return s;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var e=f(r,t.iterator,n.arg);if("throw"===e.type)return n.method="throw",n.arg=e.arg,n.delegate=null,s;var i=e.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,s):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,s)}function w(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function E(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,o=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=g.constructor=p,p.constructor=h,h.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===h||"GeneratorFunction"===(n.displayName||n.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},m(x.prototype),x.prototype[o]=function(){return this},t.AsyncIterator=x,t.async=function(n,r,e,i,o){void 0===o&&(o=Promise);var u=new x(a(n,r,e,i),o);return t.isGeneratorFunction(r)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},m(g),c(g,u,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function r(){for(;n.length;){var e=n.pop();if(e in t)return r.value=e,r.done=!1,r}return r.done=!0,r}},t.values=E,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function e(r,e){return u.type="throw",u.arg=t,n.next=r,e&&(n.method="next",n.arg=void 0),!!e}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),a=r.call(o,"finallyLoc");if(c&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,n){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?(this.method="next",this.next=o.finallyLoc,s):this.complete(u)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),s},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),s}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if("throw"===e.type){var i=e.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:E(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},function(t,n,r){r(296),t.exports=r(119).global},function(t,n,r){var e=r(297);e(e.G,{global:r(85)})},function(t,n,r){var e=r(85),i=r(119),o=r(298),u=r(300),c=r(307),a=function(t,n,r){var f,s,l,h=t&a.F,p=t&a.G,v=t&a.S,d=t&a.P,y=t&a.B,g=t&a.W,m=p?i:i[n]||(i[n]={}),x=m.prototype,b=p?e:v?e[n]:(e[n]||{}).prototype;for(f in p&&(r=n),r)(s=!h&&b&&void 0!==b[f])&&c(m,f)||(l=s?b[f]:r[f],m[f]=p&&"function"!=typeof b[f]?r[f]:y&&s?o(l,e):g&&b[f]==l?function(t){var n=function(n,r,e){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,e)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):d&&"function"==typeof l?o(Function.call,l):l,d&&((m.virtual||(m.virtual={}))[f]=l,t&a.R&&x&&!x[f]&&u(x,f,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,r){var e=r(299);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){var e=r(301),i=r(306);t.exports=r(87)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(302),i=r(303),o=r(305),u=Object.defineProperty;n.f=r(87)?Object.defineProperty:function(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t}},function(t,n,r){var e=r(86);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n,r){t.exports=!r(87)&&!r(120)((function(){return 7!=Object.defineProperty(r(304)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(86),i=r(85).document,o=e(i)&&e(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,r){var e=r(86);t.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&"function"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){function r(t,n,r,e,i,o,u){try{var c=t[o](u),a=c.value}catch(t){return void r(t)}c.done?n(a):Promise.resolve(a).then(e,i)}function e(t){return function(){var n=this,e=arguments;return new Promise((function(i,o){var u=t.apply(n,e);function c(t){r(u,i,o,c,a,"next",t)}function a(t){r(u,i,o,c,a,"throw",t)}c(void 0)}))}}var i="http://localhost:3001/ro/",o=Array.prototype.slice.call(document.getElementsByClassName("bible-verse"),0);function u(t,n){t.innerHTML="",n.forEach((function(n){return t.appendChild(n)}))}function c(t){return"true"==t.getAttribute("loaded")}function a(t){return f.apply(this,arguments)}function f(){return(f=e(regeneratorRuntime.mark((function t(n){var r,e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.children[0].innerText,e=n.children[2].children[1],t.next=4,d(v(r));case 4:return fetchedVerses=t.sent,t.abrupt("return",s(fetchedVerses,e));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function s(t,n){var r=[];return t.forEach((function(t){var n=document.createElement("li");n.style.color="#933221",n.style.fontSize="1.5em",n.style.textTransform="capitalize",n.style.paddingBottom="0.3em",n.innerHTML=t.book+" "+t.chapter,r.push(n),t.verseElements.forEach((function(t){var n=document.createElement("li"),e=document.createElement("hr");e.style.borderStyle="ridge";var i="";t.forEach((function(t){i=i+t+"<br>"})),n.innerHTML=i,r.push(n),r.push(e)}))})),r}function l(t){var n=t.getElementsByClassName("translations-container")[0].style.display;o.forEach((function(t){t.getElementsByClassName("translations-container")[0].style.display="none"})),t.getElementsByClassName("translations-container")[0].style.display=function(t,n){if("none"===t)return n;return"none"}(n,"block")}function h(t){var n=[];return function(t){var n=new RegExp(/^\d+|\d+\b|\d+(?=\w)/g).exec(t.getElementsByClassName("verse")[0].children[0].innerText);t.getElementsByClassName("verse")[0].children[0].innerText="&nbsp"+t.getElementsByClassName("verse")[0].children[0].innerText.replace(n[0],1)}(t),Array.from(t.children).forEach((function(t){var r=[];t.classList.contains("verse")&&(Array.from(t.children).forEach((function(t){var n,e;""!=t.innerText&&r.push((n=["+","*"],e=t.innerText,n.forEach((function(t){e=e.replaceAll(t,"")})),e))})),function(t){var n=new RegExp(/^\d+|\d+\b|\d+(?=\w)/g).exec(t[0]);null!=n&&(t[0]=t[0].replace(n[0],'<strong style="color: #933221">'+n[0]+"</strong>"))}(r),n.push(r))})),n}function p(t,n){var r=[];return n.forEach((function(n){r.push(t[n-1])})),r}function v(t){var n=t.replace(/ .*/,"");return{book:n,groups:function(t){var n=t.split(";"),e=[];return n.forEach((function(t){e.push(function(t){var n=t.split(":")[0],e=t.split(":")[1];return{chapter:parseInt(n),verses:r(e)}}(t))})),e}(t.replace(n,""))};function r(t){var n=t.split(","),r=[];return n.forEach((function(t){m(t)?Array.prototype.push.apply(r,e(t)):r.push(e(t))})),r}function e(t){if(function(t){if(Number(t))return!0;return!1}(t))return Number(t);if(function(t){if(t.includes(","))return!0;return!1}(t)&&console.log("Range verse group: "+t),m(t)){for(var n=t.split("-"),r=[],e=Number(n[0]);e<=Number(n[1]);e++)r.push(Number(e));return r}}}function d(t){return y.apply(this,arguments)}function y(){return(y=e(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return URL=i,r=n.book,t.abrupt("return",new Promise((function(t,e){for(var i=[],o=function(o){var u=URL+r+"/"+n.groups[o].chapter;fetch(u).then((function(t){return t.text()})).then((function(t){return(new DOMParser).parseFromString(t,"text/html")})).then((function(e){var u=e.getElementById("bibleText");n.groups.length-1==o?(i.push({book:g(r),chapter:n.groups[o].chapter,verseElements:p(h(u),n.groups[o].verses)}),t(i)):i.push({book:g(r),chapter:n.groups[o].chapter,verseElements:p(h(u),n.groups[o].verses)})})).catch((function(t){console.log(t),e()}))},u=0;u<n.groups.length;u++)o(u)})));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function g(t){return t.replaceAll("-"," ")}function m(t){return!!t.includes("-")}o.forEach((function(t){t.addEventListener("mouseover",(function(){t.style.cursor="pointer"}))})),o.forEach((function(t){t.addEventListener("click",e(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(l(t),!c(t)){n.next=5;break}return n.abrupt("return");case 5:return t.setAttribute("loaded",!0),n.next=8,a(t);case 8:r=n.sent,u(t.children[2].children[1],r);case 10:case"end":return n.stop()}}),n)}))))}))}]);
//# sourceMappingURL=bundle.js.map