diff --git a/dist/engine.bundle.js b/dist/engine.bundle.js index d49815e71..98ca7e796 100644 --- a/dist/engine.bundle.js +++ b/dist/engine.bundle.js @@ -167,46 +167,47 @@ /* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations */ 21); /* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNodeMultipliers */ 10); /* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CodingContracts */ 40); +/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CodingContracts */ 42); /* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_CodingContracts__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Company/Company */ 71); +/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Company/Company */ 73); /* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Company_Company__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Company/Companies */ 18); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/GetNextCompanyPosition */ 94); +/* harmony import */ var _Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/GetNextCompanyPosition */ 98); /* harmony import */ var _Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Company/GetJobRequirementText */ 88); +/* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Company/GetJobRequirementText */ 92); /* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Company/CompanyPositions */ 26); +/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Company/CompanyPositions */ 27); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Company/data/CompanyPositionNames */ 34); +/* harmony import */ var _Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Company/data/CompanyPositionNames */ 36); /* harmony import */ var _Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _CompanyManagement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CompanyManagement */ 58); +/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Corporation/Corporation */ 60); /* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./CreateProgram */ 23); -/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Crimes */ 35); +/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Crimes */ 37); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Faction/Faction */ 54); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Faction/Faction */ 56); /* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 44); -/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Gang */ 48); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Gang */ 50); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_18__); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./NetscriptFunctions */ 41); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./NetscriptFunctions */ 43); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_21__); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./SpecialServerIps */ 30); -/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./SourceFile */ 66); -/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! decimal.js */ 31); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./SpecialServerIps */ 32); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./SourceFile */ 69); +/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! decimal.js */ 33); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 16); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_27__); -/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../utils/IPAddress */ 57); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../utils/IPAddress */ 59); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../utils/JSONReviver */ 13); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__); @@ -930,17 +931,17 @@ PlayerObject.prototype.work = function(numCycles) { var txt = document.getElementById("work-in-progress-text"); txt.innerHTML = "You are currently working as a " + this.companyPosition + " at " + this.companyName + " (Current Company Reputation: " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(companyRep, '0,0') + ")

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(companyRep, '0,0') + ")

" + "You have been working for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + "

" + "You have earned:

" + - "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + " ($" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGainRate * CYCLES_PER_SEC, '0,0.00') + " / sec)

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) reputation for this company

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) hacking exp

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) strength exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) defense exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) dexterity exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) agility exp

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) charisma exp

" + + "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + " ($" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGainRate * CYCLES_PER_SEC, '0,0.00') + " / sec)

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) reputation for this company

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) hacking exp

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) strength exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) defense exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) dexterity exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) agility exp

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) charisma exp

" + "You will automatically finish after working for 8 hours. You can cancel earlier if you wish, " + "but you will only gain half of the reputation you've earned so far." } @@ -957,14 +958,14 @@ PlayerObject.prototype.finishWork = function(cancelled, sing=false) { this.updateSkillLevels(); var txt = "You earned a total of:
" + - "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + "
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGained, '0,0.0000') + " reputation for the company
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " strength exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " defense exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agility exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " charisma exp
"; + "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + "
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGained, '0,0.0000') + " reputation for the company
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " strength exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " defense exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agility exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " charisma exp
"; if (cancelled) { txt = "You worked a short shift of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + "

" + @@ -981,14 +982,14 @@ PlayerObject.prototype.finishWork = function(cancelled, sing=false) { if (sing) { var res = "You worked a short shift of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + " and " + - "earned $" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + ", " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGained, '0,0.0000') + " reputation, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " strength exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " defense exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agility exp, and " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " charisma exp."; + "earned $" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + ", " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGained, '0,0.0000') + " reputation, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " strength exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " defense exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agility exp, and " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " charisma exp."; this.resetWorkStatus(); return res; } @@ -1050,17 +1051,17 @@ PlayerObject.prototype.workPartTime = function(numCycles) { var txt = document.getElementById("work-in-progress-text"); txt.innerHTML = "You are currently working as a " + this.companyPosition + " at " + Player.companyName + " (Current Company Reputation: " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(companyRep, '0,0') + ")

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(companyRep, '0,0') + ")

" + "You have been working for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + "

" + "You have earned:

" + - "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + " ($" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGainRate * CYCLES_PER_SEC, '0,0.00') + " / sec)

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) reputation for this company

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) hacking exp

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) strength exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) defense exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) dexterity exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) agility exp

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) charisma exp

" + + "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + " ($" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGainRate * CYCLES_PER_SEC, '0,0.00') + " / sec)

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) reputation for this company

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) hacking exp

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) strength exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) defense exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) dexterity exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) agility exp

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) charisma exp

" + "You will automatically finish after working for 8 hours. You can cancel earlier if you wish,
" + "and there will be no penalty because this is a part-time job."; @@ -1073,14 +1074,14 @@ PlayerObject.prototype.finishWorkPartTime = function(sing=false) { this.updateSkillLevels(); var txt = "You earned a total of:
" + - "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + "
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGained, '0,0.0000') + " reputation for the company
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " strength exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " defense exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agility exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " charisma exp
"; + "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + "
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGained, '0,0.0000') + " reputation for the company
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " strength exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " defense exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agility exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " charisma exp
"; txt = "You worked for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + "

" + txt; if (!sing) {Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_26__["dialogBoxCreate"])(txt);} @@ -1091,14 +1092,14 @@ PlayerObject.prototype.finishWorkPartTime = function(sing=false) { if (sing) { var res = "You worked for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + " and " + "earned a total of " + - "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + ", " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGained, '0,0.0000') + " reputation, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " strength exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " defense exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agility exp, and " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " charisma exp"; + "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + ", " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGained, '0,0.0000') + " reputation, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " strength exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " defense exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agility exp, and " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " charisma exp"; this.resetWorkStatus(); return res; } @@ -1217,17 +1218,17 @@ PlayerObject.prototype.workForFaction = function(numCycles) { var txt = document.getElementById("work-in-progress-text"); txt.innerHTML = "You are currently " + this.currentWorkFactionDescription + " for your faction " + faction.name + - " (Current Faction Reputation: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(faction.playerReputation, '0,0') + ").
" + + " (Current Faction Reputation: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(faction.playerReputation, '0,0') + ").
" + "You have been doing this for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + "

" + "You have earned:

" + - "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGainRate * CYCLES_PER_SEC, '0,0.00') + " / sec)

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) reputation for this faction

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) hacking exp

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) strength exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) defense exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) dexterity exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) agility exp

" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) charisma exp

" + + "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGainRate * CYCLES_PER_SEC, '0,0.00') + " / sec)

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) reputation for this faction

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) hacking exp

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) strength exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) defense exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) dexterity exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) agility exp

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) charisma exp

" + "You will automatically finish after working for 20 hours. You can cancel earlier if you wish.
" + "There is no penalty for cancelling earlier."; @@ -1241,14 +1242,14 @@ PlayerObject.prototype.finishFactionWork = function(cancelled, sing=false) { var txt = "You worked for your faction " + faction.name + " for a total of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + "

" + "You earned a total of:
" + - "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + "
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGained, '0,0.0000') + " reputation for the faction
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " strength exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " defense exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agility exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " charisma exp
"; + "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + "
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGained, '0,0.0000') + " reputation for the faction
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " strength exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " defense exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agility exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " charisma exp
"; if (!sing) {Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_26__["dialogBoxCreate"])(txt);} var mainMenu = document.getElementById("mainmenu-container"); @@ -1261,13 +1262,13 @@ PlayerObject.prototype.finishFactionWork = function(cancelled, sing=false) { if (sing) { var res="You worked for your faction " + faction.name + " for a total of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + ". " + "You earned " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workRepGained, '0,0.0000') + " rep, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " str exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " def exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dex exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agi exp, and " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " cha exp."; + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workRepGained, '0,0.0000') + " rep, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " str exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " def exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dex exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agi exp, and " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " cha exp."; this.resetWorkStatus(); return res; } @@ -1609,14 +1610,14 @@ PlayerObject.prototype.takeClass = function(numCycles) { var txt = document.getElementById("work-in-progress-text"); txt.innerHTML = "You have been " + className + " for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + "

" + "This has cost you:
" + - "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + " ($" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyLossRate * CYCLES_PER_SEC, '0,0.00') + " / sec)

" + + "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + " ($" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyLossRate * CYCLES_PER_SEC, '0,0.00') + " / sec)

" + "You have gained:
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) hacking exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) strength exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) defense exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) dexterity exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) agility exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) charisma exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) hacking exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) strength exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) defense exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) dexterity exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) agility exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGainRate * CYCLES_PER_SEC, '0,0.0000') + " / sec) charisma exp
" + "You may cancel at any time"; } @@ -1631,14 +1632,14 @@ PlayerObject.prototype.finishClass = function(sing=false) { this.updateSkillLevels(); var txt = "After " + this.className + " for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + ",
" + - "you spent a total of $" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained * -1, '0,0.00') + ".

" + + "you spent a total of $" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained * -1, '0,0.00') + ".

" + "You earned a total of:
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " strength exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " defense exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agility exp
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " charisma exp
"; + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " strength exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " defense exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agility exp
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " charisma exp
"; if (!sing) {Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_26__["dialogBoxCreate"])(txt);} var mainMenu = document.getElementById("mainmenu-container"); @@ -1649,14 +1650,14 @@ PlayerObject.prototype.finishClass = function(sing=false) { _engine__WEBPACK_IMPORTED_MODULE_13__["Engine"].loadLocationContent(); if (sing) { var res="After " + this.className + " for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_30__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + ", " + - "you spent a total of $" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained * -1, '0,0.00') + ". " + + "you spent a total of $" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained * -1, '0,0.00') + ". " + "You earned a total of: " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " strength exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " defense exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agility exp, and " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " charisma exp"; + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " strength exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " defense exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dexterity exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agility exp, and " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " charisma exp"; this.resetWorkStatus(); return res; } @@ -1746,24 +1747,24 @@ PlayerObject.prototype.finishCrime = function(cancelled) { if (this.committingCrimeThruSingFn) { if(this.singFnCrimeWorkerScript.disableLogs.ALL == null && this.singFnCrimeWorkerScript.disableLogs.commitCrime == null) { this.singFnCrimeWorkerScript.scriptRef.log("Crime successful! Gained " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, "$0.000a") + ", " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hack exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " str exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " def exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dex exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agi exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " cha exp."); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, "$0.000a") + ", " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hack exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " str exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " def exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dex exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agi exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " cha exp."); } } else { Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_26__["dialogBoxCreate"])("Crime successful!

" + "You gained:
"+ - "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workMoneyGained, '0,0.00') + "
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " strength experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " defense experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dexterity experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agility experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " charisma experience"); + "$" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workMoneyGained, '0,0.00') + "
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " strength experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " defense experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dexterity experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agility experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " charisma experience"); } } else { @@ -1777,22 +1778,22 @@ PlayerObject.prototype.finishCrime = function(cancelled) { if (this.committingCrimeThruSingFn) { if(this.singFnCrimeWorkerScript.disableLogs.ALL == null && this.singFnCrimeWorkerScript.disableLogs.commitCrime == null) { this.singFnCrimeWorkerScript.scriptRef.log("Crime failed! Gained " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hack exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " str exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " def exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dex exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agi exp, " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " cha exp."); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hack exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " str exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " def exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dex exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agi exp, " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " cha exp."); } } else { Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_26__["dialogBoxCreate"])("Crime failed!

" + "You gained:
"+ - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workHackExpGained, '0,0.0000') + " hacking experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workStrExpGained, '0,0.0000') + " strength experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDefExpGained, '0,0.0000') + " defense experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workDexExpGained, '0,0.0000') + " dexterity experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workAgiExpGained, '0,0.0000') + " agility experience
" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.workChaExpGained, '0,0.0000') + " charisma experience"); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workHackExpGained, '0,0.0000') + " hacking experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workStrExpGained, '0,0.0000') + " strength experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDefExpGained, '0,0.0000') + " defense experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workDexExpGained, '0,0.0000') + " dexterity experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workAgiExpGained, '0,0.0000') + " agility experience
" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.workChaExpGained, '0,0.0000') + " charisma experience"); } } @@ -1860,7 +1861,7 @@ PlayerObject.prototype.hospitalize = function() { Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_26__["dialogBoxCreate"])( "You were in critical condition! You were taken to the hospital where " + "luckily they were able to save your life. You were charged " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(this.max_hp * _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].HospitalCostPerHp, '$0.000a') + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(this.max_hp * _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].HospitalCostPerHp, '$0.000a') ); } @@ -2576,7 +2577,7 @@ PlayerObject.prototype.gainCodingContractReward = function(reward, difficulty=1) default: var moneyGain = _Constants__WEBPACK_IMPORTED_MODULE_9__["CONSTANTS"].CodingContractBaseMoneyGain * difficulty * _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CodingContractMoney; this.gainMoney(moneyGain); - return `Gained ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__[/* numeralWrapper */ "a"].format(moneyGain, '$0.000a')}`; + return `Gained ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_25__["numeralWrapper"].format(moneyGain, '$0.000a')}`; break; } /* eslint-enable no-case-declarations */ @@ -2591,7 +2592,7 @@ function loadPlayer(saveString) { Player.total_money = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](Player.total_money); Player.lifetime_money = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](Player.lifetime_money); - if (Player.corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_10__[/* Corporation */ "a"]) { + if (Player.corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_10__[/* Corporation */ "a"]) { Player.corporation.funds = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](Player.corporation.funds); Player.corporation.revenue = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](Player.corporation.revenue); Player.corporation.expenses = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](Player.corporation.expenses); @@ -3092,31 +3093,11 @@ exports.CONSTANTS = { "RAM and CPU Core Upgrades on your home computer
" + "World Stock Exchange account and TIX API Access
", LatestUpdate: ` - v0.41.2 - * IMPORTANT - Netscript Changes: - ** rm() now takes an optional parameter that lets you specify on which server to delete the file - ** Added growthAnalyze() Netscript function - - * Gang Changes: - ** UI now displays your chance to win a clash with other gangs - ** Added getChanceToWinClash() function to the Gang API - ** Added getEquipmentType() function to the Gang API - ** Added several new hacking-based equipment and Augmentations - ** Rebalanced several equipment/upgrades to give less defense - ** Wanted level gain rate is now be slightly higher for all tasks - ** Rebalanced parameters for "hacking" tasks - - * Added new Main Menu configuration in .fconf: "compact" - * Added the terminal command 'expr', which can be used to evaluate simple mathematical expressions - * Bug Fix: Can no longer purchase duplicate equipment/Augmentations through gang.purchaseEquipment() - * Bug Fix: scp() should no longer throw errors when used with 2-arguments and an array of files - * Bug Fix: Coding Contracts no longer give money in BitNode-8 - * Bug Fix: In Bladeburner, you can no longer start a BlackOp through the Netscript API if it has already been completed - * Bug Fix: In Bladeburner, fixed a bug which caused the configured 'automate' actions to occasionally be switched to other actions - * Bug Fix: 'Return to World' button at locations no longer accumulates event listeners - * Bug Fix: Working & taking classes now continuously add/subtract money during the action, instead of doing it at completion - * Bug Fix: Top-right overview panel now displays negative money using '-' instead of '()' - * Bug Fix: Stock Market UI should no longer show 'NaN' profit immediately after buying a stock + v0.42.0 + * Corporation Changes: + ** Changed initial market prices for many materials + ** Changed the way a material's demand, competition, and market price change over time + ** ` }; @@ -3306,7 +3287,7 @@ exports.createElement = createElement; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const isString_1 = __webpack_require__(/*! ./helpers/isString */ 37); +const isString_1 = __webpack_require__(/*! ./helpers/isString */ 39); // Netburner String helper functions // Replaces the character at an index with a new character function replaceAt(base, index, character) { @@ -3410,85 +3391,54 @@ exports.generateRandomString = generateRandomString; /***/ }), /* 4 */ /*!*********************************!*\ - !*** ./src/ui/numeralFormat.js ***! + !*** ./src/ui/numeralFormat.ts ***! \*********************************/ -/*! exports provided: numeralWrapper */ -/*! exports used: numeralWrapper */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return numeralWrapper; }); -/* harmony import */ var numeral__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! numeral */ 70); -/* harmony import */ var numeral__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(numeral__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var numeral_locales_bg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! numeral/locales/bg */ 258); -/* harmony import */ var numeral_locales_bg__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_bg__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var numeral_locales_cs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! numeral/locales/cs */ 257); -/* harmony import */ var numeral_locales_cs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_cs__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var numeral_locales_da_dk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! numeral/locales/da-dk */ 256); -/* harmony import */ var numeral_locales_da_dk__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_da_dk__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var numeral_locales_de__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! numeral/locales/de */ 255); -/* harmony import */ var numeral_locales_de__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_de__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var numeral_locales_en_au__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! numeral/locales/en-au */ 254); -/* harmony import */ var numeral_locales_en_au__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_en_au__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var numeral_locales_en_gb__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! numeral/locales/en-gb */ 253); -/* harmony import */ var numeral_locales_en_gb__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_en_gb__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var numeral_locales_es__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! numeral/locales/es */ 252); -/* harmony import */ var numeral_locales_es__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_es__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var numeral_locales_fr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! numeral/locales/fr */ 251); -/* harmony import */ var numeral_locales_fr__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_fr__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var numeral_locales_hu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! numeral/locales/hu */ 250); -/* harmony import */ var numeral_locales_hu__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_hu__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var numeral_locales_it__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! numeral/locales/it */ 249); -/* harmony import */ var numeral_locales_it__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_it__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var numeral_locales_lv__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! numeral/locales/lv */ 248); -/* harmony import */ var numeral_locales_lv__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_lv__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var numeral_locales_no__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! numeral/locales/no */ 247); -/* harmony import */ var numeral_locales_no__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_no__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var numeral_locales_pl__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! numeral/locales/pl */ 246); -/* harmony import */ var numeral_locales_pl__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_pl__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var numeral_locales_ru__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! numeral/locales/ru */ 245); -/* harmony import */ var numeral_locales_ru__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(numeral_locales_ru__WEBPACK_IMPORTED_MODULE_14__); - - - - - - - - - - - - - - - +Object.defineProperty(exports, "__esModule", { value: true }); +const numeral = __webpack_require__(/*! numeral */ 80); +__webpack_require__(/*! numeral/locales/bg */ 266); +__webpack_require__(/*! numeral/locales/cs */ 265); +__webpack_require__(/*! numeral/locales/da-dk */ 264); +__webpack_require__(/*! numeral/locales/de */ 263); +__webpack_require__(/*! numeral/locales/en-au */ 262); +__webpack_require__(/*! numeral/locales/en-gb */ 261); +__webpack_require__(/*! numeral/locales/es */ 260); +__webpack_require__(/*! numeral/locales/fr */ 259); +__webpack_require__(/*! numeral/locales/hu */ 258); +__webpack_require__(/*! numeral/locales/it */ 257); +__webpack_require__(/*! numeral/locales/lv */ 256); +__webpack_require__(/*! numeral/locales/no */ 255); +__webpack_require__(/*! numeral/locales/pl */ 254); +__webpack_require__(/*! numeral/locales/ru */ 253); /* eslint-disable class-methods-use-this */ - class NumeralFormatter { constructor() { + // Default Locale + this.defaultLocale = "en"; this.defaultLocale = 'en'; } - updateLocale(l) { - if (numeral__WEBPACK_IMPORTED_MODULE_0___default.a.locale(l) == null) { + if (numeral.locale(l) == null) { console.warn(`Invalid locale for numeral: ${l}`); - - numeral__WEBPACK_IMPORTED_MODULE_0___default.a.locale(this.defaultLocale); + numeral.locale(this.defaultLocale); return false; } return true; } - format(n, format) { // numeraljs doesnt properly format numbers that are too big or too small - if (Math.abs(n) < 1e-6) { n = 0; } - return numeral__WEBPACK_IMPORTED_MODULE_0___default()(n).format(format); + if (Math.abs(n) < 1e-6) { + n = 0; + } + return numeral(n).format(format); } } - -const numeralWrapper = new NumeralFormatter(); +exports.numeralWrapper = new NumeralFormatter(); /***/ }), @@ -3608,19 +3558,19 @@ exports.Locations = { /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptEnvironment */ 105); +/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptEnvironment */ 110); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptWorker */ 24); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Script */ 28); -/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/acorn */ 46); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Script */ 30); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/acorn */ 48); /* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 52); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 54); /* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 84); +/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 88); /* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/helpers/isString */ 37); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/helpers/isString */ 39); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11__); @@ -3636,7 +3586,7 @@ exports.Locations = { -var Promise = __webpack_require__(/*! bluebird */ 230); +var Promise = __webpack_require__(/*! bluebird */ 238); Promise.config({ warnings: false, @@ -4549,7 +4499,7 @@ function isScriptErrorMessage(msg) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ../../utils/uiHelpers/getElementById */ 51); +const getElementById_1 = __webpack_require__(/*! ../../utils/uiHelpers/getElementById */ 53); /** * Adds some output to the terminal. * @param input Text or HTML to output to the terminal @@ -4602,98 +4552,99 @@ function scrollTerminalToBottom() { __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Engine", function() { return Engine; }); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/GameOptions */ 80); +/* harmony import */ var _utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/GameOptions */ 84); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 14); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 29); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 16); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); -/* harmony import */ var _utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/uiHelpers/removeLoadingScreen */ 109); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44); +/* harmony import */ var _utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/uiHelpers/removeLoadingScreen */ 115); /* harmony import */ var _utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/LogBox */ 75); -/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ActiveScriptsUI */ 64); +/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/LogBox */ 78); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ActiveScriptsUI */ 67); /* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Augmentations */ 21); -/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./BitNode */ 56); -/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Bladeburner */ 29); -/* harmony import */ var _CharacterOverview__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./CharacterOverview */ 118); -/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./CinematicText */ 93); -/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./CodingContractGenerator */ 92); -/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Company/CompanyPositions */ 26); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./BitNode */ 58); +/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Bladeburner */ 31); +/* harmony import */ var _CharacterOverview__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./CharacterOverview */ 124); +/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./CinematicText */ 97); +/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./CodingContractGenerator */ 96); +/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Company/CompanyPositions */ 27); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_18__); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Company/Companies */ 18); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_19__); -/* harmony import */ var _CompanyManagement__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./CompanyManagement */ 58); +/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Corporation/Corporation */ 60); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_21__); /* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./CreateProgram */ 23); -/* harmony import */ var _DevMenu__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./DevMenu */ 107); +/* harmony import */ var _DevMenu__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./DevMenu */ 112); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_24__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 44); -/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Fconf */ 45); -/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Location */ 86); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Fconf */ 47); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Location */ 90); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_28__); -/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./HacknetNode */ 63); -/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./InteractiveTutorial */ 33); -/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Literature */ 78); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Message */ 38); -/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./Missions */ 53); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptFunctions */ 41); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./HacknetNode */ 66); +/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./InteractiveTutorial */ 35); +/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Literature */ 82); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Message */ 40); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./Missions */ 55); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptFunctions */ 43); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./NetscriptWorker */ 24); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./Prestige */ 82); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./RedPill */ 55); -/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./SaveObject */ 72); -/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./Script */ 28); +/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./Prestige */ 86); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./RedPill */ 57); +/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./SaveObject */ 74); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./Script */ 30); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_42__); -/* harmony import */ var _ui_setSettingsLabels__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./ui/setSettingsLabels */ 117); -/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./SourceFile */ 66); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./SpecialServerIps */ 30); +/* harmony import */ var _ui_setSettingsLabels__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./ui/setSettingsLabels */ 123); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./SourceFile */ 69); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./SpecialServerIps */ 32); /* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./StockMarket */ 22); -/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./Terminal */ 49); -/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 32); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./Terminal */ 51); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 34); /* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_48__); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_49__); -/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! normalize.css */ 193); +/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! normalize.css */ 201); /* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(normalize_css__WEBPACK_IMPORTED_MODULE_50__); -/* harmony import */ var _css_styles_scss__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../css/styles.scss */ 169); +/* harmony import */ var _css_styles_scss__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../css/styles.scss */ 175); /* harmony import */ var _css_styles_scss__WEBPACK_IMPORTED_MODULE_51___default = /*#__PURE__*/__webpack_require__.n(_css_styles_scss__WEBPACK_IMPORTED_MODULE_51__); -/* harmony import */ var _css_buttons_scss__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../css/buttons.scss */ 167); +/* harmony import */ var _css_buttons_scss__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../css/buttons.scss */ 173); /* harmony import */ var _css_buttons_scss__WEBPACK_IMPORTED_MODULE_52___default = /*#__PURE__*/__webpack_require__.n(_css_buttons_scss__WEBPACK_IMPORTED_MODULE_52__); -/* harmony import */ var _css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../css/mainmenu.scss */ 165); +/* harmony import */ var _css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../css/mainmenu.scss */ 171); /* harmony import */ var _css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_53___default = /*#__PURE__*/__webpack_require__.n(_css_mainmenu_scss__WEBPACK_IMPORTED_MODULE_53__); -/* harmony import */ var _css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../css/characteroverview.scss */ 163); +/* harmony import */ var _css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../css/characteroverview.scss */ 169); /* harmony import */ var _css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_54___default = /*#__PURE__*/__webpack_require__.n(_css_characteroverview_scss__WEBPACK_IMPORTED_MODULE_54__); -/* harmony import */ var _css_terminal_scss__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../css/terminal.scss */ 161); +/* harmony import */ var _css_terminal_scss__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../css/terminal.scss */ 167); /* harmony import */ var _css_terminal_scss__WEBPACK_IMPORTED_MODULE_55___default = /*#__PURE__*/__webpack_require__.n(_css_terminal_scss__WEBPACK_IMPORTED_MODULE_55__); -/* harmony import */ var _css_menupages_scss__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../css/menupages.scss */ 159); +/* harmony import */ var _css_menupages_scss__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../css/menupages.scss */ 165); /* harmony import */ var _css_menupages_scss__WEBPACK_IMPORTED_MODULE_56___default = /*#__PURE__*/__webpack_require__.n(_css_menupages_scss__WEBPACK_IMPORTED_MODULE_56__); -/* harmony import */ var _css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../css/workinprogress.scss */ 157); +/* harmony import */ var _css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../css/workinprogress.scss */ 163); /* harmony import */ var _css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_57___default = /*#__PURE__*/__webpack_require__.n(_css_workinprogress_scss__WEBPACK_IMPORTED_MODULE_57__); -/* harmony import */ var _css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../css/popupboxes.scss */ 155); +/* harmony import */ var _css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../css/popupboxes.scss */ 161); /* harmony import */ var _css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_58___default = /*#__PURE__*/__webpack_require__.n(_css_popupboxes_scss__WEBPACK_IMPORTED_MODULE_58__); -/* harmony import */ var _css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../css/interactivetutorial.scss */ 153); +/* harmony import */ var _css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../css/interactivetutorial.scss */ 159); /* harmony import */ var _css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_59___default = /*#__PURE__*/__webpack_require__.n(_css_interactivetutorial_scss__WEBPACK_IMPORTED_MODULE_59__); -/* harmony import */ var _css_loader_scss__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../css/loader.scss */ 151); +/* harmony import */ var _css_loader_scss__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../css/loader.scss */ 157); /* harmony import */ var _css_loader_scss__WEBPACK_IMPORTED_MODULE_60___default = /*#__PURE__*/__webpack_require__.n(_css_loader_scss__WEBPACK_IMPORTED_MODULE_60__); -/* harmony import */ var _css_missions_scss__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../css/missions.scss */ 149); +/* harmony import */ var _css_missions_scss__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../css/missions.scss */ 155); /* harmony import */ var _css_missions_scss__WEBPACK_IMPORTED_MODULE_61___default = /*#__PURE__*/__webpack_require__.n(_css_missions_scss__WEBPACK_IMPORTED_MODULE_61__); -/* harmony import */ var _css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../css/companymanagement.scss */ 147); +/* harmony import */ var _css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../css/companymanagement.scss */ 153); /* harmony import */ var _css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_62___default = /*#__PURE__*/__webpack_require__.n(_css_companymanagement_scss__WEBPACK_IMPORTED_MODULE_62__); -/* harmony import */ var _css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../css/bladeburner.scss */ 145); +/* harmony import */ var _css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../css/bladeburner.scss */ 151); /* harmony import */ var _css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(_css_bladeburner_scss__WEBPACK_IMPORTED_MODULE_63__); -/* harmony import */ var _css_gang_scss__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../css/gang.scss */ 143); +/* harmony import */ var _css_gang_scss__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../css/gang.scss */ 149); /* harmony import */ var _css_gang_scss__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(_css_gang_scss__WEBPACK_IMPORTED_MODULE_64__); @@ -5119,7 +5070,7 @@ const Engine = { }, loadCorporationContent: function() { - if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) { Engine.hideAllContent(); document.getElementById("character-overview-wrapper").style.visibility = "hidden"; _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.createUI(); @@ -5167,7 +5118,7 @@ const Engine = { if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang()) { _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].gang.clearUI(); } - if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) { _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.clearUI(); } @@ -5244,17 +5195,17 @@ const Engine = { 'Money: $' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].money.toNumber(), 2) + '


' + 'Stats

' + 'Hacking Level: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_skill).toLocaleString() + - ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_exp, '(0.000a)') + ' experience)
' + + ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_exp, '(0.000a)') + ' experience)
' + 'Strength: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].strength).toLocaleString() + - ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].strength_exp, '(0.000a)') + ' experience)
' + + ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].strength_exp, '(0.000a)') + ' experience)
' + 'Defense: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].defense).toLocaleString() + - ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].defense_exp, '(0.000a)') + ' experience)
' + + ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].defense_exp, '(0.000a)') + ' experience)
' + 'Dexterity: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].dexterity).toLocaleString() + - ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].dexterity_exp, '(0.000a)') + ' experience)
' + + ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].dexterity_exp, '(0.000a)') + ' experience)
' + 'Agility: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].agility).toLocaleString() + - ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].agility_exp, '(0.000a)') + ' experience)
' + + ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].agility_exp, '(0.000a)') + ' experience)
' + 'Charisma: ' + (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].charisma).toLocaleString() + - ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].charisma_exp, '(0.000a)') + ' experience)
' + + ' (' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].charisma_exp, '(0.000a)') + ' experience)
' + intText + '

' + 'Multipliers

' + 'Hacking Chance multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_9__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hacking_chance_mult * 100, 2) + '%
' + @@ -5375,7 +5326,7 @@ const Engine = { })); genericLocationsList.appendChild(li); - if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"] && document.getElementById("location-corporation-button") == null) { + if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"] && document.getElementById("location-corporation-button") == null) { var li = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("li"); li.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("a", { innerText:_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.name, id:"location-corporation-button", @@ -5585,7 +5536,7 @@ const Engine = { } //Corporation - if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) { //Stores cycles in a "buffer". Processed separately using Engine Counters //This is to avoid constant DOM redraws when Corporation is catching up _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.storeCycles(numCycles); @@ -5752,7 +5703,7 @@ const Engine = { } if (Engine.Counters.mechanicProcess <= 0) { - if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) { _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation.process(); } if (_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) { @@ -5974,7 +5925,7 @@ const Engine = { else {stockmarket.style.display = "none";} if(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"]) {visibleMenuTabs.push(bladeburner);} else {bladeburner.style.display = "none";} - if(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {visibleMenuTabs.push(corp);} + if(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"]) {visibleMenuTabs.push(corp);} else {corp.style.display = "none";} if(_Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang()) {visibleMenuTabs.push(gang);} else {gang.style.display = "none";} @@ -6250,7 +6201,7 @@ const Engine = { job.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].companyPosition !== "" ? "list-item" : "none"; stockmarket.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].hasWseAccount ? "list-item" : "none"; bladeburner.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_14__[/* Bladeburner */ "a"] ? "list-item" : "none"; - corporation.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"] ? "list-item" : "none"; + corporation.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_20__[/* Corporation */ "a"] ? "list-item" : "none"; gang.style.display = _Player__WEBPACK_IMPORTED_MODULE_36__[/* Player */ "a"].inGang() ? "list-item" : "none"; this.classList.toggle("opened"); @@ -6531,7 +6482,7 @@ window.onload = function() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), /* 9 */ @@ -6619,7 +6570,7 @@ function dialogBoxCreate(txt, preformatted=false) { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), /* 10 */ @@ -6691,23 +6642,23 @@ exports.BitNodeMultipliers = { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return AllServers; }); /* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNodeMultipliers */ 10); /* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContracts */ 40); +/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContracts */ 42); /* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_CodingContracts__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Script */ 28); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Script */ 30); /* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CreateProgram */ 23); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SpecialServerIps */ 30); -/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TextFile */ 60); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SpecialServerIps */ 32); +/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TextFile */ 63); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 14); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/IPAddress */ 57); -/* harmony import */ var _data_servers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./data/servers */ 124); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/IPAddress */ 59); +/* harmony import */ var _data_servers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./data/servers */ 130); /* harmony import */ var _data_servers__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_data_servers__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/JSONReviver */ 13); -/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 84); +/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 88); /* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_12__); @@ -7440,8 +7391,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); * Initialization and manipulation of the Factions object, which stores data * about all Factions in the game */ -const Faction_1 = __webpack_require__(/*! ./Faction */ 54); -const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 104); +const Faction_1 = __webpack_require__(/*! ./Faction */ 56); +const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 109); const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13); exports.Factions = {}; function loadFactions(saveString) { @@ -7492,7 +7443,7 @@ exports.resetFaction = resetFaction; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 51); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 53); /** * Given an element by its ID, removes all event listeners from that element by cloning and * replacing. Then returns the new cloned element. @@ -7639,8 +7590,8 @@ function yesNoTxtInpBoxCreate(txt) { Object.defineProperty(exports, "__esModule", { value: true }); // Constructs all CompanyPosition objects using the metadata in data/companypositions.ts -const CompaniesMetadata_1 = __webpack_require__(/*! ./data/CompaniesMetadata */ 184); -const Company_1 = __webpack_require__(/*! ./Company */ 71); +const CompaniesMetadata_1 = __webpack_require__(/*! ./data/CompaniesMetadata */ 192); +const Company_1 = __webpack_require__(/*! ./Company */ 73); const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13); exports.Companies = {}; function addCompany(params) { @@ -7700,7 +7651,7 @@ exports.companyExists = companyExists; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const SettingEnums_1 = __webpack_require__(/*! ./SettingEnums */ 69); +const SettingEnums_1 = __webpack_require__(/*! ./SettingEnums */ 72); const defaultSettings = { AutosaveInterval: 60, CodeInstructionRunTime: 50, @@ -7755,8 +7706,8 @@ exports.Settings = { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 51); -const removeElement_1 = __webpack_require__(/*! ./removeElement */ 67); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 53); +const removeElement_1 = __webpack_require__(/*! ./removeElement */ 70); /** * Given its id, this function removes an element AND its children * @param id The HTML identifier to search for and remove. @@ -7799,29 +7750,29 @@ exports.removeElementById = removeElementById; /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 8); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptFunctions */ 41); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptFunctions */ 43); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptWorker */ 24); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Prestige */ 82); -/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SaveObject */ 72); -/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Script */ 28); +/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Prestige */ 86); +/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SaveObject */ 74); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Script */ 30); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Server */ 11); -/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SettingEnums */ 69); +/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SettingEnums */ 72); /* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_SettingEnums__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SourceFile */ 66); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SourceFile */ 69); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 73); +/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 76); /* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/JSONReviver */ 13); -/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/helpers/clearObject */ 74); +/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/helpers/clearObject */ 77); /* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_17__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_18__); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/helpers/isString */ 37); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/helpers/isString */ 39); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_19__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 29); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_20__); @@ -10520,10 +10471,10 @@ function displaySourceFiles(listElement, sourceFiles) { /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptFunctions */ 41); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptFunctions */ 43); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptWorker */ 24); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Stock__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Stock */ 25); +/* harmony import */ var _Stock__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Stock */ 26); /* harmony import */ var _Stock__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Stock__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 16); @@ -10532,14 +10483,15 @@ function displaySourceFiles(listElement, sourceFiles) { /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); -/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 14); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 32); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 34); /* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_13__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 29); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_16__); @@ -10626,7 +10578,7 @@ function cancelOrder(params, workerScript=null) { //Order properties are passed in. Need to look for the order var stockOrders = StockMarket["Orders"][params.stock.symbol]; var orderTxt = params.stock.symbol + " - " + params.shares + " @ " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(params.price, '$0.000a'); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(params.price, '$0.000a'); for (var i = 0; i < stockOrders.length; ++i) { var order = stockOrders[i]; if (params.shares === order.shares && @@ -10955,7 +10907,7 @@ function buyStock(stock, shares) { var totalPrice = stock.price * shares; if (_Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].money.lt(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission)) { Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("You do not have enough money to purchase this. You need " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + "."); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + "."); return false; } @@ -10965,9 +10917,9 @@ function buyStock(stock, shares) { stock.playerShares = Math.round(stock.playerShares + shares); stock.playerAvgPx = newTotal / stock.playerShares; updateStockPlayerPosition(stock); - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Bought " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.price, '($0.000a)') + " per share. Paid " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + " in commission fees."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Bought " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.price, '($0.000a)') + " per share. Paid " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + " in commission fees."); return true; } @@ -10988,9 +10940,9 @@ function sellStock(stock, shares) { stock.playerAvgPx = 0; } updateStockPlayerPosition(stock); - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Sold " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.price, '($0.000a)') + " per share. After commissions, you gained " + - "a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(gains, '($0.000a)') + "."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Sold " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.price, '($0.000a)') + " per share. After commissions, you gained " + + "a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(gains, '($0.000a)') + "."); return true; } @@ -11016,10 +10968,10 @@ function shortStock(stock, shares, workerScript=null) { if (tixApi) { workerScript.scriptRef.log("ERROR: shortStock() failed because you do not have enough " + "money to purchase this short position. You need " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + "."); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + "."); } else { Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("You do not have enough money to purchase this short position. You need " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + "."); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + "."); } return false; @@ -11033,14 +10985,14 @@ function shortStock(stock, shares, workerScript=null) { updateStockPlayerPosition(stock); if (tixApi) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.shortStock == null) { - workerScript.scriptRef.log("Bought a short position of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.price, '($0.000a)') + " per share. Paid " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + " in commission fees."); + workerScript.scriptRef.log("Bought a short position of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.price, '($0.000a)') + " per share. Paid " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + " in commission fees."); } } else { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Bought a short position of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.price, '($0.000a)') + " per share. Paid " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + " in commission fees."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Bought a short position of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.price, '($0.000a)') + " per share. Paid " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + " in commission fees."); } return true; } @@ -11077,14 +11029,14 @@ function sellShort(stock, shares, workerScript=null) { updateStockPlayerPosition(stock); if (tixApi) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.sellShort == null) { - workerScript.scriptRef.log("Sold your short position of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.price, '($0.000a)') + " per share. After commissions, you gained " + - "a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(origCost + profit, '($0.000a)') + "."); + workerScript.scriptRef.log("Sold your short position of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.price, '($0.000a)') + " per share. After commissions, you gained " + + "a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(origCost + profit, '($0.000a)') + "."); } } else { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Sold your short position of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.price, '($0.000a)') + " per share. After commissions, you gained " + - "a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(origCost + profit, '($0.000a)') + "."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Sold your short position of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(shares, '0,0') + " shares of " + stock.symbol + " at " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.price, '($0.000a)') + " per share. After commissions, you gained " + + "a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(origCost + profit, '($0.000a)') + "."); } return true; @@ -11258,7 +11210,7 @@ function displayStockMarketContent() { //Purchase WSE Account button var wseAccountButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-buy-account"); stylePurchaseButton(wseAccountButton, _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].WSEAccountCost, _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].hasWseAccount, - "Buy WSE Account - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].WSEAccountCost, '($0.000a)'), + "Buy WSE Account - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].WSEAccountCost, '($0.000a)'), "WSE Account - Purchased"); wseAccountButton.addEventListener("click", function() { _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].hasWseAccount = true; @@ -11272,7 +11224,7 @@ function displayStockMarketContent() { //Purchase TIX API Access account var tixApiAccessButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-buy-tix-api"); stylePurchaseButton(tixApiAccessButton, _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].TIXAPICost, _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].hasTixApiAccess, - "Buy Trade Information eXchange (TIX) API Access - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].TIXAPICost, '($0.000a)'), + "Buy Trade Information eXchange (TIX) API Access - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].TIXAPICost, '($0.000a)'), "TIX API Access - Purchased"); tixApiAccessButton.addEventListener("click", function() { _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].hasTixApiAccess = true; @@ -11284,7 +11236,7 @@ function displayStockMarketContent() { //Purchase Four Sigma Market Data Feed var marketDataButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-buy-4s-data"); stylePurchaseButton(marketDataButton, _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MarketData4SCost, _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].has4SData, - "Buy 4S Market Data Access - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MarketData4SCost, '($0.000a)'), + "Buy 4S Market Data Access - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MarketData4SCost, '($0.000a)'), "4S Market Data - Purchased"); marketDataButton.addEventListener("click", function() { if (_Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MarketData4SCost)) { return false; } @@ -11323,7 +11275,7 @@ function displayStockMarketContent() { //Purchase Four Sigma Market Data TIX API (Requires TIX API Access) var marketDataTixButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-buy-4s-tix-api"); stylePurchaseButton(marketDataTixButton, _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MarketDataTixApi4SCost, _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].has4SDataTixApi, - "Buy 4S Market Data TIX API Access - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MarketDataTixApi4SCost, '($0.000a)'), + "Buy 4S Market Data TIX API Access - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MarketDataTixApi4SCost, '($0.000a)'), "4S Market Data TIX API - Purchased"); if (_Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].hasTixApiAccess) { marketDataTixButton.addEventListener("click", function() { @@ -11387,7 +11339,7 @@ function displayStockMarketContent() { console.log("Creating Stock Market UI"); commissionText.innerHTML = "Commission Fees: Every transaction you make has a " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + " commission fee.

" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, '($0.000a)') + " commission fee.

" + "WARNING: When you reset after installing Augmentations, the Stock Market is reset. " + "This means all your positions are lost, so make sure to sell your stocks before installing " + "Augmentations!"; @@ -11585,7 +11537,7 @@ function createStockTicker(stock) { var li = document.createElement("li"), hdr = document.createElement("button"); hdr.classList.add("accordion-header"); hdr.setAttribute("id", tickerId + "-hdr"); - hdr.innerHTML = stock.name + " - " + stock.symbol + " - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.price, '($0.000a)'); + hdr.innerHTML = stock.name + " - " + stock.symbol + " - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.price, '($0.000a)'); //Div for entire panel var stockDiv = document.createElement("div"); @@ -11862,9 +11814,9 @@ function updateStockTicker(stock, increase) { } return; } - let hdrText = stock.name + " (" + stock.symbol + ") - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.price, '($0.000a)'); + let hdrText = stock.name + " (" + stock.symbol + ") - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.price, '($0.000a)'); if (_Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].has4SData) { - hdrText += " - Volatility: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.mv, '0,0.00') + "%" + + hdrText += " - Volatility: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.mv, '0,0.00') + "%" + " - Price Forecast: "; if (stock.b) { hdrText += "+".repeat(Math.floor(stock.otlkMag/10) + 1); @@ -11928,21 +11880,21 @@ function updateStockPlayerPosition(stock) { "

Long Position: " + "Shares in the long position will increase " + "in value if the price of the corresponding stock increases

" + - "
Shares: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.playerShares, '0,0') + - "
Average Price: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.playerAvgPx, '$0.000a') + - " (Total Cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(totalCost, '$0.000a') + ")" + - "
Profit: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(gains, '$0.000a') + - " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(percentageGains, '0.00%') + ")

"; + "
Shares: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.playerShares, '0,0') + + "
Average Price: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.playerAvgPx, '$0.000a') + + " (Total Cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(totalCost, '$0.000a') + ")" + + "
Profit: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(gains, '$0.000a') + + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(percentageGains, '0.00%') + ")

"; if (_Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].bitNodeN === 8 || (_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_2__[/* hasWallStreetSF */ "f"] && _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_2__[/* wallStreetSFLvl */ "h"] >= 2)) { stock.posTxtEl.innerHTML += "

Short Position: " + "Shares in short position will increase " + "in value if the price of the corresponding stock decreases

" + - "
Shares: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.playerShortShares, '0,0') + - "
Average Price: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.playerAvgShortPx, '$0.000a') + - " (Total Cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(shortTotalCost, '$0.000a') + ")" + - "
Profit: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(shortGains, '$0.000a') + - " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(shortPercentageGains, '0.00%') + ")" + + "
Shares: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.playerShortShares, '0,0') + + "
Average Price: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.playerAvgShortPx, '$0.000a') + + " (Total Cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(shortTotalCost, '$0.000a') + ")" + + "
Profit: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(shortGains, '$0.000a') + + " (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(shortPercentageGains, '0.00%') + ")" + "

Orders:

"; } @@ -12005,7 +11957,7 @@ function updateStockOrderList(stock) { var posText = (order.pos === PositionTypes.Long ? "Long Position" : "Short Position"); li.style.color = "white"; li.innerText = order.type + " - " + posText + " - " + - order.shares + " @ " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(order.price, '($0.000a)'); + order.shares + " @ " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(order.price, '($0.000a)'); var cancelButton = document.createElement("span"); cancelButton.classList.add("stock-market-order-cancel-btn"); @@ -12222,29 +12174,29 @@ function initCreateProgramButtons() { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return addWorkerScript; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return updateOnlineScriptTimes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return prestigeWorkerScripts; }); -/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 64); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 67); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _JSInterpreter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./JSInterpreter */ 119); -/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEnvironment */ 105); +/* harmony import */ var _JSInterpreter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./JSInterpreter */ 125); +/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEnvironment */ 110); /* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptFunctions */ 41); -/* harmony import */ var _NetscriptJSEvaluator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NetscriptJSEvaluator */ 106); -/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NetscriptPort */ 68); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptFunctions */ 43); +/* harmony import */ var _NetscriptJSEvaluator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NetscriptJSEvaluator */ 111); +/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NetscriptPort */ 71); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var escodegen__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! escodegen */ 99); +/* harmony import */ var escodegen__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! escodegen */ 104); /* harmony import */ var escodegen__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(escodegen__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/acorn */ 46); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/acorn */ 48); /* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/helpers/compareArrays */ 87); +/* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/helpers/compareArrays */ 91); /* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 52); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 54); /* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 77); +/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 81); /* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_16__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__); @@ -12269,7 +12221,7 @@ function initCreateProgramButtons() { -const walk = __webpack_require__(/*! acorn/dist/walk */ 136); +const walk = __webpack_require__(/*! acorn/dist/walk */ 142); function WorkerScript(runningScriptObj) { this.name = runningScriptObj.filename; @@ -12881,6 +12833,29 @@ function updateOnlineScriptTimes(numCycles = 1) { /***/ }), /* 25 */ +/*!**********************************************!*\ + !*** ./src/Corporation/EmployeePositions.ts ***! + \**********************************************/ +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EmployeePositions = { + Operations: "Operations", + Engineer: "Engineer", + Business: "Business", + Management: "Management", + RandD: "Research & Development", + Training: "Training", + Unassigned: "Unassigned", +}; + + +/***/ }), +/* 26 */ /*!**********************!*\ !*** ./src/Stock.ts ***! \**********************/ @@ -12929,7 +12904,7 @@ JSONReviver_1.Reviver.constructors.Stock = Stock; /***/ }), -/* 26 */ +/* 27 */ /*!*****************************************!*\ !*** ./src/Company/CompanyPositions.ts ***! \*****************************************/ @@ -12941,8 +12916,8 @@ JSONReviver_1.Reviver.constructors.Stock = Stock; Object.defineProperty(exports, "__esModule", { value: true }); // Constructs all CompanyPosition objects using the metadata in data/companypositions.ts -const CompanyPositionsMetadata_1 = __webpack_require__(/*! ./data/CompanyPositionsMetadata */ 185); -const CompanyPosition_1 = __webpack_require__(/*! ./CompanyPosition */ 81); +const CompanyPositionsMetadata_1 = __webpack_require__(/*! ./data/CompanyPositionsMetadata */ 193); +const CompanyPosition_1 = __webpack_require__(/*! ./CompanyPosition */ 85); exports.CompanyPositions = {}; function addCompanyPosition(params) { if (exports.CompanyPositions[params.name] != null) { @@ -12956,7 +12931,98 @@ CompanyPositionsMetadata_1.companyPositionMetadata.forEach((e) => { /***/ }), -/* 27 */ +/* 28 */ +/*!*****************************************!*\ + !*** ./src/Corporation/IndustryData.ts ***! + \*****************************************/ +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const numeralFormat_1 = __webpack_require__(/*! ../ui/numeralFormat */ 4); +exports.Industries = { + Energy: "Energy", + Utilities: "Water Utilities", + Agriculture: "Agriculture", + Fishing: "Fishing", + Mining: "Mining", + Food: "Food", + Tobacco: "Tobacco", + Chemical: "Chemical", + Pharmaceutical: "Pharmaceutical", + Computer: "Computer Hardware", + Robotics: "Robotics", + Software: "Software", + Healthcare: "Healthcare", + RealEstate: "RealEstate", +}; +exports.IndustryStartingCosts = { + Energy: 225e9, + Utilities: 150e9, + Agriculture: 40e9, + Fishing: 80e9, + Mining: 300e9, + Food: 10e9, + Tobacco: 20e9, + Chemical: 70e9, + Pharmaceutical: 200e9, + Computer: 500e9, + Robotics: 1e12, + Software: 25e9, + Healthcare: 750e9, + RealEstate: 600e9, +}; +exports.IndustryDescriptions = { + Energy: "Engage in the production and distribution of energy.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Energy, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Utilities: "Distributes water and provides wastewater services.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Utilities, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Agriculture: "Cultive crops and breed livestock to produce food.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Agriculture, "$0.000a") + "
" + + "Recommended starting Industry: YES", + Fishing: "Produce food through the breeding and processing of fish and fish products

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Fishing, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Mining: "Extract and process metals from the earth.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Mining, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Food: "Create your own restaurants all around the world.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Food, "$0.000a") + "
" + + "Recommended starting Industry: YES", + Tobacco: "Create and distribute tobacco and tobacco-related products.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Tobacco, "$0.000a") + "
" + + "Recommended starting Industry: YES", + Chemical: "Product industrial chemicals

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Chemical, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Pharmaceutical: "Discover, develop, and create new pharmaceutical drugs.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Pharmaceutical, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Computer: "Develop and manufacture new computer hardware and networking infrastructures.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Computer, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Robotics: "Develop and create robots.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Robotics, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Software: "Develop computer software and create AI Cores.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Software, "$0.000a") + "
" + + "Recommended starting Industry: YES", + Healthcare: "Create and manage hospitals.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.Healthcare, "$0.000a") + "
" + + "Recommended starting Industry: NO", + RealEstate: "Develop and manage real estate properties.

" + + "Starting cost: " + numeralFormat_1.numeralWrapper.format(exports.IndustryStartingCosts.RealEstate, "$0.000a") + "
" + + "Recommended starting Industry: NO", +}; + + +/***/ }), +/* 29 */ /*!******************************************************!*\ !*** ./utils/uiHelpers/removeChildrenFromElement.ts ***! \******************************************************/ @@ -12967,8 +13033,8 @@ CompanyPositionsMetadata_1.companyPositionMetadata.forEach((e) => { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const isString_1 = __webpack_require__(/*! ../helpers/isString */ 37); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 51); +const isString_1 = __webpack_require__(/*! ../helpers/isString */ 39); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 53); /** * Clears out all children from the provided element. * If a string is passed in, it will treat it as an ID and search for the element to delete all children from. @@ -12996,7 +13062,7 @@ exports.removeChildrenFromElement = removeChildrenFromElement; /***/ }), -/* 28 */ +/* 30 */ /*!***********************!*\ !*** ./src/Script.js ***! \***********************/ @@ -13016,10 +13082,10 @@ exports.removeChildrenFromElement = removeChildrenFromElement; /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Fconf */ 45); -/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractiveTutorial */ 33); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Fconf */ 47); +/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractiveTutorial */ 35); /* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptFunctions */ 41); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptFunctions */ 43); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptWorker */ 24); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Server */ 11); @@ -13027,41 +13093,42 @@ exports.removeChildrenFromElement = removeChildrenFromElement; /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ui/postToTerminal */ 7); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TextFile */ 60); +/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TextFile */ 63); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/acorn */ 46); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/acorn */ 48); /* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_13__); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/JSONReviver */ 13); -/* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/helpers/compareArrays */ 87); +/* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/helpers/compareArrays */ 91); /* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_17__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_18__); -/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 83); +/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 87); /* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_19__); -/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 77); +/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 81); /* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_20__); -var ace = __webpack_require__(/*! brace */ 244); -var beautify = __webpack_require__(/*! js-beautify */ 243).js_beautify; -__webpack_require__(/*! brace/mode/javascript */ 242); -__webpack_require__(/*! ../netscript */ 178); -__webpack_require__(/*! brace/theme/chaos */ 241); -__webpack_require__(/*! brace/theme/chrome */ 240); -__webpack_require__(/*! brace/theme/monokai */ 239); -__webpack_require__(/*! brace/theme/solarized_dark */ 238); -__webpack_require__(/*! brace/theme/solarized_light */ 237); -__webpack_require__(/*! brace/theme/terminal */ 236); -__webpack_require__(/*! brace/theme/twilight */ 235); -__webpack_require__(/*! brace/theme/xcode */ 234); -__webpack_require__(/*! brace/keybinding/vim */ 233); -__webpack_require__(/*! brace/keybinding/emacs */ 232); -__webpack_require__(/*! brace/ext/language_tools */ 231); +var ace = __webpack_require__(/*! brace */ 252); +var beautify = __webpack_require__(/*! js-beautify */ 251).js_beautify; +__webpack_require__(/*! brace/mode/javascript */ 250); +__webpack_require__(/*! ../netscript */ 184); +__webpack_require__(/*! brace/theme/chaos */ 249); +__webpack_require__(/*! brace/theme/chrome */ 248); +__webpack_require__(/*! brace/theme/monokai */ 247); +__webpack_require__(/*! brace/theme/solarized_dark */ 246); +__webpack_require__(/*! brace/theme/solarized_light */ 245); +__webpack_require__(/*! brace/theme/terminal */ 244); +__webpack_require__(/*! brace/theme/twilight */ 243); +__webpack_require__(/*! brace/theme/xcode */ 242); +__webpack_require__(/*! brace/keybinding/vim */ 241); +__webpack_require__(/*! brace/keybinding/emacs */ 240); +__webpack_require__(/*! brace/ext/language_tools */ 239); // Importing this doesn't work for some reason. -const walk = __webpack_require__(/*! acorn/dist/walk */ 136); +const walk = __webpack_require__(/*! acorn/dist/walk */ 142); @@ -13295,7 +13362,7 @@ async function updateScriptEditorContent() { var codeCopy = code.repeat(1); var ramUsage = await calculateRamUsage(codeCopy); if (ramUsage !== -1) { - scriptEditorRamText.innerText = "RAM: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_14__[/* numeralWrapper */ "a"].format(ramUsage, '0.00') + " GB"; + scriptEditorRamText.innerText = "RAM: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_14__["numeralWrapper"].format(ramUsage, '0.00') + " GB"; } else { scriptEditorRamText.innerText = "RAM: Syntax Error"; } @@ -13943,7 +14010,7 @@ function scriptCalculateOfflineProduction(runningScriptObj) { console.log(runningScriptObj.filename + " called grow() on " + serv.hostname + " " + timesGrown + " times while offline"); runningScriptObj.log("Called grow() on " + serv.hostname + " " + timesGrown + " times while offline"); var growth = Object(_Server__WEBPACK_IMPORTED_MODULE_8__[/* processSingleServerGrowth */ "k"])(serv, timesGrown * 450); - runningScriptObj.log(serv.hostname + " grown by " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_14__[/* numeralWrapper */ "a"].format(growth * 100 - 100, '0.000000%') + " from grow() calls made while offline"); + runningScriptObj.log(serv.hostname + " grown by " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_14__["numeralWrapper"].format(growth * 100 - 100, '0.000000%') + " from grow() calls made while offline"); } } @@ -14139,10 +14206,10 @@ _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_16__["Reviver"].constructors.AllServ -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 29 */ +/* 31 */ /*!****************************!*\ !*** ./src/Bladeburner.js ***! \****************************/ @@ -14158,44 +14225,45 @@ _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_16__["Reviver"].constructors.AllServ /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Faction/Faction */ 54); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Faction/Faction */ 56); /* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 44); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./RedPill */ 55); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./RedPill */ 57); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); -/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 32); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 34); /* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/createProgressBarText */ 79); +/* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/createProgressBarText */ 83); /* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 29); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/JSONReviver */ 13); -/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 61); +/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 64); /* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_16__); -/* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/uiHelpers/appendLineBreaks */ 59); +/* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/uiHelpers/appendLineBreaks */ 61); /* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_17__); -/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/helpers/clearObject */ 74); +/* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/helpers/clearObject */ 77); /* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_18__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19__); -/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 39); +/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 41); /* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_20__); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__); -/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 14); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_24__); -/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 83); +/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 87); /* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_25__); -/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 67); +/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 70); /* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_26__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_27__); @@ -15411,7 +15479,7 @@ Bladeburner.prototype.completeAction = function() { if (isOperation && this.logging.ops) { this.log(action.name + " successfully completed! Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__["formatNumber"])(gain, 3) + " rank"); } else if (!isOperation && this.logging.contracts) { - this.log(action.name + " contract successfully completed! Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__["formatNumber"])(gain, 3) + " rank and " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(moneyGain, "$0.000a")); + this.log(action.name + " contract successfully completed! Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__["formatNumber"])(gain, 3) + " rank and " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(moneyGain, "$0.000a")); } } isOperation ? this.completeOperation(true) : this.completeContract(true); @@ -16436,10 +16504,10 @@ Bladeburner.prototype.updateOverviewContent = function() { "Team Size: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__["formatNumber"])(this.teamSize, 0) + "
" + "Team Members Lost: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__["formatNumber"])(this.teamLost, 0) + "

" + "Num Times Hospitalized: " + this.numHosp + "
" + - "Money Lost From Hospitalizations: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(this.moneyLost, "$0.000a") + "

" + + "Money Lost From Hospitalizations: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(this.moneyLost, "$0.000a") + "

" + "Current City: " + this.city + "
"; - DomElems.overviewEstPop.childNodes[0].nodeValue = "Est. Synthoid Population: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(this.getCurrentCity().popEst, "0.000a"); + DomElems.overviewEstPop.childNodes[0].nodeValue = "Est. Synthoid Population: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(this.getCurrentCity().popEst, "0.000a"); DomElems.overviewEstComms.childNodes[0].nodeValue = "Est. Synthoid Communities: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__["formatNumber"])(this.getCurrentCity().comms, 0); DomElems.overviewChaos.childNodes[0].nodeValue = "City Chaos: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__["formatNumber"])(this.getCurrentCity().chaos); DomElems.overviewSkillPoints.innerText = "Skill Points: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_23__["formatNumber"])(this.skillPoints, 0); @@ -18403,10 +18471,10 @@ function initBladeburner() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 30 */ +/* 32 */ /*!*********************************!*\ !*** ./src/SpecialServerIps.js ***! \*********************************/ @@ -18473,8 +18541,8 @@ function initSpecialServerIps() { /***/ }), -/* 31 */, -/* 32 */ +/* 33 */, +/* 34 */ /*!***********************************!*\ !*** ./utils/helpers/keyCodes.ts ***! \***********************************/ @@ -18518,7 +18586,7 @@ exports.KEY = { /***/ }), -/* 33 */ +/* 35 */ /*!************************************!*\ !*** ./src/InteractiveTutorial.js ***! \************************************/ @@ -18540,7 +18608,7 @@ exports.KEY = { /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 39); +/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 41); /* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_6__); @@ -19056,7 +19124,7 @@ function iTutorialSetText(txt) { /***/ }), -/* 34 */ +/* 36 */ /*!**************************************************!*\ !*** ./src/Company/data/CompanyPositionNames.ts ***! \**************************************************/ @@ -19131,7 +19199,7 @@ exports.PartTimeCompanyPositions = [ /***/ }), -/* 35 */ +/* 37 */ /*!***********************!*\ !*** ./src/Crimes.js ***! \***********************/ @@ -19425,7 +19493,7 @@ function findCrime(roughName) { /***/ }), -/* 36 */ +/* 38 */ /*!******************************!*\ !*** ./src/NetscriptGang.js ***! \******************************/ @@ -19437,7 +19505,7 @@ function findCrime(roughName) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return unknownGangApiExceptionMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return checkGangApiAccess; }); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Gang */ 48); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Gang */ 50); /* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); @@ -19457,7 +19525,7 @@ function checkGangApiAccess(workerScript, functionName) { /***/ }), -/* 37 */ +/* 39 */ /*!***********************************!*\ !*** ./utils/helpers/isString.ts ***! \***********************************/ @@ -19479,7 +19547,7 @@ exports.isString = isString; /***/ }), -/* 38 */ +/* 40 */ /*!************************!*\ !*** ./src/Message.js ***! \************************/ @@ -19497,9 +19565,9 @@ exports.isString = isString; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Message; }); /* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations */ 21); /* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CreateProgram */ 23); -/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Missions */ 53); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Missions */ 55); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RedPill */ 55); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RedPill */ 57); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_6__); @@ -19699,7 +19767,7 @@ function initMessages() { /***/ }), -/* 39 */ +/* 41 */ /*!****************************************!*\ !*** ./utils/uiHelpers/createPopup.ts ***! \****************************************/ @@ -19711,7 +19779,7 @@ function initMessages() { Object.defineProperty(exports, "__esModule", { value: true }); const createElement_1 = __webpack_require__(/*! ./createElement */ 2); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 51); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 53); /** * Creates the necessary DOM elements to present an in-game popup to the player. * @param id The (hopefully) unique identifier for the popup container. @@ -19739,7 +19807,7 @@ exports.createPopup = createPopup; /***/ }), -/* 40 */ +/* 42 */ /*!********************************!*\ !*** ./src/CodingContracts.ts ***! \********************************/ @@ -19760,9 +19828,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); const JSONReviver_1 = __webpack_require__(/*! ../utils/JSONReviver */ 13); const createElement_1 = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); -const createPopup_1 = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 39); +const createPopup_1 = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 41); const removeElementById_1 = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20); -const codingcontracttypes_1 = __webpack_require__(/*! ./data/codingcontracttypes */ 183); +const codingcontracttypes_1 = __webpack_require__(/*! ./data/codingcontracttypes */ 189); /* tslint:disable:no-magic-numbers completed-docs max-classes-per-file no-console */ /* Represents different types of problems that a Coding Contract can have */ class CodingContractType { @@ -19913,7 +19981,7 @@ JSONReviver_1.Reviver.constructors.CodingContract = CodingContract; /***/ }), -/* 41 */ +/* 43 */ /*!***********************************!*\ !*** ./src/NetscriptFunctions.js ***! \***********************************/ @@ -19931,70 +19999,70 @@ JSONReviver_1.Reviver.constructors.CodingContract = CodingContract; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return hasCorporationSF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return hasAISF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return hasBladeburnerSF; }); -/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 64); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 67); /* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentations */ 21); /* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BitNodeMultipliers */ 10); /* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Crimes */ 35); -/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Bladeburner */ 29); -/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/Company */ 71); +/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Crimes */ 37); +/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Bladeburner */ 31); +/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/Company */ 73); /* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Company_Company__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Company/Companies */ 18); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Company/CompanyPosition */ 81); +/* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Company/CompanyPosition */ 85); /* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Company/CompanyPositions */ 26); +/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Company/CompanyPositions */ 27); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CreateProgram */ 23); -/* harmony import */ var _DarkWeb__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DarkWeb */ 76); -/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Hacking */ 47); -/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Gang */ 48); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Faction/Faction */ 54); +/* harmony import */ var _DarkWeb__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./DarkWeb */ 79); +/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Hacking */ 49); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Gang */ 50); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Faction/Faction */ 56); /* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 44); -/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./HacknetNode */ 63); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./HacknetNode */ 66); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_18__); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Message */ 38); -/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Missions */ 53); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Message */ 40); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Missions */ 55); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Script */ 28); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Script */ 30); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_24__); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./SpecialServerIps */ 30); -/* harmony import */ var _Stock__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Stock */ 25); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./SpecialServerIps */ 32); +/* harmony import */ var _Stock__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Stock */ 26); /* harmony import */ var _Stock__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_Stock__WEBPACK_IMPORTED_MODULE_26__); /* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./StockMarket */ 22); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./ui/postToTerminal */ 7); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_28__); -/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./TextFile */ 60); +/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./TextFile */ 63); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_29__); -/* harmony import */ var _NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./NetscriptBladeburner */ 50); -/* harmony import */ var _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./NetscriptGang */ 36); +/* harmony import */ var _NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./NetscriptBladeburner */ 52); +/* harmony import */ var _NetscriptGang__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./NetscriptGang */ 38); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./NetscriptWorker */ 24); /* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); -/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptPort */ 68); -/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! decimal.js */ 31); +/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptPort */ 71); +/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! decimal.js */ 33); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_36__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../utils/helpers/isPowerOfTwo */ 120); +/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../utils/helpers/isPowerOfTwo */ 126); /* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_38__); -/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 52); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 54); /* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_39___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_39__); -/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../utils/IPAddress */ 57); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../utils/IPAddress */ 59); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_41__); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../utils/helpers/isString */ 37); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../utils/helpers/isString */ 39); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_42__); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../utils/YesNoBox */ 17); -var sprintf = __webpack_require__(/*! sprintf-js */ 137).sprintf, - vsprintf = __webpack_require__(/*! sprintf-js */ 137).vsprintf +var sprintf = __webpack_require__(/*! sprintf-js */ 143).sprintf, + vsprintf = __webpack_require__(/*! sprintf-js */ 143).vsprintf @@ -24588,10 +24656,10 @@ function NetscriptFunctions(workerScript) { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 42 */ +/* 44 */ /*!*****************************************!*\ !*** ./utils/helpers/exceptionAlert.js ***! \*****************************************/ @@ -24618,7 +24686,7 @@ function exceptionAlert(e) { /***/ }), -/* 43 */ +/* 45 */ /*!**********************!*\ !*** ./src/Alias.js ***! \**********************/ @@ -24753,7 +24821,7 @@ function substituteAliases(origCommand) { /***/ }), -/* 44 */ +/* 46 */ /*!***************************************!*\ !*** ./src/Faction/FactionHelpers.js ***! \***************************************/ @@ -24774,21 +24842,22 @@ function substituteAliases(origCommand) { /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../engine */ 8); -/* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FactionInfo */ 104); +/* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FactionInfo */ 109); /* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_FactionInfo__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Location */ 86); -/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Missions */ 53); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Location */ 90); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Missions */ 55); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Player */ 0); -/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../SettingEnums */ 69); +/* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../SettingEnums */ 72); /* harmony import */ var _SettingEnums__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_SettingEnums__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../utils/DialogBox */ 9); -/* harmony import */ var _utils_FactionInvitationBox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils/FactionInvitationBox */ 123); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_FactionInvitationBox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils/FactionInvitationBox */ 129); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 29); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_15__); @@ -25022,7 +25091,7 @@ function displayFactionContent(factionName) { _Player__WEBPACK_IMPORTED_MODULE_7__[/* Player */ "a"].loseMoney(amt); var repGain = amt / _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].DonateMoneyToRepDivisor * _Player__WEBPACK_IMPORTED_MODULE_7__[/* Player */ "a"].faction_rep_mult; faction.playerReputation += repGain; - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_12__["dialogBoxCreate"])("You just donated " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__[/* numeralWrapper */ "a"].format(amt, "$0.000a") + " to " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_12__["dialogBoxCreate"])("You just donated " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(amt, "$0.000a") + " to " + faction.name + " to gain " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(repGain, 3) + " reputation"); displayFactionContent(factionName); } @@ -25303,10 +25372,10 @@ function createFactionAugmentationDisplayElements(augmentationsList, augs, facti pElem.innerHTML = "ALREADY OWNED"; } else if (faction.playerReputation >= req) { aElem.setAttribute("class", "a-link-button"); - pElem.innerHTML = "UNLOCKED - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__[/* numeralWrapper */ "a"].format(aug.baseCost * factionInfo.augmentationPriceMult, "$0.000a"); + pElem.innerHTML = "UNLOCKED - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(aug.baseCost * factionInfo.augmentationPriceMult, "$0.000a"); } else { aElem.setAttribute("class", "a-link-button-inactive"); - pElem.innerHTML = "LOCKED (Requires " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(req, 1) + " faction reputation) - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__[/* numeralWrapper */ "a"].format(aug.baseCost * factionInfo.augmentationPriceMult, "$0.000a"); + pElem.innerHTML = "LOCKED (Requires " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(req, 1) + " faction reputation) - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(aug.baseCost * factionInfo.augmentationPriceMult, "$0.000a"); pElem.style.color = "red"; } aDiv.appendChild(aElem); @@ -25469,7 +25538,7 @@ function processPassiveFactionRepGain(numCycles) { /***/ }), -/* 45 */ +/* 47 */ /*!**********************!*\ !*** ./src/Fconf.js ***! \**********************/ @@ -25482,7 +25551,7 @@ function processPassiveFactionRepGain(numCycles) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createFconf; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return parseFconfSettings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return loadFconf; }); -/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/acorn */ 46); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/acorn */ 48); /* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/DialogBox */ 9); @@ -25745,7 +25814,7 @@ function setMainMenuStyle() { /***/ }), -/* 46 */ +/* 48 */ /*!************************!*\ !*** ./utils/acorn.js ***! \************************/ @@ -29385,7 +29454,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); }))); /***/ }), -/* 47 */ +/* 49 */ /*!************************!*\ !*** ./src/Hacking.js ***! \************************/ @@ -29499,7 +29568,7 @@ function calculateWeakenTime(server, hack, int) { /***/ }), -/* 48 */ +/* 50 */ /*!*********************!*\ !*** ./src/Gang.js ***! \*********************/ @@ -29512,37 +29581,38 @@ function calculateWeakenTime(server, hack, int) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return resetGangs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return loadAllGangs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Gang; }); -/* harmony import */ var _data_gangmembertasks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data/gangmembertasks */ 122); +/* harmony import */ var _data_gangmembertasks__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./data/gangmembertasks */ 128); /* harmony import */ var _data_gangmembertasks__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_data_gangmembertasks__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _data_gangmemberupgrades__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data/gangmemberupgrades */ 121); +/* harmony import */ var _data_gangmemberupgrades__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data/gangmemberupgrades */ 127); /* harmony import */ var _data_gangmemberupgrades__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_data_gangmemberupgrades__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction/Faction */ 54); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction/Faction */ 56); /* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 44); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/JSONReviver */ 13); -/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 32); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 34); /* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 73); +/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 76); /* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 39); +/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 41); /* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_13__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 14); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_16__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 29); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_17__); -/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 67); +/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 70); /* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_18__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_19__); @@ -30011,15 +30081,15 @@ Gang.prototype.ascendMember = function(memberObj, workerScript) { if (workerScript == null) { Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])([`You ascended ${memberObj.name}!`, "", - `Your gang lost ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(res.respect, "0.000a")} respect`, + `Your gang lost ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(res.respect, "0.000a")} respect`, "", `${memberObj.name} gained the following stat multipliers for ascending:`, - `Hacking: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(res.hack, "0.000%")}`, - `Strength: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(res.str, "0.000%")}`, - `Defense: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(res.def, "0.000%")}`, - `Dexterity: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(res.dex, "0.000%")}`, - `Agility: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(res.agi, "0.000%")}`, - `Charisma: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(res.cha, "0.000%")}`].join("
")); + `Hacking: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(res.hack, "0.000%")}`, + `Strength: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(res.str, "0.000%")}`, + `Defense: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(res.def, "0.000%")}`, + `Dexterity: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(res.dex, "0.000%")}`, + `Agility: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(res.agi, "0.000%")}`, + `Charisma: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(res.cha, "0.000%")}`].join("
")); } else { workerScript.log(`Ascended Gang member ${memberObj.name}`); } @@ -30549,7 +30619,7 @@ Gang.prototype.createGangMemberUpgradeBox = function(player, initialFilter="") { }); UIElems.gangMemberUpgradeBoxDiscount = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { - innerText: "Discount: -" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(1 - 1 / this.getDiscount(), "0.00%"), + innerText: "Discount: -" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(1 - 1 / this.getDiscount(), "0.00%"), marginLeft: "6px", tooltip: "You get a discount on equipment and upgrades based on your gang's " + "respect and power. More respect and power leads to more discounts." @@ -30676,7 +30746,7 @@ GangMember.prototype.createGangMemberUpgradePanel = function(gangObj, player) { let upg = upgradeArray[j]; (function (upg, div, memberObj, i, gang) { let createElementParams = { - innerText: upg.name + " - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(upg.getCost(gang), "$0.000a"), + innerText: upg.name + " - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(upg.getCost(gang), "$0.000a"), class: "a-link-button", margin:"2px", padding:"2px", display:"block", fontSize:"11px", clickListener:()=>{ @@ -31079,13 +31149,13 @@ Gang.prototype.updateGangContent = function() { if (UIElems.gangMemberUpgradeBoxOpened) { UIElems.gangMemberUpgradeBoxDiscount.childNodes[0].nodeValue = - "Discount: -" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(1 - 1 / this.getDiscount(), "0.00%"); + "Discount: -" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(1 - 1 / this.getDiscount(), "0.00%"); } if (UIElems.gangTerritorySubpage.style.display === "block") { // Territory Warfare Clash Chance UIElems.gangTerritoryWarfareClashChance.innerText = - `Territory Clash Chance: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(this.territoryClashChance, '0.000%')}`; + `Territory Clash Chance: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(this.territoryClashChance, '0.000%')}`; // Engaged in Territory Warfare checkbox UIElems.gangTerritoryWarfareCheckbox.checked = this.territoryWarfareEngaged; @@ -31116,7 +31186,7 @@ Gang.prototype.updateGangContent = function() { const clashVictoryChance = playerPower / (gangTerritoryInfo.power + playerPower); let newHTML = `${gangname}
Power: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(gangTerritoryInfo.power, 6)}
`; newHTML += `Territory: ${displayNumber}%
`; - newHTML += `Chance to win clash with this gang: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(clashVictoryChance, "0.000%")}

`; + newHTML += `Chance to win clash with this gang: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(clashVictoryChance, "0.000%")}

`; UIElems.gangTerritoryInfoText.innerHTML += newHTML; } } @@ -31164,7 +31234,7 @@ Gang.prototype.updateGangContent = function() { UIElems.gangInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { // Money gain rate display: "inline-block", - innerText: `Money gain rate: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(5 * this.moneyGainRate, "$0.000a")} / sec`, + innerText: `Money gain rate: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(5 * this.moneyGainRate, "$0.000a")} / sec`, })); UIElems.gangInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__["createElement"])("br")); @@ -31252,12 +31322,12 @@ Gang.prototype.createGangMemberDisplayElement = function(memberObj) { const statsDiv = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { class: "gang-member-info-div", id: name + "gang-member-stats", - tooltipsmall: [`Hk: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.hack_mult * memberObj.hack_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.hack_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.hack_asc_mult, "0,0.00")} Asc)`, - `St: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.str_mult * memberObj.str_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.str_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.str_asc_mult, "0,0.00")} Asc)`, - `Df: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.def_mult * memberObj.def_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.def_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.def_asc_mult, "0,0.00")} Asc)`, - `Dx: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.dex_mult * memberObj.dex_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.dex_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.dex_asc_mult, "0,0.00")} Asc)`, - `Ag: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.agi_mult * memberObj.agi_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.agi_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.agi_asc_mult, "0,0.00")} Asc)`, - `Ch: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.cha_mult * memberObj.cha_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.cha_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.cha_asc_mult, "0,0.00")} Asc)`].join("
"), + tooltipsmall: [`Hk: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.hack_mult * memberObj.hack_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.hack_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.hack_asc_mult, "0,0.00")} Asc)`, + `St: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.str_mult * memberObj.str_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.str_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.str_asc_mult, "0,0.00")} Asc)`, + `Df: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.def_mult * memberObj.def_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.def_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.def_asc_mult, "0,0.00")} Asc)`, + `Dx: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.dex_mult * memberObj.dex_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.dex_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.dex_asc_mult, "0,0.00")} Asc)`, + `Ag: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.agi_mult * memberObj.agi_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.agi_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.agi_asc_mult, "0,0.00")} Asc)`, + `Ch: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.cha_mult * memberObj.cha_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.cha_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.cha_asc_mult, "0,0.00")} Asc)`].join("
"), }); UIElems.gangMemberPanels[name]["statsDiv"] = statsDiv; const statsP = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__["createElement"])("pre", { @@ -31275,15 +31345,15 @@ Gang.prototype.createGangMemberDisplayElement = function(memberObj) { innerText: ["Are you sure you want to ascend this member? (S)he will lose all of", "his non-Augmentation upgrades and his/her stats will reset back to 1.", "", - `Furthermore, your gang will lose ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.earnedRespect, "0.000000")} respect`, + `Furthermore, your gang will lose ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.earnedRespect, "0.000000")} respect`, "", "In return, (s)he will gain the following permanent boost to stat multipliers:\n", - `Hacking: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(ascendBenefits.hack, "0.00%")}`, - `Strength: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(ascendBenefits.str, "0.00%")}`, - `Defense: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(ascendBenefits.def, "0.00%")}`, - `Dexterity: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(ascendBenefits.dex, "0.00%")}`, - `Agility: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(ascendBenefits.agi, "0.00%")}`, - `Charisma: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(ascendBenefits.cha, "0.00%")}`].join("\n"), + `Hacking: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(ascendBenefits.hack, "0.00%")}`, + `Strength: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(ascendBenefits.str, "0.00%")}`, + `Defense: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(ascendBenefits.def, "0.00%")}`, + `Dexterity: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(ascendBenefits.dex, "0.00%")}`, + `Agility: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(ascendBenefits.agi, "0.00%")}`, + `Charisma: +${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(ascendBenefits.cha, "0.00%")}`].join("\n"), }); const confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_11__["createElement"])("button", { class: "std-button", @@ -31397,12 +31467,12 @@ Gang.prototype.updateGangMemberDisplayElement = function(memberObj) { var stats = document.getElementById(name + "gang-member-stats-text"); if (stats) { stats.innerText = - [`Hacking: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.hack, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.hack_exp, '(0.00a)')} exp)`, - `Strength: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.str, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.str_exp, '(0.00a)')} exp)`, - `Defense: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.def, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.def_exp, '(0.00a)')} exp)`, - `Dexterity: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.dex, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.dex_exp, '(0.00a)')} exp)`, - `Agility: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.agi, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.agi_exp, '(0.00a)')} exp)`, - `Charisma: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.cha, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.cha_exp, '(0.00a)')} exp)`].join("\n"); + [`Hacking: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.hack, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.hack_exp, '(0.00a)')} exp)`, + `Strength: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.str, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.str_exp, '(0.00a)')} exp)`, + `Defense: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.def, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.def_exp, '(0.00a)')} exp)`, + `Dexterity: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.dex, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.dex_exp, '(0.00a)')} exp)`, + `Agility: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.agi, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.agi_exp, '(0.00a)')} exp)`, + `Charisma: ${Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(memberObj.cha, 0)} (${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.cha_exp, '(0.00a)')} exp)`].join("\n"); } // Update tooltip for stat multipliers @@ -31411,12 +31481,12 @@ Gang.prototype.updateGangMemberDisplayElement = function(memberObj) { const statsDiv = panel["statsDiv"]; if (statsDiv) { statsDiv.firstChild.innerHTML = - [`Hk: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.hack_mult * memberObj.hack_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.hack_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.hack_asc_mult, "0,0.00")} Asc)`, - `St: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.str_mult * memberObj.str_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.str_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.str_asc_mult, "0,0.00")} Asc)`, - `Df: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.def_mult * memberObj.def_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.def_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.def_asc_mult, "0,0.00")} Asc)`, - `Dx: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.dex_mult * memberObj.dex_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.dex_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.dex_asc_mult, "0,0.00")} Asc)`, - `Ag: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.agi_mult * memberObj.agi_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.agi_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.agi_asc_mult, "0,0.00")} Asc)`, - `Ch: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.cha_mult * memberObj.cha_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.cha_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(memberObj.cha_asc_mult, "0,0.00")} Asc)`].join("
"); + [`Hk: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.hack_mult * memberObj.hack_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.hack_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.hack_asc_mult, "0,0.00")} Asc)`, + `St: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.str_mult * memberObj.str_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.str_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.str_asc_mult, "0,0.00")} Asc)`, + `Df: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.def_mult * memberObj.def_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.def_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.def_asc_mult, "0,0.00")} Asc)`, + `Dx: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.dex_mult * memberObj.dex_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.dex_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.dex_asc_mult, "0,0.00")} Asc)`, + `Ag: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.agi_mult * memberObj.agi_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.agi_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.agi_asc_mult, "0,0.00")} Asc)`, + `Ch: x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.cha_mult * memberObj.cha_asc_mult, "0,0.00")}(x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.cha_mult, "0,0.00")} Eq, x${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__["numeralWrapper"].format(memberObj.cha_asc_mult, "0,0.00")} Asc)`].join("
"); } } @@ -31473,10 +31543,10 @@ Gang.prototype.clearUI = function() { UIElems.gangMemberPanels = {}; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 49 */ +/* 51 */ /*!*************************!*\ !*** ./src/Terminal.js ***! \*************************/ @@ -31487,55 +31557,56 @@ Gang.prototype.clearUI = function() { "use strict"; /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return postNetburnerText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Terminal; }); -/* harmony import */ var _Alias__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias */ 43); -/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContracts */ 40); +/* harmony import */ var _Alias__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias */ 45); +/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContracts */ 42); /* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_CodingContracts__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./CreateProgram */ 23); -/* harmony import */ var _DarkWeb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DarkWeb */ 76); +/* harmony import */ var _DarkWeb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DarkWeb */ 79); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Fconf */ 45); -/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Hacking */ 47); -/* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./HelpText */ 96); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Fconf */ 47); +/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Hacking */ 49); +/* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./HelpText */ 100); /* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_HelpText__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./InteractiveTutorial */ 33); -/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Literature */ 78); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Message */ 38); +/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./InteractiveTutorial */ 35); +/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Literature */ 82); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Message */ 40); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./NetscriptWorker */ 24); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./RedPill */ 55); -/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Script */ 28); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./RedPill */ 57); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Script */ 30); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_17__); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SpecialServerIps */ 30); -/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TextFile */ 60); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SpecialServerIps */ 32); +/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TextFile */ 63); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_19__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_21__); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); -/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 32); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 34); /* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_23__); -/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 61); +/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 64); /* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_24__); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/helpers/isString */ 37); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/helpers/isString */ 39); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_25__); -/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 52); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 54); /* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_26__); -/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 83); +/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 87); /* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_27__); -/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../utils/LogBox */ 75); +/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../utils/LogBox */ 78); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../utils/YesNoBox */ 17); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./ui/postToTerminal */ 7); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__); -/* harmony import */ var autosize__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! autosize */ 140); +/* harmony import */ var autosize__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! autosize */ 146); /* harmony import */ var autosize__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(autosize__WEBPACK_IMPORTED_MODULE_31__); -/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! jszip */ 139); +/* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! jszip */ 145); /* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(jszip__WEBPACK_IMPORTED_MODULE_32__); -/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! file-saver */ 138); +/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! file-saver */ 144); /* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_33__); @@ -32229,11 +32300,11 @@ let Terminal = { server.fortify(_Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].ServerFortifyAmount); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Hack successful! Gained " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(moneyGained, '($0,0.00)') + " and " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(expGainedOnSuccess, '0.0000') + " hacking EXP"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Hack successful! Gained " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(moneyGained, '($0,0.00)') + " and " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(expGainedOnSuccess, '0.0000') + " hacking EXP"); } else { //Failure //Player only gains 25% exp for failure? TODO Can change this later to balance _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].gainHackingExp(expGainedOnFailure) - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Failed to hack " + server.hostname + ". Gained " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(expGainedOnFailure, '0.0000') + " hacking EXP"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Failed to hack " + server.hostname + ". Gained " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(expGainedOnFailure, '0.0000') + " hacking EXP"); } } @@ -32256,10 +32327,10 @@ let Terminal = { else {rootAccess = "NO";} Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Root Access: " + rootAccess); Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Required hacking skill: " + currServ.requiredHackingSkill); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Server security level: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(currServ.hackDifficulty, '0.000a')); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Chance to hack: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingChance */ "b"])(currServ), '0.00%')); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Time to hack: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingTime */ "d"])(currServ), '0.000') + " seconds"); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Total money available on server: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(currServ.moneyAvailable, '$0,0.00')); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Server security level: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(currServ.hackDifficulty, '0.000a')); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Chance to hack: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingChance */ "b"])(currServ), '0.00%')); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Time to hack: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingTime */ "d"])(currServ), '0.000') + " seconds"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Total money available on server: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(currServ.moneyAvailable, '$0,0.00')); Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Required number of open ports for NUKE: " + currServ.numOpenPortsRequired); if (currServ.sshPortOpen) { @@ -32743,7 +32814,7 @@ let Terminal = { var scriptBaseRamUsage = currServ.scripts[i].ramUsage; var ramUsage = scriptBaseRamUsage * numThreads; - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("This script requires " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(ramUsage, '0.00') + " GB of RAM to run for " + numThreads + " thread(s)"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("This script requires " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(ramUsage, '0.00') + " GB of RAM to run for " + numThreads + " thread(s)"); return; } } @@ -33106,7 +33177,7 @@ let Terminal = { var spacesThread = Array(numSpacesThread+1).join(" "); //Calculate and transform RAM usage - ramUsage = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(script.scriptRef.ramUsage * script.threads, '0.00') + " GB"; + ramUsage = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(script.scriptRef.ramUsage * script.threads, '0.00') + " GB"; var entry = [script.filename, spacesScript, script.threads, spacesThread, ramUsage]; Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])(entry.join("")); @@ -33362,9 +33433,9 @@ let Terminal = { if (commandArray.length != 1) { Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Incorrect usage of free command. Usage: free"); return; } - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Total: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().maxRam, '0.00') + " GB"); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Used: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().ramUsed, '0.00') + " GB"); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Available: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().maxRam - _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().ramUsed, '0.00') + " GB"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Total: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().maxRam, '0.00') + " GB"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Used: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().ramUsed, '0.00') + " GB"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Available: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().maxRam - _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].getCurrentServer().ramUsed, '0.00') + " GB"); }, //First called when the "run [program]" command is called. Checks to see if you @@ -33485,9 +33556,9 @@ let Terminal = { Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Server base security level: " + targetServer.baseDifficulty); Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Server current security level: " + targetServer.hackDifficulty); Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Server growth rate: " + targetServer.serverGrowth); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Netscript hack() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingTime */ "d"])(targetServer), '0.0') + "s"); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Netscript grow() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateGrowTime */ "a"])(targetServer), '0.0') + "s"); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Netscript weaken() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateWeakenTime */ "f"])(targetServer), '0.0') + "s"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Netscript hack() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateHackingTime */ "d"])(targetServer), '0.0') + "s"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Netscript grow() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateGrowTime */ "a"])(targetServer), '0.0') + "s"); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Netscript weaken() execution time: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(Object(_Hacking__WEBPACK_IMPORTED_MODULE_7__[/* calculateWeakenTime */ "f"])(targetServer), '0.0') + "s"); }; programHandlers[_CreateProgram__WEBPACK_IMPORTED_MODULE_3__[/* Programs */ "a"].AutoLink.name] = () => { Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("This executable cannot be run."); @@ -33513,7 +33584,7 @@ let Terminal = { if(!fulfilled) { Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Augmentations: " + _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].augmentations.length + " / 30"); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Money: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].money.toNumber(), '($0.000a)') + " / " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__[/* numeralWrapper */ "a"].format(1e11, '($0.000a)')); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Money: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].money.toNumber(), '($0.000a)') + " / " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_22__["numeralWrapper"].format(1e11, '($0.000a)')); Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("One path below must be fulfilled..."); Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("----------HACKING PATH----------"); Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_30__["post"])("Hacking skill: " + _Player__WEBPACK_IMPORTED_MODULE_13__[/* Player */ "a"].hacking_skill + " / 2500"); @@ -33692,10 +33763,10 @@ let Terminal = { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 50 */ +/* 52 */ /*!*************************************!*\ !*** ./src/NetscriptBladeburner.js ***! \*************************************/ @@ -33708,7 +33779,7 @@ let Terminal = { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return unknownBladeburnerExceptionMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return checkBladeburnerAccess; }); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Bladeburner */ 29); +/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Bladeburner */ 31); /* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); @@ -33739,7 +33810,7 @@ function checkBladeburnerAccess(workerScript, functionName) { /***/ }), -/* 51 */ +/* 53 */ /*!*******************************************!*\ !*** ./utils/uiHelpers/getElementById.ts ***! \*******************************************/ @@ -33767,7 +33838,7 @@ exports.getElementById = getElementById; /***/ }), -/* 52 */ +/* 54 */ /*!****************************************!*\ !*** ./utils/helpers/arrayToString.ts ***! \****************************************/ @@ -33788,7 +33859,7 @@ exports.arrayToString = arrayToString; /***/ }), -/* 53 */ +/* 55 */ /*!*************************!*\ !*** ./src/Missions.js ***! \*************************/ @@ -33804,20 +33875,20 @@ exports.arrayToString = arrayToString; /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 44); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 16); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 61); +/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 64); /* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 14); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/isString */ 37); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/isString */ 39); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var jsplumb__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! jsplumb */ 228); +/* harmony import */ var jsplumb__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! jsplumb */ 236); /* harmony import */ var jsplumb__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jsplumb__WEBPACK_IMPORTED_MODULE_10__); @@ -35357,10 +35428,10 @@ HackingMission.prototype.finishMission = function(win) { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 54 */ +/* 56 */ /*!********************************!*\ !*** ./src/Faction/Faction.ts ***! \********************************/ @@ -35372,7 +35443,7 @@ HackingMission.prototype.finishMission = function(win) { Object.defineProperty(exports, "__esModule", { value: true }); const Constants_1 = __webpack_require__(/*! ../Constants */ 1); -const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 104); +const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 109); const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13); class Faction { constructor(name = "") { @@ -35484,7 +35555,7 @@ JSONReviver_1.Reviver.constructors.Faction = Faction; /***/ }), -/* 55 */ +/* 57 */ /*!************************!*\ !*** ./src/RedPill.js ***! \************************/ @@ -35495,16 +35566,16 @@ JSONReviver_1.Reviver.constructors.Faction = Faction; "use strict"; /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return redPillFlag; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return hackWorldDaemon; }); -/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode */ 56); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode */ 58); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 8); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Prestige */ 82); -/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SourceFile */ 66); -/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Terminal */ 49); +/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Prestige */ 86); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SourceFile */ 69); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Terminal */ 51); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 16); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 29); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/YesNoBox */ 17); @@ -35839,10 +35910,10 @@ function createBitNodeYesNoEventListeners(newBitNode, destroyedBitNode, flume=fa -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 56 */ +/* 58 */ /*!************************!*\ !*** ./src/BitNode.js ***! \************************/ @@ -36234,7 +36305,7 @@ function initBitNodeMultipliers() { /***/ }), -/* 57 */ +/* 59 */ /*!****************************!*\ !*** ./utils/IPAddress.js ***! \****************************/ @@ -36246,7 +36317,7 @@ function initBitNodeMultipliers() { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return createRandomIp; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ipExists; }); /* harmony import */ var _src_Server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/Server */ 11); -/* harmony import */ var _helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/getRandomByte */ 89); +/* harmony import */ var _helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/getRandomByte */ 93); /* harmony import */ var _helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1__); @@ -36284,47 +36355,75 @@ function ipExists(ip) { /***/ }), -/* 58 */ -/*!**********************************!*\ - !*** ./src/CompanyManagement.js ***! - \**********************************/ -/*! exports provided: Corporation */ +/* 60 */ +/*!****************************************!*\ + !*** ./src/Corporation/Corporation.js ***! + \****************************************/ +/*! exports provided: TOTALSHARES, CyclesPerMarketCycle, CyclesPerIndustryStateCycle, SecsPerMarketCycle, Cities, WarehouseInitialCost, WarehouseInitialSize, WarehouseUpgradeBaseCost, OfficeInitialCost, OfficeInitialSize, OfficeUpgradeBaseCost, BribeThreshold, BribeToRepRatio, ProductProductionCostRatio, Corporation */ /*! exports used: Corporation */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +/* unused harmony export TOTALSHARES */ +/* unused harmony export CyclesPerMarketCycle */ +/* unused harmony export CyclesPerIndustryStateCycle */ +/* unused harmony export SecsPerMarketCycle */ +/* unused harmony export Cities */ +/* unused harmony export WarehouseInitialCost */ +/* unused harmony export WarehouseInitialSize */ +/* unused harmony export WarehouseUpgradeBaseCost */ +/* unused harmony export OfficeInitialCost */ +/* unused harmony export OfficeInitialSize */ +/* unused harmony export OfficeUpgradeBaseCost */ +/* unused harmony export BribeThreshold */ +/* unused harmony export BribeToRepRatio */ +/* unused harmony export ProductProductionCostRatio */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Corporation; }); -/* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNodeMultipliers */ 10); -/* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Faction/Factions */ 15); -/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Literature */ 78); -/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Locations */ 5); -/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! decimal.js */ 31); -/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); -/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/uiHelpers/clearSelector */ 127); -/* harmony import */ var _utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/JSONReviver */ 13); -/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); -/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 39); -/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ui/navigationTracking */ 12); +/* harmony import */ var _CorporationState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CorporationState */ 114); +/* harmony import */ var _CorporationState__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CorporationState__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./EmployeePositions */ 25); +/* harmony import */ var _EmployeePositions__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__); +/* harmony import */ var _IndustryData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./IndustryData */ 28); +/* harmony import */ var _IndustryData__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_IndustryData__WEBPACK_IMPORTED_MODULE_2__); +/* harmony import */ var _Material__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Material */ 62); +/* harmony import */ var _Material__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Material__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _MaterialSizes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./MaterialSizes */ 75); +/* harmony import */ var _MaterialSizes__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_MaterialSizes__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _Product__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Product */ 101); +/* harmony import */ var _Product__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Product__WEBPACK_IMPORTED_MODULE_5__); +/* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../BitNodeMultipliers */ 10); +/* harmony import */ var _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Faction/Factions */ 15); +/* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Literature */ 82); +/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Locations */ 5); +/* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_9__); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Player */ 0); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__); +/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); -/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 14); -/* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/helpers/isString */ 37); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__); -/* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20); -/* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__); -/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/YesNoBox */ 17); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils/DialogBox */ 9); +/* harmony import */ var _utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/uiHelpers/clearSelector */ 133); +/* harmony import */ var _utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_14__); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils/JSONReviver */ 13); +/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../utils/uiHelpers/createElement */ 2); +/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__); +/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../utils/uiHelpers/createPopup */ 41); +/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__); +/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils/StringHelperFunctions */ 3); +/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__); +/* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils/helpers/getRandomInt */ 14); +/* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../utils/helpers/isString */ 39); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20__); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 29); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_21__); +/* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../utils/uiHelpers/removeElementById */ 20); +/* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../utils/YesNoBox */ 17); +/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! decimal.js */ 33); + @@ -36347,543 +36446,33 @@ function ipExists(ip) { -/* State */ -var companyStates = ["START", "PURCHASE", "PRODUCTION", "SALE", "EXPORT"]; -function CorporationState() { - this.state = 0; -} -CorporationState.prototype.nextState = function() { - if (this.state < 0 || this.state >= companyStates.length) { - this.state = 0; - } - ++this.state; - if (this.state >= companyStates.length) { - this.state = 0; - } -} -CorporationState.prototype.getState = function() { - return companyStates[this.state]; -} -CorporationState.prototype.toJSON = function() { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("CorporationState", this); -} -CorporationState.fromJSON = function(value) { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(CorporationState, value.data); -} -_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.CorporationState = CorporationState; /* Constants */ -var TOTALSHARES = 1e9; //Total number of shares you have at your company -var CyclesPerMarketCycle = 75; -var CyclesPerIndustryStateCycle = CyclesPerMarketCycle / companyStates.length; -var SecsPerMarketCycle = CyclesPerMarketCycle / 5; -var Cities = ["Aevum", "Chongqing", "Sector-12", "New Tokyo", "Ishima", "Volhaven"]; -var WarehouseInitialCost = 5e9; //Initial purchase cost of warehouse -var WarehouseInitialSize = 100; -var WarehouseUpgradeBaseCost = 1e9; +const TOTALSHARES = 1e9; //Total number of shares you have at your company +const CyclesPerMarketCycle = 75; +const CyclesPerIndustryStateCycle = CyclesPerMarketCycle / _CorporationState__WEBPACK_IMPORTED_MODULE_0__["AllCorporationStates"].length; +const SecsPerMarketCycle = CyclesPerMarketCycle / 5; +const Cities = ["Aevum", "Chongqing", "Sector-12", "New Tokyo", "Ishima", "Volhaven"]; +const WarehouseInitialCost = 5e9; //Initial purchase cost of warehouse +const WarehouseInitialSize = 100; +const WarehouseUpgradeBaseCost = 1e9; -var OfficeInitialCost = 4e9; -var OfficeInitialSize = 3; -var OfficeUpgradeBaseCost = 1e9; +const OfficeInitialCost = 4e9; +const OfficeInitialSize = 3; +const OfficeUpgradeBaseCost = 1e9; -var BribeThreshold = 100e12; //Money needed to be able to bribe for faction rep -var BribeToRepRatio = 1e9; //Bribe Value divided by this = rep gain +const BribeThreshold = 100e12; //Money needed to be able to bribe for faction rep +const BribeToRepRatio = 1e9; //Bribe Value divided by this = rep gain -var ProductProductionCostRatio = 5; //Ratio of material cost of a product to its production cost - -function Material(params={}) { - this.name = params.name ? params.name : ""; - this.qty = 0; //Quantity - this.qlt = 0; //Quality, unbounded - this.dmd = 0; //Demand, 0-100? - this.dmdR = 0; //Range of possible demand - this.cmp = 0; //Competition, 0-100 - this.cmpR = 0; //Range of possible competition - this.mv = 0; //Maximum Volatility of stats - - //Markup. Determines how high of a price you can charge on the material - //compared to the market price (bCost) based on quality - //Quality is divided by this to determine markup limits - //e.g if mku is 10 and quality is 100 then you can mark up prices by 100/10 = 10 - //without consequences - this.mku = 0; - - this.buy = 0; //How much of this material is being bought per second - this.sll = 0; //How much of this material is being sold per second - this.prd = 0; //How much of this material is being produced per second - this.exp = []; //Exports of this material to another warehouse/industry - this.totalExp = 0; //Total export amount for last cycle - this.imp = 0; - this.bCost = 0; //$ Cost/sec to buy material - this.sCost = 0; //$ Cost/sec to sell material - - //[Whether production/sale is limited, limit amount] - this.prdman = [false, 0]; //Production for this material is manually limited - this.sllman = [false, 0]; //Sale of this material is manually limited - this.init(); -} - -Material.prototype.init = function(mats={}) { - switch(this.name) { - case "Water": - this.dmd = 75; this.dmdR = [65, 85]; - this.cmp = 50; this.cmpR = [40, 60]; - this.bCost = 1000; this.mv = 0.2; - this.mku = 6; - break; - case "Energy": - this.dmd = 90; this.dmdR = [80, 100]; - this.cmp = 80; this.cmpR = [65, 95]; - this.bCost = 1500; this.mv = 0.2; - this.mku = 6; - break; - case "Food": - this.dmd = 80; this.dmdR = [70, 90]; - this.cmp = 60; this.cmpR = [35, 85]; - this.bCost = 5000; this.mv = 1; - this.mku = 3; - break; - case "Plants": - this.dmd = 70; this.dmdR = [20, 90]; - this.cmp = 50; this.cmpR = [30, 70]; - this.bCost = 3000; this.mv = 0.6; - this.mku = 3.75; - break; - case "Metal": - this.dmd = 80; this.dmdR = [75, 85]; - this.cmp = 70; this.cmpR = [60, 80]; - this.bCost = 2650; this.mv = 1; - this.mku = 6; - break; - case "Hardware": - this.dmd = 85; this.dmdR = [80, 90]; - this.cmp = 80; this.cmpR = [65, 95]; - this.bCost = 4000; this.mv = 0.5; //Less mv bc its processed twice - this.mku = 1; - break; - case "Chemicals": - this.dmd = 55; this.dmdR = [40, 70]; - this.cmp = 60; this.cmpR = [40, 80]; - this.bCost = 6750; this.mv = 1.2; - this.mku = 2; - break; - case "Real Estate": - this.dmd = 50; this.dmdR = [5, 100]; - this.cmp = 50; this.cmpR = [25, 75]; - this.bCost = 16e3; this.mv = 1.5; //Less mv bc its processed twice - this.mku = 1.5; - break; - case "Drugs": - this.dmd = 60; this.dmdR = [45, 75]; - this.cmp = 70; this.cmpR = [40, 100]; - this.bCost = 8e3; this.mv = 1.6; - this.mku = 1; - break; - case "Robots": - this.dmd = 90; this.dmdR = [80, 100]; - this.cmp = 90; this.cmpR = [80, 100]; - this.bCost = 20e3; this.mv = 0.5; //Less mv bc its processed twice - this.mku = 1; - break; - case "AI Cores": - this.dmd = 90; this.dmdR = [80, 100]; - this.cmp = 90; this.cmpR = [80, 100]; - this.bCost = 27e3; this.mv = 0.8; //Less mv bc its processed twice - this.mku = 0.5; - break; - case "Scientific Research": - break; - default: - console.log("Invalid material type in init(): " + this.name); - break; - } -} - -//Process change in demand, competition, and buy cost of this material -Material.prototype.processMarket = function() { - //This 1st random check determines whether competition increases or decreases - //More competition = lower market price - var v = (Math.random() * this.mv) / 100; - var pv = (Math.random() * this.mv) / 300; - if (Math.random() < 0.42) { - this.cmp *= (1+v); - if (this.cmp > this.cmpR[1]) {this.cmp = this.cmpR[1]}; - this.bCost *= (1-pv); - } else { - this.cmp *= (1-v); - if (this.cmp < this.cmpR[0]) {this.cmp = this.cmpR[0];} - this.bCost *= (1+pv); - } - - //This 2nd random check determines whether demand increases or decreases - //More demand = higher market price - v = (Math.random() * this.mv) / 100; - pv = (Math.random() * this.mv) / 300; - if (Math.random() < 0.45) { - this.dmd *= (1+v); - if (this.dmd > this.dmdR[1]) {this.dmd = this.dmdR[1];} - this.bCost *= (1+pv); - } else { - this.dmd *= (1-v); - if (this.dmd < this.dmdR[0]) {this.dmd = this.dmdR[0];} - this.bCost *= (1-pv); - } -} - -Material.prototype.toJSON = function() { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Material", this); -} - -Material.fromJSON = function(value) { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Material, value.data); -} - -_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Material = Material; - -//Map of material (by name) to their sizes (how much space it takes in warehouse) -let MaterialSizes = { - Water: 0.05, - Energy: 0.01, - Food: 0.03, - Plants: 0.05, - Metal: 0.1, - Hardware: 0.06, - Chemicals: 0.05, - Drugs: 0.02, - Robots: 0.5, - AICores: 0.1, - RealEstate: 0, -} - -function Product(params={}) { - this.name = params.name ? params.name : 0; - this.dmd = params.demand ? params.demand : 0; - this.cmp = params.competition ? params.competition : 0; - this.mku = params.markup ? params.markup : 0; - this.pCost = 0; //An estimate of how much money it costs to make this - this.sCost = 0; //How much this is selling for - - //Variables for creation of product - this.fin = false; //Finished being created - this.prog = 0; //0-100% created - this.createCity = params.createCity ? params.createCity : ""; // City in which the product is being created - this.designCost = params.designCost ? params.designCost : 0; - this.advCost = params.advCost ? params.advCost : 0; - - //Aggregate score for a product's 'rating' based on the other properties below - //The weighting of the other properties (performance, durability) - //differs between industries - this.rat = 0; - - this.qlt = params.quality ? params.quality : 0; - this.per = params.performance ? params.performance : 0; - this.dur = params.durability ? params.durability : 0; - this.rel = params.reliability ? params.reliability : 0; - this.aes = params.aesthetics ? params.aesthetics : 0; - this.fea = params.features ? params.features : 0; - - //Data refers to the production, sale, and quantity of the products - //These values are specific to a city - //The data is [qty, prod, sell] - this.data = { - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Aevum]: [0, 0, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Chongqing]: [0, 0, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Sector12]: [0, 0, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].NewTokyo]: [0, 0, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Ishima]: [0, 0, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Volhaven]: [0, 0, 0], - } - - //Only applies for location-based products like restaurants/hospitals - this.loc = params.loc ? params.loc : 0; - - //How much space it takes in the warehouse. Not applicable for all products - this.siz = params.size ? params.size : 0; - - //Material requirements. An object that maps the name of a material to how much it requires - //to make 1 unit of the product. - this.reqMats = params.req ? params.req : {}; - - //[Whether production/sale is limited, limit amount] - this.prdman = { - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Aevum]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Chongqing]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Sector12]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].NewTokyo]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Ishima]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Volhaven]: [false, 0], - } - - this.sllman = { - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Aevum]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Chongqing]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Sector12]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].NewTokyo]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Ishima]: [false, 0], - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Volhaven]: [false, 0], - } -} - -//empWorkMult is a multiplier that increases progress rate based on -//productivity of employees -Product.prototype.createProduct = function(marketCycles=1, empWorkMult=1) { - if (this.fin) {return;} - this.prog += (marketCycles * .01 * empWorkMult); -} - -//'industry' is a reference to the industry that makes the product -Product.prototype.finishProduct = function(employeeProd, industry) { - this.fin = true; - - //Calculate properties - var progrMult = this.prog / 100; - - var engrRatio = employeeProd[EmployeePositions.Engineer] / employeeProd["total"], - mgmtRatio = employeeProd[EmployeePositions.Management] / employeeProd["total"], - rndRatio = employeeProd[EmployeePositions.RandD] / employeeProd["total"], - opsRatio = employeeProd[EmployeePositions.Operations] / employeeProd["total"], - busRatio = employeeProd[EmployeePositions.Business] / employeeProd["total"]; - var designMult = 1 + (Math.pow(this.designCost, 0.1) / 100); - console.log("designMult: " + designMult); - var balanceMult = (1.2 * engrRatio) + (0.9 * mgmtRatio) + (1.3 * rndRatio) + - (1.5 * opsRatio) + (busRatio); - var sciMult = 1 + (Math.pow(industry.sciResearch.qty, industry.sciFac) / 800); - var totalMult = progrMult * balanceMult * designMult * sciMult; - - this.qlt = totalMult * ((0.10 * employeeProd[EmployeePositions.Engineer]) + - (0.05 * employeeProd[EmployeePositions.Management]) + - (0.05 * employeeProd[EmployeePositions.RandD]) + - (0.02 * employeeProd[EmployeePositions.Operations]) + - (0.02 * employeeProd[EmployeePositions.Business])); - this.per = totalMult * ((0.15 * employeeProd[EmployeePositions.Engineer]) + - (0.02 * employeeProd[EmployeePositions.Management]) + - (0.02 * employeeProd[EmployeePositions.RandD]) + - (0.02 * employeeProd[EmployeePositions.Operations]) + - (0.02 * employeeProd[EmployeePositions.Business])); - this.dur = totalMult * ((0.05 * employeeProd[EmployeePositions.Engineer]) + - (0.02 * employeeProd[EmployeePositions.Management]) + - (0.08 * employeeProd[EmployeePositions.RandD]) + - (0.05 * employeeProd[EmployeePositions.Operations]) + - (0.05 * employeeProd[EmployeePositions.Business])); - this.rel = totalMult * ((0.02 * employeeProd[EmployeePositions.Engineer]) + - (0.08 * employeeProd[EmployeePositions.Management]) + - (0.02 * employeeProd[EmployeePositions.RandD]) + - (0.05 * employeeProd[EmployeePositions.Operations]) + - (0.08 * employeeProd[EmployeePositions.Business])); - this.aes = totalMult * ((0.00 * employeeProd[EmployeePositions.Engineer]) + - (0.08 * employeeProd[EmployeePositions.Management]) + - (0.05 * employeeProd[EmployeePositions.RandD]) + - (0.02 * employeeProd[EmployeePositions.Operations]) + - (0.10 * employeeProd[EmployeePositions.Business])); - this.fea = totalMult * ((0.08 * employeeProd[EmployeePositions.Engineer]) + - (0.05 * employeeProd[EmployeePositions.Management]) + - (0.02 * employeeProd[EmployeePositions.RandD]) + - (0.05 * employeeProd[EmployeePositions.Operations]) + - (0.05 * employeeProd[EmployeePositions.Business])); - this.calculateRating(industry); - var advMult = 1 + (Math.pow(this.advCost, 0.1) / 100); - this.mku = 100 / (advMult * Math.pow((this.qlt + 0.001), 0.65) * (busRatio + mgmtRatio)); - this.dmd = industry.awareness === 0 ? 20 : Math.min(100, advMult * (100 * (industry.popularity / industry.awareness))); - this.cmp = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(0, 70); - - //Calculate the product's required materials - //For now, just set it to be the same as the requirements to make materials - for (var matName in industry.reqMats) { - if (industry.reqMats.hasOwnProperty(matName)) { - this.reqMats[matName] = industry.reqMats[matName]; - } - } - - //Calculate the product's size - //For now, just set it to be the same size as the requirements to make materials - this.siz = 0; - for (var matName in industry.reqMats) { - this.siz += MaterialSizes[matName] * industry.reqMats[matName]; - } - - //Delete unneeded variables - delete this.prog; - delete this.createCity; - delete this.designCost; - delete this.advCost; -} +const ProductProductionCostRatio = 5; //Ratio of material cost of a product to its production cost -Product.prototype.calculateRating = function(industry) { - var weights = ProductRatingWeights[industry.type]; - if (weights == null) { - console.log("ERROR: Could not find product rating weights for: " + industry); - return; - } - this.rat = 0; - this.rat += weights.Quality ? this.qlt * weights.Quality : 0; - this.rat += weights.Performance ? this.per * weights.Performance : 0; - this.rat += weights.Durability ? this.dur * weights.Durability : 0; - this.rat += weights.Reliability ? this.rel * weights.Reliability : 0; - this.rat += weights.Aesthetics ? this.aes * weights.Aesthetics : 0; - this.rat += weights.Features ? this.fea * weights.Features : 0; -} - -Product.prototype.toJSON = function() { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Product", this); -} - -Product.fromJSON = function(value) { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Product, value.data); -} - -_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Product = Product; - -var Industries = { - Energy: "Energy", - Utilities: "Water Utilities", - Agriculture: "Agriculture", - Fishing: "Fishing", - Mining: "Mining", - Food: "Food", - Tobacco: "Tobacco", - Chemical: "Chemical", - Pharmaceutical: "Pharmaceutical", - Computer: "Computer Hardware", - Robotics: "Robotics", - Software: "Software", - Healthcare: "Healthcare", - RealEstate: "RealEstate", -} - -var IndustryStartingCosts = { - Energy: 225e9, - Utilities: 150e9, - Agriculture: 40e9, - Fishing: 80e9, - Mining: 300e9, - Food: 10e9, - Tobacco: 20e9, - Chemical: 70e9, - Pharmaceutical: 200e9, - Computer: 500e9, - Robotics: 1e12, - Software: 25e9, - Healthcare: 750e9, - RealEstate: 600e9, -} - -var IndustryDescriptions = { - Energy: "Engage in the production and distribution of energy.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Energy, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Utilities: "Distributes water and provides wastewater services.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Utilities, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Agriculture: "Cultive crops and breed livestock to produce food.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Agriculture, "$0.000a") + "
" + - "Recommended starting Industry: YES", - Fishing: "Produce food through the breeding and processing of fish and fish products

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Fishing, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Mining: "Extract and process metals from the earth.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Mining, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Food: "Create your own restaurants all around the world.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Food, "$0.000a") + "
" + - "Recommended starting Industry: YES", - Tobacco: "Create and distribute tobacco and tobacco-related products.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Tobacco, "$0.000a") + "
" + - "Recommended starting Industry: YES", - Chemical: "Product industrial chemicals

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Chemical, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Pharmaceutical: "Discover, develop, and create new pharmaceutical drugs.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Pharmaceutical, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Computer: "Develop and manufacture new computer hardware and networking infrastructures.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Computer, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Robotics: "Develop and create robots.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Robotics, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Software: "Develop computer software and create AI Cores.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Software, "$0.000a") + "
" + - "Recommended starting Industry: YES", - Healthcare: "Create and manage hospitals.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.Healthcare, "$0.000a") + "
" + - "Recommended starting Industry: NO", - RealEstate: "Develop and manage real estate properties.

" + - "Starting cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(IndustryStartingCosts.RealEstate, "$0.000a") + "
" + - "Recommended starting Industry: NO", -} - -var ProductRatingWeights = { - [Industries.Food]: { - Quality: 0.7, - Durability: 0.1, - Aesthetics: 0.2, - }, - [Industries.Tobacco]: { - Quality: 0.4, - Durability: 0.2, - Reliability: 0.2, - Aesthetics: 0.2, - }, - [Industries.Pharmaceutical]: { - Quality: 0.2, - Performance: 0.2, - Durability: 0.1, - Reliability: 0.3, - Features: 0.2, - }, - [Industries.Computer]: { - Quality: 0.15, - Performance: 0.25, - Durability: 0.25, - Reliability: 0.2, - Aesthetics: 0.05, - Features: 0.1, - }, - "Computer" : { //Repeat - Quality: 0.15, - Performance: 0.25, - Durability: 0.25, - Reliability: 0.2, - Aesthetics: 0.05, - Features: 0.1, - }, - [Industries.Robotics]: { - Quality: 0.1, - Performance: 0.2, - Durability: 0.2, - Reliability: 0.2, - Aesthetics: 0.1, - Features: 0.2, - }, - [Industries.Software]: { - Quality: 0.2, - Performance: 0.2, - Reliability: 0.2, - Durability: 0.2, - Features: 0.2, - }, - [Industries.Healthcare]: { - Quality: 0.4, - Performance: 0.1, - Durability: 0.1, - Reliability: 0.3, - Features: 0.1, - }, - [Industries.RealEstate]: { - Quality: 0.2, - Durability: 0.25, - Reliability: 0.1, - Aesthetics: 0.35, - Features: 0.1, - } -} //Industry upgrades //The structure is: @@ -36902,33 +36491,33 @@ var IndustryUpgrades = { var empManualAssignmentModeActive = false; function Industry(params={}) { this.offices = { //Maps locations to offices. 0 if no office at that location - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Aevum]: 0, - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Chongqing]: 0, - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Sector12]: new OfficeSpace({ - loc:_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Sector12, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Aevum]: 0, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Chongqing]: 0, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Sector12]: new OfficeSpace({ + loc:_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Sector12, size:OfficeInitialSize, }), - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].NewTokyo]: 0, - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Ishima]: 0, - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Volhaven]: 0 + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].NewTokyo]: 0, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Ishima]: 0, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Volhaven]: 0 }; this.warehouses = { //Maps locations to warehouses. 0 if no warehouse at that location - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Aevum]: 0, - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Chonqing]: 0, - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Sector12]: new Warehouse({ - loc:_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Sector12, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Aevum]: 0, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Chonqing]: 0, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Sector12]: new Warehouse({ + loc:_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Sector12, size: WarehouseInitialSize, }), - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].NewTokyo]: 0, - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Ishima]: 0, - [_Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Volhaven]: 0 + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].NewTokyo]: 0, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Ishima]: 0, + [_Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Volhaven]: 0 }; this.name = params.name ? params.name : 0; this.type = params.type ? params.type : 0; - this.sciResearch = new Material({name: "Scientific Research"}); + this.sciResearch = new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Scientific Research"}); //A map of the NAME of materials required to create produced materials to //how many are needed to produce 1 unit of produced materials @@ -36959,10 +36548,10 @@ function Industry(params={}) { this.prodMult = 0; //Production multiplier //Financials - this.lastCycleRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); - this.lastCycleExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); - this.thisCycleRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); - this.thisCycleExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); + this.lastCycleRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); + this.lastCycleExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); + this.thisCycleRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); + this.thisCycleExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); //Upgrades var numUpgrades = Object.keys(IndustryUpgrades).length; @@ -36976,9 +36565,9 @@ function Industry(params={}) { Industry.prototype.init = function() { //Set the unique properties of an industry (how much its affected by real estate/scientific research, etc.) - this.startingCost = IndustryStartingCosts[this.type]; + this.startingCost = _IndustryData__WEBPACK_IMPORTED_MODULE_2__["IndustryStartingCosts"][this.type]; switch (this.type) { - case Industries.Energy: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Energy: this.reFac = 0.65; this.sciFac = 0.7; this.robFac = 0.05; @@ -36990,7 +36579,7 @@ Industry.prototype.init = function() { }; this.prodMats = ["Energy"]; break; - case Industries.Utilities: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Utilities: case "Utilities": this.reFac = 0.5; this.sciFac = 0.6; @@ -37003,7 +36592,7 @@ Industry.prototype.init = function() { } this.prodMats = ["Water"]; break; - case Industries.Agriculture: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Agriculture: this.reFac = 0.75; this.sciFac = 0.5; this.hwFac = 0.2; @@ -37016,7 +36605,7 @@ Industry.prototype.init = function() { } this.prodMats = ["Plants", "Food"]; break; - case Industries.Fishing: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Fishing: this.reFac = 0.15; this.sciFac = 0.35; this.hwFac = 0.35; @@ -37028,7 +36617,7 @@ Industry.prototype.init = function() { } this.prodMats = ["Food"]; break; - case Industries.Mining: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Mining: this.reFac = 0.3; this.sciFac = 0.26; this.hwFac = 0.4; @@ -37040,7 +36629,7 @@ Industry.prototype.init = function() { } this.prodMats = ["Metal"]; break; - case Industries.Food: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Food: //reFac is unique for this bc it diminishes greatly per city. Handle this separately in code? this.sciFac = 0.12; this.hwFac = 0.15; @@ -37055,7 +36644,7 @@ Industry.prototype.init = function() { } this.makesProducts = true; break; - case Industries.Tobacco: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Tobacco: this.reFac = 0.15; this.sciFac = 0.75; this.hwFac = 0.15; @@ -37068,7 +36657,7 @@ Industry.prototype.init = function() { } this.makesProducts = true; break; - case Industries.Chemical: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Chemical: this.reFac = 0.25; this.sciFac = 0.75; this.hwFac = 0.2; @@ -37082,7 +36671,7 @@ Industry.prototype.init = function() { } this.prodMats = ["Chemicals"]; break; - case Industries.Pharmaceutical: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Pharmaceutical: this.reFac = 0.05; this.sciFac = 0.8; this.hwFac = 0.15; @@ -37097,7 +36686,7 @@ Industry.prototype.init = function() { this.prodMats = ["Drugs"]; this.makesProducts = true; break; - case Industries.Computer: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Computer: case "Computer": this.reFac = 0.2; this.sciFac = 0.62; @@ -37105,13 +36694,13 @@ Industry.prototype.init = function() { this.aiFac = 0.19; this.advFac = 0.17; this.reqMats = { - "Metal": 2.5, + "Metal": 2, "Energy": 1, } this.prodMats = ["Hardware"]; this.makesProducts = true; break; - case Industries.Robotics: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Robotics: this.reFac = 0.32; this.sciFac = 0.65; this.aiFac = 0.36; @@ -37124,7 +36713,7 @@ Industry.prototype.init = function() { this.prodMats = ["Robots"]; this.makesProducts = true; break; - case Industries.Software: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Software: this.sciFac = 0.62; this.advFac = 0.16; this.hwFac = 0.25; @@ -37138,7 +36727,7 @@ Industry.prototype.init = function() { this.prodMats = ["AICores"]; this.makesProducts = true; break; - case Industries.Healthcare: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Healthcare: this.reFac = 0.1; this.sciFac = 0.75; this.advFac = 0.11; @@ -37153,17 +36742,17 @@ Industry.prototype.init = function() { } this.makesProducts = true; break; - case Industries.RealEstate: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].RealEstate: this.robFac = 0.6; this.aiFac = 0.6; this.advFac = 0.25; this.sciFac = 0.05; this.hwFac = 0.05; this.reqMats = { - "Metal": 20, - "Energy": 10, - "Water": 10, - "Hardware": 5 + "Metal": 5, + "Energy": 5, + "Water": 2, + "Hardware": 4 } this.prodMats = ["RealEstate"]; this.makesProducts = true; @@ -37177,29 +36766,29 @@ Industry.prototype.init = function() { Industry.prototype.getProductDescriptionText = function() { if (!this.makesProducts) {return;} switch (this.type) { - case Industries.Food: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Food: return "create and manage restaurants"; break; - case Industries.Tobacco: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Tobacco: return "create tobacco and tobacco-related products"; break; - case Industries.Pharmaceutical: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Pharmaceutical: return "develop new pharmaceutical drugs"; break; - case Industries.Computer: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Computer: case "Computer": return "create new computer hardware and networking infrastructures"; break; - case Industries.Robotics: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Robotics: return "build specialized robots and robot-related products"; break; - case Industries.Software: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Software: return "develop computer software"; break; - case Industries.Healthcare: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Healthcare: return "build and manage hospitals"; break; - case Industries.RealEstate: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].RealEstate: return "develop and manage real estate properties"; break; default: @@ -37243,7 +36832,7 @@ Industry.prototype.updateWarehouseSizeUsed = function(warehouse) { var prod = this.products[prodName]; warehouse.sizeUsed += (prod.data[warehouse.loc][0] * prod.siz); if (prod.data[warehouse.loc][0] > 0) { - warehouse.breakdown += (prodName + ": " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(prod.data[warehouse.loc][0] * prod.siz, 0) + "
"); + warehouse.breakdown += (prodName + ": " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(prod.data[warehouse.loc][0] * prod.siz, 0) + "
"); } } } @@ -37259,14 +36848,14 @@ Industry.prototype.process = function(marketCycles=1, state, company) { console.log("ERROR: NaN in Corporation's computed revenue/expenses"); console.log(this.thisCycleRevenue.toString()); console.log(this.thisCycleExpenses.toString()); - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Something went wrong when compting Corporation's revenue/expenses. This is a bug. Please report to game developer"); - this.thisCycleRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); - this.thisCycleExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Something went wrong when compting Corporation's revenue/expenses. This is a bug. Please report to game developer"); + this.thisCycleRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); + this.thisCycleExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); } this.lastCycleRevenue = this.thisCycleRevenue.dividedBy(marketCycles * SecsPerMarketCycle); this.lastCycleExpenses = this.thisCycleExpenses.dividedBy(marketCycles * SecsPerMarketCycle); - this.thisCycleRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); - this.thisCycleExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); + this.thisCycleRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); + this.thisCycleExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); //Once you start making revenue, the player should no longer be //considered new, and therefore no longer needs the 'tutorial' UI elements @@ -37349,9 +36938,9 @@ Industry.prototype.processProductMarket = function(marketCycles=1) { for (var name in this.products) { if (this.products.hasOwnProperty(name)) { var product = this.products[name]; - var change = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(1, 3) * 0.0004; - if (this.type === Industries.Pharmaceutical || this.type === Industries.Software || - this.type === Industries.Robotics) { + var change = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(1, 3) * 0.0004; + if (this.type === _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Pharmaceutical || this.type === _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Software || + this.type === _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Robotics) { change *= 3; } change *= marketCycles; @@ -37411,7 +37000,7 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { if (matName == "RealEstate") { maxAmt = buyAmt; } else { - maxAmt = Math.floor((warehouse.size - warehouse.sizeUsed) / MaterialSizes[matName]); + maxAmt = Math.floor((warehouse.size - warehouse.sizeUsed) / _MaterialSizes__WEBPACK_IMPORTED_MODULE_4__["MaterialSizes"][matName]); } var buyAmt = Math.min(buyAmt, maxAmt); if (buyAmt > 0) { @@ -37445,12 +37034,12 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { //the produced materials will cost var totalMatSize = 0; for (var tmp = 0; tmp < this.prodMats.length; ++tmp) { - totalMatSize += (MaterialSizes[this.prodMats[tmp]]); + totalMatSize += (_MaterialSizes__WEBPACK_IMPORTED_MODULE_4__["MaterialSizes"][this.prodMats[tmp]]); } for (var reqMatName in this.reqMats) { if (this.reqMats.hasOwnProperty(reqMatName)) { var normQty = this.reqMats[reqMatName]; - totalMatSize -= (MaterialSizes[reqMatName] * normQty); + totalMatSize -= (_MaterialSizes__WEBPACK_IMPORTED_MODULE_4__["MaterialSizes"][reqMatName] * normQty); } } //If not enough space in warehouse, limit the amount of produced materials @@ -37489,7 +37078,7 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { for (var j = 0; j < this.prodMats.length; ++j) { warehouse.materials[this.prodMats[j]].qty += (prod * producableFrac); warehouse.materials[this.prodMats[j]].qlt = - (office.employeeProd[EmployeePositions.Engineer] / 100 + + (office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Engineer] / 100 + Math.pow(this.sciResearch.qty, this.sciFac) + Math.pow(warehouse.materials["AICores"].qty, this.aiFac) / 10e3); } @@ -37530,7 +37119,7 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { var mat = warehouse.materials[matName]; var sCost; - if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15__["isString"])(mat.sCost)) { + if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20__["isString"])(mat.sCost)) { sCost = mat.sCost.replace(/MP/g, mat.bCost); sCost = eval(sCost); } else { @@ -37560,14 +37149,14 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { company.getSalesMultiplier() * advertisingFactor; var sellAmt; - if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15__["isString"])(mat.sllman[1])) { + if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20__["isString"])(mat.sllman[1])) { //Dynamically evaluated var tmp = mat.sllman[1].replace(/MAX/g, maxSell); tmp = tmp.replace(/PROD/g, mat.prd); try { sellAmt = eval(tmp); } catch(e) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error evaluating your sell amount for material " + mat.name + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Error evaluating your sell amount for material " + mat.name + " in " + this.name + "'s " + city + " office. The sell amount " + "is being set to zero"); sellAmt = 0; @@ -37610,13 +37199,13 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { try { amt = eval(amt); } catch(e) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Calculating export for " + mat.name + " in " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Calculating export for " + mat.name + " in " + this.name + "'s " + city + " division failed with " + "error: " + e); continue; } if (isNaN(amt)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error calculating export amount for " + mat.name + " in " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Error calculating export amount for " + mat.name + " in " + this.name + "'s " + city + " division."); continue; } @@ -37641,7 +37230,7 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { if (expWarehouse.sizeUsed >= expWarehouse.size) { return; //Warehouse at capacity } else { - var maxAmt = Math.floor((expWarehouse.size - expWarehouse.sizeUsed) / MaterialSizes[matName]); + var maxAmt = Math.floor((expWarehouse.size - expWarehouse.sizeUsed) / _MaterialSizes__WEBPACK_IMPORTED_MODULE_4__["MaterialSizes"][matName]); amt = Math.min(maxAmt, amt); } expWarehouse.materials[matName].imp += (amt / (SecsPerMarketCycle * marketCycles)); @@ -37674,7 +37263,7 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { //Produce Scientific Research based on R&D employees //Scientific Research can be produced without a warehouse if (office instanceof OfficeSpace) { - this.sciResearch.qty += (.005 * Math.pow(office.employeeProd[EmployeePositions.RandD], 0.5) + this.sciResearch.qty += (.005 * Math.pow(office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].RandD], 0.5) * company.getScientificResearchMultiplier()); } } @@ -37692,15 +37281,15 @@ Industry.prototype.processProducts = function(marketCycles=1, corporation) { var prod = this.products[prodName]; if (!prod.fin) { var city = prod.createCity, office = this.offices[city]; - var total = office.employeeProd[EmployeePositions.Operations] + - office.employeeProd[EmployeePositions.Engineer] + - office.employeeProd[EmployeePositions.Management], ratio; + var total = office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Operations] + + office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Engineer] + + office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Management], ratio; if (total === 0) { ratio = 0; } else { - ratio = office.employeeProd[EmployeePositions.Engineer] / total + - office.employeeProd[EmployeePositions.Operations] / total + - office.employeeProd[EmployeePositions.Management] / total; + ratio = office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Engineer] / total + + office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Operations] / total + + office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Management] / total; } prod.createProduct(marketCycles, ratio * Math.pow(total, 0.29)); if (prod.prog >= 100) { @@ -37716,7 +37305,7 @@ Industry.prototype.processProducts = function(marketCycles=1, corporation) { for (var prodName in this.products) { if (this.products.hasOwnProperty(prodName)) { var prod = this.products[prodName]; - if (prod instanceof Product && prod.fin) { + if (prod instanceof _Product__WEBPACK_IMPORTED_MODULE_5__["Product"] && prod.fin) { revenue += this.processProduct(marketCycles, prod, corporation); } } @@ -37751,7 +37340,7 @@ Industry.prototype.processProduct = function(marketCycles=1, product, corporatio for (var reqMatName in product.reqMats) { if (product.reqMats.hasOwnProperty(reqMatName)) { var normQty = product.reqMats[reqMatName]; - netStorageSize -= (MaterialSizes[reqMatName] * normQty); + netStorageSize -= (_MaterialSizes__WEBPACK_IMPORTED_MODULE_4__["MaterialSizes"][reqMatName] * normQty); } } @@ -37805,7 +37394,7 @@ Industry.prototype.processProduct = function(marketCycles=1, product, corporatio //Calculate Sale Cost (sCost), which could be dynamically evaluated var sCost; - if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15__["isString"])(product.sCost)) { + if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20__["isString"])(product.sCost)) { sCost = product.sCost.replace(/MP/g, product.pCost + product.rat / product.mku); sCost = eval(sCost); } else { @@ -37824,14 +37413,14 @@ Industry.prototype.processProduct = function(marketCycles=1, product, corporatio var maxSell = 0.5 * Math.pow(product.rat, 0.65) * marketFactor * corporation.getSalesMultiplier() * Math.pow(markup, 2) * businessFactor * advertisingFactor; var sellAmt; - if (product.sllman[city][0] && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15__["isString"])(product.sllman[city][1])) { + if (product.sllman[city][0] && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20__["isString"])(product.sllman[city][1])) { //Sell amount is dynamically evaluated var tmp = product.sllman[city][1].replace(/MAX/g, maxSell); tmp = tmp.replace(/PROD/g, product.data[city][1]); try { tmp = eval(tmp); } catch(e) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error evaluating your sell price expression for " + product.name + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Error evaluating your sell price expression for " + product.name + " in " + this.name + "'s " + city + " office. Sell price is being set to MAX"); tmp = maxSell; } @@ -37899,7 +37488,7 @@ Industry.prototype.upgrade = function(upgrade, refs) { this.awareness += (3 * advMult); this.popularity += (1 * advMult); this.awareness *= (1.01 * advMult); - this.popularity *= ((1 + Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(1, 3) / 100) * advMult); + this.popularity *= ((1 + Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(1, 3) / 100) * advMult); break; default: console.log("ERROR: Un-implemented function index: " + upgN); @@ -37909,15 +37498,15 @@ Industry.prototype.upgrade = function(upgrade, refs) { //Returns how much of a material can be produced based of office productivity (employee stats) Industry.prototype.getOfficeProductivity = function(office, params) { - var total = office.employeeProd[EmployeePositions.Operations] + - office.employeeProd[EmployeePositions.Engineer] + - office.employeeProd[EmployeePositions.Management], ratio; + var total = office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Operations] + + office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Engineer] + + office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Management], ratio; if (total === 0) { ratio = 0; } else { - ratio = (office.employeeProd[EmployeePositions.Operations] / total) * - (office.employeeProd[EmployeePositions.Engineer] / total) * - (office.employeeProd[EmployeePositions.Management] / total); + ratio = (office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Operations] / total) * + (office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Engineer] / total) * + (office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Management] / total); ratio = Math.max(0.01, ratio); //Minimum ratio value if you have employees } if (params && params.forProduct) { @@ -37931,9 +37520,9 @@ Industry.prototype.getOfficeProductivity = function(office, params) { Industry.prototype.getBusinessFactor = function(office) { var ratioMult = 1; if (office.employeeProd["total"] > 0) { - ratioMult = 1 + (office.employeeProd[EmployeePositions.Business] / office.employeeProd["total"]); + ratioMult = 1 + (office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Business] / office.employeeProd["total"]); } - return ratioMult * Math.pow(1 + office.employeeProd[EmployeePositions.Business], 0.15); + return ratioMult * Math.pow(1 + office.employeeProd[_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Business], 0.15); } //Returns a set of multipliers based on the Industry's awareness, popularity, and advFac. This @@ -37953,24 +37542,14 @@ Industry.prototype.getMarketFactor = function(mat) { } Industry.prototype.toJSON = function() { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Industry", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_toJSON"])("Industry", this); } Industry.fromJSON = function(value) { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Industry, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_fromJSON"])(Industry, value.data); } -_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Industry = Industry; - -var EmployeePositions = { - Operations: "Operations", - Engineer: "Engineer", - Business: "Business", - Management: "Management", - RandD: "Research & Development", - Training:"Training", - Unassigned:"Unassigned", -} +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Reviver"].constructors.Industry = Industry; function Employee(params={}) { if (!(this instanceof Employee)) { @@ -37979,21 +37558,21 @@ function Employee(params={}) { this.name = params.name ? params.name : "Bobby"; //Morale, happiness, and energy are 0-100 - this.mor = params.morale ? params.morale : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100); - this.hap = params.happiness ? params.happiness : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100); - this.ene = params.energy ? params.energy : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100); + this.mor = params.morale ? params.morale : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100); + this.hap = params.happiness ? params.happiness : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100); + this.ene = params.energy ? params.energy : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100); - this.age = params.age ? params.age : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(20, 50); - this.int = params.intelligence ? params.intelligence : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(10, 50); - this.cha = params.charisma ? params.charisma : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(10, 50); - this.exp = params.experience ? params.experience : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(10, 50); - this.cre = params.creativity ? params.creativity : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(10, 50); - this.eff = params.efficiency ? params.efficiency : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(10, 50); - this.sal = params.salary ? params.salary : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(0.1, 5); + this.age = params.age ? params.age : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(20, 50); + this.int = params.intelligence ? params.intelligence : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(10, 50); + this.cha = params.charisma ? params.charisma : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(10, 50); + this.exp = params.experience ? params.experience : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(10, 50); + this.cre = params.creativity ? params.creativity : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(10, 50); + this.eff = params.efficiency ? params.efficiency : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(10, 50); + this.sal = params.salary ? params.salary : Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(0.1, 5); this.pro = 0; //Productivity, This is calculated this.loc = params.loc ? params.loc : ""; - this.pos = EmployeePositions.Unassigned; + this.pos = _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Unassigned; } //Returns the amount the employee needs to be paid @@ -38010,7 +37589,7 @@ Employee.prototype.process = function(marketCycles=1, office) { //Training var trainingEff = gain * Math.random(); - if (this.pos === EmployeePositions.Training) { + if (this.pos === _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Training) { //To increase creativity and intelligence special upgrades are needed this.cha += trainingEff; this.exp += trainingEff; @@ -38042,27 +37621,27 @@ Employee.prototype.calculateProductivity = function(corporation) { switch(this.pos) { //Calculate productivity based on position. This is multipled by prodBase //to get final value - case EmployeePositions.Operations: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Operations: prodMult = (0.6 * effInt) + (0.1 * effCha) + (this.exp) + (0.5 * effCre) + (effEff); break; - case EmployeePositions.Engineer: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Engineer: prodMult = (effInt) + (0.1 * effCha) + (1.5 * this.exp) + (effEff); break; - case EmployeePositions.Business: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Business: prodMult = (0.4 * effInt) + (effCha) + (0.5 * this.exp); break; - case EmployeePositions.Management: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Management: prodMult = (2 * effCha) + (this.exp) + (0.2 * effCre) + (0.7 * effEff); break; - case EmployeePositions.RandD: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].RandD: prodMult = (1.5 * effInt) + (0.8 * this.exp) + (effCre) + (0.5 * effEff); break; - case EmployeePositions.Unassigned: - case EmployeePositions.Training: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Unassigned: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Training: prodMult = 0; break; default: @@ -38089,27 +37668,27 @@ Employee.prototype.createUI = function(panel, corporation) { effInt = this.int * corporation.getEmployeeIntMultiplier(), effEff = this.eff * corporation.getEmployeeEffMultiplier(); panel.style.color = "white"; - panel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + panel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { id:"cmpy-mgmt-employee-" + this.name + "-panel-text", - innerHTML:"Morale: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.mor, 3) + "
" + - "Happiness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.hap, 3) + "
" + - "Energy: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.ene, 3) + "
" + - "Age: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.age, 3) + "
" + - "Intelligence: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(effInt, 3) + "
" + - "Charisma: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(effCha, 3) + "
" + - "Experience: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.exp, 3) + "
" + - "Creativity: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(effCre, 3) + "
" + - "Efficiency: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(effEff, 3) + "
" + - "Salary: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(this.sal, "$0.000a") + "/ s
", + innerHTML:"Morale: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.mor, 3) + "
" + + "Happiness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.hap, 3) + "
" + + "Energy: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.ene, 3) + "
" + + "Age: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.age, 3) + "
" + + "Intelligence: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(effInt, 3) + "
" + + "Charisma: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(effCha, 3) + "
" + + "Experience: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.exp, 3) + "
" + + "Creativity: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(effCre, 3) + "
" + + "Efficiency: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(effEff, 3) + "
" + + "Salary: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(this.sal, "$0.000a") + "/ s
", })); //Selector for employee position - var selector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("select", {}); - for (var key in EmployeePositions) { - if (EmployeePositions.hasOwnProperty(key)) { - selector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", { - text: EmployeePositions[key], - value: EmployeePositions[key], + var selector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("select", {}); + for (var key in _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"]) { + if (_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].hasOwnProperty(key)) { + selector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", { + text: _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"][key], + value: _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"][key], })); } } @@ -38141,27 +37720,27 @@ Employee.prototype.updateUI = function(panel, corporation) { if (text == null) { return this.createUI(panel); } - text.innerHTML = "Morale: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.mor, 3) + "
" + - "Happiness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.hap, 3) + "
" + - "Energy: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.ene, 3) + "
" + - "Age: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.age, 3) + "
" + - "Intelligence: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(effInt, 3) + "
" + - "Charisma: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(effCha, 3) + "
" + - "Experience: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.exp, 3) + "
" + - "Creativity: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(effCre, 3) + "
" + - "Efficiency: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(effEff, 3) + "
" + - "Salary: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(this.sal, "$0.000a") + "/ s
"; + text.innerHTML = "Morale: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.mor, 3) + "
" + + "Happiness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.hap, 3) + "
" + + "Energy: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.ene, 3) + "
" + + "Age: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.age, 3) + "
" + + "Intelligence: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(effInt, 3) + "
" + + "Charisma: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(effCha, 3) + "
" + + "Experience: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.exp, 3) + "
" + + "Creativity: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(effCre, 3) + "
" + + "Efficiency: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(effEff, 3) + "
" + + "Salary: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(this.sal, "$0.000a") + "/ s
"; } Employee.prototype.toJSON = function() { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Employee", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_toJSON"])("Employee", this); } Employee.fromJSON = function(value) { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Employee, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_fromJSON"])(Employee, value.data); } -_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Employee = Employee; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Reviver"].constructors.Employee = Employee; var OfficeSpaceTiers = { Basic: "Basic", @@ -38183,11 +37762,11 @@ function OfficeSpace(params={}) { this.employees = []; this.employeeProd = { - [EmployeePositions.Operations]: 0, - [EmployeePositions.Engineer]: 0, - [EmployeePositions.Business]: 0, - [EmployeePositions.Management]: 0, - [EmployeePositions.RandD]: 0, + [_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Operations]: 0, + [_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Engineer]: 0, + [_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Business]: 0, + [_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Management]: 0, + [_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].RandD]: 0, total: 0, }; } @@ -38238,14 +37817,14 @@ OfficeSpace.prototype.findEmployees = function(parentRefs) { if (document.getElementById("cmpy-mgmt-hire-employee-popup") != null) {return;} //Generate three random employees (meh, decent, amazing) - var mult1 = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(25, 50)/100, - mult2 = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(51, 75)/100, - mult3 = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(76, 100)/100; - var int = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), - cha = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), - exp = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), - cre = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), - eff = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), + var mult1 = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(25, 50)/100, + mult2 = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(51, 75)/100, + mult3 = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(76, 100)/100; + var int = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), + cha = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), + exp = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), + cre = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), + eff = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), sal = 2.2 * (int + cha + exp + cre + eff); var emp1 = new Employee({ @@ -38275,34 +37854,34 @@ OfficeSpace.prototype.findEmployees = function(parentRefs) { salary: sal * mult3, }); - var text = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h1", { + var text = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("h1", { innerHTML: "Select one of the following candidates for hire:", }); var createEmpDiv = function(employee, office) { - var div = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + var div = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { class:"cmpy-mgmt-find-employee-option", - innerHTML: "Intelligence: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(employee.int, 1) + "
" + - "Charisma: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(employee.cha, 1) + "
" + - "Experience: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(employee.exp, 1) + "
" + - "Creativity: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(employee.cre, 1) + "
" + - "Efficiency: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(employee.eff, 1) + "
" + - "Salary: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(employee.sal, '$0.000a') + " \ s
", + innerHTML: "Intelligence: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(employee.int, 1) + "
" + + "Charisma: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(employee.cha, 1) + "
" + + "Experience: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(employee.exp, 1) + "
" + + "Creativity: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(employee.cre, 1) + "
" + + "Efficiency: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(employee.eff, 1) + "
" + + "Salary: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(employee.sal, '$0.000a') + " \ s
", clickListener:()=>{ office.hireEmployee(employee, parentRefs); - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])("cmpy-mgmt-hire-employee-popup"); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])("cmpy-mgmt-hire-employee-popup"); return false; } }); return div; }; - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", float:"right", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])("cmpy-mgmt-hire-employee-popup"); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])("cmpy-mgmt-hire-employee-popup"); return false; } }); @@ -38313,32 +37892,32 @@ OfficeSpace.prototype.findEmployees = function(parentRefs) { createEmpDiv(emp3, this), cancelBtn]; - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])("cmpy-mgmt-hire-employee-popup", elems); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])("cmpy-mgmt-hire-employee-popup", elems); } OfficeSpace.prototype.hireEmployee = function(employee, parentRefs) { var company = parentRefs.corporation, division = parentRefs.division; - var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoTxtInpBoxGetYesButton */ "j"])(), - noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoTxtInpBoxGetNoButton */ "i"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoTxtInpBoxGetYesButton */ "j"])(), + noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoTxtInpBoxGetNoButton */ "i"])(); yesBtn.innerHTML = "Hire"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", ()=>{ - var name = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoTxtInpBoxGetInput */ "h"])(); + var name = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoTxtInpBoxGetInput */ "h"])(); for (var i = 0; i < this.employees.length; ++i) { if (this.employees[i].name === name) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You already have an employee with this nickname! Please give every employee a unique nickname."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You already have an employee with this nickname! Please give every employee a unique nickname."); return false; } } employee.name = name; this.employees.push(employee); company.displayDivisionContent(division, currentCityUi); - return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoTxtInpBoxClose */ "f"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoTxtInpBoxClose */ "f"])(); }); noBtn.addEventListener("click", ()=>{ - return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoTxtInpBoxClose */ "f"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoTxtInpBoxClose */ "f"])(); }); - Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoTxtInpBoxCreate */ "g"])("Give your employee a nickname!"); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoTxtInpBoxCreate */ "g"])("Give your employee a nickname!"); } OfficeSpace.prototype.hireRandomEmployee = function(parentRefs) { @@ -38346,12 +37925,12 @@ OfficeSpace.prototype.hireRandomEmployee = function(parentRefs) { if (document.getElementById("cmpy-mgmt-hire-employee-popup") != null) {return;} //Generate three random employees (meh, decent, amazing) - var mult = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(76, 100)/100; - var int = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), - cha = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), - exp = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), - cre = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), - eff = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_14__["getRandomInt"])(50, 100), + var mult = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(76, 100)/100; + var int = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), + cha = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), + exp = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), + cre = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), + eff = Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_19__["getRandomInt"])(50, 100), sal = 2.2 * (int + cha + exp + cre + eff); var emp = new Employee({ @@ -38363,7 +37942,7 @@ OfficeSpace.prototype.hireRandomEmployee = function(parentRefs) { salary: sal * mult, }); - var name = Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["generateRandomString"])(7); + var name = Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["generateRandomString"])(7); for (var i = 0; i < this.employees.length; ++i) { if (this.employees[i].name === name) { @@ -38378,7 +37957,7 @@ OfficeSpace.prototype.hireRandomEmployee = function(parentRefs) { //Finds the first unassigned employee and assigns its to the specified job OfficeSpace.prototype.assignEmployeeToJob = function(job) { for (var i = 0; i < this.employees.length; ++i) { - if (this.employees[i].pos === EmployeePositions.Unassigned) { + if (this.employees[i].pos === _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Unassigned) { this.employees[i].pos = job; return true; } @@ -38390,7 +37969,7 @@ OfficeSpace.prototype.assignEmployeeToJob = function(job) { OfficeSpace.prototype.unassignEmployeeFromJob = function(job) { for (var i = 0; i < this.employees.length; ++i) { if (this.employees[i].pos === job) { - this.employees[i].pos = EmployeePositions.Unassigned; + this.employees[i].pos = _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Unassigned; return true; } } @@ -38398,14 +37977,14 @@ OfficeSpace.prototype.unassignEmployeeFromJob = function(job) { } OfficeSpace.prototype.toJSON = function() { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("OfficeSpace", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_toJSON"])("OfficeSpace", this); } OfficeSpace.fromJSON = function(value) { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(OfficeSpace, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_fromJSON"])(OfficeSpace, value.data); } -_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.OfficeSpace = OfficeSpace; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Reviver"].constructors.OfficeSpace = OfficeSpace; function Warehouse(params={}) { this.loc = params.loc ? params.loc : ""; @@ -38421,17 +38000,17 @@ function Warehouse(params={}) { this.smartSupplyStore = 0; this.materials = { - Water: new Material({name: "Water"}), - Energy: new Material({name: "Energy"}), - Food: new Material({name: "Food"}), - Plants: new Material({name: "Plants"}), - Metal: new Material({name: "Metal"}), - Hardware: new Material({name: "Hardware"}), - Chemicals: new Material({name: "Chemicals"}), - Drugs: new Material({name: "Drugs"}), - Robots: new Material({name: "Robots"}), - AICores: new Material({name: "AI Cores"}), - RealEstate: new Material({name: "Real Estate"}) + Water: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Water"}), + Energy: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Energy"}), + Food: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Food"}), + Plants: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Plants"}), + Metal: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Metal"}), + Hardware: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Hardware"}), + Chemicals: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Chemicals"}), + Drugs: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Drugs"}), + Robots: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Robots"}), + AICores: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "AI Cores"}), + RealEstate: new _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]({name: "Real Estate"}) } } @@ -38441,10 +38020,10 @@ Warehouse.prototype.updateMaterialSizeUsed = function() { for (var matName in this.materials) { if (this.materials.hasOwnProperty(matName)) { var mat = this.materials[matName]; - if (MaterialSizes.hasOwnProperty(matName)) { - this.sizeUsed += (mat.qty * MaterialSizes[matName]); + if (_MaterialSizes__WEBPACK_IMPORTED_MODULE_4__["MaterialSizes"].hasOwnProperty(matName)) { + this.sizeUsed += (mat.qty * _MaterialSizes__WEBPACK_IMPORTED_MODULE_4__["MaterialSizes"][matName]); if (mat.qty > 0) { - this.breakdown += (matName + ": " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.qty * MaterialSizes[matName], 0) + "
"); + this.breakdown += (matName + ": " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.qty * _MaterialSizes__WEBPACK_IMPORTED_MODULE_4__["MaterialSizes"][matName], 0) + "
"); } } } @@ -38469,8 +38048,8 @@ Warehouse.prototype.createUI = function(parentRefs) { return; } var company = parentRefs.company, industry = parentRefs.industry; - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__["removeChildrenFromElement"])(industryWarehousePanel); - industryWarehouseStorageText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_21__["removeChildrenFromElement"])(industryWarehousePanel); + industryWarehouseStorageText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { display:"inline-block", class:"tooltip", color: this.sizeUsed >= this.size ? "red" : "white", }); @@ -38478,8 +38057,8 @@ Warehouse.prototype.createUI = function(parentRefs) { //Upgrade warehouse size button var upgradeCost = WarehouseUpgradeBaseCost * Math.pow(1.07, this.level+1); - industryWarehouseUpgradeSizeButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { - innerText:"Upgrade Warehouse Size - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(upgradeCost, '$0.000a'), + industryWarehouseUpgradeSizeButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { + innerText:"Upgrade Warehouse Size - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(upgradeCost, '$0.000a'), display:"inline-block", class: company.funds.lt(upgradeCost) ? "a-link-button-inactive" : "a-link-button", clickListener:()=>{ @@ -38528,23 +38107,23 @@ Warehouse.prototype.createUI = function(parentRefs) { reqRatioText += "one of its Products"; } - industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML:reqText, tooltipleft:reqRatioText })); //Current state - industryWarehouseStateText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p"); + industryWarehouseStateText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p"); industryWarehousePanel.appendChild(industryWarehouseStateText); //Smart Supply Enable/Disable if (company.unlockUpgrades[1]) { if (this.smartSupplyEnabled == null) {this.smartSupplyEnabled = false;} var smartSupplyCheckboxId = "cmpy-mgmt-smart-supply-checkbox"; - industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("label", { + industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("label", { for:smartSupplyCheckboxId, innerText:"Enable Smart Supply", color:"white" })); - industrySmartSupplyCheckbox = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + industrySmartSupplyCheckbox = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"checkbox", id:smartSupplyCheckboxId, margin:"3px", changeListener:()=>{ this.smartSupplyEnabled = industrySmartSupplyCheckbox.checked; @@ -38555,18 +38134,18 @@ Warehouse.prototype.createUI = function(parentRefs) { } //Materials - industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: "
Materials:
", })); - industryWarehouseMaterials = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("ul"); + industryWarehouseMaterials = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("ul"); industryWarehousePanel.appendChild(industryWarehouseMaterials); //Products if (industry.makesProducts && Object.keys(industry.products).length > 0) { - industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: "
Products:
", })); - industryWarehouseProducts = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("ul"); + industryWarehouseProducts = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("ul"); industryWarehousePanel.appendChild(industryWarehouseProducts); } @@ -38582,8 +38161,8 @@ Warehouse.prototype.updateUI = function(parentRefs) { //Storage text var storageText = "Storage: " + - (this.sizedUsed >= this.size ? Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.sizeUsed, 3) : Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.sizeUsed, 3)) + - "/" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.size, 3); + (this.sizedUsed >= this.size ? Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.sizeUsed, 3) : Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.sizeUsed, 3)) + + "/" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.size, 3); if (this.breakdown != null && this.breakdown != "") { storageText += ("" + this.breakdown + ""); @@ -38623,9 +38202,9 @@ Warehouse.prototype.updateUI = function(parentRefs) { industryWarehouseStateText.innerText = stateText; //Materials - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__["removeChildrenFromElement"])(industryWarehouseMaterials); + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_21__["removeChildrenFromElement"])(industryWarehouseMaterials); for (var matName in this.materials) { - if (this.materials.hasOwnProperty(matName) && this.materials[matName] instanceof Material) { + if (this.materials.hasOwnProperty(matName) && this.materials[matName] instanceof _Material__WEBPACK_IMPORTED_MODULE_3__["Material"]) { if (Object.keys(industry.reqMats).includes(matName) || industry.prodMats.includes(matName) || matName === "Hardware" || matName === "Robots" || matName === "AICores" || matName === "RealEstate") { @@ -38635,10 +38214,10 @@ Warehouse.prototype.updateUI = function(parentRefs) { } //Products - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__["removeChildrenFromElement"])(industryWarehouseProducts); + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_21__["removeChildrenFromElement"])(industryWarehouseProducts); if (industry.makesProducts && Object.keys(industry.products).length > 0) { for (var productName in industry.products) { - if (industry.products.hasOwnProperty(productName) && industry.products[productName] instanceof Product) { + if (industry.products.hasOwnProperty(productName) && industry.products[productName] instanceof _Product__WEBPACK_IMPORTED_MODULE_5__["Product"]) { industryWarehouseProducts.appendChild(this.createProductUI(industry.products[productName], parentRefs)); } } @@ -38653,7 +38232,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { var company = parentRefs.company, industry = parentRefs.industry; var purchasePopupId = "cmpy-mgmt-material-purchase-popup", sellPopupid = "cmpy-mgmt-material-sell-popup"; - var div = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + var div = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { class:"cmpy-mgmt-warehouse-material-div", }); @@ -38662,30 +38241,30 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { //If Market Research upgrades are unlocked, add competition and demand info var cmpAndDmdText = ""; if (company.unlockUpgrades[2] === 1) { - cmpAndDmdText += "
Demand: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.dmd, 3); + cmpAndDmdText += "
Demand: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.dmd, 3); } if (company.unlockUpgrades[3] === 1) { - cmpAndDmdText += "
Competition: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.cmp, 3); + cmpAndDmdText += "
Competition: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.cmp, 3); } - var innerTxt = "

" + mat.name + ": " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.qty, 3) + - "(" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(totalGain, 3) + "/s)" + - "Buy: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.buy, 3) + - "/s
Prod: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.prd, 3) + "/s
Sell: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.sll, 3) + - "/s
Export: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.totalExp, 3) + "/s
Import: " + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.imp, 3) + "/s" + cmpAndDmdText + "


" + - "

MP: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.bCost, 2) + + var innerTxt = "

" + mat.name + ": " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.qty, 3) + + "(" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(totalGain, 3) + "/s)" + + "Buy: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.buy, 3) + + "/s
Prod: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.prd, 3) + "/s
Sell: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.sll, 3) + + "/s
Export: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.totalExp, 3) + "/s
Import: " + + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.imp, 3) + "/s" + cmpAndDmdText + "


" + + "

MP: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.bCost, 2) + "Market Price: The price you would pay if " + "you were to buy this material on the market


" + - "

Quality: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.qlt, 2) + + "

Quality: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.qlt, 2) + "The quality of your material. Higher quality " + "will lead to more sales

"; - div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: innerTxt, id: "cmpy-mgmt-warehouse-" + matName + "-text", display:"inline-block", })); - var buttonPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + var buttonPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { display:"inline-block", }); div.appendChild(buttonPanel); @@ -38694,82 +38273,82 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { var tutorial = industry.newInd && Object.keys(industry.reqMats).includes(mat.name) && mat.buy === 0 && mat.imp === 0; var buyButtonParams = { - innerText: "Buy (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.buy, 3) + ")", display:"inline-block", + innerText: "Buy (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.buy, 3) + ")", display:"inline-block", class: tutorial ? "a-link-button flashing-button" : "a-link-button", clickListener:()=>{ - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: "Enter the amount of " + mat.name + " you would like " + "to purchase per second. This material's cost changes constantly" }); var confirmBtn; - var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", value:mat.buy ? mat.buy : null, placeholder: "Purchase amount", onkeyup:(e)=>{ e.preventDefault(); if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:"Confirm", class:"a-link-button", clickListener:()=>{ if (isNaN(input.value)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid amount"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid amount"); } else { mat.buy = parseFloat(input.value); if (isNaN(mat.buy)) {mat.buy = 0;} - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(purchasePopupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(purchasePopupId); this.createUI(parentRefs); return false; } } }); - var clearButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var clearButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:"Clear Purchase", class:"a-link-button", clickListener:()=>{ mat.buy = 0; - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(purchasePopupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(purchasePopupId); this.createUI(parentRefs); return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:"Cancel", class:"a-link-button", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(purchasePopupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(purchasePopupId); } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(purchasePopupId, [txt, input, confirmBtn, clearButton, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(purchasePopupId, [txt, input, confirmBtn, clearButton, cancelBtn]); input.focus(); } }; if (tutorial) { buyButtonParams.tooltip = "Purchase your required materials to get production started!"; } - buttonPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", buyButtonParams)); + buttonPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", buyButtonParams)); //Button to manage exports if (company.unlockUpgrades[0] === 1) { //Export unlock upgrade function createExportPopup() { var popupId = "cmpy-mgmt-export-popup"; - var exportTxt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var exportTxt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerText:"Select the industry and city to export this material to, as well as " + "how much of this material to export per second. You can set the export " + "amount to 'MAX' to export all of the materials in this warehouse." }); //Select industry and city to export to - var citySelector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("select", {class: "dropdown"}); - var industrySelector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("select", { + var citySelector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("select", {class: "dropdown"}); + var industrySelector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("select", { class: "dropdown", changeListener:()=>{ var industryName = industrySelector.options[industrySelector.selectedIndex].value; for (var foo = 0; foo < company.divisions.length; ++foo) { if (company.divisions[foo].name == industryName) { - Object(_utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_8__["clearSelector"])(citySelector); + Object(_utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_14__["clearSelector"])(citySelector); var selectedIndustry = company.divisions[foo]; for (var cityName in company.divisions[foo].warehouses) { if (company.divisions[foo].warehouses[cityName] instanceof Warehouse) { - citySelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", { + citySelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", { value:cityName, text:cityName, })); } @@ -38781,7 +38360,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { }); for (var i = 0; i < company.divisions.length; ++i) { - industrySelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", { + industrySelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", { text:company.divisions[i].name, value:company.divisions[i].name, })); //End create element option } //End for @@ -38792,7 +38371,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { for (var cityName in company.divisions[i].warehouses) { if (company.divisions[i].warehouses.hasOwnProperty(cityName) && company.divisions[i].warehouses[cityName] instanceof Warehouse) { - citySelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", { + citySelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", { value:cityName, text:cityName, })); } @@ -38802,12 +38381,12 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { } //Select amount to export - var exportAmount = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var exportAmount = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { class: "text-input", placeholder:"Export amount / s" }); - var exportBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var exportBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Export", clickListener:()=>{ var industryName = industrySelector.options[industrySelector.selectedIndex].text, @@ -38820,81 +38399,81 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid expression entered for export amount: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid expression entered for export amount: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid amount entered for export"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid amount entered for export"); return; } var exportObj = {ind:industryName, city:cityName, amt:sanitizedAmt}; mat.exp.push(exportObj); - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Cancel", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - var currExportsText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var currExportsText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerText:"Below is a list of all current exports of this material from this warehouse. " + "Clicking on one of the exports below will REMOVE that export." }); var currExports = []; for (var i = 0; i < mat.exp.length; ++i) { (function(i, mat, currExports){ - currExports.push(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + currExports.push(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { class:"cmpy-mgmt-existing-export", innerHTML: "Industry: " + mat.exp[i].ind + "
" + "City: " + mat.exp[i].city + "
" + "Amount/s: " + mat.exp[i].amt, clickListener:()=>{ mat.exp.splice(i, 1); //Remove export object - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); createExportPopup(); } })); })(i, mat, currExports); } - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [exportTxt, industrySelector, citySelector, exportAmount, + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [exportTxt, industrySelector, citySelector, exportAmount, exportBtn, cancelBtn, currExportsText].concat(currExports)); } - buttonPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + buttonPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:"Export", display:"inline-block", class:"a-link-button", clickListener:()=>{createExportPopup();} })); } - buttonPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); // Force line break + buttonPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); // Force line break //Button to set sell amount var innerTextString; if (mat.sllman[0]) { - innerTextString = (mat.sllman[1] === -1 ? "Sell (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.sll, 3) + "/MAX)" : - "Sell (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.sll, 3) + "/" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.sllman[1], 3) + ")"); + innerTextString = (mat.sllman[1] === -1 ? "Sell (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.sll, 3) + "/MAX)" : + "Sell (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.sll, 3) + "/" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.sllman[1], 3) + ")"); if (mat.sCost) { - if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15__["isString"])(mat.sCost)) { + if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20__["isString"])(mat.sCost)) { var sCost = mat.sCost.replace(/MP/g, mat.bCost); - innerTextString += " @ $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(eval(sCost), 2); + innerTextString += " @ $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(eval(sCost), 2); } else { - innerTextString += " @ $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(mat.sCost, 2); + innerTextString += " @ $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(mat.sCost, 2); } } } else { innerTextString = "Sell (0.000/0.000)"; } - buttonPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + buttonPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText: innerTextString, display:"inline-block", class:"a-link-button", clickListener:()=>{ - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: "Enter the maximum amount of " + mat.name + " you would like " + "to sell per second, as well as the price at which you would " + "like to sell at.

" + @@ -38909,9 +38488,9 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { "changing price that depends on the market price. For example, if you set the sell price " + "to 'MP+10' then it will always be sold at $10 above the market price.", }); - var br = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {}); + var br = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {}); var confirmBtn; - var inputQty = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var inputQty = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"text", marginTop:"4px", value: mat.sllman[1] ? mat.sllman[1] : null, placeholder: "Sell amount", onkeyup:(e)=>{ @@ -38919,7 +38498,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { if (e.keyCode === 13) {confirmBtn.click();} } }); - var inputPx = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var inputPx = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"text", marginTop:"4px", value: mat.sCost ? mat.sCost : null, placeholder: "Sell price", onkeyup:(e)=>{ @@ -38927,7 +38506,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:"Confirm", class:"a-link-button", margin:"6px", clickListener:()=>{ //Parse price @@ -38937,12 +38516,12 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value or expression for sell price field"); return false; } @@ -38961,19 +38540,19 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value or expression for sell price field"); return false; } mat.sllman[0] = true; mat.sllman[1] = qty; //Use sanitized input } else if (isNaN(inputQty.value)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for sell quantity field! Must be numeric or 'MAX'"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value for sell quantity field! Must be numeric or 'MAX'"); return false; } else { var qty = parseFloat(inputQty.value); @@ -38988,17 +38567,17 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { } this.createUI(parentRefs); - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(sellPopupid); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(sellPopupid); return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:"Cancel", class:"a-link-button", margin: "6px", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(sellPopupid); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(sellPopupid); } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(sellPopupid, [txt, br, inputQty, inputPx, confirmBtn, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(sellPopupid, [txt, br, inputQty, inputPx, confirmBtn, cancelBtn]); inputQty.focus(); } })); @@ -39009,15 +38588,15 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { Warehouse.prototype.createProductUI = function(product, parentRefs) { var company = parentRefs.company, industry = parentRefs.industry, city = currentCityUi; - var div = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + var div = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { class:"cmpy-mgmt-warehouse-product-div" }); //Products being designed TODO if (!product.fin) { - div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: "Designing " + product.name + "...
" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.prog, 2) + "% complete", + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.prog, 2) + "% complete", })); return div; } @@ -39025,53 +38604,53 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { //Completed products var cmpAndDmdText = ""; if (company.unlockUpgrades[2] === 1) { - cmpAndDmdText += "
Demand: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.dmd, 3); + cmpAndDmdText += "
Demand: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.dmd, 3); } if (company.unlockUpgrades[3] === 1) { - cmpAndDmdText += "
Competition: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.cmp, 3); + cmpAndDmdText += "
Competition: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.cmp, 3); } var totalGain = product.data[city][1] - product.data[city][2]; //Production - sale - div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { - innerHTML: "

" + product.name + ": " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.data[city][0], 3) + //Quantity - "(" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(totalGain, 3) + "/s)" + - "Prod: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.data[city][1], 3) + "/s
" + - "Sell: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.data[city][2], 3) + "/s


" + - "

Rating: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.rat, 3) + - "Quality: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.qlt, 3) + "
" + - "Performance: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.per, 3) + "
" + - "Durability: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.dur, 3) + "
" + - "Reliability: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.rel, 3) + "
" + - "Aesthetics: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.aes, 3) + "
" + - "Features: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.fea, 3) + + div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { + innerHTML: "

" + product.name + ": " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.data[city][0], 3) + //Quantity + "(" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(totalGain, 3) + "/s)" + + "Prod: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.data[city][1], 3) + "/s
" + + "Sell: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.data[city][2], 3) + "/s


" + + "

Rating: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.rat, 3) + + "Quality: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.qlt, 3) + "
" + + "Performance: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.per, 3) + "
" + + "Durability: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.dur, 3) + "
" + + "Reliability: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.rel, 3) + "
" + + "Aesthetics: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.aes, 3) + "
" + + "Features: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.fea, 3) + cmpAndDmdText + "


" + - "

Est. Production Cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(product.pCost / ProductProductionCostRatio, "$0.000a") + + "

Est. Production Cost: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(product.pCost / ProductProductionCostRatio, "$0.000a") + "An estimate of the material cost it takes to create this Product.


" + - "

Est. Market Price: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(product.pCost + product.rat / product.mku, "$0.000a") + + "

Est. Market Price: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(product.pCost + product.rat / product.mku, "$0.000a") + "An estimate of how much consumers are willing to pay for this product. " + "Setting the sale price above this may result in less sales. Setting the sale price below this may result " + "in more sales.

" })); - var buttonPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + var buttonPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { display:"inline-block", }); div.appendChild(buttonPanel); //Sell button - var sellInnerTextString = (product.sllman[city][1] === -1 ? "Sell (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.data[city][2], 3) + "/MAX)" : - "Sell (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.data[city][2], 3) + "/" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.sllman[city][1], 3) + ")"); + var sellInnerTextString = (product.sllman[city][1] === -1 ? "Sell (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.data[city][2], 3) + "/MAX)" : + "Sell (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.data[city][2], 3) + "/" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.sllman[city][1], 3) + ")"); if (product.sCost) { - if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15__["isString"])(product.sCost)) { + if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20__["isString"])(product.sCost)) { sellInnerTextString += (" @ " + product.sCost); } else { - sellInnerTextString += (" @ " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(product.sCost, "$0.000a")); + sellInnerTextString += (" @ " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(product.sCost, "$0.000a")); } } - div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:sellInnerTextString, class:"a-link-button", display:"inline-block",margin:"6px", clickListener:()=>{ var popupId = "cmpy-mgmt-sell-product-popup"; - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML:"Enter the maximum amount of " + product.name + " you would like " + "to sell per second, as well as the price at which you would like to " + "sell it at.

" + @@ -39089,21 +38668,21 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { "will always be sold at five times the estimated market price.", }); var confirmBtn; - var inputQty = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var inputQty = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"text", value:product.sllman[city][1] ? product.sllman[city][1] : null, placeholder: "Sell amount", onkeyup:(e)=>{ e.preventDefault(); if (e.keyCode === 13) {confirmBtn.click();} } }); - var inputPx = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var inputPx = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"text", value: product.sCost ? product.sCost : null, placeholder: "Sell price", onkeyup:(e)=>{ e.preventDefault(); if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Confirm", clickListener:()=>{ //Parse price @@ -39116,18 +38695,18 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell quantity field: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value or expression for sell quantity field: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell quantity field."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value or expression for sell quantity field."); return false; } product.sCost = price; //Use sanitized price } else { var cost = parseFloat(inputPx.value); if (isNaN(cost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for sell price field"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value for sell price field"); return false; } product.sCost = cost; @@ -39143,18 +38722,18 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value or expression for sell price field"); return false; } product.sllman[city][0] = true; product.sllman[city][1] = qty; //Use sanitized input } else if (isNaN(inputQty.value)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for sell quantity field! Must be numeric"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value for sell quantity field! Must be numeric"); return false; } else { var qty = parseFloat(inputQty.value); @@ -39167,55 +38746,55 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { } } this.createUI(parentRefs); - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [txt, inputQty, inputPx, confirmBtn, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, inputQty, inputPx, confirmBtn, cancelBtn]); inputQty.focus(); } })); - div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br",{})); //force line break + div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br",{})); //force line break //Limit production button var limitProductionInnerText = "Limit Production"; if (product.prdman[city][0]) { - limitProductionInnerText += " (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(product.prdman[city][1], 3) + ")"; + limitProductionInnerText += " (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(product.prdman[city][1], 3) + ")"; } - div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:limitProductionInnerText,display:"inline-block", clickListener:()=>{ var popupId = "cmpy-mgmt-limit-product-production-popup"; - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerText:"Enter a limit to the amount of this product you would " + "like to product per second. Leave the box empty to set no limit." }); var confirmBtn; - var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", placeholder:"Limit", onkeyup:(e)=>{ e.preventDefault(); if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Limit production", margin:'6px', clickListener:()=>{ if (input.value === "") { product.prdman[city][0] = false; - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } var qty = parseFloat(input.value); if (isNaN(qty)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value entered"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value entered"); return false; } if (qty < 0) { @@ -39224,62 +38803,62 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { product.prdman[city][0] = true; product.prdman[city][1] = qty; } - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Cancel", margin:"6px", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [txt, input, confirmBtn, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, input, confirmBtn, cancelBtn]); } })); //Discontinue button - div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + div.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:'a-link-button', display:"inline-block",innerText:"Discontinue", clickListener:()=>{ var popupId = "cmpy-mgmt-discontinue-product-popup"; - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerText:"Are you sure you want to do this? Discontinuing a product " + "removes it completely and permanently. You will no longer " + "produce this product and all of its existing stock will be " + "removed and left unsold", }); - var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button",innerText:"Discontinue", clickListener:()=>{ industry.discontinueProduct(product, parentRefs); - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [txt, confirmBtn, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, confirmBtn, cancelBtn]); } })); return div; } Warehouse.prototype.toJSON = function() { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Warehouse", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_toJSON"])("Warehouse", this); } Warehouse.fromJSON = function(value) { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Warehouse, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_fromJSON"])(Warehouse, value.data); } -_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Warehouse = Warehouse; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Reviver"].constructors.Warehouse = Warehouse; //Corporation Unlock Upgrades //Upgrades for entire corporation, unlocks features, either you have it or you dont @@ -39381,9 +38960,9 @@ function Corporation(params={}) { this.divisions = []; //Financial stats - this.funds = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](150e9); - this.revenue = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); - this.expenses = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); + this.funds = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](150e9); + this.revenue = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); + this.expenses = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); this.fundingRound = 0; this.public = false; //Publicly traded this.numShares = TOTALSHARES; @@ -39398,7 +38977,7 @@ function Corporation(params={}) { this.upgrades = Array(numUpgrades).fill(0); this.upgradeMultipliers = Array(numUpgrades).fill(1); - this.state = new CorporationState(); + this.state = new _CorporationState__WEBPACK_IMPORTED_MODULE_0__["CorporationState"](); } Corporation.prototype.getState = function() { @@ -39417,8 +38996,8 @@ Corporation.prototype.process = function() { //At the start of a new cycle, calculate profits from previous cycle if (state === "START") { - this.revenue = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); - this.expenses = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); + this.revenue = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); + this.expenses = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); this.divisions.forEach((ind) => { if (ind.lastCycleRevenue === -Infinity || ind.lastCycleRevenue === Infinity) { return; } if (ind.lastCycleExpenses === -Infinity || ind.lastCycleExpenses === Infinity) { return; } @@ -39428,10 +39007,10 @@ Corporation.prototype.process = function() { var profit = this.revenue.minus(this.expenses); var cycleProfit = profit.times(marketCycles * SecsPerMarketCycle); if (isNaN(this.funds)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("There was an error calculating your Corporations funds and they got reset to 0. " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("There was an error calculating your Corporations funds and they got reset to 0. " + "This is a bug. Please report to game developer.

" + "(Your funds have been set to $150b for the inconvenience)"); - this.funds = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](150e9); + this.funds = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](150e9); } this.funds = this.funds.plus(cycleProfit); this.updateSharePrice(); @@ -39464,7 +39043,7 @@ Corporation.prototype.determineValuation = function() { } val -= (val % 1e6); //Round down to nearest millionth } - return val * _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].CorporationValuation; + return val * _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_6__["BitNodeMultipliers"].CorporationValuation; } Corporation.prototype.getInvestment = function() { @@ -39487,8 +39066,8 @@ Corporation.prototype.getInvestment = function() { } var funding = val * percShares * 4, investShares = Math.floor(TOTALSHARES * percShares), - yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoBoxGetYesButton */ "d"])(), - noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoBoxGetNoButton */ "c"])(); + yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoBoxGetYesButton */ "d"])(), + noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoBoxGetNoButton */ "c"])(); yesBtn.innerHTML = "Accept"; noBtn.innerHML = "Reject"; yesBtn.addEventListener("click", ()=>{ @@ -39496,32 +39075,32 @@ Corporation.prototype.getInvestment = function() { this.funds = this.funds.plus(funding); this.numShares -= investShares; this.displayCorporationOverviewContent(); - return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoBoxClose */ "a"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoBoxClose */ "a"])(); }); noBtn.addEventListener("click", ()=>{ - return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoBoxClose */ "a"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoBoxClose */ "a"])(); }); - Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__[/* yesNoBoxCreate */ "b"])("An investment firm has offered you " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(funding, '$0.000a') + - " in funding in exchange for a " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(percShares*100, "0.000a") + - "% stake in the company (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(investShares, '0.000a') + " shares).

" + + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__[/* yesNoBoxCreate */ "b"])("An investment firm has offered you " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(funding, '$0.000a') + + " in funding in exchange for a " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(percShares*100, "0.000a") + + "% stake in the company (" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(investShares, '0.000a') + " shares).

" + "Do you accept or reject this offer?"); } Corporation.prototype.goPublic = function() { var goPublicPopupId = "cmpy-mgmt-go-public-popup"; var initialSharePrice = this.determineValuation() / (TOTALSHARES); - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: "Enter the number of shares you would like to issue " + "for your IPO. These shares will be publicly sold " + "and you will no longer own them. Your Corporation will receive " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(initialSharePrice, '$0.000a') + " per share " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(initialSharePrice, '$0.000a') + " per share " + "(the IPO money will be deposited directly into your Corporation's funds).

" + "Furthermore, issuing more shares now will help drive up " + "your company's stock price in the future.

" + - "You have a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(this.numShares, "0.000a") + " of shares that you can issue.", + "You have a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(this.numShares, "0.000a") + " of shares that you can issue.", }); var yesBtn; - var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", placeholder: "Shares to issue", onkeyup:(e)=>{ @@ -39529,19 +39108,19 @@ Corporation.prototype.goPublic = function() { if (e.keyCode === 13) {yesBtn.click();} } }); - var br = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {}); - yesBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var br = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {}); + yesBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Go Public", clickListener:()=>{ var numShares = Math.round(input.value); var initialSharePrice = this.determineValuation() / (TOTALSHARES); if (isNaN(numShares)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for number of issued shares"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value for number of issued shares"); return false; } if (numShares > this.numShares) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error: You don't have that many shares to issue!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Error: You don't have that many shares to issue!"); return false; } this.public = true; @@ -39550,19 +39129,19 @@ Corporation.prototype.goPublic = function() { this.numShares -= numShares; this.funds = this.funds.plus(numShares * initialSharePrice); this.displayCorporationOverviewContent(); - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(goPublicPopupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(goPublicPopupId); return false; } }); - var noBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var noBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(goPublicPopupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(goPublicPopupId); return false; } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(goPublicPopupId, [txt, br, input, yesBtn, noBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(goPublicPopupId, [txt, br, input, yesBtn, noBtn]); } Corporation.prototype.updateSharePrice = function() { @@ -39582,7 +39161,7 @@ Corporation.prototype.unlock = function(upgrade) { this.unlockUpgrades.push(0); } if (this.funds.lt(price)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough funds to unlock this!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough funds to unlock this!"); return; } this.unlockUpgrades[upgN] = 1; @@ -39597,7 +39176,7 @@ Corporation.prototype.upgrade = function(upgrade) { while (this.upgradeMultipliers.length <= upgN) {this.upgradeMultipliers.push(1);} var totalCost = basePrice * Math.pow(priceMult, this.upgrades[upgN]); if (this.funds.lt(totalCost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough funds to purchase this!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough funds to purchase this!"); return; } ++this.upgrades[upgN]; @@ -39691,19 +39270,19 @@ var companyManagementDiv, companyManagementHeaderTabs, companyManagementPanel, industryWarehouseMaterials, industryWarehouseProducts, headerTabs, cityTabs; Corporation.prototype.createUI = function() { - companyManagementDiv = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + companyManagementDiv = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { id:"cmpy-mgmt-container", position:"fixed", class:"generic-menupage-container" }); - companyManagementHeaderTabs = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", {id:"cmpy-mgmt-header-tabs"}); + companyManagementHeaderTabs = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", {id:"cmpy-mgmt-header-tabs"}); companyManagementDiv.appendChild(companyManagementHeaderTabs); //Create division/industry tabs at the top this.updateUIHeaderTabs(); //Create the 'panel' that will have the actual content in the UI - companyManagementPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", {id:"cmpy-mgmt-panel"}); + companyManagementPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", {id:"cmpy-mgmt-panel"}); companyManagementDiv.appendChild(companyManagementPanel); document.getElementById("entire-game-container").appendChild(companyManagementDiv); @@ -39712,14 +39291,14 @@ Corporation.prototype.createUI = function() { Corporation.prototype.updateUIHeaderTabs = function() { if (companyManagementHeaderTabs) { - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__["removeChildrenFromElement"])(companyManagementHeaderTabs); + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_21__["removeChildrenFromElement"])(companyManagementHeaderTabs); } else { console.log("ERROR: Header tabs div has not yet been created when Corporation.updateUIHeaderTabs() is called"); return; } //Corporation overview tabs - var cmpyOverviewHdrTab = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("button", { + var cmpyOverviewHdrTab = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("button", { id:"cmpy-mgmt-company-tab", class:"cmpy-mgmt-header-tab", innerText:this.name, @@ -39738,27 +39317,27 @@ Corporation.prototype.updateUIHeaderTabs = function() { } //Create a tab to expand into a new industry - companyManagementHeaderTabs.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("button", { + companyManagementHeaderTabs.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("button", { id:'cmpy-mgmt-expand-industry-tab', class:"cmpy-mgmt-header-tab", innerText:"Expand into new Industry", clickListener: ()=>{ if (document.getElementById("cmpy-mgmt-expand-industry-popup") != null) {return;} - var container = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + var container = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { class:"popup-box-container", id:"cmpy-mgmt-expand-industry-popup", }); - var content = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", {class:"popup-box-content"}); - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var content = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", {class:"popup-box-content"}); + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: "Create a new division to expand into a new industry:", }); - var selector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("select", { + var selector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("select", { class:"dropdown" }); - var industryDescription = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {}); + var industryDescription = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", {}); var yesBtn; - var nameInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var nameInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"text", id:"cmpy-mgmt-expand-industry-name-input", class: "text-input", @@ -39770,11 +39349,11 @@ Corporation.prototype.updateUIHeaderTabs = function() { if (e.keyCode === 13) {yesBtn.click();} } }); - var nameLabel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("label", { + var nameLabel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("label", { for:"cmpy-mgmt-expand-industry-name-input", innerText:"Division name: " }); - yesBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("span", { + yesBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("span", { class:"popup-box-button", innerText:"Create Division", clickListener: ()=>{ @@ -39783,16 +39362,16 @@ Corporation.prototype.updateUIHeaderTabs = function() { for (var i = 0; i < this.divisions.length; ++i) { if (this.divisions[i].name === newDivisionName) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("This name is already in use!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("This name is already in use!"); return false; } } - if (this.funds.lt(IndustryStartingCosts[ind])) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Not enough money to create a new division in this industry"); + if (this.funds.lt(_IndustryData__WEBPACK_IMPORTED_MODULE_2__["IndustryStartingCosts"][ind])) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Not enough money to create a new division in this industry"); } else if (newDivisionName === "") { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("New division must have a name!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("New division must have a name!"); } else { - this.funds = this.funds.minus(IndustryStartingCosts[ind]); + this.funds = this.funds.minus(_IndustryData__WEBPACK_IMPORTED_MODULE_2__["IndustryStartingCosts"][ind]); var newInd = new Industry({ name:newDivisionName, type:ind, @@ -39800,17 +39379,17 @@ Corporation.prototype.updateUIHeaderTabs = function() { this.divisions.push(newInd); this.updateUIHeaderTabs(); this.selectHeaderTab(headerTabs[headerTabs.length-2]); - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])("cmpy-mgmt-expand-industry-popup"); - this.displayDivisionContent(newInd, _Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Sector12); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])("cmpy-mgmt-expand-industry-popup"); + this.displayDivisionContent(newInd, _Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Sector12); } return false; } }); - var noBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("span", { + var noBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("span", { class:"popup-box-button", innerText:"Cancel", clickListener: function() { - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])("cmpy-mgmt-expand-industry-popup"); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])("cmpy-mgmt-expand-industry-popup"); return false; } }); @@ -39824,15 +39403,15 @@ Corporation.prototype.updateUIHeaderTabs = function() { //Add industry types to selector //Have Agriculture be first as recommended option if (!ownedIndustries["Agriculture"]) { - selector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", { - text:Industries["Agriculture"], value:"Agriculture" + selector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", { + text:_IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"]["Agriculture"], value:"Agriculture" })); } - for (var key in Industries) { - if (key !== "Agriculture" && Industries.hasOwnProperty(key) && !ownedIndustries[key]) { - var ind = Industries[key]; - selector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", { + for (var key in _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"]) { + if (key !== "Agriculture" && _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].hasOwnProperty(key) && !ownedIndustries[key]) { + var ind = _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"][key]; + selector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", { text: ind,value:key, })); } @@ -39840,12 +39419,12 @@ Corporation.prototype.updateUIHeaderTabs = function() { //Initial Industry Description var ind = selector.options[selector.selectedIndex].value; - industryDescription.innerHTML = (IndustryDescriptions[ind] + "

"); + industryDescription.innerHTML = (_IndustryData__WEBPACK_IMPORTED_MODULE_2__["IndustryDescriptions"][ind] + "

"); //Change the industry description text based on selected option selector.addEventListener("change", function() { var ind = selector.options[selector.selectedIndex].value; - industryDescription.innerHTML = IndustryDescriptions[ind] + "

"; + industryDescription.innerHTML = _IndustryData__WEBPACK_IMPORTED_MODULE_2__["IndustryDescriptions"][ind] + "

"; }); //Add to DOM @@ -39877,13 +39456,13 @@ Corporation.prototype.selectHeaderTab = function(currentTab) { Corporation.prototype.createDivisionUIHeaderTab = function(division) { var tabId = "cmpy-mgmt-" + division.name + "-tab"; - var tab = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("button", { + var tab = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("button", { id:tabId, class:"cmpy-mgmt-header-tab", innerText:division.name, clickListener:()=>{ this.selectHeaderTab(tab); - this.displayDivisionContent(division, _Locations__WEBPACK_IMPORTED_MODULE_3__["Locations"].Sector12); + this.displayDivisionContent(division, _Locations__WEBPACK_IMPORTED_MODULE_9__["Locations"].Sector12); return false; } }); @@ -39918,7 +39497,7 @@ Corporation.prototype.updateUIContent = function() { Corporation.prototype.displayCorporationOverviewContent = function() { this.clearUIPanel(); - companyManagementPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + companyManagementPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { id:"cmpy-mgmt-overview-text", })); if (headerTabs && headerTabs.length >= 1) { @@ -39926,23 +39505,23 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } //Check if player has Corporation Handbook - var homeComp = _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].getHomeComputer(), hasHandbook = false, + var homeComp = _Player__WEBPACK_IMPORTED_MODULE_10__[/* Player */ "a"].getHomeComputer(), hasHandbook = false, handbookFn = "corporation-management-handbook.lit"; for (var i = 0; i < homeComp.messages.length; ++i) { - if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_15__["isString"])(homeComp.messages[i]) && homeComp.messages[i] === handbookFn) { + if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_20__["isString"])(homeComp.messages[i]) && homeComp.messages[i] === handbookFn) { hasHandbook = true; break; } } - companyManagementPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + companyManagementPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Getting Started Guide", display:"inline-block", tooltip:"Get a copy of and read 'The Complete Handbook for Creating a Successful Corporation.' " + "This is a .lit file that guides you through the beginning of setting up a Corporation and " + "provides some tips/pointers for helping you get started with managing it.", clickListener:()=>{ if (!hasHandbook) {homeComp.messages.push(handbookFn);} - Object(_Literature__WEBPACK_IMPORTED_MODULE_2__[/* showLiterature */ "b"])(handbookFn); + Object(_Literature__WEBPACK_IMPORTED_MODULE_8__[/* showLiterature */ "b"])(handbookFn); return false; } })); @@ -39950,21 +39529,21 @@ Corporation.prototype.displayCorporationOverviewContent = function() { //Investors if (this.public) { //Sell share buttons - var sellShares = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var sellShares = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Sell Shares", display:"inline-block", tooltip:"Sell your shares in the company. This is the only way to " + "profit from your business venture.", clickListener:()=>{ var popupId = "cmpy-mgmt-sell-shares-popup"; var currentStockPrice = this.sharePrice; - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: "Enter the number of shares you would like to sell. The money from " + "selling your shares will go directly to you (NOT your Corporation). " + "The current price of your " + - "company's stock is " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(currentStockPrice, "$0.000a"), + "company's stock is " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(currentStockPrice, "$0.000a"), }); - var profitIndicator = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {}); - var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var profitIndicator = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", {}); + var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", placeholder:"Shares to sell", margin:"5px", inputListener: ()=> { var numShares = Math.round(input.value); @@ -39974,18 +39553,18 @@ Corporation.prototype.displayCorporationOverviewContent = function() { profitIndicator.innerText = "You don't have this many shares to sell!"; } else { profitIndicator.innerText = "Sell " + numShares + " shares for a total of " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(numShares * currentStockPrice, '$0.000a'); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(numShares * currentStockPrice, '$0.000a'); } } }); - var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Sell shares", display:"inline-block", clickListener:()=>{ var shares = Math.round(input.value); if (isNaN(shares) || shares <= 0) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: Invalid value for number of shares"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("ERROR: Invalid value for number of shares"); } else if (shares > this.numShares) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You don't have this many shares to sell"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("ERROR: You don't have this many shares to sell"); } else { this.numShares -= shares; if (isNaN(this.issuedShares)) { @@ -39999,40 +39578,40 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } } this.issuedShares += shares; - _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].gainMoney(shares * this.sharePrice); - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + _Player__WEBPACK_IMPORTED_MODULE_10__[/* Player */ "a"].gainMoney(shares * this.sharePrice); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", display:"inline-block", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [txt, profitIndicator, input, confirmBtn, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, profitIndicator, input, confirmBtn, cancelBtn]); } }); //Buyback shares button - var buybackShares = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var buybackShares = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Buyback shares", display:"inline-block", tooltip:"Buy back shares you that previously issued or sold at market price.", clickListener:()=>{ var popupId = "cmpy-mgmt-buyback-shares-popup"; var currentStockPrice = this.sharePrice; - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML: "Enter the number of shares you would like to buy back at market price. To purchase " + "these shares, you must use your own money (NOT your Corporation's funds). " + "The current price of your " + - "company's stock is " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(currentStockPrice, "$0.000a") + - ". Your company currently has " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.issuedShares, 3) + " outstanding stock shares", + "company's stock is " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(currentStockPrice, "$0.000a") + + ". Your company currently has " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.issuedShares, 3) + " outstanding stock shares", }); - var costIndicator = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {}); - var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var costIndicator = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", {}); + var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", placeholder:"Shares to buyback", margin:"5px", inputListener: ()=> { var numShares = Math.round(input.value); @@ -40045,22 +39624,22 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } else { console.log("here"); costIndicator.innerText = "Purchase " + numShares + " shares for a total of " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(numShares * currentStockPrice, '$0.000a'); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(numShares * currentStockPrice, '$0.000a'); } } }); - var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Buy shares", display:"inline-block", clickListener:()=>{ var shares = Math.round(input.value); var tempStockPrice = this.sharePrice; if (isNaN(shares) || shares <= 0) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: Invalid value for number of shares"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("ERROR: Invalid value for number of shares"); } else if (shares > this.issuedShares) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: There are not this many oustanding shares to buy back"); - } else if (shares * tempStockPrice > _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].money) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You do not have enough money to purchase this many shares (you need " + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(shares * tempStockPrice, "$0.000a") + ")"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("ERROR: There are not this many oustanding shares to buy back"); + } else if (shares * tempStockPrice > _Player__WEBPACK_IMPORTED_MODULE_10__[/* Player */ "a"].money) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("ERROR: You do not have enough money to purchase this many shares (you need " + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(shares * tempStockPrice, "$0.000a") + ")"); } else { this.numShares += shares; if (isNaN(this.issuedShares)) { @@ -40074,24 +39653,24 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } } this.issuedShares -= shares; - _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].loseMoney(shares * tempStockPrice); + _Player__WEBPACK_IMPORTED_MODULE_10__[/* Player */ "a"].loseMoney(shares * tempStockPrice); //TODO REMOVE from Player money - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); } return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", display:"inline-block", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [txt, costIndicator, input, confirmBtn, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, costIndicator, input, confirmBtn, cancelBtn]); } }); @@ -40100,7 +39679,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { //If your Corporation is big enough, buy faction influence through bribes var canBribe = this.determineValuation() >= BribeThreshold; - var bribeFactions = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var bribeFactions = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class: canBribe ? "a-link-button" : "a-link-button-inactive", innerText:"Bribe Factions", display:"inline-block", tooltip:canBribe @@ -40108,19 +39687,19 @@ Corporation.prototype.displayCorporationOverviewContent = function() { : "Your Corporation is not powerful enough to bribe Faction leaders", clickListener:()=>{ var popupId = "cmpy-mgmt-bribe-factions-popup"; - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerText:"You can use Corporation funds or stock shares to bribe Faction Leaders in exchange for faction reputation" }); - var factionSelector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("select", {margin:"3px"}); - for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].factions.length; ++i) { - var facName = _Player__WEBPACK_IMPORTED_MODULE_4__[/* Player */ "a"].factions[i]; - factionSelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", { + var factionSelector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("select", {margin:"3px"}); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_10__[/* Player */ "a"].factions.length; ++i) { + var facName = _Player__WEBPACK_IMPORTED_MODULE_10__[/* Player */ "a"].factions[i]; + factionSelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", { text:facName, value:facName })); } - var repGainText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p"); + var repGainText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p"); var stockSharesInput; - var moneyInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var moneyInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", placeholder:"Corporation funds", margin:"5px", inputListener:()=>{ var money = moneyInput.value == null || moneyInput.value == "" ? 0 : parseFloat(moneyInput.value); @@ -40136,14 +39715,14 @@ Corporation.prototype.displayCorporationOverviewContent = function() { var totalAmount = Number(money) + (stockShares * stockPrice); var repGain = totalAmount / BribeToRepRatio; - repGainText.innerText = "You will gain " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(repGain, 0) + + repGainText.innerText = "You will gain " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(repGain, 0) + " reputation with " + factionSelector.options[factionSelector.selectedIndex].value + " with this bribe"; } } }); - stockSharesInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + stockSharesInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", placeholder:"Stock Shares", margin: "5px", inputListener:()=>{ var money = moneyInput.value == null || moneyInput.value == "" ? 0 : parseFloat(moneyInput.value); @@ -40159,58 +39738,58 @@ Corporation.prototype.displayCorporationOverviewContent = function() { var totalAmount = money + (stockShares * stockPrice); var repGain = totalAmount / BribeToRepRatio; console.log("repGain: " + repGain); - repGainText.innerText = "You will gain " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(repGain, 0) + + repGainText.innerText = "You will gain " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(repGain, 0) + " reputation with " + factionSelector.options[factionSelector.selectedIndex].value + " with this bribe"; } } }); - var confirmButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var confirmButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Bribe", display:"inline-block", clickListener:()=>{ var money = moneyInput.value == null || moneyInput.value == "" ? 0 : parseFloat(moneyInput.value); var stockPrice = this.sharePrice; var stockShares = stockSharesInput.value == null || stockSharesInput.value == ""? 0 : Math.round(parseFloat(stockSharesInput.value)); - var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_1__["Factions"][factionSelector.options[factionSelector.selectedIndex].value]; + var fac = _Faction_Factions__WEBPACK_IMPORTED_MODULE_7__["Factions"][factionSelector.options[factionSelector.selectedIndex].value]; if (fac == null) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You must select a faction to bribe"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("ERROR: You must select a faction to bribe"); return false; } if (isNaN(money) || isNaN(stockShares) || money < 0 || stockShares < 0) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: Invalid value(s) entered"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("ERROR: Invalid value(s) entered"); } else if (this.funds.lt(money)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You do not have this much money to bribe with"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("ERROR: You do not have this much money to bribe with"); } else if (stockShares > this.numShares) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You do not have this many shares to bribe with"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("ERROR: You do not have this many shares to bribe with"); } else { var totalAmount = money + (stockShares * stockPrice); var repGain = totalAmount / BribeToRepRatio; - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(repGain, 0) + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(repGain, 0) + " reputation with " + fac.name + " by bribing them."); fac.playerReputation += repGain; this.funds = this.funds.minus(money); this.numShares -= stockShares; - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } } }); - var cancelButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", display:"inline-block", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [txt, factionSelector, repGainText, + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, factionSelector, repGainText, moneyInput, stockSharesInput, confirmButton, cancelButton]); } }); companyManagementPanel.appendChild(bribeFactions); } else { - var findInvestors = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var findInvestors = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class: this.fundingRound >= 4 ? "a-link-button-inactive" : "a-link-button tooltip", innerText: "Find Investors", display:"inline-block", @@ -40219,7 +39798,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } }); if (this.fundingRound < 4) { - var findInvestorsTooltip = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("span", { + var findInvestorsTooltip = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("span", { class:"tooltiptext", innerText:"Search for private investors who will give you startup funding in exchange " + "for equity (stock shares) in your company" @@ -40227,7 +39806,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { findInvestors.appendChild(findInvestorsTooltip); } - var goPublic = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var goPublic = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button tooltip", innerText:"Go Public", display:"inline-block", @@ -40236,7 +39815,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { return false; } }); - var goPublicTooltip = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("span", { + var goPublicTooltip = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("span", { class:"tooltiptext", innerText: "Become a publicly traded and owned entity. Going public involves " + "issuing shares for an IPO. Once you are a public company, " + @@ -40254,10 +39833,10 @@ Corporation.prototype.displayCorporationOverviewContent = function() { //Don't show upgrades if player hasn't opened any divisions if (this.divisions.length <= 0) {return; } //Corporation Upgrades - var upgradeContainer = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + var upgradeContainer = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { class:"cmpy-mgmt-upgrade-container", }); - upgradeContainer.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h1", { + upgradeContainer.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("h1", { innerText:"Unlocks", margin:"6px", padding:"6px", })); @@ -40282,13 +39861,13 @@ Corporation.prototype.displayCorporationOverviewContent = function() { return; } - upgradeContainer.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + upgradeContainer.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { class:"cmpy-mgmt-upgrade-div", width:"45%", - innerHTML:upgrade[2] + " - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(upgrade[1], "$0.000a"), + innerHTML:upgrade[2] + " - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(upgrade[1], "$0.000a"), tooltip: upgrade[3], clickListener:()=>{ if (corp.funds.lt(upgrade[1])) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Insufficient funds"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Insufficient funds"); } else { corp.unlock(upgrade); corp.displayCorporationOverviewContent(); @@ -40300,7 +39879,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } //Levelable upgrades - upgradeContainer.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h1", { + upgradeContainer.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("h1", { innerText:"Upgrades", margin:"6px", padding:"6px", })); @@ -40314,13 +39893,13 @@ Corporation.prototype.displayCorporationOverviewContent = function() { var baseCost = upgrade[1], priceMult = upgrade[2]; var cost = baseCost * Math.pow(priceMult, corp.upgrades[i]); - upgradeContainer.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + upgradeContainer.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { class:"cmpy-mgmt-upgrade-div", width:"45%", - innerHTML:upgrade[4] + " - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(cost, "$0.000a"), + innerHTML:upgrade[4] + " - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(cost, "$0.000a"), tooltip:upgrade[5], clickListener:()=>{ if (corp.funds.lt(cost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Insufficient funds"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Insufficient funds"); } else { corp.upgrade(upgrade); corp.displayCorporationOverviewContent(); @@ -40340,19 +39919,19 @@ Corporation.prototype.updateCorporationOverviewContent = function() { return; } var totalFunds = this.funds, - totalRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0), - totalExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"](0); + totalRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0), + totalExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_24__[/* default */ "a"](0); var profit = this.revenue.minus(this.expenses).toNumber(), - profitStr = profit >= 0 ? _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(profit, "$0.000a") : "-" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(-1 * profit, "$0.000a"); + profitStr = profit >= 0 ? _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(profit, "$0.000a") : "-" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(-1 * profit, "$0.000a"); - var txt = "Total Funds: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(totalFunds.toNumber(), '$0.000a') + "
" + - "Total Revenue: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(this.revenue.toNumber(), "$0.000a") + " / s
" + - "Total Expenses: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(this.expenses.toNumber(), "$0.000a") + "/ s
" + + var txt = "Total Funds: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(totalFunds.toNumber(), '$0.000a') + "
" + + "Total Revenue: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(this.revenue.toNumber(), "$0.000a") + " / s
" + + "Total Expenses: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(this.expenses.toNumber(), "$0.000a") + "/ s
" + "Total Profits: " + profitStr + " / s
" + "Publicly Traded: " + (this.public ? "Yes" : "No") + "
" + - "Owned Stock Shares: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(this.numShares, '0.000a') + "
" + - "Stock Price: " + (this.public ? "$" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.sharePrice, 2) : "N/A") + "

"; + "Owned Stock Shares: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(this.numShares, '0.000a') + "
" + + "Stock Price: " + (this.public ? "$" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(this.sharePrice, 2) : "N/A") + "

"; var prodMult = this.getProductionMultiplier(), storageMult = this.getStorageMultiplier(), @@ -40363,15 +39942,15 @@ Corporation.prototype.updateCorporationOverviewContent = function() { empEffMult = this.getEmployeeEffMultiplier(), salesMult = this.getSalesMultiplier(), sciResMult = this.getScientificResearchMultiplier(); - if (prodMult > 1) {txt += "Production Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(prodMult, 3) + "
";} - if (storageMult > 1) {txt += "Storage Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(storageMult, 3) + "
";} - if (advMult > 1) {txt += "Advertising Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(advMult, 3) + "
";} - if (empCreMult > 1) {txt += "Empl. Creativity Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(empCreMult, 3) + "
";} - if (empChaMult > 1) {txt += "Empl. Charisma Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(empChaMult, 3) + "
";} - if (empIntMult > 1) {txt += "Empl. Intelligence Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(empIntMult, 3) + "
";} - if (empEffMult > 1) {txt += "Empl. Efficiency Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(empEffMult, 3) + "
";} - if (salesMult > 1) {txt += "Sales Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(salesMult, 3) + "
";} - if (sciResMult > 1) {txt += "Scientific Research Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(sciResMult, 3) + "
";} + if (prodMult > 1) {txt += "Production Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(prodMult, 3) + "
";} + if (storageMult > 1) {txt += "Storage Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(storageMult, 3) + "
";} + if (advMult > 1) {txt += "Advertising Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(advMult, 3) + "
";} + if (empCreMult > 1) {txt += "Empl. Creativity Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(empCreMult, 3) + "
";} + if (empChaMult > 1) {txt += "Empl. Charisma Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(empChaMult, 3) + "
";} + if (empIntMult > 1) {txt += "Empl. Intelligence Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(empIntMult, 3) + "
";} + if (empEffMult > 1) {txt += "Empl. Efficiency Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(empEffMult, 3) + "
";} + if (salesMult > 1) {txt += "Sales Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(salesMult, 3) + "
";} + if (sciResMult > 1) {txt += "Scientific Research Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(sciResMult, 3) + "
";} p.innerHTML = txt; } @@ -40391,19 +39970,19 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } //Expand into new City button - companyManagementPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("button", { + companyManagementPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("button", { class:"cmpy-mgmt-city-tab", innerText:"Expand into new City", display:"inline-block", clickListener:()=>{ var popupId = "cmpy-mgmt-expand-city-popup"; - var text = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var text = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerText: "Would you like to expand into a new city by opening an office? " + - "This would cost " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(OfficeInitialCost, '$0.000a'), + "This would cost " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(OfficeInitialCost, '$0.000a'), }); - var citySelector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("select", {class: "dropdown", margin:"5px"}); + var citySelector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("select", {class: "dropdown", margin:"5px"}); for (var cityName in division.offices) { if (division.offices.hasOwnProperty(cityName)) { if (!(division.offices[cityName] instanceof OfficeSpace)) { - citySelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", { + citySelector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", { text: cityName, value: cityName })); @@ -40411,37 +39990,37 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } } - var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:"Confirm", class:"a-link-button", display:"inline-block", margin:"3px", clickListener:()=>{ var city = citySelector.options[citySelector.selectedIndex].value; if (this.funds.lt(OfficeInitialCost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to open a new office!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough company funds to open a new office!"); } else { this.funds = this.funds.minus(OfficeInitialCost); - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Opened a new office in " + city + "!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Opened a new office in " + city + "!"); division.offices[city] = new OfficeSpace({ loc:city, size:OfficeInitialSize, }); this.displayDivisionContent(division, city); } - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:"Cancel", class:"a-link-button", display:"inline-block", margin:"3px", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }) - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [text, citySelector, confirmBtn, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [text, citySelector, confirmBtn, cancelBtn]); return false; } })); - companyManagementPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); // Force line break + companyManagementPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); // Force line break //Get office object var office = division.offices[currentCityUi]; @@ -40451,42 +40030,42 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } //Left and right panels - var leftPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", {class:"cmpy-mgmt-industry-left-panel"}); - var rightPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", {class:"cmpy-mgmt-industry-right-panel"}); + var leftPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", {class:"cmpy-mgmt-industry-left-panel"}); + var rightPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", {class:"cmpy-mgmt-industry-right-panel"}); companyManagementPanel.appendChild(leftPanel); companyManagementPanel.appendChild(rightPanel); //Different sections (Overview, Employee/Office, and Warehouse) - industryOverviewPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + industryOverviewPanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { id:"cmpy-mgmt-industry-overview-panel", class:"cmpy-mgmt-industry-overview-panel" }); leftPanel.appendChild(industryOverviewPanel); - industryEmployeePanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + industryEmployeePanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { id:"cmpy-mgmt-employee-panel", class:"cmpy-mgmt-employee-panel" }); leftPanel.appendChild(industryEmployeePanel); - industryWarehousePanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + industryWarehousePanel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { id:"cmpy-mgmt-warehouse-panel", class:"cmpy-mgmt-warehouse-panel" }); rightPanel.appendChild(industryWarehousePanel); //Industry overview text - industryOverviewText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {}); + industryOverviewText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", {}); industryOverviewPanel.appendChild(industryOverviewText); - industryOverviewPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); + industryOverviewPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); //Industry overview Purchases & Upgrades var numUpgrades = Object.keys(IndustryUpgrades).length; while (division.upgrades.length < numUpgrades) {division.upgrades.push(0);} //Backwards compatibility - var industryOverviewUpgrades = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", {}); - industryOverviewUpgrades.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("u", { + var industryOverviewUpgrades = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", {}); + industryOverviewUpgrades.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("u", { innerText:"Purchases & Upgrades", margin:"2px", padding:"2px", fontSize:"14px", })); - industryOverviewUpgrades.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); + industryOverviewUpgrades.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); for (var i = 0; i < numUpgrades; ++i) { (function(i, corp, division, office) { var upgrade = IndustryUpgrades[i.toString()]; @@ -40504,13 +40083,13 @@ Corporation.prototype.displayDivisionContent = function(division, city) { cost = baseCost * Math.pow(priceMult, division.upgrades[i]); break; } - industryOverviewUpgrades.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + industryOverviewUpgrades.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { class:"cmpy-mgmt-upgrade-div", display:"inline-block", - innerHTML:upgrade[4] + ' - ' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(cost, "$0.000a"), + innerHTML:upgrade[4] + ' - ' + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(cost, "$0.000a"), tooltip:upgrade[5], clickListener:()=>{ if (corp.funds.lt(cost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Insufficient funds"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Insufficient funds"); } else { corp.funds = corp.funds.minus(cost); division.upgrade(upgrade, { @@ -40521,7 +40100,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } } })); - industryOverviewUpgrades.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); + industryOverviewUpgrades.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); })(i, this, division, office); } @@ -40534,36 +40113,36 @@ Corporation.prototype.displayDivisionContent = function(division, city) { //Get the text on the button based on Industry type var createProductButtonText, createProductPopupText; switch(division.type) { - case Industries.Food: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Food: createProductButtonText = "Build Restaurant"; createProductPopupText = "Build and manage a new restaurant!" break; - case Industries.Tobacco: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Tobacco: createProductButtonText = "Create Product"; createProductPopupText = "Create a new tobacco product!"; break; - case Industries.Pharmaceutical: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Pharmaceutical: createProductButtonText = "Create Drug"; createProductPopupText = "Design and develop a new pharmaceutical drug!"; break; - case Industries.Computer: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Computer: case "Computer": createProductButtonText = "Create Product"; createProductPopupText = "Design and manufacture a new computer hardware product!"; break; - case Industries.Robotics: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Robotics: createProductButtonText = "Design Robot"; createProductPopupText = "Design and create a new robot or robotic system!"; break; - case Industries.Software: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Software: createProductButtonText = "Develop Software"; createProductPopupText = "Develop a new piece of software!"; break; - case Industries.Healthcare: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Healthcare: createProductButtonText = "Build Hospital"; createProductPopupText = "Build and manage a new hospital!"; break; - case Industries.RealEstate: + case _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].RealEstate: createProductButtonText = "Develop Property"; createProductPopupText = "Develop a new piece of real estate property!"; break; @@ -40580,43 +40159,43 @@ Corporation.prototype.displayDivisionContent = function(division, city) { "Investing money in marketing the product will help the product's sales."; //Create the button - industryOverviewPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + industryOverviewPanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:createProductButtonText, margin:"6px", display:"inline-block", clickListener:()=>{ var popupId = "cmpy-mgmt-create-product-popup"; - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerHTML:createProductPopupText, }); - var designCity = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("select", {}); + var designCity = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("select", {}); for (var cityName in division.offices) { if (division.offices[cityName] instanceof OfficeSpace) { - designCity.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", { + designCity.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", { value:cityName, text:cityName })); } } var foo = "Product Name"; - if (division.type === Industries.Food) { + if (division.type === _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Food) { foo = "Restaurant Name"; - } else if (division.type === Industries.Healthcare) { + } else if (division.type === _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].Healthcare) { foo = "Hospital Name"; - } else if (division.type === Industries.RealEstate) { + } else if (division.type === _IndustryData__WEBPACK_IMPORTED_MODULE_2__["Industries"].RealEstate) { foo = "Property Name"; } - var productNameInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var productNameInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { placeholder:foo, }); - var lineBreak1 = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br",{}); - var designInvestInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var lineBreak1 = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br",{}); + var designInvestInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", placeholder:"Design investment" }); - var marketingInvestInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var marketingInvestInput = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", placeholder:"Marketing investment" }); - var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Develop Product", clickListener:()=>{ @@ -40625,15 +40204,15 @@ Corporation.prototype.displayDivisionContent = function(division, city) { var designInvest = parseFloat(designInvestInput.value), marketingInvest = parseFloat(marketingInvestInput.value); if (productNameInput.value == null || productNameInput.value === "") { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You must specify a name for your product!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You must specify a name for your product!"); } else if (isNaN(designInvest)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for design investment"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value for design investment"); } else if (isNaN(marketingInvest)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for marketing investment"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value for marketing investment"); } else if (this.funds.lt(designInvest + marketingInvest)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to make this large of an investment"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough company funds to make this large of an investment"); } else { - var product = new Product({ + var product = new _Product__WEBPACK_IMPORTED_MODULE_5__["Product"]({ name:productNameInput.value.replace(/[<>]/g, ''), //Sanitize for HTMl elements createCity:designCity.options[designCity.selectedIndex].value, designCost: designInvest, @@ -40641,29 +40220,29 @@ Corporation.prototype.displayDivisionContent = function(division, city) { }); this.funds = this.funds.minus(designInvest + marketingInvest); division.products[product.name] = product; - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); } //this.updateUIContent(); this.displayDivisionContent(division, city); return false; } }) - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }) - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [txt, designCity, productNameInput, lineBreak1, + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, designCity, productNameInput, lineBreak1, designInvestInput, marketingInvestInput, confirmBtn, cancelBtn]); } })); } //Employee and Office Panel - industryEmployeeText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + industryEmployeeText = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { id: "cmpy-mgmt-employee-p", display:"block", innerHTML: "

Office Space


" + @@ -40676,7 +40255,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { //Hire Employee button if (office.employees.length === 0) { - industryEmployeeHireButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + industryEmployeeHireButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button",display:"inline-block", innerText:"Hire Employee", fontSize:"13px", tooltip:"You'll need to hire some employees to get your operations started! " + @@ -40688,7 +40267,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { }); //industryEmployeeHireButton.classList.add("flashing-button"); } else { - industryEmployeeHireButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + industryEmployeeHireButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button",display:"inline-block", innerText:"Hire Employee", fontSize:"13px", clickListener:()=>{ @@ -40700,7 +40279,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { industryEmployeePanel.appendChild(industryEmployeeHireButton); //Autohire Employee button - industryEmployeeAutohireButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + industryEmployeeAutohireButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Autohire Employee", fontSize:"13px", tooltip:"Automatically hires an employee and gives him/her a random name", @@ -40712,8 +40291,8 @@ Corporation.prototype.displayDivisionContent = function(division, city) { industryEmployeePanel.appendChild(industryEmployeeAutohireButton); //Upgrade Office Size button - industryEmployeePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); - industryOfficeUpgradeSizeButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + industryEmployeePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); + industryOfficeUpgradeSizeButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Upgrade size", display:"inline-block", margin:"6px", fontSize:"13px", tooltip:"Upgrade the office's size so that it can hold more employees!", @@ -40746,98 +40325,98 @@ Corporation.prototype.displayDivisionContent = function(division, city) { var upgradeCostMax = OfficeInitialCost * mult; - var text = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var text = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerText:"Increase the size of your office space to fit additional employees!" }); - var text2 = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {innerText: "Upgrade size: "}); + var text2 = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", {innerText: "Upgrade size: "}); - var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class: this.funds.lt(upgradeCost) ? "a-link-button-inactive" : "a-link-button", display:"inline-block", margin:"4px", innerText:"by 3", - tooltip:_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(upgradeCost, "$0.000a"), + tooltip:_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(upgradeCost, "$0.000a"), clickListener:()=>{ if (this.funds.lt(upgradeCost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); } else { office.size += OfficeInitialSize; this.funds = this.funds.minus(upgradeCost); - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); this.updateUIContent(); } - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - var confirmBtn15 = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var confirmBtn15 = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class: this.funds.lt(upgradeCost15) ? "a-link-button-inactive" : "a-link-button", display:"inline-block", margin:"4px", innerText:"by 15", - tooltip:_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(upgradeCost15, "$0.000a"), + tooltip:_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(upgradeCost15, "$0.000a"), clickListener:()=>{ if (this.funds.lt(upgradeCost15)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); } else { office.size += (OfficeInitialSize * 5); this.funds = this.funds.minus(upgradeCost15); - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); this.updateUIContent(); } - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - var confirmBtnMax = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var confirmBtnMax = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:this.funds.lt(upgradeCostMax) ? "a-link-button-inactive" : "a-link-button", display:"inline-block", margin:"4px", innerText:"by MAX (" + maxNum*OfficeInitialSize + ")", - tooltip:_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(upgradeCostMax, "$0.000a"), + tooltip:_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(upgradeCostMax, "$0.000a"), clickListener:()=>{ if (this.funds.lt(upgradeCostMax)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); } else { office.size += (OfficeInitialSize * maxNum); this.funds = this.funds.minus(upgradeCostMax); - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); this.updateUIContent(); } - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", display:"inline-block", margin:"4px", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }) - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [text, text2, confirmBtn, confirmBtn15, confirmBtnMax, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [text, text2, confirmBtn, confirmBtn15, confirmBtnMax, cancelBtn]); return false; } }); industryEmployeePanel.appendChild(industryOfficeUpgradeSizeButton); //Throw Office Party - industryEmployeePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + industryEmployeePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Throw Party", fontSize:"13px", tooltip:"Throw an office party to increase your employee's morale and happiness", clickListener:()=>{ var popupId = "cmpy-mgmt-throw-office-party-popup"; - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerText:"Enter the amount of money you would like to spend PER EMPLOYEE " + "on this office party" }); - var totalCostTxt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var totalCostTxt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { innerText:"Throwing this party will cost a total of $0" }); var confirmBtn; - var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("input", { type:"number", margin:"5px", placeholder:"$ / employee", inputListener:()=>{ if (isNaN(input.value) || input.value < 0) { totalCostTxt.innerText = "Invalid value entered!" } else { var totalCost = input.value * office.employees.length; - totalCostTxt.innerText = "Throwing this party will cost a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(totalCost, '$0.000a'); + totalCostTxt.innerText = "Throwing this party will cost a total of " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(totalCost, '$0.000a'); } }, onkeyup:(e)=>{ @@ -40845,49 +40424,49 @@ Corporation.prototype.displayDivisionContent = function(division, city) { if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + confirmBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Throw Party", clickListener:()=>{ if (isNaN(input.value) || input.value < 0) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value entered"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid value entered"); } else { var totalCost = input.value * office.employees.length; if (this.funds.lt(totalCost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to throw this party!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough company funds to throw this party!"); } else { this.funds = this.funds.minus(totalCost); var mult; for (var fooit = 0; fooit < office.employees.length; ++fooit) { mult = office.employees[fooit].throwParty(input.value); } - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You threw a party for the office! The morale and happiness " + - "of each employee increased by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])((mult-1) * 100, 2) + "%."); - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You threw a party for the office! The morale and happiness " + + "of each employee increased by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])((mult-1) * 100, 2) + "%."); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); } } return false; } }); - var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Cancel", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(popupId); return false; } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_11__["createPopup"])(popupId, [txt, totalCostTxt, input, confirmBtn, cancelBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, totalCostTxt, input, confirmBtn, cancelBtn]); } })); - industryEmployeeManagementUI = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", {}); - industryEmployeeInfo = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {margin:"4px", padding:"4px"}); + industryEmployeeManagementUI = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", {}); + industryEmployeeInfo = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", {margin:"4px", padding:"4px"}); if (empManualAssignmentModeActive) { //Employees manually assigned - industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", margin:"4px", innerText:"Switch to Auto Mode", tooltip:"Switch to Automatic Assignment Mode, which will automatically " + @@ -40898,16 +40477,16 @@ Corporation.prototype.displayDivisionContent = function(division, city) { this.displayDivisionContent(division, city); } })); - industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); + industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); - industryIndividualEmployeeInfo = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", {margin:"4px", padding:"4px"}); - var selector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("select", { + industryIndividualEmployeeInfo = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", {margin:"4px", padding:"4px"}); + var selector = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("select", { color: "white", backgroundColor:"black", margin:"4px", padding:"4px", changeListener:()=>{ var name = selector.options[selector.selectedIndex].text; for (var i = 0; i < office.employees.length; ++i) { if (office.employees[i].name === name) { - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__["removeChildrenFromElement"])(industryIndividualEmployeeInfo); + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_21__["removeChildrenFromElement"])(industryIndividualEmployeeInfo); office.employees[i].createUI(industryIndividualEmployeeInfo, this); return; } @@ -40917,7 +40496,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { }); for (var i = 0; i < office.employees.length; ++i) { - selector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("option", {text:office.employees[i].name})); + selector.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("option", {text:office.employees[i].name})); } selector.selectedIndex = -1; @@ -40927,7 +40506,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { industryEmployeeManagementUI.appendChild(industryIndividualEmployeeInfo); } else { //Player only manages the number of each occupation, not who gets what job - industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class:"a-link-button", display:"inline-block", margin:"4px", innerText:"Switch to Manual Mode", tooltip:"Switch to Manual Assignment Mode, which allows you to " + @@ -40937,26 +40516,26 @@ Corporation.prototype.displayDivisionContent = function(division, city) { this.displayDivisionContent(division, city); } })); - industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); + industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); var opCount = 0, engCount = 0, busCount = 0, mgmtCount = 0, rndCount = 0, unassignedCount = 0, trainingCount = 0; for (var i = 0; i < office.employees.length; ++i) { switch (office.employees[i].pos) { - case EmployeePositions.Operations: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Operations: ++opCount; break; - case EmployeePositions.Engineer: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Engineer: ++engCount; break; - case EmployeePositions.Business: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Business: ++busCount; break; - case EmployeePositions.Management: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Management: ++mgmtCount; break; - case EmployeePositions.RandD: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].RandD: ++rndCount; break; - case EmployeePositions.Unassigned: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Unassigned: ++unassignedCount; break; - case EmployeePositions.Training: + case _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Training: ++trainingCount; break; default: console.log("ERROR: Unrecognized employee position: " + office.employees[i].pos); @@ -40965,19 +40544,19 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } //Unassigned employee count display - industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { display:"inline-block", innerText:"Unassigned Employees: " + unassignedCount, })); - industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); + industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); //General display of employee information (avg morale, avg energy, etc.) industryEmployeeManagementUI.appendChild(industryEmployeeInfo); - industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); + industryEmployeeManagementUI.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); - var positions = [EmployeePositions.Operations, EmployeePositions.Engineer, - EmployeePositions.Business, EmployeePositions.Management, - EmployeePositions.RandD, EmployeePositions.Training]; + var positions = [_EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Operations, _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Engineer, + _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Business, _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Management, + _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].RandD, _EmployeePositions__WEBPACK_IMPORTED_MODULE_1__["EmployeePositions"].Training]; var descriptions = ["Manages supply chain operations. Improves production.", //Operations "Develops and maintains products and production systems. Improves production.", //Engineer "Handles sales and finances. Improves sales.", //Business @@ -40987,12 +40566,12 @@ Corporation.prototype.displayDivisionContent = function(division, city) { var counts = [opCount, engCount, busCount, mgmtCount, rndCount, trainingCount]; for (var i = 0; i < positions.length; ++i) { (function(corp, i) { - var info = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { + var info = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("h2", { display:"inline-block", width:"40%", fontSize:"15px", innerText: positions[i] + "(" + counts[i] + ")", tooltipleft: descriptions[i] }); - var plusBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var plusBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class: unassignedCount > 0 ? "a-link-button" : "a-link-button-inactive", display:"inline-block", innerText:"+", clickListener:()=>{ @@ -41000,7 +40579,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { corp.displayDivisionContent(division, city); } }); - var minusBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var minusBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { class: counts[i] > 0 ? "a-link-button" : "a-link-button-inactive", display:"inline-block", innerText:"-", clickListener:()=>{ @@ -41008,7 +40587,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { corp.displayDivisionContent(division, city); } }); - var newline = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {}); + var newline = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {}); industryEmployeeManagementUI.appendChild(info); industryEmployeeManagementUI.appendChild(plusBtn); industryEmployeeManagementUI.appendChild(minusBtn); @@ -41023,12 +40602,12 @@ Corporation.prototype.displayDivisionContent = function(division, city) { if (warehouse instanceof Warehouse) { warehouse.createUI({industry:division, company: this}); } else { - industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + industryWarehousePanel.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("a", { innerText:"Purchase Warehouse ($5b)", class: "a-link-button", clickListener:()=>{ if (this.funds.lt(WarehouseInitialCost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You do not have enough funds to do this!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You do not have enough funds to do this!"); } else { division.warehouses[currentCityUi] = new Warehouse({ loc:currentCityUi, @@ -41052,7 +40631,7 @@ Corporation.prototype.updateDivisionContent = function(division) { var vechain = (this.unlockUpgrades[4] === 1); //Industry Overview Text var profit = division.lastCycleRevenue.minus(division.lastCycleExpenses).toNumber(), - profitStr = profit >= 0 ? _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(profit, "$0.000a") : "-" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(-1 * profit, "$0.000a"); + profitStr = profit >= 0 ? _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(profit, "$0.000a") : "-" + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(-1 * profit, "$0.000a"); var advertisingInfo = ""; if (vechain) { var advertisingFactors = division.getAdvertisingFactors(); @@ -41061,34 +40640,34 @@ Corporation.prototype.updateDivisionContent = function(division) { var ratioFac = advertisingFactors[3]; var totalAdvertisingFac = advertisingFactors[0]; advertisingInfo = - "

Advertising Multiplier: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(totalAdvertisingFac, 3) + + "

Advertising Multiplier: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(totalAdvertisingFac, 3) + "Total multiplier for this industry's sales due to its awareness and popularity
" + - "Awareness Bonus: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(Math.pow(awarenessFac, 0.85), 3) + "
" + - "Popularity Bonus: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(Math.pow(popularityFac, 0.85), 3) + "
" + - "Ratio Multiplier: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(Math.pow(ratioFac, 0.85), 3) + "


" + "Awareness Bonus: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(Math.pow(awarenessFac, 0.85), 3) + "
" + + "Popularity Bonus: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(Math.pow(popularityFac, 0.85), 3) + "
" + + "Ratio Multiplier: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(Math.pow(ratioFac, 0.85), 3) + "


" } - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_16__["removeChildrenFromElement"])(industryOverviewText); - industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { - innerHTML:"Industry: " + division.type + " (Corp Funds: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(this.funds.toNumber(), "$0.000a") + ")

" + - "Awareness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(division.awareness, 3) + "
" + - "Popularity: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(division.popularity, 3) + "
" + + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_21__["removeChildrenFromElement"])(industryOverviewText); + industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { + innerHTML:"Industry: " + division.type + " (Corp Funds: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(this.funds.toNumber(), "$0.000a") + ")

" + + "Awareness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(division.awareness, 3) + "
" + + "Popularity: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(division.popularity, 3) + "
" + advertisingInfo + "
" + - "Revenue: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(division.lastCycleRevenue.toNumber(), "$0.000a") + " / s
" + - "Expenses: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_6__[/* numeralWrapper */ "a"].format(division.lastCycleExpenses.toNumber(), "$0.000a") + " /s
" + + "Revenue: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(division.lastCycleRevenue.toNumber(), "$0.000a") + " / s
" + + "Expenses: " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_11__["numeralWrapper"].format(division.lastCycleExpenses.toNumber(), "$0.000a") + " /s
" + "Profit: " + profitStr + " / s

" })); - industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { marginTop:"2px", - innerText:"Production Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(division.prodMult, 2), + innerText:"Production Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(division.prodMult, 2), tooltip:"Production gain from owning production-boosting materials " + "such as hardware, Robots, AI Cores, and Real Estate" })); - industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("div", { innerText:"?", class:"help-tip", clickListener:()=>{ - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Owning Hardware, Robots, AI Cores, and Real Estate " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Owning Hardware, Robots, AI Cores, and Real Estate " + "can boost your Industry's production. The effect these " + "materials have on your production varies between Industries. " + "For example, Real Estate may be very effective for some Industries, " + @@ -41100,10 +40679,10 @@ Corporation.prototype.updateDivisionContent = function(division) { "production multiplier of your entire Division."); } })); - industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br")); - industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br")); + industryOverviewText.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { display:"inline-block", - innerText:"Scientific Research: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(division.sciResearch.qty, 3), + innerText:"Scientific Research: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(division.sciResearch.qty, 3), tooltip:"Scientific Research increases the quality of the materials and " + "products that you produce." })); @@ -41142,27 +40721,27 @@ Corporation.prototype.updateDivisionContent = function(division) { avgEnergy = totalEnergy / office.employees.length; } industryEmployeeInfo.innerHTML = - "Avg Employee Morale: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(avgMorale, 3) + "
" + - "Avg Employee Happiness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(avgHappiness, 3) + "
" + - "Avg Employee Energy: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(avgEnergy, 3); + "Avg Employee Morale: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(avgMorale, 3) + "
" + + "Avg Employee Happiness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(avgHappiness, 3) + "
" + + "Avg Employee Energy: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(avgEnergy, 3); if (vechain) { //VeChain - Statistics - industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); - industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { - innerText:"Material Production: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(division.getOfficeProductivity(office), 3), + industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); + industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { + innerText:"Material Production: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(division.getOfficeProductivity(office), 3), tooltip: "The base amount of material this office can produce. Does not include " + "production multipliers from upgrades and materials. This value is based off " + "the productivity of your Operations, Engineering, and Management employees" })); - industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); - industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { - innerText:"Product Production: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(division.getOfficeProductivity(office, {forProduct:true}), 3), + industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); + industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { + innerText:"Product Production: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(division.getOfficeProductivity(office, {forProduct:true}), 3), tooltip: "The base amount of any given Product this office can produce. Does not include " + "production multipliers from upgrades and materials. This value is based off " + "the productivity of your Operations, Engineering, and Management employees" })); - industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br", {})); - industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { - innerText: "Business Multiplier: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(division.getBusinessFactor(office), 3), + industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("br", {})); + industryEmployeeInfo.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("p", { + innerText: "Business Multiplier: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_18__["formatNumber"])(division.getBusinessFactor(office), 3), tooltip: "The effect this office's 'Business' employees has on boosting sales" })); } @@ -41175,7 +40754,7 @@ Corporation.prototype.updateDivisionContent = function(division) { } Corporation.prototype.createCityUITab = function(city, division) { - var tab = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_10__["createElement"])("button", { + var tab = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_16__["createElement"])("button", { id:"cmpy-mgmt-city-" + city + "-tab", class:"cmpy-mgmt-city-tab", innerText:city, @@ -41201,7 +40780,7 @@ Corporation.prototype.selectCityTab = function(activeTab, city) { Corporation.prototype.clearUI = function() { //Delete everything - if (companyManagementDiv != null) {Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(companyManagementDiv.id);} + if (companyManagementDiv != null) {Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_22__["removeElementById"])(companyManagementDiv.id);} //Reset global DOM variables companyManagementDiv = null; @@ -41240,20 +40819,20 @@ Corporation.prototype.clearUI = function() { } Corporation.prototype.toJSON = function() { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Corporation", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_toJSON"])("Corporation", this); } Corporation.fromJSON = function(value) { - return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Corporation, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Generic_fromJSON"])(Corporation, value.data); } -_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Corporation = Corporation; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_15__["Reviver"].constructors.Corporation = Corporation; /***/ }), -/* 59 */ +/* 61 */ /*!*********************************************!*\ !*** ./utils/uiHelpers/appendLineBreaks.ts ***! \*********************************************/ @@ -41279,7 +40858,228 @@ exports.appendLineBreaks = appendLineBreaks; /***/ }), -/* 60 */ +/* 62 */ +/*!*************************************!*\ + !*** ./src/Corporation/Material.ts ***! + \*************************************/ +/*! no static exports found */ +/*! exports used: Material */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13); +class Material { + constructor(params = {}) { + // Name of material + this.name = ""; + // Amount of material owned + this.qty = 0; + // Material's "quality". Unbounded + this.qlt = 0; + // How much demand the Material has in the market, and the range of possible + // values for this "demand" + this.dmd = 0; + this.dmdR = [0, 0]; + // How much competition there is for this Material in the market, and the range + // of possible values for this "competition" + this.cmp = 0; + this.cmpR = [0, 0]; + // Maximum volatility of this Materials stats + this.mv = 0; + // Markup. Determines how high of a price you can charge on the material + // compared to the market price without suffering loss in # of sales + // Quality is divided by this to determine markup limits + // e,g, If mku is 10 and quality is 100 then you can markup prices by 100/10 = 10 + this.mku = 0; + // How much of this material is being bought, sold, imported and produced every second + this.buy = 0; + this.sll = 0; + this.prd = 0; + this.imp = 0; + // Exports of this material to another warehouse/industry + this.exp = []; + // Total amount of this material exported in the last cycle + this.totalExp = 0; + // Cost / sec to buy this material. AKA Market Price + this.bCost = 0; + // Cost / sec to sell this material + this.sCost = 0; + // Flags to keep track of whether production and/or sale of this material is limited + // [Whether production/sale is limited, limit amount] + this.prdman = [false, 0]; // Production + this.sllman = [false, 0]; // Sale + if (params.name) { + this.name = params.name; + } + this.init(); + } + // Initiatizes a Material object from a JSON save state. + static fromJSON(value) { + return JSONReviver_1.Generic_fromJSON(Material, value.data); + } + init() { + switch (this.name) { + case "Water": + this.dmd = 75; + this.dmdR = [65, 85]; + this.cmp = 50; + this.cmpR = [40, 60]; + this.bCost = 1500; + this.mv = 0.2; + this.mku = 6; + break; + case "Energy": + this.dmd = 90; + this.dmdR = [80, 100]; + this.cmp = 80; + this.cmpR = [65, 95]; + this.bCost = 2000; + this.mv = 0.2; + this.mku = 6; + break; + case "Food": + this.dmd = 80; + this.dmdR = [70, 90]; + this.cmp = 60; + this.cmpR = [35, 85]; + this.bCost = 5000; + this.mv = 1; + this.mku = 3; + break; + case "Plants": + this.dmd = 70; + this.dmdR = [20, 90]; + this.cmp = 50; + this.cmpR = [30, 70]; + this.bCost = 3000; + this.mv = 0.6; + this.mku = 3.75; + break; + case "Metal": + this.dmd = 80; + this.dmdR = [75, 85]; + this.cmp = 70; + this.cmpR = [60, 80]; + this.bCost = 2650; + this.mv = 1; + this.mku = 6; + break; + case "Hardware": + this.dmd = 85; + this.dmdR = [80, 90]; + this.cmp = 80; + this.cmpR = [65, 95]; + this.bCost = 8e3; + this.mv = 0.5; //Less mv bc its processed twice + this.mku = 1; + break; + case "Chemicals": + this.dmd = 55; + this.dmdR = [40, 70]; + this.cmp = 60; + this.cmpR = [40, 80]; + this.bCost = 9e3; + this.mv = 1.2; + this.mku = 2; + break; + case "Real Estate": + this.dmd = 50; + this.dmdR = [5, 100]; + this.cmp = 50; + this.cmpR = [25, 75]; + this.bCost = 80e3; + this.mv = 1.5; //Less mv bc its processed twice + this.mku = 1.5; + break; + case "Drugs": + this.dmd = 60; + this.dmdR = [45, 75]; + this.cmp = 70; + this.cmpR = [40, 100]; + this.bCost = 40e3; + this.mv = 1.6; + this.mku = 1; + break; + case "Robots": + this.dmd = 90; + this.dmdR = [80, 100]; + this.cmp = 90; + this.cmpR = [80, 100]; + this.bCost = 75e3; + this.mv = 0.5; //Less mv bc its processed twice + this.mku = 1; + break; + case "AI Cores": + this.dmd = 90; + this.dmdR = [80, 100]; + this.cmp = 90; + this.cmpR = [80, 100]; + this.bCost = 15e3; + this.mv = 0.8; //Less mv bc its processed twice + this.mku = 0.5; + break; + case "Scientific Research": + break; + default: + console.log("Invalid material type in init(): " + this.name); + break; + } + } + // Process change in demand, competition, and buy cost of this material + processMarket() { + // The price will change in accordance with demand and competition. + // e.g. If demand goes up, then so does price. If competition goes up, price goes down + const priceVolatility = (Math.random() * this.mv) / 300; + const priceChange = 1 + priceVolatility; + //This 1st random check determines whether competition increases or decreases + const compVolatility = (Math.random() * this.mv) / 100; + const compChange = 1 + compVolatility; + if (Math.random() < 5) { + this.cmp *= compChange; + if (this.cmp > this.cmpR[1]) { + this.cmp = this.cmpR[1]; + } + ; + this.bCost *= (1 / priceChange); // Competition increases, so price goes down + } + else { + this.cmp *= (1 / compChange); + if (this.cmp < this.cmpR[0]) { + this.cmp = this.cmpR[0]; + } + this.bCost *= priceChange; // Competition decreases, so price goes up + } + // This 2nd random check determines whether demand increases or decreases + const dmdVolatility = (Math.random() * this.mv) / 100; + const dmdChange = 1 + dmdVolatility; + if (Math.random() < 0.5) { + this.dmd *= dmdChange; + if (this.dmd > this.dmdR[1]) { + this.dmd = this.dmdR[1]; + } + this.bCost *= priceChange; // Demand increases, so price goes up + } + else { + this.dmd *= (1 / dmdChange); + if (this.dmd < this.dmdR[0]) { + this.dmd = this.dmdR[0]; + } + this.bCost *= (1 / priceChange); + } + } + // Serialize the current object to a JSON save state. + toJSON() { + return JSONReviver_1.Generic_toJSON("Material", this); + } +} +exports.Material = Material; +JSONReviver_1.Reviver.constructors.Material = Material; + + +/***/ }), +/* 63 */ /*!*************************!*\ !*** ./src/TextFile.ts ***! \*************************/ @@ -41414,7 +41214,7 @@ function deleteTextFile(fn, server) { /***/ }), -/* 61 */ +/* 64 */ /*!************************************!*\ !*** ./utils/helpers/addOffset.ts ***! \************************************/ @@ -41450,8 +41250,8 @@ exports.addOffset = addOffset; /***/ }), -/* 62 */, -/* 63 */ +/* 65 */, +/* 66 */ /*!****************************!*\ !*** ./src/HacknetNode.js ***! \****************************/ @@ -41476,7 +41276,7 @@ exports.addOffset = addOffset; /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractiveTutorial */ 33); +/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractiveTutorial */ 35); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 16); @@ -41488,7 +41288,7 @@ exports.addOffset = addOffset; /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/uiHelpers/getElementById */ 51); +/* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/uiHelpers/getElementById */ 53); /* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_11__); @@ -42167,7 +41967,7 @@ function getHacknetNode(name) { /***/ }), -/* 64 */ +/* 67 */ /*!********************************!*\ !*** ./src/ActiveScriptsUI.js ***! \********************************/ @@ -42183,26 +41983,27 @@ function getHacknetNode(name) { /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 73); +/* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/createAccordionElement */ 76); /* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 52); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 54); /* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/helpers/createProgressBarText */ 79); +/* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/helpers/createProgressBarText */ 83); /* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); -/* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/getElementById */ 51); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44); +/* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/getElementById */ 53); /* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/LogBox */ 75); +/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/LogBox */ 78); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 29); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 67); +/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 70); /* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 77); +/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 81); /* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ui/navigationTracking */ 12); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_16__); @@ -42449,9 +42250,9 @@ function updateActiveScriptsItems(maxTasks=150) { } } - Object(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__["getElementById"])("active-scripts-total-production-active").innerText = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__[/* numeralWrapper */ "a"].format(total, '$0.000a'); - Object(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__["getElementById"])("active-scripts-total-prod-aug-total").innerText = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].scriptProdSinceLastAug, '$0.000a'); - Object(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__["getElementById"])("active-scripts-total-prod-aug-avg").innerText = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].scriptProdSinceLastAug / (_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].playtimeSinceLastAug/1000), '$0.000a'); + Object(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__["getElementById"])("active-scripts-total-production-active").innerText = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__["numeralWrapper"].format(total, '$0.000a'); + Object(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__["getElementById"])("active-scripts-total-prod-aug-total").innerText = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].scriptProdSinceLastAug, '$0.000a'); + Object(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__["getElementById"])("active-scripts-total-prod-aug-avg").innerText = _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_3__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].scriptProdSinceLastAug / (_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].playtimeSinceLastAug/1000), '$0.000a'); return total; } @@ -42532,8 +42333,8 @@ function updateActiveScriptsText(workerscript, item, itemName) { /***/ }), -/* 65 */, -/* 66 */ +/* 68 */, +/* 69 */ /*!***************************!*\ !*** ./src/SourceFile.js ***! \***************************/ @@ -42547,7 +42348,7 @@ function updateActiveScriptsText(workerscript, item, itemName) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return applySourceFile; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return initSourceFiles; }); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode */ 56); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode */ 58); @@ -42800,7 +42601,7 @@ function applySourceFile(srcFile) { /***/ }), -/* 67 */ +/* 70 */ /*!******************************************!*\ !*** ./utils/uiHelpers/removeElement.ts ***! \******************************************/ @@ -42837,7 +42638,7 @@ exports.removeElement = removeElement; /***/ }), -/* 68 */ +/* 71 */ /*!******************************!*\ !*** ./src/NetscriptPort.js ***! \******************************/ @@ -42903,7 +42704,7 @@ NetscriptPort.prototype.clear = function() { /***/ }), -/* 69 */ +/* 72 */ /*!*****************************!*\ !*** ./src/SettingEnums.ts ***! \*****************************/ @@ -42934,8 +42735,7 @@ var PurchaseAugmentationsOrderSetting; /***/ }), -/* 70 */, -/* 71 */ +/* 73 */ /*!********************************!*\ !*** ./src/Company/Company.ts ***! \********************************/ @@ -42947,7 +42747,7 @@ var PurchaseAugmentationsOrderSetting; Object.defineProperty(exports, "__esModule", { value: true }); const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13); -const CompanyPosition_1 = __webpack_require__(/*! ./CompanyPosition */ 81); +const CompanyPosition_1 = __webpack_require__(/*! ./CompanyPosition */ 85); const Constants_1 = __webpack_require__(/*! ../Constants */ 1); const DefaultConstructorParams = { name: "", @@ -43033,7 +42833,7 @@ JSONReviver_1.Reviver.constructors.Company = Company; /***/ }), -/* 72 */ +/* 74 */ /*!***************************!*\ !*** ./src/SaveObject.js ***! \***************************/ @@ -43044,43 +42844,44 @@ JSONReviver_1.Reviver.constructors.Company = Company; "use strict"; /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return saveObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return loadGame; }); -/* harmony import */ var _Alias__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias */ 43); +/* harmony import */ var _Alias__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias */ 45); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Company/Companies */ 18); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Company/CompanyPosition */ 81); +/* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Company/CompanyPosition */ 85); /* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./engine */ 8); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 44); -/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Fconf */ 45); -/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Gang */ 48); -/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./HacknetNode */ 63); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Message */ 38); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Fconf */ 47); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Gang */ 50); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./HacknetNode */ 66); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Message */ 40); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Script */ 28); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Script */ 30); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./SpecialServerIps */ 30); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./SpecialServerIps */ 32); /* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./StockMarket */ 22); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_GameOptions__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/GameOptions */ 80); +/* harmony import */ var _utils_GameOptions__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/GameOptions */ 84); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 16); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_19__); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/JSONReviver */ 13); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_21__); -/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 39); +/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 41); /* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_22__); -/* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ui/createStatusText */ 95); +/* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ui/createStatusText */ 99); /* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_ui_createStatusText__WEBPACK_IMPORTED_MODULE_23__); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_25__); -/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! decimal.js */ 31); +/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! decimal.js */ 33); @@ -43571,8 +43372,8 @@ function loadImportedGame(saveObj, saveString) { _Player__WEBPACK_IMPORTED_MODULE_11__[/* Player */ "a"].lastUpdate = _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"]._lastUpdate; _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].start(); //Run main game loop and Scripts loop Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_17__["dialogBoxCreate"])("While you were offline, your scripts generated $" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24__[/* numeralWrapper */ "a"].format(offlineProductionFromScripts, '0,0.00') + " and your Hacknet Nodes generated $" + - _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24__[/* numeralWrapper */ "a"].format(offlineProductionFromHacknetNodes, '0,0.00') + ""); + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24__["numeralWrapper"].format(offlineProductionFromScripts, '0,0.00') + " and your Hacknet Nodes generated $" + + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_24__["numeralWrapper"].format(offlineProductionFromHacknetNodes, '0,0.00') + ""); return true; } @@ -43684,10 +43485,38 @@ function openImportFileHandler(evt) { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 73 */ +/* 75 */ +/*!******************************************!*\ + !*** ./src/Corporation/MaterialSizes.ts ***! + \******************************************/ +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +// Map of material (by name) to their sizes (how much space it takes in warehouse) +exports.MaterialSizes = { + Water: 0.05, + Energy: 0.01, + Food: 0.03, + Plants: 0.05, + Metal: 0.1, + Hardware: 0.06, + Chemicals: 0.05, + Drugs: 0.02, + Robots: 0.5, + AICores: 0.1, + RealEstate: 0, +}; + + +/***/ }), +/* 76 */ /*!***************************************************!*\ !*** ./utils/uiHelpers/createAccordionElement.ts ***! \***************************************************/ @@ -43732,7 +43561,7 @@ exports.createAccordionElement = createAccordionElement; /***/ }), -/* 74 */ +/* 77 */ /*!**************************************!*\ !*** ./utils/helpers/clearObject.ts ***! \**************************************/ @@ -43761,7 +43590,7 @@ exports.clearObject = clearObject; /***/ }), -/* 75 */ +/* 78 */ /*!*************************!*\ !*** ./utils/LogBox.js ***! \*************************/ @@ -43777,7 +43606,7 @@ exports.clearObject = clearObject; /* harmony import */ var _src_NetscriptWorker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/NetscriptWorker */ 24); /* harmony import */ var _uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uiHelpers/clearEventListeners */ 16); /* harmony import */ var _uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _helpers_arrayToString__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers/arrayToString */ 52); +/* harmony import */ var _helpers_arrayToString__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers/arrayToString */ 54); /* harmony import */ var _helpers_arrayToString__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_2__); @@ -43848,10 +43677,10 @@ function logBoxUpdateText() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 76 */ +/* 79 */ /*!************************!*\ !*** ./src/DarkWeb.js ***! \************************/ @@ -43865,10 +43694,10 @@ function logBoxUpdateText() { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DarkWebItems; }); /* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CreateProgram */ 23); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SpecialServerIps */ 30); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SpecialServerIps */ 32); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ui/postToTerminal */ 7); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 84); +/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 88); /* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5__); @@ -43991,7 +43820,8 @@ const DarkWebItems = { /***/ }), -/* 77 */ +/* 80 */, +/* 81 */ /*!*************************************!*\ !*** ./utils/helpers/roundToTwo.ts ***! \*************************************/ @@ -44014,7 +43844,7 @@ exports.roundToTwo = roundToTwo; /***/ }), -/* 78 */ +/* 82 */ /*!***************************!*\ !*** ./src/Literature.js ***! \***************************/ @@ -44465,7 +44295,7 @@ function initLiterature() { /***/ }), -/* 79 */ +/* 83 */ /*!************************************************!*\ !*** ./utils/helpers/createProgressBarText.ts ***! \************************************************/ @@ -44501,7 +44331,7 @@ exports.createProgressBarText = createProgressBarText; /***/ }), -/* 80 */ +/* 84 */ /*!******************************!*\ !*** ./utils/GameOptions.js ***! \******************************/ @@ -44558,10 +44388,10 @@ function gameOptionsBoxOpen() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 81 */ +/* 85 */ /*!****************************************!*\ !*** ./src/Company/CompanyPosition.ts ***! \****************************************/ @@ -44573,7 +44403,7 @@ function gameOptionsBoxOpen() { Object.defineProperty(exports, "__esModule", { value: true }); const Constants_1 = __webpack_require__(/*! ../Constants */ 1); -const names = __webpack_require__(/*! ./data/CompanyPositionNames */ 34); +const names = __webpack_require__(/*! ./data/CompanyPositionNames */ 36); class CompanyPosition { constructor(p) { this.name = p.name; @@ -44653,7 +44483,7 @@ exports.CompanyPosition = CompanyPosition; /***/ }), -/* 82 */ +/* 86 */ /*!*************************!*\ !*** ./src/Prestige.js ***! \*************************/ @@ -44664,39 +44494,39 @@ exports.CompanyPosition = CompanyPosition; "use strict"; /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return prestigeAugmentation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return prestigeSourceFile; }); -/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 64); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 67); /* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentations */ 21); -/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BitNode */ 56); -/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Bladeburner */ 29); -/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CinematicText */ 93); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BitNode */ 58); +/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Bladeburner */ 31); +/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CinematicText */ 97); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company/Companies */ 18); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CreateProgram */ 23); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Faction/Faction */ 54); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Faction/Faction */ 56); /* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 44); -/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Gang */ 48); -/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Location */ 86); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Message */ 38); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./NetscriptFunctions */ 41); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 46); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Gang */ 50); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Location */ 90); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Message */ 40); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./NetscriptFunctions */ 43); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./NetscriptWorker */ 24); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Server */ 11); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SpecialServerIps */ 30); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SpecialServerIps */ 32); /* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./StockMarket */ 22); -/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Terminal */ 49); -/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! decimal.js */ 31); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Terminal */ 51); +/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! decimal.js */ 33); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_23__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_24__); -/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 39); +/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 41); /* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_25__); -/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/YesNoBox */ 17); @@ -45024,10 +44854,10 @@ function prestigeSourceFile() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 62))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 65))) /***/ }), -/* 83 */ +/* 87 */ /*!***************************************!*\ !*** ./utils/helpers/getTimestamp.ts ***! \***************************************/ @@ -45053,7 +44883,7 @@ exports.getTimestamp = getTimestamp; /***/ }), -/* 84 */ +/* 88 */ /*!*******************************************!*\ !*** ./utils/helpers/isValidIPAddress.ts ***! \*******************************************/ @@ -45078,8 +44908,8 @@ exports.isValidIPAddress = isValidIPAddress; /***/ }), -/* 85 */, -/* 86 */ +/* 89 */, +/* 90 */ /*!*************************!*\ !*** ./src/Location.js ***! \*************************/ @@ -45090,35 +44920,36 @@ exports.isValidIPAddress = isValidIPAddress; "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return displayLocationContent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return initLocationButtons; }); -/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Bladeburner */ 29); -/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Company/CompanyPositions */ 26); +/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Bladeburner */ 31); +/* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Company/CompanyPositions */ 27); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Company/Companies */ 18); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Company/GetJobRequirementText */ 88); +/* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Company/GetJobRequirementText */ 92); /* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Company/data/CompanyPositionNames */ 34); +/* harmony import */ var _Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Company/data/CompanyPositionNames */ 36); /* harmony import */ var _Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _CompanyManagement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CompanyManagement */ 58); +/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Corporation/Corporation */ 60); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Crimes */ 35); +/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Crimes */ 37); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _Infiltration__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Infiltration */ 126); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NetscriptFunctions */ 41); +/* harmony import */ var _Infiltration__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Infiltration */ 132); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NetscriptFunctions */ 43); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Server */ 11); -/* harmony import */ var _ServerPurchases__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ServerPurchases */ 108); +/* harmony import */ var _ServerPurchases__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ServerPurchases */ 113); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SpecialServerIps */ 30); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SpecialServerIps */ 32); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_17__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 16); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_19__); -/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/IPAddress */ 57); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/IPAddress */ 59); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/YesNoBox */ 17); @@ -45835,7 +45666,7 @@ function displayLocationContent() { case _Locations__WEBPACK_IMPORTED_MODULE_11__["Locations"].Sector12CityHall: cityHallCreateCorporation.style.display = "block"; - if (_Player__WEBPACK_IMPORTED_MODULE_12__[/* Player */ "a"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_5__[/* Corporation */ "a"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_12__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_5__[/* Corporation */ "a"]) { cityHallCreateCorporation.className = "a-link-button-inactive"; } else { cityHallCreateCorporation.className = "a-link-button"; @@ -46909,7 +46740,7 @@ function initLocationButtons() { }); Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_22__[/* yesNoBoxCreate */ "b"])("Would you like to purchase additional RAM for your home computer?

" + "This will upgrade your RAM from " + ram + "GB to " + ram*2 + "GB.

" + - "This will cost " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_17__[/* numeralWrapper */ "a"].format(cost, '$0.000a')); + "This will cost " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_17__["numeralWrapper"].format(cost, '$0.000a')); }); purchaseHomeCores.addEventListener("click", function(e) { @@ -46946,7 +46777,7 @@ function initLocationButtons() { Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_22__[/* yesNoBoxCreate */ "b"])("Would you like to purchase an additional CPU Core for your home computer? Each CPU Core " + "lets you start with an additional Core Node in Hacking Missions.

" + "Purchasing an additional core (for a total of " + (_Player__WEBPACK_IMPORTED_MODULE_12__[/* Player */ "a"].getHomeComputer().cpuCores + 1) + ") will " + - "cost " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_17__[/* numeralWrapper */ "a"].format(cost, '$0.000a')); + "cost " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_17__["numeralWrapper"].format(cost, '$0.000a')); }); travelToAevum.addEventListener("click", function(e) { @@ -47073,7 +46904,7 @@ function initLocationButtons() { Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_18__["dialogBoxCreate"])("Invalid company name!"); return false; } - _Player__WEBPACK_IMPORTED_MODULE_12__[/* Player */ "a"].corporation = new _CompanyManagement__WEBPACK_IMPORTED_MODULE_5__[/* Corporation */ "a"]({ + _Player__WEBPACK_IMPORTED_MODULE_12__[/* Player */ "a"].corporation = new _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_5__[/* Corporation */ "a"]({ name:companyName, }); displayLocationContent(); @@ -47086,7 +46917,7 @@ function initLocationButtons() { noBtn.addEventListener("click", function() { return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_22__[/* yesNoTxtInpBoxClose */ "f"])(); }); - if (_Player__WEBPACK_IMPORTED_MODULE_12__[/* Player */ "a"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_5__[/* Corporation */ "a"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_12__[/* Player */ "a"].corporation instanceof _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_5__[/* Corporation */ "a"]) { return; } else { Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_22__[/* yesNoTxtInpBoxCreate */ "g"])("Would you like to start a corporation? This will require $150b " + @@ -47345,7 +47176,7 @@ function purchaseServerBoxCreate(ram, cost) { /***/ }), -/* 87 */ +/* 91 */ /*!****************************************!*\ !*** ./utils/helpers/compareArrays.ts ***! \****************************************/ @@ -47376,7 +47207,7 @@ exports.compareArrays = compareArrays; /***/ }), -/* 88 */ +/* 92 */ /*!**********************************************!*\ !*** ./src/Company/GetJobRequirementText.ts ***! \**********************************************/ @@ -47442,7 +47273,7 @@ exports.getJobRequirementText = getJobRequirementText; /***/ }), -/* 89 */ +/* 93 */ /*!****************************************!*\ !*** ./utils/helpers/getRandomByte.ts ***! \****************************************/ @@ -47468,9 +47299,9 @@ exports.getRandomByte = getRandomByte; /***/ }), -/* 90 */, -/* 91 */, -/* 92 */ +/* 94 */, +/* 95 */, +/* 96 */ /*!****************************************!*\ !*** ./src/CodingContractGenerator.js ***! \****************************************/ @@ -47481,7 +47312,7 @@ exports.getRandomByte = getRandomByte; "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return generateRandomContract; }); /* unused harmony export generateContract */ -/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CodingContracts */ 40); +/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CodingContracts */ 42); /* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CodingContracts__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_1__); @@ -47647,7 +47478,7 @@ function getRandomFilename(server, reward) { /***/ }), -/* 93 */ +/* 97 */ /*!******************************!*\ !*** ./src/CinematicText.js ***! \******************************/ @@ -47659,12 +47490,12 @@ function getRandomFilename(server, reward) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cinematicTextFlag; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return writeCinematicText; }); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine */ 8); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 29); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/helpers/isString */ 37); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/helpers/isString */ 39); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_4__); @@ -47768,7 +47599,7 @@ function cinematicTextEnd() { /***/ }), -/* 94 */ +/* 98 */ /*!***********************************************!*\ !*** ./src/Company/GetNextCompanyPosition.ts ***! \***********************************************/ @@ -47779,7 +47610,7 @@ function cinematicTextEnd() { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const CompanyPositions_1 = __webpack_require__(/*! ./CompanyPositions */ 26); +const CompanyPositions_1 = __webpack_require__(/*! ./CompanyPositions */ 27); function getNextCompanyPosition(currPos) { if (currPos == null) { return null; @@ -47794,7 +47625,7 @@ exports.getNextCompanyPosition = getNextCompanyPosition; /***/ }), -/* 95 */ +/* 99 */ /*!************************************!*\ !*** ./src/ui/createStatusText.ts ***! \************************************/ @@ -47805,7 +47636,7 @@ exports.getNextCompanyPosition = getNextCompanyPosition; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ../../utils/uiHelpers/getElementById */ 51); +const getElementById_1 = __webpack_require__(/*! ../../utils/uiHelpers/getElementById */ 53); const threeSeconds = 3000; let x; /** @@ -47831,7 +47662,7 @@ exports.createStatusText = createStatusText; /***/ }), -/* 96 */ +/* 100 */ /*!*************************!*\ !*** ./src/HelpText.ts ***! \*************************/ @@ -48072,14 +47903,221 @@ exports.HelpTexts = { /***/ }), -/* 97 */, -/* 98 */, -/* 99 */, -/* 100 */, -/* 101 */, +/* 101 */ +/*!************************************!*\ + !*** ./src/Corporation/Product.ts ***! + \************************************/ +/*! no static exports found */ +/*! exports used: Product */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const EmployeePositions_1 = __webpack_require__(/*! ./EmployeePositions */ 25); +const MaterialSizes_1 = __webpack_require__(/*! ./MaterialSizes */ 75); +const ProductRatingWeights_1 = __webpack_require__(/*! ./ProductRatingWeights */ 191); +const Cities_1 = __webpack_require__(/*! ../Locations/Cities */ 190); +const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13); +const getRandomInt_1 = __webpack_require__(/*! ../../utils/helpers/getRandomInt */ 14); +class Product { + constructor(params = {}) { + // Product name + this.name = ""; + // The demand for this Product in the market. Gradually decreases + this.dmd = 0; + // How much competition there is in the market for this Product + this.cmp = 0; + // Markup. Affects how high of a price you can charge for this Product + // without suffering a loss in the # of sales + this.mku = 0; + // Production cost - estimation of how much money it costs to make this Product + this.pCost = 0; + // Sell cost + this.sCost = 0; + // Variables for handling the creation process of this Product + this.fin = false; // Whether this Product has finished being created + this.prog = 0; // Creation progress - A number betwee 0-100 representing percentage + this.createCity = ""; // City in which the product is/was being created + this.designCost = 0; // How much money was invested into designing this Product + this.advCost = 0; // How much money was invested into advertising this Product + // Aggregate score for this Product's 'rating' + // This is based on the stats/properties below. The weighting of the + // stats/properties below differs between different industries + this.rat = 0; + // Stats/properties of this Product + this.qlt = 0; + this.per = 0; + this.dur = 0; + this.rel = 0; + this.aes = 0; + this.fea = 0; + // Data refers to the production, sale, and quantity of the products + // These values are specific to a city + // For each city, the data is [qty, prod, sell] + this.data = { + [Cities_1.Cities.Aevum]: [0, 0, 0], + [Cities_1.Cities.Chongqing]: [0, 0, 0], + [Cities_1.Cities.Sector12]: [0, 0, 0], + [Cities_1.Cities.NewTokyo]: [0, 0, 0], + [Cities_1.Cities.Ishima]: [0, 0, 0], + [Cities_1.Cities.Volhaven]: [0, 0, 0], + }; + // Location of this Product + // Only applies for location-based products like restaurants/hospitals + this.loc = ""; + // How much space 1 unit of the Product takes (in the warehouse) + // Not applicable for all Products + this.siz = 0; + // Material requirements. An object that maps the name of a material to how much it requires + // to make 1 unit of the product. + this.reqMats = {}; + // Data to keep track of whether production/sale of this Product is + // manually limited. These values are specific to a city + // [Whether production/sale is limited, limit amount] + this.prdman = { + [Cities_1.Cities.Aevum]: [false, 0], + [Cities_1.Cities.Chongqing]: [false, 0], + [Cities_1.Cities.Sector12]: [false, 0], + [Cities_1.Cities.NewTokyo]: [false, 0], + [Cities_1.Cities.Ishima]: [false, 0], + [Cities_1.Cities.Volhaven]: [false, 0], + }; + this.sllman = { + [Cities_1.Cities.Aevum]: [false, 0], + [Cities_1.Cities.Chongqing]: [false, 0], + [Cities_1.Cities.Sector12]: [false, 0], + [Cities_1.Cities.NewTokyo]: [false, 0], + [Cities_1.Cities.Ishima]: [false, 0], + [Cities_1.Cities.Volhaven]: [false, 0], + }; + this.name = params.name ? params.name : ""; + this.dmd = params.demand ? params.demand : 0; + this.cmp = params.competition ? params.competition : 0; + this.mku = params.markup ? params.markup : 0; + this.createCity = params.createCity ? params.createCity : ""; + this.designCost = params.designCost ? params.designCost : 0; + this.advCost = params.advCost ? params.advCost : 0; + this.qlt = params.quality ? params.quality : 0; + this.per = params.performance ? params.performance : 0; + this.dur = params.durability ? params.durability : 0; + this.rel = params.reliability ? params.reliability : 0; + this.aes = params.aesthetics ? params.aesthetics : 0; + this.fea = params.features ? params.features : 0; + this.loc = params.loc ? params.loc : ""; + this.siz = params.size ? params.size : 0; + this.reqMats = params.req ? params.req : {}; + } + // Initiatizes a Product object from a JSON save state. + static fromJSON(value) { + return JSONReviver_1.Generic_fromJSON(Product, value.data); + } + // empWorkMult is a multiplier that increases progress rate based on + // productivity of employees + createProduct(marketCycles = 1, empWorkMult = 1) { + if (this.fin) { + return; + } + this.prog += (marketCycles * .01 * empWorkMult); + } + // @param industry - Industry object. Reference to industry that makes this Product + finishProduct(employeeProd, industry) { + this.fin = true; + //Calculate properties + var progrMult = this.prog / 100; + var engrRatio = employeeProd[EmployeePositions_1.EmployeePositions.Engineer] / employeeProd["total"], mgmtRatio = employeeProd[EmployeePositions_1.EmployeePositions.Management] / employeeProd["total"], rndRatio = employeeProd[EmployeePositions_1.EmployeePositions.RandD] / employeeProd["total"], opsRatio = employeeProd[EmployeePositions_1.EmployeePositions.Operations] / employeeProd["total"], busRatio = employeeProd[EmployeePositions_1.EmployeePositions.Business] / employeeProd["total"]; + var designMult = 1 + (Math.pow(this.designCost, 0.1) / 100); + console.log("designMult: " + designMult); + var balanceMult = (1.2 * engrRatio) + (0.9 * mgmtRatio) + (1.3 * rndRatio) + + (1.5 * opsRatio) + (busRatio); + var sciMult = 1 + (Math.pow(industry.sciResearch.qty, industry.sciFac) / 800); + var totalMult = progrMult * balanceMult * designMult * sciMult; + this.qlt = totalMult * ((0.10 * employeeProd[EmployeePositions_1.EmployeePositions.Engineer]) + + (0.05 * employeeProd[EmployeePositions_1.EmployeePositions.Management]) + + (0.05 * employeeProd[EmployeePositions_1.EmployeePositions.RandD]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.Operations]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.Business])); + this.per = totalMult * ((0.15 * employeeProd[EmployeePositions_1.EmployeePositions.Engineer]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.Management]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.RandD]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.Operations]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.Business])); + this.dur = totalMult * ((0.05 * employeeProd[EmployeePositions_1.EmployeePositions.Engineer]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.Management]) + + (0.08 * employeeProd[EmployeePositions_1.EmployeePositions.RandD]) + + (0.05 * employeeProd[EmployeePositions_1.EmployeePositions.Operations]) + + (0.05 * employeeProd[EmployeePositions_1.EmployeePositions.Business])); + this.rel = totalMult * ((0.02 * employeeProd[EmployeePositions_1.EmployeePositions.Engineer]) + + (0.08 * employeeProd[EmployeePositions_1.EmployeePositions.Management]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.RandD]) + + (0.05 * employeeProd[EmployeePositions_1.EmployeePositions.Operations]) + + (0.08 * employeeProd[EmployeePositions_1.EmployeePositions.Business])); + this.aes = totalMult * ((0.00 * employeeProd[EmployeePositions_1.EmployeePositions.Engineer]) + + (0.08 * employeeProd[EmployeePositions_1.EmployeePositions.Management]) + + (0.05 * employeeProd[EmployeePositions_1.EmployeePositions.RandD]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.Operations]) + + (0.10 * employeeProd[EmployeePositions_1.EmployeePositions.Business])); + this.fea = totalMult * ((0.08 * employeeProd[EmployeePositions_1.EmployeePositions.Engineer]) + + (0.05 * employeeProd[EmployeePositions_1.EmployeePositions.Management]) + + (0.02 * employeeProd[EmployeePositions_1.EmployeePositions.RandD]) + + (0.05 * employeeProd[EmployeePositions_1.EmployeePositions.Operations]) + + (0.05 * employeeProd[EmployeePositions_1.EmployeePositions.Business])); + this.calculateRating(industry); + var advMult = 1 + (Math.pow(this.advCost, 0.1) / 100); + this.mku = 100 / (advMult * Math.pow((this.qlt + 0.001), 0.65) * (busRatio + mgmtRatio)); + this.dmd = industry.awareness === 0 ? 20 : Math.min(100, advMult * (100 * (industry.popularity / industry.awareness))); + this.cmp = getRandomInt_1.getRandomInt(0, 70); + //Calculate the product's required materials + //For now, just set it to be the same as the requirements to make materials + for (var matName in industry.reqMats) { + if (industry.reqMats.hasOwnProperty(matName)) { + this.reqMats[matName] = industry.reqMats[matName]; + } + } + //Calculate the product's size + //For now, just set it to be the same size as the requirements to make materials + this.siz = 0; + for (var matName in industry.reqMats) { + this.siz += MaterialSizes_1.MaterialSizes[matName] * industry.reqMats[matName]; + } + //Delete unneeded variables + delete this.prog; + delete this.createCity; + delete this.designCost; + delete this.advCost; + } + calculateRating(industry) { + const weights = ProductRatingWeights_1.ProductRatingWeights[industry.type]; + if (weights == null) { + console.log("ERROR: Could not find product rating weights for: " + industry); + return; + } + this.rat = 0; + this.rat += weights.Quality ? this.qlt * weights.Quality : 0; + this.rat += weights.Performance ? this.per * weights.Performance : 0; + this.rat += weights.Durability ? this.dur * weights.Durability : 0; + this.rat += weights.Reliability ? this.rel * weights.Reliability : 0; + this.rat += weights.Aesthetics ? this.aes * weights.Aesthetics : 0; + this.rat += weights.Features ? this.fea * weights.Features : 0; + } + // Serialize the current object to a JSON save state. + toJSON() { + return JSONReviver_1.Generic_toJSON("Product", this); + } +} +exports.Product = Product; +JSONReviver_1.Reviver.constructors.Product = Product; + + +/***/ }), /* 102 */, /* 103 */, -/* 104 */ +/* 104 */, +/* 105 */, +/* 106 */, +/* 107 */, +/* 108 */, +/* 109 */ /*!************************************!*\ !*** ./src/Faction/FactionInfo.ts ***! \************************************/ @@ -48254,7 +48292,7 @@ exports.FactionInfos = { /***/ }), -/* 105 */ +/* 110 */ /*!*************************************!*\ !*** ./src/NetscriptEnvironment.js ***! \*************************************/ @@ -48264,9 +48302,9 @@ exports.FactionInfos = { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Environment; }); -/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HacknetNode */ 63); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptFunctions */ 41); -/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptPort */ 68); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HacknetNode */ 66); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptFunctions */ 43); +/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptPort */ 71); @@ -48366,7 +48404,7 @@ Environment.prototype = { /***/ }), -/* 106 */ +/* 111 */ /*!*************************************!*\ !*** ./src/NetscriptJSEvaluator.js ***! \*************************************/ @@ -48490,7 +48528,7 @@ function _getScriptUrls(script, scripts, seen) { /***/ }), -/* 107 */ +/* 112 */ /*!************************!*\ !*** ./src/DevMenu.js ***! \************************/ @@ -48502,20 +48540,21 @@ function _getScriptUrls(script, scripts, seen) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return createDevMenu; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return closeDevMenu; }); /* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations */ 21); -/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContractGenerator */ 92); +/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContractGenerator */ 96); /* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateProgram */ 23); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction/Factions */ 15); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Server */ 11); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RedPill */ 55); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RedPill */ 57); /* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./StockMarket */ 22); -/* harmony import */ var _Stock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Stock */ 25); +/* harmony import */ var _Stock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Stock */ 26); /* harmony import */ var _Stock__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Stock__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Terminal */ 49); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Terminal */ 51); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 44); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 20); @@ -48978,7 +49017,7 @@ function createDevMenu() { clickListener: () => { let text = ""; processStocks((stock) => { - text += `${stock.symbol}: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__[/* numeralWrapper */ "a"].format(stock.cap, '$0.000a')}
`; + text += `${stock.symbol}: ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_10__["numeralWrapper"].format(stock.cap, '$0.000a')}
`; }); Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_11__["dialogBoxCreate"])(text); }, @@ -49069,7 +49108,7 @@ function closeDevMenu() { /***/ }), -/* 108 */ +/* 113 */ /*!********************************!*\ !*** ./src/ServerPurchases.js ***! \********************************/ @@ -49085,7 +49124,7 @@ function closeDevMenu() { /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Server */ 11); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/IPAddress */ 57); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/IPAddress */ 59); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/YesNoBox */ 17); @@ -49159,7 +49198,57 @@ function purchaseRamForHomeComputer(cost) { /***/ }), -/* 109 */ +/* 114 */ +/*!*********************************************!*\ + !*** ./src/Corporation/CorporationState.ts ***! + \*********************************************/ +/*! no static exports found */ +/*! exports used: AllCorporationStates, CorporationState */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 13); +// Array of all valid states +exports.AllCorporationStates = ["START", "PURCHASE", "PRODUCTION", "SALE", "EXPORT"]; +class CorporationState { + constructor() { + // Number representing what state the Corporation is in. The number + // is an index for the array that holds all Corporation States + this.state = 0; + } + // Initiatizes a CorporationState object from a JSON save state. + static fromJSON(value) { + return JSONReviver_1.Generic_fromJSON(CorporationState, value.data); + } + // Get the name of the current state + // NOTE: This does NOT return the number stored in the 'state' property, + // which is just an index for the array of all possible Corporation States. + getState() { + return exports.AllCorporationStates[this.state]; + } + // Transition to the next state + nextState() { + if (this.state < 0 || this.state >= exports.AllCorporationStates.length) { + this.state = 0; + } + ++this.state; + if (this.state >= exports.AllCorporationStates.length) { + this.state = 0; + } + } + // Serialize the current object to a JSON save state. + toJSON() { + return JSONReviver_1.Generic_toJSON("CorporationState", this); + } +} +exports.CorporationState = CorporationState; +JSONReviver_1.Reviver.constructors.CorporationState = CorporationState; + + +/***/ }), +/* 115 */ /*!************************************************!*\ !*** ./utils/uiHelpers/removeLoadingScreen.ts ***! \************************************************/ @@ -49170,7 +49259,7 @@ function purchaseRamForHomeComputer(cost) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 51); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 53); const removeElementById_1 = __webpack_require__(/*! ./removeElementById */ 20); /** * Routes the player from the Loading screen to the main game content. @@ -49184,14 +49273,14 @@ exports.removeLoadingScreen = removeLoadingScreen; /***/ }), -/* 110 */, -/* 111 */, -/* 112 */, -/* 113 */, -/* 114 */, -/* 115 */, /* 116 */, -/* 117 */ +/* 117 */, +/* 118 */, +/* 119 */, +/* 120 */, +/* 121 */, +/* 122 */, +/* 123 */ /*!*************************************!*\ !*** ./src/ui/setSettingsLabels.js ***! \*************************************/ @@ -49205,6 +49294,7 @@ exports.removeLoadingScreen = removeLoadingScreen; /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Settings */ 19); /* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Settings__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _numeralFormat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numeralFormat */ 4); +/* harmony import */ var _numeralFormat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_numeralFormat__WEBPACK_IMPORTED_MODULE_2__); @@ -49236,7 +49326,7 @@ function setSettingsLabels() { autosaveInterval.innerHTML = _Settings__WEBPACK_IMPORTED_MODULE_1__["Settings"].AutosaveInterval; disableHotkeys.checked = _Settings__WEBPACK_IMPORTED_MODULE_1__["Settings"].DisableHotkeys; locale.value = _Settings__WEBPACK_IMPORTED_MODULE_1__["Settings"].Locale; - _numeralFormat__WEBPACK_IMPORTED_MODULE_2__[/* numeralWrapper */ "a"].updateLocale(_Settings__WEBPACK_IMPORTED_MODULE_1__["Settings"].Locale); //Initialize locale + _numeralFormat__WEBPACK_IMPORTED_MODULE_2__["numeralWrapper"].updateLocale(_Settings__WEBPACK_IMPORTED_MODULE_1__["Settings"].Locale); //Initialize locale //Set handlers for when input changes for sliders var nsExecTimeInput = document.getElementById("settingsNSExecTimeRangeVal"); @@ -49300,7 +49390,7 @@ function setSettingsLabels() { //Locale selector locale.onchange = function() { - if (!_numeralFormat__WEBPACK_IMPORTED_MODULE_2__[/* numeralWrapper */ "a"].updateLocale(locale.value)) { + if (!_numeralFormat__WEBPACK_IMPORTED_MODULE_2__["numeralWrapper"].updateLocale(locale.value)) { console.warn(`Invalid locale for numeral: ${locale.value}`); let defaultValue = 'en'; @@ -49316,7 +49406,7 @@ function setSettingsLabels() { /***/ }), -/* 118 */ +/* 124 */ /*!**********************************!*\ !*** ./src/CharacterOverview.js ***! \**********************************/ @@ -49328,6 +49418,7 @@ function setSettingsLabels() { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CharacterOverview; }); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); +/* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_1__); @@ -49364,7 +49455,7 @@ CharacterOverview.prototype.update = function() { let changed = false; changed = replaceAndChanged(this.hp, _Player__WEBPACK_IMPORTED_MODULE_0__[/* Player */ "a"].hp + " / " + _Player__WEBPACK_IMPORTED_MODULE_0__[/* Player */ "a"].max_hp) || changed; - changed = replaceAndChanged(this.money, _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_1__[/* numeralWrapper */ "a"].format(_Player__WEBPACK_IMPORTED_MODULE_0__[/* Player */ "a"].money.toNumber(), '$0.000a')) || changed; + changed = replaceAndChanged(this.money, _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_1__["numeralWrapper"].format(_Player__WEBPACK_IMPORTED_MODULE_0__[/* Player */ "a"].money.toNumber(), '$0.000a')) || changed; changed = replaceAndChanged(this.hack, (_Player__WEBPACK_IMPORTED_MODULE_0__[/* Player */ "a"].hacking_skill).toLocaleString()) || changed; changed = replaceAndChanged(this.str, (_Player__WEBPACK_IMPORTED_MODULE_0__[/* Player */ "a"].strength).toLocaleString()) || changed; changed = replaceAndChanged(this.def, (_Player__WEBPACK_IMPORTED_MODULE_0__[/* Player */ "a"].defense).toLocaleString()) || changed; @@ -49390,7 +49481,7 @@ CharacterOverview.prototype.update = function() { /***/ }), -/* 119 */ +/* 125 */ /*!******************************!*\ !*** ./src/JSInterpreter.js ***! \******************************/ @@ -49400,7 +49491,7 @@ CharacterOverview.prototype.update = function() { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Interpreter; }); -/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/acorn */ 46); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/acorn */ 48); /* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_0__); /** @@ -53193,7 +53284,7 @@ Interpreter.prototype['createPrimitive'] = function(x) {return x;}; /***/ }), -/* 120 */ +/* 126 */ /*!***************************************!*\ !*** ./utils/helpers/isPowerOfTwo.ts ***! \***************************************/ @@ -53223,7 +53314,7 @@ exports.isPowerOfTwo = isPowerOfTwo; /***/ }), -/* 121 */ +/* 127 */ /*!****************************************!*\ !*** ./src/data/gangmemberupgrades.ts ***! \****************************************/ @@ -53435,7 +53526,7 @@ exports.gangMemberUpgradesMetadata = [ /***/ }), -/* 122 */ +/* 128 */ /*!*************************************!*\ !*** ./src/data/gangmembertasks.ts ***! \*************************************/ @@ -53700,7 +53791,7 @@ exports.gangMemberTasksMetadata = [ /***/ }), -/* 123 */ +/* 129 */ /*!***************************************!*\ !*** ./utils/FactionInvitationBox.js ***! \***************************************/ @@ -53710,7 +53801,7 @@ exports.gangMemberTasksMetadata = [ "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return factionInvitationBoxCreate; }); -/* harmony import */ var _src_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/Faction/FactionHelpers */ 44); +/* harmony import */ var _src_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/Faction/FactionHelpers */ 46); /* harmony import */ var _src_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../src/engine */ 8); /* harmony import */ var _src_Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../src/Player */ 0); /* harmony import */ var _uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./uiHelpers/clearEventListeners */ 16); @@ -53784,7 +53875,7 @@ function factionInvitationBoxCreate(faction) { /***/ }), -/* 124 */ +/* 130 */ /*!*****************************!*\ !*** ./src/data/servers.ts ***! \*****************************/ @@ -55257,7 +55348,7 @@ exports.serverMetadata = [ /***/ }), -/* 125 */ +/* 131 */ /*!**********************************!*\ !*** ./utils/InfiltrationBox.js ***! \**********************************/ @@ -55271,7 +55362,7 @@ exports.serverMetadata = [ /* harmony import */ var _src_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_src_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _src_Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../src/Constants */ 1); /* harmony import */ var _src_Constants__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_src_Constants__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _src_Faction_Faction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../src/Faction/Faction */ 54); +/* harmony import */ var _src_Faction_Faction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../src/Faction/Faction */ 56); /* harmony import */ var _src_Faction_Faction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_src_Faction_Faction__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _src_Faction_Factions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../src/Faction/Factions */ 15); /* harmony import */ var _src_Faction_Factions__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_src_Faction_Factions__WEBPACK_IMPORTED_MODULE_3__); @@ -55404,7 +55495,7 @@ function infiltrationBoxCreate(inst) { /***/ }), -/* 126 */ +/* 132 */ /*!*****************************!*\ !*** ./src/Infiltration.js ***! \*****************************/ @@ -55425,7 +55516,7 @@ function infiltrationBoxCreate(inst) { /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 14); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _utils_InfiltrationBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/InfiltrationBox */ 125); +/* harmony import */ var _utils_InfiltrationBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/InfiltrationBox */ 131); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__); @@ -56273,7 +56364,7 @@ function getInfiltrationEscapeChance(inst) { /***/ }), -/* 127 */ +/* 133 */ /*!******************************************!*\ !*** ./utils/uiHelpers/clearSelector.ts ***! \******************************************/ @@ -56297,12 +56388,6 @@ exports.clearSelector = clearSelector; /***/ }), -/* 128 */, -/* 129 */, -/* 130 */, -/* 131 */, -/* 132 */, -/* 133 */, /* 134 */, /* 135 */, /* 136 */, @@ -56312,7 +56397,13 @@ exports.clearSelector = clearSelector; /* 140 */, /* 141 */, /* 142 */, -/* 143 */ +/* 143 */, +/* 144 */, +/* 145 */, +/* 146 */, +/* 147 */, +/* 148 */, +/* 149 */ /*!***********************!*\ !*** ./css/gang.scss ***! \***********************/ @@ -56322,8 +56413,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 144 */, -/* 145 */ +/* 150 */, +/* 151 */ /*!******************************!*\ !*** ./css/bladeburner.scss ***! \******************************/ @@ -56333,8 +56424,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 146 */, -/* 147 */ +/* 152 */, +/* 153 */ /*!************************************!*\ !*** ./css/companymanagement.scss ***! \************************************/ @@ -56344,8 +56435,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 148 */, -/* 149 */ +/* 154 */, +/* 155 */ /*!***************************!*\ !*** ./css/missions.scss ***! \***************************/ @@ -56355,8 +56446,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 150 */, -/* 151 */ +/* 156 */, +/* 157 */ /*!*************************!*\ !*** ./css/loader.scss ***! \*************************/ @@ -56366,8 +56457,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 152 */, -/* 153 */ +/* 158 */, +/* 159 */ /*!**************************************!*\ !*** ./css/interactivetutorial.scss ***! \**************************************/ @@ -56377,8 +56468,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 154 */, -/* 155 */ +/* 160 */, +/* 161 */ /*!*****************************!*\ !*** ./css/popupboxes.scss ***! \*****************************/ @@ -56388,8 +56479,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 156 */, -/* 157 */ +/* 162 */, +/* 163 */ /*!*********************************!*\ !*** ./css/workinprogress.scss ***! \*********************************/ @@ -56399,8 +56490,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 158 */, -/* 159 */ +/* 164 */, +/* 165 */ /*!****************************!*\ !*** ./css/menupages.scss ***! \****************************/ @@ -56410,8 +56501,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 160 */, -/* 161 */ +/* 166 */, +/* 167 */ /*!***************************!*\ !*** ./css/terminal.scss ***! \***************************/ @@ -56421,8 +56512,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 162 */, -/* 163 */ +/* 168 */, +/* 169 */ /*!************************************!*\ !*** ./css/characteroverview.scss ***! \************************************/ @@ -56432,8 +56523,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 164 */, -/* 165 */ +/* 170 */, +/* 171 */ /*!***************************!*\ !*** ./css/mainmenu.scss ***! \***************************/ @@ -56443,8 +56534,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 166 */, -/* 167 */ +/* 172 */, +/* 173 */ /*!**************************!*\ !*** ./css/buttons.scss ***! \**************************/ @@ -56454,8 +56545,8 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 168 */, -/* 169 */ +/* 174 */, +/* 175 */ /*!*************************!*\ !*** ./css/styles.scss ***! \*************************/ @@ -56465,15 +56556,15 @@ exports.clearSelector = clearSelector; // extracted by mini-css-extract-plugin /***/ }), -/* 170 */, -/* 171 */, -/* 172 */, -/* 173 */, -/* 174 */, -/* 175 */, /* 176 */, /* 177 */, -/* 178 */ +/* 178 */, +/* 179 */, +/* 180 */, +/* 181 */, +/* 182 */, +/* 183 */, +/* 184 */ /*!**********************!*\ !*** ./netscript.js ***! \**********************/ @@ -57318,7 +57409,7 @@ oop.inherits(Mode, TextMode); }; this.createWorker = function(session) { - var worker = new WorkerClient(["ace"], __webpack_require__(/*! brace/worker/javascript */ 179), "JavaScriptWorker"); + var worker = new WorkerClient(["ace"], __webpack_require__(/*! brace/worker/javascript */ 185), "JavaScriptWorker"); worker.attachToDocument(session.getDocument()); worker.on("annotate", function(results) { @@ -57340,11 +57431,11 @@ exports.Mode = Mode; /***/ }), -/* 179 */, -/* 180 */, -/* 181 */, -/* 182 */, -/* 183 */ +/* 185 */, +/* 186 */, +/* 187 */, +/* 188 */, +/* 189 */ /*!*****************************************!*\ !*** ./src/data/codingcontracttypes.ts ***! \*****************************************/ @@ -57825,7 +57916,113 @@ exports.codingContractTypesMetadata = [ /***/ }), -/* 184 */ +/* 190 */ +/*!*********************************!*\ + !*** ./src/Locations/Cities.ts ***! + \*********************************/ +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +/** + * Display Location Content when visiting somewhere in the World + */ +// tslint:disable-next-line:variable-name +exports.Cities = { + Aevum: "Aevum", + Chongqing: "Chongqing", + Ishima: "Ishima", + NewTokyo: "New Tokyo", + Sector12: "Sector-12", + Volhaven: "Volhaven", +}; + + +/***/ }), +/* 191 */ +/*!*************************************************!*\ + !*** ./src/Corporation/ProductRatingWeights.ts ***! + \*************************************************/ +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const IndustryData_1 = __webpack_require__(/*! ./IndustryData */ 28); +exports.ProductRatingWeights = { + [IndustryData_1.Industries.Food]: { + Quality: 0.7, + Durability: 0.1, + Aesthetics: 0.2, + }, + [IndustryData_1.Industries.Tobacco]: { + Quality: 0.4, + Durability: 0.2, + Reliability: 0.2, + Aesthetics: 0.2, + }, + [IndustryData_1.Industries.Pharmaceutical]: { + Quality: 0.2, + Performance: 0.2, + Durability: 0.1, + Reliability: 0.3, + Features: 0.2, + }, + [IndustryData_1.Industries.Computer]: { + Quality: 0.15, + Performance: 0.25, + Durability: 0.25, + Reliability: 0.2, + Aesthetics: 0.05, + Features: 0.1, + }, + "Computer": { + Quality: 0.15, + Performance: 0.25, + Durability: 0.25, + Reliability: 0.2, + Aesthetics: 0.05, + Features: 0.1, + }, + [IndustryData_1.Industries.Robotics]: { + Quality: 0.1, + Performance: 0.2, + Durability: 0.2, + Reliability: 0.2, + Aesthetics: 0.1, + Features: 0.2, + }, + [IndustryData_1.Industries.Software]: { + Quality: 0.2, + Performance: 0.2, + Reliability: 0.2, + Durability: 0.2, + Features: 0.2, + }, + [IndustryData_1.Industries.Healthcare]: { + Quality: 0.4, + Performance: 0.1, + Durability: 0.1, + Reliability: 0.3, + Features: 0.1, + }, + [IndustryData_1.Industries.RealEstate]: { + Quality: 0.2, + Durability: 0.25, + Reliability: 0.1, + Aesthetics: 0.35, + Features: 0.1, + } +}; + + +/***/ }), +/* 192 */ /*!***********************************************!*\ !*** ./src/Company/data/CompaniesMetadata.ts ***! \***********************************************/ @@ -57837,7 +58034,7 @@ exports.codingContractTypesMetadata = [ Object.defineProperty(exports, "__esModule", { value: true }); const Locations_1 = __webpack_require__(/*! ../../Locations */ 5); -const posNames = __webpack_require__(/*! ./CompanyPositionNames */ 34); +const posNames = __webpack_require__(/*! ./CompanyPositionNames */ 36); // Create Objects containing Company Positions by category // Will help in metadata construction later const AllSoftwarePositions = {}; @@ -58217,7 +58414,7 @@ exports.companiesMetadata = [ /***/ }), -/* 185 */ +/* 193 */ /*!******************************************************!*\ !*** ./src/Company/data/CompanyPositionsMetadata.ts ***! \******************************************************/ @@ -58228,7 +58425,7 @@ exports.companiesMetadata = [ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const posNames = __webpack_require__(/*! ./CompanyPositionNames */ 34); +const posNames = __webpack_require__(/*! ./CompanyPositionNames */ 36); exports.companyPositionMetadata = [ { name: posNames.SoftwareCompanyPositions[0], @@ -58830,14 +59027,6 @@ exports.companyPositionMetadata = [ /***/ }), -/* 186 */, -/* 187 */, -/* 188 */, -/* 189 */, -/* 190 */, -/* 191 */, -/* 192 */, -/* 193 */, /* 194 */, /* 195 */, /* 196 */, @@ -58866,7 +59055,15 @@ exports.companyPositionMetadata = [ /* 219 */, /* 220 */, /* 221 */, -/* 222 */ +/* 222 */, +/* 223 */, +/* 224 */, +/* 225 */, +/* 226 */, +/* 227 */, +/* 228 */, +/* 229 */, +/* 230 */ /*!**********************!*\ !*** util (ignored) ***! \**********************/ @@ -58877,7 +59074,7 @@ exports.companyPositionMetadata = [ /* (ignored) */ /***/ }), -/* 223 */ +/* 231 */ /*!**********************!*\ !*** util (ignored) ***! \**********************/ diff --git a/dist/vendor.bundle.js b/dist/vendor.bundle.js index 0a797a298..90b5a2258 100644 --- a/dist/vendor.bundle.js +++ b/dist/vendor.bundle.js @@ -1,5 +1,5 @@ -(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],Array(31).concat([ -/* 31 */ +(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],Array(33).concat([ +/* 33 */ /*!************************************************!*\ !*** ./node_modules/decimal.js/decimal.es6.js ***! \************************************************/ @@ -4793,8 +4793,6 @@ PI = new Decimal(pi); /***/ }), -/* 32 */, -/* 33 */, /* 34 */, /* 35 */, /* 36 */, @@ -4823,7 +4821,10 @@ PI = new Decimal(pi); /* 59 */, /* 60 */, /* 61 */, -/* 62 */ +/* 62 */, +/* 63 */, +/* 64 */, +/* 65 */ /*!********************************************!*\ !*** ./node_modules/jquery/dist/jquery.js ***! \********************************************/ @@ -15199,9 +15200,9 @@ return jQuery; /***/ }), -/* 63 */, -/* 64 */, -/* 65 */ +/* 66 */, +/* 67 */, +/* 68 */ /*!*****************************************!*\ !*** ./node_modules/jszip/lib/utils.js ***! \*****************************************/ @@ -15212,11 +15213,11 @@ return jQuery; "use strict"; -var support = __webpack_require__(/*! ./support */ 98); -var base64 = __webpack_require__(/*! ./base64 */ 218); -var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 133); -var setImmediate = __webpack_require__(/*! core-js/library/fn/set-immediate */ 335); -var external = __webpack_require__(/*! ./external */ 113); +var support = __webpack_require__(/*! ./support */ 103); +var base64 = __webpack_require__(/*! ./base64 */ 226); +var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 139); +var setImmediate = __webpack_require__(/*! core-js/library/fn/set-immediate */ 343); +var external = __webpack_require__(/*! ./external */ 119); /** @@ -15689,11 +15690,18 @@ exports.prepareContent = function(name, inputData, isBinary, isOptimizedBinarySt /***/ }), -/* 66 */, -/* 67 */, -/* 68 */, /* 69 */, -/* 70 */ +/* 70 */, +/* 71 */, +/* 72 */, +/* 73 */, +/* 74 */, +/* 75 */, +/* 76 */, +/* 77 */, +/* 78 */, +/* 79 */, +/* 80 */ /*!*****************************************!*\ !*** ./node_modules/numeral/numeral.js ***! \*****************************************/ @@ -16717,21 +16725,15 @@ return numeral; /***/ }), -/* 71 */, -/* 72 */, -/* 73 */, -/* 74 */, -/* 75 */, -/* 76 */, -/* 77 */, -/* 78 */, -/* 79 */, -/* 80 */, /* 81 */, /* 82 */, /* 83 */, /* 84 */, -/* 85 */ +/* 85 */, +/* 86 */, +/* 87 */, +/* 88 */, +/* 89 */ /*!********************************************************!*\ !*** ./node_modules/jszip/lib/stream/GenericWorker.js ***! \********************************************************/ @@ -17006,11 +17008,11 @@ module.exports = GenericWorker; /***/ }), -/* 86 */, -/* 87 */, -/* 88 */, -/* 89 */, -/* 90 */ +/* 90 */, +/* 91 */, +/* 92 */, +/* 93 */, +/* 94 */ /*!**************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/flag.js ***! \**************************************************/ @@ -17054,7 +17056,7 @@ module.exports = function flag(obj, key, value) { /***/ }), -/* 91 */ +/* 95 */ /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! \***********************************/ @@ -17085,12 +17087,13 @@ module.exports = g; /***/ }), -/* 92 */, -/* 93 */, -/* 94 */, -/* 95 */, /* 96 */, -/* 97 */ +/* 97 */, +/* 98 */, +/* 99 */, +/* 100 */, +/* 101 */, +/* 102 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/utils/common.js ***! \***********************************************/ @@ -17207,7 +17210,7 @@ exports.setTyped(TYPED_OK); /***/ }), -/* 98 */ +/* 103 */ /*!*******************************************!*\ !*** ./node_modules/jszip/lib/support.js ***! \*******************************************/ @@ -17250,15 +17253,15 @@ else { } try { - exports.nodestream = !!__webpack_require__(/*! readable-stream */ 226).Readable; + exports.nodestream = !!__webpack_require__(/*! readable-stream */ 234).Readable; } catch(e) { exports.nodestream = false; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 115).Buffer)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 121).Buffer)) /***/ }), -/* 99 */ +/* 104 */ /*!*********************************************!*\ !*** ./node_modules/escodegen/escodegen.js ***! \*********************************************/ @@ -17332,8 +17335,8 @@ try { FORMAT_MINIFY, FORMAT_DEFAULTS; - estraverse = __webpack_require__(/*! estraverse */ 297); - esutils = __webpack_require__(/*! esutils */ 295); + estraverse = __webpack_require__(/*! estraverse */ 305); + esutils = __webpack_require__(/*! esutils */ 303); Syntax = estraverse.Syntax; @@ -19813,7 +19816,7 @@ try { if (!exports.browser) { // We assume environment is node.js // And prevent from including source-map by browserify - SourceNode = __webpack_require__(/*! source-map */ 292).SourceNode; + SourceNode = __webpack_require__(/*! source-map */ 300).SourceNode; } else { SourceNode = global.sourceMap.SourceNode; } @@ -19860,7 +19863,7 @@ try { FORMAT_DEFAULTS = getDefaultOptions().format; - exports.version = __webpack_require__(/*! ./package.json */ 285).version; + exports.version = __webpack_require__(/*! ./package.json */ 293).version; exports.generate = generate; exports.attachComments = estraverse.attachComments; exports.Precedence = updateDeeply({}, Precedence); @@ -19870,10 +19873,10 @@ try { }()); /* vim: set sw=4 ts=4 et tw=80 : */ -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 91))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 95))) /***/ }), -/* 100 */ +/* 105 */ /*!***********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/transferFlags.js ***! \***********************************************************/ @@ -19929,7 +19932,7 @@ module.exports = function transferFlags(assertion, object, includeAll) { /***/ }), -/* 101 */ +/* 106 */ /*!**********************************************!*\ !*** ./node_modules/chai/lib/chai/config.js ***! \**********************************************/ @@ -20034,7 +20037,7 @@ module.exports = { /***/ }), -/* 102 */ +/* 107 */ /*!***************************************!*\ !*** ./node_modules/chai/lib/chai.js ***! \***************************************/ @@ -20060,13 +20063,13 @@ exports.version = '4.1.2'; * Assertion Error */ -exports.AssertionError = __webpack_require__(/*! assertion-error */ 192); +exports.AssertionError = __webpack_require__(/*! assertion-error */ 200); /*! * Utils for plugins (not exported) */ -var util = __webpack_require__(/*! ./chai/utils */ 280); +var util = __webpack_require__(/*! ./chai/utils */ 288); /** * # .use(function) @@ -20097,47 +20100,47 @@ exports.util = util; * Configuration */ -var config = __webpack_require__(/*! ./chai/config */ 101); +var config = __webpack_require__(/*! ./chai/config */ 106); exports.config = config; /*! * Primary `Assertion` prototype */ -var assertion = __webpack_require__(/*! ./chai/assertion */ 264); +var assertion = __webpack_require__(/*! ./chai/assertion */ 272); exports.use(assertion); /*! * Core Assertions */ -var core = __webpack_require__(/*! ./chai/core/assertions */ 263); +var core = __webpack_require__(/*! ./chai/core/assertions */ 271); exports.use(core); /*! * Expect interface */ -var expect = __webpack_require__(/*! ./chai/interface/expect */ 262); +var expect = __webpack_require__(/*! ./chai/interface/expect */ 270); exports.use(expect); /*! * Should interface */ -var should = __webpack_require__(/*! ./chai/interface/should */ 261); +var should = __webpack_require__(/*! ./chai/interface/should */ 269); exports.use(should); /*! * Assert interface */ -var assert = __webpack_require__(/*! ./chai/interface/assert */ 260); +var assert = __webpack_require__(/*! ./chai/interface/assert */ 268); exports.use(assert); /***/ }), -/* 103 */ +/* 108 */ /*!************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_duplex.js ***! \************************************************************/ @@ -20176,7 +20179,7 @@ exports.use(assert); /**/ -var processNextTick = __webpack_require__(/*! process-nextick-args */ 135).nextTick; +var processNextTick = __webpack_require__(/*! process-nextick-args */ 141).nextTick; /**/ /**/ @@ -20191,12 +20194,12 @@ var objectKeys = Object.keys || function (obj) { module.exports = Duplex; /**/ -var util = __webpack_require__(/*! core-util-is */ 114); -util.inherits = __webpack_require__(/*! inherits */ 110); +var util = __webpack_require__(/*! core-util-is */ 120); +util.inherits = __webpack_require__(/*! inherits */ 116); /**/ -var Readable = __webpack_require__(/*! ./_stream_readable */ 225); -var Writable = __webpack_require__(/*! ./_stream_writable */ 175); +var Readable = __webpack_require__(/*! ./_stream_readable */ 233); +var Writable = __webpack_require__(/*! ./_stream_writable */ 181); util.inherits(Duplex, Readable); @@ -20272,13 +20275,14 @@ function forEach(xs, f) { } /***/ }), -/* 104 */, -/* 105 */, -/* 106 */, -/* 107 */, -/* 108 */, /* 109 */, -/* 110 */ +/* 110 */, +/* 111 */, +/* 112 */, +/* 113 */, +/* 114 */, +/* 115 */, +/* 116 */ /*!***************************************************!*\ !*** ./node_modules/inherits/inherits_browser.js ***! \***************************************************/ @@ -20312,7 +20316,7 @@ if (typeof Object.create === 'function') { /***/ }), -/* 111 */ +/* 117 */ /*!****************************************!*\ !*** ./node_modules/jszip/lib/utf8.js ***! \****************************************/ @@ -20323,10 +20327,10 @@ if (typeof Object.create === 'function') { "use strict"; -var utils = __webpack_require__(/*! ./utils */ 65); -var support = __webpack_require__(/*! ./support */ 98); -var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 133); -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 85); +var utils = __webpack_require__(/*! ./utils */ 68); +var support = __webpack_require__(/*! ./support */ 103); +var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 139); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 89); /** * The following functions come from pako, from pako/lib/utils/strings @@ -20599,7 +20603,7 @@ exports.Utf8EncodeWorker = Utf8EncodeWorker; /***/ }), -/* 112 */ +/* 118 */ /*!********************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/util.js ***! \********************************************************************/ @@ -21098,7 +21102,7 @@ exports.computeSourceURL = computeSourceURL; /***/ }), -/* 113 */ +/* 119 */ /*!********************************************!*\ !*** ./node_modules/jszip/lib/external.js ***! \********************************************/ @@ -21117,7 +21121,7 @@ var ES6Promise = null; if (typeof Promise !== "undefined") { ES6Promise = Promise; } else { - ES6Promise = __webpack_require__(/*! lie */ 321); + ES6Promise = __webpack_require__(/*! lie */ 329); } /** @@ -21129,7 +21133,7 @@ module.exports = { /***/ }), -/* 114 */ +/* 120 */ /*!***********************************************!*\ !*** ./node_modules/core-util-is/lib/util.js ***! \***********************************************/ @@ -21245,10 +21249,10 @@ function objectToString(o) { return Object.prototype.toString.call(o); } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 115).Buffer)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 121).Buffer)) /***/ }), -/* 115 */ +/* 121 */ /*!**************************************!*\ !*** ./node_modules/buffer/index.js ***! \**************************************/ @@ -21267,9 +21271,9 @@ function objectToString(o) { -var base64 = __webpack_require__(/*! base64-js */ 345) -var ieee754 = __webpack_require__(/*! ieee754 */ 344) -var isArray = __webpack_require__(/*! isarray */ 227) +var base64 = __webpack_require__(/*! base64-js */ 353) +var ieee754 = __webpack_require__(/*! ieee754 */ 352) +var isArray = __webpack_require__(/*! isarray */ 235) exports.Buffer = Buffer exports.SlowBuffer = SlowBuffer @@ -23047,10 +23051,10 @@ function isnan (val) { return val !== val // eslint-disable-line no-self-compare } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 91))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 95))) /***/ }), -/* 116 */ +/* 122 */ /*!*****************************************!*\ !*** ./node_modules/process/browser.js ***! \*****************************************/ @@ -23245,18 +23249,18 @@ process.umask = function() { return 0; }; /***/ }), -/* 117 */, -/* 118 */, -/* 119 */, -/* 120 */, -/* 121 */, -/* 122 */, /* 123 */, /* 124 */, /* 125 */, /* 126 */, /* 127 */, -/* 128 */ +/* 128 */, +/* 129 */, +/* 130 */, +/* 131 */, +/* 132 */, +/* 133 */, +/* 134 */ /*!*****************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/proxify.js ***! \*****************************************************/ @@ -23264,10 +23268,10 @@ process.umask = function() { return 0; }; /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var config = __webpack_require__(/*! ../config */ 101); -var flag = __webpack_require__(/*! ./flag */ 90); -var getProperties = __webpack_require__(/*! ./getProperties */ 189); -var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 130); +var config = __webpack_require__(/*! ../config */ 106); +var flag = __webpack_require__(/*! ./flag */ 94); +var getProperties = __webpack_require__(/*! ./getProperties */ 197); +var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 136); /*! * Chai - proxify utility @@ -23392,7 +23396,7 @@ function stringDistance(strA, strB, memo) { /***/ }), -/* 129 */ +/* 135 */ /*!************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/addLengthGuard.js ***! \************************************************************/ @@ -23400,7 +23404,7 @@ function stringDistance(strA, strB, memo) { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var config = __webpack_require__(/*! ../config */ 101); +var config = __webpack_require__(/*! ../config */ 106); var fnLengthDesc = Object.getOwnPropertyDescriptor(function () {}, 'length'); @@ -23465,7 +23469,7 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) { /***/ }), -/* 130 */ +/* 136 */ /*!************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/isProxyEnabled.js ***! \************************************************************/ @@ -23473,7 +23477,7 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var config = __webpack_require__(/*! ../config */ 101); +var config = __webpack_require__(/*! ../config */ 106); /*! * Chai - isProxyEnabled helper @@ -23500,7 +23504,7 @@ module.exports = function isProxyEnabled() { /***/ }), -/* 131 */ +/* 137 */ /*!*****************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/inspect.js ***! \*****************************************************/ @@ -23511,10 +23515,10 @@ module.exports = function isProxyEnabled() { // This is (almost) directly from Node.js utils // https://github.com/joyent/node/blob/f8c335d0caf47f16d31413f89aa28eda3878e3aa/lib/util.js -var getName = __webpack_require__(/*! get-func-name */ 190); -var getProperties = __webpack_require__(/*! ./getProperties */ 189); -var getEnumerableProperties = __webpack_require__(/*! ./getEnumerableProperties */ 275); -var config = __webpack_require__(/*! ../config */ 101); +var getName = __webpack_require__(/*! get-func-name */ 198); +var getProperties = __webpack_require__(/*! ./getProperties */ 197); +var getEnumerableProperties = __webpack_require__(/*! ./getEnumerableProperties */ 283); +var config = __webpack_require__(/*! ../config */ 106); module.exports = inspect; @@ -23894,7 +23898,7 @@ function objectToString(o) { /***/ }), -/* 132 */ +/* 138 */ /*!****************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_global.js ***! \****************************************************************************/ @@ -23908,7 +23912,7 @@ var global = module.exports = typeof window != 'undefined' && window.Math == Mat if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef /***/ }), -/* 133 */ +/* 139 */ /*!***********************************************!*\ !*** ./node_modules/jszip/lib/nodejsUtils.js ***! \***********************************************/ @@ -23970,10 +23974,10 @@ module.exports = { } }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 115).Buffer)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 121).Buffer)) /***/ }), -/* 134 */ +/* 140 */ /*!*******************************************!*\ !*** ./node_modules/safe-buffer/index.js ***! \*******************************************/ @@ -23982,7 +23986,7 @@ module.exports = { /***/ (function(module, exports, __webpack_require__) { /* eslint-disable node/no-deprecated-api */ -var buffer = __webpack_require__(/*! buffer */ 115) +var buffer = __webpack_require__(/*! buffer */ 121) var Buffer = buffer.Buffer // alternative to using Object.keys for old browsers @@ -24046,7 +24050,7 @@ SafeBuffer.allocUnsafeSlow = function (size) { /***/ }), -/* 135 */ +/* 141 */ /*!****************************************************!*\ !*** ./node_modules/process-nextick-args/index.js ***! \****************************************************/ @@ -24100,10 +24104,10 @@ function nextTick(fn, arg1, arg2, arg3) { } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ 116))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ 122))) /***/ }), -/* 136 */ +/* 142 */ /*!*****************************************!*\ !*** ./node_modules/acorn/dist/walk.js ***! \*****************************************/ @@ -24549,7 +24553,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); /***/ }), -/* 137 */ +/* 143 */ /*!************************************************!*\ !*** ./node_modules/sprintf-js/src/sprintf.js ***! \************************************************/ @@ -24779,7 +24783,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/* global window, exports, define */ /***/ }), -/* 138 */ +/* 144 */ /*!**********************************************!*\ !*** ./node_modules/file-saver/FileSaver.js ***! \**********************************************/ @@ -24970,7 +24974,7 @@ var saveAs = saveAs || (function(view) { if (typeof module !== "undefined" && module.exports) { module.exports.saveAs = saveAs; -} else if (("function" !== "undefined" && __webpack_require__(/*! !webpack amd define */ 182) !== null) && (__webpack_require__(/*! !webpack amd options */ 298) !== null)) { +} else if (("function" !== "undefined" && __webpack_require__(/*! !webpack amd define */ 188) !== null) && (__webpack_require__(/*! !webpack amd options */ 306) !== null)) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return saveAs; }).call(exports, __webpack_require__, exports, module), @@ -24979,7 +24983,7 @@ if (typeof module !== "undefined" && module.exports) { /***/ }), -/* 139 */ +/* 145 */ /*!*****************************************!*\ !*** ./node_modules/jszip/lib/index.js ***! \*****************************************/ @@ -25025,10 +25029,10 @@ function JSZip() { return newObj; }; } -JSZip.prototype = __webpack_require__(/*! ./object */ 346); -JSZip.prototype.loadAsync = __webpack_require__(/*! ./load */ 303); -JSZip.support = __webpack_require__(/*! ./support */ 98); -JSZip.defaults = __webpack_require__(/*! ./defaults */ 212); +JSZip.prototype = __webpack_require__(/*! ./object */ 354); +JSZip.prototype.loadAsync = __webpack_require__(/*! ./load */ 311); +JSZip.support = __webpack_require__(/*! ./support */ 103); +JSZip.defaults = __webpack_require__(/*! ./defaults */ 220); // TODO find a better way to handle this version, // a require('package.json').version doesn't work with webpack, see #327 @@ -25038,12 +25042,12 @@ JSZip.loadAsync = function (content, options) { return new JSZip().loadAsync(content, options); }; -JSZip.external = __webpack_require__(/*! ./external */ 113); +JSZip.external = __webpack_require__(/*! ./external */ 119); module.exports = JSZip; /***/ }), -/* 140 */ +/* 146 */ /*!************************************************!*\ !*** ./node_modules/autosize/dist/autosize.js ***! \************************************************/ @@ -25336,7 +25340,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 141 */ +/* 147 */ /*!*************************************************!*\ !*** ./node_modules/type-detect/type-detect.js ***! \*************************************************/ @@ -25732,15 +25736,9 @@ return typeDetect; }))); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 91))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 95))) /***/ }), -/* 142 */, -/* 143 */, -/* 144 */, -/* 145 */, -/* 146 */, -/* 147 */, /* 148 */, /* 149 */, /* 150 */, @@ -25763,7 +25761,13 @@ return typeDetect; /* 167 */, /* 168 */, /* 169 */, -/* 170 */ +/* 170 */, +/* 171 */, +/* 172 */, +/* 173 */, +/* 174 */, +/* 175 */, +/* 176 */ /*!************************************************!*\ !*** ./node_modules/pako/lib/zlib/messages.js ***! \************************************************/ @@ -25807,7 +25811,7 @@ module.exports = { /***/ }), -/* 171 */ +/* 177 */ /*!*****************************************!*\ !*** ./node_modules/jszip/lib/crc32.js ***! \*****************************************/ @@ -25818,7 +25822,7 @@ module.exports = { "use strict"; -var utils = __webpack_require__(/*! ./utils */ 65); +var utils = __webpack_require__(/*! ./utils */ 68); /** * The following functions come from pako, from pako/lib/zlib/crc32.js @@ -25896,7 +25900,7 @@ module.exports = function crc32wrapper(input, crc) { /***/ }), -/* 172 */ +/* 178 */ /*!****************************************************!*\ !*** ./node_modules/jszip/lib/compressedObject.js ***! \****************************************************/ @@ -25907,11 +25911,11 @@ module.exports = function crc32wrapper(input, crc) { "use strict"; -var external = __webpack_require__(/*! ./external */ 113); -var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 211); -var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 210); -var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 209); -var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 210); +var external = __webpack_require__(/*! ./external */ 119); +var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 219); +var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 218); +var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 217); +var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 218); /** * Represent a compressed object, with everything needed to decompress it. @@ -25983,7 +25987,7 @@ module.exports = CompressedObject; /***/ }), -/* 173 */ +/* 179 */ /*!*********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_descriptors.js ***! \*********************************************************************************/ @@ -25992,12 +25996,12 @@ module.exports = CompressedObject; /***/ (function(module, exports, __webpack_require__) { // Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(/*! ./_fails */ 215)(function(){ +module.exports = !__webpack_require__(/*! ./_fails */ 223)(function(){ return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; }); /***/ }), -/* 174 */ +/* 180 */ /*!*******************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_is-object.js ***! \*******************************************************************************/ @@ -26010,7 +26014,7 @@ module.exports = function(it){ }; /***/ }), -/* 175 */ +/* 181 */ /*!**************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_writable.js ***! \**************************************************************/ @@ -26048,7 +26052,7 @@ module.exports = function(it){ /**/ -var processNextTick = __webpack_require__(/*! process-nextick-args */ 135).nextTick; +var processNextTick = __webpack_require__(/*! process-nextick-args */ 141).nextTick; /**/ module.exports = Writable; @@ -26085,23 +26089,23 @@ var Duplex; Writable.WritableState = WritableState; /**/ -var util = __webpack_require__(/*! core-util-is */ 114); -util.inherits = __webpack_require__(/*! inherits */ 110); +var util = __webpack_require__(/*! core-util-is */ 120); +util.inherits = __webpack_require__(/*! inherits */ 116); /**/ /**/ var internalUtil = { - deprecate: __webpack_require__(/*! util-deprecate */ 341) + deprecate: __webpack_require__(/*! util-deprecate */ 349) }; /**/ /**/ -var Stream = __webpack_require__(/*! ./internal/streams/stream */ 224); +var Stream = __webpack_require__(/*! ./internal/streams/stream */ 232); /**/ /**/ -var Buffer = __webpack_require__(/*! safe-buffer */ 134).Buffer; +var Buffer = __webpack_require__(/*! safe-buffer */ 140).Buffer; var OurUint8Array = global.Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); @@ -26112,14 +26116,14 @@ function _isUint8Array(obj) { /**/ -var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 221); +var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 229); util.inherits(Writable, Stream); function nop() {} function WritableState(options, stream) { - Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 103); + Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 108); options = options || {}; @@ -26269,7 +26273,7 @@ if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.protot } function Writable(options) { - Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 103); + Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 108); // Writable ctor is applied to Duplexes, too. // `realHasInstance` is necessary because using plain `instanceof` @@ -26696,10 +26700,10 @@ Writable.prototype._destroy = function (err, cb) { this.end(); cb(err); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ 116), __webpack_require__(/*! ./../../timers-browserify/main.js */ 229).setImmediate, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 91))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ 122), __webpack_require__(/*! ./../../timers-browserify/main.js */ 237).setImmediate, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 95))) /***/ }), -/* 176 */ +/* 182 */ /*!**********************************************************!*\ !*** ./node_modules/readable-stream/readable-browser.js ***! \**********************************************************/ @@ -26707,17 +26711,17 @@ Writable.prototype._destroy = function (err, cb) { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ 225); +exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ 233); exports.Stream = exports; exports.Readable = exports; -exports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ 175); -exports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ 103); -exports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ 219); -exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 340); +exports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ 181); +exports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ 108); +exports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ 227); +exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 348); /***/ }), -/* 177 */ +/* 183 */ /*!***************************************!*\ !*** ./node_modules/events/events.js ***! \***************************************/ @@ -27030,8 +27034,8 @@ function isUndefined(arg) { /***/ }), -/* 178 */, -/* 179 */ +/* 184 */, +/* 185 */ /*!*************************************************!*\ !*** ./node_modules/brace/worker/javascript.js ***! \*************************************************/ @@ -27043,7 +27047,7 @@ module.exports.id = 'ace/mode/javascript_worker'; module.exports.src = "\"no use strict\";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail=\"\";testPath;){var alias=paths[testPath];if(\"string\"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,\"/\")+(tail||alias.main||alias.name);if(alias===!1)return\"\";var i=testPath.lastIndexOf(\"/\");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:\"log\",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:\"error\",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf(\"!\")){var chunks=moduleName.split(\"!\");return window.normalizeModule(parentId,chunks[0])+\"!\"+window.normalizeModule(parentId,chunks[1])}if(\".\"==moduleName.charAt(0)){var base=parentId.split(\"/\").slice(0,-1).join(\"/\");for(moduleName=(base?base+\"/\":\"\")+moduleName;-1!==moduleName.indexOf(\".\")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,\"\").replace(/\\/\\.\\//,\"/\").replace(/[^\\/]+\\/\\.\\.\\//,\"\")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error(\"worker.js acequire() accepts only (parentId, id) as arguments\");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log(\"unable to load \"+id);var path=resolveModuleId(id,window.acequire.tlns);return\".js\"!=path.slice(-3)&&(path+=\".js\"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,\"string\"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),\"function\"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=[\"require\",\"exports\",\"module\"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case\"require\":return req;case\"exports\":return module.exports;case\"module\":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire(\"ace/lib/event_emitter\").EventEmitter,oop=window.acequire(\"ace/lib/oop\"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:\"call\",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:\"event\",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error(\"Unknown command:\"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire(\"ace/lib/es5-shim\"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define(\"ace/lib/oop\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define(\"ace/range\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return\"Range: [\"+this.start.row+\"/\"+this.start.column+\"] -> [\"+this.end.row+\"/\"+this.end.column+\"]\"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){\"object\"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){\"object\"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define(\"ace/apply_delta\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||\"\";switch(delta.action){case\"insert\":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case\"remove\":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define(\"ace/lib/event_emitter\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){\"object\"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?\"unshift\":\"push\"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define(\"ace/anchor\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/lib/event_emitter\"],function(acequire,exports){\"use strict\";var oop=acequire(\"./lib/oop\"),EventEmitter=acequire(\"./lib/event_emitter\").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal(\"change\",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener(\"change\",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on(\"change\",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define(\"ace/document\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/apply_delta\",\"ace/lib/event_emitter\",\"ace/range\",\"ace/anchor\"],function(acequire,exports){\"use strict\";var oop=acequire(\"./lib/oop\"),applyDelta=acequire(\"./apply_delta\").applyDelta,EventEmitter=acequire(\"./lib/event_emitter\").EventEmitter,Range=acequire(\"./range\").Range,Anchor=acequire(\"./anchor\").Anchor,Document=function(textOrLines){this.$lines=[\"\"],0===textOrLines.length?this.$lines=[\"\"]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0===\"aaa\".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,\"\\n\").split(\"\\n\")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:\"\\n\",this._signal(\"changeNewLineMode\")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case\"windows\":return\"\\r\\n\";case\"unix\":return\"\\n\";default:return this.$autoNewLine||\"\\n\"}},this.$autoNewLine=\"\",this.$newLineMode=\"auto\",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal(\"changeNewLineMode\"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return\"\\r\\n\"==text||\"\\r\"==text||\"\\n\"==text},this.getLine=function(row){return this.$lines[row]||\"\"},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||\"\").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn(\"Use of document.insertLines is deprecated. Use the insertFullLines method instead.\"),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn(\"Use of document.removeLines is deprecated. Use the removeFullLines method instead.\"),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn(\"Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead.\"),this.insertMergedLines(position,[\"\",\"\"])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:\"insert\",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([\"\"]),column=0):(lines=[\"\"].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:\"insert\",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:\"remove\",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:\"remove\",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:\"remove\",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:\"remove\",lines:[\"\",\"\"]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert=\"insert\"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal(\"change\",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(\"\"),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:\"insert\"==delta.action?\"remove\":\"insert\",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define(\"ace/lib/lang\",[\"require\",\"exports\",\"module\"],function(acequire,exports){\"use strict\";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split(\"\").reverse().join(\"\")},exports.stringRepeat=function(string,count){for(var result=\"\";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,\"\")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,\"\")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&\"object\"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if(\"object\"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if(\"[object Object]\"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\")},exports.escapeHTML=function(str){return str.replace(/&/g,\"&\").replace(/\"/g,\""\").replace(/'/g,\"'\").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:\"insert\",start:data[i],lines:data[i+1]};else var d={action:\"remove\",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define(\"ace/mode/javascript/jshint\",[\"require\",\"exports\",\"module\"],function(acequire,exports,module){module.exports=function outer(modules,cache,entry){function newRequire(name,jumped){if(!cache[name]){if(!modules[name]){var currentRequire=\"function\"==typeof acequire&&acequire;if(!jumped&¤tRequire)return currentRequire(name,!0);if(previousRequire)return previousRequire(name,!0);var err=Error(\"Cannot find module '\"+name+\"'\");throw err.code=\"MODULE_NOT_FOUND\",err}var m=cache[name]={exports:{}};modules[name][0].call(m.exports,function(x){var id=modules[name][1][x];return newRequire(id?id:x)},m,m.exports,outer,modules,cache,entry)}return cache[name].exports}for(var previousRequire=\"function\"==typeof acequire&&acequire,i=0;entry.length>i;i++)newRequire(entry[i]);return newRequire(entry[0])}({\"/node_modules/browserify/node_modules/events/events.js\":[function(_dereq_,module){function EventEmitter(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function isFunction(arg){return\"function\"==typeof arg}function isNumber(arg){return\"number\"==typeof arg}function isObject(arg){return\"object\"==typeof arg&&null!==arg}function isUndefined(arg){return void 0===arg}module.exports=EventEmitter,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._maxListeners=void 0,EventEmitter.defaultMaxListeners=10,EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||0>n||isNaN(n))throw TypeError(\"n must be a positive number\");return this._maxListeners=n,this},EventEmitter.prototype.emit=function(type){var er,handler,len,args,i,listeners;if(this._events||(this._events={}),\"error\"===type&&(!this._events.error||isObject(this._events.error)&&!this._events.error.length)){if(er=arguments[1],er instanceof Error)throw er;throw TypeError('Uncaught, unspecified \"error\" event.')}if(handler=this._events[type],isUndefined(handler))return!1;if(isFunction(handler))switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];handler.apply(this,args)}else if(isObject(handler)){for(len=arguments.length,args=Array(len-1),i=1;len>i;i++)args[i-1]=arguments[i];for(listeners=handler.slice(),len=listeners.length,i=0;len>i;i++)listeners[i].apply(this,args)}return!0},EventEmitter.prototype.addListener=function(type,listener){var m;if(!isFunction(listener))throw TypeError(\"listener must be a function\");if(this._events||(this._events={}),this._events.newListener&&this.emit(\"newListener\",type,isFunction(listener.listener)?listener.listener:listener),this._events[type]?isObject(this._events[type])?this._events[type].push(listener):this._events[type]=[this._events[type],listener]:this._events[type]=listener,isObject(this._events[type])&&!this._events[type].warned){var m;m=isUndefined(this._maxListeners)?EventEmitter.defaultMaxListeners:this._maxListeners,m&&m>0&&this._events[type].length>m&&(this._events[type].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[type].length),\"function\"==typeof console.trace&&console.trace())}return this},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.once=function(type,listener){function g(){this.removeListener(type,g),fired||(fired=!0,listener.apply(this,arguments))}if(!isFunction(listener))throw TypeError(\"listener must be a function\");var fired=!1;return g.listener=listener,this.on(type,g),this},EventEmitter.prototype.removeListener=function(type,listener){var list,position,length,i;if(!isFunction(listener))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[type])return this;if(list=this._events[type],length=list.length,position=-1,list===listener||isFunction(list.listener)&&list.listener===listener)delete this._events[type],this._events.removeListener&&this.emit(\"removeListener\",type,listener);else if(isObject(list)){for(i=length;i-->0;)if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}if(0>position)return this;1===list.length?(list.length=0,delete this._events[type]):list.splice(position,1),this._events.removeListener&&this.emit(\"removeListener\",type,listener)}return this},EventEmitter.prototype.removeAllListeners=function(type){var key,listeners;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[type]&&delete this._events[type],this;if(0===arguments.length){for(key in this._events)\"removeListener\"!==key&&this.removeAllListeners(key);return this.removeAllListeners(\"removeListener\"),this._events={},this\n}if(listeners=this._events[type],isFunction(listeners))this.removeListener(type,listeners);else for(;listeners.length;)this.removeListener(type,listeners[listeners.length-1]);return delete this._events[type],this},EventEmitter.prototype.listeners=function(type){var ret;return ret=this._events&&this._events[type]?isFunction(this._events[type])?[this._events[type]]:this._events[type].slice():[]},EventEmitter.listenerCount=function(emitter,type){var ret;return ret=emitter._events&&emitter._events[type]?isFunction(emitter._events[type])?1:emitter._events[type].length:0}},{}],\"/node_modules/jshint/data/ascii-identifier-data.js\":[function(_dereq_,module){for(var identifierStartTable=[],i=0;128>i;i++)identifierStartTable[i]=36===i||i>=65&&90>=i||95===i||i>=97&&122>=i;for(var identifierPartTable=[],i=0;128>i;i++)identifierPartTable[i]=identifierStartTable[i]||i>=48&&57>=i;module.exports={asciiIdentifierStartTable:identifierStartTable,asciiIdentifierPartTable:identifierPartTable}},{}],\"/node_modules/jshint/lodash.js\":[function(_dereq_,module,exports){(function(global){(function(){function baseFindIndex(array,predicate,fromRight){for(var length=array.length,index=fromRight?length:-1;fromRight?index--:length>++index;)if(predicate(array[index],index,array))return index;return-1}function baseIndexOf(array,value,fromIndex){if(value!==value)return indexOfNaN(array,fromIndex);for(var index=fromIndex-1,length=array.length;length>++index;)if(array[index]===value)return index;return-1}function baseIsFunction(value){return\"function\"==typeof value||!1}function baseToString(value){return\"string\"==typeof value?value:null==value?\"\":value+\"\"}function indexOfNaN(array,fromIndex,fromRight){for(var length=array.length,index=fromIndex+(fromRight?0:-1);fromRight?index--:length>++index;){var other=array[index];if(other!==other)return index}return-1}function isObjectLike(value){return!!value&&\"object\"==typeof value}function lodash(){}function arrayCopy(source,array){var index=-1,length=source.length;for(array||(array=Array(length));length>++index;)array[index]=source[index];return array}function arrayEach(array,iteratee){for(var index=-1,length=array.length;length>++index&&iteratee(array[index],index,array)!==!1;);return array}function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];length>++index;){var value=array[index];predicate(value,index,array)&&(result[++resIndex]=value)}return result}function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);length>++index;)result[index]=iteratee(array[index],index,array);return result}function arrayMax(array){for(var index=-1,length=array.length,result=NEGATIVE_INFINITY;length>++index;){var value=array[index];value>result&&(result=value)}return result}function arraySome(array,predicate){for(var index=-1,length=array.length;length>++index;)if(predicate(array[index],index,array))return!0;return!1}function assignWith(object,source,customizer){var props=keys(source);push.apply(props,getSymbols(source));for(var index=-1,length=props.length;length>++index;){var key=props[index],value=object[key],result=customizer(value,source[key],key,object,source);(result===result?result===value:value!==value)&&(value!==undefined||key in object)||(object[key]=result)}return object}function baseCopy(source,props,object){object||(object={});for(var index=-1,length=props.length;length>++index;){var key=props[index];object[key]=source[key]}return object}function baseCallback(func,thisArg,argCount){var type=typeof func;return\"function\"==type?thisArg===undefined?func:bindCallback(func,thisArg,argCount):null==func?identity:\"object\"==type?baseMatches(func):thisArg===undefined?property(func):baseMatchesProperty(func,thisArg)}function baseClone(value,isDeep,customizer,key,object,stackA,stackB){var result;if(customizer&&(result=object?customizer(value,key,object):customizer(value)),result!==undefined)return result;if(!isObject(value))return value;var isArr=isArray(value);if(isArr){if(result=initCloneArray(value),!isDeep)return arrayCopy(value,result)}else{var tag=objToString.call(value),isFunc=tag==funcTag;if(tag!=objectTag&&tag!=argsTag&&(!isFunc||object))return cloneableTags[tag]?initCloneByTag(value,tag,isDeep):object?value:{};if(result=initCloneObject(isFunc?{}:value),!isDeep)return baseAssign(result,value)}stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==value)return stackB[length];return stackA.push(value),stackB.push(result),(isArr?arrayEach:baseForOwn)(value,function(subValue,key){result[key]=baseClone(subValue,isDeep,customizer,key,value,stackA,stackB)}),result}function baseFilter(collection,predicate){var result=[];return baseEach(collection,function(value,index,collection){predicate(value,index,collection)&&result.push(value)}),result}function baseForIn(object,iteratee){return baseFor(object,iteratee,keysIn)}function baseForOwn(object,iteratee){return baseFor(object,iteratee,keys)}function baseGet(object,path,pathKey){if(null!=object){pathKey!==undefined&&pathKey in toObject(object)&&(path=[pathKey]);for(var index=-1,length=path.length;null!=object&&length>++index;)var result=object=object[path[index]];return result}}function baseIsEqual(value,other,customizer,isLoose,stackA,stackB){if(value===other)return 0!==value||1/value==1/other;var valType=typeof value,othType=typeof other;return\"function\"!=valType&&\"object\"!=valType&&\"function\"!=othType&&\"object\"!=othType||null==value||null==other?value!==value&&other!==other:baseIsEqualDeep(value,other,baseIsEqual,customizer,isLoose,stackA,stackB)}function baseIsEqualDeep(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=arrayTag,othTag=arrayTag;objIsArr||(objTag=objToString.call(object),objTag==argsTag?objTag=objectTag:objTag!=objectTag&&(objIsArr=isTypedArray(object))),othIsArr||(othTag=objToString.call(other),othTag==argsTag?othTag=objectTag:othTag!=objectTag&&(othIsArr=isTypedArray(other)));var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&!objIsArr&&!objIsObj)return equalByTag(object,other,objTag);if(!isLoose){var valWrapped=objIsObj&&hasOwnProperty.call(object,\"__wrapped__\"),othWrapped=othIsObj&&hasOwnProperty.call(other,\"__wrapped__\");if(valWrapped||othWrapped)return equalFunc(valWrapped?object.value():object,othWrapped?other.value():other,customizer,isLoose,stackA,stackB)}if(!isSameTag)return!1;stackA||(stackA=[]),stackB||(stackB=[]);for(var length=stackA.length;length--;)if(stackA[length]==object)return stackB[length]==other;stackA.push(object),stackB.push(other);var result=(objIsArr?equalArrays:equalObjects)(object,other,equalFunc,customizer,isLoose,stackA,stackB);return stackA.pop(),stackB.pop(),result}function baseIsMatch(object,props,values,strictCompareFlags,customizer){for(var index=-1,length=props.length,noCustomizer=!customizer;length>++index;)if(noCustomizer&&strictCompareFlags[index]?values[index]!==object[props[index]]:!(props[index]in object))return!1;for(index=-1;length>++index;){var key=props[index],objValue=object[key],srcValue=values[index];if(noCustomizer&&strictCompareFlags[index])var result=objValue!==undefined||key in object;else result=customizer?customizer(objValue,srcValue,key):undefined,result===undefined&&(result=baseIsEqual(srcValue,objValue,customizer,!0));if(!result)return!1}return!0}function baseMatches(source){var props=keys(source),length=props.length;if(!length)return constant(!0);if(1==length){var key=props[0],value=source[key];if(isStrictComparable(value))return function(object){return null==object?!1:object[key]===value&&(value!==undefined||key in toObject(object))}}for(var values=Array(length),strictCompareFlags=Array(length);length--;)value=source[props[length]],values[length]=value,strictCompareFlags[length]=isStrictComparable(value);return function(object){return null!=object&&baseIsMatch(toObject(object),props,values,strictCompareFlags)}}function baseMatchesProperty(path,value){var isArr=isArray(path),isCommon=isKey(path)&&isStrictComparable(value),pathKey=path+\"\";return path=toPath(path),function(object){if(null==object)return!1;var key=pathKey;if(object=toObject(object),!(!isArr&&isCommon||key in object)){if(object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),null==object)return!1;key=last(path),object=toObject(object)}return object[key]===value?value!==undefined||key in object:baseIsEqual(value,object[key],null,!0)}}function baseMerge(object,source,customizer,stackA,stackB){if(!isObject(object))return object;var isSrcArr=isLength(source.length)&&(isArray(source)||isTypedArray(source));if(!isSrcArr){var props=keys(source);push.apply(props,getSymbols(source))}return arrayEach(props||source,function(srcValue,key){if(props&&(key=srcValue,srcValue=source[key]),isObjectLike(srcValue))stackA||(stackA=[]),stackB||(stackB=[]),baseMergeDeep(object,source,key,baseMerge,customizer,stackA,stackB);else{var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue),!isSrcArr&&result===undefined||!isCommon&&(result===result?result===value:value!==value)||(object[key]=result)}}),object}function baseMergeDeep(object,source,key,mergeFunc,customizer,stackA,stackB){for(var length=stackA.length,srcValue=source[key];length--;)if(stackA[length]==srcValue)return object[key]=stackB[length],undefined;var value=object[key],result=customizer?customizer(value,srcValue,key,object,source):undefined,isCommon=result===undefined;isCommon&&(result=srcValue,isLength(srcValue.length)&&(isArray(srcValue)||isTypedArray(srcValue))?result=isArray(value)?value:getLength(value)?arrayCopy(value):[]:isPlainObject(srcValue)||isArguments(srcValue)?result=isArguments(value)?toPlainObject(value):isPlainObject(value)?value:{}:isCommon=!1),stackA.push(srcValue),stackB.push(result),isCommon?object[key]=mergeFunc(result,srcValue,customizer,stackA,stackB):(result===result?result!==value:value===value)&&(object[key]=result)}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyDeep(path){var pathKey=path+\"\";return path=toPath(path),function(object){return baseGet(object,path,pathKey)}}function baseSlice(array,start,end){var index=-1,length=array.length;start=null==start?0:+start||0,0>start&&(start=-start>length?0:length+start),end=end===undefined||end>length?length:+end||0,0>end&&(end+=length),length=start>end?0:end-start>>>0,start>>>=0;for(var result=Array(length);length>++index;)result[index]=array[index+start];return result}function baseSome(collection,predicate){var result;return baseEach(collection,function(value,index,collection){return result=predicate(value,index,collection),!result}),!!result}function baseValues(object,props){for(var index=-1,length=props.length,result=Array(length);length>++index;)result[index]=object[props[index]];return result}function binaryIndex(array,value,retHighest){var low=0,high=array?array.length:low;if(\"number\"==typeof value&&value===value&&HALF_MAX_ARRAY_LENGTH>=high){for(;high>low;){var mid=low+high>>>1,computed=array[mid];(retHighest?value>=computed:value>computed)?low=mid+1:high=mid}return high}return binaryIndexBy(array,value,identity,retHighest)}function binaryIndexBy(array,value,iteratee,retHighest){value=iteratee(value);for(var low=0,high=array?array.length:0,valIsNaN=value!==value,valIsUndef=value===undefined;high>low;){var mid=floor((low+high)/2),computed=iteratee(array[mid]),isReflexive=computed===computed;if(valIsNaN)var setLow=isReflexive||retHighest;else setLow=valIsUndef?isReflexive&&(retHighest||computed!==undefined):retHighest?value>=computed:value>computed;setLow?low=mid+1:high=mid}return nativeMin(high,MAX_ARRAY_INDEX)}function bindCallback(func,thisArg,argCount){if(\"function\"!=typeof func)return identity;if(thisArg===undefined)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function bufferClone(buffer){return bufferSlice.call(buffer,0)}function createAssigner(assigner){return restParam(function(object,sources){var index=-1,length=null==object?0:sources.length,customizer=length>2&&sources[length-2],guard=length>2&&sources[2],thisArg=length>1&&sources[length-1];for(\"function\"==typeof customizer?(customizer=bindCallback(customizer,thisArg,5),length-=2):(customizer=\"function\"==typeof thisArg?thisArg:null,length-=customizer?1:0),guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?null:customizer,length=1);length>++index;){var source=sources[index];source&&assigner(object,source,customizer)}return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){var length=collection?getLength(collection):0;if(!isLength(length))return eachFunc(collection,iteratee);for(var index=fromRight?length:-1,iterable=toObject(collection);(fromRight?index--:length>++index)&&iteratee(iterable[index],index,iterable)!==!1;);return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){for(var iterable=toObject(object),props=keysFunc(object),length=props.length,index=fromRight?length:-1;fromRight?index--:length>++index;){var key=props[index];if(iteratee(iterable[key],key,iterable)===!1)break}return object}}function createFindIndex(fromRight){return function(array,predicate,thisArg){return array&&array.length?(predicate=getCallback(predicate,thisArg,3),baseFindIndex(array,predicate,fromRight)):-1}}function createForEach(arrayFunc,eachFunc){return function(collection,iteratee,thisArg){return\"function\"==typeof iteratee&&thisArg===undefined&&isArray(collection)?arrayFunc(collection,iteratee):eachFunc(collection,bindCallback(iteratee,thisArg,3))}}function equalArrays(array,other,equalFunc,customizer,isLoose,stackA,stackB){var index=-1,arrLength=array.length,othLength=other.length,result=!0;if(arrLength!=othLength&&!(isLoose&&othLength>arrLength))return!1;for(;result&&arrLength>++index;){var arrValue=array[index],othValue=other[index];if(result=undefined,customizer&&(result=isLoose?customizer(othValue,arrValue,index):customizer(arrValue,othValue,index)),result===undefined)if(isLoose)for(var othIndex=othLength;othIndex--&&(othValue=other[othIndex],!(result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB))););else result=arrValue&&arrValue===othValue||equalFunc(arrValue,othValue,customizer,isLoose,stackA,stackB)}return!!result}function equalByTag(object,other,tag){switch(tag){case boolTag:case dateTag:return+object==+other;case errorTag:return object.name==other.name&&object.message==other.message;case numberTag:return object!=+object?other!=+other:0==object?1/object==1/other:object==+other;case regexpTag:case stringTag:return object==other+\"\"}return!1}function equalObjects(object,other,equalFunc,customizer,isLoose,stackA,stackB){var objProps=keys(object),objLength=objProps.length,othProps=keys(other),othLength=othProps.length;if(objLength!=othLength&&!isLoose)return!1;for(var skipCtor=isLoose,index=-1;objLength>++index;){var key=objProps[index],result=isLoose?key in other:hasOwnProperty.call(other,key);if(result){var objValue=object[key],othValue=other[key];result=undefined,customizer&&(result=isLoose?customizer(othValue,objValue,key):customizer(objValue,othValue,key)),result===undefined&&(result=objValue&&objValue===othValue||equalFunc(objValue,othValue,customizer,isLoose,stackA,stackB))}if(!result)return!1;skipCtor||(skipCtor=\"constructor\"==key)}if(!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&\"constructor\"in object&&\"constructor\"in other&&!(\"function\"==typeof objCtor&&objCtor instanceof objCtor&&\"function\"==typeof othCtor&&othCtor instanceof othCtor))return!1}return!0}function getCallback(func,thisArg,argCount){var result=lodash.callback||callback;return result=result===callback?baseCallback:result,argCount?result(func,thisArg,argCount):result}function getIndexOf(collection,target,fromIndex){var result=lodash.indexOf||indexOf;return result=result===indexOf?baseIndexOf:result,collection?result(collection,target,fromIndex):result}function initCloneArray(array){var length=array.length,result=new array.constructor(length);return length&&\"string\"==typeof array[0]&&hasOwnProperty.call(array,\"index\")&&(result.index=array.index,result.input=array.input),result}function initCloneObject(object){var Ctor=object.constructor;return\"function\"==typeof Ctor&&Ctor instanceof Ctor||(Ctor=Object),new Ctor}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return bufferClone(object);case boolTag:case dateTag:return new Ctor(+object);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:var buffer=object.buffer;return new Ctor(isDeep?bufferClone(buffer):buffer,object.byteOffset,object.length);case numberTag:case stringTag:return new Ctor(object);case regexpTag:var result=new Ctor(object.source,reFlags.exec(object));result.lastIndex=object.lastIndex}return result}function isIndex(value,length){return value=+value,length=null==length?MAX_SAFE_INTEGER:length,value>-1&&0==value%1&&length>value}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;if(\"number\"==type)var length=getLength(object),prereq=isLength(length)&&isIndex(index,length);else prereq=\"string\"==type&&index in object;if(prereq){var other=object[index];return value===value?value===other:other!==other}return!1}function isKey(value,object){var type=typeof value;if(\"string\"==type&&reIsPlainProp.test(value)||\"number\"==type)return!0;if(isArray(value))return!1;var result=!reIsDeepProp.test(value);return result||null!=object&&value in toObject(object)}function isLength(value){return\"number\"==typeof value&&value>-1&&0==value%1&&MAX_SAFE_INTEGER>=value}function isStrictComparable(value){return value===value&&(0===value?1/value>0:!isObject(value))}function shimIsPlainObject(value){var Ctor;if(lodash.support,!isObjectLike(value)||objToString.call(value)!=objectTag||!hasOwnProperty.call(value,\"constructor\")&&(Ctor=value.constructor,\"function\"==typeof Ctor&&!(Ctor instanceof Ctor)))return!1;var result;return baseForIn(value,function(subValue,key){result=key}),result===undefined||hasOwnProperty.call(value,result)}function shimKeys(object){for(var props=keysIn(object),propsLength=props.length,length=propsLength&&object.length,support=lodash.support,allowIndexes=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object)),index=-1,result=[];propsLength>++index;){var key=props[index];(allowIndexes&&isIndex(key,length)||hasOwnProperty.call(object,key))&&result.push(key)}return result}function toObject(value){return isObject(value)?value:Object(value)}function toPath(value){if(isArray(value))return value;var result=[];return baseToString(value).replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,\"$1\"):number||match)}),result}function indexOf(array,value,fromIndex){var length=array?array.length:0;if(!length)return-1;if(\"number\"==typeof fromIndex)fromIndex=0>fromIndex?nativeMax(length+fromIndex,0):fromIndex;else if(fromIndex){var index=binaryIndex(array,value),other=array[index];return(value===value?value===other:other!==other)?index:-1}return baseIndexOf(array,value,fromIndex||0)}function last(array){var length=array?array.length:0;return length?array[length-1]:undefined}function slice(array,start,end){var length=array?array.length:0;return length?(end&&\"number\"!=typeof end&&isIterateeCall(array,start,end)&&(start=0,end=length),baseSlice(array,start,end)):[]}function unzip(array){for(var index=-1,length=(array&&array.length&&arrayMax(arrayMap(array,getLength)))>>>0,result=Array(length);length>++index;)result[index]=arrayMap(array,baseProperty(index));return result}function includes(collection,target,fromIndex,guard){var length=collection?getLength(collection):0;return isLength(length)||(collection=values(collection),length=collection.length),length?(fromIndex=\"number\"!=typeof fromIndex||guard&&isIterateeCall(target,fromIndex,guard)?0:0>fromIndex?nativeMax(length+fromIndex,0):fromIndex||0,\"string\"==typeof collection||!isArray(collection)&&isString(collection)?length>fromIndex&&collection.indexOf(target,fromIndex)>-1:getIndexOf(collection,target,fromIndex)>-1):!1}function reject(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=getCallback(predicate,thisArg,3),func(collection,function(value,index,collection){return!predicate(value,index,collection)})}function some(collection,predicate,thisArg){var func=isArray(collection)?arraySome:baseSome;return thisArg&&isIterateeCall(collection,predicate,thisArg)&&(predicate=null),(\"function\"!=typeof predicate||thisArg!==undefined)&&(predicate=getCallback(predicate,thisArg,3)),func(collection,predicate)}function restParam(func,start){if(\"function\"!=typeof func)throw new TypeError(FUNC_ERROR_TEXT);return start=nativeMax(start===undefined?func.length-1:+start||0,0),function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),rest=Array(length);length>++index;)rest[index]=args[start+index];switch(start){case 0:return func.call(this,rest);case 1:return func.call(this,args[0],rest);case 2:return func.call(this,args[0],args[1],rest)}var otherArgs=Array(start+1);for(index=-1;start>++index;)otherArgs[index]=args[index];return otherArgs[start]=rest,func.apply(this,otherArgs)}}function clone(value,isDeep,customizer,thisArg){return isDeep&&\"boolean\"!=typeof isDeep&&isIterateeCall(value,isDeep,customizer)?isDeep=!1:\"function\"==typeof isDeep&&(thisArg=customizer,customizer=isDeep,isDeep=!1),customizer=\"function\"==typeof customizer&&bindCallback(customizer,thisArg,1),baseClone(value,isDeep,customizer)}function isArguments(value){var length=isObjectLike(value)?value.length:undefined;return isLength(length)&&objToString.call(value)==argsTag}function isEmpty(value){if(null==value)return!0;var length=getLength(value);return isLength(length)&&(isArray(value)||isString(value)||isArguments(value)||isObjectLike(value)&&isFunction(value.splice))?!length:!keys(value).length}function isObject(value){var type=typeof value;return\"function\"==type||!!value&&\"object\"==type}function isNative(value){return null==value?!1:objToString.call(value)==funcTag?reIsNative.test(fnToString.call(value)):isObjectLike(value)&&reIsHostCtor.test(value)}function isNumber(value){return\"number\"==typeof value||isObjectLike(value)&&objToString.call(value)==numberTag}function isString(value){return\"string\"==typeof value||isObjectLike(value)&&objToString.call(value)==stringTag}function isTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[objToString.call(value)]}function toPlainObject(value){return baseCopy(value,keysIn(value))}function has(object,path){if(null==object)return!1;var result=hasOwnProperty.call(object,path);return result||isKey(path)||(path=toPath(path),object=1==path.length?object:baseGet(object,baseSlice(path,0,-1)),path=last(path),result=null!=object&&hasOwnProperty.call(object,path)),result}function keysIn(object){if(null==object)return[];isObject(object)||(object=Object(object));var length=object.length;length=length&&isLength(length)&&(isArray(object)||support.nonEnumArgs&&isArguments(object))&&length||0;for(var Ctor=object.constructor,index=-1,isProto=\"function\"==typeof Ctor&&Ctor.prototype===object,result=Array(length),skipIndexes=length>0;length>++index;)result[index]=index+\"\";for(var key in object)skipIndexes&&isIndex(key,length)||\"constructor\"==key&&(isProto||!hasOwnProperty.call(object,key))||result.push(key);return result}function values(object){return baseValues(object,keys(object))}function escapeRegExp(string){return string=baseToString(string),string&&reHasRegExpChars.test(string)?string.replace(reRegExpChars,\"\\\\$&\"):string}function callback(func,thisArg,guard){return guard&&isIterateeCall(func,thisArg,guard)&&(thisArg=null),baseCallback(func,thisArg)}function constant(value){return function(){return value}}function identity(value){return value}function property(path){return isKey(path)?baseProperty(path):basePropertyDeep(path)}var undefined,VERSION=\"3.7.0\",FUNC_ERROR_TEXT=\"Expected a function\",argsTag=\"[object Arguments]\",arrayTag=\"[object Array]\",boolTag=\"[object Boolean]\",dateTag=\"[object Date]\",errorTag=\"[object Error]\",funcTag=\"[object Function]\",mapTag=\"[object Map]\",numberTag=\"[object Number]\",objectTag=\"[object Object]\",regexpTag=\"[object RegExp]\",setTag=\"[object Set]\",stringTag=\"[object String]\",weakMapTag=\"[object WeakMap]\",arrayBufferTag=\"[object ArrayBuffer]\",float32Tag=\"[object Float32Array]\",float64Tag=\"[object Float64Array]\",int8Tag=\"[object Int8Array]\",int16Tag=\"[object Int16Array]\",int32Tag=\"[object Int32Array]\",uint8Tag=\"[object Uint8Array]\",uint8ClampedTag=\"[object Uint8ClampedArray]\",uint16Tag=\"[object Uint16Array]\",uint32Tag=\"[object Uint32Array]\",reIsDeepProp=/\\.|\\[(?:[^[\\]]+|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?)\\1\\]/,reIsPlainProp=/^\\w*$/,rePropName=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g,reRegExpChars=/[.*+?^${}()|[\\]\\/\\\\]/g,reHasRegExpChars=RegExp(reRegExpChars.source),reEscapeChar=/\\\\(\\\\)?/g,reFlags=/\\w*$/,reIsHostCtor=/^\\[object .+?Constructor\\]$/,typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=!1;var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[stringTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[mapTag]=cloneableTags[setTag]=cloneableTags[weakMapTag]=!1;var objectTypes={\"function\":!0,object:!0},freeExports=objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,freeModule=objectTypes[typeof module]&&module&&!module.nodeType&&module,freeGlobal=freeExports&&freeModule&&\"object\"==typeof global&&global&&global.Object&&global,freeSelf=objectTypes[typeof self]&&self&&self.Object&&self,freeWindow=objectTypes[typeof window]&&window&&window.Object&&window,moduleExports=freeModule&&freeModule.exports===freeExports&&freeExports,root=freeGlobal||freeWindow!==(this&&this.window)&&freeWindow||freeSelf||this,arrayProto=Array.prototype,objectProto=Object.prototype,fnToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,objToString=objectProto.toString,reIsNative=RegExp(\"^\"+escapeRegExp(objToString).replace(/toString|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),ArrayBuffer=isNative(ArrayBuffer=root.ArrayBuffer)&&ArrayBuffer,bufferSlice=isNative(bufferSlice=ArrayBuffer&&new ArrayBuffer(0).slice)&&bufferSlice,floor=Math.floor,getOwnPropertySymbols=isNative(getOwnPropertySymbols=Object.getOwnPropertySymbols)&&getOwnPropertySymbols,getPrototypeOf=isNative(getPrototypeOf=Object.getPrototypeOf)&&getPrototypeOf,push=arrayProto.push,preventExtensions=isNative(Object.preventExtensions=Object.preventExtensions)&&preventExtensions,propertyIsEnumerable=objectProto.propertyIsEnumerable,Uint8Array=isNative(Uint8Array=root.Uint8Array)&&Uint8Array,Float64Array=function(){try{var func=isNative(func=root.Float64Array)&&func,result=new func(new ArrayBuffer(10),0,1)&&func}catch(e){}return result}(),nativeAssign=function(){var object={1:0},func=preventExtensions&&isNative(func=Object.assign)&&func;try{func(preventExtensions(object),\"xo\")}catch(e){}return!object[1]&&func}(),nativeIsArray=isNative(nativeIsArray=Array.isArray)&&nativeIsArray,nativeKeys=isNative(nativeKeys=Object.keys)&&nativeKeys,nativeMax=Math.max,nativeMin=Math.min,NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,MAX_ARRAY_LENGTH=Math.pow(2,32)-1,MAX_ARRAY_INDEX=MAX_ARRAY_LENGTH-1,HALF_MAX_ARRAY_LENGTH=MAX_ARRAY_LENGTH>>>1,FLOAT64_BYTES_PER_ELEMENT=Float64Array?Float64Array.BYTES_PER_ELEMENT:0,MAX_SAFE_INTEGER=Math.pow(2,53)-1,support=lodash.support={};(function(x){var Ctor=function(){this.x=x},props=[];Ctor.prototype={valueOf:x,y:x};for(var key in new Ctor)props.push(key);support.funcDecomp=/\\bthis\\b/.test(function(){return this}),support.funcNames=\"string\"==typeof Function.name;try{support.nonEnumArgs=!propertyIsEnumerable.call(arguments,1)}catch(e){support.nonEnumArgs=!0}})(1,0);var baseAssign=nativeAssign||function(object,source){return null==source?object:baseCopy(source,getSymbols(source),baseCopy(source,keys(source),object))},baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor();bufferSlice||(bufferClone=ArrayBuffer&&Uint8Array?function(buffer){var byteLength=buffer.byteLength,floatLength=Float64Array?floor(byteLength/FLOAT64_BYTES_PER_ELEMENT):0,offset=floatLength*FLOAT64_BYTES_PER_ELEMENT,result=new ArrayBuffer(byteLength);if(floatLength){var view=new Float64Array(result,0,floatLength);view.set(new Float64Array(buffer,0,floatLength))}return byteLength!=offset&&(view=new Uint8Array(result,offset),view.set(new Uint8Array(buffer,offset))),result}:constant(null));var getLength=baseProperty(\"length\"),getSymbols=getOwnPropertySymbols?function(object){return getOwnPropertySymbols(toObject(object))}:constant([]),findLastIndex=createFindIndex(!0),zip=restParam(unzip),forEach=createForEach(arrayEach,baseEach),isArray=nativeIsArray||function(value){return isObjectLike(value)&&isLength(value.length)&&objToString.call(value)==arrayTag},isFunction=baseIsFunction(/x/)||Uint8Array&&!baseIsFunction(Uint8Array)?function(value){return objToString.call(value)==funcTag}:baseIsFunction,isPlainObject=getPrototypeOf?function(value){if(!value||objToString.call(value)!=objectTag)return!1;var valueOf=value.valueOf,objProto=isNative(valueOf)&&(objProto=getPrototypeOf(valueOf))&&getPrototypeOf(objProto);return objProto?value==objProto||getPrototypeOf(value)==objProto:shimIsPlainObject(value)}:shimIsPlainObject,assign=createAssigner(function(object,source,customizer){return customizer?assignWith(object,source,customizer):baseAssign(object,source)}),keys=nativeKeys?function(object){if(object)var Ctor=object.constructor,length=object.length;return\"function\"==typeof Ctor&&Ctor.prototype===object||\"function\"!=typeof object&&isLength(length)?shimKeys(object):isObject(object)?nativeKeys(object):[]}:shimKeys,merge=createAssigner(baseMerge);lodash.assign=assign,lodash.callback=callback,lodash.constant=constant,lodash.forEach=forEach,lodash.keys=keys,lodash.keysIn=keysIn,lodash.merge=merge,lodash.property=property,lodash.reject=reject,lodash.restParam=restParam,lodash.slice=slice,lodash.toPlainObject=toPlainObject,lodash.unzip=unzip,lodash.values=values,lodash.zip=zip,lodash.each=forEach,lodash.extend=assign,lodash.iteratee=callback,lodash.clone=clone,lodash.escapeRegExp=escapeRegExp,lodash.findLastIndex=findLastIndex,lodash.has=has,lodash.identity=identity,lodash.includes=includes,lodash.indexOf=indexOf,lodash.isArguments=isArguments,lodash.isArray=isArray,lodash.isEmpty=isEmpty,lodash.isFunction=isFunction,lodash.isNative=isNative,lodash.isNumber=isNumber,lodash.isObject=isObject,lodash.isPlainObject=isPlainObject,lodash.isString=isString,lodash.isTypedArray=isTypedArray,lodash.last=last,lodash.some=some,lodash.any=some,lodash.contains=includes,lodash.include=includes,lodash.VERSION=VERSION,freeExports&&freeModule?moduleExports?(freeModule.exports=lodash)._=lodash:freeExports._=lodash:root._=lodash\n}).call(this)}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],\"/node_modules/jshint/src/jshint.js\":[function(_dereq_,module,exports){var _=_dereq_(\"../lodash\"),events=_dereq_(\"events\"),vars=_dereq_(\"./vars.js\"),messages=_dereq_(\"./messages.js\"),Lexer=_dereq_(\"./lex.js\").Lexer,reg=_dereq_(\"./reg.js\"),state=_dereq_(\"./state.js\").state,style=_dereq_(\"./style.js\"),options=_dereq_(\"./options.js\"),scopeManager=_dereq_(\"./scope-manager.js\"),JSHINT=function(){\"use strict\";function checkOption(name,t){return name=name.trim(),/^[+-]W\\d{3}$/g.test(name)?!0:-1!==options.validNames.indexOf(name)||\"jslint\"===t.type||_.has(options.removed,name)?!0:(error(\"E001\",t,name),!1)}function isString(obj){return\"[object String]\"===Object.prototype.toString.call(obj)}function isIdentifier(tkn,value){return tkn?tkn.identifier&&tkn.value===value?!0:!1:!1}function isReserved(token){if(!token.reserved)return!1;var meta=token.meta;if(meta&&meta.isFutureReservedWord&&state.inES5()){if(!meta.es5)return!1;if(meta.strictOnly&&!state.option.strict&&!state.isStrict())return!1;if(token.isProperty)return!1}return!0}function supplant(str,data){return str.replace(/\\{([^{}]*)\\}/g,function(a,b){var r=data[b];return\"string\"==typeof r||\"number\"==typeof r?r:a})}function combine(dest,src){Object.keys(src).forEach(function(name){_.has(JSHINT.blacklist,name)||(dest[name]=src[name])})}function processenforceall(){if(state.option.enforceall){for(var enforceopt in options.bool.enforcing)void 0!==state.option[enforceopt]||options.noenforceall[enforceopt]||(state.option[enforceopt]=!0);for(var relaxopt in options.bool.relaxing)void 0===state.option[relaxopt]&&(state.option[relaxopt]=!1)}}function assume(){processenforceall(),state.option.esversion||state.option.moz||(state.option.esversion=state.option.es3?3:state.option.esnext?6:5),state.inES5()&&combine(predefined,vars.ecmaIdentifiers[5]),state.inES6()&&combine(predefined,vars.ecmaIdentifiers[6]),state.option.module&&(state.option.strict===!0&&(state.option.strict=\"global\"),state.inES6()||warning(\"W134\",state.tokens.next,\"module\",6)),state.option.couch&&combine(predefined,vars.couch),state.option.qunit&&combine(predefined,vars.qunit),state.option.rhino&&combine(predefined,vars.rhino),state.option.shelljs&&(combine(predefined,vars.shelljs),combine(predefined,vars.node)),state.option.typed&&combine(predefined,vars.typed),state.option.phantom&&(combine(predefined,vars.phantom),state.option.strict===!0&&(state.option.strict=\"global\")),state.option.prototypejs&&combine(predefined,vars.prototypejs),state.option.node&&(combine(predefined,vars.node),combine(predefined,vars.typed),state.option.strict===!0&&(state.option.strict=\"global\")),state.option.devel&&combine(predefined,vars.devel),state.option.dojo&&combine(predefined,vars.dojo),state.option.browser&&(combine(predefined,vars.browser),combine(predefined,vars.typed)),state.option.browserify&&(combine(predefined,vars.browser),combine(predefined,vars.typed),combine(predefined,vars.browserify),state.option.strict===!0&&(state.option.strict=\"global\")),state.option.nonstandard&&combine(predefined,vars.nonstandard),state.option.jasmine&&combine(predefined,vars.jasmine),state.option.jquery&&combine(predefined,vars.jquery),state.option.mootools&&combine(predefined,vars.mootools),state.option.worker&&combine(predefined,vars.worker),state.option.wsh&&combine(predefined,vars.wsh),state.option.globalstrict&&state.option.strict!==!1&&(state.option.strict=\"global\"),state.option.yui&&combine(predefined,vars.yui),state.option.mocha&&combine(predefined,vars.mocha)}function quit(code,line,chr){var percentage=Math.floor(100*(line/state.lines.length)),message=messages.errors[code].desc;throw{name:\"JSHintError\",line:line,character:chr,message:message+\" (\"+percentage+\"% scanned).\",raw:message,code:code}}function removeIgnoredMessages(){var ignored=state.ignoredLines;_.isEmpty(ignored)||(JSHINT.errors=_.reject(JSHINT.errors,function(err){return ignored[err.line]}))}function warning(code,t,a,b,c,d){var ch,l,w,msg;if(/^W\\d{3}$/.test(code)){if(state.ignored[code])return;msg=messages.warnings[code]}else/E\\d{3}/.test(code)?msg=messages.errors[code]:/I\\d{3}/.test(code)&&(msg=messages.info[code]);return t=t||state.tokens.next||{},\"(end)\"===t.id&&(t=state.tokens.curr),l=t.line||0,ch=t.from||0,w={id:\"(error)\",raw:msg.desc,code:msg.code,evidence:state.lines[l-1]||\"\",line:l,character:ch,scope:JSHINT.scope,a:a,b:b,c:c,d:d},w.reason=supplant(msg.desc,w),JSHINT.errors.push(w),removeIgnoredMessages(),JSHINT.errors.length>=state.option.maxerr&&quit(\"E043\",l,ch),w}function warningAt(m,l,ch,a,b,c,d){return warning(m,{line:l,from:ch},a,b,c,d)}function error(m,t,a,b,c,d){warning(m,t,a,b,c,d)}function errorAt(m,l,ch,a,b,c,d){return error(m,{line:l,from:ch},a,b,c,d)}function addInternalSrc(elem,src){var i;return i={id:\"(internal)\",elem:elem,value:src},JSHINT.internals.push(i),i}function doOption(){var nt=state.tokens.next,body=nt.body.match(/(-\\s+)?[^\\s,:]+(?:\\s*:\\s*(-\\s+)?[^\\s,]+)?/g)||[],predef={};if(\"globals\"===nt.type){body.forEach(function(g,idx){g=g.split(\":\");var key=(g[0]||\"\").trim(),val=(g[1]||\"\").trim();if(\"-\"===key||!key.length){if(idx>0&&idx===body.length-1)return;return error(\"E002\",nt),void 0}\"-\"===key.charAt(0)?(key=key.slice(1),val=!1,JSHINT.blacklist[key]=key,delete predefined[key]):predef[key]=\"true\"===val}),combine(predefined,predef);for(var key in predef)_.has(predef,key)&&(declared[key]=nt)}\"exported\"===nt.type&&body.forEach(function(e,idx){if(!e.length){if(idx>0&&idx===body.length-1)return;return error(\"E002\",nt),void 0}state.funct[\"(scope)\"].addExported(e)}),\"members\"===nt.type&&(membersOnly=membersOnly||{},body.forEach(function(m){var ch1=m.charAt(0),ch2=m.charAt(m.length-1);ch1!==ch2||'\"'!==ch1&&\"'\"!==ch1||(m=m.substr(1,m.length-2).replace('\\\\\"','\"')),membersOnly[m]=!1}));var numvals=[\"maxstatements\",\"maxparams\",\"maxdepth\",\"maxcomplexity\",\"maxerr\",\"maxlen\",\"indent\"];(\"jshint\"===nt.type||\"jslint\"===nt.type)&&(body.forEach(function(g){g=g.split(\":\");var key=(g[0]||\"\").trim(),val=(g[1]||\"\").trim();if(checkOption(key,nt))if(numvals.indexOf(key)>=0)if(\"false\"!==val){if(val=+val,\"number\"!=typeof val||!isFinite(val)||0>=val||Math.floor(val)!==val)return error(\"E032\",nt,g[1].trim()),void 0;state.option[key]=val}else state.option[key]=\"indent\"===key?4:!1;else{if(\"validthis\"===key)return state.funct[\"(global)\"]?void error(\"E009\"):\"true\"!==val&&\"false\"!==val?void error(\"E002\",nt):(state.option.validthis=\"true\"===val,void 0);if(\"quotmark\"!==key)if(\"shadow\"!==key)if(\"unused\"!==key)if(\"latedef\"!==key)if(\"ignore\"!==key)if(\"strict\"!==key){\"module\"===key&&(hasParsedCode(state.funct)||error(\"E055\",state.tokens.next,\"module\"));var esversions={es3:3,es5:5,esnext:6};if(!_.has(esversions,key)){if(\"esversion\"===key){switch(val){case\"5\":state.inES5(!0)&&warning(\"I003\");case\"3\":case\"6\":state.option.moz=!1,state.option.esversion=+val;break;case\"2015\":state.option.moz=!1,state.option.esversion=6;break;default:error(\"E002\",nt)}return hasParsedCode(state.funct)||error(\"E055\",state.tokens.next,\"esversion\"),void 0}var match=/^([+-])(W\\d{3})$/g.exec(key);if(match)return state.ignored[match[2]]=\"-\"===match[1],void 0;var tn;return\"true\"===val||\"false\"===val?(\"jslint\"===nt.type?(tn=options.renamed[key]||key,state.option[tn]=\"true\"===val,void 0!==options.inverted[tn]&&(state.option[tn]=!state.option[tn])):state.option[key]=\"true\"===val,\"newcap\"===key&&(state.option[\"(explicitNewcap)\"]=!0),void 0):(error(\"E002\",nt),void 0)}switch(val){case\"true\":state.option.moz=!1,state.option.esversion=esversions[key];break;case\"false\":state.option.moz||(state.option.esversion=5);break;default:error(\"E002\",nt)}}else switch(val){case\"true\":state.option.strict=!0;break;case\"false\":state.option.strict=!1;break;case\"func\":case\"global\":case\"implied\":state.option.strict=val;break;default:error(\"E002\",nt)}else switch(val){case\"line\":state.ignoredLines[nt.line]=!0,removeIgnoredMessages();break;default:error(\"E002\",nt)}else switch(val){case\"true\":state.option.latedef=!0;break;case\"false\":state.option.latedef=!1;break;case\"nofunc\":state.option.latedef=\"nofunc\";break;default:error(\"E002\",nt)}else switch(val){case\"true\":state.option.unused=!0;break;case\"false\":state.option.unused=!1;break;case\"vars\":case\"strict\":state.option.unused=val;break;default:error(\"E002\",nt)}else switch(val){case\"true\":state.option.shadow=!0;break;case\"outer\":state.option.shadow=\"outer\";break;case\"false\":case\"inner\":state.option.shadow=\"inner\";break;default:error(\"E002\",nt)}else switch(val){case\"true\":case\"false\":state.option.quotmark=\"true\"===val;break;case\"double\":case\"single\":state.option.quotmark=val;break;default:error(\"E002\",nt)}}}),assume())}function peek(p){var t,i=p||0,j=lookahead.length;if(j>i)return lookahead[i];for(;i>=j;)t=lookahead[j],t||(t=lookahead[j]=lex.token()),j+=1;return t||\"(end)\"!==state.tokens.next.id?t:state.tokens.next}function peekIgnoreEOL(){var t,i=0;do t=peek(i++);while(\"(endline)\"===t.id);return t}function advance(id,t){switch(state.tokens.curr.id){case\"(number)\":\".\"===state.tokens.next.id&&warning(\"W005\",state.tokens.curr);break;case\"-\":(\"-\"===state.tokens.next.id||\"--\"===state.tokens.next.id)&&warning(\"W006\");break;case\"+\":(\"+\"===state.tokens.next.id||\"++\"===state.tokens.next.id)&&warning(\"W007\")}for(id&&state.tokens.next.id!==id&&(t?\"(end)\"===state.tokens.next.id?error(\"E019\",t,t.id):error(\"E020\",state.tokens.next,id,t.id,t.line,state.tokens.next.value):(\"(identifier)\"!==state.tokens.next.type||state.tokens.next.value!==id)&&warning(\"W116\",state.tokens.next,id,state.tokens.next.value)),state.tokens.prev=state.tokens.curr,state.tokens.curr=state.tokens.next;;){if(state.tokens.next=lookahead.shift()||lex.token(),state.tokens.next||quit(\"E041\",state.tokens.curr.line),\"(end)\"===state.tokens.next.id||\"(error)\"===state.tokens.next.id)return;if(state.tokens.next.check&&state.tokens.next.check(),state.tokens.next.isSpecial)\"falls through\"===state.tokens.next.type?state.tokens.curr.caseFallsThrough=!0:doOption();else if(\"(endline)\"!==state.tokens.next.id)break}}function isInfix(token){return token.infix||!token.identifier&&!token.template&&!!token.led}function isEndOfExpr(){var curr=state.tokens.curr,next=state.tokens.next;return\";\"===next.id||\"}\"===next.id||\":\"===next.id?!0:isInfix(next)===isInfix(curr)||\"yield\"===curr.id&&state.inMoz()?curr.line!==startLine(next):!1}function isBeginOfExpr(prev){return!prev.left&&\"unary\"!==prev.arity}function expression(rbp,initial){var left,isArray=!1,isObject=!1,isLetExpr=!1;state.nameStack.push(),initial||\"let\"!==state.tokens.next.value||\"(\"!==peek(0).value||(state.inMoz()||warning(\"W118\",state.tokens.next,\"let expressions\"),isLetExpr=!0,state.funct[\"(scope)\"].stack(),advance(\"let\"),advance(\"(\"),state.tokens.prev.fud(),advance(\")\")),\"(end)\"===state.tokens.next.id&&error(\"E006\",state.tokens.curr);var isDangerous=state.option.asi&&state.tokens.prev.line!==startLine(state.tokens.curr)&&_.contains([\"]\",\")\"],state.tokens.prev.id)&&_.contains([\"[\",\"(\"],state.tokens.curr.id);if(isDangerous&&warning(\"W014\",state.tokens.curr,state.tokens.curr.id),advance(),initial&&(state.funct[\"(verb)\"]=state.tokens.curr.value,state.tokens.curr.beginsStmt=!0),initial===!0&&state.tokens.curr.fud)left=state.tokens.curr.fud();else for(state.tokens.curr.nud?left=state.tokens.curr.nud():error(\"E030\",state.tokens.curr,state.tokens.curr.id);(state.tokens.next.lbp>rbp||\"(template)\"===state.tokens.next.type)&&!isEndOfExpr();)isArray=\"Array\"===state.tokens.curr.value,isObject=\"Object\"===state.tokens.curr.value,left&&(left.value||left.first&&left.first.value)&&(\"new\"!==left.value||left.first&&left.first.value&&\".\"===left.first.value)&&(isArray=!1,left.value!==state.tokens.curr.value&&(isObject=!1)),advance(),isArray&&\"(\"===state.tokens.curr.id&&\")\"===state.tokens.next.id&&warning(\"W009\",state.tokens.curr),isObject&&\"(\"===state.tokens.curr.id&&\")\"===state.tokens.next.id&&warning(\"W010\",state.tokens.curr),left&&state.tokens.curr.led?left=state.tokens.curr.led(left):error(\"E033\",state.tokens.curr,state.tokens.curr.id);return isLetExpr&&state.funct[\"(scope)\"].unstack(),state.nameStack.pop(),left}function startLine(token){return token.startLine||token.line}function nobreaknonadjacent(left,right){left=left||state.tokens.curr,right=right||state.tokens.next,state.option.laxbreak||left.line===startLine(right)||warning(\"W014\",right,right.value)}function nolinebreak(t){t=t||state.tokens.curr,t.line!==startLine(state.tokens.next)&&warning(\"E022\",t,t.value)}function nobreakcomma(left,right){left.line!==startLine(right)&&(state.option.laxcomma||(comma.first&&(warning(\"I001\"),comma.first=!1),warning(\"W014\",left,right.value)))}function comma(opts){if(opts=opts||{},opts.peek?nobreakcomma(state.tokens.prev,state.tokens.curr):(nobreakcomma(state.tokens.curr,state.tokens.next),advance(\",\")),state.tokens.next.identifier&&(!opts.property||!state.inES5()))switch(state.tokens.next.value){case\"break\":case\"case\":case\"catch\":case\"continue\":case\"default\":case\"do\":case\"else\":case\"finally\":case\"for\":case\"if\":case\"in\":case\"instanceof\":case\"return\":case\"switch\":case\"throw\":case\"try\":case\"var\":case\"let\":case\"while\":case\"with\":return error(\"E024\",state.tokens.next,state.tokens.next.value),!1}if(\"(punctuator)\"===state.tokens.next.type)switch(state.tokens.next.value){case\"}\":case\"]\":case\",\":if(opts.allowTrailing)return!0;case\")\":return error(\"E024\",state.tokens.next,state.tokens.next.value),!1}return!0}function symbol(s,p){var x=state.syntax[s];return x&&\"object\"==typeof x||(state.syntax[s]=x={id:s,lbp:p,value:s}),x}function delim(s){var x=symbol(s,0);return x.delim=!0,x}function stmt(s,f){var x=delim(s);return x.identifier=x.reserved=!0,x.fud=f,x}function blockstmt(s,f){var x=stmt(s,f);return x.block=!0,x}function reserveName(x){var c=x.id.charAt(0);return(c>=\"a\"&&\"z\">=c||c>=\"A\"&&\"Z\">=c)&&(x.identifier=x.reserved=!0),x}function prefix(s,f){var x=symbol(s,150);return reserveName(x),x.nud=\"function\"==typeof f?f:function(){return this.arity=\"unary\",this.right=expression(150),(\"++\"===this.id||\"--\"===this.id)&&(state.option.plusplus?warning(\"W016\",this,this.id):!this.right||this.right.identifier&&!isReserved(this.right)||\".\"===this.right.id||\"[\"===this.right.id||warning(\"W017\",this),this.right&&this.right.isMetaProperty?error(\"E031\",this):this.right&&this.right.identifier&&state.funct[\"(scope)\"].block.modify(this.right.value,this)),this},x}function type(s,f){var x=delim(s);return x.type=s,x.nud=f,x}function reserve(name,func){var x=type(name,func);return x.identifier=!0,x.reserved=!0,x}function FutureReservedWord(name,meta){var x=type(name,meta&&meta.nud||function(){return this});return meta=meta||{},meta.isFutureReservedWord=!0,x.value=name,x.identifier=!0,x.reserved=!0,x.meta=meta,x}function reservevar(s,v){return reserve(s,function(){return\"function\"==typeof v&&v(this),this})}function infix(s,f,p,w){var x=symbol(s,p);return reserveName(x),x.infix=!0,x.led=function(left){return w||nobreaknonadjacent(state.tokens.prev,state.tokens.curr),\"in\"!==s&&\"instanceof\"!==s||\"!\"!==left.id||warning(\"W018\",left,\"!\"),\"function\"==typeof f?f(left,this):(this.left=left,this.right=expression(p),this)},x}function application(s){var x=symbol(s,42);return x.led=function(left){return nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left,this.right=doFunction({type:\"arrow\",loneArg:left}),this},x}function relation(s,f){var x=symbol(s,100);return x.led=function(left){nobreaknonadjacent(state.tokens.prev,state.tokens.curr),this.left=left;var right=this.right=expression(100);return isIdentifier(left,\"NaN\")||isIdentifier(right,\"NaN\")?warning(\"W019\",this):f&&f.apply(this,[left,right]),left&&right||quit(\"E041\",state.tokens.curr.line),\"!\"===left.id&&warning(\"W018\",left,\"!\"),\"!\"===right.id&&warning(\"W018\",right,\"!\"),this},x}function isPoorRelation(node){return node&&(\"(number)\"===node.type&&0===+node.value||\"(string)\"===node.type&&\"\"===node.value||\"null\"===node.type&&!state.option.eqnull||\"true\"===node.type||\"false\"===node.type||\"undefined\"===node.type)}function isTypoTypeof(left,right,state){var values;return state.option.notypeof?!1:left&&right?(values=state.inES6()?typeofValues.es6:typeofValues.es3,\"(identifier)\"===right.type&&\"typeof\"===right.value&&\"(string)\"===left.type?!_.contains(values,left.value):!1):!1}function isGlobalEval(left,state){var isGlobal=!1;return\"this\"===left.type&&null===state.funct[\"(context)\"]?isGlobal=!0:\"(identifier)\"===left.type&&(state.option.node&&\"global\"===left.value?isGlobal=!0:!state.option.browser||\"window\"!==left.value&&\"document\"!==left.value||(isGlobal=!0)),isGlobal}function findNativePrototype(left){function walkPrototype(obj){return\"object\"==typeof obj?\"prototype\"===obj.right?obj:walkPrototype(obj.left):void 0}function walkNative(obj){for(;!obj.identifier&&\"object\"==typeof obj.left;)obj=obj.left;return obj.identifier&&natives.indexOf(obj.value)>=0?obj.value:void 0}var natives=[\"Array\",\"ArrayBuffer\",\"Boolean\",\"Collator\",\"DataView\",\"Date\",\"DateTimeFormat\",\"Error\",\"EvalError\",\"Float32Array\",\"Float64Array\",\"Function\",\"Infinity\",\"Intl\",\"Int16Array\",\"Int32Array\",\"Int8Array\",\"Iterator\",\"Number\",\"NumberFormat\",\"Object\",\"RangeError\",\"ReferenceError\",\"RegExp\",\"StopIteration\",\"String\",\"SyntaxError\",\"TypeError\",\"Uint16Array\",\"Uint32Array\",\"Uint8Array\",\"Uint8ClampedArray\",\"URIError\"],prototype=walkPrototype(left);return prototype?walkNative(prototype):void 0}function checkLeftSideAssign(left,assignToken,options){var allowDestructuring=options&&options.allowDestructuring;if(assignToken=assignToken||left,state.option.freeze){var nativeObject=findNativePrototype(left);nativeObject&&warning(\"W121\",left,nativeObject)}return left.identifier&&!left.isMetaProperty&&state.funct[\"(scope)\"].block.reassign(left.value,left),\".\"===left.id?((!left.left||\"arguments\"===left.left.value&&!state.isStrict())&&warning(\"E031\",assignToken),state.nameStack.set(state.tokens.prev),!0):\"{\"===left.id||\"[\"===left.id?(allowDestructuring&&state.tokens.curr.left.destructAssign?state.tokens.curr.left.destructAssign.forEach(function(t){t.id&&state.funct[\"(scope)\"].block.modify(t.id,t.token)}):\"{\"!==left.id&&left.left?\"arguments\"!==left.left.value||state.isStrict()||warning(\"E031\",assignToken):warning(\"E031\",assignToken),\"[\"===left.id&&state.nameStack.set(left.right),!0):left.isMetaProperty?(error(\"E031\",assignToken),!0):left.identifier&&!isReserved(left)?(\"exception\"===state.funct[\"(scope)\"].labeltype(left.value)&&warning(\"W022\",left),state.nameStack.set(left),!0):(left===state.syntax[\"function\"]&&warning(\"W023\",state.tokens.curr),!1)}function assignop(s,f,p){var x=infix(s,\"function\"==typeof f?f:function(left,that){return that.left=left,left&&checkLeftSideAssign(left,that,{allowDestructuring:!0})?(that.right=expression(10),that):(error(\"E031\",that),void 0)},p);return x.exps=!0,x.assign=!0,x}function bitwise(s,f,p){var x=symbol(s,p);return reserveName(x),x.led=\"function\"==typeof f?f:function(left){return state.option.bitwise&&warning(\"W016\",this,this.id),this.left=left,this.right=expression(p),this},x}function bitwiseassignop(s){return assignop(s,function(left,that){return state.option.bitwise&&warning(\"W016\",that,that.id),left&&checkLeftSideAssign(left,that)?(that.right=expression(10),that):(error(\"E031\",that),void 0)},20)}function suffix(s){var x=symbol(s,150);return x.led=function(left){return state.option.plusplus?warning(\"W016\",this,this.id):left.identifier&&!isReserved(left)||\".\"===left.id||\"[\"===left.id||warning(\"W017\",this),left.isMetaProperty?error(\"E031\",this):left&&left.identifier&&state.funct[\"(scope)\"].block.modify(left.value,left),this.left=left,this},x}function optionalidentifier(fnparam,prop,preserve){if(state.tokens.next.identifier){preserve||advance();var curr=state.tokens.curr,val=state.tokens.curr.value;return isReserved(curr)?prop&&state.inES5()?val:fnparam&&\"undefined\"===val?val:(warning(\"W024\",state.tokens.curr,state.tokens.curr.id),val):val}}function identifier(fnparam,prop){var i=optionalidentifier(fnparam,prop,!1);if(i)return i;if(\"...\"===state.tokens.next.value){if(state.inES6(!0)||warning(\"W119\",state.tokens.next,\"spread/rest operator\",\"6\"),advance(),checkPunctuator(state.tokens.next,\"...\"))for(warning(\"E024\",state.tokens.next,\"...\");checkPunctuator(state.tokens.next,\"...\");)advance();return state.tokens.next.identifier?identifier(fnparam,prop):(warning(\"E024\",state.tokens.curr,\"...\"),void 0)}error(\"E030\",state.tokens.next,state.tokens.next.value),\";\"!==state.tokens.next.id&&advance()}function reachable(controlToken){var t,i=0;if(\";\"===state.tokens.next.id&&!controlToken.inBracelessBlock)for(;;){do t=peek(i),i+=1;while(\"(end)\"!==t.id&&\"(comment)\"===t.id);if(t.reach)return;if(\"(endline)\"!==t.id){if(\"function\"===t.id){state.option.latedef===!0&&warning(\"W026\",t);break}warning(\"W027\",t,t.value,controlToken.value);break}}}function parseFinalSemicolon(){if(\";\"!==state.tokens.next.id){if(state.tokens.next.isUnclosed)return advance();var sameLine=startLine(state.tokens.next)===state.tokens.curr.line&&\"(end)\"!==state.tokens.next.id,blockEnd=checkPunctuator(state.tokens.next,\"}\");sameLine&&!blockEnd?errorAt(\"E058\",state.tokens.curr.line,state.tokens.curr.character):state.option.asi||(blockEnd&&!state.option.lastsemic||!sameLine)&&warningAt(\"W033\",state.tokens.curr.line,state.tokens.curr.character)}else advance(\";\")}function statement(){var r,i=indent,t=state.tokens.next,hasOwnScope=!1;if(\";\"===t.id)return advance(\";\"),void 0;var res=isReserved(t);if(res&&t.meta&&t.meta.isFutureReservedWord&&\":\"===peek().id&&(warning(\"W024\",t,t.id),res=!1),t.identifier&&!res&&\":\"===peek().id&&(advance(),advance(\":\"),hasOwnScope=!0,state.funct[\"(scope)\"].stack(),state.funct[\"(scope)\"].block.addBreakLabel(t.value,{token:state.tokens.curr}),state.tokens.next.labelled||\"{\"===state.tokens.next.value||warning(\"W028\",state.tokens.next,t.value,state.tokens.next.value),state.tokens.next.label=t.value,t=state.tokens.next),\"{\"===t.id){var iscase=\"case\"===state.funct[\"(verb)\"]&&\":\"===state.tokens.curr.value;return block(!0,!0,!1,!1,iscase),void 0}return r=expression(0,!0),!r||r.identifier&&\"function\"===r.value||\"(punctuator)\"===r.type&&r.left&&r.left.identifier&&\"function\"===r.left.value||state.isStrict()||\"global\"!==state.option.strict||warning(\"E007\"),t.block||(state.option.expr||r&&r.exps?state.option.nonew&&r&&r.left&&\"(\"===r.id&&\"new\"===r.left.id&&warning(\"W031\",t):warning(\"W030\",state.tokens.curr),parseFinalSemicolon()),indent=i,hasOwnScope&&state.funct[\"(scope)\"].unstack(),r}function statements(){for(var p,a=[];!state.tokens.next.reach&&\"(end)\"!==state.tokens.next.id;)\";\"===state.tokens.next.id?(p=peek(),(!p||\"(\"!==p.id&&\"[\"!==p.id)&&warning(\"W032\"),advance(\";\")):a.push(statement());return a}function directives(){for(var i,p,pn;\"(string)\"===state.tokens.next.id;){if(p=peek(0),\"(endline)\"===p.id){i=1;do pn=peek(i++);while(\"(endline)\"===pn.id);if(\";\"===pn.id)p=pn;else{if(\"[\"===pn.value||\".\"===pn.value)break;state.option.asi&&\"(\"!==pn.value||warning(\"W033\",state.tokens.next)}}else{if(\".\"===p.id||\"[\"===p.id)break;\";\"!==p.id&&warning(\"W033\",p)}advance();var directive=state.tokens.curr.value;(state.directive[directive]||\"use strict\"===directive&&\"implied\"===state.option.strict)&&warning(\"W034\",state.tokens.curr,directive),state.directive[directive]=!0,\";\"===p.id&&advance(\";\")}state.isStrict()&&(state.option[\"(explicitNewcap)\"]||(state.option.newcap=!0),state.option.undef=!0)}function block(ordinary,stmt,isfunc,isfatarrow,iscase){var a,m,t,line,d,b=inblock,old_indent=indent;inblock=ordinary,t=state.tokens.next;var metrics=state.funct[\"(metrics)\"];if(metrics.nestedBlockDepth+=1,metrics.verifyMaxNestedBlockDepthPerFunction(),\"{\"===state.tokens.next.id){if(advance(\"{\"),state.funct[\"(scope)\"].stack(),line=state.tokens.curr.line,\"}\"!==state.tokens.next.id){for(indent+=state.option.indent;!ordinary&&state.tokens.next.from>indent;)indent+=state.option.indent;if(isfunc){m={};for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);directives(),state.option.strict&&state.funct[\"(context)\"][\"(global)\"]&&(m[\"use strict\"]||state.isStrict()||warning(\"E007\"))}a=statements(),metrics.statementCount+=a.length,indent-=state.option.indent}advance(\"}\",t),isfunc&&(state.funct[\"(scope)\"].validateParams(),m&&(state.directive=m)),state.funct[\"(scope)\"].unstack(),indent=old_indent}else if(ordinary)state.funct[\"(noblockscopedvar)\"]=\"for\"!==state.tokens.next.id,state.funct[\"(scope)\"].stack(),(!stmt||state.option.curly)&&warning(\"W116\",state.tokens.next,\"{\",state.tokens.next.value),state.tokens.next.inBracelessBlock=!0,indent+=state.option.indent,a=[statement()],indent-=state.option.indent,state.funct[\"(scope)\"].unstack(),delete state.funct[\"(noblockscopedvar)\"];else if(isfunc){if(state.funct[\"(scope)\"].stack(),m={},!stmt||isfatarrow||state.inMoz()||error(\"W118\",state.tokens.curr,\"function closure expressions\"),!stmt)for(d in state.directive)_.has(state.directive,d)&&(m[d]=state.directive[d]);expression(10),state.option.strict&&state.funct[\"(context)\"][\"(global)\"]&&(m[\"use strict\"]||state.isStrict()||warning(\"E007\")),state.funct[\"(scope)\"].unstack()}else error(\"E021\",state.tokens.next,\"{\",state.tokens.next.value);switch(state.funct[\"(verb)\"]){case\"break\":case\"continue\":case\"return\":case\"throw\":if(iscase)break;default:state.funct[\"(verb)\"]=null}return inblock=b,!ordinary||!state.option.noempty||a&&0!==a.length||warning(\"W035\",state.tokens.prev),metrics.nestedBlockDepth-=1,a}function countMember(m){membersOnly&&\"boolean\"!=typeof membersOnly[m]&&warning(\"W036\",state.tokens.curr,m),\"number\"==typeof member[m]?member[m]+=1:member[m]=1}function comprehensiveArrayExpression(){var res={};res.exps=!0,state.funct[\"(comparray)\"].stack();var reversed=!1;return\"for\"!==state.tokens.next.value&&(reversed=!0,state.inMoz()||warning(\"W116\",state.tokens.next,\"for\",state.tokens.next.value),state.funct[\"(comparray)\"].setState(\"use\"),res.right=expression(10)),advance(\"for\"),\"each\"===state.tokens.next.value&&(advance(\"each\"),state.inMoz()||warning(\"W118\",state.tokens.curr,\"for each\")),advance(\"(\"),state.funct[\"(comparray)\"].setState(\"define\"),res.left=expression(130),_.contains([\"in\",\"of\"],state.tokens.next.value)?advance():error(\"E045\",state.tokens.curr),state.funct[\"(comparray)\"].setState(\"generate\"),expression(10),advance(\")\"),\"if\"===state.tokens.next.value&&(advance(\"if\"),advance(\"(\"),state.funct[\"(comparray)\"].setState(\"filter\"),res.filter=expression(10),advance(\")\")),reversed||(state.funct[\"(comparray)\"].setState(\"use\"),res.right=expression(10)),advance(\"]\"),state.funct[\"(comparray)\"].unstack(),res}function isMethod(){return state.funct[\"(statement)\"]&&\"class\"===state.funct[\"(statement)\"].type||state.funct[\"(context)\"]&&\"class\"===state.funct[\"(context)\"][\"(verb)\"]}function isPropertyName(token){return token.identifier||\"(string)\"===token.id||\"(number)\"===token.id}function propertyName(preserveOrToken){var id,preserve=!0;return\"object\"==typeof preserveOrToken?id=preserveOrToken:(preserve=preserveOrToken,id=optionalidentifier(!1,!0,preserve)),id?\"object\"==typeof id&&(\"(string)\"===id.id||\"(identifier)\"===id.id?id=id.value:\"(number)\"===id.id&&(id=\"\"+id.value)):\"(string)\"===state.tokens.next.id?(id=state.tokens.next.value,preserve||advance()):\"(number)\"===state.tokens.next.id&&(id=\"\"+state.tokens.next.value,preserve||advance()),\"hasOwnProperty\"===id&&warning(\"W001\"),id}function functionparams(options){function addParam(addParamArgs){state.funct[\"(scope)\"].addParam.apply(state.funct[\"(scope)\"],addParamArgs)}var next,ident,t,paramsIds=[],tokens=[],pastDefault=!1,pastRest=!1,arity=0,loneArg=options&&options.loneArg;if(loneArg&&loneArg.identifier===!0)return state.funct[\"(scope)\"].addParam(loneArg.value,loneArg),{arity:1,params:[loneArg.value]};if(next=state.tokens.next,options&&options.parsedOpening||advance(\"(\"),\")\"===state.tokens.next.id)return advance(\")\"),void 0;for(;;){arity++;var currentParams=[];if(_.contains([\"{\",\"[\"],state.tokens.next.id)){tokens=destructuringPattern();for(t in tokens)t=tokens[t],t.id&&(paramsIds.push(t.id),currentParams.push([t.id,t.token]))}else if(checkPunctuator(state.tokens.next,\"...\")&&(pastRest=!0),ident=identifier(!0))paramsIds.push(ident),currentParams.push([ident,state.tokens.curr]);else for(;!checkPunctuators(state.tokens.next,[\",\",\")\"]);)advance();if(pastDefault&&\"=\"!==state.tokens.next.id&&error(\"W138\",state.tokens.current),\"=\"===state.tokens.next.id&&(state.inES6()||warning(\"W119\",state.tokens.next,\"default parameters\",\"6\"),advance(\"=\"),pastDefault=!0,expression(10)),currentParams.forEach(addParam),\",\"!==state.tokens.next.id)return advance(\")\",next),{arity:arity,params:paramsIds};pastRest&&warning(\"W131\",state.tokens.next),comma()}}function functor(name,token,overwrites){var funct={\"(name)\":name,\"(breakage)\":0,\"(loopage)\":0,\"(tokens)\":{},\"(properties)\":{},\"(catch)\":!1,\"(global)\":!1,\"(line)\":null,\"(character)\":null,\"(metrics)\":null,\"(statement)\":null,\"(context)\":null,\"(scope)\":null,\"(comparray)\":null,\"(generator)\":null,\"(arrow)\":null,\"(params)\":null};return token&&_.extend(funct,{\"(line)\":token.line,\"(character)\":token.character,\"(metrics)\":createMetrics(token)}),_.extend(funct,overwrites),funct[\"(context)\"]&&(funct[\"(scope)\"]=funct[\"(context)\"][\"(scope)\"],funct[\"(comparray)\"]=funct[\"(context)\"][\"(comparray)\"]),funct}function isFunctor(token){return\"(scope)\"in token}function hasParsedCode(funct){return funct[\"(global)\"]&&!funct[\"(verb)\"]}function doTemplateLiteral(left){function end(){if(state.tokens.curr.template&&state.tokens.curr.tail&&state.tokens.curr.context===ctx)return!0;var complete=state.tokens.next.template&&state.tokens.next.tail&&state.tokens.next.context===ctx;return complete&&advance(),complete||state.tokens.next.isUnclosed}var ctx=this.context,noSubst=this.noSubst,depth=this.depth;if(!noSubst)for(;!end();)!state.tokens.next.template||state.tokens.next.depth>depth?expression(0):advance();return{id:\"(template)\",type:\"(template)\",tag:left}}function doFunction(options){var f,token,name,statement,classExprBinding,isGenerator,isArrow,ignoreLoopFunc,oldOption=state.option,oldIgnored=state.ignored;options&&(name=options.name,statement=options.statement,classExprBinding=options.classExprBinding,isGenerator=\"generator\"===options.type,isArrow=\"arrow\"===options.type,ignoreLoopFunc=options.ignoreLoopFunc),state.option=Object.create(state.option),state.ignored=Object.create(state.ignored),state.funct=functor(name||state.nameStack.infer(),state.tokens.next,{\"(statement)\":statement,\"(context)\":state.funct,\"(arrow)\":isArrow,\"(generator)\":isGenerator}),f=state.funct,token=state.tokens.curr,token.funct=state.funct,functions.push(state.funct),state.funct[\"(scope)\"].stack(\"functionouter\");var internallyAccessibleName=name||classExprBinding;internallyAccessibleName&&state.funct[\"(scope)\"].block.add(internallyAccessibleName,classExprBinding?\"class\":\"function\",state.tokens.curr,!1),state.funct[\"(scope)\"].stack(\"functionparams\");var paramsInfo=functionparams(options);return paramsInfo?(state.funct[\"(params)\"]=paramsInfo.params,state.funct[\"(metrics)\"].arity=paramsInfo.arity,state.funct[\"(metrics)\"].verifyMaxParametersPerFunction()):state.funct[\"(metrics)\"].arity=0,isArrow&&(state.inES6(!0)||warning(\"W119\",state.tokens.curr,\"arrow function syntax (=>)\",\"6\"),options.loneArg||advance(\"=>\")),block(!1,!0,!0,isArrow),!state.option.noyield&&isGenerator&&\"yielded\"!==state.funct[\"(generator)\"]&&warning(\"W124\",state.tokens.curr),state.funct[\"(metrics)\"].verifyMaxStatementsPerFunction(),state.funct[\"(metrics)\"].verifyMaxComplexityPerFunction(),state.funct[\"(unusedOption)\"]=state.option.unused,state.option=oldOption,state.ignored=oldIgnored,state.funct[\"(last)\"]=state.tokens.curr.line,state.funct[\"(lastcharacter)\"]=state.tokens.curr.character,state.funct[\"(scope)\"].unstack(),state.funct[\"(scope)\"].unstack(),state.funct=state.funct[\"(context)\"],ignoreLoopFunc||state.option.loopfunc||!state.funct[\"(loopage)\"]||f[\"(isCapturing)\"]&&warning(\"W083\",token),f}function createMetrics(functionStartToken){return{statementCount:0,nestedBlockDepth:-1,ComplexityCount:1,arity:0,verifyMaxStatementsPerFunction:function(){state.option.maxstatements&&this.statementCount>state.option.maxstatements&&warning(\"W071\",functionStartToken,this.statementCount)\n},verifyMaxParametersPerFunction:function(){_.isNumber(state.option.maxparams)&&this.arity>state.option.maxparams&&warning(\"W072\",functionStartToken,this.arity)},verifyMaxNestedBlockDepthPerFunction:function(){state.option.maxdepth&&this.nestedBlockDepth>0&&this.nestedBlockDepth===state.option.maxdepth+1&&warning(\"W073\",null,this.nestedBlockDepth)},verifyMaxComplexityPerFunction:function(){var max=state.option.maxcomplexity,cc=this.ComplexityCount;max&&cc>max&&warning(\"W074\",functionStartToken,cc)}}}function increaseComplexityCount(){state.funct[\"(metrics)\"].ComplexityCount+=1}function checkCondAssignment(expr){var id,paren;switch(expr&&(id=expr.id,paren=expr.paren,\",\"===id&&(expr=expr.exprs[expr.exprs.length-1])&&(id=expr.id,paren=paren||expr.paren)),id){case\"=\":case\"+=\":case\"-=\":case\"*=\":case\"%=\":case\"&=\":case\"|=\":case\"^=\":case\"/=\":paren||state.option.boss||warning(\"W084\")}}function checkProperties(props){if(state.inES5())for(var name in props)props[name]&&props[name].setterToken&&!props[name].getterToken&&warning(\"W078\",props[name].setterToken)}function metaProperty(name,c){if(checkPunctuator(state.tokens.next,\".\")){var left=state.tokens.curr.id;advance(\".\");var id=identifier();return state.tokens.curr.isMetaProperty=!0,name!==id?error(\"E057\",state.tokens.prev,left,id):c(),state.tokens.curr}}function destructuringPattern(options){var isAssignment=options&&options.assignment;return state.inES6()||warning(\"W104\",state.tokens.curr,isAssignment?\"destructuring assignment\":\"destructuring binding\",\"6\"),destructuringPatternRecursive(options)}function destructuringPatternRecursive(options){var ids,identifiers=[],openingParsed=options&&options.openingParsed,isAssignment=options&&options.assignment,recursiveOptions=isAssignment?{assignment:isAssignment}:null,firstToken=openingParsed?state.tokens.curr:state.tokens.next,nextInnerDE=function(){var ident;if(checkPunctuators(state.tokens.next,[\"[\",\"{\"])){ids=destructuringPatternRecursive(recursiveOptions);for(var id in ids)id=ids[id],identifiers.push({id:id.id,token:id.token})}else if(checkPunctuator(state.tokens.next,\",\"))identifiers.push({id:null,token:state.tokens.curr});else{if(!checkPunctuator(state.tokens.next,\"(\")){var is_rest=checkPunctuator(state.tokens.next,\"...\");if(isAssignment){var identifierToken=is_rest?peek(0):state.tokens.next;identifierToken.identifier||warning(\"E030\",identifierToken,identifierToken.value);var assignTarget=expression(155);assignTarget&&(checkLeftSideAssign(assignTarget),assignTarget.identifier&&(ident=assignTarget.value))}else ident=identifier();return ident&&identifiers.push({id:ident,token:state.tokens.curr}),is_rest}advance(\"(\"),nextInnerDE(),advance(\")\")}return!1},assignmentProperty=function(){var id;checkPunctuator(state.tokens.next,\"[\")?(advance(\"[\"),expression(10),advance(\"]\"),advance(\":\"),nextInnerDE()):\"(string)\"===state.tokens.next.id||\"(number)\"===state.tokens.next.id?(advance(),advance(\":\"),nextInnerDE()):(id=identifier(),checkPunctuator(state.tokens.next,\":\")?(advance(\":\"),nextInnerDE()):id&&(isAssignment&&checkLeftSideAssign(state.tokens.curr),identifiers.push({id:id,token:state.tokens.curr})))};if(checkPunctuator(firstToken,\"[\")){openingParsed||advance(\"[\"),checkPunctuator(state.tokens.next,\"]\")&&warning(\"W137\",state.tokens.curr);for(var element_after_rest=!1;!checkPunctuator(state.tokens.next,\"]\");)nextInnerDE()&&!element_after_rest&&checkPunctuator(state.tokens.next,\",\")&&(warning(\"W130\",state.tokens.next),element_after_rest=!0),checkPunctuator(state.tokens.next,\"=\")&&(checkPunctuator(state.tokens.prev,\"...\")?advance(\"]\"):advance(\"=\"),\"undefined\"===state.tokens.next.id&&warning(\"W080\",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,\"]\")||advance(\",\");advance(\"]\")}else if(checkPunctuator(firstToken,\"{\")){for(openingParsed||advance(\"{\"),checkPunctuator(state.tokens.next,\"}\")&&warning(\"W137\",state.tokens.curr);!checkPunctuator(state.tokens.next,\"}\")&&(assignmentProperty(),checkPunctuator(state.tokens.next,\"=\")&&(advance(\"=\"),\"undefined\"===state.tokens.next.id&&warning(\"W080\",state.tokens.prev,state.tokens.prev.value),expression(10)),checkPunctuator(state.tokens.next,\"}\")||(advance(\",\"),!checkPunctuator(state.tokens.next,\"}\"))););advance(\"}\")}return identifiers}function destructuringPatternMatch(tokens,value){var first=value.first;first&&_.zip(tokens,Array.isArray(first)?first:[first]).forEach(function(val){var token=val[0],value=val[1];token&&value?token.first=value:token&&token.first&&!value&&warning(\"W080\",token.first,token.first.value)})}function blockVariableStatement(type,statement,context){var tokens,lone,value,letblock,prefix=context&&context.prefix,inexport=context&&context.inexport,isLet=\"let\"===type,isConst=\"const\"===type;for(state.inES6()||warning(\"W104\",state.tokens.curr,type,\"6\"),isLet&&\"(\"===state.tokens.next.value?(state.inMoz()||warning(\"W118\",state.tokens.next,\"let block\"),advance(\"(\"),state.funct[\"(scope)\"].stack(),letblock=!0):state.funct[\"(noblockscopedvar)\"]&&error(\"E048\",state.tokens.curr,isConst?\"Const\":\"Let\"),statement.first=[];;){var names=[];_.contains([\"{\",\"[\"],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),!prefix&&isConst&&\"=\"!==state.tokens.next.id&&warning(\"E012\",state.tokens.curr,state.tokens.curr.value);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],state.funct[\"(scope)\"].block.isGlobal()&&predefined[t.id]===!1&&warning(\"W079\",t.token,t.id),t.id&&!state.funct[\"(noblockscopedvar)\"]&&(state.funct[\"(scope)\"].addlabel(t.id,{type:type,token:t.token}),names.push(t.token),lone&&inexport&&state.funct[\"(scope)\"].setExported(t.token.value,t.token)));if(\"=\"===state.tokens.next.id&&(advance(\"=\"),prefix||\"undefined\"!==state.tokens.next.id||warning(\"W080\",state.tokens.prev,state.tokens.prev.value),!prefix&&\"=\"===peek(0).id&&state.tokens.next.identifier&&warning(\"W120\",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),statement.first=statement.first.concat(names),\",\"!==state.tokens.next.id)break;comma()}return letblock&&(advance(\")\"),block(!0,!0),statement.block=!0,state.funct[\"(scope)\"].unstack()),statement}function classdef(isStatement){return state.inES6()||warning(\"W104\",state.tokens.curr,\"class\",\"6\"),isStatement?(this.name=identifier(),state.funct[\"(scope)\"].addlabel(this.name,{type:\"class\",token:state.tokens.curr})):state.tokens.next.identifier&&\"extends\"!==state.tokens.next.value?(this.name=identifier(),this.namedExpr=!0):this.name=state.nameStack.infer(),classtail(this),this}function classtail(c){var wasInClassBody=state.inClassBody;\"extends\"===state.tokens.next.value&&(advance(\"extends\"),c.heritage=expression(10)),state.inClassBody=!0,advance(\"{\"),c.body=classbody(c),advance(\"}\"),state.inClassBody=wasInClassBody}function classbody(c){for(var name,isStatic,isGenerator,getset,computed,props=Object.create(null),staticProps=Object.create(null),i=0;\"}\"!==state.tokens.next.id;++i)if(name=state.tokens.next,isStatic=!1,isGenerator=!1,getset=null,\";\"!==name.id){if(\"*\"===name.id&&(isGenerator=!0,advance(\"*\"),name=state.tokens.next),\"[\"===name.id)name=computedPropertyName(),computed=!0;else{if(!isPropertyName(name)){warning(\"W052\",state.tokens.next,state.tokens.next.value||state.tokens.next.type),advance();continue}advance(),computed=!1,name.identifier&&\"static\"===name.value&&(checkPunctuator(state.tokens.next,\"*\")&&(isGenerator=!0,advance(\"*\")),(isPropertyName(state.tokens.next)||\"[\"===state.tokens.next.id)&&(computed=\"[\"===state.tokens.next.id,isStatic=!0,name=state.tokens.next,\"[\"===state.tokens.next.id?name=computedPropertyName():advance())),!name.identifier||\"get\"!==name.value&&\"set\"!==name.value||(isPropertyName(state.tokens.next)||\"[\"===state.tokens.next.id)&&(computed=\"[\"===state.tokens.next.id,getset=name,name=state.tokens.next,\"[\"===state.tokens.next.id?name=computedPropertyName():advance())}if(!checkPunctuator(state.tokens.next,\"(\")){for(error(\"E054\",state.tokens.next,state.tokens.next.value);\"}\"!==state.tokens.next.id&&!checkPunctuator(state.tokens.next,\"(\");)advance();\"(\"!==state.tokens.next.value&&doFunction({statement:c})}if(computed||(getset?saveAccessor(getset.value,isStatic?staticProps:props,name.value,name,!0,isStatic):(\"constructor\"===name.value?state.nameStack.set(c):state.nameStack.set(name),saveProperty(isStatic?staticProps:props,name.value,name,!0,isStatic))),getset&&\"constructor\"===name.value){var propDesc=\"get\"===getset.value?\"class getter method\":\"class setter method\";error(\"E049\",name,propDesc,\"constructor\")}else\"prototype\"===name.value&&error(\"E049\",name,\"class method\",\"prototype\");propertyName(name),doFunction({statement:c,type:isGenerator?\"generator\":null,classExprBinding:c.namedExpr?c.name:null})}else warning(\"W032\"),advance(\";\");checkProperties(props)}function saveProperty(props,name,tkn,isClass,isStatic){var msg=[\"key\",\"class method\",\"static class method\"];msg=msg[(isClass||!1)+(isStatic||!1)],tkn.identifier&&(name=tkn.value),props[name]&&\"__proto__\"!==name?warning(\"W075\",state.tokens.next,msg,name):props[name]=Object.create(null),props[name].basic=!0,props[name].basictkn=tkn}function saveAccessor(accessorType,props,name,tkn,isClass,isStatic){var flagName=\"get\"===accessorType?\"getterToken\":\"setterToken\",msg=\"\";isClass?(isStatic&&(msg+=\"static \"),msg+=accessorType+\"ter method\"):msg=\"key\",state.tokens.curr.accessorType=accessorType,state.nameStack.set(tkn),props[name]?(props[name].basic||props[name][flagName])&&\"__proto__\"!==name&&warning(\"W075\",state.tokens.next,msg,name):props[name]=Object.create(null),props[name][flagName]=tkn}function computedPropertyName(){advance(\"[\"),state.inES6()||warning(\"W119\",state.tokens.curr,\"computed property names\",\"6\");var value=expression(10);return advance(\"]\"),value}function checkPunctuators(token,values){return\"(punctuator)\"===token.type?_.contains(values,token.value):!1}function checkPunctuator(token,value){return\"(punctuator)\"===token.type&&token.value===value}function destructuringAssignOrJsonValue(){var block=lookupBlockType();block.notJson?(!state.inES6()&&block.isDestAssign&&warning(\"W104\",state.tokens.curr,\"destructuring assignment\",\"6\"),statements()):(state.option.laxbreak=!0,state.jsonMode=!0,jsonValue())}function jsonValue(){function jsonObject(){var o={},t=state.tokens.next;if(advance(\"{\"),\"}\"!==state.tokens.next.id)for(;;){if(\"(end)\"===state.tokens.next.id)error(\"E026\",state.tokens.next,t.line);else{if(\"}\"===state.tokens.next.id){warning(\"W094\",state.tokens.curr);break}\",\"===state.tokens.next.id?error(\"E028\",state.tokens.next):\"(string)\"!==state.tokens.next.id&&warning(\"W095\",state.tokens.next,state.tokens.next.value)}if(o[state.tokens.next.value]===!0?warning(\"W075\",state.tokens.next,\"key\",state.tokens.next.value):\"__proto__\"===state.tokens.next.value&&!state.option.proto||\"__iterator__\"===state.tokens.next.value&&!state.option.iterator?warning(\"W096\",state.tokens.next,state.tokens.next.value):o[state.tokens.next.value]=!0,advance(),advance(\":\"),jsonValue(),\",\"!==state.tokens.next.id)break;advance(\",\")}advance(\"}\")}function jsonArray(){var t=state.tokens.next;if(advance(\"[\"),\"]\"!==state.tokens.next.id)for(;;){if(\"(end)\"===state.tokens.next.id)error(\"E027\",state.tokens.next,t.line);else{if(\"]\"===state.tokens.next.id){warning(\"W094\",state.tokens.curr);break}\",\"===state.tokens.next.id&&error(\"E028\",state.tokens.next)}if(jsonValue(),\",\"!==state.tokens.next.id)break;advance(\",\")}advance(\"]\")}switch(state.tokens.next.id){case\"{\":jsonObject();break;case\"[\":jsonArray();break;case\"true\":case\"false\":case\"null\":case\"(number)\":case\"(string)\":advance();break;case\"-\":advance(\"-\"),advance(\"(number)\");break;default:error(\"E003\",state.tokens.next)}}var api,declared,functions,inblock,indent,lookahead,lex,member,membersOnly,predefined,stack,urls,bang={\"<\":!0,\"<=\":!0,\"==\":!0,\"===\":!0,\"!==\":!0,\"!=\":!0,\">\":!0,\">=\":!0,\"+\":!0,\"-\":!0,\"*\":!0,\"/\":!0,\"%\":!0},functionicity=[\"closure\",\"exception\",\"global\",\"label\",\"outer\",\"unused\",\"var\"],extraModules=[],emitter=new events.EventEmitter,typeofValues={};typeofValues.legacy=[\"xml\",\"unknown\"],typeofValues.es3=[\"undefined\",\"boolean\",\"number\",\"string\",\"function\",\"object\"],typeofValues.es3=typeofValues.es3.concat(typeofValues.legacy),typeofValues.es6=typeofValues.es3.concat(\"symbol\"),type(\"(number)\",function(){return this}),type(\"(string)\",function(){return this}),state.syntax[\"(identifier)\"]={type:\"(identifier)\",lbp:0,identifier:!0,nud:function(){var v=this.value;return\"=>\"===state.tokens.next.id?this:(state.funct[\"(comparray)\"].check(v)||state.funct[\"(scope)\"].block.use(v,state.tokens.curr),this)},led:function(){error(\"E033\",state.tokens.next,state.tokens.next.value)}};var baseTemplateSyntax={lbp:0,identifier:!1,template:!0};state.syntax[\"(template)\"]=_.extend({type:\"(template)\",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!1},baseTemplateSyntax),state.syntax[\"(template middle)\"]=_.extend({type:\"(template middle)\",middle:!0,noSubst:!1},baseTemplateSyntax),state.syntax[\"(template tail)\"]=_.extend({type:\"(template tail)\",tail:!0,noSubst:!1},baseTemplateSyntax),state.syntax[\"(no subst template)\"]=_.extend({type:\"(template)\",nud:doTemplateLiteral,led:doTemplateLiteral,noSubst:!0,tail:!0},baseTemplateSyntax),type(\"(regexp)\",function(){return this}),delim(\"(endline)\"),delim(\"(begin)\"),delim(\"(end)\").reach=!0,delim(\"(error)\").reach=!0,delim(\"}\").reach=!0,delim(\")\"),delim(\"]\"),delim('\"').reach=!0,delim(\"'\").reach=!0,delim(\";\"),delim(\":\").reach=!0,delim(\"#\"),reserve(\"else\"),reserve(\"case\").reach=!0,reserve(\"catch\"),reserve(\"default\").reach=!0,reserve(\"finally\"),reservevar(\"arguments\",function(x){state.isStrict()&&state.funct[\"(global)\"]&&warning(\"E008\",x)}),reservevar(\"eval\"),reservevar(\"false\"),reservevar(\"Infinity\"),reservevar(\"null\"),reservevar(\"this\",function(x){state.isStrict()&&!isMethod()&&!state.option.validthis&&(state.funct[\"(statement)\"]&&state.funct[\"(name)\"].charAt(0)>\"Z\"||state.funct[\"(global)\"])&&warning(\"W040\",x)}),reservevar(\"true\"),reservevar(\"undefined\"),assignop(\"=\",\"assign\",20),assignop(\"+=\",\"assignadd\",20),assignop(\"-=\",\"assignsub\",20),assignop(\"*=\",\"assignmult\",20),assignop(\"/=\",\"assigndiv\",20).nud=function(){error(\"E014\")},assignop(\"%=\",\"assignmod\",20),bitwiseassignop(\"&=\"),bitwiseassignop(\"|=\"),bitwiseassignop(\"^=\"),bitwiseassignop(\"<<=\"),bitwiseassignop(\">>=\"),bitwiseassignop(\">>>=\"),infix(\",\",function(left,that){var expr;if(that.exprs=[left],state.option.nocomma&&warning(\"W127\"),!comma({peek:!0}))return that;for(;;){if(!(expr=expression(10)))break;if(that.exprs.push(expr),\",\"!==state.tokens.next.value||!comma())break}return that},10,!0),infix(\"?\",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(10),advance(\":\"),that[\"else\"]=expression(10),that},30);var orPrecendence=40;infix(\"||\",function(left,that){return increaseComplexityCount(),that.left=left,that.right=expression(orPrecendence),that},orPrecendence),infix(\"&&\",\"and\",50),bitwise(\"|\",\"bitor\",70),bitwise(\"^\",\"bitxor\",80),bitwise(\"&\",\"bitand\",90),relation(\"==\",function(left,right){var eqnull=state.option.eqnull&&(\"null\"===(left&&left.value)||\"null\"===(right&&right.value));switch(!0){case!eqnull&&state.option.eqeqeq:this.from=this.character,warning(\"W116\",this,\"===\",\"==\");break;case isPoorRelation(left):warning(\"W041\",this,\"===\",left.value);break;case isPoorRelation(right):warning(\"W041\",this,\"===\",right.value);break;case isTypoTypeof(right,left,state):warning(\"W122\",this,right.value);break;case isTypoTypeof(left,right,state):warning(\"W122\",this,left.value)}return this}),relation(\"===\",function(left,right){return isTypoTypeof(right,left,state)?warning(\"W122\",this,right.value):isTypoTypeof(left,right,state)&&warning(\"W122\",this,left.value),this}),relation(\"!=\",function(left,right){var eqnull=state.option.eqnull&&(\"null\"===(left&&left.value)||\"null\"===(right&&right.value));return!eqnull&&state.option.eqeqeq?(this.from=this.character,warning(\"W116\",this,\"!==\",\"!=\")):isPoorRelation(left)?warning(\"W041\",this,\"!==\",left.value):isPoorRelation(right)?warning(\"W041\",this,\"!==\",right.value):isTypoTypeof(right,left,state)?warning(\"W122\",this,right.value):isTypoTypeof(left,right,state)&&warning(\"W122\",this,left.value),this}),relation(\"!==\",function(left,right){return isTypoTypeof(right,left,state)?warning(\"W122\",this,right.value):isTypoTypeof(left,right,state)&&warning(\"W122\",this,left.value),this}),relation(\"<\"),relation(\">\"),relation(\"<=\"),relation(\">=\"),bitwise(\"<<\",\"shiftleft\",120),bitwise(\">>\",\"shiftright\",120),bitwise(\">>>\",\"shiftrightunsigned\",120),infix(\"in\",\"in\",120),infix(\"instanceof\",\"instanceof\",120),infix(\"+\",function(left,that){var right;return that.left=left,that.right=right=expression(130),left&&right&&\"(string)\"===left.id&&\"(string)\"===right.id?(left.value+=right.value,left.character=right.character,!state.option.scripturl&®.javascriptURL.test(left.value)&&warning(\"W050\",left),left):that},130),prefix(\"+\",\"num\"),prefix(\"+++\",function(){return warning(\"W007\"),this.arity=\"unary\",this.right=expression(150),this}),infix(\"+++\",function(left){return warning(\"W007\"),this.left=left,this.right=expression(130),this},130),infix(\"-\",\"sub\",130),prefix(\"-\",\"neg\"),prefix(\"---\",function(){return warning(\"W006\"),this.arity=\"unary\",this.right=expression(150),this}),infix(\"---\",function(left){return warning(\"W006\"),this.left=left,this.right=expression(130),this},130),infix(\"*\",\"mult\",140),infix(\"/\",\"div\",140),infix(\"%\",\"mod\",140),suffix(\"++\"),prefix(\"++\",\"preinc\"),state.syntax[\"++\"].exps=!0,suffix(\"--\"),prefix(\"--\",\"predec\"),state.syntax[\"--\"].exps=!0,prefix(\"delete\",function(){var p=expression(10);return p?(\".\"!==p.id&&\"[\"!==p.id&&warning(\"W051\"),this.first=p,p.identifier&&!state.isStrict()&&(p.forgiveUndef=!0),this):this}).exps=!0,prefix(\"~\",function(){return state.option.bitwise&&warning(\"W016\",this,\"~\"),this.arity=\"unary\",this.right=expression(150),this}),prefix(\"...\",function(){return state.inES6(!0)||warning(\"W119\",this,\"spread/rest operator\",\"6\"),state.tokens.next.identifier||\"(string)\"===state.tokens.next.type||checkPunctuators(state.tokens.next,[\"[\",\"(\"])||error(\"E030\",state.tokens.next,state.tokens.next.value),expression(150),this}),prefix(\"!\",function(){return this.arity=\"unary\",this.right=expression(150),this.right||quit(\"E041\",this.line||0),bang[this.right.id]===!0&&warning(\"W018\",this,\"!\"),this}),prefix(\"typeof\",function(){var p=expression(150);return this.first=this.right=p,p||quit(\"E041\",this.line||0,this.character||0),p.identifier&&(p.forgiveUndef=!0),this}),prefix(\"new\",function(){var mp=metaProperty(\"target\",function(){state.inES6(!0)||warning(\"W119\",state.tokens.prev,\"new.target\",\"6\");for(var inFunction,c=state.funct;c&&(inFunction=!c[\"(global)\"],c[\"(arrow)\"]);)c=c[\"(context)\"];inFunction||warning(\"W136\",state.tokens.prev,\"new.target\")});if(mp)return mp;var i,c=expression(155);if(c&&\"function\"!==c.id)if(c.identifier)switch(c[\"new\"]=!0,c.value){case\"Number\":case\"String\":case\"Boolean\":case\"Math\":case\"JSON\":warning(\"W053\",state.tokens.prev,c.value);break;case\"Symbol\":state.inES6()&&warning(\"W053\",state.tokens.prev,c.value);break;case\"Function\":state.option.evil||warning(\"W054\");break;case\"Date\":case\"RegExp\":case\"this\":break;default:\"function\"!==c.id&&(i=c.value.substr(0,1),state.option.newcap&&(\"A\">i||i>\"Z\")&&!state.funct[\"(scope)\"].isPredefined(c.value)&&warning(\"W055\",state.tokens.curr))}else\".\"!==c.id&&\"[\"!==c.id&&\"(\"!==c.id&&warning(\"W056\",state.tokens.curr);else state.option.supernew||warning(\"W057\",this);return\"(\"===state.tokens.next.id||state.option.supernew||warning(\"W058\",state.tokens.curr,state.tokens.curr.value),this.first=this.right=c,this}),state.syntax[\"new\"].exps=!0,prefix(\"void\").exps=!0,infix(\".\",function(left,that){var m=identifier(!1,!0);return\"string\"==typeof m&&countMember(m),that.left=left,that.right=m,m&&\"hasOwnProperty\"===m&&\"=\"===state.tokens.next.value&&warning(\"W001\"),!left||\"arguments\"!==left.value||\"callee\"!==m&&\"caller\"!==m?state.option.evil||!left||\"document\"!==left.value||\"write\"!==m&&\"writeln\"!==m||warning(\"W060\",left):state.option.noarg?warning(\"W059\",left,m):state.isStrict()&&error(\"E008\"),state.option.evil||\"eval\"!==m&&\"execScript\"!==m||isGlobalEval(left,state)&&warning(\"W061\"),that},160,!0),infix(\"(\",function(left,that){state.option.immed&&left&&!left.immed&&\"function\"===left.id&&warning(\"W062\");var n=0,p=[];if(left&&\"(identifier)\"===left.type&&left.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&-1===\"Array Number String Boolean Date Object Error Symbol\".indexOf(left.value)&&(\"Math\"===left.value?warning(\"W063\",left):state.option.newcap&&warning(\"W064\",left)),\")\"!==state.tokens.next.id)for(;p[p.length]=expression(10),n+=1,\",\"===state.tokens.next.id;)comma();return advance(\")\"),\"object\"==typeof left&&(state.inES5()||\"parseInt\"!==left.value||1!==n||warning(\"W065\",state.tokens.curr),state.option.evil||(\"eval\"===left.value||\"Function\"===left.value||\"execScript\"===left.value?(warning(\"W061\",left),p[0]&&\"(string)\"===[0].id&&addInternalSrc(left,p[0].value)):!p[0]||\"(string)\"!==p[0].id||\"setTimeout\"!==left.value&&\"setInterval\"!==left.value?!p[0]||\"(string)\"!==p[0].id||\".\"!==left.value||\"window\"!==left.left.value||\"setTimeout\"!==left.right&&\"setInterval\"!==left.right||(warning(\"W066\",left),addInternalSrc(left,p[0].value)):(warning(\"W066\",left),addInternalSrc(left,p[0].value))),left.identifier||\".\"===left.id||\"[\"===left.id||\"=>\"===left.id||\"(\"===left.id||\"&&\"===left.id||\"||\"===left.id||\"?\"===left.id||state.inES6()&&left[\"(name)\"]||warning(\"W067\",that)),that.left=left,that},155,!0).exps=!0,prefix(\"(\",function(){var pn1,ret,triggerFnExpr,first,last,pn=state.tokens.next,i=-1,parens=1,opening=state.tokens.curr,preceeding=state.tokens.prev,isNecessary=!state.option.singleGroups;do\"(\"===pn.value?parens+=1:\")\"===pn.value&&(parens-=1),i+=1,pn1=pn,pn=peek(i);while((0!==parens||\")\"!==pn1.value)&&\";\"!==pn.value&&\"(end)\"!==pn.type);if(\"function\"===state.tokens.next.id&&(triggerFnExpr=state.tokens.next.immed=!0),\"=>\"===pn.value)return doFunction({type:\"arrow\",parsedOpening:!0});var exprs=[];if(\")\"!==state.tokens.next.id)for(;exprs.push(expression(10)),\",\"===state.tokens.next.id;)state.option.nocomma&&warning(\"W127\"),comma();return advance(\")\",this),state.option.immed&&exprs[0]&&\"function\"===exprs[0].id&&\"(\"!==state.tokens.next.id&&\".\"!==state.tokens.next.id&&\"[\"!==state.tokens.next.id&&warning(\"W068\",this),exprs.length?(exprs.length>1?(ret=Object.create(state.syntax[\",\"]),ret.exprs=exprs,first=exprs[0],last=exprs[exprs.length-1],isNecessary||(isNecessary=preceeding.assign||preceeding.delim)):(ret=first=last=exprs[0],isNecessary||(isNecessary=opening.beginsStmt&&(\"{\"===ret.id||triggerFnExpr||isFunctor(ret))||triggerFnExpr&&(!isEndOfExpr()||\"}\"!==state.tokens.prev.id)||isFunctor(ret)&&!isEndOfExpr()||\"{\"===ret.id&&\"=>\"===preceeding.id||\"(number)\"===ret.type&&checkPunctuator(pn,\".\")&&/^\\d+$/.test(ret.value))),ret&&(!isNecessary&&(first.left||first.right||ret.exprs)&&(isNecessary=!isBeginOfExpr(preceeding)&&first.lbp<=preceeding.lbp||!isEndOfExpr()&&last.lbp\"),infix(\"[\",function(left,that){var s,e=expression(10);return e&&\"(string)\"===e.type&&(state.option.evil||\"eval\"!==e.value&&\"execScript\"!==e.value||isGlobalEval(left,state)&&warning(\"W061\"),countMember(e.value),!state.option.sub&®.identifier.test(e.value)&&(s=state.syntax[e.value],s&&isReserved(s)||warning(\"W069\",state.tokens.prev,e.value))),advance(\"]\",that),e&&\"hasOwnProperty\"===e.value&&\"=\"===state.tokens.next.value&&warning(\"W001\"),that.left=left,that.right=e,that},160,!0),prefix(\"[\",function(){var blocktype=lookupBlockType();if(blocktype.isCompArray)return state.option.esnext||state.inMoz()||warning(\"W118\",state.tokens.curr,\"array comprehension\"),comprehensiveArrayExpression();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;var b=state.tokens.curr.line!==startLine(state.tokens.next);for(this.first=[],b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));\"(end)\"!==state.tokens.next.id;){for(;\",\"===state.tokens.next.id;){if(!state.option.elision){if(state.inES5()){warning(\"W128\");do advance(\",\");while(\",\"===state.tokens.next.id);continue}warning(\"W070\")}advance(\",\")}if(\"]\"===state.tokens.next.id)break;if(this.first.push(expression(10)),\",\"!==state.tokens.next.id)break;if(comma({allowTrailing:!0}),\"]\"===state.tokens.next.id&&!state.inES5()){warning(\"W070\",state.tokens.curr);break}}return b&&(indent-=state.option.indent),advance(\"]\",this),this}),function(x){x.nud=function(){var b,f,i,p,t,nextVal,isGeneratorMethod=!1,props=Object.create(null);b=state.tokens.curr.line!==startLine(state.tokens.next),b&&(indent+=state.option.indent,state.tokens.next.from===indent+state.option.indent&&(indent+=state.option.indent));var blocktype=lookupBlockType();if(blocktype.isDestAssign)return this.destructAssign=destructuringPattern({openingParsed:!0,assignment:!0}),this;for(;\"}\"!==state.tokens.next.id;){if(nextVal=state.tokens.next.value,!state.tokens.next.identifier||\",\"!==peekIgnoreEOL().id&&\"}\"!==peekIgnoreEOL().id)if(\":\"===peek().id||\"get\"!==nextVal&&\"set\"!==nextVal){if(\"*\"===state.tokens.next.value&&\"(punctuator)\"===state.tokens.next.type?(state.inES6()||warning(\"W104\",state.tokens.next,\"generator functions\",\"6\"),advance(\"*\"),isGeneratorMethod=!0):isGeneratorMethod=!1,\"[\"===state.tokens.next.id)i=computedPropertyName(),state.nameStack.set(i);else if(state.nameStack.set(state.tokens.next),i=propertyName(),saveProperty(props,i,state.tokens.next),\"string\"!=typeof i)break;\"(\"===state.tokens.next.value?(state.inES6()||warning(\"W104\",state.tokens.curr,\"concise methods\",\"6\"),doFunction({type:isGeneratorMethod?\"generator\":null})):(advance(\":\"),expression(10))}else advance(nextVal),state.inES5()||error(\"E034\"),i=propertyName(),i||state.inES6()||error(\"E035\"),i&&saveAccessor(nextVal,props,i,state.tokens.curr),t=state.tokens.next,f=doFunction(),p=f[\"(params)\"],\"get\"===nextVal&&i&&p?warning(\"W076\",t,p[0],i):\"set\"!==nextVal||!i||p&&1===p.length||warning(\"W077\",t,i);else state.inES6()||warning(\"W104\",state.tokens.next,\"object short notation\",\"6\"),i=propertyName(!0),saveProperty(props,i,state.tokens.next),expression(10);if(countMember(i),\",\"!==state.tokens.next.id)break;comma({allowTrailing:!0,property:!0}),\",\"===state.tokens.next.id?warning(\"W070\",state.tokens.curr):\"}\"!==state.tokens.next.id||state.inES5()||warning(\"W070\",state.tokens.curr)}return b&&(indent-=state.option.indent),advance(\"}\",this),checkProperties(props),this},x.fud=function(){error(\"E036\",state.tokens.curr)}}(delim(\"{\"));var conststatement=stmt(\"const\",function(context){return blockVariableStatement(\"const\",this,context)});conststatement.exps=!0;var letstatement=stmt(\"let\",function(context){return blockVariableStatement(\"let\",this,context)});letstatement.exps=!0;var varstatement=stmt(\"var\",function(context){var tokens,lone,value,prefix=context&&context.prefix,inexport=context&&context.inexport,implied=context&&context.implied,report=!(context&&context.ignore);for(this.first=[];;){var names=[];_.contains([\"{\",\"[\"],state.tokens.next.value)?(tokens=destructuringPattern(),lone=!1):(tokens=[{id:identifier(),token:state.tokens.curr}],lone=!0),prefix&&implied||!report||!state.option.varstmt||warning(\"W132\",this),this.first=this.first.concat(names);for(var t in tokens)tokens.hasOwnProperty(t)&&(t=tokens[t],!implied&&state.funct[\"(global)\"]&&(predefined[t.id]===!1?warning(\"W079\",t.token,t.id):state.option.futurehostile===!1&&(!state.inES5()&&vars.ecmaIdentifiers[5][t.id]===!1||!state.inES6()&&vars.ecmaIdentifiers[6][t.id]===!1)&&warning(\"W129\",t.token,t.id)),t.id&&(\"for\"===implied?(state.funct[\"(scope)\"].has(t.id)||report&&warning(\"W088\",t.token,t.id),state.funct[\"(scope)\"].block.use(t.id,t.token)):(state.funct[\"(scope)\"].addlabel(t.id,{type:\"var\",token:t.token}),lone&&inexport&&state.funct[\"(scope)\"].setExported(t.id,t.token)),names.push(t.token)));if(\"=\"===state.tokens.next.id&&(state.nameStack.set(state.tokens.curr),advance(\"=\"),prefix||!report||state.funct[\"(loopage)\"]||\"undefined\"!==state.tokens.next.id||warning(\"W080\",state.tokens.prev,state.tokens.prev.value),\"=\"===peek(0).id&&state.tokens.next.identifier&&(!prefix&&report&&!state.funct[\"(params)\"]||-1===state.funct[\"(params)\"].indexOf(state.tokens.next.value))&&warning(\"W120\",state.tokens.next,state.tokens.next.value),value=expression(prefix?120:10),lone?tokens[0].first=value:destructuringPatternMatch(names,value)),\",\"!==state.tokens.next.id)break;comma()}return this});varstatement.exps=!0,blockstmt(\"class\",function(){return classdef.call(this,!0)}),blockstmt(\"function\",function(context){var inexport=context&&context.inexport,generator=!1;\"*\"===state.tokens.next.value&&(advance(\"*\"),state.inES6({strict:!0})?generator=!0:warning(\"W119\",state.tokens.curr,\"function*\",\"6\")),inblock&&warning(\"W082\",state.tokens.curr);var i=optionalidentifier();return state.funct[\"(scope)\"].addlabel(i,{type:\"function\",token:state.tokens.curr}),void 0===i?warning(\"W025\"):inexport&&state.funct[\"(scope)\"].setExported(i,state.tokens.prev),doFunction({name:i,statement:this,type:generator?\"generator\":null,ignoreLoopFunc:inblock}),\"(\"===state.tokens.next.id&&state.tokens.next.line===state.tokens.curr.line&&error(\"E039\"),this}),prefix(\"function\",function(){var generator=!1;\"*\"===state.tokens.next.value&&(state.inES6()||warning(\"W119\",state.tokens.curr,\"function*\",\"6\"),advance(\"*\"),generator=!0);var i=optionalidentifier();return doFunction({name:i,type:generator?\"generator\":null}),this}),blockstmt(\"if\",function(){var t=state.tokens.next;increaseComplexityCount(),state.condition=!0,advance(\"(\");var expr=expression(0);checkCondAssignment(expr);var forinifcheck=null;state.option.forin&&state.forinifcheckneeded&&(state.forinifcheckneeded=!1,forinifcheck=state.forinifchecks[state.forinifchecks.length-1],forinifcheck.type=\"(punctuator)\"===expr.type&&\"!\"===expr.value?\"(negative)\":\"(positive)\"),advance(\")\",t),state.condition=!1;var s=block(!0,!0);return forinifcheck&&\"(negative)\"===forinifcheck.type&&s&&s[0]&&\"(identifier)\"===s[0].type&&\"continue\"===s[0].value&&(forinifcheck.type=\"(negative-with-continue)\"),\"else\"===state.tokens.next.id&&(advance(\"else\"),\"if\"===state.tokens.next.id||\"switch\"===state.tokens.next.id?statement():block(!0,!0)),this}),blockstmt(\"try\",function(){function doCatch(){if(advance(\"catch\"),advance(\"(\"),state.funct[\"(scope)\"].stack(\"catchparams\"),checkPunctuators(state.tokens.next,[\"[\",\"{\"])){var tokens=destructuringPattern();_.each(tokens,function(token){token.id&&state.funct[\"(scope)\"].addParam(token.id,token,\"exception\")})}else\"(identifier)\"!==state.tokens.next.type?warning(\"E030\",state.tokens.next,state.tokens.next.value):state.funct[\"(scope)\"].addParam(identifier(),state.tokens.curr,\"exception\");\"if\"===state.tokens.next.value&&(state.inMoz()||warning(\"W118\",state.tokens.curr,\"catch filter\"),advance(\"if\"),expression(0)),advance(\")\"),block(!1),state.funct[\"(scope)\"].unstack()}var b;for(block(!0);\"catch\"===state.tokens.next.id;)increaseComplexityCount(),b&&!state.inMoz()&&warning(\"W118\",state.tokens.next,\"multiple catch blocks\"),doCatch(),b=!0;return\"finally\"===state.tokens.next.id?(advance(\"finally\"),block(!0),void 0):(b||error(\"E021\",state.tokens.next,\"catch\",state.tokens.next.value),this)}),blockstmt(\"while\",function(){var t=state.tokens.next;return state.funct[\"(breakage)\"]+=1,state.funct[\"(loopage)\"]+=1,increaseComplexityCount(),advance(\"(\"),checkCondAssignment(expression(0)),advance(\")\",t),block(!0,!0),state.funct[\"(breakage)\"]-=1,state.funct[\"(loopage)\"]-=1,this}).labelled=!0,blockstmt(\"with\",function(){var t=state.tokens.next;return state.isStrict()?error(\"E010\",state.tokens.curr):state.option.withstmt||warning(\"W085\",state.tokens.curr),advance(\"(\"),expression(0),advance(\")\",t),block(!0,!0),this}),blockstmt(\"switch\",function(){var t=state.tokens.next,g=!1,noindent=!1;\nfor(state.funct[\"(breakage)\"]+=1,advance(\"(\"),checkCondAssignment(expression(0)),advance(\")\",t),t=state.tokens.next,advance(\"{\"),state.tokens.next.from===indent&&(noindent=!0),noindent||(indent+=state.option.indent),this.cases=[];;)switch(state.tokens.next.id){case\"case\":switch(state.funct[\"(verb)\"]){case\"yield\":case\"break\":case\"case\":case\"continue\":case\"return\":case\"switch\":case\"throw\":break;default:state.tokens.curr.caseFallsThrough||warning(\"W086\",state.tokens.curr,\"case\")}advance(\"case\"),this.cases.push(expression(0)),increaseComplexityCount(),g=!0,advance(\":\"),state.funct[\"(verb)\"]=\"case\";break;case\"default\":switch(state.funct[\"(verb)\"]){case\"yield\":case\"break\":case\"continue\":case\"return\":case\"throw\":break;default:this.cases.length&&(state.tokens.curr.caseFallsThrough||warning(\"W086\",state.tokens.curr,\"default\"))}advance(\"default\"),g=!0,advance(\":\");break;case\"}\":return noindent||(indent-=state.option.indent),advance(\"}\",t),state.funct[\"(breakage)\"]-=1,state.funct[\"(verb)\"]=void 0,void 0;case\"(end)\":return error(\"E023\",state.tokens.next,\"}\"),void 0;default:if(indent+=state.option.indent,g)switch(state.tokens.curr.id){case\",\":return error(\"E040\"),void 0;case\":\":g=!1,statements();break;default:return error(\"E025\",state.tokens.curr),void 0}else{if(\":\"!==state.tokens.curr.id)return error(\"E021\",state.tokens.next,\"case\",state.tokens.next.value),void 0;advance(\":\"),error(\"E024\",state.tokens.curr,\":\"),statements()}indent-=state.option.indent}return this}).labelled=!0,stmt(\"debugger\",function(){return state.option.debug||warning(\"W087\",this),this}).exps=!0,function(){var x=stmt(\"do\",function(){state.funct[\"(breakage)\"]+=1,state.funct[\"(loopage)\"]+=1,increaseComplexityCount(),this.first=block(!0,!0),advance(\"while\");var t=state.tokens.next;return advance(\"(\"),checkCondAssignment(expression(0)),advance(\")\",t),state.funct[\"(breakage)\"]-=1,state.funct[\"(loopage)\"]-=1,this});x.labelled=!0,x.exps=!0}(),blockstmt(\"for\",function(){var s,t=state.tokens.next,letscope=!1,foreachtok=null;\"each\"===t.value&&(foreachtok=t,advance(\"each\"),state.inMoz()||warning(\"W118\",state.tokens.curr,\"for each\")),increaseComplexityCount(),advance(\"(\");var nextop,comma,initializer,i=0,inof=[\"in\",\"of\"],level=0;checkPunctuators(state.tokens.next,[\"{\",\"[\"])&&++level;do{if(nextop=peek(i),++i,checkPunctuators(nextop,[\"{\",\"[\"])?++level:checkPunctuators(nextop,[\"}\",\"]\"])&&--level,0>level)break;0===level&&(!comma&&checkPunctuator(nextop,\",\")?comma=nextop:!initializer&&checkPunctuator(nextop,\"=\")&&(initializer=nextop))}while(level>0||!_.contains(inof,nextop.value)&&\";\"!==nextop.value&&\"(end)\"!==nextop.type);if(_.contains(inof,nextop.value)){state.inES6()||\"of\"!==nextop.value||warning(\"W104\",nextop,\"for of\",\"6\");var ok=!(initializer||comma);if(initializer&&error(\"W133\",comma,nextop.value,\"initializer is forbidden\"),comma&&error(\"W133\",comma,nextop.value,\"more than one ForBinding\"),\"var\"===state.tokens.next.id?(advance(\"var\"),state.tokens.curr.fud({prefix:!0})):\"let\"===state.tokens.next.id||\"const\"===state.tokens.next.id?(advance(state.tokens.next.id),letscope=!0,state.funct[\"(scope)\"].stack(),state.tokens.curr.fud({prefix:!0})):Object.create(varstatement).fud({prefix:!0,implied:\"for\",ignore:!ok}),advance(nextop.value),expression(20),advance(\")\",t),\"in\"===nextop.value&&state.option.forin&&(state.forinifcheckneeded=!0,void 0===state.forinifchecks&&(state.forinifchecks=[]),state.forinifchecks.push({type:\"(none)\"})),state.funct[\"(breakage)\"]+=1,state.funct[\"(loopage)\"]+=1,s=block(!0,!0),\"in\"===nextop.value&&state.option.forin){if(state.forinifchecks&&state.forinifchecks.length>0){var check=state.forinifchecks.pop();(s&&s.length>0&&(\"object\"!=typeof s[0]||\"if\"!==s[0].value)||\"(positive)\"===check.type&&s.length>1||\"(negative)\"===check.type)&&warning(\"W089\",this)}state.forinifcheckneeded=!1}state.funct[\"(breakage)\"]-=1,state.funct[\"(loopage)\"]-=1}else{if(foreachtok&&error(\"E045\",foreachtok),\";\"!==state.tokens.next.id)if(\"var\"===state.tokens.next.id)advance(\"var\"),state.tokens.curr.fud();else if(\"let\"===state.tokens.next.id)advance(\"let\"),letscope=!0,state.funct[\"(scope)\"].stack(),state.tokens.curr.fud();else for(;expression(0,\"for\"),\",\"===state.tokens.next.id;)comma();if(nolinebreak(state.tokens.curr),advance(\";\"),state.funct[\"(loopage)\"]+=1,\";\"!==state.tokens.next.id&&checkCondAssignment(expression(0)),nolinebreak(state.tokens.curr),advance(\";\"),\";\"===state.tokens.next.id&&error(\"E021\",state.tokens.next,\")\",\";\"),\")\"!==state.tokens.next.id)for(;expression(0,\"for\"),\",\"===state.tokens.next.id;)comma();advance(\")\",t),state.funct[\"(breakage)\"]+=1,block(!0,!0),state.funct[\"(breakage)\"]-=1,state.funct[\"(loopage)\"]-=1}return letscope&&state.funct[\"(scope)\"].unstack(),this}).labelled=!0,stmt(\"break\",function(){var v=state.tokens.next.value;return state.option.asi||nolinebreak(this),\";\"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line!==startLine(state.tokens.next)?0===state.funct[\"(breakage)\"]&&warning(\"W052\",state.tokens.next,this.value):(state.funct[\"(scope)\"].funct.hasBreakLabel(v)||warning(\"W090\",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt(\"continue\",function(){var v=state.tokens.next.value;return 0===state.funct[\"(breakage)\"]&&warning(\"W052\",state.tokens.next,this.value),state.funct[\"(loopage)\"]||warning(\"W052\",state.tokens.next,this.value),state.option.asi||nolinebreak(this),\";\"===state.tokens.next.id||state.tokens.next.reach||state.tokens.curr.line===startLine(state.tokens.next)&&(state.funct[\"(scope)\"].funct.hasBreakLabel(v)||warning(\"W090\",state.tokens.next,v),this.first=state.tokens.next,advance()),reachable(this),this}).exps=!0,stmt(\"return\",function(){return this.line===startLine(state.tokens.next)?\";\"===state.tokens.next.id||state.tokens.next.reach||(this.first=expression(0),!this.first||\"(punctuator)\"!==this.first.type||\"=\"!==this.first.value||this.first.paren||state.option.boss||warningAt(\"W093\",this.first.line,this.first.character)):\"(punctuator)\"===state.tokens.next.type&&[\"[\",\"{\",\"+\",\"-\"].indexOf(state.tokens.next.value)>-1&&nolinebreak(this),reachable(this),this}).exps=!0,function(x){x.exps=!0,x.lbp=25}(prefix(\"yield\",function(){var prev=state.tokens.prev;state.inES6(!0)&&!state.funct[\"(generator)\"]?\"(catch)\"===state.funct[\"(name)\"]&&state.funct[\"(context)\"][\"(generator)\"]||error(\"E046\",state.tokens.curr,\"yield\"):state.inES6()||warning(\"W104\",state.tokens.curr,\"yield\",\"6\"),state.funct[\"(generator)\"]=\"yielded\";var delegatingYield=!1;return\"*\"===state.tokens.next.value&&(delegatingYield=!0,advance(\"*\")),this.line!==startLine(state.tokens.next)&&state.inMoz()?state.option.asi||nolinebreak(this):((delegatingYield||\";\"!==state.tokens.next.id&&!state.option.asi&&!state.tokens.next.reach&&state.tokens.next.nud)&&(nobreaknonadjacent(state.tokens.curr,state.tokens.next),this.first=expression(10),\"(punctuator)\"!==this.first.type||\"=\"!==this.first.value||this.first.paren||state.option.boss||warningAt(\"W093\",this.first.line,this.first.character)),state.inMoz()&&\")\"!==state.tokens.next.id&&(prev.lbp>30||!prev.assign&&!isEndOfExpr()||\"yield\"===prev.id)&&error(\"E050\",this)),this})),stmt(\"throw\",function(){return nolinebreak(this),this.first=expression(20),reachable(this),this}).exps=!0,stmt(\"import\",function(){if(state.inES6()||warning(\"W119\",state.tokens.curr,\"import\",\"6\"),\"(string)\"===state.tokens.next.type)return advance(\"(string)\"),this;if(state.tokens.next.identifier){if(this.name=identifier(),state.funct[\"(scope)\"].addlabel(this.name,{type:\"const\",token:state.tokens.curr}),\",\"!==state.tokens.next.value)return advance(\"from\"),advance(\"(string)\"),this;advance(\",\")}if(\"*\"===state.tokens.next.id)advance(\"*\"),advance(\"as\"),state.tokens.next.identifier&&(this.name=identifier(),state.funct[\"(scope)\"].addlabel(this.name,{type:\"const\",token:state.tokens.curr}));else for(advance(\"{\");;){if(\"}\"===state.tokens.next.value){advance(\"}\");break}var importName;if(\"default\"===state.tokens.next.type?(importName=\"default\",advance(\"default\")):importName=identifier(),\"as\"===state.tokens.next.value&&(advance(\"as\"),importName=identifier()),state.funct[\"(scope)\"].addlabel(importName,{type:\"const\",token:state.tokens.curr}),\",\"!==state.tokens.next.value){if(\"}\"===state.tokens.next.value){advance(\"}\");break}error(\"E024\",state.tokens.next,state.tokens.next.value);break}advance(\",\")}return advance(\"from\"),advance(\"(string)\"),this}).exps=!0,stmt(\"export\",function(){var token,identifier,ok=!0;if(state.inES6()||(warning(\"W119\",state.tokens.curr,\"export\",\"6\"),ok=!1),state.funct[\"(scope)\"].block.isGlobal()||(error(\"E053\",state.tokens.curr),ok=!1),\"*\"===state.tokens.next.value)return advance(\"*\"),advance(\"from\"),advance(\"(string)\"),this;if(\"default\"===state.tokens.next.type){state.nameStack.set(state.tokens.next),advance(\"default\");var exportType=state.tokens.next.id;return(\"function\"===exportType||\"class\"===exportType)&&(this.block=!0),token=peek(),expression(10),identifier=token.value,this.block&&(state.funct[\"(scope)\"].addlabel(identifier,{type:exportType,token:token}),state.funct[\"(scope)\"].setExported(identifier,token)),this}if(\"{\"===state.tokens.next.value){advance(\"{\");for(var exportedTokens=[];;){if(state.tokens.next.identifier||error(\"E030\",state.tokens.next,state.tokens.next.value),advance(),exportedTokens.push(state.tokens.curr),\"as\"===state.tokens.next.value&&(advance(\"as\"),state.tokens.next.identifier||error(\"E030\",state.tokens.next,state.tokens.next.value),advance()),\",\"!==state.tokens.next.value){if(\"}\"===state.tokens.next.value){advance(\"}\");break}error(\"E024\",state.tokens.next,state.tokens.next.value);break}advance(\",\")}return\"from\"===state.tokens.next.value?(advance(\"from\"),advance(\"(string)\")):ok&&exportedTokens.forEach(function(token){state.funct[\"(scope)\"].setExported(token.value,token)}),this}if(\"var\"===state.tokens.next.id)advance(\"var\"),state.tokens.curr.fud({inexport:!0});else if(\"let\"===state.tokens.next.id)advance(\"let\"),state.tokens.curr.fud({inexport:!0});else if(\"const\"===state.tokens.next.id)advance(\"const\"),state.tokens.curr.fud({inexport:!0});else if(\"function\"===state.tokens.next.id)this.block=!0,advance(\"function\"),state.syntax[\"function\"].fud({inexport:!0});else if(\"class\"===state.tokens.next.id){this.block=!0,advance(\"class\");var classNameToken=state.tokens.next;state.syntax[\"class\"].fud(),state.funct[\"(scope)\"].setExported(classNameToken.value,classNameToken)}else error(\"E024\",state.tokens.next,state.tokens.next.value);return this}).exps=!0,FutureReservedWord(\"abstract\"),FutureReservedWord(\"boolean\"),FutureReservedWord(\"byte\"),FutureReservedWord(\"char\"),FutureReservedWord(\"class\",{es5:!0,nud:classdef}),FutureReservedWord(\"double\"),FutureReservedWord(\"enum\",{es5:!0}),FutureReservedWord(\"export\",{es5:!0}),FutureReservedWord(\"extends\",{es5:!0}),FutureReservedWord(\"final\"),FutureReservedWord(\"float\"),FutureReservedWord(\"goto\"),FutureReservedWord(\"implements\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"import\",{es5:!0}),FutureReservedWord(\"int\"),FutureReservedWord(\"interface\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"long\"),FutureReservedWord(\"native\"),FutureReservedWord(\"package\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"private\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"protected\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"public\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"short\"),FutureReservedWord(\"static\",{es5:!0,strictOnly:!0}),FutureReservedWord(\"super\",{es5:!0}),FutureReservedWord(\"synchronized\"),FutureReservedWord(\"transient\"),FutureReservedWord(\"volatile\");var lookupBlockType=function(){var pn,pn1,prev,i=-1,bracketStack=0,ret={};checkPunctuators(state.tokens.curr,[\"[\",\"{\"])&&(bracketStack+=1);do{if(prev=-1===i?state.tokens.curr:pn,pn=-1===i?state.tokens.next:peek(i),pn1=peek(i+1),i+=1,checkPunctuators(pn,[\"[\",\"{\"])?bracketStack+=1:checkPunctuators(pn,[\"]\",\"}\"])&&(bracketStack-=1),1===bracketStack&&pn.identifier&&\"for\"===pn.value&&!checkPunctuator(prev,\".\")){ret.isCompArray=!0,ret.notJson=!0;break}if(0===bracketStack&&checkPunctuators(pn,[\"}\",\"]\"])){if(\"=\"===pn1.value){ret.isDestAssign=!0,ret.notJson=!0;break}if(\".\"===pn1.value){ret.notJson=!0;break}}checkPunctuator(pn,\";\")&&(ret.isBlock=!0,ret.notJson=!0)}while(bracketStack>0&&\"(end)\"!==pn.id);return ret},arrayComprehension=function(){function declare(v){var l=_current.variables.filter(function(elt){return elt.value===v?(elt.undef=!1,v):void 0}).length;return 0!==l}function use(v){var l=_current.variables.filter(function(elt){return elt.value!==v||elt.undef?void 0:(elt.unused===!0&&(elt.unused=!1),v)}).length;return 0===l}var _current,CompArray=function(){this.mode=\"use\",this.variables=[]},_carrays=[];return{stack:function(){_current=new CompArray,_carrays.push(_current)},unstack:function(){_current.variables.filter(function(v){v.unused&&warning(\"W098\",v.token,v.raw_text||v.value),v.undef&&state.funct[\"(scope)\"].block.use(v.value,v.token)}),_carrays.splice(-1,1),_current=_carrays[_carrays.length-1]},setState:function(s){_.contains([\"use\",\"define\",\"generate\",\"filter\"],s)&&(_current.mode=s)},check:function(v){return _current?_current&&\"use\"===_current.mode?(use(v)&&_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!0,unused:!1}),!0):_current&&\"define\"===_current.mode?(declare(v)||_current.variables.push({funct:state.funct,token:state.tokens.curr,value:v,undef:!1,unused:!0}),!0):_current&&\"generate\"===_current.mode?(state.funct[\"(scope)\"].block.use(v,state.tokens.curr),!0):_current&&\"filter\"===_current.mode?(use(v)&&state.funct[\"(scope)\"].block.use(v,state.tokens.curr),!0):!1:void 0}}},escapeRegex=function(str){return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\")},itself=function(s,o,g){function each(obj,cb){obj&&(Array.isArray(obj)||\"object\"!=typeof obj||(obj=Object.keys(obj)),obj.forEach(cb))}var i,k,x,reIgnoreStr,reIgnore,optionKeys,newOptionObj={},newIgnoredObj={};o=_.clone(o),state.reset(),o&&o.scope?JSHINT.scope=o.scope:(JSHINT.errors=[],JSHINT.undefs=[],JSHINT.internals=[],JSHINT.blacklist={},JSHINT.scope=\"(main)\"),predefined=Object.create(null),combine(predefined,vars.ecmaIdentifiers[3]),combine(predefined,vars.reservedVars),combine(predefined,g||{}),declared=Object.create(null);var exported=Object.create(null);if(o)for(each(o.predef||null,function(item){var slice,prop;\"-\"===item[0]?(slice=item.slice(1),JSHINT.blacklist[slice]=slice,delete predefined[slice]):(prop=Object.getOwnPropertyDescriptor(o.predef,item),predefined[item]=prop?prop.value:!1)}),each(o.exported||null,function(item){exported[item]=!0}),delete o.predef,delete o.exported,optionKeys=Object.keys(o),x=0;optionKeys.length>x;x++)if(/^-W\\d{3}$/g.test(optionKeys[x]))newIgnoredObj[optionKeys[x].slice(1)]=!0;else{var optionKey=optionKeys[x];newOptionObj[optionKey]=o[optionKey],(\"esversion\"===optionKey&&5===o[optionKey]||\"es5\"===optionKey&&o[optionKey])&&warning(\"I003\"),\"newcap\"===optionKeys[x]&&o[optionKey]===!1&&(newOptionObj[\"(explicitNewcap)\"]=!0)}state.option=newOptionObj,state.ignored=newIgnoredObj,state.option.indent=state.option.indent||4,state.option.maxerr=state.option.maxerr||50,indent=1;var scopeManagerInst=scopeManager(state,predefined,exported,declared);if(scopeManagerInst.on(\"warning\",function(ev){warning.apply(null,[ev.code,ev.token].concat(ev.data))}),scopeManagerInst.on(\"error\",function(ev){error.apply(null,[ev.code,ev.token].concat(ev.data))}),state.funct=functor(\"(global)\",null,{\"(global)\":!0,\"(scope)\":scopeManagerInst,\"(comparray)\":arrayComprehension(),\"(metrics)\":createMetrics(state.tokens.next)}),functions=[state.funct],urls=[],stack=null,member={},membersOnly=null,inblock=!1,lookahead=[],!isString(s)&&!Array.isArray(s))return errorAt(\"E004\",0),!1;api={get isJSON(){return state.jsonMode},getOption:function(name){return state.option[name]||null},getCache:function(name){return state.cache[name]},setCache:function(name,value){state.cache[name]=value},warn:function(code,data){warningAt.apply(null,[code,data.line,data.char].concat(data.data))},on:function(names,listener){names.split(\" \").forEach(function(name){emitter.on(name,listener)}.bind(this))}},emitter.removeAllListeners(),(extraModules||[]).forEach(function(func){func(api)}),state.tokens.prev=state.tokens.curr=state.tokens.next=state.syntax[\"(begin)\"],o&&o.ignoreDelimiters&&(Array.isArray(o.ignoreDelimiters)||(o.ignoreDelimiters=[o.ignoreDelimiters]),o.ignoreDelimiters.forEach(function(delimiterPair){delimiterPair.start&&delimiterPair.end&&(reIgnoreStr=escapeRegex(delimiterPair.start)+\"[\\\\s\\\\S]*?\"+escapeRegex(delimiterPair.end),reIgnore=RegExp(reIgnoreStr,\"ig\"),s=s.replace(reIgnore,function(match){return match.replace(/./g,\" \")}))})),lex=new Lexer(s),lex.on(\"warning\",function(ev){warningAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on(\"error\",function(ev){errorAt.apply(null,[ev.code,ev.line,ev.character].concat(ev.data))}),lex.on(\"fatal\",function(ev){quit(\"E041\",ev.line,ev.from)}),lex.on(\"Identifier\",function(ev){emitter.emit(\"Identifier\",ev)}),lex.on(\"String\",function(ev){emitter.emit(\"String\",ev)}),lex.on(\"Number\",function(ev){emitter.emit(\"Number\",ev)}),lex.start();for(var name in o)_.has(o,name)&&checkOption(name,state.tokens.curr);assume(),combine(predefined,g||{}),comma.first=!0;try{switch(advance(),state.tokens.next.id){case\"{\":case\"[\":destructuringAssignOrJsonValue();break;default:directives(),state.directive[\"use strict\"]&&\"global\"!==state.option.strict&&warning(\"W097\",state.tokens.prev),statements()}\"(end)\"!==state.tokens.next.id&&quit(\"E041\",state.tokens.curr.line),state.funct[\"(scope)\"].unstack()}catch(err){if(!err||\"JSHintError\"!==err.name)throw err;var nt=state.tokens.next||{};JSHINT.errors.push({scope:\"(main)\",raw:err.raw,code:err.code,reason:err.message,line:err.line||nt.line,character:err.character||nt.from},null)}if(\"(main)\"===JSHINT.scope)for(o=o||{},i=0;JSHINT.internals.length>i;i+=1)k=JSHINT.internals[i],o.scope=k.elem,itself(k.value,o,g);return 0===JSHINT.errors.length};return itself.addModule=function(func){extraModules.push(func)},itself.addModule(style.register),itself.data=function(){var fu,f,i,j,n,globals,data={functions:[],options:state.option};itself.errors.length&&(data.errors=itself.errors),state.jsonMode&&(data.json=!0);var impliedGlobals=state.funct[\"(scope)\"].getImpliedGlobals();for(impliedGlobals.length>0&&(data.implieds=impliedGlobals),urls.length>0&&(data.urls=urls),globals=state.funct[\"(scope)\"].getUsedOrDefinedGlobals(),globals.length>0&&(data.globals=globals),i=1;functions.length>i;i+=1){for(f=functions[i],fu={},j=0;functionicity.length>j;j+=1)fu[functionicity[j]]=[];for(j=0;functionicity.length>j;j+=1)0===fu[functionicity[j]].length&&delete fu[functionicity[j]];fu.name=f[\"(name)\"],fu.param=f[\"(params)\"],fu.line=f[\"(line)\"],fu.character=f[\"(character)\"],fu.last=f[\"(last)\"],fu.lastcharacter=f[\"(lastcharacter)\"],fu.metrics={complexity:f[\"(metrics)\"].ComplexityCount,parameters:f[\"(metrics)\"].arity,statements:f[\"(metrics)\"].statementCount},data.functions.push(fu)}var unuseds=state.funct[\"(scope)\"].getUnuseds();unuseds.length>0&&(data.unused=unuseds);for(n in member)if(\"number\"==typeof member[n]){data.member=member;break}return data},itself.jshint=itself,itself}();\"object\"==typeof exports&&exports&&(exports.JSHINT=JSHINT)},{\"../lodash\":\"/node_modules/jshint/lodash.js\",\"./lex.js\":\"/node_modules/jshint/src/lex.js\",\"./messages.js\":\"/node_modules/jshint/src/messages.js\",\"./options.js\":\"/node_modules/jshint/src/options.js\",\"./reg.js\":\"/node_modules/jshint/src/reg.js\",\"./scope-manager.js\":\"/node_modules/jshint/src/scope-manager.js\",\"./state.js\":\"/node_modules/jshint/src/state.js\",\"./style.js\":\"/node_modules/jshint/src/style.js\",\"./vars.js\":\"/node_modules/jshint/src/vars.js\",events:\"/node_modules/browserify/node_modules/events/events.js\"}],\"/node_modules/jshint/src/lex.js\":[function(_dereq_,module,exports){\"use strict\";function asyncTrigger(){var _checks=[];return{push:function(fn){_checks.push(fn)},check:function(){for(var check=0;_checks.length>check;++check)_checks[check]();_checks.splice(0,_checks.length)}}}function Lexer(source){var lines=source;\"string\"==typeof lines&&(lines=lines.replace(/\\r\\n/g,\"\\n\").replace(/\\r/g,\"\\n\").split(\"\\n\")),lines[0]&&\"#!\"===lines[0].substr(0,2)&&(-1!==lines[0].indexOf(\"node\")&&(state.option.node=!0),lines[0]=\"\"),this.emitter=new events.EventEmitter,this.source=source,this.setLines(lines),this.prereg=!0,this.line=0,this.char=1,this.from=1,this.input=\"\",this.inComment=!1,this.context=[],this.templateStarts=[];for(var i=0;state.option.indent>i;i+=1)state.tab+=\" \";this.ignoreLinterErrors=!1}var _=_dereq_(\"../lodash\"),events=_dereq_(\"events\"),reg=_dereq_(\"./reg.js\"),state=_dereq_(\"./state.js\").state,unicodeData=_dereq_(\"../data/ascii-identifier-data.js\"),asciiIdentifierStartTable=unicodeData.asciiIdentifierStartTable,asciiIdentifierPartTable=unicodeData.asciiIdentifierPartTable,Token={Identifier:1,Punctuator:2,NumericLiteral:3,StringLiteral:4,Comment:5,Keyword:6,NullLiteral:7,BooleanLiteral:8,RegExp:9,TemplateHead:10,TemplateMiddle:11,TemplateTail:12,NoSubstTemplate:13},Context={Block:1,Template:2};Lexer.prototype={_lines:[],inContext:function(ctxType){return this.context.length>0&&this.context[this.context.length-1].type===ctxType},pushContext:function(ctxType){this.context.push({type:ctxType})},popContext:function(){return this.context.pop()},isContext:function(context){return this.context.length>0&&this.context[this.context.length-1]===context},currentContext:function(){return this.context.length>0&&this.context[this.context.length-1]},getLines:function(){return this._lines=state.lines,this._lines},setLines:function(val){this._lines=val,state.lines=this._lines},peek:function(i){return this.input.charAt(i||0)},skip:function(i){i=i||1,this.char+=i,this.input=this.input.slice(i)},on:function(names,listener){names.split(\" \").forEach(function(name){this.emitter.on(name,listener)}.bind(this))},trigger:function(){this.emitter.emit.apply(this.emitter,Array.prototype.slice.call(arguments))},triggerAsync:function(type,args,checks,fn){checks.push(function(){fn()&&this.trigger(type,args)}.bind(this))},scanPunctuator:function(){var ch2,ch3,ch4,ch1=this.peek();switch(ch1){case\".\":if(/^[0-9]$/.test(this.peek(1)))return null;if(\".\"===this.peek(1)&&\".\"===this.peek(2))return{type:Token.Punctuator,value:\"...\"};case\"(\":case\")\":case\";\":case\",\":case\"[\":case\"]\":case\":\":case\"~\":case\"?\":return{type:Token.Punctuator,value:ch1};case\"{\":return this.pushContext(Context.Block),{type:Token.Punctuator,value:ch1};case\"}\":return this.inContext(Context.Block)&&this.popContext(),{type:Token.Punctuator,value:ch1};case\"#\":return{type:Token.Punctuator,value:ch1};case\"\":return null}return ch2=this.peek(1),ch3=this.peek(2),ch4=this.peek(3),\">\"===ch1&&\">\"===ch2&&\">\"===ch3&&\"=\"===ch4?{type:Token.Punctuator,value:\">>>=\"}:\"=\"===ch1&&\"=\"===ch2&&\"=\"===ch3?{type:Token.Punctuator,value:\"===\"}:\"!\"===ch1&&\"=\"===ch2&&\"=\"===ch3?{type:Token.Punctuator,value:\"!==\"}:\">\"===ch1&&\">\"===ch2&&\">\"===ch3?{type:Token.Punctuator,value:\">>>\"}:\"<\"===ch1&&\"<\"===ch2&&\"=\"===ch3?{type:Token.Punctuator,value:\"<<=\"}:\">\"===ch1&&\">\"===ch2&&\"=\"===ch3?{type:Token.Punctuator,value:\">>=\"}:\"=\"===ch1&&\">\"===ch2?{type:Token.Punctuator,value:ch1+ch2}:ch1===ch2&&\"+-<>&|\".indexOf(ch1)>=0?{type:Token.Punctuator,value:ch1+ch2}:\"<>=!+-*%&|^\".indexOf(ch1)>=0?\"=\"===ch2?{type:Token.Punctuator,value:ch1+ch2}:{type:Token.Punctuator,value:ch1}:\"/\"===ch1?\"=\"===ch2?{type:Token.Punctuator,value:\"/=\"}:{type:Token.Punctuator,value:\"/\"}:null},scanComments:function(){function commentToken(label,body,opt){var special=[\"jshint\",\"jslint\",\"members\",\"member\",\"globals\",\"global\",\"exported\"],isSpecial=!1,value=label+body,commentType=\"plain\";return opt=opt||{},opt.isMultiline&&(value+=\"*/\"),body=body.replace(/\\n/g,\" \"),\"/*\"===label&®.fallsThrough.test(body)&&(isSpecial=!0,commentType=\"falls through\"),special.forEach(function(str){if(!isSpecial&&(\"//\"!==label||\"jshint\"===str)&&(\" \"===body.charAt(str.length)&&body.substr(0,str.length)===str&&(isSpecial=!0,label+=str,body=body.substr(str.length)),isSpecial||\" \"!==body.charAt(0)||\" \"!==body.charAt(str.length+1)||body.substr(1,str.length)!==str||(isSpecial=!0,label=label+\" \"+str,body=body.substr(str.length+1)),isSpecial))switch(str){case\"member\":commentType=\"members\";break;case\"global\":commentType=\"globals\";break;default:var options=body.split(\":\").map(function(v){return v.replace(/^\\s+/,\"\").replace(/\\s+$/,\"\")});if(2===options.length)switch(options[0]){case\"ignore\":switch(options[1]){case\"start\":self.ignoringLinterErrors=!0,isSpecial=!1;break;case\"end\":self.ignoringLinterErrors=!1,isSpecial=!1}}commentType=str}}),{type:Token.Comment,commentType:commentType,value:value,body:body,isSpecial:isSpecial,isMultiline:opt.isMultiline||!1,isMalformed:opt.isMalformed||!1}}var ch1=this.peek(),ch2=this.peek(1),rest=this.input.substr(2),startLine=this.line,startChar=this.char,self=this;if(\"*\"===ch1&&\"/\"===ch2)return this.trigger(\"error\",{code:\"E018\",line:startLine,character:startChar}),this.skip(2),null;if(\"/\"!==ch1||\"*\"!==ch2&&\"/\"!==ch2)return null;if(\"/\"===ch2)return this.skip(this.input.length),commentToken(\"//\",rest);var body=\"\";if(\"*\"===ch2){for(this.inComment=!0,this.skip(2);\"*\"!==this.peek()||\"/\"!==this.peek(1);)if(\"\"===this.peek()){if(body+=\"\\n\",!this.nextLine())return this.trigger(\"error\",{code:\"E017\",line:startLine,character:startChar}),this.inComment=!1,commentToken(\"/*\",body,{isMultiline:!0,isMalformed:!0})}else body+=this.peek(),this.skip();return this.skip(2),this.inComment=!1,commentToken(\"/*\",body,{isMultiline:!0})}},scanKeyword:function(){var result=/^[a-zA-Z_$][a-zA-Z0-9_$]*/.exec(this.input),keywords=[\"if\",\"in\",\"do\",\"var\",\"for\",\"new\",\"try\",\"let\",\"this\",\"else\",\"case\",\"void\",\"with\",\"enum\",\"while\",\"break\",\"catch\",\"throw\",\"const\",\"yield\",\"class\",\"super\",\"return\",\"typeof\",\"delete\",\"switch\",\"export\",\"import\",\"default\",\"finally\",\"extends\",\"function\",\"continue\",\"debugger\",\"instanceof\"];return result&&keywords.indexOf(result[0])>=0?{type:Token.Keyword,value:result[0]}:null},scanIdentifier:function(){function isNonAsciiIdentifierStart(code){return code>256}function isNonAsciiIdentifierPart(code){return code>256}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function removeEscapeSequences(id){return id.replace(/\\\\u([0-9a-fA-F]{4})/g,function(m0,codepoint){return String.fromCharCode(parseInt(codepoint,16))})}var type,char,id=\"\",index=0,readUnicodeEscapeSequence=function(){if(index+=1,\"u\"!==this.peek(index))return null;var code,ch1=this.peek(index+1),ch2=this.peek(index+2),ch3=this.peek(index+3),ch4=this.peek(index+4);return isHexDigit(ch1)&&isHexDigit(ch2)&&isHexDigit(ch3)&&isHexDigit(ch4)?(code=parseInt(ch1+ch2+ch3+ch4,16),asciiIdentifierPartTable[code]||isNonAsciiIdentifierPart(code)?(index+=5,\"\\\\u\"+ch1+ch2+ch3+ch4):null):null}.bind(this),getIdentifierStart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierStartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierStart(code)?(index+=1,chr):null}.bind(this),getIdentifierPart=function(){var chr=this.peek(index),code=chr.charCodeAt(0);return 92===code?readUnicodeEscapeSequence():128>code?asciiIdentifierPartTable[code]?(index+=1,chr):null:isNonAsciiIdentifierPart(code)?(index+=1,chr):null}.bind(this);if(char=getIdentifierStart(),null===char)return null;for(id=char;char=getIdentifierPart(),null!==char;)id+=char;switch(id){case\"true\":case\"false\":type=Token.BooleanLiteral;break;case\"null\":type=Token.NullLiteral;break;default:type=Token.Identifier}return{type:type,value:removeEscapeSequences(id),text:id,tokenLength:id.length}},scanNumericLiteral:function(){function isDecimalDigit(str){return/^[0-9]$/.test(str)}function isOctalDigit(str){return/^[0-7]$/.test(str)}function isBinaryDigit(str){return/^[01]$/.test(str)}function isHexDigit(str){return/^[0-9a-fA-F]$/.test(str)}function isIdentifierStart(ch){return\"$\"===ch||\"_\"===ch||\"\\\\\"===ch||ch>=\"a\"&&\"z\">=ch||ch>=\"A\"&&\"Z\">=ch}var bad,index=0,value=\"\",length=this.input.length,char=this.peek(index),isAllowedDigit=isDecimalDigit,base=10,isLegacy=!1;if(\".\"!==char&&!isDecimalDigit(char))return null;if(\".\"!==char){for(value=this.peek(index),index+=1,char=this.peek(index),\"0\"===value&&((\"x\"===char||\"X\"===char)&&(isAllowedDigit=isHexDigit,base=16,index+=1,value+=char),(\"o\"===char||\"O\"===char)&&(isAllowedDigit=isOctalDigit,base=8,state.inES6(!0)||this.trigger(\"warning\",{code:\"W119\",line:this.line,character:this.char,data:[\"Octal integer literal\",\"6\"]}),index+=1,value+=char),(\"b\"===char||\"B\"===char)&&(isAllowedDigit=isBinaryDigit,base=2,state.inES6(!0)||this.trigger(\"warning\",{code:\"W119\",line:this.line,character:this.char,data:[\"Binary integer literal\",\"6\"]}),index+=1,value+=char),isOctalDigit(char)&&(isAllowedDigit=isOctalDigit,base=8,isLegacy=!0,bad=!1,index+=1,value+=char),!isOctalDigit(char)&&isDecimalDigit(char)&&(index+=1,value+=char));length>index;){if(char=this.peek(index),isLegacy&&isDecimalDigit(char))bad=!0;else if(!isAllowedDigit(char))break;value+=char,index+=1}if(isAllowedDigit!==isDecimalDigit)return!isLegacy&&2>=value.length?{type:Token.NumericLiteral,value:value,isMalformed:!0}:length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isLegacy:isLegacy,isMalformed:!1}}if(\".\"===char)for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1;if(\"e\"===char||\"E\"===char){if(value+=char,index+=1,char=this.peek(index),(\"+\"===char||\"-\"===char)&&(value+=this.peek(index),index+=1),char=this.peek(index),!isDecimalDigit(char))return null;for(value+=char,index+=1;length>index&&(char=this.peek(index),isDecimalDigit(char));)value+=char,index+=1}return length>index&&(char=this.peek(index),isIdentifierStart(char))?null:{type:Token.NumericLiteral,value:value,base:base,isMalformed:!isFinite(value)}},scanEscapeSequence:function(checks){var allowNewLine=!1,jump=1;this.skip();var char=this.peek();switch(char){case\"'\":this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"\\\\'\"]},checks,function(){return state.jsonMode});break;case\"b\":char=\"\\\\b\";break;case\"f\":char=\"\\\\f\";break;case\"n\":char=\"\\\\n\";break;case\"r\":char=\"\\\\r\";break;case\"t\":char=\"\\\\t\";break;case\"0\":char=\"\\\\0\";var n=parseInt(this.peek(1),10);this.triggerAsync(\"warning\",{code:\"W115\",line:this.line,character:this.char},checks,function(){return n>=0&&7>=n&&state.isStrict()});break;case\"u\":var hexCode=this.input.substr(1,4),code=parseInt(hexCode,16);isNaN(code)&&this.trigger(\"warning\",{code:\"W052\",line:this.line,character:this.char,data:[\"u\"+hexCode]}),char=String.fromCharCode(code),jump=5;break;case\"v\":this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"\\\\v\"]},checks,function(){return state.jsonMode}),char=\"\u000b\";break;case\"x\":var x=parseInt(this.input.substr(1,2),16);this.triggerAsync(\"warning\",{code:\"W114\",line:this.line,character:this.char,data:[\"\\\\x-\"]},checks,function(){return state.jsonMode}),char=String.fromCharCode(x),jump=3;break;case\"\\\\\":char=\"\\\\\\\\\";break;case'\"':char='\\\\\"';break;case\"/\":break;case\"\":allowNewLine=!0,char=\"\"}return{\"char\":char,jump:jump,allowNewLine:allowNewLine}},scanTemplateLiteral:function(checks){var tokenType,ch,value=\"\",startLine=this.line,startChar=this.char,depth=this.templateStarts.length;if(!state.inES6(!0))return null;if(\"`\"===this.peek())tokenType=Token.TemplateHead,this.templateStarts.push({line:this.line,\"char\":this.char}),depth=this.templateStarts.length,this.skip(1),this.pushContext(Context.Template);else{if(!this.inContext(Context.Template)||\"}\"!==this.peek())return null;tokenType=Token.TemplateMiddle}for(;\"`\"!==this.peek();){for(;\"\"===(ch=this.peek());)if(value+=\"\\n\",!this.nextLine()){var startPos=this.templateStarts.pop();return this.trigger(\"error\",{code:\"E052\",line:startPos.line,character:startPos.char}),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,depth:depth,context:this.popContext()}}if(\"$\"===ch&&\"{\"===this.peek(1))return value+=\"${\",this.skip(2),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.currentContext()};\nif(\"\\\\\"===ch){var escape=this.scanEscapeSequence(checks);value+=escape.char,this.skip(escape.jump)}else\"`\"!==ch&&(value+=ch,this.skip(1))}return tokenType=tokenType===Token.TemplateHead?Token.NoSubstTemplate:Token.TemplateTail,this.skip(1),this.templateStarts.pop(),{type:tokenType,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,depth:depth,context:this.popContext()}},scanStringLiteral:function(checks){var quote=this.peek();if('\"'!==quote&&\"'\"!==quote)return null;this.triggerAsync(\"warning\",{code:\"W108\",line:this.line,character:this.char},checks,function(){return state.jsonMode&&'\"'!==quote});var value=\"\",startLine=this.line,startChar=this.char,allowNewLine=!1;for(this.skip();this.peek()!==quote;)if(\"\"===this.peek()){if(allowNewLine?(allowNewLine=!1,this.triggerAsync(\"warning\",{code:\"W043\",line:this.line,character:this.char},checks,function(){return!state.option.multistr}),this.triggerAsync(\"warning\",{code:\"W042\",line:this.line,character:this.char},checks,function(){return state.jsonMode&&state.option.multistr})):this.trigger(\"warning\",{code:\"W112\",line:this.line,character:this.char}),!this.nextLine())return this.trigger(\"error\",{code:\"E029\",line:startLine,character:startChar}),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!0,quote:quote}}else{allowNewLine=!1;var char=this.peek(),jump=1;if(\" \">char&&this.trigger(\"warning\",{code:\"W113\",line:this.line,character:this.char,data:[\"\"]}),\"\\\\\"===char){var parsed=this.scanEscapeSequence(checks);char=parsed.char,jump=parsed.jump,allowNewLine=parsed.allowNewLine}value+=char,this.skip(jump)}return this.skip(),{type:Token.StringLiteral,value:value,startLine:startLine,startChar:startChar,isUnclosed:!1,quote:quote}},scanRegExp:function(){var terminated,index=0,length=this.input.length,char=this.peek(),value=char,body=\"\",flags=[],malformed=!1,isCharSet=!1,scanUnexpectedChars=function(){\" \">char&&(malformed=!0,this.trigger(\"warning\",{code:\"W048\",line:this.line,character:this.char})),\"<\"===char&&(malformed=!0,this.trigger(\"warning\",{code:\"W049\",line:this.line,character:this.char,data:[char]}))}.bind(this);if(!this.prereg||\"/\"!==char)return null;for(index+=1,terminated=!1;length>index;)if(char=this.peek(index),value+=char,body+=char,isCharSet)\"]\"===char&&(\"\\\\\"!==this.peek(index-1)||\"\\\\\"===this.peek(index-2))&&(isCharSet=!1),\"\\\\\"===char&&(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars()),index+=1;else{if(\"\\\\\"===char){if(index+=1,char=this.peek(index),body+=char,value+=char,scanUnexpectedChars(),\"/\"===char){index+=1;continue}if(\"[\"===char){index+=1;continue}}if(\"[\"!==char){if(\"/\"===char){body=body.substr(0,body.length-1),terminated=!0,index+=1;break}index+=1}else isCharSet=!0,index+=1}if(!terminated)return this.trigger(\"error\",{code:\"E015\",line:this.line,character:this.from}),void this.trigger(\"fatal\",{line:this.line,from:this.from});for(;length>index&&(char=this.peek(index),/[gim]/.test(char));)flags.push(char),value+=char,index+=1;try{RegExp(body,flags.join(\"\"))}catch(err){malformed=!0,this.trigger(\"error\",{code:\"E016\",line:this.line,character:this.char,data:[err.message]})}return{type:Token.RegExp,value:value,flags:flags,isMalformed:malformed}},scanNonBreakingSpaces:function(){return state.option.nonbsp?this.input.search(/(\\u00A0)/):-1},scanUnsafeChars:function(){return this.input.search(reg.unsafeChars)},next:function(checks){this.from=this.char;var start;if(/\\s/.test(this.peek()))for(start=this.char;/\\s/.test(this.peek());)this.from+=1,this.skip();var match=this.scanComments()||this.scanStringLiteral(checks)||this.scanTemplateLiteral(checks);return match?match:(match=this.scanRegExp()||this.scanPunctuator()||this.scanKeyword()||this.scanIdentifier()||this.scanNumericLiteral(),match?(this.skip(match.tokenLength||match.value.length),match):null)},nextLine:function(){var char;if(this.line>=this.getLines().length)return!1;this.input=this.getLines()[this.line],this.line+=1,this.char=1,this.from=1;var inputTrimmed=this.input.trim(),startsWith=function(){return _.some(arguments,function(prefix){return 0===inputTrimmed.indexOf(prefix)})},endsWith=function(){return _.some(arguments,function(suffix){return-1!==inputTrimmed.indexOf(suffix,inputTrimmed.length-suffix.length)})};if(this.ignoringLinterErrors===!0&&(startsWith(\"/*\",\"//\")||this.inComment&&endsWith(\"*/\")||(this.input=\"\")),char=this.scanNonBreakingSpaces(),char>=0&&this.trigger(\"warning\",{code:\"W125\",line:this.line,character:char+1}),this.input=this.input.replace(/\\t/g,state.tab),char=this.scanUnsafeChars(),char>=0&&this.trigger(\"warning\",{code:\"W100\",line:this.line,character:char}),!this.ignoringLinterErrors&&state.option.maxlen&&state.option.maxlen=0;--i){var scopeLabels=_scopeStack[i][\"(labels)\"];if(scopeLabels[labelName])return scopeLabels}}function usedSoFarInCurrentFunction(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current[\"(usages)\"][labelName])return current[\"(usages)\"][labelName];if(current===_currentFunctBody)break}return!1}function _checkOuterShadow(labelName,token){if(\"outer\"===state.option.shadow)for(var isGlobal=\"global\"===_currentFunctBody[\"(type)\"],isNewFunction=\"functionparams\"===_current[\"(type)\"],outsideCurrentFunction=!isGlobal,i=0;_scopeStack.length>i;i++){var stackItem=_scopeStack[i];isNewFunction||_scopeStack[i+1]!==_currentFunctBody||(outsideCurrentFunction=!1),outsideCurrentFunction&&stackItem[\"(labels)\"][labelName]&&warning(\"W123\",token,labelName),stackItem[\"(breakLabels)\"][labelName]&&warning(\"W123\",token,labelName)}}function _latedefWarning(type,labelName,token){state.option.latedef&&(state.option.latedef===!0&&\"function\"===type||\"function\"!==type)&&warning(\"W003\",token,labelName)}var _current,_scopeStack=[];_newScope(\"global\"),_current[\"(predefined)\"]=predefined;var _currentFunctBody=_current,usedPredefinedAndGlobals=Object.create(null),impliedGlobals=Object.create(null),unuseds=[],emitter=new events.EventEmitter,_getUnusedOption=function(unused_opt){return void 0===unused_opt&&(unused_opt=state.option.unused),unused_opt===!0&&(unused_opt=\"last-param\"),unused_opt},_warnUnused=function(name,tkn,type,unused_opt){var line=tkn.line,chr=tkn.from,raw_name=tkn.raw_text||name;unused_opt=_getUnusedOption(unused_opt);var warnable_types={vars:[\"var\"],\"last-param\":[\"var\",\"param\"],strict:[\"var\",\"param\",\"last-param\"]};unused_opt&&warnable_types[unused_opt]&&-1!==warnable_types[unused_opt].indexOf(type)&&warning(\"W098\",{line:line,from:chr},raw_name),(unused_opt||\"var\"===type)&&unuseds.push({name:name,line:line,character:chr})},scopeManagerInst={on:function(names,listener){names.split(\" \").forEach(function(name){emitter.on(name,listener)})},isPredefined:function(labelName){return!this.has(labelName)&&_.has(_scopeStack[0][\"(predefined)\"],labelName)},stack:function(type){var previousScope=_current;_newScope(type),type||\"functionparams\"!==previousScope[\"(type)\"]||(_current[\"(isFuncBody)\"]=!0,_current[\"(context)\"]=_currentFunctBody,_currentFunctBody=_current)},unstack:function(){var i,j,subScope=_scopeStack.length>1?_scopeStack[_scopeStack.length-2]:null,isUnstackingFunctionBody=_current===_currentFunctBody,isUnstackingFunctionParams=\"functionparams\"===_current[\"(type)\"],isUnstackingFunctionOuter=\"functionouter\"===_current[\"(type)\"],currentUsages=_current[\"(usages)\"],currentLabels=_current[\"(labels)\"],usedLabelNameList=Object.keys(currentUsages);for(currentUsages.__proto__&&-1===usedLabelNameList.indexOf(\"__proto__\")&&usedLabelNameList.push(\"__proto__\"),i=0;usedLabelNameList.length>i;i++){var usedLabelName=usedLabelNameList[i],usage=currentUsages[usedLabelName],usedLabel=currentLabels[usedLabelName];if(usedLabel){var usedLabelType=usedLabel[\"(type)\"];if(usedLabel[\"(useOutsideOfScope)\"]&&!state.option.funcscope){var usedTokens=usage[\"(tokens)\"];if(usedTokens)for(j=0;usedTokens.length>j;j++)usedLabel[\"(function)\"]===usedTokens[j][\"(function)\"]&&error(\"W038\",usedTokens[j],usedLabelName)}if(_current[\"(labels)\"][usedLabelName][\"(unused)\"]=!1,\"const\"===usedLabelType&&usage[\"(modified)\"])for(j=0;usage[\"(modified)\"].length>j;j++)error(\"E013\",usage[\"(modified)\"][j],usedLabelName);if((\"function\"===usedLabelType||\"class\"===usedLabelType)&&usage[\"(reassigned)\"])for(j=0;usage[\"(reassigned)\"].length>j;j++)error(\"W021\",usage[\"(reassigned)\"][j],usedLabelName,usedLabelType)}else if(isUnstackingFunctionOuter&&(state.funct[\"(isCapturing)\"]=!0),subScope)if(subScope[\"(usages)\"][usedLabelName]){var subScopeUsage=subScope[\"(usages)\"][usedLabelName];subScopeUsage[\"(modified)\"]=subScopeUsage[\"(modified)\"].concat(usage[\"(modified)\"]),subScopeUsage[\"(tokens)\"]=subScopeUsage[\"(tokens)\"].concat(usage[\"(tokens)\"]),subScopeUsage[\"(reassigned)\"]=subScopeUsage[\"(reassigned)\"].concat(usage[\"(reassigned)\"]),subScopeUsage[\"(onlyUsedSubFunction)\"]=!1}else subScope[\"(usages)\"][usedLabelName]=usage,isUnstackingFunctionBody&&(subScope[\"(usages)\"][usedLabelName][\"(onlyUsedSubFunction)\"]=!0);else if(\"boolean\"==typeof _current[\"(predefined)\"][usedLabelName]){if(delete declared[usedLabelName],usedPredefinedAndGlobals[usedLabelName]=marker,_current[\"(predefined)\"][usedLabelName]===!1&&usage[\"(reassigned)\"])for(j=0;usage[\"(reassigned)\"].length>j;j++)warning(\"W020\",usage[\"(reassigned)\"][j])}else if(usage[\"(tokens)\"])for(j=0;usage[\"(tokens)\"].length>j;j++){var undefinedToken=usage[\"(tokens)\"][j];undefinedToken.forgiveUndef||(state.option.undef&&!undefinedToken.ignoreUndef&&warning(\"W117\",undefinedToken,usedLabelName),impliedGlobals[usedLabelName]?impliedGlobals[usedLabelName].line.push(undefinedToken.line):impliedGlobals[usedLabelName]={name:usedLabelName,line:[undefinedToken.line]})}}if(subScope||Object.keys(declared).forEach(function(labelNotUsed){_warnUnused(labelNotUsed,declared[labelNotUsed],\"var\")}),subScope&&!isUnstackingFunctionBody&&!isUnstackingFunctionParams&&!isUnstackingFunctionOuter){var labelNames=Object.keys(currentLabels);for(i=0;labelNames.length>i;i++){var defLabelName=labelNames[i];currentLabels[defLabelName][\"(blockscoped)\"]||\"exception\"===currentLabels[defLabelName][\"(type)\"]||this.funct.has(defLabelName,{excludeCurrent:!0})||(subScope[\"(labels)\"][defLabelName]=currentLabels[defLabelName],\"global\"!==_currentFunctBody[\"(type)\"]&&(subScope[\"(labels)\"][defLabelName][\"(useOutsideOfScope)\"]=!0),delete currentLabels[defLabelName])}}_checkForUnused(),_scopeStack.pop(),isUnstackingFunctionBody&&(_currentFunctBody=_scopeStack[_.findLastIndex(_scopeStack,function(scope){return scope[\"(isFuncBody)\"]||\"global\"===scope[\"(type)\"]})]),_current=subScope},addParam:function(labelName,token,type){if(type=type||\"param\",\"exception\"===type){var previouslyDefinedLabelType=this.funct.labeltype(labelName);previouslyDefinedLabelType&&\"exception\"!==previouslyDefinedLabelType&&(state.option.node||warning(\"W002\",state.tokens.next,labelName))}if(_.has(_current[\"(labels)\"],labelName)?_current[\"(labels)\"][labelName].duplicated=!0:(_checkOuterShadow(labelName,token,type),_current[\"(labels)\"][labelName]={\"(type)\":type,\"(token)\":token,\"(unused)\":!0},_current[\"(params)\"].push(labelName)),_.has(_current[\"(usages)\"],labelName)){var usage=_current[\"(usages)\"][labelName];usage[\"(onlyUsedSubFunction)\"]?_latedefWarning(type,labelName,token):warning(\"E056\",token,labelName,type)}},validateParams:function(){if(\"global\"!==_currentFunctBody[\"(type)\"]){var isStrict=state.isStrict(),currentFunctParamScope=_currentFunctBody[\"(parent)\"];currentFunctParamScope[\"(params)\"]&¤tFunctParamScope[\"(params)\"].forEach(function(labelName){var label=currentFunctParamScope[\"(labels)\"][labelName];label&&label.duplicated&&(isStrict?warning(\"E011\",label[\"(token)\"],labelName):state.option.shadow!==!0&&warning(\"W004\",label[\"(token)\"],labelName))})}},getUsedOrDefinedGlobals:function(){var list=Object.keys(usedPredefinedAndGlobals);return usedPredefinedAndGlobals.__proto__===marker&&-1===list.indexOf(\"__proto__\")&&list.push(\"__proto__\"),list},getImpliedGlobals:function(){var values=_.values(impliedGlobals),hasProto=!1;return impliedGlobals.__proto__&&(hasProto=values.some(function(value){return\"__proto__\"===value.name}),hasProto||values.push(impliedGlobals.__proto__)),values},getUnuseds:function(){return unuseds},has:function(labelName){return Boolean(_getLabel(labelName))},labeltype:function(labelName){var scopeLabels=_getLabel(labelName);return scopeLabels?scopeLabels[labelName][\"(type)\"]:null},addExported:function(labelName){var globalLabels=_scopeStack[0][\"(labels)\"];if(_.has(declared,labelName))delete declared[labelName];else if(_.has(globalLabels,labelName))globalLabels[labelName][\"(unused)\"]=!1;else{for(var i=1;_scopeStack.length>i;i++){var scope=_scopeStack[i];if(scope[\"(type)\"])break;if(_.has(scope[\"(labels)\"],labelName)&&!scope[\"(labels)\"][labelName][\"(blockscoped)\"])return scope[\"(labels)\"][labelName][\"(unused)\"]=!1,void 0}exported[labelName]=!0}},setExported:function(labelName,token){this.block.use(labelName,token)\n},addlabel:function(labelName,opts){var type=opts.type,token=opts.token,isblockscoped=\"let\"===type||\"const\"===type||\"class\"===type,isexported=\"global\"===(isblockscoped?_current:_currentFunctBody)[\"(type)\"]&&_.has(exported,labelName);if(_checkOuterShadow(labelName,token,type),isblockscoped){var declaredInCurrentScope=_current[\"(labels)\"][labelName];if(declaredInCurrentScope||_current!==_currentFunctBody||\"global\"===_current[\"(type)\"]||(declaredInCurrentScope=!!_currentFunctBody[\"(parent)\"][\"(labels)\"][labelName]),!declaredInCurrentScope&&_current[\"(usages)\"][labelName]){var usage=_current[\"(usages)\"][labelName];usage[\"(onlyUsedSubFunction)\"]?_latedefWarning(type,labelName,token):warning(\"E056\",token,labelName,type)}declaredInCurrentScope?warning(\"E011\",token,labelName):\"outer\"===state.option.shadow&&scopeManagerInst.funct.has(labelName)&&warning(\"W004\",token,labelName),scopeManagerInst.block.add(labelName,type,token,!isexported)}else{var declaredInCurrentFunctionScope=scopeManagerInst.funct.has(labelName);!declaredInCurrentFunctionScope&&usedSoFarInCurrentFunction(labelName)&&_latedefWarning(type,labelName,token),scopeManagerInst.funct.has(labelName,{onlyBlockscoped:!0})?warning(\"E011\",token,labelName):state.option.shadow!==!0&&declaredInCurrentFunctionScope&&\"__proto__\"!==labelName&&\"global\"!==_currentFunctBody[\"(type)\"]&&warning(\"W004\",token,labelName),scopeManagerInst.funct.add(labelName,type,token,!isexported),\"global\"===_currentFunctBody[\"(type)\"]&&(usedPredefinedAndGlobals[labelName]=marker)}},funct:{labeltype:function(labelName,options){for(var onlyBlockscoped=options&&options.onlyBlockscoped,excludeParams=options&&options.excludeParams,currentScopeIndex=_scopeStack.length-(options&&options.excludeCurrent?2:1),i=currentScopeIndex;i>=0;i--){var current=_scopeStack[i];if(current[\"(labels)\"][labelName]&&(!onlyBlockscoped||current[\"(labels)\"][labelName][\"(blockscoped)\"]))return current[\"(labels)\"][labelName][\"(type)\"];var scopeCheck=excludeParams?_scopeStack[i-1]:current;if(scopeCheck&&\"functionparams\"===scopeCheck[\"(type)\"])return null}return null},hasBreakLabel:function(labelName){for(var i=_scopeStack.length-1;i>=0;i--){var current=_scopeStack[i];if(current[\"(breakLabels)\"][labelName])return!0;if(\"functionparams\"===current[\"(type)\"])return!1}return!1},has:function(labelName,options){return Boolean(this.labeltype(labelName,options))},add:function(labelName,type,tok,unused){_current[\"(labels)\"][labelName]={\"(type)\":type,\"(token)\":tok,\"(blockscoped)\":!1,\"(function)\":_currentFunctBody,\"(unused)\":unused}}},block:{isGlobal:function(){return\"global\"===_current[\"(type)\"]},use:function(labelName,token){var paramScope=_currentFunctBody[\"(parent)\"];paramScope&¶mScope[\"(labels)\"][labelName]&&\"param\"===paramScope[\"(labels)\"][labelName][\"(type)\"]&&(scopeManagerInst.funct.has(labelName,{excludeParams:!0,onlyBlockscoped:!0})||(paramScope[\"(labels)\"][labelName][\"(unused)\"]=!1)),token&&(state.ignored.W117||state.option.undef===!1)&&(token.ignoreUndef=!0),_setupUsages(labelName),token&&(token[\"(function)\"]=_currentFunctBody,_current[\"(usages)\"][labelName][\"(tokens)\"].push(token))},reassign:function(labelName,token){this.modify(labelName,token),_current[\"(usages)\"][labelName][\"(reassigned)\"].push(token)},modify:function(labelName,token){_setupUsages(labelName),_current[\"(usages)\"][labelName][\"(modified)\"].push(token)},add:function(labelName,type,tok,unused){_current[\"(labels)\"][labelName]={\"(type)\":type,\"(token)\":tok,\"(blockscoped)\":!0,\"(unused)\":unused}},addBreakLabel:function(labelName,opts){var token=opts.token;scopeManagerInst.funct.hasBreakLabel(labelName)?warning(\"E011\",token,labelName):\"outer\"===state.option.shadow&&(scopeManagerInst.funct.has(labelName)?warning(\"W004\",token,labelName):_checkOuterShadow(labelName,token)),_current[\"(breakLabels)\"][labelName]=token}}};return scopeManagerInst};module.exports=scopeManager},{\"../lodash\":\"/node_modules/jshint/lodash.js\",events:\"/node_modules/browserify/node_modules/events/events.js\"}],\"/node_modules/jshint/src/state.js\":[function(_dereq_,module,exports){\"use strict\";var NameStack=_dereq_(\"./name-stack.js\"),state={syntax:{},isStrict:function(){return this.directive[\"use strict\"]||this.inClassBody||this.option.module||\"implied\"===this.option.strict},inMoz:function(){return this.option.moz},inES6:function(){return this.option.moz||this.option.esversion>=6},inES5:function(strict){return strict?!(this.option.esversion&&5!==this.option.esversion||this.option.moz):!this.option.esversion||this.option.esversion>=5||this.option.moz},reset:function(){this.tokens={prev:null,next:null,curr:null},this.option={},this.funct=null,this.ignored={},this.directive={},this.jsonMode=!1,this.jsonWarnings=[],this.lines=[],this.tab=\"\",this.cache={},this.ignoredLines={},this.forinifcheckneeded=!1,this.nameStack=new NameStack,this.inClassBody=!1}};exports.state=state},{\"./name-stack.js\":\"/node_modules/jshint/src/name-stack.js\"}],\"/node_modules/jshint/src/style.js\":[function(_dereq_,module,exports){\"use strict\";exports.register=function(linter){linter.on(\"Identifier\",function(data){linter.getOption(\"proto\")||\"__proto__\"===data.name&&linter.warn(\"W103\",{line:data.line,\"char\":data.char,data:[data.name,\"6\"]})}),linter.on(\"Identifier\",function(data){linter.getOption(\"iterator\")||\"__iterator__\"===data.name&&linter.warn(\"W103\",{line:data.line,\"char\":data.char,data:[data.name]})}),linter.on(\"Identifier\",function(data){linter.getOption(\"camelcase\")&&data.name.replace(/^_+|_+$/g,\"\").indexOf(\"_\")>-1&&!data.name.match(/^[A-Z0-9_]*$/)&&linter.warn(\"W106\",{line:data.line,\"char\":data.from,data:[data.name]})}),linter.on(\"String\",function(data){var code,quotmark=linter.getOption(\"quotmark\");quotmark&&(\"single\"===quotmark&&\"'\"!==data.quote&&(code=\"W109\"),\"double\"===quotmark&&'\"'!==data.quote&&(code=\"W108\"),quotmark===!0&&(linter.getCache(\"quotmark\")||linter.setCache(\"quotmark\",data.quote),linter.getCache(\"quotmark\")!==data.quote&&(code=\"W110\")),code&&linter.warn(code,{line:data.line,\"char\":data.char}))}),linter.on(\"Number\",function(data){\".\"===data.value.charAt(0)&&linter.warn(\"W008\",{line:data.line,\"char\":data.char,data:[data.value]}),\".\"===data.value.substr(data.value.length-1)&&linter.warn(\"W047\",{line:data.line,\"char\":data.char,data:[data.value]}),/^00+/.test(data.value)&&linter.warn(\"W046\",{line:data.line,\"char\":data.char,data:[data.value]})}),linter.on(\"String\",function(data){var re=/^(?:javascript|jscript|ecmascript|vbscript|livescript)\\s*:/i;linter.getOption(\"scripturl\")||re.test(data.value)&&linter.warn(\"W107\",{line:data.line,\"char\":data.char})})}},{}],\"/node_modules/jshint/src/vars.js\":[function(_dereq_,module,exports){\"use strict\";exports.reservedVars={arguments:!1,NaN:!1},exports.ecmaIdentifiers={3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},5:{JSON:!1},6:{Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,WeakMap:!1,WeakSet:!1}},exports.browser={Audio:!1,Blob:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CSS:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,Comment:!1,CustomEvent:!1,DOMParser:!1,defaultStatus:!1,Document:!1,document:!1,DocumentFragment:!1,Element:!1,ElementTimeControl:!1,Event:!1,event:!1,fetch:!1,FileReader:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Image:!1,Intl:!1,length:!1,localStorage:!1,location:!1,matchMedia:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationObserver:!1,name:!1,Node:!1,NodeFilter:!1,NodeList:!1,Notification:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,performance:!1,print:!1,Range:!1,requestAnimationFrame:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimationElement:!1,SVGCSSRule:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLineElement:!1,SVGLinearGradientElement:!1,SVGLocatable:!1,SVGMPathElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGSVGElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTransformable:!1,SVGURIReference:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGVKernElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGZoomAndPan:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TimeEvent:!1,top:!1,URL:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},exports.devel={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},exports.worker={importScripts:!0,postMessage:!0,self:!0,FileReaderSync:!0},exports.nonstandard={escape:!1,unescape:!1},exports.couch={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},exports.node={__filename:!1,__dirname:!1,GLOBAL:!1,global:!1,module:!1,acequire:!1,Buffer:!0,console:!0,exports:!0,process:!0,setTimeout:!0,clearTimeout:!0,setInterval:!0,clearInterval:!0,setImmediate:!0,clearImmediate:!0},exports.browserify={__filename:!1,__dirname:!1,global:!1,module:!1,acequire:!1,Buffer:!0,exports:!0,process:!0},exports.phantom={phantom:!0,acequire:!0,WebPage:!0,console:!0,exports:!0},exports.qunit={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,\"throws\":!1},exports.rhino={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},exports.shelljs={target:!1,echo:!1,exit:!1,cd:!1,pwd:!1,ls:!1,find:!1,cp:!1,rm:!1,mv:!1,mkdir:!1,test:!1,cat:!1,sed:!1,grep:!1,which:!1,dirs:!1,pushd:!1,popd:!1,env:!1,exec:!1,chmod:!1,config:!1,error:!1,tempdir:!1},exports.typed={ArrayBuffer:!1,ArrayBufferView:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1},exports.wsh={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},exports.dojo={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},exports.jquery={$:!1,jQuery:!1},exports.mootools={$:!1,$$:!1,Asset:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMEvent:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,IFrame:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},exports.prototypejs={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},exports.yui={YUI:!1,Y:!1,YUI_config:!1},exports.mocha={mocha:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,context:!1,xcontext:!1,before:!1,after:!1,beforeEach:!1,afterEach:!1,suite:!1,test:!1,setup:!1,teardown:!1,suiteSetup:!1,suiteTeardown:!1},exports.jasmine={jasmine:!1,describe:!1,xdescribe:!1,it:!1,xit:!1,beforeEach:!1,afterEach:!1,setFixtures:!1,loadFixtures:!1,spyOn:!1,expect:!1,runs:!1,waitsFor:!1,waits:!1,beforeAll:!1,afterAll:!1,fail:!1,fdescribe:!1,fit:!1,pending:!1}},{}]},{},[\"/node_modules/jshint/src/jshint.js\"])}),ace.define(\"ace/mode/javascript_worker\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/worker/mirror\",\"ace/mode/javascript/jshint\"],function(acequire,exports,module){\"use strict\";function startRegex(arr){return RegExp(\"^(\"+arr.join(\"|\")+\")\")}var oop=acequire(\"../lib/oop\"),Mirror=acequire(\"../worker/mirror\").Mirror,lint=acequire(\"./javascript/jshint\").JSHINT,disabledWarningsRe=startRegex([\"Bad for in variable '(.+)'.\",'Missing \"use strict\"']),errorsRe=startRegex([\"Unexpected\",\"Expected \",\"Confusing (plus|minus)\",\"\\\\{a\\\\} unterminated regular expression\",\"Unclosed \",\"Unmatched \",\"Unbegun comment\",\"Bad invocation\",\"Missing space after\",\"Missing operator at\"]),infoRe=startRegex([\"Expected an assignment\",\"Bad escapement of EOL\",\"Unexpected comma\",\"Unexpected space\",\"Missing radix parameter.\",\"A leading decimal point can\",\"\\\\['{a}'\\\\] is better written in dot notation.\",\"'{a}' used out of scope\"]),JavaScriptWorker=exports.JavaScriptWorker=function(sender){Mirror.call(this,sender),this.setTimeout(500),this.setOptions()};oop.inherits(JavaScriptWorker,Mirror),function(){this.setOptions=function(options){this.options=options||{esnext:!0,moz:!0,devel:!0,browser:!0,node:!0,laxcomma:!0,laxbreak:!0,lastsemic:!0,onevar:!1,passfail:!1,maxerr:100,expr:!0,multistr:!0,globalstrict:!0},this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.changeOptions=function(newOptions){oop.mixin(this.options,newOptions),this.doc.getValue()&&this.deferredUpdate.schedule(100)},this.isValidJS=function(str){try{eval(\"throw 0;\"+str)}catch(e){if(0===e)return!0}return!1},this.onUpdate=function(){var value=this.doc.getValue();if(value=value.replace(/^#!.*\\n/,\"\\n\"),!value)return this.sender.emit(\"annotate\",[]);var errors=[],maxErrorLevel=this.isValidJS(value)?\"warning\":\"error\";lint(value,this.options,this.options.globals);for(var results=lint.errors,errorAdded=!1,i=0;results.length>i;i++){var error=results[i];if(error){var raw=error.raw,type=\"warning\";if(\"Missing semicolon.\"==raw){var str=error.evidence.substr(error.character);str=str.charAt(str.search(/\\S/)),\"error\"==maxErrorLevel&&str&&/[\\w\\d{(['\"]/.test(str)?(error.reason='Missing \";\" before statement',type=\"error\"):type=\"info\"}else{if(disabledWarningsRe.test(raw))continue;infoRe.test(raw)?type=\"info\":errorsRe.test(raw)?(errorAdded=!0,type=maxErrorLevel):\"'{a}' is not defined.\"==raw?type=\"warning\":\"'{a}' is defined but never used.\"==raw&&(type=\"info\")}errors.push({row:error.line-1,column:error.character-1,text:error.reason,type:type,raw:raw})}}this.sender.emit(\"annotate\",errors)}}.call(JavaScriptWorker.prototype)}),ace.define(\"ace/lib/es5-shim\",[\"require\",\"exports\",\"module\"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,\"sentinel\",{}),\"sentinel\"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if(\"function\"!=typeof target)throw new TypeError(\"Function.prototype.bind called on incompatible \"+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,\"__defineGetter__\"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,\"XXX\"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return\"[object Array]\"==_toString(obj)});var boxedString=Object(\"a\"),splitString=\"a\"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,thisp=arguments[1],i=-1,length=self.length>>>0;if(\"[object Function]\"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0,result=[],thisp=arguments[1];if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0,thisp=arguments[1];if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0,thisp=arguments[1];if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0;if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");if(!length&&1==arguments.length)throw new TypeError(\"reduce of empty array with no initial value\");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError(\"reduce of empty array with no initial value\")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):object,length=self.length>>>0;if(\"[object Function]\"!=_toString(fun))throw new TypeError(fun+\" is not a function\");if(!length&&1==arguments.length)throw new TypeError(\"reduceRight of empty array with no initial value\");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError(\"reduceRight of empty array with no initial value\")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&\"[object String]\"==_toString(this)?this.split(\"\"):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT=\"Object.getOwnPropertyDescriptor called on a non-object: \";Object.getOwnPropertyDescriptor=function(object,property){if(\"object\"!=typeof object&&\"function\"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if(\"object\"!=typeof prototype)throw new TypeError(\"typeof prototype[\"+typeof prototype+\"] != 'object'\");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom=\"undefined\"==typeof document||doesDefinePropertyWork(document.createElement(\"div\"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR=\"Property description must be an object: \",ERR_NON_OBJECT_TARGET=\"Object.defineProperty called on non-object: \",ERR_ACCESSORS_NOT_SUPPORTED=\"getters & setters can not be defined on this javascript engine\";Object.defineProperty=function(object,property,descriptor){if(\"object\"!=typeof object&&\"function\"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if(\"object\"!=typeof descriptor&&\"function\"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,\"value\"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,\"get\")&&defineGetter(object,property,descriptor.get),owns(descriptor,\"set\")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return\"function\"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name=\"\";owns(object,name);)name+=\"?\";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if(\"object\"!=typeof object&&\"function\"!=typeof object||null===object)throw new TypeError(\"Object.keys called on a non-object\");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=\"\t\\n\u000b\\f\\r   ᠎              \\u2028\\u2029\";if(!String.prototype.trim||ws.trim()){ws=\"[\"+ws+\"]\";var trimBeginRegexp=RegExp(\"^\"+ws+ws+\"*\"),trimEndRegexp=RegExp(ws+ws+\"*$\");String.prototype.trim=function(){return(this+\"\").replace(trimBeginRegexp,\"\").replace(trimEndRegexp,\"\")}}var toObject=function(o){if(null==o)throw new TypeError(\"can't convert \"+o+\" to object\");return Object(o)}});"; /***/ }), -/* 180 */ +/* 186 */ /*!*********************************************************!*\ !*** ./node_modules/js-beautify/js/lib/beautify-css.js ***! \*********************************************************/ @@ -28093,7 +28097,7 @@ if (true) { /***/ }), -/* 181 */ +/* 187 */ /*!*****************************************************!*\ !*** ./node_modules/js-beautify/js/lib/beautify.js ***! \*****************************************************/ @@ -30922,7 +30926,7 @@ if (true) { /***/ }), -/* 182 */ +/* 188 */ /*!***************************************!*\ !*** (webpack)/buildin/amd-define.js ***! \***************************************/ @@ -30936,10 +30940,12 @@ module.exports = function() { /***/ }), -/* 183 */, -/* 184 */, -/* 185 */, -/* 186 */ +/* 189 */, +/* 190 */, +/* 191 */, +/* 192 */, +/* 193 */, +/* 194 */ /*!*******************************************!*\ !*** ./node_modules/check-error/index.js ***! \*******************************************/ @@ -31123,7 +31129,7 @@ module.exports = { /***/ }), -/* 187 */ +/* 195 */ /*!*****************************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js ***! \*****************************************************************************/ @@ -31161,7 +31167,7 @@ module.exports = function getOwnEnumerablePropertySymbols(obj) { /***/ }), -/* 188 */ +/* 196 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/objDisplay.js ***! \********************************************************/ @@ -31179,8 +31185,8 @@ module.exports = function getOwnEnumerablePropertySymbols(obj) { * Module dependancies */ -var inspect = __webpack_require__(/*! ./inspect */ 131); -var config = __webpack_require__(/*! ../config */ 101); +var inspect = __webpack_require__(/*! ./inspect */ 137); +var config = __webpack_require__(/*! ../config */ 106); /** * ### .objDisplay(object) @@ -31222,7 +31228,7 @@ module.exports = function objDisplay(obj) { /***/ }), -/* 189 */ +/* 197 */ /*!***********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getProperties.js ***! \***********************************************************/ @@ -31269,7 +31275,7 @@ module.exports = function getProperties(object) { /***/ }), -/* 190 */ +/* 198 */ /*!*********************************************!*\ !*** ./node_modules/get-func-name/index.js ***! \*********************************************/ @@ -31325,7 +31331,7 @@ module.exports = getFuncName; /***/ }), -/* 191 */ +/* 199 */ /*!*******************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getActual.js ***! \*******************************************************/ @@ -31356,7 +31362,7 @@ module.exports = function getActual(obj, args) { /***/ }), -/* 192 */ +/* 200 */ /*!***********************************************!*\ !*** ./node_modules/assertion-error/index.js ***! \***********************************************/ @@ -31483,7 +31489,7 @@ AssertionError.prototype.toJSON = function (stack) { /***/ }), -/* 193 */ +/* 201 */ /*!**************************************************!*\ !*** ./node_modules/normalize.css/normalize.css ***! \**************************************************/ @@ -31493,7 +31499,7 @@ AssertionError.prototype.toJSON = function (stack) { // extracted by mini-css-extract-plugin /***/ }), -/* 194 */ +/* 202 */ /*!*************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/array-set.js ***! \*************************************************************************/ @@ -31508,7 +31514,7 @@ AssertionError.prototype.toJSON = function (stack) { * http://opensource.org/licenses/BSD-3-Clause */ -var util = __webpack_require__(/*! ./util */ 112); +var util = __webpack_require__(/*! ./util */ 118); var has = Object.prototype.hasOwnProperty; var hasNativeMap = typeof Map !== "undefined"; @@ -31625,7 +31631,7 @@ exports.ArraySet = ArraySet; /***/ }), -/* 195 */ +/* 203 */ /*!**************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js ***! \**************************************************************************/ @@ -31670,7 +31676,7 @@ exports.ArraySet = ArraySet; * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -var base64 = __webpack_require__(/*! ./base64 */ 291); +var base64 = __webpack_require__(/*! ./base64 */ 299); // A single base 64 digit can contain 6 bits of data. For the base 64 variable // length quantities we use in the source map spec, the first bit is the sign, @@ -31776,7 +31782,7 @@ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { /***/ }), -/* 196 */ +/* 204 */ /*!************************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js ***! \************************************************************************************/ @@ -31791,10 +31797,10 @@ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { * http://opensource.org/licenses/BSD-3-Clause */ -var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 195); -var util = __webpack_require__(/*! ./util */ 112); -var ArraySet = __webpack_require__(/*! ./array-set */ 194).ArraySet; -var MappingList = __webpack_require__(/*! ./mapping-list */ 290).MappingList; +var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 203); +var util = __webpack_require__(/*! ./util */ 118); +var ArraySet = __webpack_require__(/*! ./array-set */ 202).ArraySet; +var MappingList = __webpack_require__(/*! ./mapping-list */ 298).MappingList; /** * An instance of the SourceMapGenerator represents a source map which is @@ -32212,7 +32218,7 @@ exports.SourceMapGenerator = SourceMapGenerator; /***/ }), -/* 197 */ +/* 205 */ /*!******************************************!*\ !*** ./node_modules/esutils/lib/code.js ***! \******************************************/ @@ -32358,7 +32364,7 @@ exports.SourceMapGenerator = SourceMapGenerator; /***/ }), -/* 198 */ +/* 206 */ /*!***********************************************************!*\ !*** ./node_modules/jszip/lib/reader/Uint8ArrayReader.js ***! \***********************************************************/ @@ -32368,8 +32374,8 @@ exports.SourceMapGenerator = SourceMapGenerator; "use strict"; -var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 200); -var utils = __webpack_require__(/*! ../utils */ 65); +var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 208); +var utils = __webpack_require__(/*! ../utils */ 68); function Uint8ArrayReader(data) { ArrayReader.call(this, data); @@ -32392,7 +32398,7 @@ module.exports = Uint8ArrayReader; /***/ }), -/* 199 */ +/* 207 */ /*!*****************************************************!*\ !*** ./node_modules/jszip/lib/reader/DataReader.js ***! \*****************************************************/ @@ -32402,7 +32408,7 @@ module.exports = Uint8ArrayReader; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 65); +var utils = __webpack_require__(/*! ../utils */ 68); function DataReader(data) { this.data = data; // type : see implementation @@ -32520,7 +32526,7 @@ module.exports = DataReader; /***/ }), -/* 200 */ +/* 208 */ /*!******************************************************!*\ !*** ./node_modules/jszip/lib/reader/ArrayReader.js ***! \******************************************************/ @@ -32530,8 +32536,8 @@ module.exports = DataReader; "use strict"; -var DataReader = __webpack_require__(/*! ./DataReader */ 199); -var utils = __webpack_require__(/*! ../utils */ 65); +var DataReader = __webpack_require__(/*! ./DataReader */ 207); +var utils = __webpack_require__(/*! ../utils */ 68); function ArrayReader(data) { DataReader.call(this, data); @@ -32589,7 +32595,7 @@ module.exports = ArrayReader; /***/ }), -/* 201 */ +/* 209 */ /*!****************************************************!*\ !*** ./node_modules/jszip/lib/reader/readerFor.js ***! \****************************************************/ @@ -32600,12 +32606,12 @@ module.exports = ArrayReader; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 65); -var support = __webpack_require__(/*! ../support */ 98); -var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 200); -var StringReader = __webpack_require__(/*! ./StringReader */ 301); -var NodeBufferReader = __webpack_require__(/*! ./NodeBufferReader */ 300); -var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 198); +var utils = __webpack_require__(/*! ../utils */ 68); +var support = __webpack_require__(/*! ../support */ 103); +var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 208); +var StringReader = __webpack_require__(/*! ./StringReader */ 309); +var NodeBufferReader = __webpack_require__(/*! ./NodeBufferReader */ 308); +var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 206); /** * Create a reader adapted to the data. @@ -32629,7 +32635,7 @@ module.exports = function (data) { /***/ }), -/* 202 */ +/* 210 */ /*!*********************************************!*\ !*** ./node_modules/jszip/lib/signature.js ***! \*********************************************/ @@ -32648,7 +32654,7 @@ exports.DATA_DESCRIPTOR = "PK\x07\x08"; /***/ }), -/* 203 */ +/* 211 */ /*!*************************************************!*\ !*** ./node_modules/pako/lib/zlib/constants.js ***! \*************************************************/ @@ -32728,7 +32734,7 @@ module.exports = { /***/ }), -/* 204 */ +/* 212 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/zstream.js ***! \***********************************************/ @@ -32787,7 +32793,7 @@ module.exports = ZStream; /***/ }), -/* 205 */ +/* 213 */ /*!************************************************!*\ !*** ./node_modules/pako/lib/utils/strings.js ***! \************************************************/ @@ -32800,7 +32806,7 @@ module.exports = ZStream; -var utils = __webpack_require__(/*! ./common */ 97); +var utils = __webpack_require__(/*! ./common */ 102); // Quick check if we can use fast array to bin string conversion @@ -32984,7 +32990,7 @@ exports.utf8border = function (buf, max) { /***/ }), -/* 206 */ +/* 214 */ /*!*********************************************!*\ !*** ./node_modules/pako/lib/zlib/crc32.js ***! \*********************************************/ @@ -33055,7 +33061,7 @@ module.exports = crc32; /***/ }), -/* 207 */ +/* 215 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/adler32.js ***! \***********************************************/ @@ -33118,7 +33124,7 @@ module.exports = adler32; /***/ }), -/* 208 */ +/* 216 */ /*!************************************************!*\ !*** ./node_modules/jszip/lib/compressions.js ***! \************************************************/ @@ -33129,7 +33135,7 @@ module.exports = adler32; "use strict"; -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 85); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 89); exports.STORE = { magic: "\x00\x00", @@ -33140,11 +33146,11 @@ exports.STORE = { return new GenericWorker("STORE decompression"); } }; -exports.DEFLATE = __webpack_require__(/*! ./flate */ 315); +exports.DEFLATE = __webpack_require__(/*! ./flate */ 323); /***/ }), -/* 209 */ +/* 217 */ /*!*****************************************************!*\ !*** ./node_modules/jszip/lib/stream/Crc32Probe.js ***! \*****************************************************/ @@ -33155,9 +33161,9 @@ exports.DEFLATE = __webpack_require__(/*! ./flate */ 315); "use strict"; -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 85); -var crc32 = __webpack_require__(/*! ../crc32 */ 171); -var utils = __webpack_require__(/*! ../utils */ 65); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 89); +var crc32 = __webpack_require__(/*! ../crc32 */ 177); +var utils = __webpack_require__(/*! ../utils */ 68); /** * A worker which calculate the crc32 of the data flowing through. @@ -33180,7 +33186,7 @@ module.exports = Crc32Probe; /***/ }), -/* 210 */ +/* 218 */ /*!**********************************************************!*\ !*** ./node_modules/jszip/lib/stream/DataLengthProbe.js ***! \**********************************************************/ @@ -33191,8 +33197,8 @@ module.exports = Crc32Probe; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 65); -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 85); +var utils = __webpack_require__(/*! ../utils */ 68); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 89); /** * A worker which calculate the total length of the data flowing through. @@ -33221,7 +33227,7 @@ module.exports = DataLengthProbe; /***/ }), -/* 211 */ +/* 219 */ /*!*****************************************************!*\ !*** ./node_modules/jszip/lib/stream/DataWorker.js ***! \*****************************************************/ @@ -33232,8 +33238,8 @@ module.exports = DataLengthProbe; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 65); -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 85); +var utils = __webpack_require__(/*! ../utils */ 68); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 89); // the size of the generated chunks // TODO expose this as a public variable @@ -33349,7 +33355,7 @@ module.exports = DataWorker; /***/ }), -/* 212 */ +/* 220 */ /*!********************************************!*\ !*** ./node_modules/jszip/lib/defaults.js ***! \********************************************/ @@ -33372,7 +33378,7 @@ exports.dosPermissions = null; /***/ }), -/* 213 */ +/* 221 */ /*!*******************************************************!*\ !*** ./node_modules/jszip/lib/stream/StreamHelper.js ***! \*******************************************************/ @@ -33383,17 +33389,17 @@ exports.dosPermissions = null; "use strict"; /* WEBPACK VAR INJECTION */(function(Buffer) { -var utils = __webpack_require__(/*! ../utils */ 65); -var ConvertWorker = __webpack_require__(/*! ./ConvertWorker */ 319); -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 85); -var base64 = __webpack_require__(/*! ../base64 */ 218); -var support = __webpack_require__(/*! ../support */ 98); -var external = __webpack_require__(/*! ../external */ 113); +var utils = __webpack_require__(/*! ../utils */ 68); +var ConvertWorker = __webpack_require__(/*! ./ConvertWorker */ 327); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 89); +var base64 = __webpack_require__(/*! ../base64 */ 226); +var support = __webpack_require__(/*! ../support */ 103); +var external = __webpack_require__(/*! ../external */ 119); var NodejsStreamOutputAdapter = null; if (support.nodestream) { try { - NodejsStreamOutputAdapter = __webpack_require__(/*! ../nodejs/NodejsStreamOutputAdapter */ 318); + NodejsStreamOutputAdapter = __webpack_require__(/*! ../nodejs/NodejsStreamOutputAdapter */ 326); } catch(e) {} } @@ -33594,10 +33600,10 @@ StreamHelper.prototype = { module.exports = StreamHelper; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../buffer/index.js */ 115).Buffer)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../buffer/index.js */ 121).Buffer)) /***/ }), -/* 214 */ +/* 222 */ /*!********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_dom-create.js ***! \********************************************************************************/ @@ -33605,8 +33611,8 @@ module.exports = StreamHelper; /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(/*! ./_is-object */ 174) - , document = __webpack_require__(/*! ./_global */ 132).document +var isObject = __webpack_require__(/*! ./_is-object */ 180) + , document = __webpack_require__(/*! ./_global */ 138).document // in old IE typeof document.createElement is 'object' , is = isObject(document) && isObject(document.createElement); module.exports = function(it){ @@ -33614,7 +33620,7 @@ module.exports = function(it){ }; /***/ }), -/* 215 */ +/* 223 */ /*!***************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_fails.js ***! \***************************************************************************/ @@ -33631,7 +33637,7 @@ module.exports = function(exec){ }; /***/ }), -/* 216 */ +/* 224 */ /*!*************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_ctx.js ***! \*************************************************************************/ @@ -33640,7 +33646,7 @@ module.exports = function(exec){ /***/ (function(module, exports, __webpack_require__) { // optional / simple context binding -var aFunction = __webpack_require__(/*! ./_a-function */ 332); +var aFunction = __webpack_require__(/*! ./_a-function */ 340); module.exports = function(fn, that, length){ aFunction(fn); if(that === undefined)return fn; @@ -33661,7 +33667,7 @@ module.exports = function(fn, that, length){ }; /***/ }), -/* 217 */ +/* 225 */ /*!**************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_core.js ***! \**************************************************************************/ @@ -33673,7 +33679,7 @@ var core = module.exports = {version: '2.3.0'}; if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef /***/ }), -/* 218 */ +/* 226 */ /*!******************************************!*\ !*** ./node_modules/jszip/lib/base64.js ***! \******************************************/ @@ -33683,8 +33689,8 @@ if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef "use strict"; -var utils = __webpack_require__(/*! ./utils */ 65); -var support = __webpack_require__(/*! ./support */ 98); +var utils = __webpack_require__(/*! ./utils */ 68); +var support = __webpack_require__(/*! ./support */ 103); // private property var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; @@ -33791,7 +33797,7 @@ exports.decode = function(input) { /***/ }), -/* 219 */ +/* 227 */ /*!***************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_transform.js ***! \***************************************************************/ @@ -33867,11 +33873,11 @@ exports.decode = function(input) { module.exports = Transform; -var Duplex = __webpack_require__(/*! ./_stream_duplex */ 103); +var Duplex = __webpack_require__(/*! ./_stream_duplex */ 108); /**/ -var util = __webpack_require__(/*! core-util-is */ 114); -util.inherits = __webpack_require__(/*! inherits */ 110); +var util = __webpack_require__(/*! core-util-is */ 120); +util.inherits = __webpack_require__(/*! inherits */ 116); /**/ util.inherits(Transform, Duplex); @@ -34016,7 +34022,7 @@ function done(stream, er, data) { } /***/ }), -/* 220 */ +/* 228 */ /*!***********************************************************!*\ !*** ./node_modules/string_decoder/lib/string_decoder.js ***! \***********************************************************/ @@ -34027,7 +34033,7 @@ function done(stream, er, data) { "use strict"; -var Buffer = __webpack_require__(/*! safe-buffer */ 134).Buffer; +var Buffer = __webpack_require__(/*! safe-buffer */ 140).Buffer; var isEncoding = Buffer.isEncoding || function (encoding) { encoding = '' + encoding; @@ -34299,7 +34305,7 @@ function simpleEnd(buf) { } /***/ }), -/* 221 */ +/* 229 */ /*!**********************************************************************!*\ !*** ./node_modules/readable-stream/lib/internal/streams/destroy.js ***! \**********************************************************************/ @@ -34312,7 +34318,7 @@ function simpleEnd(buf) { /**/ -var processNextTick = __webpack_require__(/*! process-nextick-args */ 135).nextTick; +var processNextTick = __webpack_require__(/*! process-nextick-args */ 141).nextTick; /**/ // undocumented cb() API, needed for core, not for public API @@ -34384,9 +34390,9 @@ module.exports = { }; /***/ }), -/* 222 */, -/* 223 */, -/* 224 */ +/* 230 */, +/* 231 */, +/* 232 */ /*!*****************************************************************************!*\ !*** ./node_modules/readable-stream/lib/internal/streams/stream-browser.js ***! \*****************************************************************************/ @@ -34394,11 +34400,11 @@ module.exports = { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! events */ 177).EventEmitter; +module.exports = __webpack_require__(/*! events */ 183).EventEmitter; /***/ }), -/* 225 */ +/* 233 */ /*!**************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_readable.js ***! \**************************************************************/ @@ -34432,13 +34438,13 @@ module.exports = __webpack_require__(/*! events */ 177).EventEmitter; /**/ -var processNextTick = __webpack_require__(/*! process-nextick-args */ 135).nextTick; +var processNextTick = __webpack_require__(/*! process-nextick-args */ 141).nextTick; /**/ module.exports = Readable; /**/ -var isArray = __webpack_require__(/*! isarray */ 227); +var isArray = __webpack_require__(/*! isarray */ 235); /**/ /**/ @@ -34448,7 +34454,7 @@ var Duplex; Readable.ReadableState = ReadableState; /**/ -var EE = __webpack_require__(/*! events */ 177).EventEmitter; +var EE = __webpack_require__(/*! events */ 183).EventEmitter; var EElistenerCount = function (emitter, type) { return emitter.listeners(type).length; @@ -34456,12 +34462,12 @@ var EElistenerCount = function (emitter, type) { /**/ /**/ -var Stream = __webpack_require__(/*! ./internal/streams/stream */ 224); +var Stream = __webpack_require__(/*! ./internal/streams/stream */ 232); /**/ /**/ -var Buffer = __webpack_require__(/*! safe-buffer */ 134).Buffer; +var Buffer = __webpack_require__(/*! safe-buffer */ 140).Buffer; var OurUint8Array = global.Uint8Array || function () {}; function _uint8ArrayToBuffer(chunk) { return Buffer.from(chunk); @@ -34473,12 +34479,12 @@ function _isUint8Array(obj) { /**/ /**/ -var util = __webpack_require__(/*! core-util-is */ 114); -util.inherits = __webpack_require__(/*! inherits */ 110); +var util = __webpack_require__(/*! core-util-is */ 120); +util.inherits = __webpack_require__(/*! inherits */ 116); /**/ /**/ -var debugUtil = __webpack_require__(/*! util */ 223); +var debugUtil = __webpack_require__(/*! util */ 231); var debug = void 0; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); @@ -34487,8 +34493,8 @@ if (debugUtil && debugUtil.debuglog) { } /**/ -var BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ 342); -var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 221); +var BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ 350); +var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 229); var StringDecoder; util.inherits(Readable, Stream); @@ -34508,7 +34514,7 @@ function prependListener(emitter, event, fn) { } function ReadableState(options, stream) { - Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 103); + Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 108); options = options || {}; @@ -34578,14 +34584,14 @@ function ReadableState(options, stream) { this.decoder = null; this.encoding = null; if (options.encoding) { - if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 220).StringDecoder; + if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 228).StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } function Readable(options) { - Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 103); + Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 108); if (!(this instanceof Readable)) return new Readable(options); @@ -34734,7 +34740,7 @@ Readable.prototype.isPaused = function () { // backwards compatibility. Readable.prototype.setEncoding = function (enc) { - if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 220).StringDecoder; + if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 228).StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; return this; @@ -35422,10 +35428,10 @@ function indexOf(xs, x) { } return -1; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 91), __webpack_require__(/*! ./../../process/browser.js */ 116))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 95), __webpack_require__(/*! ./../../process/browser.js */ 122))) /***/ }), -/* 226 */ +/* 234 */ /*!***********************************************************!*\ !*** ./node_modules/jszip/lib/readable-stream-browser.js ***! \***********************************************************/ @@ -35441,11 +35447,11 @@ function indexOf(xs, x) { * reduce the final size of the bundle (only one stream implementation, not * two). */ -module.exports = __webpack_require__(/*! stream */ 343); +module.exports = __webpack_require__(/*! stream */ 351); /***/ }), -/* 227 */ +/* 235 */ /*!***************************************!*\ !*** ./node_modules/isarray/index.js ***! \***************************************/ @@ -35461,7 +35467,7 @@ module.exports = Array.isArray || function (arr) { /***/ }), -/* 228 */ +/* 236 */ /*!*************************************************!*\ !*** ./node_modules/jsplumb/dist/js/jsplumb.js ***! \*************************************************/ @@ -50158,7 +50164,7 @@ module.exports = Array.isArray || function (arr) { /***/ }), -/* 229 */ +/* 237 */ /*!************************************************!*\ !*** ./node_modules/timers-browserify/main.js ***! \************************************************/ @@ -50219,7 +50225,7 @@ exports._unrefActive = exports.active = function(item) { }; // setimmediate attaches itself to the global object -__webpack_require__(/*! setimmediate */ 347); +__webpack_require__(/*! setimmediate */ 355); // On some exotic environments, it's not clear which object `setimmediate` was // able to install onto. Search each possibility in the same order as the // `setimmediate` library. @@ -50230,10 +50236,10 @@ exports.clearImmediate = (typeof self !== "undefined" && self.clearImmediate) || (typeof global !== "undefined" && global.clearImmediate) || (this && this.clearImmediate); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 91))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 95))) /***/ }), -/* 230 */ +/* 238 */ /*!******************************************************!*\ !*** ./node_modules/bluebird/js/browser/bluebird.js ***! \******************************************************/ @@ -55543,10 +55549,10 @@ module.exports = ret; },{"./es5":13}]},{},[4])(4) }); ;if (typeof window !== 'undefined' && window !== null) { window.P = window.Promise; } else if (typeof self !== 'undefined' && self !== null) { self.P = self.Promise; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ 116), __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 91), __webpack_require__(/*! ./../../../timers-browserify/main.js */ 229).setImmediate)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ 122), __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 95), __webpack_require__(/*! ./../../../timers-browserify/main.js */ 237).setImmediate)) /***/ }), -/* 231 */ +/* 239 */ /*!**************************************************!*\ !*** ./node_modules/brace/ext/language_tools.js ***! \**************************************************/ @@ -57512,7 +57518,7 @@ acequire("../config").defineOptions(Editor.prototype, "editor", { /***/ }), -/* 232 */ +/* 240 */ /*!************************************************!*\ !*** ./node_modules/brace/keybinding/emacs.js ***! \************************************************/ @@ -58704,7 +58710,7 @@ exports.killRing = { /***/ }), -/* 233 */ +/* 241 */ /*!**********************************************!*\ !*** ./node_modules/brace/keybinding/vim.js ***! \**********************************************/ @@ -64313,7 +64319,7 @@ dom.importCssString(".normal-mode .ace_cursor{\ /***/ }), -/* 234 */ +/* 242 */ /*!*******************************************!*\ !*** ./node_modules/brace/theme/xcode.js ***! \*******************************************/ @@ -64412,7 +64418,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 235 */ +/* 243 */ /*!**********************************************!*\ !*** ./node_modules/brace/theme/twilight.js ***! \**********************************************/ @@ -64532,7 +64538,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 236 */ +/* 244 */ /*!**********************************************!*\ !*** ./node_modules/brace/theme/terminal.js ***! \**********************************************/ @@ -64657,7 +64663,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 237 */ +/* 245 */ /*!*****************************************************!*\ !*** ./node_modules/brace/theme/solarized_light.js ***! \*****************************************************/ @@ -64759,7 +64765,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 238 */ +/* 246 */ /*!****************************************************!*\ !*** ./node_modules/brace/theme/solarized_dark.js ***! \****************************************************/ @@ -64858,7 +64864,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 239 */ +/* 247 */ /*!*********************************************!*\ !*** ./node_modules/brace/theme/monokai.js ***! \*********************************************/ @@ -64974,7 +64980,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 240 */ +/* 248 */ /*!********************************************!*\ !*** ./node_modules/brace/theme/chrome.js ***! \********************************************/ @@ -65113,7 +65119,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 241 */ +/* 249 */ /*!*******************************************!*\ !*** ./node_modules/brace/theme/chaos.js ***! \*******************************************/ @@ -65280,7 +65286,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 242 */ +/* 250 */ /*!***********************************************!*\ !*** ./node_modules/brace/mode/javascript.js ***! \***********************************************/ @@ -66058,7 +66064,7 @@ oop.inherits(Mode, TextMode); }; this.createWorker = function(session) { - var worker = new WorkerClient(["ace"], __webpack_require__(/*! ../worker/javascript */ 179), "JavaScriptWorker"); + var worker = new WorkerClient(["ace"], __webpack_require__(/*! ../worker/javascript */ 185), "JavaScriptWorker"); worker.attachToDocument(session.getDocument()); worker.on("annotate", function(results) { @@ -66080,7 +66086,7 @@ exports.Mode = Mode; /***/ }), -/* 243 */ +/* 251 */ /*!**********************************************!*\ !*** ./node_modules/js-beautify/js/index.js ***! \**********************************************/ @@ -66153,9 +66159,9 @@ function get_beautify(js_beautify, css_beautify, html_beautify) { if (true) { // Add support for AMD ( https://github.com/amdjs/amdjs-api/wiki/AMD#defineamd-property- ) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [ - __webpack_require__(/*! ./lib/beautify */ 181), - __webpack_require__(/*! ./lib/beautify-css */ 180), - __webpack_require__(/*! ./lib/beautify-html */ 348) + __webpack_require__(/*! ./lib/beautify */ 187), + __webpack_require__(/*! ./lib/beautify-css */ 186), + __webpack_require__(/*! ./lib/beautify-html */ 356) ], __WEBPACK_AMD_DEFINE_RESULT__ = (function(js_beautify, css_beautify, html_beautify) { return get_beautify(js_beautify, css_beautify, html_beautify); }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), @@ -66163,7 +66169,7 @@ if (true) { } else {} /***/ }), -/* 244 */ +/* 252 */ /*!*************************************!*\ !*** ./node_modules/brace/index.js ***! \*************************************/ @@ -70351,7 +70357,7 @@ init(true);function init(packaged) { if (!global || !global.document) return; - options.packaged = packaged || acequire.packaged || module.packaged || (global.define && __webpack_require__(/*! !webpack amd define */ 182).packaged); + options.packaged = packaged || acequire.packaged || module.packaged || (global.define && __webpack_require__(/*! !webpack amd define */ 188).packaged); var scriptOptions = {}; var scriptUrl = ""; @@ -86378,7 +86384,7 @@ exports.config = acequire("./config"); exports.acequire = acequire; if (true) - exports.define = __webpack_require__(/*! !webpack amd define */ 182); + exports.define = __webpack_require__(/*! !webpack amd define */ 188); exports.edit = function(el) { if (typeof el == "string") { var _id = el; @@ -86445,11 +86451,12 @@ exports.version = "1.2.9"; module.exports = window.ace.acequire("ace/ace"); /***/ }), -/* 245 */ +/* 253 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/ru.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86458,7 +86465,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86489,11 +86496,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 246 */ +/* 254 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/pl.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86502,7 +86510,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86530,11 +86538,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 247 */ +/* 255 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/no.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86543,7 +86552,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86571,11 +86580,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 248 */ +/* 256 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/lv.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86584,7 +86594,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86612,11 +86622,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 249 */ +/* 257 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/it.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86625,7 +86636,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86653,11 +86664,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 250 */ +/* 258 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/hu.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86666,7 +86678,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86694,11 +86706,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 251 */ +/* 259 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/fr.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86707,7 +86720,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86735,11 +86748,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 252 */ +/* 260 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/es.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86748,7 +86762,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86781,11 +86795,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 253 */ +/* 261 */ /*!***********************************************!*\ !*** ./node_modules/numeral/locales/en-gb.js ***! \***********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86794,7 +86809,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86826,11 +86841,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 254 */ +/* 262 */ /*!***********************************************!*\ !*** ./node_modules/numeral/locales/en-au.js ***! \***********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86839,7 +86855,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86871,11 +86887,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 255 */ +/* 263 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/de.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86884,7 +86901,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86912,11 +86929,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 256 */ +/* 264 */ /*!***********************************************!*\ !*** ./node_modules/numeral/locales/da-dk.js ***! \***********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86925,7 +86943,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86953,11 +86971,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 257 */ +/* 265 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/cs.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -86966,7 +86985,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -86994,11 +87013,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 258 */ +/* 266 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/bg.js ***! \********************************************/ /*! no static exports found */ +/*! all exports used */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;// numeral.js locale configuration @@ -87007,7 +87027,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 70)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 80)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); @@ -87043,7 +87063,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 259 */ +/* 267 */ /*!***************************************************************!*\ !*** ./node_modules/chai-as-promised/lib/chai-as-promised.js ***! \***************************************************************/ @@ -87054,7 +87074,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ "use strict"; /* eslint-disable no-invalid-this */ -let checkError = __webpack_require__(/*! check-error */ 186); +let checkError = __webpack_require__(/*! check-error */ 194); module.exports = (chai, utils) => { const Assertion = chai.Assertion; @@ -87416,7 +87436,7 @@ module.exports.transformAsserterArgs = values => values; /***/ }), -/* 260 */ +/* 268 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/interface/assert.js ***! \********************************************************/ @@ -90525,7 +90545,7 @@ module.exports = function (chai, util) { /***/ }), -/* 261 */ +/* 269 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/interface/should.js ***! \********************************************************/ @@ -90740,7 +90760,7 @@ module.exports = function (chai, util) { /***/ }), -/* 262 */ +/* 270 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/interface/expect.js ***! \********************************************************/ @@ -90785,7 +90805,7 @@ module.exports = function (chai, util) { /***/ }), -/* 263 */ +/* 271 */ /*!*******************************************************!*\ !*** ./node_modules/chai/lib/chai/core/assertions.js ***! \*******************************************************/ @@ -94525,7 +94545,7 @@ module.exports = function (chai, _) { /***/ }), -/* 264 */ +/* 272 */ /*!*************************************************!*\ !*** ./node_modules/chai/lib/chai/assertion.js ***! \*************************************************/ @@ -94540,7 +94560,7 @@ module.exports = function (chai, _) { * MIT Licensed */ -var config = __webpack_require__(/*! ./config */ 101); +var config = __webpack_require__(/*! ./config */ 106); module.exports = function (_chai, util) { /*! @@ -94701,7 +94721,7 @@ module.exports = function (_chai, util) { /***/ }), -/* 265 */ +/* 273 */ /*!***************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/isNaN.js ***! \***************************************************/ @@ -94738,7 +94758,7 @@ module.exports = Number.isNaN || isNaN; /***/ }), -/* 266 */ +/* 274 */ /*!************************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js ***! \************************************************************************/ @@ -94756,7 +94776,7 @@ module.exports = Number.isNaN || isNaN; * Module dependancies */ -var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 187); +var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 195); /** * ### .getOwnEnumerableProperties(object) @@ -94778,7 +94798,7 @@ module.exports = function getOwnEnumerableProperties(obj) { /***/ }), -/* 267 */ +/* 275 */ /*!**************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/compareByInspect.js ***! \**************************************************************/ @@ -94796,7 +94816,7 @@ module.exports = function getOwnEnumerableProperties(obj) { * Module dependancies */ -var inspect = __webpack_require__(/*! ./inspect */ 131); +var inspect = __webpack_require__(/*! ./inspect */ 137); /** * ### .compareByInspect(mixed, mixed) @@ -94820,7 +94840,7 @@ module.exports = function compareByInspect(a, b) { /***/ }), -/* 268 */ +/* 276 */ /*!**********************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/overwriteChainableMethod.js ***! \**********************************************************************/ @@ -94834,8 +94854,8 @@ module.exports = function compareByInspect(a, b) { * MIT Licensed */ -var chai = __webpack_require__(/*! ../../chai */ 102); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 100); +var chai = __webpack_require__(/*! ../../chai */ 107); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 105); /** * ### .overwriteChainableMethod(ctx, name, method, chainingBehavior) @@ -94900,7 +94920,7 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe /***/ }), -/* 269 */ +/* 277 */ /*!****************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/addChainableMethod.js ***! \****************************************************************/ @@ -94918,11 +94938,11 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe * Module dependencies */ -var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 129); -var chai = __webpack_require__(/*! ../../chai */ 102); -var flag = __webpack_require__(/*! ./flag */ 90); -var proxify = __webpack_require__(/*! ./proxify */ 128); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 100); +var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 135); +var chai = __webpack_require__(/*! ../../chai */ 107); +var flag = __webpack_require__(/*! ./flag */ 94); +var proxify = __webpack_require__(/*! ./proxify */ 134); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 105); /*! * Module variables @@ -95063,7 +95083,7 @@ module.exports = function addChainableMethod(ctx, name, method, chainingBehavior /***/ }), -/* 270 */ +/* 278 */ /*!*************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/overwriteMethod.js ***! \*************************************************************/ @@ -95077,11 +95097,11 @@ module.exports = function addChainableMethod(ctx, name, method, chainingBehavior * MIT Licensed */ -var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 129); -var chai = __webpack_require__(/*! ../../chai */ 102); -var flag = __webpack_require__(/*! ./flag */ 90); -var proxify = __webpack_require__(/*! ./proxify */ 128); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 100); +var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 135); +var chai = __webpack_require__(/*! ../../chai */ 107); +var flag = __webpack_require__(/*! ./flag */ 94); +var proxify = __webpack_require__(/*! ./proxify */ 134); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 105); /** * ### .overwriteMethod(ctx, name, fn) @@ -95166,7 +95186,7 @@ module.exports = function overwriteMethod(ctx, name, method) { /***/ }), -/* 271 */ +/* 279 */ /*!***************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/overwriteProperty.js ***! \***************************************************************/ @@ -95180,10 +95200,10 @@ module.exports = function overwriteMethod(ctx, name, method) { * MIT Licensed */ -var chai = __webpack_require__(/*! ../../chai */ 102); -var flag = __webpack_require__(/*! ./flag */ 90); -var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 130); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 100); +var chai = __webpack_require__(/*! ../../chai */ 107); +var flag = __webpack_require__(/*! ./flag */ 94); +var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 136); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 105); /** * ### .overwriteProperty(ctx, name, fn) @@ -95269,7 +95289,7 @@ module.exports = function overwriteProperty(ctx, name, getter) { /***/ }), -/* 272 */ +/* 280 */ /*!*******************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/addMethod.js ***! \*******************************************************/ @@ -95283,11 +95303,11 @@ module.exports = function overwriteProperty(ctx, name, getter) { * MIT Licensed */ -var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 129); -var chai = __webpack_require__(/*! ../../chai */ 102); -var flag = __webpack_require__(/*! ./flag */ 90); -var proxify = __webpack_require__(/*! ./proxify */ 128); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 100); +var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 135); +var chai = __webpack_require__(/*! ../../chai */ 107); +var flag = __webpack_require__(/*! ./flag */ 94); +var proxify = __webpack_require__(/*! ./proxify */ 134); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 105); /** * ### .addMethod(ctx, name, method) @@ -95348,7 +95368,7 @@ module.exports = function addMethod(ctx, name, method) { /***/ }), -/* 273 */ +/* 281 */ /*!*********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/addProperty.js ***! \*********************************************************/ @@ -95362,10 +95382,10 @@ module.exports = function addMethod(ctx, name, method) { * MIT Licensed */ -var chai = __webpack_require__(/*! ../../chai */ 102); -var flag = __webpack_require__(/*! ./flag */ 90); -var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 130); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 100); +var chai = __webpack_require__(/*! ../../chai */ 107); +var flag = __webpack_require__(/*! ./flag */ 94); +var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 136); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 105); /** * ### .addProperty(ctx, name, getter) @@ -95431,7 +95451,7 @@ module.exports = function addProperty(ctx, name, getter) { /***/ }), -/* 274 */ +/* 282 */ /*!****************************************!*\ !*** ./node_modules/deep-eql/index.js ***! \****************************************/ @@ -95448,7 +95468,7 @@ module.exports = function addProperty(ctx, name, getter) { * MIT Licensed */ -var type = __webpack_require__(/*! type-detect */ 141); +var type = __webpack_require__(/*! type-detect */ 147); function FakeMap() { this._key = 'chai/deep-eql__' + Math.random() + Date.now(); } @@ -95898,7 +95918,7 @@ function isPrimitive(value) { /***/ }), -/* 275 */ +/* 283 */ /*!*********************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getEnumerableProperties.js ***! \*********************************************************************/ @@ -95935,7 +95955,7 @@ module.exports = function getEnumerableProperties(object) { /***/ }), -/* 276 */ +/* 284 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getMessage.js ***! \********************************************************/ @@ -95953,10 +95973,10 @@ module.exports = function getEnumerableProperties(object) { * Module dependancies */ -var flag = __webpack_require__(/*! ./flag */ 90) - , getActual = __webpack_require__(/*! ./getActual */ 191) - , inspect = __webpack_require__(/*! ./inspect */ 131) - , objDisplay = __webpack_require__(/*! ./objDisplay */ 188); +var flag = __webpack_require__(/*! ./flag */ 94) + , getActual = __webpack_require__(/*! ./getActual */ 199) + , inspect = __webpack_require__(/*! ./inspect */ 137) + , objDisplay = __webpack_require__(/*! ./objDisplay */ 196); /** * ### .getMessage(object, message, negateMessage) @@ -95997,7 +96017,7 @@ module.exports = function getMessage(obj, args) { /***/ }), -/* 277 */ +/* 285 */ /*!*********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/expectTypes.js ***! \*********************************************************/ @@ -96025,9 +96045,9 @@ module.exports = function getMessage(obj, args) { * @api public */ -var AssertionError = __webpack_require__(/*! assertion-error */ 192); -var flag = __webpack_require__(/*! ./flag */ 90); -var type = __webpack_require__(/*! type-detect */ 141); +var AssertionError = __webpack_require__(/*! assertion-error */ 200); +var flag = __webpack_require__(/*! ./flag */ 94); +var type = __webpack_require__(/*! type-detect */ 147); module.exports = function expectTypes(obj, types) { var flagMsg = flag(obj, 'message'); @@ -96059,7 +96079,7 @@ module.exports = function expectTypes(obj, types) { /***/ }), -/* 278 */ +/* 286 */ /*!**************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/test.js ***! \**************************************************/ @@ -96077,7 +96097,7 @@ module.exports = function expectTypes(obj, types) { * Module dependancies */ -var flag = __webpack_require__(/*! ./flag */ 90); +var flag = __webpack_require__(/*! ./flag */ 94); /** * ### .test(object, expression) @@ -96098,7 +96118,7 @@ module.exports = function test(obj, args) { /***/ }), -/* 279 */ +/* 287 */ /*!***************************************!*\ !*** ./node_modules/pathval/index.js ***! \***************************************/ @@ -96401,7 +96421,7 @@ module.exports = { /***/ }), -/* 280 */ +/* 288 */ /*!***************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/index.js ***! \***************************************************/ @@ -96419,66 +96439,66 @@ module.exports = { * Dependencies that are used for multiple exports are required here only once */ -var pathval = __webpack_require__(/*! pathval */ 279); +var pathval = __webpack_require__(/*! pathval */ 287); /*! * test utility */ -exports.test = __webpack_require__(/*! ./test */ 278); +exports.test = __webpack_require__(/*! ./test */ 286); /*! * type utility */ -exports.type = __webpack_require__(/*! type-detect */ 141); +exports.type = __webpack_require__(/*! type-detect */ 147); /*! * expectTypes utility */ -exports.expectTypes = __webpack_require__(/*! ./expectTypes */ 277); +exports.expectTypes = __webpack_require__(/*! ./expectTypes */ 285); /*! * message utility */ -exports.getMessage = __webpack_require__(/*! ./getMessage */ 276); +exports.getMessage = __webpack_require__(/*! ./getMessage */ 284); /*! * actual utility */ -exports.getActual = __webpack_require__(/*! ./getActual */ 191); +exports.getActual = __webpack_require__(/*! ./getActual */ 199); /*! * Inspect util */ -exports.inspect = __webpack_require__(/*! ./inspect */ 131); +exports.inspect = __webpack_require__(/*! ./inspect */ 137); /*! * Object Display util */ -exports.objDisplay = __webpack_require__(/*! ./objDisplay */ 188); +exports.objDisplay = __webpack_require__(/*! ./objDisplay */ 196); /*! * Flag utility */ -exports.flag = __webpack_require__(/*! ./flag */ 90); +exports.flag = __webpack_require__(/*! ./flag */ 94); /*! * Flag transferring utility */ -exports.transferFlags = __webpack_require__(/*! ./transferFlags */ 100); +exports.transferFlags = __webpack_require__(/*! ./transferFlags */ 105); /*! * Deep equal utility */ -exports.eql = __webpack_require__(/*! deep-eql */ 274); +exports.eql = __webpack_require__(/*! deep-eql */ 282); /*! * Deep path info @@ -96496,95 +96516,95 @@ exports.hasProperty = pathval.hasProperty; * Function name */ -exports.getName = __webpack_require__(/*! get-func-name */ 190); +exports.getName = __webpack_require__(/*! get-func-name */ 198); /*! * add Property */ -exports.addProperty = __webpack_require__(/*! ./addProperty */ 273); +exports.addProperty = __webpack_require__(/*! ./addProperty */ 281); /*! * add Method */ -exports.addMethod = __webpack_require__(/*! ./addMethod */ 272); +exports.addMethod = __webpack_require__(/*! ./addMethod */ 280); /*! * overwrite Property */ -exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ 271); +exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ 279); /*! * overwrite Method */ -exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ 270); +exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ 278); /*! * Add a chainable method */ -exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ 269); +exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ 277); /*! * Overwrite chainable method */ -exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ 268); +exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ 276); /*! * Compare by inspect method */ -exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ 267); +exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ 275); /*! * Get own enumerable property symbols method */ -exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 187); +exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 195); /*! * Get own enumerable properties method */ -exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ 266); +exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ 274); /*! * Checks error against a given set of criteria */ -exports.checkError = __webpack_require__(/*! check-error */ 186); +exports.checkError = __webpack_require__(/*! check-error */ 194); /*! * Proxify util */ -exports.proxify = __webpack_require__(/*! ./proxify */ 128); +exports.proxify = __webpack_require__(/*! ./proxify */ 134); /*! * addLengthGuard util */ -exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 129); +exports.addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 135); /*! * isProxyEnabled helper */ -exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 130); +exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 136); /*! * isNaN method */ -exports.isNaN = __webpack_require__(/*! ./isNaN */ 265); +exports.isNaN = __webpack_require__(/*! ./isNaN */ 273); /***/ }), -/* 281 */ +/* 289 */ /*!************************************!*\ !*** ./node_modules/chai/index.js ***! \************************************/ @@ -96592,14 +96612,14 @@ exports.isNaN = __webpack_require__(/*! ./isNaN */ 265); /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./lib/chai */ 102); +module.exports = __webpack_require__(/*! ./lib/chai */ 107); /***/ }), -/* 282 */, -/* 283 */, -/* 284 */, -/* 285 */ +/* 290 */, +/* 291 */, +/* 292 */, +/* 293 */ /*!*********************************************!*\ !*** ./node_modules/escodegen/package.json ***! \*********************************************/ @@ -96610,7 +96630,7 @@ module.exports = __webpack_require__(/*! ./lib/chai */ 102); module.exports = {"_args":[["escodegen@1.11.0","C:\\Users\\danie\\Desktop\\bitburner"]],"_from":"escodegen@1.11.0","_id":"escodegen@1.11.0","_inBundle":false,"_integrity":"sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==","_location":"/escodegen","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"escodegen@1.11.0","name":"escodegen","escapedName":"escodegen","rawSpec":"1.11.0","saveSpec":null,"fetchSpec":"1.11.0"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz","_spec":"1.11.0","_where":"C:\\Users\\danie\\Desktop\\bitburner","bin":{"esgenerate":"./bin/esgenerate.js","escodegen":"./bin/escodegen.js"},"bugs":{"url":"https://github.com/estools/escodegen/issues"},"dependencies":{"esprima":"^3.1.3","estraverse":"^4.2.0","esutils":"^2.0.2","optionator":"^0.8.1","source-map":"~0.6.1"},"description":"ECMAScript code generator","devDependencies":{"acorn":"^4.0.4","bluebird":"^3.4.7","bower-registry-client":"^1.0.0","chai":"^3.5.0","commonjs-everywhere":"^0.9.7","gulp":"^3.8.10","gulp-eslint":"^3.0.1","gulp-mocha":"^3.0.1","semver":"^5.1.0"},"engines":{"node":">=4.0"},"files":["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],"homepage":"http://github.com/estools/escodegen","license":"BSD-2-Clause","main":"escodegen.js","maintainers":[{"name":"Yusuke Suzuki","email":"utatane.tea@gmail.com","url":"http://github.com/Constellation"}],"name":"escodegen","optionalDependencies":{"source-map":"~0.6.1"},"repository":{"type":"git","url":"git+ssh://git@github.com/estools/escodegen.git"},"scripts":{"build":"cjsify -a path: tools/entry-point.js > escodegen.browser.js","build-min":"cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js","lint":"gulp lint","release":"node tools/release.js","test":"gulp travis","unit-test":"gulp test"},"version":"1.11.0"}; /***/ }), -/* 286 */ +/* 294 */ /*!***************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/source-node.js ***! \***************************************************************************/ @@ -96625,8 +96645,8 @@ module.exports = {"_args":[["escodegen@1.11.0","C:\\Users\\danie\\Desktop\\bitbu * http://opensource.org/licenses/BSD-3-Clause */ -var SourceMapGenerator = __webpack_require__(/*! ./source-map-generator */ 196).SourceMapGenerator; -var util = __webpack_require__(/*! ./util */ 112); +var SourceMapGenerator = __webpack_require__(/*! ./source-map-generator */ 204).SourceMapGenerator; +var util = __webpack_require__(/*! ./util */ 118); // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other // operating systems these days (capturing the result). @@ -97034,7 +97054,7 @@ exports.SourceNode = SourceNode; /***/ }), -/* 287 */ +/* 295 */ /*!**************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/quick-sort.js ***! \**************************************************************************/ @@ -97159,7 +97179,7 @@ exports.quickSort = function (ary, comparator) { /***/ }), -/* 288 */ +/* 296 */ /*!*****************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/binary-search.js ***! \*****************************************************************************/ @@ -97281,7 +97301,7 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { /***/ }), -/* 289 */ +/* 297 */ /*!***********************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js ***! \***********************************************************************************/ @@ -97296,11 +97316,11 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { * http://opensource.org/licenses/BSD-3-Clause */ -var util = __webpack_require__(/*! ./util */ 112); -var binarySearch = __webpack_require__(/*! ./binary-search */ 288); -var ArraySet = __webpack_require__(/*! ./array-set */ 194).ArraySet; -var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 195); -var quickSort = __webpack_require__(/*! ./quick-sort */ 287).quickSort; +var util = __webpack_require__(/*! ./util */ 118); +var binarySearch = __webpack_require__(/*! ./binary-search */ 296); +var ArraySet = __webpack_require__(/*! ./array-set */ 202).ArraySet; +var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 203); +var quickSort = __webpack_require__(/*! ./quick-sort */ 295).quickSort; function SourceMapConsumer(aSourceMap, aSourceMapURL) { var sourceMap = aSourceMap; @@ -98437,7 +98457,7 @@ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; /***/ }), -/* 290 */ +/* 298 */ /*!****************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/mapping-list.js ***! \****************************************************************************/ @@ -98452,7 +98472,7 @@ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; * http://opensource.org/licenses/BSD-3-Clause */ -var util = __webpack_require__(/*! ./util */ 112); +var util = __webpack_require__(/*! ./util */ 118); /** * Determine whether mappingB is after mappingA with respect to generated @@ -98527,7 +98547,7 @@ exports.MappingList = MappingList; /***/ }), -/* 291 */ +/* 299 */ /*!**********************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/base64.js ***! \**********************************************************************/ @@ -98605,7 +98625,7 @@ exports.decode = function (charCode) { /***/ }), -/* 292 */ +/* 300 */ /*!**********************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/source-map.js ***! \**********************************************************************/ @@ -98618,13 +98638,13 @@ exports.decode = function (charCode) { * Licensed under the New BSD license. See LICENSE.txt or: * http://opensource.org/licenses/BSD-3-Clause */ -exports.SourceMapGenerator = __webpack_require__(/*! ./lib/source-map-generator */ 196).SourceMapGenerator; -exports.SourceMapConsumer = __webpack_require__(/*! ./lib/source-map-consumer */ 289).SourceMapConsumer; -exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 286).SourceNode; +exports.SourceMapGenerator = __webpack_require__(/*! ./lib/source-map-generator */ 204).SourceMapGenerator; +exports.SourceMapConsumer = __webpack_require__(/*! ./lib/source-map-consumer */ 297).SourceMapConsumer; +exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 294).SourceNode; /***/ }), -/* 293 */ +/* 301 */ /*!*********************************************!*\ !*** ./node_modules/esutils/lib/keyword.js ***! \*********************************************/ @@ -98659,7 +98679,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 286).SourceNod (function () { 'use strict'; - var code = __webpack_require__(/*! ./code */ 197); + var code = __webpack_require__(/*! ./code */ 205); function isStrictModeReservedWordES6(id) { switch (id) { @@ -98800,7 +98820,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 286).SourceNod /***/ }), -/* 294 */ +/* 302 */ /*!*****************************************!*\ !*** ./node_modules/esutils/lib/ast.js ***! \*****************************************/ @@ -98955,7 +98975,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 286).SourceNod /***/ }), -/* 295 */ +/* 303 */ /*!*******************************************!*\ !*** ./node_modules/esutils/lib/utils.js ***! \*******************************************/ @@ -98991,15 +99011,15 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 286).SourceNod (function () { 'use strict'; - exports.ast = __webpack_require__(/*! ./ast */ 294); - exports.code = __webpack_require__(/*! ./code */ 197); - exports.keyword = __webpack_require__(/*! ./keyword */ 293); + exports.ast = __webpack_require__(/*! ./ast */ 302); + exports.code = __webpack_require__(/*! ./code */ 205); + exports.keyword = __webpack_require__(/*! ./keyword */ 301); }()); /* vim: set sw=4 ts=4 et tw=80 : */ /***/ }), -/* 296 */ +/* 304 */ /*!**********************************************!*\ !*** ./node_modules/estraverse/package.json ***! \**********************************************/ @@ -99010,7 +99030,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 286).SourceNod module.exports = {"_args":[["estraverse@4.2.0","C:\\Users\\danie\\Desktop\\bitburner"]],"_from":"estraverse@4.2.0","_id":"estraverse@4.2.0","_inBundle":false,"_integrity":"sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=","_location":"/estraverse","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"estraverse@4.2.0","name":"estraverse","escapedName":"estraverse","rawSpec":"4.2.0","saveSpec":null,"fetchSpec":"4.2.0"},"_requiredBy":["/escodegen","/escope","/eslint-scope","/esquery","/esrecurse"],"_resolved":"https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz","_spec":"4.2.0","_where":"C:\\Users\\danie\\Desktop\\bitburner","bugs":{"url":"https://github.com/estools/estraverse/issues"},"description":"ECMAScript JS AST traversal functions","devDependencies":{"babel-preset-es2015":"^6.3.13","babel-register":"^6.3.13","chai":"^2.1.1","espree":"^1.11.0","gulp":"^3.8.10","gulp-bump":"^0.2.2","gulp-filter":"^2.0.0","gulp-git":"^1.0.1","gulp-tag-version":"^1.2.1","jshint":"^2.5.6","mocha":"^2.1.0"},"engines":{"node":">=0.10.0"},"homepage":"https://github.com/estools/estraverse","license":"BSD-2-Clause","main":"estraverse.js","maintainers":[{"name":"Yusuke Suzuki","email":"utatane.tea@gmail.com","url":"http://github.com/Constellation"}],"name":"estraverse","repository":{"type":"git","url":"git+ssh://git@github.com/estools/estraverse.git"},"scripts":{"lint":"jshint estraverse.js","test":"npm run-script lint && npm run-script unit-test","unit-test":"mocha --compilers js:babel-register"},"version":"4.2.0"}; /***/ }), -/* 297 */ +/* 305 */ /*!***********************************************!*\ !*** ./node_modules/estraverse/estraverse.js ***! \***********************************************/ @@ -99854,7 +99874,7 @@ module.exports = {"_args":[["estraverse@4.2.0","C:\\Users\\danie\\Desktop\\bitbu return tree; } - exports.version = __webpack_require__(/*! ./package.json */ 296).version; + exports.version = __webpack_require__(/*! ./package.json */ 304).version; exports.Syntax = Syntax; exports.traverse = traverse; exports.replace = replace; @@ -99870,7 +99890,7 @@ module.exports = {"_args":[["estraverse@4.2.0","C:\\Users\\danie\\Desktop\\bitbu /***/ }), -/* 298 */ +/* 306 */ /*!****************************************!*\ !*** (webpack)/buildin/amd-options.js ***! \****************************************/ @@ -99884,7 +99904,7 @@ module.exports = __webpack_amd_options__; /* WEBPACK VAR INJECTION */}.call(this, {})) /***/ }), -/* 299 */ +/* 307 */ /*!********************************************!*\ !*** ./node_modules/jszip/lib/zipEntry.js ***! \********************************************/ @@ -99894,13 +99914,13 @@ module.exports = __webpack_amd_options__; "use strict"; -var readerFor = __webpack_require__(/*! ./reader/readerFor */ 201); -var utils = __webpack_require__(/*! ./utils */ 65); -var CompressedObject = __webpack_require__(/*! ./compressedObject */ 172); -var crc32fn = __webpack_require__(/*! ./crc32 */ 171); -var utf8 = __webpack_require__(/*! ./utf8 */ 111); -var compressions = __webpack_require__(/*! ./compressions */ 208); -var support = __webpack_require__(/*! ./support */ 98); +var readerFor = __webpack_require__(/*! ./reader/readerFor */ 209); +var utils = __webpack_require__(/*! ./utils */ 68); +var CompressedObject = __webpack_require__(/*! ./compressedObject */ 178); +var crc32fn = __webpack_require__(/*! ./crc32 */ 177); +var utf8 = __webpack_require__(/*! ./utf8 */ 117); +var compressions = __webpack_require__(/*! ./compressions */ 216); +var support = __webpack_require__(/*! ./support */ 103); var MADE_BY_DOS = 0x00; var MADE_BY_UNIX = 0x03; @@ -100188,7 +100208,7 @@ module.exports = ZipEntry; /***/ }), -/* 300 */ +/* 308 */ /*!***********************************************************!*\ !*** ./node_modules/jszip/lib/reader/NodeBufferReader.js ***! \***********************************************************/ @@ -100198,8 +100218,8 @@ module.exports = ZipEntry; "use strict"; -var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 198); -var utils = __webpack_require__(/*! ../utils */ 65); +var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 206); +var utils = __webpack_require__(/*! ../utils */ 68); function NodeBufferReader(data) { Uint8ArrayReader.call(this, data); @@ -100219,7 +100239,7 @@ module.exports = NodeBufferReader; /***/ }), -/* 301 */ +/* 309 */ /*!*******************************************************!*\ !*** ./node_modules/jszip/lib/reader/StringReader.js ***! \*******************************************************/ @@ -100229,8 +100249,8 @@ module.exports = NodeBufferReader; "use strict"; -var DataReader = __webpack_require__(/*! ./DataReader */ 199); -var utils = __webpack_require__(/*! ../utils */ 65); +var DataReader = __webpack_require__(/*! ./DataReader */ 207); +var utils = __webpack_require__(/*! ../utils */ 68); function StringReader(data) { DataReader.call(this, data); @@ -100269,7 +100289,7 @@ module.exports = StringReader; /***/ }), -/* 302 */ +/* 310 */ /*!**********************************************!*\ !*** ./node_modules/jszip/lib/zipEntries.js ***! \**********************************************/ @@ -100279,12 +100299,12 @@ module.exports = StringReader; "use strict"; -var readerFor = __webpack_require__(/*! ./reader/readerFor */ 201); -var utils = __webpack_require__(/*! ./utils */ 65); -var sig = __webpack_require__(/*! ./signature */ 202); -var ZipEntry = __webpack_require__(/*! ./zipEntry */ 299); -var utf8 = __webpack_require__(/*! ./utf8 */ 111); -var support = __webpack_require__(/*! ./support */ 98); +var readerFor = __webpack_require__(/*! ./reader/readerFor */ 209); +var utils = __webpack_require__(/*! ./utils */ 68); +var sig = __webpack_require__(/*! ./signature */ 210); +var ZipEntry = __webpack_require__(/*! ./zipEntry */ 307); +var utf8 = __webpack_require__(/*! ./utf8 */ 117); +var support = __webpack_require__(/*! ./support */ 103); // class ZipEntries {{{ /** * All the entries in the zip file. @@ -100543,7 +100563,7 @@ module.exports = ZipEntries; /***/ }), -/* 303 */ +/* 311 */ /*!****************************************!*\ !*** ./node_modules/jszip/lib/load.js ***! \****************************************/ @@ -100553,13 +100573,13 @@ module.exports = ZipEntries; "use strict"; -var utils = __webpack_require__(/*! ./utils */ 65); -var external = __webpack_require__(/*! ./external */ 113); -var utf8 = __webpack_require__(/*! ./utf8 */ 111); -var utils = __webpack_require__(/*! ./utils */ 65); -var ZipEntries = __webpack_require__(/*! ./zipEntries */ 302); -var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 209); -var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 133); +var utils = __webpack_require__(/*! ./utils */ 68); +var external = __webpack_require__(/*! ./external */ 119); +var utf8 = __webpack_require__(/*! ./utf8 */ 117); +var utils = __webpack_require__(/*! ./utils */ 68); +var ZipEntries = __webpack_require__(/*! ./zipEntries */ 310); +var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 217); +var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 139); /** * Check the CRC32 of an entry. @@ -100637,7 +100657,7 @@ module.exports = function(data, options) { /***/ }), -/* 304 */ +/* 312 */ /*!*******************************************************************!*\ !*** ./node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js ***! \*******************************************************************/ @@ -100648,8 +100668,8 @@ module.exports = function(data, options) { "use strict"; -var utils = __webpack_require__(/*! ../utils */ 65); -var GenericWorker = __webpack_require__(/*! ../stream/GenericWorker */ 85); +var utils = __webpack_require__(/*! ../utils */ 68); +var GenericWorker = __webpack_require__(/*! ../stream/GenericWorker */ 89); /** * A worker that use a nodejs stream as source. @@ -100723,7 +100743,7 @@ module.exports = NodejsStreamInputAdapter; /***/ }), -/* 305 */ +/* 313 */ /*!**********************************************************!*\ !*** ./node_modules/jszip/lib/generate/ZipFileWorker.js ***! \**********************************************************/ @@ -100734,11 +100754,11 @@ module.exports = NodejsStreamInputAdapter; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 65); -var GenericWorker = __webpack_require__(/*! ../stream/GenericWorker */ 85); -var utf8 = __webpack_require__(/*! ../utf8 */ 111); -var crc32 = __webpack_require__(/*! ../crc32 */ 171); -var signature = __webpack_require__(/*! ../signature */ 202); +var utils = __webpack_require__(/*! ../utils */ 68); +var GenericWorker = __webpack_require__(/*! ../stream/GenericWorker */ 89); +var utf8 = __webpack_require__(/*! ../utf8 */ 117); +var crc32 = __webpack_require__(/*! ../crc32 */ 177); +var signature = __webpack_require__(/*! ../signature */ 210); /** * Transform an integer into a string in hexadecimal. @@ -101275,7 +101295,7 @@ module.exports = ZipFileWorker; /***/ }), -/* 306 */ +/* 314 */ /*!************************************************!*\ !*** ./node_modules/pako/lib/zlib/gzheader.js ***! \************************************************/ @@ -101345,7 +101365,7 @@ module.exports = GZheader; /***/ }), -/* 307 */ +/* 315 */ /*!************************************************!*\ !*** ./node_modules/pako/lib/zlib/inftrees.js ***! \************************************************/ @@ -101375,7 +101395,7 @@ module.exports = GZheader; // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. -var utils = __webpack_require__(/*! ../utils/common */ 97); +var utils = __webpack_require__(/*! ../utils/common */ 102); var MAXBITS = 15; var ENOUGH_LENS = 852; @@ -101700,7 +101720,7 @@ module.exports = function inflate_table(type, lens, lens_index, codes, table, ta /***/ }), -/* 308 */ +/* 316 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/inffast.js ***! \***********************************************/ @@ -102057,7 +102077,7 @@ module.exports = function inflate_fast(strm, start) { /***/ }), -/* 309 */ +/* 317 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/inflate.js ***! \***********************************************/ @@ -102087,11 +102107,11 @@ module.exports = function inflate_fast(strm, start) { // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. -var utils = __webpack_require__(/*! ../utils/common */ 97); -var adler32 = __webpack_require__(/*! ./adler32 */ 207); -var crc32 = __webpack_require__(/*! ./crc32 */ 206); -var inflate_fast = __webpack_require__(/*! ./inffast */ 308); -var inflate_table = __webpack_require__(/*! ./inftrees */ 307); +var utils = __webpack_require__(/*! ../utils/common */ 102); +var adler32 = __webpack_require__(/*! ./adler32 */ 215); +var crc32 = __webpack_require__(/*! ./crc32 */ 214); +var inflate_fast = __webpack_require__(/*! ./inffast */ 316); +var inflate_table = __webpack_require__(/*! ./inftrees */ 315); var CODES = 0; var LENS = 1; @@ -103625,7 +103645,7 @@ exports.inflateUndermine = inflateUndermine; /***/ }), -/* 310 */ +/* 318 */ /*!******************************************!*\ !*** ./node_modules/pako/lib/inflate.js ***! \******************************************/ @@ -103637,13 +103657,13 @@ exports.inflateUndermine = inflateUndermine; -var zlib_inflate = __webpack_require__(/*! ./zlib/inflate */ 309); -var utils = __webpack_require__(/*! ./utils/common */ 97); -var strings = __webpack_require__(/*! ./utils/strings */ 205); -var c = __webpack_require__(/*! ./zlib/constants */ 203); -var msg = __webpack_require__(/*! ./zlib/messages */ 170); -var ZStream = __webpack_require__(/*! ./zlib/zstream */ 204); -var GZheader = __webpack_require__(/*! ./zlib/gzheader */ 306); +var zlib_inflate = __webpack_require__(/*! ./zlib/inflate */ 317); +var utils = __webpack_require__(/*! ./utils/common */ 102); +var strings = __webpack_require__(/*! ./utils/strings */ 213); +var c = __webpack_require__(/*! ./zlib/constants */ 211); +var msg = __webpack_require__(/*! ./zlib/messages */ 176); +var ZStream = __webpack_require__(/*! ./zlib/zstream */ 212); +var GZheader = __webpack_require__(/*! ./zlib/gzheader */ 314); var toString = Object.prototype.toString; @@ -104055,7 +104075,7 @@ exports.ungzip = inflate; /***/ }), -/* 311 */ +/* 319 */ /*!*********************************************!*\ !*** ./node_modules/pako/lib/zlib/trees.js ***! \*********************************************/ @@ -104085,7 +104105,7 @@ exports.ungzip = inflate; // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. -var utils = __webpack_require__(/*! ../utils/common */ 97); +var utils = __webpack_require__(/*! ../utils/common */ 102); /* Public constants ==========================================================*/ /* ===========================================================================*/ @@ -105287,7 +105307,7 @@ exports._tr_align = _tr_align; /***/ }), -/* 312 */ +/* 320 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/deflate.js ***! \***********************************************/ @@ -105317,11 +105337,11 @@ exports._tr_align = _tr_align; // misrepresented as being the original software. // 3. This notice may not be removed or altered from any source distribution. -var utils = __webpack_require__(/*! ../utils/common */ 97); -var trees = __webpack_require__(/*! ./trees */ 311); -var adler32 = __webpack_require__(/*! ./adler32 */ 207); -var crc32 = __webpack_require__(/*! ./crc32 */ 206); -var msg = __webpack_require__(/*! ./messages */ 170); +var utils = __webpack_require__(/*! ../utils/common */ 102); +var trees = __webpack_require__(/*! ./trees */ 319); +var adler32 = __webpack_require__(/*! ./adler32 */ 215); +var crc32 = __webpack_require__(/*! ./crc32 */ 214); +var msg = __webpack_require__(/*! ./messages */ 176); /* Public constants ==========================================================*/ /* ===========================================================================*/ @@ -107173,7 +107193,7 @@ exports.deflateTune = deflateTune; /***/ }), -/* 313 */ +/* 321 */ /*!******************************************!*\ !*** ./node_modules/pako/lib/deflate.js ***! \******************************************/ @@ -107185,11 +107205,11 @@ exports.deflateTune = deflateTune; -var zlib_deflate = __webpack_require__(/*! ./zlib/deflate */ 312); -var utils = __webpack_require__(/*! ./utils/common */ 97); -var strings = __webpack_require__(/*! ./utils/strings */ 205); -var msg = __webpack_require__(/*! ./zlib/messages */ 170); -var ZStream = __webpack_require__(/*! ./zlib/zstream */ 204); +var zlib_deflate = __webpack_require__(/*! ./zlib/deflate */ 320); +var utils = __webpack_require__(/*! ./utils/common */ 102); +var strings = __webpack_require__(/*! ./utils/strings */ 213); +var msg = __webpack_require__(/*! ./zlib/messages */ 176); +var ZStream = __webpack_require__(/*! ./zlib/zstream */ 212); var toString = Object.prototype.toString; @@ -107585,7 +107605,7 @@ exports.gzip = gzip; /***/ }), -/* 314 */ +/* 322 */ /*!************************************!*\ !*** ./node_modules/pako/index.js ***! \************************************/ @@ -107597,11 +107617,11 @@ exports.gzip = gzip; // Top level file is just a mixin of submodules & constants -var assign = __webpack_require__(/*! ./lib/utils/common */ 97).assign; +var assign = __webpack_require__(/*! ./lib/utils/common */ 102).assign; -var deflate = __webpack_require__(/*! ./lib/deflate */ 313); -var inflate = __webpack_require__(/*! ./lib/inflate */ 310); -var constants = __webpack_require__(/*! ./lib/zlib/constants */ 203); +var deflate = __webpack_require__(/*! ./lib/deflate */ 321); +var inflate = __webpack_require__(/*! ./lib/inflate */ 318); +var constants = __webpack_require__(/*! ./lib/zlib/constants */ 211); var pako = {}; @@ -107611,7 +107631,7 @@ module.exports = pako; /***/ }), -/* 315 */ +/* 323 */ /*!*****************************************!*\ !*** ./node_modules/jszip/lib/flate.js ***! \*****************************************/ @@ -107623,9 +107643,9 @@ module.exports = pako; var USE_TYPEDARRAY = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Uint32Array !== 'undefined'); -var pako = __webpack_require__(/*! pako */ 314); -var utils = __webpack_require__(/*! ./utils */ 65); -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 85); +var pako = __webpack_require__(/*! pako */ 322); +var utils = __webpack_require__(/*! ./utils */ 68); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 89); var ARRAY_TYPE = USE_TYPEDARRAY ? "uint8array" : "array"; @@ -107708,7 +107728,7 @@ exports.uncompressWorker = function () { /***/ }), -/* 316 */ +/* 324 */ /*!**************************************************!*\ !*** ./node_modules/jszip/lib/generate/index.js ***! \**************************************************/ @@ -107719,8 +107739,8 @@ exports.uncompressWorker = function () { "use strict"; -var compressions = __webpack_require__(/*! ../compressions */ 208); -var ZipFileWorker = __webpack_require__(/*! ./ZipFileWorker */ 305); +var compressions = __webpack_require__(/*! ../compressions */ 216); +var ZipFileWorker = __webpack_require__(/*! ./ZipFileWorker */ 313); /** * Find the compression to use. @@ -107777,7 +107797,7 @@ exports.generateWorker = function (zip, options, comment) { /***/ }), -/* 317 */ +/* 325 */ /*!*********************************************!*\ !*** ./node_modules/jszip/lib/zipObject.js ***! \*********************************************/ @@ -107788,11 +107808,11 @@ exports.generateWorker = function (zip, options, comment) { "use strict"; -var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 213); -var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 211); -var utf8 = __webpack_require__(/*! ./utf8 */ 111); -var CompressedObject = __webpack_require__(/*! ./compressedObject */ 172); -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 85); +var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 221); +var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 219); +var utf8 = __webpack_require__(/*! ./utf8 */ 117); +var CompressedObject = __webpack_require__(/*! ./compressedObject */ 178); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 89); /** * A simple object representing a file in the zip file. @@ -107922,7 +107942,7 @@ module.exports = ZipObject; /***/ }), -/* 318 */ +/* 326 */ /*!********************************************************************!*\ !*** ./node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js ***! \********************************************************************/ @@ -107933,9 +107953,9 @@ module.exports = ZipObject; "use strict"; -var Readable = __webpack_require__(/*! readable-stream */ 226).Readable; +var Readable = __webpack_require__(/*! readable-stream */ 234).Readable; -var utils = __webpack_require__(/*! ../utils */ 65); +var utils = __webpack_require__(/*! ../utils */ 68); utils.inherits(NodejsStreamOutputAdapter, Readable); /** @@ -107976,7 +107996,7 @@ module.exports = NodejsStreamOutputAdapter; /***/ }), -/* 319 */ +/* 327 */ /*!********************************************************!*\ !*** ./node_modules/jszip/lib/stream/ConvertWorker.js ***! \********************************************************/ @@ -107987,8 +108007,8 @@ module.exports = NodejsStreamOutputAdapter; "use strict"; -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 85); -var utils = __webpack_require__(/*! ../utils */ 65); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 89); +var utils = __webpack_require__(/*! ../utils */ 68); /** * A worker which convert chunks to a specified type. @@ -108014,7 +108034,7 @@ module.exports = ConvertWorker; /***/ }), -/* 320 */ +/* 328 */ /*!***********************************************!*\ !*** ./node_modules/immediate/lib/browser.js ***! \***********************************************/ @@ -108093,10 +108113,10 @@ function immediate(task) { } } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 91))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 95))) /***/ }), -/* 321 */ +/* 329 */ /*!*****************************************!*\ !*** ./node_modules/lie/lib/browser.js ***! \*****************************************/ @@ -108106,7 +108126,7 @@ function immediate(task) { "use strict"; -var immediate = __webpack_require__(/*! immediate */ 320); +var immediate = __webpack_require__(/*! immediate */ 328); /* istanbul ignore next */ function INTERNAL() {} @@ -108361,7 +108381,7 @@ function race(iterable) { /***/ }), -/* 322 */ +/* 330 */ /*!*************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_cof.js ***! \*************************************************************************/ @@ -108376,7 +108396,7 @@ module.exports = function(it){ }; /***/ }), -/* 323 */ +/* 331 */ /*!**************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_html.js ***! \**************************************************************************/ @@ -108384,10 +108404,10 @@ module.exports = function(it){ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./_global */ 132).document && document.documentElement; +module.exports = __webpack_require__(/*! ./_global */ 138).document && document.documentElement; /***/ }), -/* 324 */ +/* 332 */ /*!****************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_invoke.js ***! \****************************************************************************/ @@ -108413,7 +108433,7 @@ module.exports = function(fn, args, that){ }; /***/ }), -/* 325 */ +/* 333 */ /*!**************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_task.js ***! \**************************************************************************/ @@ -108421,11 +108441,11 @@ module.exports = function(fn, args, that){ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var ctx = __webpack_require__(/*! ./_ctx */ 216) - , invoke = __webpack_require__(/*! ./_invoke */ 324) - , html = __webpack_require__(/*! ./_html */ 323) - , cel = __webpack_require__(/*! ./_dom-create */ 214) - , global = __webpack_require__(/*! ./_global */ 132) +var ctx = __webpack_require__(/*! ./_ctx */ 224) + , invoke = __webpack_require__(/*! ./_invoke */ 332) + , html = __webpack_require__(/*! ./_html */ 331) + , cel = __webpack_require__(/*! ./_dom-create */ 222) + , global = __webpack_require__(/*! ./_global */ 138) , process = global.process , setTask = global.setImmediate , clearTask = global.clearImmediate @@ -108460,7 +108480,7 @@ if(!setTask || !clearTask){ delete queue[id]; }; // Node.js 0.8- - if(__webpack_require__(/*! ./_cof */ 322)(process) == 'process'){ + if(__webpack_require__(/*! ./_cof */ 330)(process) == 'process'){ defer = function(id){ process.nextTick(ctx(run, id, 1)); }; @@ -108498,7 +108518,7 @@ module.exports = { }; /***/ }), -/* 326 */ +/* 334 */ /*!***********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_property-desc.js ***! \***********************************************************************************/ @@ -108516,7 +108536,7 @@ module.exports = function(bitmap, value){ }; /***/ }), -/* 327 */ +/* 335 */ /*!**********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_to-primitive.js ***! \**********************************************************************************/ @@ -108525,7 +108545,7 @@ module.exports = function(bitmap, value){ /***/ (function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) -var isObject = __webpack_require__(/*! ./_is-object */ 174); +var isObject = __webpack_require__(/*! ./_is-object */ 180); // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string module.exports = function(it, S){ @@ -108538,7 +108558,7 @@ module.exports = function(it, S){ }; /***/ }), -/* 328 */ +/* 336 */ /*!************************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_ie8-dom-define.js ***! \************************************************************************************/ @@ -108546,12 +108566,12 @@ module.exports = function(it, S){ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = !__webpack_require__(/*! ./_descriptors */ 173) && !__webpack_require__(/*! ./_fails */ 215)(function(){ - return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ 214)('div'), 'a', {get: function(){ return 7; }}).a != 7; +module.exports = !__webpack_require__(/*! ./_descriptors */ 179) && !__webpack_require__(/*! ./_fails */ 223)(function(){ + return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ 222)('div'), 'a', {get: function(){ return 7; }}).a != 7; }); /***/ }), -/* 329 */ +/* 337 */ /*!*******************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_an-object.js ***! \*******************************************************************************/ @@ -108559,14 +108579,14 @@ module.exports = !__webpack_require__(/*! ./_descriptors */ 173) && !__webpack_r /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(/*! ./_is-object */ 174); +var isObject = __webpack_require__(/*! ./_is-object */ 180); module.exports = function(it){ if(!isObject(it))throw TypeError(it + ' is not an object!'); return it; }; /***/ }), -/* 330 */ +/* 338 */ /*!*******************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_object-dp.js ***! \*******************************************************************************/ @@ -108574,12 +108594,12 @@ module.exports = function(it){ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var anObject = __webpack_require__(/*! ./_an-object */ 329) - , IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 328) - , toPrimitive = __webpack_require__(/*! ./_to-primitive */ 327) +var anObject = __webpack_require__(/*! ./_an-object */ 337) + , IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 336) + , toPrimitive = __webpack_require__(/*! ./_to-primitive */ 335) , dP = Object.defineProperty; -exports.f = __webpack_require__(/*! ./_descriptors */ 173) ? Object.defineProperty : function defineProperty(O, P, Attributes){ +exports.f = __webpack_require__(/*! ./_descriptors */ 179) ? Object.defineProperty : function defineProperty(O, P, Attributes){ anObject(O); P = toPrimitive(P, true); anObject(Attributes); @@ -108592,7 +108612,7 @@ exports.f = __webpack_require__(/*! ./_descriptors */ 173) ? Object.defineProper }; /***/ }), -/* 331 */ +/* 339 */ /*!**************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_hide.js ***! \**************************************************************************/ @@ -108600,9 +108620,9 @@ exports.f = __webpack_require__(/*! ./_descriptors */ 173) ? Object.defineProper /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var dP = __webpack_require__(/*! ./_object-dp */ 330) - , createDesc = __webpack_require__(/*! ./_property-desc */ 326); -module.exports = __webpack_require__(/*! ./_descriptors */ 173) ? function(object, key, value){ +var dP = __webpack_require__(/*! ./_object-dp */ 338) + , createDesc = __webpack_require__(/*! ./_property-desc */ 334); +module.exports = __webpack_require__(/*! ./_descriptors */ 179) ? function(object, key, value){ return dP.f(object, key, createDesc(1, value)); } : function(object, key, value){ object[key] = value; @@ -108610,7 +108630,7 @@ module.exports = __webpack_require__(/*! ./_descriptors */ 173) ? function(objec }; /***/ }), -/* 332 */ +/* 340 */ /*!********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_a-function.js ***! \********************************************************************************/ @@ -108624,7 +108644,7 @@ module.exports = function(it){ }; /***/ }), -/* 333 */ +/* 341 */ /*!****************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_export.js ***! \****************************************************************************/ @@ -108632,10 +108652,10 @@ module.exports = function(it){ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var global = __webpack_require__(/*! ./_global */ 132) - , core = __webpack_require__(/*! ./_core */ 217) - , ctx = __webpack_require__(/*! ./_ctx */ 216) - , hide = __webpack_require__(/*! ./_hide */ 331) +var global = __webpack_require__(/*! ./_global */ 138) + , core = __webpack_require__(/*! ./_core */ 225) + , ctx = __webpack_require__(/*! ./_ctx */ 224) + , hide = __webpack_require__(/*! ./_hide */ 339) , PROTOTYPE = 'prototype'; var $export = function(type, name, source){ @@ -108695,7 +108715,7 @@ $export.R = 128; // real proto method for `library` module.exports = $export; /***/ }), -/* 334 */ +/* 342 */ /*!**********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/web.immediate.js ***! \**********************************************************************************/ @@ -108703,15 +108723,15 @@ module.exports = $export; /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var $export = __webpack_require__(/*! ./_export */ 333) - , $task = __webpack_require__(/*! ./_task */ 325); +var $export = __webpack_require__(/*! ./_export */ 341) + , $task = __webpack_require__(/*! ./_task */ 333); $export($export.G + $export.B, { setImmediate: $task.set, clearImmediate: $task.clear }); /***/ }), -/* 335 */ +/* 343 */ /*!*****************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/fn/set-immediate.js ***! \*****************************************************************************/ @@ -108719,11 +108739,11 @@ $export($export.G + $export.B, { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(/*! ../modules/web.immediate */ 334); -module.exports = __webpack_require__(/*! ../modules/_core */ 217).setImmediate; +__webpack_require__(/*! ../modules/web.immediate */ 342); +module.exports = __webpack_require__(/*! ../modules/_core */ 225).setImmediate; /***/ }), -/* 336 */ +/* 344 */ /*!*****************************************************!*\ !*** ./node_modules/readable-stream/passthrough.js ***! \*****************************************************/ @@ -108731,11 +108751,11 @@ module.exports = __webpack_require__(/*! ../modules/_core */ 217).setImmediate; /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./readable */ 176).PassThrough +module.exports = __webpack_require__(/*! ./readable */ 182).PassThrough /***/ }), -/* 337 */ +/* 345 */ /*!***************************************************!*\ !*** ./node_modules/readable-stream/transform.js ***! \***************************************************/ @@ -108743,11 +108763,11 @@ module.exports = __webpack_require__(/*! ./readable */ 176).PassThrough /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./readable */ 176).Transform +module.exports = __webpack_require__(/*! ./readable */ 182).Transform /***/ }), -/* 338 */ +/* 346 */ /*!********************************************************!*\ !*** ./node_modules/readable-stream/duplex-browser.js ***! \********************************************************/ @@ -108755,11 +108775,11 @@ module.exports = __webpack_require__(/*! ./readable */ 176).Transform /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ 103); +module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ 108); /***/ }), -/* 339 */ +/* 347 */ /*!**********************************************************!*\ !*** ./node_modules/readable-stream/writable-browser.js ***! \**********************************************************/ @@ -108767,11 +108787,11 @@ module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ 103); /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ 175); +module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ 181); /***/ }), -/* 340 */ +/* 348 */ /*!*****************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_passthrough.js ***! \*****************************************************************/ @@ -108809,11 +108829,11 @@ module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ 175); module.exports = PassThrough; -var Transform = __webpack_require__(/*! ./_stream_transform */ 219); +var Transform = __webpack_require__(/*! ./_stream_transform */ 227); /**/ -var util = __webpack_require__(/*! core-util-is */ 114); -util.inherits = __webpack_require__(/*! inherits */ 110); +var util = __webpack_require__(/*! core-util-is */ 120); +util.inherits = __webpack_require__(/*! inherits */ 116); /**/ util.inherits(PassThrough, Transform); @@ -108829,7 +108849,7 @@ PassThrough.prototype._transform = function (chunk, encoding, cb) { }; /***/ }), -/* 341 */ +/* 349 */ /*!************************************************!*\ !*** ./node_modules/util-deprecate/browser.js ***! \************************************************/ @@ -108905,10 +108925,10 @@ function config (name) { return String(val).toLowerCase() === 'true'; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 91))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 95))) /***/ }), -/* 342 */ +/* 350 */ /*!*************************************************************************!*\ !*** ./node_modules/readable-stream/lib/internal/streams/BufferList.js ***! \*************************************************************************/ @@ -108921,8 +108941,8 @@ function config (name) { function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -var Buffer = __webpack_require__(/*! safe-buffer */ 134).Buffer; -var util = __webpack_require__(/*! util */ 222); +var Buffer = __webpack_require__(/*! safe-buffer */ 140).Buffer; +var util = __webpack_require__(/*! util */ 230); function copyBuffer(src, target, offset) { src.copy(target, offset); @@ -108998,7 +109018,7 @@ if (util && util.inspect && util.inspect.custom) { } /***/ }), -/* 343 */ +/* 351 */ /*!*************************************************!*\ !*** ./node_modules/stream-browserify/index.js ***! \*************************************************/ @@ -109029,15 +109049,15 @@ if (util && util.inspect && util.inspect.custom) { module.exports = Stream; -var EE = __webpack_require__(/*! events */ 177).EventEmitter; -var inherits = __webpack_require__(/*! inherits */ 110); +var EE = __webpack_require__(/*! events */ 183).EventEmitter; +var inherits = __webpack_require__(/*! inherits */ 116); inherits(Stream, EE); -Stream.Readable = __webpack_require__(/*! readable-stream/readable.js */ 176); -Stream.Writable = __webpack_require__(/*! readable-stream/writable.js */ 339); -Stream.Duplex = __webpack_require__(/*! readable-stream/duplex.js */ 338); -Stream.Transform = __webpack_require__(/*! readable-stream/transform.js */ 337); -Stream.PassThrough = __webpack_require__(/*! readable-stream/passthrough.js */ 336); +Stream.Readable = __webpack_require__(/*! readable-stream/readable.js */ 182); +Stream.Writable = __webpack_require__(/*! readable-stream/writable.js */ 347); +Stream.Duplex = __webpack_require__(/*! readable-stream/duplex.js */ 346); +Stream.Transform = __webpack_require__(/*! readable-stream/transform.js */ 345); +Stream.PassThrough = __webpack_require__(/*! readable-stream/passthrough.js */ 344); // Backwards-compat with node 0.4.x Stream.Stream = Stream; @@ -109136,7 +109156,7 @@ Stream.prototype.pipe = function(dest, options) { /***/ }), -/* 344 */ +/* 352 */ /*!***************************************!*\ !*** ./node_modules/ieee754/index.js ***! \***************************************/ @@ -109231,7 +109251,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /***/ }), -/* 345 */ +/* 353 */ /*!*****************************************!*\ !*** ./node_modules/base64-js/index.js ***! \*****************************************/ @@ -109394,7 +109414,7 @@ function fromByteArray (uint8) { /***/ }), -/* 346 */ +/* 354 */ /*!******************************************!*\ !*** ./node_modules/jszip/lib/object.js ***! \******************************************/ @@ -109404,16 +109424,16 @@ function fromByteArray (uint8) { "use strict"; -var utf8 = __webpack_require__(/*! ./utf8 */ 111); -var utils = __webpack_require__(/*! ./utils */ 65); -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 85); -var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 213); -var defaults = __webpack_require__(/*! ./defaults */ 212); -var CompressedObject = __webpack_require__(/*! ./compressedObject */ 172); -var ZipObject = __webpack_require__(/*! ./zipObject */ 317); -var generate = __webpack_require__(/*! ./generate */ 316); -var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 133); -var NodejsStreamInputAdapter = __webpack_require__(/*! ./nodejs/NodejsStreamInputAdapter */ 304); +var utf8 = __webpack_require__(/*! ./utf8 */ 117); +var utils = __webpack_require__(/*! ./utils */ 68); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 89); +var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 221); +var defaults = __webpack_require__(/*! ./defaults */ 220); +var CompressedObject = __webpack_require__(/*! ./compressedObject */ 178); +var ZipObject = __webpack_require__(/*! ./zipObject */ 325); +var generate = __webpack_require__(/*! ./generate */ 324); +var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 139); +var NodejsStreamInputAdapter = __webpack_require__(/*! ./nodejs/NodejsStreamInputAdapter */ 312); /** @@ -109795,7 +109815,7 @@ module.exports = out; /***/ }), -/* 347 */ +/* 355 */ /*!***************************************************!*\ !*** ./node_modules/setimmediate/setImmediate.js ***! \***************************************************/ @@ -109990,10 +110010,10 @@ module.exports = out; attachTo.clearImmediate = clearImmediate; }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self)); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 91), __webpack_require__(/*! ./../process/browser.js */ 116))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 95), __webpack_require__(/*! ./../process/browser.js */ 122))) /***/ }), -/* 348 */ +/* 356 */ /*!**********************************************************!*\ !*** ./node_modules/js-beautify/js/lib/beautify-html.js ***! \**********************************************************/ @@ -111356,9 +111376,9 @@ var style_html = legacy_beautify_html; /* Footer */ if (true) { // Add support for AMD ( https://github.com/amdjs/amdjs-api/wiki/AMD#defineamd-property- ) - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, __webpack_require__(/*! ./beautify */ 181), __webpack_require__(/*! ./beautify-css */ 180)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(requireamd) { - var js_beautify = __webpack_require__(/*! ./beautify */ 181); - var css_beautify = __webpack_require__(/*! ./beautify-css */ 180); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, __webpack_require__(/*! ./beautify */ 187), __webpack_require__(/*! ./beautify-css */ 186)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(requireamd) { + var js_beautify = __webpack_require__(/*! ./beautify */ 187); + var css_beautify = __webpack_require__(/*! ./beautify-css */ 186); return { html_beautify: function(html_source, options) { diff --git a/doc/source/netscript/netscriptfunctions.rst b/doc/source/netscript/netscriptfunctions.rst index a57e07fc9..516280721 100644 --- a/doc/source/netscript/netscriptfunctions.rst +++ b/doc/source/netscript/netscriptfunctions.rst @@ -492,7 +492,7 @@ ps :param string ip: Hostname or IP address of the target server. If not specified, it will be the current server's IP by default - :RAM cost: 0 GB + :RAM cost: 0.2 GB Returns an array with general information about all scripts running on the specified target server. The information for each server is given in an object with diff --git a/package-lock.json b/package-lock.json index 575832a56..82353ac12 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,11 @@ "integrity": "sha512-LAQ1d4OPfSJ/BMbI2DuizmYrrkD9JMaTdi2hQTlI53lQ4kRQPyZQRS4CYQ7O66bnBBnP/oYdRxbk++X0xuFU6A==", "dev": true }, + "@types/numeral": { + "version": "0.0.25", + "resolved": "https://registry.npmjs.org/@types/numeral/-/numeral-0.0.25.tgz", + "integrity": "sha512-ShHzHkYD+Ldw3eyttptCpUhF1/mkInWwasQkCNXZHOsJMJ/UMa8wXrxSrTJaVk0r4pLK/VnESVM0wFsfQzNEKQ==" + }, "@webassemblyjs/ast": { "version": "1.5.12", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.5.12.tgz", diff --git a/package.json b/package.json index 53776537f..01fa03312 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "url": "https://github.com/danielyxie/bitburner/issues" }, "dependencies": { + "@types/numeral": "0.0.25", "acorn": "^5.0.0", "acorn-dynamic-import": "^2.0.0", "ajv": "^5.1.5", diff --git a/src/Constants.ts b/src/Constants.ts index 0a659a30c..32533c9dd 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -505,31 +505,11 @@ export let CONSTANTS: IMap = { LatestUpdate: ` - v0.41.2 - * IMPORTANT - Netscript Changes: - ** rm() now takes an optional parameter that lets you specify on which server to delete the file - ** Added growthAnalyze() Netscript function - - * Gang Changes: - ** UI now displays your chance to win a clash with other gangs - ** Added getChanceToWinClash() function to the Gang API - ** Added getEquipmentType() function to the Gang API - ** Added several new hacking-based equipment and Augmentations - ** Rebalanced several equipment/upgrades to give less defense - ** Wanted level gain rate is now be slightly higher for all tasks - ** Rebalanced parameters for "hacking" tasks - - * Added new Main Menu configuration in .fconf: "compact" - * Added the terminal command 'expr', which can be used to evaluate simple mathematical expressions - * Bug Fix: Can no longer purchase duplicate equipment/Augmentations through gang.purchaseEquipment() - * Bug Fix: scp() should no longer throw errors when used with 2-arguments and an array of files - * Bug Fix: Coding Contracts no longer give money in BitNode-8 - * Bug Fix: In Bladeburner, you can no longer start a BlackOp through the Netscript API if it has already been completed - * Bug Fix: In Bladeburner, fixed a bug which caused the configured 'automate' actions to occasionally be switched to other actions - * Bug Fix: 'Return to World' button at locations no longer accumulates event listeners - * Bug Fix: Working & taking classes now continuously add/subtract money during the action, instead of doing it at completion - * Bug Fix: Top-right overview panel now displays negative money using '-' instead of '()' - * Bug Fix: Stock Market UI should no longer show 'NaN' profit immediately after buying a stock + v0.42.0 + * Corporation Changes: + ** Changed initial market prices for many materials + ** Changed the way a material's demand, competition, and market price change over time + ** ` } diff --git a/src/CompanyManagement.js b/src/Corporation/Corporation.js similarity index 89% rename from src/CompanyManagement.js rename to src/Corporation/Corporation.js index 4d4d504ff..4893e9a4b 100644 --- a/src/CompanyManagement.js +++ b/src/Corporation/Corporation.js @@ -1,24 +1,34 @@ -import { BitNodeMultipliers } from "./BitNodeMultipliers"; -import { Factions } from "./Faction/Factions"; -import { showLiterature } from "./Literature"; -import { Locations } from "./Locations"; -import { Player } from "./Player"; +import { AllCorporationStates, + CorporationState } from "./CorporationState"; +import { EmployeePositions } from "./EmployeePositions"; +import { Industries, + IndustryStartingCosts, + IndustryDescriptions } from "./IndustryData"; +import { Material } from "./Material"; +import { MaterialSizes } from "./MaterialSizes"; +import { Product } from "./Product"; -import Decimal from "decimal.js"; -import { numeralWrapper } from "./ui/numeralFormat"; +import { BitNodeMultipliers } from "../BitNodeMultipliers"; +import { Factions } from "../Faction/Factions"; +import { showLiterature } from "../Literature"; +import { Locations } from "../Locations"; +import { Player } from "../Player"; -import { dialogBoxCreate } from "../utils/DialogBox"; -import { clearSelector } from "../utils/uiHelpers/clearSelector"; -import { Reviver, Generic_toJSON, - Generic_fromJSON } from "../utils/JSONReviver"; -import { createElement } from "../utils/uiHelpers/createElement"; -import { createPopup } from "../utils/uiHelpers/createPopup"; -import { Page, routing } from "./ui/navigationTracking"; -import { formatNumber, generateRandomString } from "../utils/StringHelperFunctions"; -import { getRandomInt } from "../utils/helpers/getRandomInt"; -import { isString } from "../utils/helpers/isString"; -import { removeChildrenFromElement } from "../utils/uiHelpers/removeChildrenFromElement"; -import { removeElementById } from "../utils/uiHelpers/removeElementById"; +import { numeralWrapper } from "../ui/numeralFormat"; +import { Page, routing } from "../ui/navigationTracking"; + +import { dialogBoxCreate } from "../../utils/DialogBox"; +import { clearSelector } from "../../utils/uiHelpers/clearSelector"; +import { Reviver, + Generic_toJSON, + Generic_fromJSON } from "../../utils/JSONReviver"; +import { createElement } from "../../utils/uiHelpers/createElement"; +import { createPopup } from "../../utils/uiHelpers/createPopup"; +import { formatNumber, generateRandomString } from "../../utils/StringHelperFunctions"; +import { getRandomInt } from "../../utils/helpers/getRandomInt"; +import { isString } from "../../utils/helpers/isString"; +import { removeChildrenFromElement } from "../../utils/uiHelpers/removeChildrenFromElement"; +import { removeElementById } from "../../utils/uiHelpers/removeElementById"; import { yesNoBoxCreate, yesNoTxtInpBoxCreate, yesNoBoxGetYesButton, @@ -28,545 +38,30 @@ import { yesNoBoxCreate, yesNoTxtInpBoxGetInput, yesNoBoxClose, yesNoTxtInpBoxClose, - yesNoBoxOpen } from "../utils/YesNoBox"; + yesNoBoxOpen } from "../../utils/YesNoBox"; -/* State */ -var companyStates = ["START", "PURCHASE", "PRODUCTION", "SALE", "EXPORT"]; -function CorporationState() { - this.state = 0; -} - -CorporationState.prototype.nextState = function() { - if (this.state < 0 || this.state >= companyStates.length) { - this.state = 0; - } - - ++this.state; - if (this.state >= companyStates.length) { - this.state = 0; - } -} - -CorporationState.prototype.getState = function() { - return companyStates[this.state]; -} - -CorporationState.prototype.toJSON = function() { - return Generic_toJSON("CorporationState", this); -} - -CorporationState.fromJSON = function(value) { - return Generic_fromJSON(CorporationState, value.data); -} - -Reviver.constructors.CorporationState = CorporationState; +import Decimal from "decimal.js"; /* Constants */ -var TOTALSHARES = 1e9; //Total number of shares you have at your company -var CyclesPerMarketCycle = 75; -var CyclesPerIndustryStateCycle = CyclesPerMarketCycle / companyStates.length; -var SecsPerMarketCycle = CyclesPerMarketCycle / 5; -var Cities = ["Aevum", "Chongqing", "Sector-12", "New Tokyo", "Ishima", "Volhaven"]; -var WarehouseInitialCost = 5e9; //Initial purchase cost of warehouse -var WarehouseInitialSize = 100; -var WarehouseUpgradeBaseCost = 1e9; +export const TOTALSHARES = 1e9; //Total number of shares you have at your company +export const CyclesPerMarketCycle = 75; +export const CyclesPerIndustryStateCycle = CyclesPerMarketCycle / AllCorporationStates.length; +export const SecsPerMarketCycle = CyclesPerMarketCycle / 5; +export const Cities = ["Aevum", "Chongqing", "Sector-12", "New Tokyo", "Ishima", "Volhaven"]; +export const WarehouseInitialCost = 5e9; //Initial purchase cost of warehouse +export const WarehouseInitialSize = 100; +export const WarehouseUpgradeBaseCost = 1e9; -var OfficeInitialCost = 4e9; -var OfficeInitialSize = 3; -var OfficeUpgradeBaseCost = 1e9; +export const OfficeInitialCost = 4e9; +export const OfficeInitialSize = 3; +export const OfficeUpgradeBaseCost = 1e9; -var BribeThreshold = 100e12; //Money needed to be able to bribe for faction rep -var BribeToRepRatio = 1e9; //Bribe Value divided by this = rep gain +export const BribeThreshold = 100e12; //Money needed to be able to bribe for faction rep +export const BribeToRepRatio = 1e9; //Bribe Value divided by this = rep gain -var ProductProductionCostRatio = 5; //Ratio of material cost of a product to its production cost - -function Material(params={}) { - this.name = params.name ? params.name : ""; - this.qty = 0; //Quantity - this.qlt = 0; //Quality, unbounded - this.dmd = 0; //Demand, 0-100? - this.dmdR = 0; //Range of possible demand - this.cmp = 0; //Competition, 0-100 - this.cmpR = 0; //Range of possible competition - this.mv = 0; //Maximum Volatility of stats - - //Markup. Determines how high of a price you can charge on the material - //compared to the market price (bCost) based on quality - //Quality is divided by this to determine markup limits - //e.g if mku is 10 and quality is 100 then you can mark up prices by 100/10 = 10 - //without consequences - this.mku = 0; - - this.buy = 0; //How much of this material is being bought per second - this.sll = 0; //How much of this material is being sold per second - this.prd = 0; //How much of this material is being produced per second - this.exp = []; //Exports of this material to another warehouse/industry - this.totalExp = 0; //Total export amount for last cycle - this.imp = 0; - this.bCost = 0; //$ Cost/sec to buy material - this.sCost = 0; //$ Cost/sec to sell material - - //[Whether production/sale is limited, limit amount] - this.prdman = [false, 0]; //Production for this material is manually limited - this.sllman = [false, 0]; //Sale of this material is manually limited - this.init(); -} - -Material.prototype.init = function(mats={}) { - switch(this.name) { - case "Water": - this.dmd = 75; this.dmdR = [65, 85]; - this.cmp = 50; this.cmpR = [40, 60]; - this.bCost = 1000; this.mv = 0.2; - this.mku = 6; - break; - case "Energy": - this.dmd = 90; this.dmdR = [80, 100]; - this.cmp = 80; this.cmpR = [65, 95]; - this.bCost = 1500; this.mv = 0.2; - this.mku = 6; - break; - case "Food": - this.dmd = 80; this.dmdR = [70, 90]; - this.cmp = 60; this.cmpR = [35, 85]; - this.bCost = 5000; this.mv = 1; - this.mku = 3; - break; - case "Plants": - this.dmd = 70; this.dmdR = [20, 90]; - this.cmp = 50; this.cmpR = [30, 70]; - this.bCost = 3000; this.mv = 0.6; - this.mku = 3.75; - break; - case "Metal": - this.dmd = 80; this.dmdR = [75, 85]; - this.cmp = 70; this.cmpR = [60, 80]; - this.bCost = 2650; this.mv = 1; - this.mku = 6; - break; - case "Hardware": - this.dmd = 85; this.dmdR = [80, 90]; - this.cmp = 80; this.cmpR = [65, 95]; - this.bCost = 4000; this.mv = 0.5; //Less mv bc its processed twice - this.mku = 1; - break; - case "Chemicals": - this.dmd = 55; this.dmdR = [40, 70]; - this.cmp = 60; this.cmpR = [40, 80]; - this.bCost = 6750; this.mv = 1.2; - this.mku = 2; - break; - case "Real Estate": - this.dmd = 50; this.dmdR = [5, 100]; - this.cmp = 50; this.cmpR = [25, 75]; - this.bCost = 16e3; this.mv = 1.5; //Less mv bc its processed twice - this.mku = 1.5; - break; - case "Drugs": - this.dmd = 60; this.dmdR = [45, 75]; - this.cmp = 70; this.cmpR = [40, 100]; - this.bCost = 8e3; this.mv = 1.6; - this.mku = 1; - break; - case "Robots": - this.dmd = 90; this.dmdR = [80, 100]; - this.cmp = 90; this.cmpR = [80, 100]; - this.bCost = 20e3; this.mv = 0.5; //Less mv bc its processed twice - this.mku = 1; - break; - case "AI Cores": - this.dmd = 90; this.dmdR = [80, 100]; - this.cmp = 90; this.cmpR = [80, 100]; - this.bCost = 27e3; this.mv = 0.8; //Less mv bc its processed twice - this.mku = 0.5; - break; - case "Scientific Research": - break; - default: - console.log("Invalid material type in init(): " + this.name); - break; - } -} - -//Process change in demand, competition, and buy cost of this material -Material.prototype.processMarket = function() { - //This 1st random check determines whether competition increases or decreases - //More competition = lower market price - var v = (Math.random() * this.mv) / 100; - var pv = (Math.random() * this.mv) / 300; - if (Math.random() < 0.42) { - this.cmp *= (1+v); - if (this.cmp > this.cmpR[1]) {this.cmp = this.cmpR[1]}; - this.bCost *= (1-pv); - } else { - this.cmp *= (1-v); - if (this.cmp < this.cmpR[0]) {this.cmp = this.cmpR[0];} - this.bCost *= (1+pv); - } - - //This 2nd random check determines whether demand increases or decreases - //More demand = higher market price - v = (Math.random() * this.mv) / 100; - pv = (Math.random() * this.mv) / 300; - if (Math.random() < 0.45) { - this.dmd *= (1+v); - if (this.dmd > this.dmdR[1]) {this.dmd = this.dmdR[1];} - this.bCost *= (1+pv); - } else { - this.dmd *= (1-v); - if (this.dmd < this.dmdR[0]) {this.dmd = this.dmdR[0];} - this.bCost *= (1-pv); - } -} - -Material.prototype.toJSON = function() { - return Generic_toJSON("Material", this); -} - -Material.fromJSON = function(value) { - return Generic_fromJSON(Material, value.data); -} - -Reviver.constructors.Material = Material; - -//Map of material (by name) to their sizes (how much space it takes in warehouse) -let MaterialSizes = { - Water: 0.05, - Energy: 0.01, - Food: 0.03, - Plants: 0.05, - Metal: 0.1, - Hardware: 0.06, - Chemicals: 0.05, - Drugs: 0.02, - Robots: 0.5, - AICores: 0.1, - RealEstate: 0, -} - -function Product(params={}) { - this.name = params.name ? params.name : 0; - this.dmd = params.demand ? params.demand : 0; - this.cmp = params.competition ? params.competition : 0; - this.mku = params.markup ? params.markup : 0; - this.pCost = 0; //An estimate of how much money it costs to make this - this.sCost = 0; //How much this is selling for - - //Variables for creation of product - this.fin = false; //Finished being created - this.prog = 0; //0-100% created - this.createCity = params.createCity ? params.createCity : ""; // City in which the product is being created - this.designCost = params.designCost ? params.designCost : 0; - this.advCost = params.advCost ? params.advCost : 0; - - //Aggregate score for a product's 'rating' based on the other properties below - //The weighting of the other properties (performance, durability) - //differs between industries - this.rat = 0; - - this.qlt = params.quality ? params.quality : 0; - this.per = params.performance ? params.performance : 0; - this.dur = params.durability ? params.durability : 0; - this.rel = params.reliability ? params.reliability : 0; - this.aes = params.aesthetics ? params.aesthetics : 0; - this.fea = params.features ? params.features : 0; - - //Data refers to the production, sale, and quantity of the products - //These values are specific to a city - //The data is [qty, prod, sell] - this.data = { - [Locations.Aevum]: [0, 0, 0], - [Locations.Chongqing]: [0, 0, 0], - [Locations.Sector12]: [0, 0, 0], - [Locations.NewTokyo]: [0, 0, 0], - [Locations.Ishima]: [0, 0, 0], - [Locations.Volhaven]: [0, 0, 0], - } - - //Only applies for location-based products like restaurants/hospitals - this.loc = params.loc ? params.loc : 0; - - //How much space it takes in the warehouse. Not applicable for all products - this.siz = params.size ? params.size : 0; - - //Material requirements. An object that maps the name of a material to how much it requires - //to make 1 unit of the product. - this.reqMats = params.req ? params.req : {}; - - //[Whether production/sale is limited, limit amount] - this.prdman = { - [Locations.Aevum]: [false, 0], - [Locations.Chongqing]: [false, 0], - [Locations.Sector12]: [false, 0], - [Locations.NewTokyo]: [false, 0], - [Locations.Ishima]: [false, 0], - [Locations.Volhaven]: [false, 0], - } - - this.sllman = { - [Locations.Aevum]: [false, 0], - [Locations.Chongqing]: [false, 0], - [Locations.Sector12]: [false, 0], - [Locations.NewTokyo]: [false, 0], - [Locations.Ishima]: [false, 0], - [Locations.Volhaven]: [false, 0], - } -} - -//empWorkMult is a multiplier that increases progress rate based on -//productivity of employees -Product.prototype.createProduct = function(marketCycles=1, empWorkMult=1) { - if (this.fin) {return;} - this.prog += (marketCycles * .01 * empWorkMult); -} - -//'industry' is a reference to the industry that makes the product -Product.prototype.finishProduct = function(employeeProd, industry) { - this.fin = true; - - //Calculate properties - var progrMult = this.prog / 100; - - var engrRatio = employeeProd[EmployeePositions.Engineer] / employeeProd["total"], - mgmtRatio = employeeProd[EmployeePositions.Management] / employeeProd["total"], - rndRatio = employeeProd[EmployeePositions.RandD] / employeeProd["total"], - opsRatio = employeeProd[EmployeePositions.Operations] / employeeProd["total"], - busRatio = employeeProd[EmployeePositions.Business] / employeeProd["total"]; - var designMult = 1 + (Math.pow(this.designCost, 0.1) / 100); - console.log("designMult: " + designMult); - var balanceMult = (1.2 * engrRatio) + (0.9 * mgmtRatio) + (1.3 * rndRatio) + - (1.5 * opsRatio) + (busRatio); - var sciMult = 1 + (Math.pow(industry.sciResearch.qty, industry.sciFac) / 800); - var totalMult = progrMult * balanceMult * designMult * sciMult; - - this.qlt = totalMult * ((0.10 * employeeProd[EmployeePositions.Engineer]) + - (0.05 * employeeProd[EmployeePositions.Management]) + - (0.05 * employeeProd[EmployeePositions.RandD]) + - (0.02 * employeeProd[EmployeePositions.Operations]) + - (0.02 * employeeProd[EmployeePositions.Business])); - this.per = totalMult * ((0.15 * employeeProd[EmployeePositions.Engineer]) + - (0.02 * employeeProd[EmployeePositions.Management]) + - (0.02 * employeeProd[EmployeePositions.RandD]) + - (0.02 * employeeProd[EmployeePositions.Operations]) + - (0.02 * employeeProd[EmployeePositions.Business])); - this.dur = totalMult * ((0.05 * employeeProd[EmployeePositions.Engineer]) + - (0.02 * employeeProd[EmployeePositions.Management]) + - (0.08 * employeeProd[EmployeePositions.RandD]) + - (0.05 * employeeProd[EmployeePositions.Operations]) + - (0.05 * employeeProd[EmployeePositions.Business])); - this.rel = totalMult * ((0.02 * employeeProd[EmployeePositions.Engineer]) + - (0.08 * employeeProd[EmployeePositions.Management]) + - (0.02 * employeeProd[EmployeePositions.RandD]) + - (0.05 * employeeProd[EmployeePositions.Operations]) + - (0.08 * employeeProd[EmployeePositions.Business])); - this.aes = totalMult * ((0.00 * employeeProd[EmployeePositions.Engineer]) + - (0.08 * employeeProd[EmployeePositions.Management]) + - (0.05 * employeeProd[EmployeePositions.RandD]) + - (0.02 * employeeProd[EmployeePositions.Operations]) + - (0.10 * employeeProd[EmployeePositions.Business])); - this.fea = totalMult * ((0.08 * employeeProd[EmployeePositions.Engineer]) + - (0.05 * employeeProd[EmployeePositions.Management]) + - (0.02 * employeeProd[EmployeePositions.RandD]) + - (0.05 * employeeProd[EmployeePositions.Operations]) + - (0.05 * employeeProd[EmployeePositions.Business])); - this.calculateRating(industry); - var advMult = 1 + (Math.pow(this.advCost, 0.1) / 100); - this.mku = 100 / (advMult * Math.pow((this.qlt + 0.001), 0.65) * (busRatio + mgmtRatio)); - this.dmd = industry.awareness === 0 ? 20 : Math.min(100, advMult * (100 * (industry.popularity / industry.awareness))); - this.cmp = getRandomInt(0, 70); - - //Calculate the product's required materials - //For now, just set it to be the same as the requirements to make materials - for (var matName in industry.reqMats) { - if (industry.reqMats.hasOwnProperty(matName)) { - this.reqMats[matName] = industry.reqMats[matName]; - } - } - - //Calculate the product's size - //For now, just set it to be the same size as the requirements to make materials - this.siz = 0; - for (var matName in industry.reqMats) { - this.siz += MaterialSizes[matName] * industry.reqMats[matName]; - } - - //Delete unneeded variables - delete this.prog; - delete this.createCity; - delete this.designCost; - delete this.advCost; -} +export const ProductProductionCostRatio = 5; //Ratio of material cost of a product to its production cost -Product.prototype.calculateRating = function(industry) { - var weights = ProductRatingWeights[industry.type]; - if (weights == null) { - console.log("ERROR: Could not find product rating weights for: " + industry); - return; - } - this.rat = 0; - this.rat += weights.Quality ? this.qlt * weights.Quality : 0; - this.rat += weights.Performance ? this.per * weights.Performance : 0; - this.rat += weights.Durability ? this.dur * weights.Durability : 0; - this.rat += weights.Reliability ? this.rel * weights.Reliability : 0; - this.rat += weights.Aesthetics ? this.aes * weights.Aesthetics : 0; - this.rat += weights.Features ? this.fea * weights.Features : 0; -} - -Product.prototype.toJSON = function() { - return Generic_toJSON("Product", this); -} - -Product.fromJSON = function(value) { - return Generic_fromJSON(Product, value.data); -} - -Reviver.constructors.Product = Product; - -var Industries = { - Energy: "Energy", - Utilities: "Water Utilities", - Agriculture: "Agriculture", - Fishing: "Fishing", - Mining: "Mining", - Food: "Food", - Tobacco: "Tobacco", - Chemical: "Chemical", - Pharmaceutical: "Pharmaceutical", - Computer: "Computer Hardware", - Robotics: "Robotics", - Software: "Software", - Healthcare: "Healthcare", - RealEstate: "RealEstate", -} - -var IndustryStartingCosts = { - Energy: 225e9, - Utilities: 150e9, - Agriculture: 40e9, - Fishing: 80e9, - Mining: 300e9, - Food: 10e9, - Tobacco: 20e9, - Chemical: 70e9, - Pharmaceutical: 200e9, - Computer: 500e9, - Robotics: 1e12, - Software: 25e9, - Healthcare: 750e9, - RealEstate: 600e9, -} - -var IndustryDescriptions = { - Energy: "Engage in the production and distribution of energy.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Energy, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Utilities: "Distributes water and provides wastewater services.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Utilities, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Agriculture: "Cultive crops and breed livestock to produce food.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Agriculture, "$0.000a") + "
" + - "Recommended starting Industry: YES", - Fishing: "Produce food through the breeding and processing of fish and fish products

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Fishing, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Mining: "Extract and process metals from the earth.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Mining, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Food: "Create your own restaurants all around the world.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Food, "$0.000a") + "
" + - "Recommended starting Industry: YES", - Tobacco: "Create and distribute tobacco and tobacco-related products.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Tobacco, "$0.000a") + "
" + - "Recommended starting Industry: YES", - Chemical: "Product industrial chemicals

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Chemical, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Pharmaceutical: "Discover, develop, and create new pharmaceutical drugs.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Pharmaceutical, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Computer: "Develop and manufacture new computer hardware and networking infrastructures.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Computer, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Robotics: "Develop and create robots.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Robotics, "$0.000a") + "
" + - "Recommended starting Industry: NO", - Software: "Develop computer software and create AI Cores.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Software, "$0.000a") + "
" + - "Recommended starting Industry: YES", - Healthcare: "Create and manage hospitals.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Healthcare, "$0.000a") + "
" + - "Recommended starting Industry: NO", - RealEstate: "Develop and manage real estate properties.

" + - "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.RealEstate, "$0.000a") + "
" + - "Recommended starting Industry: NO", -} - -var ProductRatingWeights = { - [Industries.Food]: { - Quality: 0.7, - Durability: 0.1, - Aesthetics: 0.2, - }, - [Industries.Tobacco]: { - Quality: 0.4, - Durability: 0.2, - Reliability: 0.2, - Aesthetics: 0.2, - }, - [Industries.Pharmaceutical]: { - Quality: 0.2, - Performance: 0.2, - Durability: 0.1, - Reliability: 0.3, - Features: 0.2, - }, - [Industries.Computer]: { - Quality: 0.15, - Performance: 0.25, - Durability: 0.25, - Reliability: 0.2, - Aesthetics: 0.05, - Features: 0.1, - }, - "Computer" : { //Repeat - Quality: 0.15, - Performance: 0.25, - Durability: 0.25, - Reliability: 0.2, - Aesthetics: 0.05, - Features: 0.1, - }, - [Industries.Robotics]: { - Quality: 0.1, - Performance: 0.2, - Durability: 0.2, - Reliability: 0.2, - Aesthetics: 0.1, - Features: 0.2, - }, - [Industries.Software]: { - Quality: 0.2, - Performance: 0.2, - Reliability: 0.2, - Durability: 0.2, - Features: 0.2, - }, - [Industries.Healthcare]: { - Quality: 0.4, - Performance: 0.1, - Durability: 0.1, - Reliability: 0.3, - Features: 0.1, - }, - [Industries.RealEstate]: { - Quality: 0.2, - Durability: 0.25, - Reliability: 0.1, - Aesthetics: 0.35, - Features: 0.1, - } -} //Industry upgrades //The structure is: @@ -788,7 +283,7 @@ Industry.prototype.init = function() { this.aiFac = 0.19; this.advFac = 0.17; this.reqMats = { - "Metal": 2.5, + "Metal": 2, "Energy": 1, } this.prodMats = ["Hardware"]; @@ -843,10 +338,10 @@ Industry.prototype.init = function() { this.sciFac = 0.05; this.hwFac = 0.05; this.reqMats = { - "Metal": 20, - "Energy": 10, - "Water": 10, - "Hardware": 5 + "Metal": 5, + "Energy": 5, + "Water": 2, + "Hardware": 4 } this.prodMats = ["RealEstate"]; this.makesProducts = true; @@ -1645,16 +1140,6 @@ Industry.fromJSON = function(value) { Reviver.constructors.Industry = Industry; -var EmployeePositions = { - Operations: "Operations", - Engineer: "Engineer", - Business: "Business", - Management: "Management", - RandD: "Research & Development", - Training:"Training", - Unassigned:"Unassigned", -} - function Employee(params={}) { if (!(this instanceof Employee)) { return new Employee(params); diff --git a/src/Corporation/CorporationState.ts b/src/Corporation/CorporationState.ts new file mode 100644 index 000000000..adc474496 --- /dev/null +++ b/src/Corporation/CorporationState.ts @@ -0,0 +1,45 @@ +import { Generic_fromJSON, + Generic_toJSON, + Reviver } from "../../utils/JSONReviver"; + +// Array of all valid states +export const AllCorporationStates: string[] = ["START", "PURCHASE", "PRODUCTION", "SALE", "EXPORT"]; + +export class CorporationState { + // Initiatizes a CorporationState object from a JSON save state. + static fromJSON(value: any): CorporationState { + return Generic_fromJSON(CorporationState, value.data); + } + + // Number representing what state the Corporation is in. The number + // is an index for the array that holds all Corporation States + state: number = 0; + + constructor() {} + + // Get the name of the current state + // NOTE: This does NOT return the number stored in the 'state' property, + // which is just an index for the array of all possible Corporation States. + getState(): string { + return AllCorporationStates[this.state]; + } + + // Transition to the next state + nextState(): void { + if (this.state < 0 || this.state >= AllCorporationStates.length) { + this.state = 0; + } + + ++this.state; + if (this.state >= AllCorporationStates.length) { + this.state = 0; + } + } + + // Serialize the current object to a JSON save state. + toJSON(): any { + return Generic_toJSON("CorporationState", this); + } +} + +Reviver.constructors.CorporationState = CorporationState; diff --git a/src/Corporation/EmployeePositions.ts b/src/Corporation/EmployeePositions.ts new file mode 100644 index 000000000..b7bd3420f --- /dev/null +++ b/src/Corporation/EmployeePositions.ts @@ -0,0 +1,11 @@ +import { IMap } from "../types"; + +export const EmployeePositions: IMap = { + Operations: "Operations", + Engineer: "Engineer", + Business: "Business", + Management: "Management", + RandD: "Research & Development", + Training:"Training", + Unassigned:"Unassigned", +} diff --git a/src/Corporation/IndustryData.ts b/src/Corporation/IndustryData.ts new file mode 100644 index 000000000..ead3d3a68 --- /dev/null +++ b/src/Corporation/IndustryData.ts @@ -0,0 +1,81 @@ +import { IMap } from "../types"; +import { numeralWrapper } from "../ui/numeralFormat"; + +export const Industries: IMap = { + Energy: "Energy", + Utilities: "Water Utilities", + Agriculture: "Agriculture", + Fishing: "Fishing", + Mining: "Mining", + Food: "Food", + Tobacco: "Tobacco", + Chemical: "Chemical", + Pharmaceutical: "Pharmaceutical", + Computer: "Computer Hardware", + Robotics: "Robotics", + Software: "Software", + Healthcare: "Healthcare", + RealEstate: "RealEstate", +} + +export const IndustryStartingCosts: IMap = { + Energy: 225e9, + Utilities: 150e9, + Agriculture: 40e9, + Fishing: 80e9, + Mining: 300e9, + Food: 10e9, + Tobacco: 20e9, + Chemical: 70e9, + Pharmaceutical: 200e9, + Computer: 500e9, + Robotics: 1e12, + Software: 25e9, + Healthcare: 750e9, + RealEstate: 600e9, +} + +export const IndustryDescriptions: IMap = { + Energy: "Engage in the production and distribution of energy.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Energy, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Utilities: "Distributes water and provides wastewater services.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Utilities, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Agriculture: "Cultive crops and breed livestock to produce food.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Agriculture, "$0.000a") + "
" + + "Recommended starting Industry: YES", + Fishing: "Produce food through the breeding and processing of fish and fish products

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Fishing, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Mining: "Extract and process metals from the earth.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Mining, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Food: "Create your own restaurants all around the world.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Food, "$0.000a") + "
" + + "Recommended starting Industry: YES", + Tobacco: "Create and distribute tobacco and tobacco-related products.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Tobacco, "$0.000a") + "
" + + "Recommended starting Industry: YES", + Chemical: "Product industrial chemicals

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Chemical, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Pharmaceutical: "Discover, develop, and create new pharmaceutical drugs.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Pharmaceutical, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Computer: "Develop and manufacture new computer hardware and networking infrastructures.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Computer, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Robotics: "Develop and create robots.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Robotics, "$0.000a") + "
" + + "Recommended starting Industry: NO", + Software: "Develop computer software and create AI Cores.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Software, "$0.000a") + "
" + + "Recommended starting Industry: YES", + Healthcare: "Create and manage hospitals.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.Healthcare, "$0.000a") + "
" + + "Recommended starting Industry: NO", + RealEstate: "Develop and manage real estate properties.

" + + "Starting cost: " + numeralWrapper.format(IndustryStartingCosts.RealEstate, "$0.000a") + "
" + + "Recommended starting Industry: NO", +} diff --git a/src/Corporation/Material.ts b/src/Corporation/Material.ts new file mode 100644 index 000000000..c580e44f5 --- /dev/null +++ b/src/Corporation/Material.ts @@ -0,0 +1,188 @@ +import { Generic_fromJSON, + Generic_toJSON, + Reviver } from "../../utils/JSONReviver"; + +interface IConstructorParams { + name?: string; +} + +export class Material { + // Initiatizes a Material object from a JSON save state. + static fromJSON(value: any): Material { + return Generic_fromJSON(Material, value.data); + } + + + // Name of material + name: string = ""; + + // Amount of material owned + qty: number = 0; + + // Material's "quality". Unbounded + qlt: number = 0; + + // How much demand the Material has in the market, and the range of possible + // values for this "demand" + dmd: number = 0; + dmdR: number[] = [0, 0]; + + // How much competition there is for this Material in the market, and the range + // of possible values for this "competition" + cmp: number = 0; + cmpR: number[] = [0, 0]; + + // Maximum volatility of this Materials stats + mv: number = 0; + + // Markup. Determines how high of a price you can charge on the material + // compared to the market price without suffering loss in # of sales + // Quality is divided by this to determine markup limits + // e,g, If mku is 10 and quality is 100 then you can markup prices by 100/10 = 10 + mku: number = 0; + + // How much of this material is being bought, sold, imported and produced every second + buy: number = 0; + sll: number = 0; + prd: number = 0; + imp: number = 0; + + // Exports of this material to another warehouse/industry + exp: any[] = []; + + // Total amount of this material exported in the last cycle + totalExp: number = 0; + + // Cost / sec to buy this material. AKA Market Price + bCost: number = 0; + + // Cost / sec to sell this material + sCost: number = 0; + + // Flags to keep track of whether production and/or sale of this material is limited + // [Whether production/sale is limited, limit amount] + prdman: any[] = [false, 0]; // Production + sllman: any[] = [false, 0]; // Sale + + constructor(params: IConstructorParams = {}) { + if (params.name) { this.name = params.name; } + this.init(); + } + + init(): void { + switch(this.name) { + case "Water": + this.dmd = 75; this.dmdR = [65, 85]; + this.cmp = 50; this.cmpR = [40, 60]; + this.bCost = 1500; this.mv = 0.2; + this.mku = 6; + break; + case "Energy": + this.dmd = 90; this.dmdR = [80, 100]; + this.cmp = 80; this.cmpR = [65, 95]; + this.bCost = 2000; this.mv = 0.2; + this.mku = 6; + break; + case "Food": + this.dmd = 80; this.dmdR = [70, 90]; + this.cmp = 60; this.cmpR = [35, 85]; + this.bCost = 5000; this.mv = 1; + this.mku = 3; + break; + case "Plants": + this.dmd = 70; this.dmdR = [20, 90]; + this.cmp = 50; this.cmpR = [30, 70]; + this.bCost = 3000; this.mv = 0.6; + this.mku = 3.75; + break; + case "Metal": + this.dmd = 80; this.dmdR = [75, 85]; + this.cmp = 70; this.cmpR = [60, 80]; + this.bCost = 2650; this.mv = 1; + this.mku = 6; + break; + case "Hardware": + this.dmd = 85; this.dmdR = [80, 90]; + this.cmp = 80; this.cmpR = [65, 95]; + this.bCost = 8e3; this.mv = 0.5; //Less mv bc its processed twice + this.mku = 1; + break; + case "Chemicals": + this.dmd = 55; this.dmdR = [40, 70]; + this.cmp = 60; this.cmpR = [40, 80]; + this.bCost = 9e3; this.mv = 1.2; + this.mku = 2; + break; + case "Real Estate": + this.dmd = 50; this.dmdR = [5, 100]; + this.cmp = 50; this.cmpR = [25, 75]; + this.bCost = 80e3; this.mv = 1.5; //Less mv bc its processed twice + this.mku = 1.5; + break; + case "Drugs": + this.dmd = 60; this.dmdR = [45, 75]; + this.cmp = 70; this.cmpR = [40, 100]; + this.bCost = 40e3; this.mv = 1.6; + this.mku = 1; + break; + case "Robots": + this.dmd = 90; this.dmdR = [80, 100]; + this.cmp = 90; this.cmpR = [80, 100]; + this.bCost = 75e3; this.mv = 0.5; //Less mv bc its processed twice + this.mku = 1; + break; + case "AI Cores": + this.dmd = 90; this.dmdR = [80, 100]; + this.cmp = 90; this.cmpR = [80, 100]; + this.bCost = 15e3; this.mv = 0.8; //Less mv bc its processed twice + this.mku = 0.5; + break; + case "Scientific Research": + break; + default: + console.log("Invalid material type in init(): " + this.name); + break; + } + } + + // Process change in demand, competition, and buy cost of this material + processMarket(): void { + // The price will change in accordance with demand and competition. + // e.g. If demand goes up, then so does price. If competition goes up, price goes down + const priceVolatility: number = (Math.random() * this.mv) / 300; + const priceChange: number = 1 + priceVolatility; + + //This 1st random check determines whether competition increases or decreases + const compVolatility: number = (Math.random() * this.mv) / 100; + const compChange: number = 1 + compVolatility; + if (Math.random() < 5) { + this.cmp *= compChange; + if (this.cmp > this.cmpR[1]) {this.cmp = this.cmpR[1]}; + this.bCost *= (1 / priceChange); // Competition increases, so price goes down + } else { + this.cmp *= (1 / compChange); + if (this.cmp < this.cmpR[0]) {this.cmp = this.cmpR[0];} + this.bCost *= priceChange; // Competition decreases, so price goes up + } + + // This 2nd random check determines whether demand increases or decreases + const dmdVolatility: number = (Math.random() * this.mv) / 100; + const dmdChange: number = 1 + dmdVolatility; + if (Math.random() < 0.5) { + this.dmd *= dmdChange; + if (this.dmd > this.dmdR[1]) {this.dmd = this.dmdR[1];} + this.bCost *= priceChange; // Demand increases, so price goes up + } else { + this.dmd *= (1 / dmdChange); + if (this.dmd < this.dmdR[0]) {this.dmd = this.dmdR[0];} + this.bCost *= (1 / priceChange); + } + } + + // Serialize the current object to a JSON save state. + toJSON(): any { + return Generic_toJSON("Material", this); + } +} + +Reviver.constructors.Material = Material; diff --git a/src/Corporation/MaterialSizes.ts b/src/Corporation/MaterialSizes.ts new file mode 100644 index 000000000..6f744cc12 --- /dev/null +++ b/src/Corporation/MaterialSizes.ts @@ -0,0 +1,16 @@ +import { IMap } from "../types"; + +// Map of material (by name) to their sizes (how much space it takes in warehouse) +export const MaterialSizes: IMap = { + Water: 0.05, + Energy: 0.01, + Food: 0.03, + Plants: 0.05, + Metal: 0.1, + Hardware: 0.06, + Chemicals: 0.05, + Drugs: 0.02, + Robots: 0.5, + AICores: 0.1, + RealEstate: 0, +} diff --git a/src/Corporation/Product.ts b/src/Corporation/Product.ts new file mode 100644 index 000000000..6f8524e62 --- /dev/null +++ b/src/Corporation/Product.ts @@ -0,0 +1,259 @@ +import { EmployeePositions } from "./EmployeePositions"; +import { MaterialSizes } from "./MaterialSizes"; +import { ProductRatingWeights, + IProductRatingWeight } from "./ProductRatingWeights"; + +import { Cities } from "../Locations/Cities"; +import { IMap } from "../types"; + +import { Generic_fromJSON, + Generic_toJSON, + Reviver } from "../../utils/JSONReviver"; +import { getRandomInt } from "../../utils/helpers/getRandomInt"; + +interface IConstructorParams { + name?: string; + demand?: number; + competition?: number; + markup?: number; + createCity?: string; + designCost?: number; + advCost?: number; + quality?: number; + performance?: number; + durability?: number; + reliability?: number; + aesthetics?: number; + features?: number; + loc?: string; + size?: number; + req?: IMap; +} + +// Interface for an Industry object - Used for type checking method arguments +interface IIndustry { + awareness: number; + popularity: number; + reqMats: IMap; + sciFac: number; + sciResearch: any; + type: string; +} + + +export class Product { + // Initiatizes a Product object from a JSON save state. + static fromJSON(value: any): Product { + return Generic_fromJSON(Product, value.data); + } + + // Product name + name: string = ""; + + // The demand for this Product in the market. Gradually decreases + dmd: number = 0; + + // How much competition there is in the market for this Product + cmp: number = 0; + + // Markup. Affects how high of a price you can charge for this Product + // without suffering a loss in the # of sales + mku: number = 0; + + // Production cost - estimation of how much money it costs to make this Product + pCost: number = 0; + + // Sell cost + sCost: number = 0; + + // Variables for handling the creation process of this Product + fin: boolean = false; // Whether this Product has finished being created + prog: number = 0; // Creation progress - A number betwee 0-100 representing percentage + createCity: string = ""; // City in which the product is/was being created + designCost: number = 0; // How much money was invested into designing this Product + advCost: number = 0; // How much money was invested into advertising this Product + + // Aggregate score for this Product's 'rating' + // This is based on the stats/properties below. The weighting of the + // stats/properties below differs between different industries + rat: number = 0; + + // Stats/properties of this Product + qlt: number = 0; + per: number = 0; + dur: number = 0; + rel: number = 0; + aes: number = 0; + fea: number = 0; + + // Data refers to the production, sale, and quantity of the products + // These values are specific to a city + // For each city, the data is [qty, prod, sell] + data: IMap = { + [Cities.Aevum]: [0, 0, 0], + [Cities.Chongqing]: [0, 0, 0], + [Cities.Sector12]: [0, 0, 0], + [Cities.NewTokyo]: [0, 0, 0], + [Cities.Ishima]: [0, 0, 0], + [Cities.Volhaven]: [0, 0, 0], + } + + // Location of this Product + // Only applies for location-based products like restaurants/hospitals + loc: string = ""; + + // How much space 1 unit of the Product takes (in the warehouse) + // Not applicable for all Products + siz: number = 0; + + // Material requirements. An object that maps the name of a material to how much it requires + // to make 1 unit of the product. + reqMats: IMap = {}; + + // Data to keep track of whether production/sale of this Product is + // manually limited. These values are specific to a city + // [Whether production/sale is limited, limit amount] + prdman: IMap = { + [Cities.Aevum]: [false, 0], + [Cities.Chongqing]: [false, 0], + [Cities.Sector12]: [false, 0], + [Cities.NewTokyo]: [false, 0], + [Cities.Ishima]: [false, 0], + [Cities.Volhaven]: [false, 0], + } + + sllman: IMap = { + [Cities.Aevum]: [false, 0], + [Cities.Chongqing]: [false, 0], + [Cities.Sector12]: [false, 0], + [Cities.NewTokyo]: [false, 0], + [Cities.Ishima]: [false, 0], + [Cities.Volhaven]: [false, 0], + } + + constructor(params: IConstructorParams={}) { + this.name = params.name ? params.name : ""; + this.dmd = params.demand ? params.demand : 0; + this.cmp = params.competition ? params.competition : 0; + this.mku = params.markup ? params.markup : 0; + this.createCity = params.createCity ? params.createCity : ""; + this.designCost = params.designCost ? params.designCost : 0; + this.advCost = params.advCost ? params.advCost : 0; + this.qlt = params.quality ? params.quality : 0; + this.per = params.performance ? params.performance : 0; + this.dur = params.durability ? params.durability : 0; + this.rel = params.reliability ? params.reliability : 0; + this.aes = params.aesthetics ? params.aesthetics : 0; + this.fea = params.features ? params.features : 0; + this.loc = params.loc ? params.loc : ""; + this.siz = params.size ? params.size : 0; + this.reqMats = params.req ? params.req : {}; + } + + // empWorkMult is a multiplier that increases progress rate based on + // productivity of employees + createProduct(marketCycles: number=1, empWorkMult: number=1): void { + if (this.fin) { return; } + this.prog += (marketCycles * .01 * empWorkMult); + } + + // @param industry - Industry object. Reference to industry that makes this Product + finishProduct(employeeProd: IMap, industry: IIndustry): void { + this.fin = true; + + //Calculate properties + var progrMult = this.prog / 100; + + var engrRatio = employeeProd[EmployeePositions.Engineer] / employeeProd["total"], + mgmtRatio = employeeProd[EmployeePositions.Management] / employeeProd["total"], + rndRatio = employeeProd[EmployeePositions.RandD] / employeeProd["total"], + opsRatio = employeeProd[EmployeePositions.Operations] / employeeProd["total"], + busRatio = employeeProd[EmployeePositions.Business] / employeeProd["total"]; + var designMult = 1 + (Math.pow(this.designCost, 0.1) / 100); + console.log("designMult: " + designMult); + var balanceMult = (1.2 * engrRatio) + (0.9 * mgmtRatio) + (1.3 * rndRatio) + + (1.5 * opsRatio) + (busRatio); + var sciMult = 1 + (Math.pow(industry.sciResearch.qty, industry.sciFac) / 800); + var totalMult = progrMult * balanceMult * designMult * sciMult; + + this.qlt = totalMult * ((0.10 * employeeProd[EmployeePositions.Engineer]) + + (0.05 * employeeProd[EmployeePositions.Management]) + + (0.05 * employeeProd[EmployeePositions.RandD]) + + (0.02 * employeeProd[EmployeePositions.Operations]) + + (0.02 * employeeProd[EmployeePositions.Business])); + this.per = totalMult * ((0.15 * employeeProd[EmployeePositions.Engineer]) + + (0.02 * employeeProd[EmployeePositions.Management]) + + (0.02 * employeeProd[EmployeePositions.RandD]) + + (0.02 * employeeProd[EmployeePositions.Operations]) + + (0.02 * employeeProd[EmployeePositions.Business])); + this.dur = totalMult * ((0.05 * employeeProd[EmployeePositions.Engineer]) + + (0.02 * employeeProd[EmployeePositions.Management]) + + (0.08 * employeeProd[EmployeePositions.RandD]) + + (0.05 * employeeProd[EmployeePositions.Operations]) + + (0.05 * employeeProd[EmployeePositions.Business])); + this.rel = totalMult * ((0.02 * employeeProd[EmployeePositions.Engineer]) + + (0.08 * employeeProd[EmployeePositions.Management]) + + (0.02 * employeeProd[EmployeePositions.RandD]) + + (0.05 * employeeProd[EmployeePositions.Operations]) + + (0.08 * employeeProd[EmployeePositions.Business])); + this.aes = totalMult * ((0.00 * employeeProd[EmployeePositions.Engineer]) + + (0.08 * employeeProd[EmployeePositions.Management]) + + (0.05 * employeeProd[EmployeePositions.RandD]) + + (0.02 * employeeProd[EmployeePositions.Operations]) + + (0.10 * employeeProd[EmployeePositions.Business])); + this.fea = totalMult * ((0.08 * employeeProd[EmployeePositions.Engineer]) + + (0.05 * employeeProd[EmployeePositions.Management]) + + (0.02 * employeeProd[EmployeePositions.RandD]) + + (0.05 * employeeProd[EmployeePositions.Operations]) + + (0.05 * employeeProd[EmployeePositions.Business])); + this.calculateRating(industry); + var advMult = 1 + (Math.pow(this.advCost, 0.1) / 100); + this.mku = 100 / (advMult * Math.pow((this.qlt + 0.001), 0.65) * (busRatio + mgmtRatio)); + this.dmd = industry.awareness === 0 ? 20 : Math.min(100, advMult * (100 * (industry.popularity / industry.awareness))); + this.cmp = getRandomInt(0, 70); + + //Calculate the product's required materials + //For now, just set it to be the same as the requirements to make materials + for (var matName in industry.reqMats) { + if (industry.reqMats.hasOwnProperty(matName)) { + this.reqMats[matName] = industry.reqMats[matName]; + } + } + + //Calculate the product's size + //For now, just set it to be the same size as the requirements to make materials + this.siz = 0; + for (var matName in industry.reqMats) { + this.siz += MaterialSizes[matName] * industry.reqMats[matName]; + } + + //Delete unneeded variables + delete this.prog; + delete this.createCity; + delete this.designCost; + delete this.advCost; + } + + + calculateRating(industry: IIndustry): void { + const weights: IProductRatingWeight = ProductRatingWeights[industry.type]; + if (weights == null) { + console.log("ERROR: Could not find product rating weights for: " + industry); + return; + } + this.rat = 0; + this.rat += weights.Quality ? this.qlt * weights.Quality : 0; + this.rat += weights.Performance ? this.per * weights.Performance : 0; + this.rat += weights.Durability ? this.dur * weights.Durability : 0; + this.rat += weights.Reliability ? this.rel * weights.Reliability : 0; + this.rat += weights.Aesthetics ? this.aes * weights.Aesthetics : 0; + this.rat += weights.Features ? this.fea * weights.Features : 0; + } + + // Serialize the current object to a JSON save state. + toJSON(): any { + return Generic_toJSON("Product", this); + } +} + +Reviver.constructors.Product = Product; diff --git a/src/Corporation/ProductRatingWeights.ts b/src/Corporation/ProductRatingWeights.ts new file mode 100644 index 000000000..e19e9298d --- /dev/null +++ b/src/Corporation/ProductRatingWeights.ts @@ -0,0 +1,77 @@ +import { Industries } from "./IndustryData"; +import { IMap } from "../types"; + +export interface IProductRatingWeight { + Aesthetics?: number; + Durability?: number; + Features?: number; + Quality?: number; + Performance?: number; + Reliability?: number; +} + +export const ProductRatingWeights: IMap = { + [Industries.Food]: { + Quality: 0.7, + Durability: 0.1, + Aesthetics: 0.2, + }, + [Industries.Tobacco]: { + Quality: 0.4, + Durability: 0.2, + Reliability: 0.2, + Aesthetics: 0.2, + }, + [Industries.Pharmaceutical]: { + Quality: 0.2, + Performance: 0.2, + Durability: 0.1, + Reliability: 0.3, + Features: 0.2, + }, + [Industries.Computer]: { + Quality: 0.15, + Performance: 0.25, + Durability: 0.25, + Reliability: 0.2, + Aesthetics: 0.05, + Features: 0.1, + }, + "Computer" : { //Repeat + Quality: 0.15, + Performance: 0.25, + Durability: 0.25, + Reliability: 0.2, + Aesthetics: 0.05, + Features: 0.1, + }, + [Industries.Robotics]: { + Quality: 0.1, + Performance: 0.2, + Durability: 0.2, + Reliability: 0.2, + Aesthetics: 0.1, + Features: 0.2, + }, + [Industries.Software]: { + Quality: 0.2, + Performance: 0.2, + Reliability: 0.2, + Durability: 0.2, + Features: 0.2, + }, + [Industries.Healthcare]: { + Quality: 0.4, + Performance: 0.1, + Durability: 0.1, + Reliability: 0.3, + Features: 0.1, + }, + [Industries.RealEstate]: { + Quality: 0.2, + Durability: 0.25, + Reliability: 0.1, + Aesthetics: 0.35, + Features: 0.1, + } +} diff --git a/src/Location.js b/src/Location.js index 1b0a9df89..3216786ff 100644 --- a/src/Location.js +++ b/src/Location.js @@ -3,7 +3,7 @@ import {CompanyPositions} from "./Company/CompanyPositions import {Companies} from "./Company/Companies"; import {getJobRequirementText} from "./Company/GetJobRequirementText"; import * as posNames from "./Company/data/CompanyPositionNames"; -import {Corporation} from "./CompanyManagement"; +import { Corporation } from "./Corporation/Corporation"; import {CONSTANTS} from "./Constants"; import {Crimes} from "./Crimes"; import {Engine} from "./engine"; diff --git a/src/Player.js b/src/Player.js index a89a8561d..54ab8a22b 100644 --- a/src/Player.js +++ b/src/Player.js @@ -10,7 +10,7 @@ import {getJobRequirementText} from "./Company/GetJobRequiremen import {CompanyPositions} from "./Company/CompanyPositions"; import * as posNames from "./Company/data/CompanyPositionNames"; import {CONSTANTS} from "./Constants"; -import {Corporation} from "./CompanyManagement"; +import { Corporation } from "./Corporation/Corporation"; import {Programs} from "./CreateProgram"; import {determineCrimeSuccess, Crimes} from "./Crimes"; import {Engine} from "./engine"; diff --git a/src/engine.js b/src/engine.js index 5e9cac97d..676650589 100644 --- a/src/engine.js +++ b/src/engine.js @@ -27,7 +27,7 @@ import {cinematicTextFlag} from "./CinematicText"; import {generateRandomContract} from "./CodingContractGenerator"; import {CompanyPositions} from "./Company/CompanyPositions"; import {initCompanies} from "./Company/Companies"; -import {Corporation} from "./CompanyManagement"; +import { Corporation } from "./Corporation/Corporation"; import {CONSTANTS} from "./Constants"; import {displayCreateProgramContent, getNumAvailableCreateProgram, diff --git a/src/ui/numeralFormat.js b/src/ui/numeralFormat.ts similarity index 84% rename from src/ui/numeralFormat.js rename to src/ui/numeralFormat.ts index 3c32bddcf..bb45c573d 100644 --- a/src/ui/numeralFormat.js +++ b/src/ui/numeralFormat.ts @@ -1,4 +1,4 @@ -import numeral from "numeral"; +import * as numeral from 'numeral'; import 'numeral/locales/bg'; import 'numeral/locales/cs'; import 'numeral/locales/da-dk'; @@ -17,11 +17,14 @@ import 'numeral/locales/ru'; /* eslint-disable class-methods-use-this */ class NumeralFormatter { + // Default Locale + defaultLocale: string = "en"; + constructor() { this.defaultLocale = 'en'; } - updateLocale(l) { + updateLocale(l: string): boolean { if (numeral.locale(l) == null) { console.warn(`Invalid locale for numeral: ${l}`); @@ -31,7 +34,7 @@ class NumeralFormatter { return true; } - format(n, format) { + format(n: number, format: string): string { // numeraljs doesnt properly format numbers that are too big or too small if (Math.abs(n) < 1e-6) { n = 0; } return numeral(n).format(format);