From a09ea46a38570071c89196c1041203d46af73faa Mon Sep 17 00:00:00 2001 From: danielyxie Date: Tue, 29 Jan 2019 22:02:27 -0800 Subject: [PATCH] Added BitNode multipliers for purchased servers. Fixed bugs in new Script Editor implementation. Added documentation for script editors --- css/codemirror-overrides.scss | 13 +- css/scripteditor.scss | 1 + dist/engine.bundle.js | 3284 +++++++++-------- dist/engine.css | 14 +- dist/vendor.bundle.js | 1855 +++++----- dist/vendor.css | 29 + doc/source/index.rst | 1 + doc/source/scripteditors.rst | 140 + doc/source/shortcuts.rst | 24 +- index.html | 3 + src/BitNode/BitNode.js | 4 + src/BitNode/BitNodeMultipliers.ts | 18 + src/Constants.ts | 3 +- src/Faction/FactionHelpers.js | 2 +- src/InteractiveTutorial.js | 28 +- src/Location.js | 55 +- src/NetscriptFunctions.js | 52 +- src/PersonObjects/Sleeve/Sleeve.ts | 57 +- src/PersonObjects/Sleeve/SleeveUI.ts | 98 +- src/Player.js | 5 +- src/Script.js | 5 +- src/ScriptEditor/Ace.js | 26 +- src/ScriptEditor/CodeMirror.js | 78 +- ...riptHint.js => CodeMirrorNetscriptLint.js} | 4 + src/ServerPurchases.js | 64 +- src/Settings/SettingEnums.ts | 23 + src/Settings/Settings.ts | 8 +- src/engine.js | 4 + src/index.html | 3 + src/ui/MainMenu/Links.ts | 2 +- utils/uiHelpers/clearEventListeners.ts | 10 +- 31 files changed, 3355 insertions(+), 2558 deletions(-) create mode 100644 doc/source/scripteditors.rst rename src/ScriptEditor/{CodeMirrorNetscriptHint.js => CodeMirrorNetscriptLint.js} (97%) diff --git a/css/codemirror-overrides.scss b/css/codemirror-overrides.scss index 5f0c2a993..0c286d53a 100644 --- a/css/codemirror-overrides.scss +++ b/css/codemirror-overrides.scss @@ -6,7 +6,7 @@ #codemirror-form-wrapper { height: 80%; - margin: 10px 0px 10px 6px; + margin: 10px 0px 0px 6px; } .CodeMirror { @@ -29,7 +29,6 @@ background-color: #8F908A; } - /** * Show Invisibles */ @@ -38,3 +37,13 @@ pointer-events: none; color: #404F7D; } + +/** + * Vim command display + */ +#codemirror-vim-command-display-wrapper { + background-color: white; + font-size: 13px; + height: 30px; + margin-left: 6px; +} diff --git a/css/scripteditor.scss b/css/scripteditor.scss index 26a2b3735..23a9f59a8 100644 --- a/css/scripteditor.scss +++ b/css/scripteditor.scss @@ -93,6 +93,7 @@ overflow: auto; z-index: 1; color: #fff; + max-height: 50%; } #script-editor-options-panel fieldset { diff --git a/dist/engine.bundle.js b/dist/engine.bundle.js index 8d5a0a69e..397789424 100644 --- a/dist/engine.bundle.js +++ b/dist/engine.bundle.js @@ -166,23 +166,23 @@ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return loadPlayer; }); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentation/Augmentations */ 14); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _Augmentation_AugmentationHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentation/AugmentationHelpers */ 64); -/* harmony import */ var _Augmentation_PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Augmentation/PlayerOwnedAugmentation */ 88); +/* harmony import */ var _Augmentation_AugmentationHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentation/AugmentationHelpers */ 65); +/* harmony import */ var _Augmentation_PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Augmentation/PlayerOwnedAugmentation */ 89); /* harmony import */ var _Augmentation_PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Augmentation/data/AugmentationNames */ 6); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BitNode/BitNodeMultipliers */ 10); /* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Bladeburner */ 35); -/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CodingContracts */ 47); +/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CodingContracts */ 48); /* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_CodingContracts__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Company/Company */ 75); +/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Company/Company */ 76); /* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Company_Company__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Company/Companies */ 20); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Company/GetNextCompanyPosition */ 118); +/* harmony import */ var _Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Company/GetNextCompanyPosition */ 119); /* harmony import */ var _Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Company_GetNextCompanyPosition__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Company/GetJobRequirementText */ 107); +/* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Company/GetJobRequirementText */ 108); /* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Company/CompanyPositions */ 34); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_11__); @@ -190,30 +190,30 @@ /* harmony import */ var _Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_Company_data_CompanyPositionNames__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Corporation/Corporation */ 67); -/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Programs/Programs */ 27); +/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Corporation/Corporation */ 68); +/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Programs/Programs */ 28); /* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _Crime_CrimeHelpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Crime/CrimeHelpers */ 108); +/* harmony import */ var _Crime_CrimeHelpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Crime/CrimeHelpers */ 109); /* harmony import */ var _Crime_Crimes__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Crime/Crimes */ 36); /* harmony import */ var _Crime_Crimes__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_Crime_Crimes__WEBPACK_IMPORTED_MODULE_17__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./engine */ 11); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Faction/Faction */ 61); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Faction/Faction */ 62); /* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_19__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Faction/Factions */ 16); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_20__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 49); -/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Gang */ 55); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 51); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Gang */ 57); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_23__); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./NetscriptFunctions */ 46); -/* harmony import */ var _PersonObjects_Sleeve_Sleeve__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./PersonObjects/Sleeve/Sleeve */ 102); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./NetscriptFunctions */ 47); +/* harmony import */ var _PersonObjects_Sleeve_Sleeve__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./PersonObjects/Sleeve/Sleeve */ 103); /* harmony import */ var _PersonObjects_Sleeve_Sleeve__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_PersonObjects_Sleeve_Sleeve__WEBPACK_IMPORTED_MODULE_25__); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Server */ 12); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_27__); /* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./SpecialServerIps */ 37); -/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./SourceFile */ 82); -/* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./SourceFile/SourceFileFlags */ 85); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./SourceFile */ 83); +/* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./SourceFile/SourceFileFlags */ 88); /* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_30__); /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! decimal.js */ 39); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); @@ -221,7 +221,7 @@ /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 21); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_34__); -/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../utils/IPAddress */ 69); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../utils/IPAddress */ 70); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../utils/JSONReviver */ 15); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_37__); @@ -427,6 +427,7 @@ function PlayerObject() { // Sleeves & Re-sleeving this.sleeves = []; this.resleeves = []; + this.sleevesFromCovenant = 0; // # of Duplicate sleeves purchased from the covenant //bitnode this.bitNodeN = 1; @@ -595,9 +596,7 @@ PlayerObject.prototype.prestigeSourceFile = function() { this.resleeves = []; // Duplicate sleeves are reset to level 1 every Bit Node (but the number of sleeves you have persists) - if (this.sleeves.length < _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_30__["SourceFileFlags"][10]) { - this.sleeves.length = _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_30__["SourceFileFlags"][10]; - } + this.sleeves.length = _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_30__["SourceFileFlags"][10] + this.sleevesFromCovenant; for (let i = 0; i < this.sleeves.length; ++i) { this.sleeves[i] = new _PersonObjects_Sleeve_Sleeve__WEBPACK_IMPORTED_MODULE_25__["Sleeve"](); } @@ -3176,10 +3175,11 @@ exports.CONSTANTS = { * Script Editor Changes: ** Added new script editor: CodeMirror. You can choose between the old editor (Ace) or CodeMirror - ** Navigation keyboard shortcuts no longer work on the script editor page + ** Navigation keyboard shortcuts no longer work if the script editor is focused * Trying to programmatically run a script (run(), exec()) with a 'threads' argument of 0 will now cause the function to return false without running the script * Home Computer RAM is now capped at 2 ^ 30 GB (1073741824 GB) + * The maximum amount, maximum RAM, and cost of purchasing servers can now vary between different BitNodes (new BitNode multipliers) * Pop-up dialog boxes are a little bit bigger * Bug Fix: When importing scripts, "./" will now be properly ignored (e.g. import { foo } from "./lib.script" ) ` @@ -3503,21 +3503,21 @@ exports.generateRandomString = generateRandomString; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const numeral = __webpack_require__(/*! numeral */ 93); -__webpack_require__(/*! numeral/locales/bg */ 406); -__webpack_require__(/*! numeral/locales/cs */ 405); -__webpack_require__(/*! numeral/locales/da-dk */ 404); -__webpack_require__(/*! numeral/locales/de */ 403); -__webpack_require__(/*! numeral/locales/en-au */ 402); -__webpack_require__(/*! numeral/locales/en-gb */ 401); -__webpack_require__(/*! numeral/locales/es */ 400); -__webpack_require__(/*! numeral/locales/fr */ 399); -__webpack_require__(/*! numeral/locales/hu */ 398); -__webpack_require__(/*! numeral/locales/it */ 397); -__webpack_require__(/*! numeral/locales/lv */ 396); -__webpack_require__(/*! numeral/locales/no */ 395); -__webpack_require__(/*! numeral/locales/pl */ 394); -__webpack_require__(/*! numeral/locales/ru */ 393); +const numeral = __webpack_require__(/*! numeral */ 94); +__webpack_require__(/*! numeral/locales/bg */ 409); +__webpack_require__(/*! numeral/locales/cs */ 408); +__webpack_require__(/*! numeral/locales/da-dk */ 407); +__webpack_require__(/*! numeral/locales/de */ 406); +__webpack_require__(/*! numeral/locales/en-au */ 405); +__webpack_require__(/*! numeral/locales/en-gb */ 404); +__webpack_require__(/*! numeral/locales/es */ 403); +__webpack_require__(/*! numeral/locales/fr */ 402); +__webpack_require__(/*! numeral/locales/hu */ 401); +__webpack_require__(/*! numeral/locales/it */ 400); +__webpack_require__(/*! numeral/locales/lv */ 399); +__webpack_require__(/*! numeral/locales/no */ 398); +__webpack_require__(/*! numeral/locales/pl */ 397); +__webpack_require__(/*! numeral/locales/ru */ 396); /* eslint-disable class-methods-use-this */ class NumeralFormatter { constructor() { @@ -3791,17 +3791,17 @@ exports.AugmentationNames = { /* 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 */ 133); +/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptEnvironment */ 135); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptWorker */ 30); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Server */ 12); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Script */ 33); -/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/acorn */ 52); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/acorn */ 54); /* 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 */ 62); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 63); /* 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 */ 101); +/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 102); /* 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 */ 44); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_11__); @@ -3819,7 +3819,7 @@ exports.AugmentationNames = { -var Promise = __webpack_require__(/*! bluebird */ 392); +var Promise = __webpack_require__(/*! bluebird */ 395); Promise.config({ warnings: false, @@ -4733,7 +4733,7 @@ function isScriptErrorMessage(msg) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ../../utils/uiHelpers/getElementById */ 60); +const getElementById_1 = __webpack_require__(/*! ../../utils/uiHelpers/getElementById */ 61); /** * Adds some output to the terminal. * @param input Text or HTML to output to the terminal @@ -4859,7 +4859,7 @@ function dialogBoxCreate(txt, preformatted=false) { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), /* 10 */ @@ -4889,6 +4889,9 @@ exports.BitNodeMultipliers = { ServerStartingMoney: 1, ServerStartingSecurity: 1, ServerWeakenRate: 1, + PurchasedServerCost: 1, + PurchasedServerLimit: 1, + PurchasedServerMaxRam: 1, CompanyWorkMoney: 1, CrimeMoney: 1, HacknetNodeMoney: 1, @@ -4927,79 +4930,79 @@ __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_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/LogBox */ 90); -/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ActiveScriptsUI */ 76); +/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/LogBox */ 91); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ActiveScriptsUI */ 77); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Augmentation/Augmentations */ 14); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _Augmentation_AugmentationHelpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Augmentation/AugmentationHelpers */ 64); +/* harmony import */ var _Augmentation_AugmentationHelpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Augmentation/AugmentationHelpers */ 65); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Augmentation/data/AugmentationNames */ 6); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _BitNode_BitNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BitNode/BitNode */ 68); +/* harmony import */ var _BitNode_BitNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./BitNode/BitNode */ 69); /* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Bladeburner */ 35); -/* harmony import */ var _CharacterOverview__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CharacterOverview */ 154); -/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./CinematicText */ 115); -/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CodingContractGenerator */ 114); +/* harmony import */ var _CharacterOverview__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./CharacterOverview */ 155); +/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./CinematicText */ 116); +/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CodingContractGenerator */ 115); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Company/CompanyPositions */ 34); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Company/Companies */ 20); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Corporation/Corporation */ 67); +/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Corporation/Corporation */ 68); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _DevMenu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./DevMenu */ 137); +/* harmony import */ var _DevMenu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./DevMenu */ 139); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Faction/Factions */ 16); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_16__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 49); -/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Fconf */ 50); -/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Location */ 105); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 51); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Fconf */ 52); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Location */ 106); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_20__); -/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./HacknetNode */ 74); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./HacknetNode */ 75); /* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./InteractiveTutorial */ 38); -/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Literature */ 95); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Message */ 45); -/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Missions */ 63); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./NetscriptFunctions */ 46); +/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Literature */ 96); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Message */ 46); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Missions */ 64); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./NetscriptFunctions */ 47); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./NetscriptWorker */ 30); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./Prestige */ 99); -/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Programs/Programs */ 27); +/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./Prestige */ 100); +/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Programs/Programs */ 28); /* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_30__); -/* harmony import */ var _Programs_ProgramHelpers__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Programs/ProgramHelpers */ 109); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./RedPill */ 66); -/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./SaveObject */ 81); +/* harmony import */ var _Programs_ProgramHelpers__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Programs/ProgramHelpers */ 110); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./RedPill */ 67); +/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./SaveObject */ 82); /* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./Script */ 33); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./Server */ 12); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_36__); -/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./SourceFile */ 82); -/* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./SourceFile/SourceFileFlags */ 85); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./SourceFile */ 83); +/* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./SourceFile/SourceFileFlags */ 88); /* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(_SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_38__); /* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./SpecialServerIps */ 37); /* harmony import */ var _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./StockMarket/StockMarket */ 24); -/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./Terminal */ 57); -/* harmony import */ var _PersonObjects_Sleeve_Sleeve__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./PersonObjects/Sleeve/Sleeve */ 102); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./Terminal */ 58); +/* harmony import */ var _PersonObjects_Sleeve_Sleeve__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./PersonObjects/Sleeve/Sleeve */ 103); /* harmony import */ var _PersonObjects_Sleeve_Sleeve__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(_PersonObjects_Sleeve_Sleeve__WEBPACK_IMPORTED_MODULE_42__); -/* harmony import */ var _PersonObjects_Sleeve_SleeveUI__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./PersonObjects/Sleeve/SleeveUI */ 117); +/* harmony import */ var _PersonObjects_Sleeve_SleeveUI__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./PersonObjects/Sleeve/SleeveUI */ 118); /* harmony import */ var _PersonObjects_Sleeve_SleeveUI__WEBPACK_IMPORTED_MODULE_43___default = /*#__PURE__*/__webpack_require__.n(_PersonObjects_Sleeve_SleeveUI__WEBPACK_IMPORTED_MODULE_43__); -/* harmony import */ var _PersonObjects_Resleeving_ResleevingUI__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./PersonObjects/Resleeving/ResleevingUI */ 136); +/* harmony import */ var _PersonObjects_Resleeving_ResleevingUI__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./PersonObjects/Resleeving/ResleevingUI */ 138); /* harmony import */ var _PersonObjects_Resleeving_ResleevingUI__WEBPACK_IMPORTED_MODULE_44___default = /*#__PURE__*/__webpack_require__.n(_PersonObjects_Resleeving_ResleevingUI__WEBPACK_IMPORTED_MODULE_44__); -/* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./ui/createStatusText */ 83); +/* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./ui/createStatusText */ 84); /* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_45___default = /*#__PURE__*/__webpack_require__.n(_ui_createStatusText__WEBPACK_IMPORTED_MODULE_45__); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./ui/navigationTracking */ 13); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_46___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_46__); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_47___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_47__); -/* harmony import */ var _ui_setSettingsLabels__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./ui/setSettingsLabels */ 153); -/* harmony import */ var _ui_MainMenu_Headers__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./ui/MainMenu/Headers */ 152); +/* harmony import */ var _ui_setSettingsLabels__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./ui/setSettingsLabels */ 154); +/* harmony import */ var _ui_MainMenu_Headers__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./ui/MainMenu/Headers */ 153); /* harmony import */ var _ui_MainMenu_Headers__WEBPACK_IMPORTED_MODULE_49___default = /*#__PURE__*/__webpack_require__.n(_ui_MainMenu_Headers__WEBPACK_IMPORTED_MODULE_49__); -/* harmony import */ var _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./ui/MainMenu/Links */ 29); +/* harmony import */ var _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./ui/MainMenu/Links */ 26); /* harmony import */ var _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(_ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_GameOptions__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../utils/GameOptions */ 96); +/* harmony import */ var _utils_GameOptions__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../utils/GameOptions */ 97); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 17); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_53___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_53__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 26); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_54___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_54__); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 21); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_55___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_55__); @@ -5007,11 +5010,11 @@ __webpack_require__.r(__webpack_exports__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_56___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_56__); /* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); /* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_57___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_57__); -/* harmony import */ var _utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../utils/uiHelpers/removeLoadingScreen */ 135); +/* harmony import */ var _utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../utils/uiHelpers/removeLoadingScreen */ 137); /* harmony import */ var _utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_58___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeLoadingScreen__WEBPACK_IMPORTED_MODULE_58__); -/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 28); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 29); /* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_59___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_59__); -/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! normalize.css */ 264); +/* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! normalize.css */ 265); /* harmony import */ var normalize_css__WEBPACK_IMPORTED_MODULE_60___default = /*#__PURE__*/__webpack_require__.n(normalize_css__WEBPACK_IMPORTED_MODULE_60__); /* harmony import */ var _css_styles_scss__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../css/styles.scss */ 224); /* harmony import */ var _css_styles_scss__WEBPACK_IMPORTED_MODULE_61___default = /*#__PURE__*/__webpack_require__.n(_css_styles_scss__WEBPACK_IMPORTED_MODULE_61__); @@ -5595,6 +5598,7 @@ const Engine = { _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__["MainMenuLinks"].Factions.classList.remove("active"); _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__["MainMenuLinks"].Augmentations.classList.remove("active"); _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__["MainMenuLinks"].HacknetNodes.classList.remove("active"); + _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__["MainMenuLinks"].Sleeves.classList.remove("active"); _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__["MainMenuLinks"].City.classList.remove("active"); _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__["MainMenuLinks"].Travel.classList.remove("active"); _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__["MainMenuLinks"].Job.classList.remove("active"); @@ -6611,6 +6615,7 @@ const Engine = { const errorMsg = "Failed to initialize Main Menu Links. Please try refreshing the page. " + "If that doesn't work, report the issue to the developer"; Object(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_57__["exceptionAlert"])(new Error(errorMsg)); + console.error(errorMsg); return; } }, @@ -6627,6 +6632,7 @@ const Engine = { const errorMsg = "Failed to initialize Main Menu Headers. Please try refreshing the page. " + "If that doesn't work, report the issue to the developer"; Object(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_57__["exceptionAlert"])(new Error(errorMsg)); + console.error(errorMsg); return; } @@ -6672,6 +6678,7 @@ const Engine = { _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__["MainMenuLinks"].Sleeves.addEventListener("click", function() { Engine.loadSleevesContent(); + _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_50__["MainMenuLinks"].Sleeves.classList.add("active"); return false; }); @@ -6903,7 +6910,7 @@ window.onload = function() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), /* 12 */ @@ -6928,24 +6935,24 @@ window.onload = function() { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return AllServers; }); /* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode/BitNodeMultipliers */ 10); /* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContracts */ 47); +/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContracts */ 48); /* 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 */ 33); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Programs/Programs */ 27); +/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Programs/Programs */ 28); /* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./SpecialServerIps */ 37); -/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TextFile */ 72); +/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./TextFile */ 73); /* 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 */ 17); /* 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 */ 69); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/IPAddress */ 70); /* harmony import */ var _data_servers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./data/servers */ 161); /* 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 */ 15); -/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 101); +/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/isValidIPAddress */ 102); /* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_12__); @@ -7677,8 +7684,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 */ 61); -const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 132); +const Faction_1 = __webpack_require__(/*! ./Faction */ 62); +const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 133); const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 15); exports.Factions = {}; function loadFactions(saveString) { @@ -7925,7 +7932,7 @@ JSONReviver_1.Reviver.constructors.Augmentation = Augmentation; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const SettingEnums_1 = __webpack_require__(/*! ./SettingEnums */ 56); +const SettingEnums_1 = __webpack_require__(/*! ./SettingEnums */ 45); const defaultSettings = { AutosaveInterval: 60, CodeInstructionRunTime: 50, @@ -7948,7 +7955,7 @@ exports.Settings = { CodeInstructionRunTime: 25, DisableHotkeys: defaultSettings.DisableHotkeys, Editor: SettingEnums_1.EditorSetting.Ace, - EditorKeybinding: "ace", + EditorKeybinding: SettingEnums_1.AceKeybindingSetting.Ace, EditorTheme: "Monokai", Locale: "en", MaxLogCapacity: defaultSettings.MaxLogCapacity, @@ -7982,8 +7989,8 @@ exports.Settings = { Object.defineProperty(exports, "__esModule", { value: true }); // Constructs all CompanyPosition objects using the metadata in data/companypositions.ts -const CompaniesMetadata_1 = __webpack_require__(/*! ./data/CompaniesMetadata */ 255); -const Company_1 = __webpack_require__(/*! ./Company */ 75); +const CompaniesMetadata_1 = __webpack_require__(/*! ./data/CompaniesMetadata */ 256); +const Company_1 = __webpack_require__(/*! ./Company */ 76); const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 15); exports.Companies = {}; function addCompany(params) { @@ -8043,7 +8050,7 @@ exports.companyExists = companyExists; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 60); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 61); /** * Given an element by its ID, removes all event listeners from that element by cloning and * replacing. Then returns the new cloned element. @@ -8051,7 +8058,13 @@ const getElementById_1 = __webpack_require__(/*! ./getElementById */ 60); */ function clearEventListeners(elemId) { try { - const elem = getElementById_1.getElementById(elemId); + let elem; + if (typeof elemId === "string") { + elem = getElementById_1.getElementById(elemId); + } + else { + elem = elemId; + } const newElem = elem.cloneNode(true); if (elem.parentNode !== null) { elem.parentNode.replaceChild(newElem, elem); @@ -8233,8 +8246,8 @@ exports.yesNoTxtInpBoxCreate = yesNoTxtInpBoxCreate; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 60); -const removeElement_1 = __webpack_require__(/*! ./removeElement */ 65); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 61); +const removeElement_1 = __webpack_require__(/*! ./removeElement */ 66); /** * Given its id, this function removes an element AND its children * @param id The HTML identifier to search for and remove. @@ -8289,7 +8302,7 @@ exports.removeElementById = removeElementById; /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../NetscriptFunctions */ 46); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../NetscriptFunctions */ 47); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../NetscriptWorker */ 30); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../Player */ 0); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! .././ui/navigationTracking */ 13); @@ -8304,11 +8317,11 @@ exports.removeElementById = removeElementById; /* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../utils/helpers/getRandomInt */ 17); /* 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 */ 28); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../utils/helpers/keyCodes */ 29); /* 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 */ 26); +/* 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___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 */ 23); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_16__); @@ -9834,7 +9847,7 @@ function updateStockOrderList(stock) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const BaseResearchTree_1 = __webpack_require__(/*! ./data/BaseResearchTree */ 254); +const BaseResearchTree_1 = __webpack_require__(/*! ./data/BaseResearchTree */ 255); const numeralFormat_1 = __webpack_require__(/*! ../ui/numeralFormat */ 4); // Map of official names for each Industry exports.Industries = { @@ -9954,110 +9967,6 @@ exports.resetIndustryResearchTrees = resetIndustryResearchTrees; /***/ }), /* 26 */ -/*!******************************************************!*\ - !*** ./utils/uiHelpers/removeChildrenFromElement.ts ***! - \******************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -const isString_1 = __webpack_require__(/*! ../helpers/isString */ 44); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 60); -/** - * 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. - * @param el The element or ID of an element to remove all children from. - */ -function removeChildrenFromElement(el) { - if (el === null) { - return; - } - try { - const elem = (isString_1.isString(el) ? getElementById_1.getElementById(el) : el); - if (elem instanceof Element) { - while (elem.firstChild !== null) { - elem.removeChild(elem.firstChild); - } - } - } - catch (e) { - // tslint:disable-next-line:no-console - console.debug(e); - return; - } -} -exports.removeChildrenFromElement = removeChildrenFromElement; - - -/***/ }), -/* 27 */ -/*!**********************************!*\ - !*** ./src/Programs/Programs.ts ***! - \**********************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -const Program_1 = __webpack_require__(/*! ./Program */ 237); -const programsMetadata_1 = __webpack_require__(/*! ./data/programsMetadata */ 236); -exports.Programs = {}; -for (const params of programsMetadata_1.programsMetadata) { - exports.Programs[params.key] = new Program_1.Program(params.name, params.create); -} - - -/***/ }), -/* 28 */ -/*!***********************************!*\ - !*** ./utils/helpers/keyCodes.ts ***! - \***********************************/ -/*! no static exports found */ -/*! exports used: KEY */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Keyboard key codes - */ -exports.KEY = { - A: 65, - B: 66, - C: 67, - CTRL: 17, - D: 68, - DOWNARROW: 40, - E: 69, - ENTER: 13, - F: 70, - H: 72, - J: 74, - K: 75, - L: 76, - M: 77, - N: 78, - O: 79, - P: 80, - R: 82, - S: 83, - TAB: 9, - U: 85, - UPARROW: 38, - W: 87, - "1": 49, - "2": 50, -}; - - -/***/ }), -/* 29 */ /*!**********************************!*\ !*** ./src/ui/MainMenu/Links.ts ***! \**********************************/ @@ -10130,6 +10039,110 @@ function initializeMainMenuLinks() { exports.initializeMainMenuLinks = initializeMainMenuLinks; +/***/ }), +/* 27 */ +/*!******************************************************!*\ + !*** ./utils/uiHelpers/removeChildrenFromElement.ts ***! + \******************************************************/ +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const isString_1 = __webpack_require__(/*! ../helpers/isString */ 44); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 61); +/** + * 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. + * @param el The element or ID of an element to remove all children from. + */ +function removeChildrenFromElement(el) { + if (el === null) { + return; + } + try { + const elem = (isString_1.isString(el) ? getElementById_1.getElementById(el) : el); + if (elem instanceof Element) { + while (elem.firstChild !== null) { + elem.removeChild(elem.firstChild); + } + } + } + catch (e) { + // tslint:disable-next-line:no-console + console.debug(e); + return; + } +} +exports.removeChildrenFromElement = removeChildrenFromElement; + + +/***/ }), +/* 28 */ +/*!**********************************!*\ + !*** ./src/Programs/Programs.ts ***! + \**********************************/ +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +const Program_1 = __webpack_require__(/*! ./Program */ 237); +const programsMetadata_1 = __webpack_require__(/*! ./data/programsMetadata */ 236); +exports.Programs = {}; +for (const params of programsMetadata_1.programsMetadata) { + exports.Programs[params.key] = new Program_1.Program(params.name, params.create); +} + + +/***/ }), +/* 29 */ +/*!***********************************!*\ + !*** ./utils/helpers/keyCodes.ts ***! + \***********************************/ +/*! no static exports found */ +/*! exports used: KEY */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +/** + * Keyboard key codes + */ +exports.KEY = { + A: 65, + B: 66, + C: 67, + CTRL: 17, + D: 68, + DOWNARROW: 40, + E: 69, + ENTER: 13, + F: 70, + H: 72, + J: 74, + K: 75, + L: 76, + M: 77, + N: 78, + O: 79, + P: 80, + R: 82, + S: 83, + TAB: 9, + U: 85, + UPARROW: 38, + W: 87, + "1": 49, + "2": 50, +}; + + /***/ }), /* 30 */ /*!********************************!*\ @@ -10148,29 +10161,29 @@ exports.initializeMainMenuLinks = initializeMainMenuLinks; /* 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 */ 76); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 77); /* 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 */ 11); -/* harmony import */ var _JSInterpreter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./JSInterpreter */ 155); -/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEnvironment */ 133); +/* harmony import */ var _JSInterpreter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./JSInterpreter */ 156); +/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEnvironment */ 135); /* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptEvaluator */ 7); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptFunctions */ 46); -/* harmony import */ var _NetscriptJSEvaluator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NetscriptJSEvaluator */ 134); -/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NetscriptPort */ 80); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptFunctions */ 47); +/* harmony import */ var _NetscriptJSEvaluator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NetscriptJSEvaluator */ 136); +/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./NetscriptPort */ 81); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Server */ 12); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var escodegen__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! escodegen */ 126); +/* harmony import */ var escodegen__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! escodegen */ 127); /* 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 */ 52); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/acorn */ 54); /* 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 */ 106); +/* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/helpers/compareArrays */ 107); /* 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 */ 62); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 63); /* 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 */ 94); +/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 95); /* 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__); @@ -10908,24 +10921,24 @@ JSONReviver_1.Reviver.constructors.Stock = Stock; /* 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 */ 11); -/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Fconf */ 50); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Fconf */ 52); /* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractiveTutorial */ 38); /* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEvaluator */ 7); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptFunctions */ 46); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptFunctions */ 47); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptWorker */ 30); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _ScriptEditor_Ace__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ScriptEditor/Ace */ 92); -/* harmony import */ var _ScriptEditor_CodeMirror__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ScriptEditor/CodeMirror */ 91); +/* harmony import */ var _ScriptEditor_Ace__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ScriptEditor/Ace */ 93); +/* harmony import */ var _ScriptEditor_CodeMirror__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ScriptEditor/CodeMirror */ 92); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Server */ 12); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Settings/SettingEnums */ 56); +/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Settings/SettingEnums */ 45); /* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./ui/postToTerminal */ 8); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TextFile */ 72); +/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./TextFile */ 73); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/acorn */ 52); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/acorn */ 54); /* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./ui/navigationTracking */ 13); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_16__); @@ -10933,13 +10946,13 @@ JSONReviver_1.Reviver.constructors.Stock = Stock; /* 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_JSONReviver__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/JSONReviver */ 15); -/* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/helpers/compareArrays */ 106); +/* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/helpers/compareArrays */ 107); /* harmony import */ var _utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_compareArrays__WEBPACK_IMPORTED_MODULE_20__); /* 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_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 100); +/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 101); /* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_22__); -/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 94); +/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 95); /* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_23__); // Importing this doesn't work for some reason. const walk = __webpack_require__(/*! acorn/dist/walk */ 175); @@ -10982,8 +10995,6 @@ function scriptEditorInit() { return false; } - - // Beautify button const beautifyButton = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_21__["createElement"])("button", { class: "std-button", @@ -11151,8 +11162,9 @@ $(document).keydown(function(e) { function saveAndCloseScriptEditor() { var filename = document.getElementById("script-editor-filename").value; + let code; try { - let code = getCurrentEditor().getCode(); + code = getCurrentEditor().getCode(); } catch(e) { Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_18__["dialogBoxCreate"])("Something went wrong when trying to save (getCurrentEditor().getCode()). Please report to game developer with details"); return; @@ -11975,7 +11987,7 @@ _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_19__["Reviver"].constructors.AllServ -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), /* 34 */ @@ -11990,8 +12002,8 @@ _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_19__["Reviver"].constructors.AllServ Object.defineProperty(exports, "__esModule", { value: true }); // Constructs all CompanyPosition objects using the metadata in data/companypositions.ts -const CompanyPositionsMetadata_1 = __webpack_require__(/*! ./data/CompanyPositionsMetadata */ 256); -const CompanyPosition_1 = __webpack_require__(/*! ./CompanyPosition */ 104); +const CompanyPositionsMetadata_1 = __webpack_require__(/*! ./data/CompanyPositionsMetadata */ 257); +const CompanyPosition_1 = __webpack_require__(/*! ./CompanyPosition */ 105); exports.CompanyPositions = {}; function addCompanyPosition(params) { if (exports.CompanyPositions[params.name] != null) { @@ -12024,28 +12036,28 @@ CompanyPositionsMetadata_1.companyPositionMetadata.forEach((e) => { /* 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 */ 11); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Faction/Faction */ 61); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Faction/Faction */ 62); /* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Faction/Factions */ 16); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 49); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 51); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./RedPill */ 66); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./RedPill */ 67); /* 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_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 28); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 29); /* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/helpers/createProgressBarText */ 89); +/* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/helpers/createProgressBarText */ 90); /* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_13__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 26); +/* 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___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/JSONReviver */ 15); -/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 73); +/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 74); /* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_17__); -/* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/uiHelpers/appendLineBreaks */ 58); +/* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/uiHelpers/appendLineBreaks */ 59); /* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_18__); /* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/helpers/clearObject */ 87); /* harmony import */ var _utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_clearObject__WEBPACK_IMPORTED_MODULE_19__); @@ -12061,9 +12073,9 @@ CompanyPositionsMetadata_1.companyPositionMetadata.forEach((e) => { /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_24__); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 17); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_25__); -/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 100); +/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 101); /* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_26__); -/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 65); +/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 66); /* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_27__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 23); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_28__); @@ -16272,7 +16284,7 @@ function initBladeburner() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), /* 36 */ @@ -16286,7 +16298,7 @@ function initBladeburner() { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const Crime_1 = __webpack_require__(/*! ./Crime */ 151); +const Crime_1 = __webpack_require__(/*! ./Crime */ 152); const Constants_1 = __webpack_require__(/*! ../Constants */ 1); exports.Crimes = { Shoplift: new Crime_1.Crime("Shoplift", Constants_1.CONSTANTS.CrimeShoplift, 2e3, 15e3, 1 / 20, 0.1, { @@ -16502,14 +16514,20 @@ function initSpecialServerIps() { /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 21); -/* 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 */ 40); -/* 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 */ 23); -/* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ui/MainMenu/Links */ 26); +/* harmony import */ var _ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/helpers/exceptionAlert */ 42); +/* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 21); +/* 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_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); +/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 40); +/* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 23); +/* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_8__); + + @@ -16583,21 +16601,21 @@ function iTutorialStart() { document.getElementById("interactive-tutorial-container").style.display = "block"; //Exit tutorial button - var exitButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-exit"); + var exitButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("interactive-tutorial-exit"); exitButton.addEventListener("click", function() { iTutorialEnd(); return false; }); //Back button - var backButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-back"); + var backButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("interactive-tutorial-back"); backButton.addEventListener("click", function() { iTutorialPrevStep(); return false; }); //Next button - var nextButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var nextButton = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("interactive-tutorial-next"); nextButton.addEventListener("click", function() { iTutorialNextStep(); return false; @@ -16610,12 +16628,12 @@ function iTutorialEvaluateStep() { if (!ITutorial.isRunning) {console.log("Interactive Tutorial not running"); return;} //Disable and clear main menu - var terminalMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("terminal-menu-link"); - var statsMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("stats-menu-link"); - var activeScriptsMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("active-scripts-menu-link"); - var hacknetMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("hacknet-nodes-menu-link"); - var cityMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("city-menu-link"); - var tutorialMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("tutorial-menu-link"); + var terminalMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("terminal-menu-link"); + var statsMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("stats-menu-link"); + var activeScriptsMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("active-scripts-menu-link"); + var hacknetMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("hacknet-nodes-menu-link"); + var cityMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("city-menu-link"); + var tutorialMainMenu = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("tutorial-menu-link"); terminalMainMenu.removeAttribute("class"); statsMainMenu.removeAttribute("class"); activeScriptsMainMenu.removeAttribute("class"); @@ -16984,14 +17002,26 @@ function iTutorialEnd() { } console.log("Ending interactive tutorial"); + + // Initialize references to main menu links + // We have to call initializeMainMenuLinks() again because the Interactive Tutorial + // re-creates Main menu links with clearEventListeners() + if (!Object(_ui_MainMenu_Links__WEBPACK_IMPORTED_MODULE_3__["initializeMainMenuLinks"])()) { + const errorMsg = "Failed to initialize Main Menu Links. Please try refreshing the page. " + + "If that doesn't work, report the issue to the developer"; + Object(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_4__["exceptionAlert"])(new Error(errorMsg)); + console.error(errorMsg); + return; + } _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].init(); + ITutorial.currStep = iTutorialSteps.End; ITutorial.isRunning = false; document.getElementById("interactive-tutorial-container").style.display = "none"; //Create a popup with final introductory stuff var popupId = "interactive-tutorial-ending-popup"; - var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_4__["createElement"])("p", { + var txt = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { innerHTML: "If you are new to the game, the following links may be useful for you!

" + "Getting Started Guide" + @@ -17000,13 +17030,13 @@ function iTutorialEnd() { "The Beginner's Guide to Hacking was added to your home computer! It contains some tips/pointers for starting out with the game. " + "To read it, go to Terminal and enter

cat hackers-starting-handbook.lit" }); - var gotitBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_4__["createElement"])("a", { + var gotitBtn = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { class:"a-link-button", float:"right", padding:"6px", innerText:"Got it!", clickListener:()=>{ - Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_6__["removeElementById"])(popupId); + Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); } }); - Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_5__["createPopup"])(popupId, [txt, gotitBtn]); + Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_7__["createPopup"])(popupId, [txt, gotitBtn]); _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].getHomeComputer().messages.push("hackers-starting-handbook.lit"); } @@ -17035,7 +17065,7 @@ function iTutorialSetText(txt) { Object.defineProperty(exports, "__esModule", { value: true }); const createElement_1 = __webpack_require__(/*! ./createElement */ 2); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 60); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 61); /** * Creates the necessary DOM elements to present an in-game popup to the player. * @param id The (hopefully) unique identifier for the popup container. @@ -17178,7 +17208,7 @@ exports.exceptionAlert = exceptionAlert; /* 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 */ 55); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Gang */ 57); /* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptEvaluator */ 7); @@ -17221,6 +17251,126 @@ exports.isString = isString; /***/ }), /* 45 */ +/*!**************************************!*\ + !*** ./src/Settings/SettingEnums.ts ***! + \**************************************/ +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Enums that defined allowed values for setting configuration +Object.defineProperty(exports, "__esModule", { value: true }); +/** + * Allowed values for 'Keybinding/Keymap' setting in Ace editor + */ +var AceKeybindingSetting; +(function (AceKeybindingSetting) { + AceKeybindingSetting["Ace"] = "ace"; + AceKeybindingSetting["Emacs"] = "emacs"; + AceKeybindingSetting["Vim"] = "vim"; +})(AceKeybindingSetting = exports.AceKeybindingSetting || (exports.AceKeybindingSetting = {})); +/** + * Allowed values for 'Keybinding/Keymap' setting in Code Mirror editor + */ +var CodeMirrorKeybindingSetting; +(function (CodeMirrorKeybindingSetting) { + CodeMirrorKeybindingSetting["Default"] = "default"; + CodeMirrorKeybindingSetting["Emacs"] = "emacs"; + CodeMirrorKeybindingSetting["Sublime"] = "sublime"; + CodeMirrorKeybindingSetting["Vim"] = "vim"; +})(CodeMirrorKeybindingSetting = exports.CodeMirrorKeybindingSetting || (exports.CodeMirrorKeybindingSetting = {})); +/** + * Allowed values for 'Theme' setting in Code Mirror editor + */ +var CodeMirrorThemeSetting; +(function (CodeMirrorThemeSetting) { + CodeMirrorThemeSetting["Monokai"] = "monokai"; + CodeMirrorThemeSetting["Day_3024"] = "3024-day"; + CodeMirrorThemeSetting["Night_3024"] = "3024-night"; + CodeMirrorThemeSetting["abcdef"] = "abcdef"; + CodeMirrorThemeSetting["Ambiance_mobile"] = "ambiance-mobile"; + CodeMirrorThemeSetting["Ambiance"] = "ambiance"; + CodeMirrorThemeSetting["Base16_dark"] = "base16-dark"; + CodeMirrorThemeSetting["Base16_light"] = "base16-light"; + CodeMirrorThemeSetting["Bespin"] = "bespin"; + CodeMirrorThemeSetting["Blackboard"] = "blackboard"; + CodeMirrorThemeSetting["Cobalt"] = "cobalt"; + CodeMirrorThemeSetting["Colorforth"] = "colorforth"; + CodeMirrorThemeSetting["Darcula"] = "darcula"; + CodeMirrorThemeSetting["Dracula"] = "dracula"; + CodeMirrorThemeSetting["Duotone_dark"] = "duotone-dark"; + CodeMirrorThemeSetting["Duotone_light"] = "duotone-light"; + CodeMirrorThemeSetting["Eclipse"] = "eclipse"; + CodeMirrorThemeSetting["Elegant"] = "elegant"; + CodeMirrorThemeSetting["Erlang_dark"] = "erlang-dark"; + CodeMirrorThemeSetting["Gruvbox_dark"] = "gruvbox-dark"; + CodeMirrorThemeSetting["Hopscotch"] = "hopscotch"; + CodeMirrorThemeSetting["Icecoder"] = "icecoder"; + CodeMirrorThemeSetting["Idea"] = "idea"; + CodeMirrorThemeSetting["Isotope"] = "isotope"; + CodeMirrorThemeSetting["Lesser_dark"] = "lesser-dark"; + CodeMirrorThemeSetting["Liquibyte"] = "liquibyte"; + CodeMirrorThemeSetting["Lucario"] = "lucario"; + CodeMirrorThemeSetting["Material"] = "material"; + CodeMirrorThemeSetting["Mbo"] = "mbo"; + CodeMirrorThemeSetting["Mdn_like"] = "mdn-like"; + CodeMirrorThemeSetting["Midnight"] = "midnight"; + CodeMirrorThemeSetting["Neat"] = "neat"; + CodeMirrorThemeSetting["Neo"] = "neo"; + CodeMirrorThemeSetting["Night"] = "night"; + CodeMirrorThemeSetting["Oceanic_next"] = "oceanic-next"; + CodeMirrorThemeSetting["Panda_syntax"] = "panda-syntax"; + CodeMirrorThemeSetting["Paraiso_dark"] = "paraiso-dark"; + CodeMirrorThemeSetting["Paraiso_light"] = "paraiso-light"; + CodeMirrorThemeSetting["Pastel_on_dark"] = "pastel-on-dark"; + CodeMirrorThemeSetting["Railscasts"] = "railscasts"; + CodeMirrorThemeSetting["Rubyblue"] = "rubyblue"; + CodeMirrorThemeSetting["Seti"] = "seti"; + CodeMirrorThemeSetting["Shadowfox"] = "shadowfox"; + CodeMirrorThemeSetting["Solarized"] = "solarized"; + CodeMirrorThemeSetting["ssms"] = "ssms"; + CodeMirrorThemeSetting["The_matrix"] = "the-matrix"; + CodeMirrorThemeSetting["Tomorrow_night_bright"] = "tomorrow-night-bright"; + CodeMirrorThemeSetting["Tomorrow_night_eighties"] = "tomorrow-night-eighties"; + CodeMirrorThemeSetting["Ttcn"] = "ttcn"; + CodeMirrorThemeSetting["Twilight"] = "twilight"; + CodeMirrorThemeSetting["Vibrant_ink"] = "vibrant-ink"; + CodeMirrorThemeSetting["xq_dark"] = "xq-dark"; + CodeMirrorThemeSetting["xq_light"] = "xq-light"; + CodeMirrorThemeSetting["Yeti"] = "yeti"; + CodeMirrorThemeSetting["Zenburn"] = "zenburn"; +})(CodeMirrorThemeSetting = exports.CodeMirrorThemeSetting || (exports.CodeMirrorThemeSetting = {})); +/** + * Allowed values for the "Editor" setting + */ +var EditorSetting; +(function (EditorSetting) { + EditorSetting["Ace"] = "Ace"; + EditorSetting["CodeMirror"] = "CodeMirror"; +})(EditorSetting = exports.EditorSetting || (exports.EditorSetting = {})); +/** + * Allowed values for the 'OwnedAugmentationsOrder' setting + */ +var PurchaseAugmentationsOrderSetting; +(function (PurchaseAugmentationsOrderSetting) { + PurchaseAugmentationsOrderSetting[PurchaseAugmentationsOrderSetting["Cost"] = 0] = "Cost"; + PurchaseAugmentationsOrderSetting[PurchaseAugmentationsOrderSetting["Default"] = 1] = "Default"; + PurchaseAugmentationsOrderSetting[PurchaseAugmentationsOrderSetting["Reputation"] = 2] = "Reputation"; +})(PurchaseAugmentationsOrderSetting = exports.PurchaseAugmentationsOrderSetting || (exports.PurchaseAugmentationsOrderSetting = {})); +/** + * Allowed values for the 'OwnedAugmentationsOrder' setting + */ +var OwnedAugmentationsOrderSetting; +(function (OwnedAugmentationsOrderSetting) { + OwnedAugmentationsOrderSetting[OwnedAugmentationsOrderSetting["Alphabetically"] = 0] = "Alphabetically"; + OwnedAugmentationsOrderSetting[OwnedAugmentationsOrderSetting["AcquirementTime"] = 1] = "AcquirementTime"; +})(OwnedAugmentationsOrderSetting = exports.OwnedAugmentationsOrderSetting || (exports.OwnedAugmentationsOrderSetting = {})); + + +/***/ }), +/* 46 */ /*!************************!*\ !*** ./src/Message.js ***! \************************/ @@ -17242,11 +17392,11 @@ exports.isString = isString; /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Augmentation/data/AugmentationNames */ 6); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Programs/Programs */ 27); +/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Programs/Programs */ 28); /* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Missions */ 63); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Missions */ 64); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RedPill */ 66); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RedPill */ 67); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Server */ 12); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_8__); @@ -17448,7 +17598,7 @@ function initMessages() { /***/ }), -/* 46 */ +/* 47 */ /*!***********************************!*\ !*** ./src/NetscriptFunctions.js ***! \***********************************/ @@ -17466,77 +17616,78 @@ function initMessages() { /* 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 */ 76); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 77); /* harmony import */ var _Augmentation_Augmentation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentation/Augmentation */ 18); /* harmony import */ var _Augmentation_Augmentation__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_Augmentation__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Augmentation/Augmentations */ 14); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _Augmentation_AugmentationHelpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Augmentation/AugmentationHelpers */ 64); +/* harmony import */ var _Augmentation_AugmentationHelpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Augmentation/AugmentationHelpers */ 65); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Augmentation/data/AugmentationNames */ 6); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./BitNode/BitNodeMultipliers */ 10); /* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _Crime_CrimeHelpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Crime/CrimeHelpers */ 108); +/* harmony import */ var _Crime_CrimeHelpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Crime/CrimeHelpers */ 109); /* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Bladeburner */ 35); -/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Company/Company */ 75); +/* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Company/Company */ 76); /* harmony import */ var _Company_Company__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Company_Company__WEBPACK_IMPORTED_MODULE_8__); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Company/Companies */ 20); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Company/CompanyPosition */ 104); +/* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Company/CompanyPosition */ 105); /* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Company/CompanyPositions */ 34); /* harmony import */ var _Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Company_CompanyPositions__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DarkWeb/DarkWebItems */ 79); +/* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./DarkWeb/DarkWebItems */ 80); /* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Hacking */ 51); -/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Gang */ 55); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Faction/Faction */ 61); +/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Hacking */ 53); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Gang */ 57); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Faction/Faction */ 62); /* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_16__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Faction/Factions */ 16); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_17__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 49); -/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./HacknetNode */ 74); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 51); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./HacknetNode */ 75); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_20__); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Message */ 45); -/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Missions */ 63); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Message */ 46); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Missions */ 64); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Programs/Programs */ 27); +/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Programs/Programs */ 28); /* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_24__); /* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./Script */ 33); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Server */ 12); -/* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Settings/Settings */ 19); -/* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_27__); -/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./SpecialServerIps */ 37); -/* harmony import */ var _StockMarket_Stock__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./StockMarket/Stock */ 32); -/* harmony import */ var _StockMarket_Stock__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_StockMarket_Stock__WEBPACK_IMPORTED_MODULE_29__); -/* harmony import */ var _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./StockMarket/StockMarket */ 24); -/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./ui/postToTerminal */ 8); -/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__); -/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./TextFile */ 72); -/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_32__); -/* harmony import */ var _NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./NetscriptBladeburner */ 59); -/* harmony import */ var _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptGang */ 43); -/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./NetscriptWorker */ 30); -/* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./NetscriptEvaluator */ 7); -/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./NetscriptPort */ 80); -/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! decimal.js */ 39); -/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./ui/navigationTracking */ 13); -/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_39___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_39__); -/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../utils/helpers/isPowerOfTwo */ 156); -/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_41___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_41__); -/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 62); -/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_42__); -/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../utils/IPAddress */ 69); -/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); -/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../utils/helpers/isString */ 44); -/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45__); -/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../utils/YesNoBox */ 22); -/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_46___default = /*#__PURE__*/__webpack_require__.n(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_46__); +/* harmony import */ var _ServerPurchases__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./ServerPurchases */ 56); +/* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./Settings/Settings */ 19); +/* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_28__); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./SpecialServerIps */ 37); +/* harmony import */ var _StockMarket_Stock__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./StockMarket/Stock */ 32); +/* harmony import */ var _StockMarket_Stock__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_StockMarket_Stock__WEBPACK_IMPORTED_MODULE_30__); +/* harmony import */ var _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./StockMarket/StockMarket */ 24); +/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./ui/postToTerminal */ 8); +/* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_32__); +/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./TextFile */ 73); +/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_33__); +/* harmony import */ var _NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./NetscriptBladeburner */ 60); +/* harmony import */ var _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./NetscriptGang */ 43); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./NetscriptWorker */ 30); +/* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./NetscriptEvaluator */ 7); +/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./NetscriptPort */ 81); +/* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! decimal.js */ 39); +/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./ui/navigationTracking */ 13); +/* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_40___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_40__); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../utils/DialogBox */ 9); +/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../utils/helpers/isPowerOfTwo */ 134); +/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_42__); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 63); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_43___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_43__); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../utils/IPAddress */ 70); +/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); +/* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../utils/helpers/isString */ 44); +/* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46__); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../utils/YesNoBox */ 22); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_47___default = /*#__PURE__*/__webpack_require__.n(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_47__); var sprintf = __webpack_require__(/*! sprintf-js */ 176).sprintf, vsprintf = __webpack_require__(/*! sprintf-js */ 176).vsprintf @@ -17588,6 +17739,7 @@ var sprintf = __webpack_require__(/*! sprintf-js */ 176).sprintf, + var hasCorporationSF = false, //Source-File 3 @@ -17703,7 +17855,7 @@ function NetscriptFunctions(workerScript) { workerScript.dynamicRamUsage += (ramCost * threads); if (workerScript.dynamicRamUsage > 1.01 * workerScript.ramUsage) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Dynamic RAM usage calculated to be greater than initial RAM usage on fn: " + fnName + ". This is probably because you somehow circumvented the static RAM " + "calculation.

Please don't do that :(

" + @@ -17730,7 +17882,7 @@ function NetscriptFunctions(workerScript) { var safeGetServer = function(ip, callingFnName="") { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `Invalid IP or hostname passed into ${callingFnName}() function`); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `Invalid IP or hostname passed into ${callingFnName}() function`); } return server; } @@ -17738,10 +17890,10 @@ function NetscriptFunctions(workerScript) { // Utility function to get Hacknet Node object var getHacknetNode = function(i) { if (isNaN(i)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid index specified for Hacknet Node: " + i); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid index specified for Hacknet Node: " + i); } if (i < 0 || i >= _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hacknetNodes.length) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Index specified for Hacknet Node is out-of-bounds: " + i); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Index specified for Hacknet Node is out-of-bounds: " + i); } return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hacknetNodes[i]; }; @@ -17751,24 +17903,6 @@ function NetscriptFunctions(workerScript) { return server.getContract(fn); } - /** - * @param {number} ram The amount of server RAM to calculate cost of. - * @exception {Error} If the value passed in is not numeric, out of range, or too large of a value. - * @returns {number} The cost of - */ - const getPurchaseServerRamCostGuard = (ram) => { - const guardedRam = Math.round(ram); - if (isNaN(guardedRam) || !Object(_utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_41__["isPowerOfTwo"])(guardedRam)) { - throw Error("failed due to invalid ram argument. Must be numeric and a power of 2"); - } - - if (guardedRam > _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].PurchasedServerMaxRam) { - throw Error("failed because specified RAM was too high. Maximum RAM on a purchased server is " + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].PurchasedServerMaxRam + "GB"); - } - - return guardedRam * _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].BaseCostFor1GBOfRamServer; - }; - return { hacknet : { numNodes : function() { @@ -17826,7 +17960,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("scan", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptScanRamCost); var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, 'Invalid IP or hostname passed into scan() command'); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, 'Invalid IP or hostname passed into scan() command'); } var out = []; for (var i = 0; i < server.serversOnNetwork.length; i++) { @@ -17852,14 +17986,14 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("hack", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptHackRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Hack() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Hack() call has incorrect number of arguments. Takes 1 argument"); } var threads = workerScript.scriptRef.threads; if (isNaN(threads) || threads < 1) {threads = 1;} var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("hack() error. Invalid IP or hostname passed in: " + ip + ". Stopping..."); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "hack() error. Invalid IP or hostname passed in: " + ip + ". Stopping..."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "hack() error. Invalid IP or hostname passed in: " + ip + ". Stopping..."); } //Calculate the hacking time @@ -17868,18 +18002,18 @@ function NetscriptFunctions(workerScript) { //No root access or skill level too low if (server.hasAdminRights == false) { workerScript.scriptRef.log("Cannot hack this server (" + server.hostname + ") because user does not have root access"); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user does not have root access"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user does not have root access"); } if (server.requiredHackingSkill > _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hacking_skill) { workerScript.scriptRef.log("Cannot hack this server (" + server.hostname + ") because user's hacking skill is not high enough"); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user's hacking skill is not high enough"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user's hacking skill is not high enough"); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.hack == null) { workerScript.scriptRef.log("Attempting to hack " + ip + " in " + hackingTime.toFixed(3) + " seconds (t=" + threads + ")"); } - return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* netscriptDelay */ "e"])(hackingTime * 1000, workerScript).then(function() { + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* netscriptDelay */ "e"])(hackingTime * 1000, workerScript).then(function() { if (workerScript.env.stopFlag) {return Promise.reject(workerScript);} var hackChance = Object(_Hacking__WEBPACK_IMPORTED_MODULE_14__[/* calculateHackingChance */ "b"])(server); var rand = Math.random(); @@ -17912,7 +18046,7 @@ function NetscriptFunctions(workerScript) { _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gainHackingExp(expGainedOnSuccess); workerScript.scriptRef.onlineExpGained += expGainedOnSuccess; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.hack == null) { - workerScript.scriptRef.log("Script SUCCESSFULLY hacked " + server.hostname + " for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(moneyGained, 2) + " and " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(expGainedOnSuccess, 4) + " exp (t=" + threads + ")"); + workerScript.scriptRef.log("Script SUCCESSFULLY hacked " + server.hostname + " for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(moneyGained, 2) + " and " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(expGainedOnSuccess, 4) + " exp (t=" + threads + ")"); } server.fortify(_Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ServerFortifyAmount * Math.min(threads, maxThreadNeeded)); return Promise.resolve(moneyGained); @@ -17921,7 +18055,7 @@ function NetscriptFunctions(workerScript) { _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gainHackingExp(expGainedOnFailure); workerScript.scriptRef.onlineExpGained += expGainedOnFailure; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.hack == null) { - workerScript.scriptRef.log("Script FAILED to hack " + server.hostname + ". Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(expGainedOnFailure, 4) + " exp (t=" + threads + ")"); + workerScript.scriptRef.log("Script FAILED to hack " + server.hostname + ". Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(expGainedOnFailure, 4) + " exp (t=" + threads + ")"); } return Promise.resolve(0); } @@ -17936,7 +18070,7 @@ function NetscriptFunctions(workerScript) { // Check argument validity const server = safeGetServer(ip, 'hackAnalyzeThreads'); if (isNaN(hackAmount)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `Invalid growth argument passed into hackAnalyzeThreads: ${hackAmount}. Must be numeric`); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `Invalid growth argument passed into hackAnalyzeThreads: ${hackAmount}. Must be numeric`); } if (hackAmount < 0 || hackAmount > server.moneyAvailable) { @@ -17970,12 +18104,12 @@ function NetscriptFunctions(workerScript) { sleep : function(time){ if (workerScript.checkingRam) {return 0;} if (time === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "sleep() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "sleep() call has incorrect number of arguments. Takes 1 argument"); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.sleep == null) { workerScript.scriptRef.log("Sleeping for " + time + " milliseconds"); } - return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* netscriptDelay */ "e"])(time, workerScript).then(function() { + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* netscriptDelay */ "e"])(time, workerScript).then(function() { return Promise.resolve(true); }); }, @@ -17987,25 +18121,25 @@ function NetscriptFunctions(workerScript) { var threads = workerScript.scriptRef.threads; if (isNaN(threads) || threads < 1) {threads = 1;} if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "grow() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "grow() call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot grow(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot grow(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot grow(). Invalid IP or hostname passed in: " + ip); } //No root access or skill level too low if (server.hasAdminRights == false) { workerScript.scriptRef.log("Cannot grow this server (" + server.hostname + ") because user does not have root access"); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot grow this server (" + server.hostname + ") because user does not have root access"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot grow this server (" + server.hostname + ") because user does not have root access"); } var growTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_14__[/* calculateGrowTime */ "a"])(server); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.grow == null) { - workerScript.scriptRef.log("Executing grow() on server " + server.hostname + " in " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(growTime, 3) + " seconds (t=" + threads + ")"); + workerScript.scriptRef.log("Executing grow() on server " + server.hostname + " in " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(growTime, 3) + " seconds (t=" + threads + ")"); } - return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* netscriptDelay */ "e"])(growTime * 1000, workerScript).then(function() { + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* netscriptDelay */ "e"])(growTime * 1000, workerScript).then(function() { if (workerScript.env.stopFlag) {return Promise.reject(workerScript);} const moneyBefore = server.moneyAvailable <= 0 ? 1 : server.moneyAvailable; server.moneyAvailable += (1 * threads); //It can be grown even if it has no money @@ -18018,8 +18152,8 @@ function NetscriptFunctions(workerScript) { } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.grow == null) { workerScript.scriptRef.log("Available money on " + server.hostname + " grown by " + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])((moneyAfter/moneyBefore)*100 - 100, 6) + "%. Gained " + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(expGain, 4) + " hacking exp (t=" + threads +")"); + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])((moneyAfter/moneyBefore)*100 - 100, 6) + "%. Gained " + + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(expGain, 4) + " hacking exp (t=" + threads +")"); } workerScript.scriptRef.onlineExpGained += expGain; _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gainHackingExp(expGain); @@ -18035,7 +18169,7 @@ function NetscriptFunctions(workerScript) { // Check argument validity const server = safeGetServer(ip, 'growthAnalyze'); if (isNaN(growth)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `Invalid growth argument passed into growthAnalyze: ${growth}. Must be numeric`); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `Invalid growth argument passed into growthAnalyze: ${growth}. Must be numeric`); } return Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* numCycleForGrowth */ "h"])(server, Number(growth)); @@ -18048,33 +18182,33 @@ function NetscriptFunctions(workerScript) { var threads = workerScript.scriptRef.threads; if (isNaN(threads) || threads < 1) {threads = 1;} if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "weaken() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "weaken() call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot weaken(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot weaken(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot weaken(). Invalid IP or hostname passed in: " + ip); } //No root access or skill level too low if (server.hasAdminRights == false) { workerScript.scriptRef.log("Cannot weaken this server (" + server.hostname + ") because user does not have root access"); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot weaken this server (" + server.hostname + ") because user does not have root access"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot weaken this server (" + server.hostname + ") because user does not have root access"); } var weakenTime = Object(_Hacking__WEBPACK_IMPORTED_MODULE_14__[/* calculateWeakenTime */ "f"])(server); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.weaken == null) { workerScript.scriptRef.log("Executing weaken() on server " + server.hostname + " in " + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(weakenTime, 3) + " seconds (t=" + threads + ")"); + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(weakenTime, 3) + " seconds (t=" + threads + ")"); } - return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* netscriptDelay */ "e"])(weakenTime * 1000, workerScript).then(function() { + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* netscriptDelay */ "e"])(weakenTime * 1000, workerScript).then(function() { if (workerScript.env.stopFlag) {return Promise.reject(workerScript);} server.weaken(_Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ServerWeakenAmount * threads); workerScript.scriptRef.recordWeaken(server.ip, threads); var expGain = Object(_Hacking__WEBPACK_IMPORTED_MODULE_14__[/* calculateHackingExpGain */ "c"])(server) * threads; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.weaken == null) { workerScript.scriptRef.log("Server security level on " + server.hostname + " weakened to " + server.hackDifficulty + - ". Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(expGain, 4) + " hacking exp (t=" + threads + ")"); + ". Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(expGain, 4) + " hacking exp (t=" + threads + ")"); } workerScript.scriptRef.onlineExpGained += expGain; _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gainHackingExp(expGain); @@ -18084,17 +18218,17 @@ function NetscriptFunctions(workerScript) { print : function(args){ if (workerScript.checkingRam) {return 0;} if (args === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "print() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "print() call has incorrect number of arguments. Takes 1 argument"); } workerScript.scriptRef.log(args.toString()); }, tprint : function(args) { if (workerScript.checkingRam) {return 0;} if (args === undefined || args == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "tprint() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "tprint() call has incorrect number of arguments. Takes 1 argument"); } var x = args.toString(); - Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__["post"])(workerScript.scriptRef.filename + ": " + args.toString()); + Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_32__["post"])(workerScript.scriptRef.filename + ": " + args.toString()); }, clearLog : function() { if (workerScript.checkingRam) {return 0;} @@ -18103,7 +18237,7 @@ function NetscriptFunctions(workerScript) { disableLog : function(fn) { if (workerScript.checkingRam) {return 0;} if(possibleLogs[fn]===undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument to disableLog: "+fn); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument to disableLog: "+fn); } workerScript.disableLogs[fn] = true; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.disableLog == null) { @@ -18113,7 +18247,7 @@ function NetscriptFunctions(workerScript) { enableLog : function(fn) { if (workerScript.checkingRam) {return 0;} if(possibleLogs[fn]===undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument to enableLog: "+fn); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument to enableLog: "+fn); } delete workerScript.disableLogs[fn]; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.enableLog == null) { @@ -18123,7 +18257,7 @@ function NetscriptFunctions(workerScript) { isLogEnabled : function(fn) { if (workerScript.checkingRam) {return 0;} if (possibleLogs[fn] === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument to isLogEnabled: " + fn); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument to isLogEnabled: " + fn); } return workerScript.disableLogs[fn] ? false : true; }, @@ -18136,7 +18270,7 @@ function NetscriptFunctions(workerScript) { const server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.log(`getScriptLogs() failed. Invalid IP or hostname passed in: ${ip}`); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `getScriptLogs() failed. Invalid IP or hostname passed in: ${ip}`); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `getScriptLogs() failed. Invalid IP or hostname passed in: ${ip}`); } let argsForTarget = []; @@ -18145,7 +18279,7 @@ function NetscriptFunctions(workerScript) { } const runningScriptObj = Object(_Script__WEBPACK_IMPORTED_MODULE_25__[/* findRunningScript */ "d"])(fn, argsForTarget, server); if (runningScriptObj == null) { - workerScript.scriptRef.log(`getScriptLogs() failed. No such script ${fn} on ${server.hostname} with args: ${Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_42__["arrayToString"])(argsForTarget)}`); + workerScript.scriptRef.log(`getScriptLogs() failed. No such script ${fn} on ${server.hostname} with args: ${Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_43__["arrayToString"])(argsForTarget)}`); return ""; } return runningScriptObj.logs.slice(); @@ -18159,18 +18293,18 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("nuke", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call nuke(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call nuke(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call nuke(). Invalid IP or hostname passed in: " + ip); } if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_24__["Programs"].NukeProgram.name)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the NUKE.exe virus!"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the NUKE.exe virus!"); } if (server.openPortCount < server.numOpenPortsRequired) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Not enough ports opened to use NUKE.exe virus"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Not enough ports opened to use NUKE.exe virus"); } if (server.hasAdminRights) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.nuke == null) { @@ -18190,16 +18324,16 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("brutessh", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call brutessh(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call brutessh(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call brutessh(). Invalid IP or hostname passed in: " + ip); } if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_24__["Programs"].BruteSSHProgram.name)) { workerScript.scriptRef.log("You do not have the BruteSSH.exe program!"); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the BruteSSH.exe program!"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the BruteSSH.exe program!"); } if (!server.sshPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.brutessh == null) { @@ -18220,15 +18354,15 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("ftpcrack", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call ftpcrack(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call ftpcrack(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call ftpcrack(). Invalid IP or hostname passed in: " + ip); } if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_24__["Programs"].FTPCrackProgram.name)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the FTPCrack.exe program!"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the FTPCrack.exe program!"); } if (!server.ftpPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.ftpcrack == null) { @@ -18249,15 +18383,15 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("relaysmtp", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call relaysmtp(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call relaysmtp(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call relaysmtp(). Invalid IP or hostname passed in: " + ip); } if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_24__["Programs"].RelaySMTPProgram.name)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the relaySMTP.exe program!"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the relaySMTP.exe program!"); } if (!server.smtpPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.relaysmtp == null) { @@ -18278,15 +18412,15 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("httpworm", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call httpworm(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call httpworm(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call httpworm(). Invalid IP or hostname passed in: " + ip); } if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_24__["Programs"].HTTPWormProgram.name)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the HTTPWorm.exe program!"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the HTTPWorm.exe program!"); } if (!server.httpPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.httpworm == null) { @@ -18307,15 +18441,15 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("sqlinject", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call sqlinject(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call sqlinject(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot call sqlinject(). Invalid IP or hostname passed in: " + ip); } if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasProgram(_Programs_Programs__WEBPACK_IMPORTED_MODULE_24__["Programs"].SQLInjectProgram.name)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the SQLInject.exe program!"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You do not have the SQLInject.exe program!"); } if (!server.sqlPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.sqlinject == null) { @@ -18336,10 +18470,10 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("run", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptRunRamCost); if (scriptname === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "run() call has incorrect number of arguments. Usage: run(scriptname, [numThreads], [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "run() call has incorrect number of arguments. Usage: run(scriptname, [numThreads], [arg1], [arg2]...)"); } if (isNaN(threads) || threads < 0) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument for thread count passed into run(). Must be numeric and greater than 0"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument for thread count passed into run(). Must be numeric and greater than 0"); } var argsForNewScript = []; for (var i = 2; i < arguments.length; ++i) { @@ -18347,10 +18481,10 @@ function NetscriptFunctions(workerScript) { } var scriptServer = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(workerScript.serverIp); if (scriptServer == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); } - return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* runScriptFromScript */ "f"])(scriptServer, scriptname, argsForNewScript, workerScript, threads); + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* runScriptFromScript */ "f"])(scriptServer, scriptname, argsForNewScript, workerScript, threads); }, exec : function(scriptname,ip,threads = 1) { if (workerScript.checkingRam) { @@ -18358,10 +18492,10 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("exec", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptExecRamCost); if (scriptname === undefined || ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "exec() call has incorrect number of arguments. Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "exec() call has incorrect number of arguments. Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)"); } if (isNaN(threads) || threads < 0) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument for thread count passed into exec(). Must be numeric and greater than 0"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument for thread count passed into exec(). Must be numeric and greater than 0"); } var argsForNewScript = []; for (var i = 3; i < arguments.length; ++i) { @@ -18369,9 +18503,9 @@ function NetscriptFunctions(workerScript) { } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid hostname/ip passed into exec() command: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid hostname/ip passed into exec() command: " + ip); } - return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* runScriptFromScript */ "f"])(server, scriptname, argsForNewScript, workerScript, threads); + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* runScriptFromScript */ "f"])(server, scriptname, argsForNewScript, workerScript, threads); }, spawn : function(scriptname, threads) { if (workerScript.checkingRam) { @@ -18379,14 +18513,14 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("spawn", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptSpawnRamCost); if (scriptname == null || threads == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid scriptname or numThreads argument passed to spawn()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid scriptname or numThreads argument passed to spawn()"); } setTimeout(()=>{ if (scriptname === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "spawn() call has incorrect number of arguments. Usage: spawn(scriptname, numThreads, [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "spawn() call has incorrect number of arguments. Usage: spawn(scriptname, numThreads, [arg1], [arg2]...)"); } if (isNaN(threads) || threads < 0) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument for thread count passed into run(). Must be numeric and greater than 0"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument for thread count passed into run(). Must be numeric and greater than 0"); } var argsForNewScript = []; for (var i = 2; i < arguments.length; ++i) { @@ -18394,10 +18528,10 @@ function NetscriptFunctions(workerScript) { } var scriptServer = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(workerScript.serverIp); if (scriptServer == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); } - return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* runScriptFromScript */ "f"])(scriptServer, scriptname, argsForNewScript, workerScript, threads); + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* runScriptFromScript */ "f"])(scriptServer, scriptname, argsForNewScript, workerScript, threads); }, 20000); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.spawn == null) { workerScript.scriptRef.log("spawn() will execute " + scriptname + " in 20 seconds"); @@ -18410,12 +18544,12 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("kill", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptKillRamCost); if (filename === undefined || ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "kill() call has incorrect number of arguments. Usage: kill(scriptname, server, [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "kill() call has incorrect number of arguments. Usage: kill(scriptname, server, [arg1], [arg2]...)"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("kill() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "kill() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "kill() failed. Invalid IP or hostname passed in: " + ip); } var argsForKillTarget = []; for (var i = 2; i < arguments.length; ++i) { @@ -18423,18 +18557,18 @@ function NetscriptFunctions(workerScript) { } var runningScriptObj = Object(_Script__WEBPACK_IMPORTED_MODULE_25__[/* findRunningScript */ "d"])(filename, argsForKillTarget, server); if (runningScriptObj == null) { - workerScript.scriptRef.log("kill() failed. No such script "+ filename + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_42__["arrayToString"])(argsForKillTarget)); + workerScript.scriptRef.log("kill() failed. No such script "+ filename + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_43__["arrayToString"])(argsForKillTarget)); return false; } - var res = Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* killWorkerScript */ "d"])(runningScriptObj, server.ip); + var res = Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* killWorkerScript */ "d"])(runningScriptObj, server.ip); if (res) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.kill == null) { - workerScript.scriptRef.log("Killing " + filename + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_42__["arrayToString"])(argsForKillTarget) + ". May take up to a few minutes for the scripts to die..."); + workerScript.scriptRef.log("Killing " + filename + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_43__["arrayToString"])(argsForKillTarget) + ". May take up to a few minutes for the scripts to die..."); } return true; } else { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.kill == null) { - workerScript.scriptRef.log("kill() failed. No such script "+ filename + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_42__["arrayToString"])(argsForKillTarget)); + workerScript.scriptRef.log("kill() failed. No such script "+ filename + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_43__["arrayToString"])(argsForKillTarget)); } return false; } @@ -18445,16 +18579,16 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("killall", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptKillRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "killall() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "killall() call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("killall() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "killall() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "killall() failed. Invalid IP or hostname passed in: " + ip); } var scriptsRunning = (server.runningScripts.length > 0); for (var i = server.runningScripts.length-1; i >= 0; --i) { - Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* killWorkerScript */ "d"])(server.runningScripts[i], server.ip); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* killWorkerScript */ "d"])(server.runningScripts[i], server.ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.killall == null) { workerScript.scriptRef.log("killall(): Killing all scripts on " + server.hostname + ". May take a few minutes for the scripts to die"); @@ -18465,9 +18599,9 @@ function NetscriptFunctions(workerScript) { if (workerScript.checkingRam) {return 0;} var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(workerScript.serverIp); if (server == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Error getting Server for this script in exit(). This is a bug please contact game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Error getting Server for this script in exit(). This is a bug please contact game dev"); } - if (Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* killWorkerScript */ "d"])(workerScript.scriptRef, server.ip)) { + if (Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* killWorkerScript */ "d"])(workerScript.scriptRef, server.ip)) { workerScript.scriptRef.log("Exiting..."); } else { workerScript.scriptRef.log("Exit failed(). This is a bug please contact game developer"); @@ -18479,7 +18613,7 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("scp", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptScpRamCost); if (arguments.length !== 2 && arguments.length !== 3) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); } if (scriptname && scriptname.constructor === Array) { //Recursively call scp on all elements of array @@ -18493,39 +18627,39 @@ function NetscriptFunctions(workerScript) { } if (!scriptname.endsWith(".lit") && !Object(_Script__WEBPACK_IMPORTED_MODULE_25__[/* isScriptFilename */ "f"])(scriptname) && !scriptname.endsWith("txt")) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() does not work with this file type. It only works for .script, .lit, and .txt files"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() does not work with this file type. It only works for .script, .lit, and .txt files"); } var destServer, currServ; if (ip2 != null) { // 3 Argument version: scriptname, source, destination if (scriptname === undefined || ip1 === undefined || ip2 === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); } destServer = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip2); if (destServer == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `ERROR: Invalid hostname/ip passed into scp() command: ${ip2}`); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `ERROR: Invalid hostname/ip passed into scp() command: ${ip2}`); } currServ = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip1); if (currServ == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `ERROR: Invalid hostname/ip passed into scp() command: ${ip1}`); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `ERROR: Invalid hostname/ip passed into scp() command: ${ip1}`); } } else if (ip1 != null) { // 2 Argument version: scriptname, destination if (scriptname === undefined || ip1 === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); } destServer = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip1); if (destServer == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `ERROR: Invalid hostname/ip passed into scp() command: ${ip1}`); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `ERROR: Invalid hostname/ip passed into scp() command: ${ip1}`); } currServ = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(workerScript.serverIp); if (currServ == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server ip for this script. This is a bug please contact game developer"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server ip for this script. This is a bug please contact game developer"); } } else { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); } //Scp for lit files @@ -18584,7 +18718,7 @@ function NetscriptFunctions(workerScript) { return true; } } - var newFile = new _TextFile__WEBPACK_IMPORTED_MODULE_32__["TextFile"](txtFile.fn, txtFile.text); + var newFile = new _TextFile__WEBPACK_IMPORTED_MODULE_33__["TextFile"](txtFile.fn, txtFile.text); destServer.textFiles.push(newFile); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.scp == null) { workerScript.scriptRef.log(scriptname + " copied over to " + destServer.hostname); @@ -18638,12 +18772,12 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("ls", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptScanRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ls() failed because of invalid arguments. Usage: ls(ip/hostname, [grep filter])"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ls() failed because of invalid arguments. Usage: ls(ip/hostname, [grep filter])"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("ls() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ls() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ls() failed. Invalid IP or hostname passed in: " + ip); } //Get the grep filter, if one exists @@ -18722,7 +18856,7 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null){ workerScript.scriptRef.log("ps() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ps() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ps() failed. Invalid IP or hostname passed in: " + ip); } const processes = []; for (const i in server.runningScripts) { @@ -18737,12 +18871,12 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("hasRootAccess", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptHasRootAccessRamCost); if (ip===undefined){ - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "hasRootAccess() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "hasRootAccess() call has incorrect number of arguments. Takes 1 argument"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null){ workerScript.scriptRef.log("hasRootAccess() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "hasRootAccess() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "hasRootAccess() failed. Invalid IP or hostname passed in: " + ip); } return server.hasAdminRights; }, @@ -18753,7 +18887,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getIp", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetHostnameRamCost); var scriptServer = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(workerScript.serverIp); if (scriptServer == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); } return scriptServer.ip; }, @@ -18764,7 +18898,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getHostname", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetHostnameRamCost); var scriptServer = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(workerScript.serverIp); if (scriptServer == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); } return scriptServer.hostname; }, @@ -18810,7 +18944,7 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getBitNodeMultipliers", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetMultipliersRamCost); if (!hasAISF) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getBitNodeMultipliers(). It requires Source-File 5 to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getBitNodeMultipliers(). It requires Source-File 5 to run."); } let copy = Object.assign({}, _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_5__["BitNodeMultipliers"]); return copy; @@ -18823,17 +18957,17 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getServerMoneyAvailable() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerMoneyAvailable() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerMoneyAvailable() failed. Invalid IP or hostname passed in: " + ip); } if (server.hostname == "home") { //Return player's money if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMoneyAvailable == null) { - workerScript.scriptRef.log("getServerMoneyAvailable('home') returned player's money: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].money.toNumber(), 2)); + workerScript.scriptRef.log("getServerMoneyAvailable('home') returned player's money: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].money.toNumber(), 2)); } return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].money.toNumber(); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMoneyAvailable == null) { - workerScript.scriptRef.log("getServerMoneyAvailable() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.moneyAvailable, 2) + " for " + server.hostname); + workerScript.scriptRef.log("getServerMoneyAvailable() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.moneyAvailable, 2) + " for " + server.hostname); } return server.moneyAvailable; }, @@ -18845,10 +18979,10 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getServerSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerSecurityLevel == null) { - workerScript.scriptRef.log("getServerSecurityLevel() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.hackDifficulty, 3) + " for " + server.hostname); + workerScript.scriptRef.log("getServerSecurityLevel() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.hackDifficulty, 3) + " for " + server.hostname); } return server.hackDifficulty; }, @@ -18860,10 +18994,10 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getServerBaseSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerBaseSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerBaseSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerBaseSecurityLevel == null) { - workerScript.scriptRef.log("getServerBaseSecurityLevel() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.baseDifficulty, 3) + " for " + server.hostname); + workerScript.scriptRef.log("getServerBaseSecurityLevel() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.baseDifficulty, 3) + " for " + server.hostname); } return server.baseDifficulty; }, @@ -18875,10 +19009,10 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getServerMinSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerMinSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerMinSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMinSecurityLevel == null) { - workerScript.scriptRef.log("getServerMinSecurityLevel() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.minDifficulty, 3) + " for " + server.hostname); + workerScript.scriptRef.log("getServerMinSecurityLevel() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.minDifficulty, 3) + " for " + server.hostname); } return server.minDifficulty; }, @@ -18890,10 +19024,10 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getServerRequiredHackingLevel() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerRequiredHackingLevel() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerRequiredHackingLevel() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerRequiredHackingLevel == null) { - workerScript.scriptRef.log("getServerRequiredHackingLevel returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.requiredHackingSkill, 0) + " for " + server.hostname); + workerScript.scriptRef.log("getServerRequiredHackingLevel returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.requiredHackingSkill, 0) + " for " + server.hostname); } return server.requiredHackingSkill; }, @@ -18905,10 +19039,10 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getServerMaxMoney() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerMaxMoney() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerMaxMoney() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMaxMoney == null) { - workerScript.scriptRef.log("getServerMaxMoney() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.moneyMax, 0) + " for " + server.hostname); + workerScript.scriptRef.log("getServerMaxMoney() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.moneyMax, 0) + " for " + server.hostname); } return server.moneyMax; }, @@ -18920,10 +19054,10 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getServerGrowth() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerGrowth() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerGrowth() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerGrowth == null) { - workerScript.scriptRef.log("getServerGrowth() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.serverGrowth, 0) + " for " + server.hostname); + workerScript.scriptRef.log("getServerGrowth() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.serverGrowth, 0) + " for " + server.hostname); } return server.serverGrowth; }, @@ -18935,10 +19069,10 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getServerNumPortsRequired() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerNumPortsRequired() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerNumPortsRequired() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerNumPortsRequired == null) { - workerScript.scriptRef.log("getServerNumPortsRequired() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.numOpenPortsRequired, 0) + " for " + server.hostname); + workerScript.scriptRef.log("getServerNumPortsRequired() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.numOpenPortsRequired, 0) + " for " + server.hostname); } return server.numOpenPortsRequired; }, @@ -18950,10 +19084,10 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getServerRam() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerRam() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getServerRam() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerRam == null) { - workerScript.scriptRef.log("getServerRam() returned [" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.maxRam, 2) + "GB, " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(server.ramUsed, 2) + "GB]"); + workerScript.scriptRef.log("getServerRam() returned [" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.maxRam, 2) + "GB, " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(server.ramUsed, 2) + "GB]"); } return [server.maxRam, server.ramUsed]; }, @@ -18970,12 +19104,12 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("fileExists", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptFileExistsRamCost); if (filename === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "fileExists() call has incorrect number of arguments. Usage: fileExists(scriptname, [server])"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "fileExists() call has incorrect number of arguments. Usage: fileExists(scriptname, [server])"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("fileExists() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "fileExists() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "fileExists() failed. Invalid IP or hostname passed in: " + ip); } for (var i = 0; i < server.scripts.length; ++i) { if (filename == server.scripts[i].filename) { @@ -18993,7 +19127,7 @@ function NetscriptFunctions(workerScript) { return true; } } - var txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_32__["getTextFile"])(filename, server); + var txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_33__["getTextFile"])(filename, server); if (txtFile != null) { return true; } @@ -19005,12 +19139,12 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("isRunning", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptIsRunningRamCost); if (filename === undefined || ip === undefined) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "isRunning() call has incorrect number of arguments. Usage: isRunning(scriptname, server, [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "isRunning() call has incorrect number of arguments. Usage: isRunning(scriptname, server, [arg1], [arg2]...)"); } var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("isRunning() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "isRunning() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "isRunning() failed. Invalid IP or hostname passed in: " + ip); } var argsForTargetScript = []; for (var i = 2; i < arguments.length; ++i) { @@ -19024,9 +19158,9 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getStockSymbols", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockSymbols()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockSymbols()"); } - return Object.values(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* StockSymbols */ "d"]); + return Object.values(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* StockSymbols */ "d"]); }, getStockPrice : function(symbol) { if (workerScript.checkingRam) { @@ -19034,11 +19168,11 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getStockPrice", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockPrice()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockPrice()"); } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into getStockPrice()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into getStockPrice()"); } return parseFloat(stock.price.toFixed(3)); }, @@ -19048,11 +19182,11 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getStockPosition", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockPosition()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockPosition()"); } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into getStockPosition()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into getStockPosition()"); } return [stock.playerShares, stock.playerAvgPx, stock.playerShortShares, stock.playerAvgShortPx]; }, @@ -19063,11 +19197,11 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getStockMaxShares", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockMaxShares()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getStockMaxShares()"); } - const stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + const stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into getStockMaxShares()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into getStockMaxShares()"); } return stock.maxShares; @@ -19078,11 +19212,11 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("buyStock", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use buyStock()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use buyStock()"); } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into buyStock()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into buyStock()"); } if (shares < 0 || isNaN(shares)) { workerScript.scriptRef.log("ERROR: Invalid 'shares' argument passed to buyStock()"); @@ -19094,9 +19228,9 @@ function NetscriptFunctions(workerScript) { // Does player have enough money? var totalPrice = stock.price * shares; if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].money.lt(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].StockMarketCommission)) { - workerScript.scriptRef.log("Not enough money to purchase " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(shares, 0) + " shares of " + + workerScript.scriptRef.log("Not enough money to purchase " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(shares, 0) + " shares of " + symbol + ". Need $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].StockMarketCommission, 2).toString()); + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].StockMarketCommission, 2).toString()); return 0; } @@ -19112,12 +19246,12 @@ function NetscriptFunctions(workerScript) { var newTotal = origTotal + totalPrice; stock.playerShares += shares; stock.playerAvgPx = newTotal / stock.playerShares; - if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_39__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_39__["Page"].StockMarket)) { - Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* updateStockPlayerPosition */ "r"])(stock); + if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_40__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_40__["Page"].StockMarket)) { + Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* updateStockPlayerPosition */ "r"])(stock); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.buyStock == null) { - workerScript.scriptRef.log("Bought " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(stock.price, 2) + " per share"); + workerScript.scriptRef.log("Bought " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(stock.price, 2) + " per share"); } return stock.price; }, @@ -19127,11 +19261,11 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("sellStock", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use sellStock()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use sellStock()"); } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into sellStock()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid stock symbol passed into sellStock()"); } if (shares < 0 || isNaN(shares)) { workerScript.scriptRef.log("ERROR: Invalid 'shares' argument passed to sellStock()"); @@ -19153,13 +19287,13 @@ function NetscriptFunctions(workerScript) { if (stock.playerShares == 0) { stock.playerAvgPx = 0; } - if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_39__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_39__["Page"].StockMarket)) { - Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* updateStockPlayerPosition */ "r"])(stock); + if (_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_40__["routing"].isOn(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_40__["Page"].StockMarket)) { + Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* updateStockPlayerPosition */ "r"])(stock); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.sellStock == null) { - workerScript.scriptRef.log("Sold " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(stock.price, 2) + " per share. Gained " + - "$" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(gains, 2)); + workerScript.scriptRef.log("Sold " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(stock.price, 2) + " per share. Gained " + + "$" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(gains, 2)); } return stock.price; }, @@ -19169,18 +19303,18 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("shortStock", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use shortStock()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use shortStock()"); } if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN !== 8) { if (!(hasWallStreetSF && wallStreetSFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use shortStock(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use shortStock(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8"); } } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into shortStock()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into shortStock()"); } - var res = Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* shortStock */ "p"])(stock, shares, workerScript); + var res = Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* shortStock */ "p"])(stock, shares, workerScript); return res ? stock.price : 0; }, sellShort(symbol, shares) { @@ -19189,18 +19323,18 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("sellShort", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use sellShort()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use sellShort()"); } if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN !== 8) { if (!(hasWallStreetSF && wallStreetSFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use sellShort(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use sellShort(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8"); } } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into sellShort()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into sellShort()"); } - var res = Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* sellShort */ "n"])(stock, shares, workerScript); + var res = Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* sellShort */ "n"])(stock, shares, workerScript); return res ? stock.price : 0; }, placeOrder(symbol, shares, price, type, pos) { @@ -19209,41 +19343,41 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("placeOrder", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use placeOrder()"); } if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN !== 8) { if (!(hasWallStreetSF && wallStreetSFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use placeOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use placeOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); } } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into placeOrder()"); } var orderType, orderPos; type = type.toLowerCase(); if (type.includes("limit") && type.includes("buy")) { - orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* OrderTypes */ "a"].LimitBuy; + orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* OrderTypes */ "a"].LimitBuy; } else if (type.includes("limit") && type.includes("sell")) { - orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* OrderTypes */ "a"].LimitSell; + orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* OrderTypes */ "a"].LimitSell; } else if (type.includes("stop") && type.includes("buy")) { - orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* OrderTypes */ "a"].StopBuy; + orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* OrderTypes */ "a"].StopBuy; } else if (type.includes("stop") && type.includes("sell")) { - orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* OrderTypes */ "a"].StopSell; + orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* OrderTypes */ "a"].StopSell; } else { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid Order Type passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid Order Type passed into placeOrder()"); } pos = pos.toLowerCase(); if (pos.includes("l")) { - orderPos = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* PositionTypes */ "b"].Long; + orderPos = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* PositionTypes */ "b"].Long; } else if (pos.includes('s')) { - orderPos = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* PositionTypes */ "b"].Short; + orderPos = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* PositionTypes */ "b"].Short; } else { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid Position Type passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid Position Type passed into placeOrder()"); } - return Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* placeOrder */ "l"])(stock, shares, price, orderType, orderPos, workerScript); + return Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* placeOrder */ "l"])(stock, shares, price, orderType, orderPos, workerScript); }, cancelOrder(symbol, shares, price, type, pos) { if (workerScript.checkingRam) { @@ -19251,41 +19385,41 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("cancelOrder", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use cancelOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use cancelOrder()"); } if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN !== 8) { if (!(hasWallStreetSF && wallStreetSFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use cancelOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use cancelOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); } } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into cancelOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into cancelOrder()"); } if (isNaN(shares) || isNaN(price)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid shares or price argument passed into cancelOrder(). Must be numeric"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid shares or price argument passed into cancelOrder(). Must be numeric"); } var orderType, orderPos; type = type.toLowerCase(); if (type.includes("limit") && type.includes("buy")) { - orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* OrderTypes */ "a"].LimitBuy; + orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* OrderTypes */ "a"].LimitBuy; } else if (type.includes("limit") && type.includes("sell")) { - orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* OrderTypes */ "a"].LimitSell; + orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* OrderTypes */ "a"].LimitSell; } else if (type.includes("stop") && type.includes("buy")) { - orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* OrderTypes */ "a"].StopBuy; + orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* OrderTypes */ "a"].StopBuy; } else if (type.includes("stop") && type.includes("sell")) { - orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* OrderTypes */ "a"].StopSell; + orderType = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* OrderTypes */ "a"].StopSell; } else { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid Order Type passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid Order Type passed into placeOrder()"); } pos = pos.toLowerCase(); if (pos.includes("l")) { - orderPos = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* PositionTypes */ "b"].Long; + orderPos = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* PositionTypes */ "b"].Long; } else if (pos.includes('s')) { - orderPos = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* PositionTypes */ "b"].Short; + orderPos = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* PositionTypes */ "b"].Short; } else { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid Position Type passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid Position Type passed into placeOrder()"); } var params = { stock: stock, @@ -19294,7 +19428,7 @@ function NetscriptFunctions(workerScript) { type: orderType, pos: orderPos }; - return Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* cancelOrder */ "f"])(params, workerScript); + return Object(_StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* cancelOrder */ "f"])(params, workerScript); }, getOrders : function() { if (workerScript.checkingRam) { @@ -19302,17 +19436,17 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getOrders", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getOrders()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use getOrders()"); } if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN !== 8) { if (!(hasWallStreetSF && wallStreetSFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use getOrders(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Cannot use getOrders(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); } } const orders = {}; - const stockMarketOrders = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* StockMarket */ "c"]["Orders"]; + const stockMarketOrders = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* StockMarket */ "c"]["Orders"]; for (let symbol in stockMarketOrders) { const orderBook = stockMarketOrders[symbol]; if (orderBook.constructor === Array && orderBook.length > 0) { @@ -19336,11 +19470,11 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getStockVolatility", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].has4SDataTixApi) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have 4S Market Data TIX API Access! Cannot use getStockVolatility()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have 4S Market Data TIX API Access! Cannot use getStockVolatility()"); } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into getStockVolatility()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into getStockVolatility()"); } return stock.mv / 100; //Convert from percentage to decimal }, @@ -19350,11 +19484,11 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getStockForecast", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].has4SDataTixApi) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have 4S Market Data TIX API Access! Cannot use getStockForecast()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have 4S Market Data TIX API Access! Cannot use getStockForecast()"); } - var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_30__[/* SymbolToStockMap */ "e"][symbol]; + var stock = _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_31__[/* SymbolToStockMap */ "e"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into getStockForecast()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid stock symbol passed into getStockForecast()"); } var forecast = 50; stock.b ? forecast += stock.otlkMag : forecast -= stock.otlkMag; @@ -19367,7 +19501,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("purchase4SMarketData", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use purchase4SMarketData()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use purchase4SMarketData()"); } if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].has4SData) { @@ -19398,7 +19532,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("purchase4SMarketDataTixApi", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBuySellStockRamCost); if (!_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use purchase4SMarketDataTixApi()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "You don't have TIX API Access! Cannot use purchase4SMarketDataTixApi()"); } if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].has4SDataTixApi) { @@ -19428,7 +19562,7 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getPurchasedServerLimit", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetPurchasedServerLimit); - return _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].PurchasedServerLimit; + return Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_27__[/* getPurchaseServerLimit */ "b"])(); }, getPurchasedServerMaxRam: function() { if (workerScript.checkingRam) { @@ -19436,7 +19570,7 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getPurchasedServerMaxRam", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetPurchasedServerMaxRam); - return _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].PurchasedServerMaxRam; + return Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_27__[/* getPurchaseServerMaxRam */ "c"])(); }, getPurchasedServerCost: function(ram) { if (workerScript.checkingRam) { @@ -19444,11 +19578,9 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getPurchasedServerCost", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetPurchaseServerRamCost); - let cost = 0; - try { - cost = getPurchaseServerRamCostGuard(ram); - } catch (e) { - workerScript.scriptRef.log("ERROR: 'getPurchasedServerCost()' " + e.message); + const cost = Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_27__[/* getPurchaseServerCost */ "a"])(ram); + if (cost === Infinity) { + workerScript.scriptRef.log("ERROR: 'getPurchasedServerCost()' failed due to an invalid 'ram' argument"); return Infinity; } @@ -19462,30 +19594,27 @@ function NetscriptFunctions(workerScript) { var hostnameStr = String(hostname); hostnameStr = hostnameStr.replace(/\s+/g, ''); if (hostnameStr == "") { - workerScript.scriptRef.log("ERROR: Passed empty string for hostname argument of purchaseServer()"); + workerScript.log("ERROR: Passed empty string for hostname argument of purchaseServer()"); return ""; } - if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].purchasedServers.length >= _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].PurchasedServerLimit) { - workerScript.scriptRef.log("ERROR: You have reached the maximum limit of " + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].PurchasedServerLimit + - " servers. You cannot purchase any more."); + if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].purchasedServers.length >= Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_27__[/* getPurchaseServerLimit */ "b"])()) { + workerScript.log(`ERROR: You have reached the maximum limit of ${Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_27__[/* getPurchaseServerLimit */ "b"])()} servers. You cannot purchase any more.`); return ""; } - let cost = 0; - try { - cost = getPurchaseServerRamCostGuard(ram); - } catch (e) { - workerScript.scriptRef.log("ERROR: 'purchaseServer()' " + e.message); - return ""; + const cost = Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_27__[/* getPurchaseServerCost */ "a"])(ram); + if (cost === Infinity) { + workerScript.log("ERROR: 'purchaseServer()' failed due to an invalid 'ram' argument"); + return Infinity; } if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].money.lt(cost)) { - workerScript.scriptRef.log("ERROR: Not enough money to purchase server. Need $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(cost, 2)); + workerScript.log("ERROR: Not enough money to purchase server. Need $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(cost, 2)); return ""; } var newServ = new _Server__WEBPACK_IMPORTED_MODULE_26__[/* Server */ "d"]({ - ip: Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_43__[/* createRandomIp */ "a"])(), + ip: Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_44__[/* createRandomIp */ "a"])(), hostname: hostnameStr, organizationName: "", isConnectedTo: false, @@ -19501,7 +19630,7 @@ function NetscriptFunctions(workerScript) { newServ.serversOnNetwork.push(homeComputer.ip); _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].loseMoney(cost); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.purchaseServer == null) { - workerScript.scriptRef.log("Purchased new server with hostname " + newServ.hostname + " for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_44__["formatNumber"])(cost, 2)); + workerScript.scriptRef.log("Purchased new server with hostname " + newServ.hostname + " for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_45__["formatNumber"])(cost, 2)); } return newServ.hostname; }, @@ -19590,7 +19719,7 @@ function NetscriptFunctions(workerScript) { if (hostname) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find server in getPurchasedServers(). This is a bug please report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find server in getPurchasedServers(). This is a bug please report to game dev"); } res.push(server.hostname); } else { @@ -19608,18 +19737,18 @@ function NetscriptFunctions(workerScript) { //Port 1-10 port = Math.round(port); if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Trying to write to invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Trying to write to invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid."); } - var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* NetscriptPorts */ "a"][port-1]; - if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_37__[/* NetscriptPort */ "a"])) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* NetscriptPorts */ "a"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_38__[/* NetscriptPort */ "a"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find port: " + port + ". This is a bug contact the game developer"); } return port.write(data); - } else if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45__["isString"])(port)) { //Write to script or text file + } else if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46__["isString"])(port)) { //Write to script or text file var fn = port; var server = workerScript.getServer(); if (server == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Error getting Server for this script in write(). This is a bug please contact game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Error getting Server for this script in write(). This is a bug please contact game dev"); } if (Object(_Script__WEBPACK_IMPORTED_MODULE_25__[/* isScriptFilename */ "f"])(fn)) { //Write to script @@ -19634,9 +19763,9 @@ function NetscriptFunctions(workerScript) { script.updateRamUsage(); } else { //Write to text file - let txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_32__["getTextFile"])(fn, server); + let txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_33__["getTextFile"])(fn, server); if (txtFile == null) { - txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_32__["createTextFile"])(fn, data, server); + txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_33__["createTextFile"])(fn, data, server); return true; } if (mode === "w") { @@ -19647,7 +19776,7 @@ function NetscriptFunctions(workerScript) { } return true; } else { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument passed in for write: " + port); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument passed in for write: " + port); } }, tryWrite : function(port, data="") { @@ -19658,15 +19787,15 @@ function NetscriptFunctions(workerScript) { if (!isNaN(port)) { port = Math.round(port); if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: tryWrite() called on invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: tryWrite() called on invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid."); } - var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* NetscriptPorts */ "a"][port-1]; - if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_37__[/* NetscriptPort */ "a"])) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* NetscriptPorts */ "a"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_38__[/* NetscriptPort */ "a"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Could not find port: " + port + ". This is a bug contact the game developer"); } return port.tryWrite(data); } else { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument passed in for tryWrite: " + port); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument passed in for tryWrite: " + port); } }, read : function(port) { @@ -19678,18 +19807,18 @@ function NetscriptFunctions(workerScript) { //Port 1-10 port = Math.round(port); if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Trying to read from invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Trying to read from invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid."); } - var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* NetscriptPorts */ "a"][port-1]; - if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_37__[/* NetscriptPort */ "a"])) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* NetscriptPorts */ "a"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_38__[/* NetscriptPort */ "a"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); } return port.read(); - } else if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45__["isString"])(port)) { //Read from script or text file + } else if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46__["isString"])(port)) { //Read from script or text file let fn = port; let server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(workerScript.serverIp); if (server == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Error getting Server for this script in read(). This is a bug please contact game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Error getting Server for this script in read(). This is a bug please contact game dev"); } if (Object(_Script__WEBPACK_IMPORTED_MODULE_25__[/* isScriptFilename */ "f"])(fn)) { //Read from script @@ -19700,7 +19829,7 @@ function NetscriptFunctions(workerScript) { return script.code; } else { //Read from text file - let txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_32__["getTextFile"])(fn, server); + let txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_33__["getTextFile"])(fn, server); if (txtFile !== null) { return txtFile.text; } else { @@ -19708,7 +19837,7 @@ function NetscriptFunctions(workerScript) { } } } else { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument passed in for read(): " + port); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument passed in for read(): " + port); } }, peek : function(port) { @@ -19717,15 +19846,15 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("peek", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptReadWriteRamCost); if (isNaN(port)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: peek() called with invalid argument. Must be a port number between 1 and " + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: peek() called with invalid argument. Must be a port number between 1 and " + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts); } port = Math.round(port); if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: peek() called with invalid argument. Must be a port number between 1 and " + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: peek() called with invalid argument. Must be a port number between 1 and " + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts); } - var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* NetscriptPorts */ "a"][port-1]; - if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_37__[/* NetscriptPort */ "a"])) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* NetscriptPorts */ "a"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_38__[/* NetscriptPort */ "a"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); } return port.peek(); }, @@ -19737,25 +19866,25 @@ function NetscriptFunctions(workerScript) { if (!isNaN(port)) { //Clear port port = Math.round(port); if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Trying to clear invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Trying to clear invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid"); } - var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* NetscriptPorts */ "a"][port-1]; - if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_37__[/* NetscriptPort */ "a"])) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* NetscriptPorts */ "a"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_38__[/* NetscriptPort */ "a"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); } return port.clear(); - } else if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45__["isString"])(port)) { //Clear text file + } else if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46__["isString"])(port)) { //Clear text file var fn = port; var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(workerScript.serverIp); if (server == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Error getting Server for this script in clear(). This is a bug please contact game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Error getting Server for this script in clear(). This is a bug please contact game dev"); } - var txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_32__["getTextFile"])(fn, server); + var txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_33__["getTextFile"])(fn, server); if (txtFile != null) { txtFile.write(""); } } else { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument passed in for clear(): " + port); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid argument passed in for clear(): " + port); } return 0; }, @@ -19765,15 +19894,15 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getPortHandle", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptReadWriteRamCost * 10); if (isNaN(port)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid argument passed into getPortHandle(). Must be an integer between 1 and " + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Invalid argument passed into getPortHandle(). Must be an integer between 1 and " + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts); } port = Math.round(port); if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: getPortHandle() called with invalid port number: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: getPortHandle() called with invalid port number: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].NumNetscriptPorts + " are valid"); } - var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* NetscriptPorts */ "a"][port-1]; - if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_37__[/* NetscriptPort */ "a"])) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* NetscriptPorts */ "a"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_38__[/* NetscriptPort */ "a"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); } return port; }, @@ -19788,7 +19917,7 @@ function NetscriptFunctions(workerScript) { } var s = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (s == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `Invalid server specified for rm(): ${ip}`); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, `Invalid server specified for rm(): ${ip}`); } if (fn.includes(".exe")) { @@ -19815,7 +19944,7 @@ function NetscriptFunctions(workerScript) { } else if (fn.endsWith(".lit")) { for (var i = 0; i < s.messages.length; ++i) { var f = s.messages[i]; - if (!(f instanceof _Message__WEBPACK_IMPORTED_MODULE_21__[/* Message */ "a"]) && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45__["isString"])(f) && f === fn) { + if (!(f instanceof _Message__WEBPACK_IMPORTED_MODULE_21__[/* Message */ "a"]) && Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46__["isString"])(f) && f === fn) { s.messages.splice(i, 1); return true; } @@ -19845,7 +19974,7 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("scriptRunning() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "scriptRunning() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "scriptRunning() failed. Invalid IP or hostname passed in: " + ip); } for (var i = 0; i < server.runningScripts.length; ++i) { if (server.runningScripts[i].filename == scriptname) { @@ -19862,12 +19991,12 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("scriptKill() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "scriptKill() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "scriptKill() failed. Invalid IP or hostname passed in: " + ip); } var suc = false; for (var i = 0; i < server.runningScripts.length; ++i) { if (server.runningScripts[i].filename == scriptname) { - Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* killWorkerScript */ "d"])(server.runningScripts[i], server.ip); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* killWorkerScript */ "d"])(server.runningScripts[i], server.ip); suc = true; } } @@ -19885,7 +20014,7 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getScriptRam() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getScriptRam() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getScriptRam() failed. Invalid IP or hostname passed in: " + ip); } for (var i = 0; i < server.scripts.length; ++i) { if (server.scripts[i].filename == scriptname) { @@ -19902,7 +20031,7 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getHackTime() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getHackTime() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getHackTime() failed. Invalid IP or hostname passed in: " + ip); } return Object(_Hacking__WEBPACK_IMPORTED_MODULE_14__[/* calculateHackingTime */ "d"])(server, hack, int); //Returns seconds }, @@ -19914,7 +20043,7 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getGrowTime() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getGrowTime() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getGrowTime() failed. Invalid IP or hostname passed in: " + ip); } return Object(_Hacking__WEBPACK_IMPORTED_MODULE_14__[/* calculateGrowTime */ "a"])(server, hack, int); //Returns seconds }, @@ -19926,7 +20055,7 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getWeakenTime() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getWeakenTime() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getWeakenTime() failed. Invalid IP or hostname passed in: " + ip); } return Object(_Hacking__WEBPACK_IMPORTED_MODULE_14__[/* calculateWeakenTime */ "f"])(server, hack, int); //Returns seconds }, @@ -19946,7 +20075,7 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getScriptIncome() failed. Invalid IP or hostnamed passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getScriptIncome() failed. Invalid IP or hostnamed passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getScriptIncome() failed. Invalid IP or hostnamed passed in: " + ip); } var argsForScript = []; for (var i = 2; i < arguments.length; ++i) { @@ -19954,7 +20083,7 @@ function NetscriptFunctions(workerScript) { } var runningScriptObj = Object(_Script__WEBPACK_IMPORTED_MODULE_25__[/* findRunningScript */ "d"])(scriptname, argsForScript, server); if (runningScriptObj == null) { - workerScript.scriptRef.log("getScriptIncome() failed. No such script "+ scriptname + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_42__["arrayToString"])(argsForScript)); + workerScript.scriptRef.log("getScriptIncome() failed. No such script "+ scriptname + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_43__["arrayToString"])(argsForScript)); return -1; } return runningScriptObj.onlineMoneyMade / runningScriptObj.onlineRunningTime; @@ -19967,8 +20096,8 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getScriptExpGain", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGetScriptRamCost); if (arguments.length === 0) { var total = 0; - for (var i = 0; i < _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* workerScripts */ "h"].length; ++i) { - total += (_NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* workerScripts */ "h"][i].scriptRef.onlineExpGained / _NetscriptWorker__WEBPACK_IMPORTED_MODULE_35__[/* workerScripts */ "h"][i].scriptRef.onlineRunningTime); + for (var i = 0; i < _NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* workerScripts */ "h"].length; ++i) { + total += (_NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* workerScripts */ "h"][i].scriptRef.onlineExpGained / _NetscriptWorker__WEBPACK_IMPORTED_MODULE_36__[/* workerScripts */ "h"][i].scriptRef.onlineRunningTime); } return total; } else { @@ -19976,7 +20105,7 @@ function NetscriptFunctions(workerScript) { var server = Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* getServer */ "e"])(ip); if (server == null) { workerScript.scriptRef.log("getScriptExpGain() failed. Invalid IP or hostnamed passed in: " + ip); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getScriptExpGain() failed. Invalid IP or hostnamed passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getScriptExpGain() failed. Invalid IP or hostnamed passed in: " + ip); } var argsForScript = []; for (var i = 2; i < arguments.length; ++i) { @@ -19984,7 +20113,7 @@ function NetscriptFunctions(workerScript) { } var runningScriptObj = Object(_Script__WEBPACK_IMPORTED_MODULE_25__[/* findRunningScript */ "d"])(scriptname, argsForScript, server); if (runningScriptObj == null) { - workerScript.scriptRef.log("getScriptExpGain() failed. No such script "+ scriptname + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_42__["arrayToString"])(argsForScript)); + workerScript.scriptRef.log("getScriptExpGain() failed. No such script "+ scriptname + " on " + server.hostname + " with args: " + Object(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_43__["arrayToString"])(argsForScript)); return -1; } return runningScriptObj.onlineExpGained / runningScriptObj.onlineRunningTime; @@ -19999,24 +20128,24 @@ function NetscriptFunctions(workerScript) { }, prompt : function(txt) { if (workerScript.checkingRam) {return 0;} - if (_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_46__["yesNoBoxOpen"]) { + if (_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_47__["yesNoBoxOpen"]) { workerScript.scriptRef.log("ERROR: confirm() failed because a pop-up dialog box is already open"); return false; } - if (!Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45__["isString"])(txt)) {txt = String(txt);} - var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_46__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_46__["yesNoBoxGetNoButton"])(); + if (!Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46__["isString"])(txt)) {txt = String(txt);} + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_47__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_47__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Yes"; noBtn.innerHTML = "No"; return new Promise(function(resolve, reject) { yesBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_46__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_47__["yesNoBoxClose"])(); resolve(true); }); noBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_46__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_47__["yesNoBoxClose"])(); resolve(false); }); - Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_46__["yesNoBoxCreate"])(txt); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_47__["yesNoBoxCreate"])(txt); }); }, wget : async function(url, target, ip=workerScript.serverIp) { @@ -20068,7 +20197,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("universityCourse", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run universityCourse(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run universityCourse(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } @@ -20157,7 +20286,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("gymWorkout", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run gymWorkout(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run gymWorkout(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } @@ -20259,7 +20388,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("travelToCity", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run travelToCity(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run travelToCity(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } @@ -20273,7 +20402,7 @@ function NetscriptFunctions(workerScript) { case _Locations__WEBPACK_IMPORTED_MODULE_20__["Locations"].Volhaven: if(_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].TravelCost)) { workerScript.scriptRef.log("ERROR: not enough money to travel with travelToCity()."); - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: not enough money to travel with travelToCity()."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "ERROR: not enough money to travel with travelToCity()."); } _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].TravelCost); _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].city = cityname; @@ -20296,12 +20425,12 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("purchaseTor", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run purchaseTor(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run purchaseTor(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } - if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_28__[/* SpecialServerIps */ "a"]["Darkweb Server"] != null) { + if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_29__[/* SpecialServerIps */ "a"]["Darkweb Server"] != null) { workerScript.scriptRef.log("You already have a TOR router! purchaseTor() failed"); return false; } @@ -20313,11 +20442,11 @@ function NetscriptFunctions(workerScript) { _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].TorRouterCost); var darkweb = new _Server__WEBPACK_IMPORTED_MODULE_26__[/* Server */ "d"]({ - ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_43__[/* createRandomIp */ "a"])(), hostname:"darkweb", organizationName:"", + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_44__[/* createRandomIp */ "a"])(), hostname:"darkweb", organizationName:"", isConnectedTo:false, adminRights:false, purchasedByPlayer:false, maxRam:1 }); Object(_Server__WEBPACK_IMPORTED_MODULE_26__[/* AddToAllServers */ "a"])(darkweb); - _SpecialServerIps__WEBPACK_IMPORTED_MODULE_28__[/* SpecialServerIps */ "a"].addIp("Darkweb Server", darkweb.ip); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_29__[/* SpecialServerIps */ "a"].addIp("Darkweb Server", darkweb.ip); const purchaseTor = document.getElementById("location-purchase-tor"); purchaseTor.setAttribute("class", "a-link-button-bought"); @@ -20340,12 +20469,12 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("purchaseProgram", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run purchaseProgram(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run purchaseProgram(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } - if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_28__[/* SpecialServerIps */ "a"]["Darkweb Server"] == null) { + if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_29__[/* SpecialServerIps */ "a"]["Darkweb Server"] == null) { workerScript.scriptRef.log("ERROR: You do not have the TOR router. purchaseProgram() failed."); return false; } @@ -20392,7 +20521,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getStats", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getStats(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getStats(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return {}; } } @@ -20416,7 +20545,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getCharacterInformation", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCharacterInformation(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCharacterInformation(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return {}; } } @@ -20445,7 +20574,7 @@ function NetscriptFunctions(workerScript) { workMoney: _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].work_money_mult, }, timeWorked: _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].timeWorked, - tor: _SpecialServerIps__WEBPACK_IMPORTED_MODULE_28__[/* SpecialServerIps */ "a"].hasOwnProperty("Darkweb Server"), + tor: _SpecialServerIps__WEBPACK_IMPORTED_MODULE_29__[/* SpecialServerIps */ "a"].hasOwnProperty("Darkweb Server"), workHackExpGain: _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].workHackExpGained, workStrExpGain: _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].workStrExpGained, workDefExpGain: _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].workDefExpGained, @@ -20465,7 +20594,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("isBusy", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run isBusy(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run isBusy(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return; } } @@ -20480,7 +20609,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("stopAction", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run stopAction(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run stopAction(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } @@ -20502,7 +20631,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("upgradeHomeRam", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run upgradeHomeRam(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run upgradeHomeRam(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } @@ -20538,7 +20667,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getUpgradeHomeRamCost", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getUpgradeHomeRamCost(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getUpgradeHomeRamCost(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } @@ -20554,7 +20683,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("workForCompany", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run workForCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run workForCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } @@ -20616,7 +20745,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("applyToCompany", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run applyToCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run applyToCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } @@ -20673,7 +20802,7 @@ function NetscriptFunctions(workerScript) { return false; } //The Player object's applyForJob function can return string with special error messages - if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45__["isString"])(res)) { + if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46__["isString"])(res)) { workerScript.scriptRef.log(res); return false; } @@ -20697,7 +20826,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getCompanyRep", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCompanyRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCompanyRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } @@ -20718,7 +20847,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getCompanyFavor", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCompanyFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCompanyFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } @@ -20739,7 +20868,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getCompanyFavorGain", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCompanyFavorGain(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCompanyFavorGain(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return -1; } } @@ -20760,7 +20889,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("checkFactionInvitations", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run checkFactionInvitations(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run checkFactionInvitations(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } @@ -20776,7 +20905,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("joinFaction", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run joinFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run joinFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } @@ -20815,7 +20944,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("workForFaction", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run workForFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run workForFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } @@ -20915,7 +21044,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getFactionRep", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getFactionRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getFactionRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return -1; } } @@ -20936,7 +21065,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getFactionFavor", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getFactionFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getFactionFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return -1; } } @@ -20957,7 +21086,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getFactionFavorGain", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getFactionFavorGain(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getFactionFavorGain(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return -1; } } @@ -20978,7 +21107,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("donateToFaction", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run donateToFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run donateToFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return; } } @@ -21017,7 +21146,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("createProgram", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run createProgram(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run createProgram(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return false; } } @@ -21071,7 +21200,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("commitCrime", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run commitCrime(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run commitCrime(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return; } } @@ -21112,7 +21241,7 @@ function NetscriptFunctions(workerScript) { const crime = Object(_Crime_CrimeHelpers__WEBPACK_IMPORTED_MODULE_6__[/* findCrime */ "b"])(crimeRoughName.toLowerCase()); if(crime == null) { // couldn't find crime - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid crime passed into commitCrime(): " + crimeRoughName); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid crime passed into commitCrime(): " + crimeRoughName); } if(workerScript.disableLogs.ALL == null && workerScript.disableLogs.commitCrime == null) { workerScript.scriptRef.log("Attempting to commit crime: "+crime.name+"..."); @@ -21128,14 +21257,14 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getCrimeChance", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCrimeChance(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getCrimeChance(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return; } } const crime = Object(_Crime_CrimeHelpers__WEBPACK_IMPORTED_MODULE_6__[/* findCrime */ "b"])(crimeRoughName.toLowerCase()); if(crime == null) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid crime passed into getCrimeChance(): " + crime); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Invalid crime passed into getCrimeChance(): " + crime); } return crime.successRate(); @@ -21149,7 +21278,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getOwnedAugmentations", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getOwnedAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getOwnedAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return []; } } @@ -21173,7 +21302,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getOwnedSourceFiles", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getOwnedSourceFiles(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getOwnedSourceFiles(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return []; } } @@ -21192,7 +21321,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getAugmentationsFromFaction", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getAugmentationsFromFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getAugmentationsFromFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return []; } } @@ -21218,7 +21347,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getAugmentationPrereq", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getAugmentationPrereq(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getAugmentationPrereq(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return false; } } @@ -21240,7 +21369,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("getAugmentationCost", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getAugmentationCost(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run getAugmentationCost(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return false; } } @@ -21262,7 +21391,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("purchaseAugmentation", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run purchaseAugmentation(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run purchaseAugmentation(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return false; } } @@ -21311,7 +21440,7 @@ function NetscriptFunctions(workerScript) { var res = Object(_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_18__[/* purchaseAugmentation */ "e"])(aug, fac, true); workerScript.scriptRef.log(res); - if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_45__["isString"])(res) && res.startsWith("You purchased")) { + if (Object(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_46__["isString"])(res) && res.startsWith("You purchased")) { _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].IntelligenceSingFnBaseExpGain); return true; } else { @@ -21327,7 +21456,7 @@ function NetscriptFunctions(workerScript) { updateDynamicRam("installAugmentations", ramCost); if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run installAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Cannot run installAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return false; } } @@ -21349,7 +21478,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getMemberNames", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 4); } updateDynamicRam("getMemberNames", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 4); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getMemberNames"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getMemberNames"); try { const names = []; @@ -21358,7 +21487,7 @@ function NetscriptFunctions(workerScript) { } return names; } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getMemberNames", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getMemberNames", e)); } }, getGangInformation : function() { @@ -21366,7 +21495,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getGangInformation", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); } updateDynamicRam("getGangInformation", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getGangInformation"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getGangInformation"); try { return { @@ -21383,7 +21512,7 @@ function NetscriptFunctions(workerScript) { wantedLevelGainRate: _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.wantedGainRate, } } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getGangInformation", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getGangInformation", e)); } }, getOtherGangInformation : function() { @@ -21391,12 +21520,12 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getOtherGangInformation", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); } updateDynamicRam("getOtherGangInformation", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getOtherGangInformation"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getOtherGangInformation"); try { return Object.assign(_Gang__WEBPACK_IMPORTED_MODULE_15__[/* AllGangs */ "a"]); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getOtherGangInformation", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getOtherGangInformation", e)); } }, getMemberInformation : function(name) { @@ -21404,7 +21533,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getMemberInformation", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); } updateDynamicRam("getMemberInformation", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getMemberInformation"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getMemberInformation"); try { for (const member of _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.members) { @@ -21438,7 +21567,7 @@ function NetscriptFunctions(workerScript) { workerScript.log(`Invalid argument passed to gang.getMemberInformation(). No gang member could be found with name ${name}`); return {}; // Member could not be found } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getMemberInformation", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getMemberInformation", e)); } }, canRecruitMember : function() { @@ -21446,12 +21575,12 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("canRecruitMember", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 4); } updateDynamicRam("canRecruitMember", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 4); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "canRecruitMember"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "canRecruitMember"); try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.canRecruitMember(); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("canRecruitMember", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("canRecruitMember", e)); } }, recruitMember : function(name) { @@ -21459,7 +21588,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("recruitMember", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); } updateDynamicRam("recruitMember", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "recruitMember"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "recruitMember"); try { const res = _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.recruitMember(name); @@ -21473,7 +21602,7 @@ function NetscriptFunctions(workerScript) { return res; } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("recruitMember", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("recruitMember", e)); } }, getTaskNames : function() { @@ -21481,14 +21610,14 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getTaskNames", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 4); } updateDynamicRam("getTaskNames", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 4); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getTaskNames"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getTaskNames"); try { const tasks = _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.getAllTaskNames(); tasks.unshift("Unassigned"); return tasks; } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getTaskNames", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getTaskNames", e)); } }, setMemberTask : function(memberName, taskName) { @@ -21496,7 +21625,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("setMemberTask", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); } updateDynamicRam("setMemberTask", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "setMemberTask"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "setMemberTask"); try { for (const member of _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.members) { @@ -21517,7 +21646,7 @@ function NetscriptFunctions(workerScript) { workerScript.log(`Invalid argument passed to gang.setMemberTask(). No gang member could be found with name ${memberName}`); return false; } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("setMemberTask", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("setMemberTask", e)); } }, getEquipmentNames : function() { @@ -21525,12 +21654,12 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getEquipmentNames", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 4); } updateDynamicRam("getEquipmentNames", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 4); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getEquipmentNames"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getEquipmentNames"); try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.getAllUpgradeNames(); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getEquipmentNames", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getEquipmentNames", e)); } }, getEquipmentCost : function(equipName) { @@ -21538,12 +21667,12 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getEquipmentCost", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); } updateDynamicRam("getEquipmentCost", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getEquipmentCost"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getEquipmentCost"); try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.getUpgradeCost(equipName); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getEquipmentCost", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getEquipmentCost", e)); } }, getEquipmentType : function(equipName) { @@ -21551,12 +21680,12 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getEquipmentType", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); } updateDynamicRam("getEquipmentType", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getEquipmentType"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getEquipmentType"); try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.getUpgradeType(equipName); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getEquipmentType", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getEquipmentType", e)); } }, purchaseEquipment : function(memberName, equipName) { @@ -21564,7 +21693,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("purchaseEquipment", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost); } updateDynamicRam("purchaseEquipment", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "purchaseEquipment"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "purchaseEquipment"); try { for (const member of _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.members) { @@ -21585,7 +21714,7 @@ function NetscriptFunctions(workerScript) { workerScript.log(`Invalid argument passed to gang.purchaseEquipment(). No gang member could be found with name ${memberName}`); return false; } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("purchaseEquipment", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("purchaseEquipment", e)); } }, ascendMember : function(name) { @@ -21593,7 +21722,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("ascendMember", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost); } updateDynamicRam("ascendMember", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "ascendMember"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "ascendMember"); try { for (const member of _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.members) { @@ -21605,7 +21734,7 @@ function NetscriptFunctions(workerScript) { workerScript.log(`Invalid argument passed to gang.ascendMember(). No gang member could be found with name ${name}`); return false; } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("ascendMember", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("ascendMember", e)); } }, setTerritoryWarfare : function(engage) { @@ -21613,7 +21742,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("setTerritoryWarfare", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); } updateDynamicRam("setTerritoryWarfare", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost / 2); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "setTerritoryWarfare"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "setTerritoryWarfare"); try { if (engage) { @@ -21628,7 +21757,7 @@ function NetscriptFunctions(workerScript) { } } } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("setTerritoryWarfare", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("setTerritoryWarfare", e)); } }, getChanceToWinClash : function(otherGang) { @@ -21636,7 +21765,7 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getChanceToWinClash", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost); } updateDynamicRam("getChanceToWinClash", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptGangApiBaseRamCost); - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getChanceToWinClash"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getChanceToWinClash"); try { if (_Gang__WEBPACK_IMPORTED_MODULE_15__[/* AllGangs */ "a"][otherGang] == null) { @@ -21649,17 +21778,17 @@ function NetscriptFunctions(workerScript) { return playerPower / (otherPower + playerPower); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getChanceToWinClash", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getChanceToWinClash", e)); } }, getBonusTime : function() { if (workerScript.checkingRam) { return 0; } - _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* checkGangApiAccess */ "a"](workerScript, "getBonusTime"); + _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* checkGangApiAccess */ "a"](workerScript, "getBonusTime"); try { return Math.round(_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].gang.storedCycles / 5); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_34__[/* unknownGangApiExceptionMessage */ "b"]("getBonusTime", e)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, _NetscriptGang__WEBPACK_IMPORTED_MODULE_35__[/* unknownGangApiExceptionMessage */ "b"]("getBonusTime", e)); } }, }, // end gang namespace @@ -21674,7 +21803,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getContractNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getContractNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getContractNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getOperationNames : function() { @@ -21685,7 +21814,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getOperationNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getOperationNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getOperationNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getBlackOpNames : function() { @@ -21696,7 +21825,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getBlackOpNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getBlackOpNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getBlackOpNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getGeneralActionNames : function() { @@ -21707,7 +21836,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getGeneralActionNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getGeneralActionNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getGeneralActionNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getSkillNames : function() { @@ -21718,7 +21847,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getSkillNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, startAction : function(type="", name="") { @@ -21730,10 +21859,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.startActionNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.startAction() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.startAction() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "startAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "startAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, stopBladeburnerAction : function() { @@ -21744,7 +21873,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.resetAction(); } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "stopBladeburnerAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "stopBladeburnerAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getCurrentAction : function() { @@ -21755,7 +21884,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getTypeAndNameFromActionId(_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.action); } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCurrentAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCurrentAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getActionTime : function(type="", name="") { @@ -21767,10 +21896,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getActionTimeNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getActionTime() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getActionTime() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getActionTime() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getActionTime() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getActionEstimatedSuccessChance : function(type="", name="") { @@ -21782,10 +21911,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getActionEstimatedSuccessChanceNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getActionEstimatedSuccessChance() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getActionEstimatedSuccessChance() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getActionEstimatedSuccessChance() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getActionEstimatedSuccessChance() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getActionRepGain: function(type="", name="", level) { @@ -21793,10 +21922,10 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getActionRepGain", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } updateDynamicRam("getActionRepGain", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* checkBladeburnerAccess */ "a"])(workerScript, "getActionRepGain"); + Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* checkBladeburnerAccess */ "a"])(workerScript, "getActionRepGain"); try { - var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionAutolevel", type, name); + var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionAutolevel", type, name); const actionId = _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name); if (actionId == null) { workerScript.log(errorLogText); @@ -21816,7 +21945,7 @@ function NetscriptFunctions(workerScript) { return actionObj.rankGain * rewardMultiplier * _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_5__["BitNodeMultipliers"].BladeburnerRank; } catch(err) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerExceptionMessage */ "c"])("getActionAutolevel", err)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerExceptionMessage */ "c"])("getActionAutolevel", err)); } }, getActionCountRemaining : function(type="", name="") { @@ -21828,10 +21957,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getActionCountRemainingNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getActionCountRemaining() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getActionCountRemaining() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getActionCountRemaining() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getActionCountRemaining() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getActionMaxLevel: function(type="", name="") { @@ -21839,10 +21968,10 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getActionMaxLevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } updateDynamicRam("getActionMaxLevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* checkBladeburnerAccess */ "a"])(workerScript, "getActionMaxLevel"); + Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* checkBladeburnerAccess */ "a"])(workerScript, "getActionMaxLevel"); try { - var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionMaxLevel", type, name); + var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionMaxLevel", type, name); const actionId = _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name); if (actionId == null) { workerScript.log(errorLogText); @@ -21855,7 +21984,7 @@ function NetscriptFunctions(workerScript) { } return actionObj.maxLevel; } catch(err) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerExceptionMessage */ "c"])("getActionMaxLevel", err)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerExceptionMessage */ "c"])("getActionMaxLevel", err)); } }, getActionCurrentLevel: function(type="", name="") { @@ -21863,10 +21992,10 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getActionCurrentLevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } updateDynamicRam("getActionCurrentLevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* checkBladeburnerAccess */ "a"])(workerScript, "getActionCurrentLevel"); + Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* checkBladeburnerAccess */ "a"])(workerScript, "getActionCurrentLevel"); try { - var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionCurrentLevel", type, name); + var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionCurrentLevel", type, name); const actionId = _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name); if (actionId == null) { workerScript.log(errorLogText); @@ -21879,7 +22008,7 @@ function NetscriptFunctions(workerScript) { } return actionObj.level; } catch(err) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerExceptionMessage */ "c"])("getActionCurrentLevel", err)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerExceptionMessage */ "c"])("getActionCurrentLevel", err)); } }, getActionAutolevel: function(type="", name="") { @@ -21887,10 +22016,10 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("getActionAutolevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } updateDynamicRam("getActionAutolevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* checkBladeburnerAccess */ "a"])(workerScript, "getActionAutolevel"); + Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* checkBladeburnerAccess */ "a"])(workerScript, "getActionAutolevel"); try { - var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionAutolevel", type, name); + var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerActionErrorMessage */ "b"])("getActionAutolevel", type, name); const actionId = _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name); if (actionId == null) { workerScript.log(errorLogText); @@ -21903,7 +22032,7 @@ function NetscriptFunctions(workerScript) { } return actionObj.autoLevel; } catch(err) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerExceptionMessage */ "c"])("getActionAutolevel", err)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerExceptionMessage */ "c"])("getActionAutolevel", err)); } }, setActionAutolevel: function(type="", name="", autoLevel=true) { @@ -21911,10 +22040,10 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("setActionAutolevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } updateDynamicRam("setActionAutolevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* checkBladeburnerAccess */ "a"])(workerScript, "setActionAutolevel"); + Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* checkBladeburnerAccess */ "a"])(workerScript, "setActionAutolevel"); try { - var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerActionErrorMessage */ "b"])("setActionAutolevel", type, name); + var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerActionErrorMessage */ "b"])("setActionAutolevel", type, name); const actionId = _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name); if (actionId == null) { workerScript.log(errorLogText); @@ -21927,7 +22056,7 @@ function NetscriptFunctions(workerScript) { } actionObj.autoLevel = autoLevel; } catch(err) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerExceptionMessage */ "c"])("setActionAutolevel", err)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerExceptionMessage */ "c"])("setActionAutolevel", err)); } }, setActionLevel: function(type="", name="", level=1) { @@ -21935,10 +22064,10 @@ function NetscriptFunctions(workerScript) { return updateStaticRam("setActionLevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } updateDynamicRam("setActionLevel", _Constants__WEBPACK_IMPORTED_MODULE_12__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* checkBladeburnerAccess */ "a"])(workerScript, "setActionLevel"); + Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* checkBladeburnerAccess */ "a"])(workerScript, "setActionLevel"); try { - var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerActionErrorMessage */ "b"])("setActionLevel", type, name); + var errorLogText = Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerActionErrorMessage */ "b"])("setActionLevel", type, name); const actionId = _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getActionIdFromTypeAndName(type, name); if (actionId == null) { workerScript.log(errorLogText); @@ -21959,7 +22088,7 @@ function NetscriptFunctions(workerScript) { } actionObj.level = level; } catch(err) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_33__[/* unknownBladeburnerExceptionMessage */ "c"])("setActionLevel", err)); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, Object(_NetscriptBladeburner__WEBPACK_IMPORTED_MODULE_34__[/* unknownBladeburnerExceptionMessage */ "c"])("setActionLevel", err)); } }, getRank : function() { @@ -21970,7 +22099,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.rank; } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getRank() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getRank() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getSkillPoints : function() { @@ -21981,7 +22110,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.skillPoints; } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillPoints() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillPoints() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getSkillLevel : function(skillName="") { @@ -21993,10 +22122,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getSkillLevelNetscriptFn(skillName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getSkillLevel() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getSkillLevel() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillLevel() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillLevel() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getSkillUpgradeCost : function(skillName="") { @@ -22008,10 +22137,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getSkillUpgradeCostNetscriptFn(skillName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getSkillUpgradeCost() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getSkillUpgradeCost() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillUpgradeCost() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getSkillUpgradeCost() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, upgradeSkill : function(skillName) { @@ -22023,10 +22152,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.upgradeSkillNetscriptFn(skillName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.upgradeSkill() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.upgradeSkill() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "upgradeSkill() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "upgradeSkill() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getTeamSize : function(type="", name="") { @@ -22038,10 +22167,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getTeamSizeNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getTeamSize() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getTeamSize() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getTeamSize() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getTeamSize() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, setTeamSize : function(type="", name="", size) { @@ -22053,10 +22182,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.setTeamSizeNetscriptFn(type, name, size, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.setTeamSize() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.setTeamSize() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "setTeamSize() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "setTeamSize() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getCityEstimatedPopulation : function(cityName) { @@ -22068,10 +22197,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getCityEstimatedPopulationNetscriptFn(cityName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCityEstimatedPopulation() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCityEstimatedPopulation() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCityEstimatedPopulation() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCityEstimatedPopulation() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getCityEstimatedCommunities : function(cityName) { @@ -22083,10 +22212,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getCityEstimatedCommunitiesNetscriptFn(cityName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCityEstimatedCommunities() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCityEstimatedCommunities() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCityEstimatedCommunities() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCityEstimatedCommunities() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getCityChaos : function(cityName) { @@ -22098,10 +22227,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.getCityChaosNetscriptFn(cityName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCityChaos() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCityChaos() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCityChaos() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCityChaos() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getCity : function() { @@ -22113,10 +22242,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.city; } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCity() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.getCity() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCity() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getCity() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, switchCity : function(cityName) { @@ -22128,10 +22257,10 @@ function NetscriptFunctions(workerScript) { try { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.switchCityNetscriptFn(cityName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.switchCity() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "Bladeburner.switchCity() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "switchCity() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "switchCity() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getStamina : function() { @@ -22142,7 +22271,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return [_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.stamina, _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.maxStamina]; } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getStamina() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getStamina() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, joinBladeburnerFaction : function() { @@ -22153,7 +22282,7 @@ function NetscriptFunctions(workerScript) { if (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_7__[/* Bladeburner */ "a"] && (_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return _Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.joinBladeburnerFactionNetscriptFn(workerScript); } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "joinBladeburnerFaction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "joinBladeburnerFaction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, joinBladeburnerDivision : function() { @@ -22174,7 +22303,7 @@ function NetscriptFunctions(workerScript) { return false; } } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "joinBladeburnerDivision() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "joinBladeburnerDivision() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getBonusTime : function() { @@ -22182,7 +22311,7 @@ function NetscriptFunctions(workerScript) { if ((_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bitNodeN === 7 || hasBladeburner2079SF)) { return Math.round(_Player__WEBPACK_IMPORTED_MODULE_23__[/* Player */ "a"].bladeburner.storedCycles / 5); } - throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_36__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getBonusTime() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_37__[/* makeRuntimeRejectMsg */ "d"])(workerScript, "getBonusTime() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); } }, // End Bladeburner @@ -22275,10 +22404,10 @@ function NetscriptFunctions(workerScript) { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 47 */ +/* 48 */ /*!********************************!*\ !*** ./src/CodingContracts.ts ***! \********************************/ @@ -22301,7 +22430,7 @@ const JSONReviver_1 = __webpack_require__(/*! ../utils/JSONReviver */ 15); const createElement_1 = __webpack_require__(/*! ../utils/uiHelpers/createElement */ 2); const createPopup_1 = __webpack_require__(/*! ../utils/uiHelpers/createPopup */ 40); const removeElementById_1 = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 23); -const codingcontracttypes_1 = __webpack_require__(/*! ./data/codingcontracttypes */ 249); +const codingcontracttypes_1 = __webpack_require__(/*! ./data/codingcontracttypes */ 250); /* 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 { @@ -22452,7 +22581,7 @@ JSONReviver_1.Reviver.constructors.CodingContract = CodingContract; /***/ }), -/* 48 */ +/* 49 */ /*!**********************!*\ !*** ./src/Alias.js ***! \**********************/ @@ -22587,7 +22716,8 @@ function substituteAliases(origCommand) { /***/ }), -/* 49 */ +/* 50 */, +/* 51 */ /*!***************************************!*\ !*** ./src/Faction/FactionHelpers.js ***! \***************************************/ @@ -22604,7 +22734,7 @@ function substituteAliases(origCommand) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return purchaseAugmentation; }); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Augmentation/Augmentations */ 14); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _Augmentation_PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Augmentation/PlayerOwnedAugmentation */ 88); +/* harmony import */ var _Augmentation_PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Augmentation/PlayerOwnedAugmentation */ 89); /* harmony import */ var _Augmentation_PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_1__); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Augmentation/data/AugmentationNames */ 6); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_2__); @@ -22613,16 +22743,16 @@ function substituteAliases(origCommand) { /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Constants */ 1); /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../engine */ 11); -/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Faction */ 61); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Faction */ 62); /* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Faction__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var _Factions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Factions */ 16); /* harmony import */ var _Factions__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Factions__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FactionInfo */ 132); +/* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./FactionInfo */ 133); /* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_FactionInfo__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Location */ 105); -/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Missions */ 63); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Location */ 106); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Missions */ 64); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../Player */ 0); -/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Settings/SettingEnums */ 56); +/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Settings/SettingEnums */ 45); /* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_13__); @@ -22632,7 +22762,7 @@ function substituteAliases(origCommand) { /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../utils/DialogBox */ 9); /* harmony import */ var _utils_FactionInvitationBox__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../utils/FactionInvitationBox */ 160); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 26); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 27); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__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__); @@ -23122,7 +23252,7 @@ function createFactionAugmentationDisplayElements(augmentationsList, augs, facti } var item = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19__["createElement"])("li"); - var span = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19__["createElement"])("span", {display:"inline-block"}); + var span = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19__["createElement"])("span", { display:"inline-block", margin: "4px", padding: "4px" }); var aDiv = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19__["createElement"])("div", {tooltip:aug.info}); var aElem = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_19__["createElement"])("a", { innerText:aug.name, display:"inline", @@ -23318,7 +23448,7 @@ function processPassiveFactionRepGain(numCycles) { /***/ }), -/* 50 */ +/* 52 */ /*!**********************!*\ !*** ./src/Fconf.js ***! \**********************/ @@ -23331,7 +23461,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 */ 52); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/acorn */ 54); /* 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); @@ -23594,7 +23724,7 @@ function setMainMenuStyle() { /***/ }), -/* 51 */ +/* 53 */ /*!************************!*\ !*** ./src/Hacking.js ***! \************************/ @@ -23708,7 +23838,7 @@ function calculateWeakenTime(server, hack, int) { /***/ }), -/* 52 */ +/* 54 */ /*!************************!*\ !*** ./utils/acorn.js ***! \************************/ @@ -27348,7 +27478,7 @@ Object.defineProperty(exports, '__esModule', { value: true }); }))); /***/ }), -/* 53 */ +/* 55 */ /*!************************************************!*\ !*** ./utils/uiHelpers/createOptionElement.ts ***! \************************************************/ @@ -27374,8 +27504,136 @@ exports.createOptionElement = createOptionElement; /***/ }), -/* 54 */, -/* 55 */ +/* 56 */ +/*!********************************!*\ + !*** ./src/ServerPurchases.js ***! + \********************************/ +/*! exports provided: getPurchaseServerCost, getPurchaseServerLimit, getPurchaseServerMaxRam, purchaseServer, purchaseRamForHomeComputer */ +/*! exports used: getPurchaseServerCost, getPurchaseServerLimit, getPurchaseServerMaxRam, purchaseRamForHomeComputer, purchaseServer */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return getPurchaseServerCost; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getPurchaseServerLimit; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getPurchaseServerMaxRam; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return purchaseServer; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return purchaseRamForHomeComputer; }); +/* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode/BitNodeMultipliers */ 10); +/* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__); +/* 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 _Server__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Server */ 12); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox */ 9); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/IPAddress */ 70); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/YesNoBox */ 22); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/helpers/isPowerOfTwo */ 134); +/* harmony import */ var _utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_7__); +/** + * Implements functions for purchasing servers or purchasing more RAM for + * the home computer + */ + + + + + + + + + +// Returns the cost of purchasing a server with the given RAM +// Returns Infinity for invalid 'ram' arguments +function getPurchaseServerCost(ram) { + const sanitizedRam = Math.round(ram); + if (isNaN(sanitizedRam) || !Object(_utils_helpers_isPowerOfTwo__WEBPACK_IMPORTED_MODULE_7__["isPowerOfTwo"])(sanitizedRam)) { + return Infinity; + } + + if (sanitizedRam > getPurchaseServerMaxRam()) { + return Infinity; + } + + return sanitizedRam * _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].BaseCostFor1GBOfRamServer * _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].PurchasedServerCost; +} + +function getPurchaseServerLimit() { + return Math.round(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].PurchasedServerLimit * _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].PurchasedServerLimit); +} + +function getPurchaseServerMaxRam() { + // TODO ensure this is a power of 2? + return Math.round(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].PurchasedServerMaxRam * _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].PurchasedServerMaxRam); +} + +// Manually purchase a server (NOT through Netscript) +function purchaseServer(ram) { + const cost = getPurchaseServerCost(ram); + + //Check if player has enough money + if (_Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].money.lt(cost)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You don't have enough money to purchase this server!"); + return; + } + + //Maximum server limit + if (_Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].purchasedServers.length >= getPurchaseServerLimit()) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You have reached the maximum limit of " + getPurchaseServerLimit() + " servers. " + + "You cannot purchase any more. You can " + + "delete some of your purchased servers using the deleteServer() Netscript function in a script"); + return; + } + + var hostname = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_6__["yesNoTxtInpBoxGetInput"])(); + if (hostname == "") { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You must enter a hostname for your new server!"); + return; + } + + //Create server + var newServ = new _Server__WEBPACK_IMPORTED_MODULE_3__[/* Server */ "d"]({ + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_5__[/* createRandomIp */ "a"])(), hostname:hostname, organizationName:"", + isConnectedTo:false, adminRights:true, purchasedByPlayer:true, maxRam:ram + }); + Object(_Server__WEBPACK_IMPORTED_MODULE_3__[/* AddToAllServers */ "a"])(newServ); + + //Add to Player's purchasedServers array + _Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].purchasedServers.push(newServ.ip); + + //Connect new server to home computer + var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].getHomeComputer(); + homeComputer.serversOnNetwork.push(newServ.ip); + newServ.serversOnNetwork.push(homeComputer.ip); + + _Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].loseMoney(cost); + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Server successfully purchased with hostname " + hostname); +} + +// Manually upgrade RAM on home computer (NOT through Netscript) +function purchaseRamForHomeComputer(cost) { + if (_Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].money.lt(cost)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You do not have enough money to purchase additional RAM for your home computer"); + return; + } + + const homeComputer = _Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].getHomeComputer(); + if (homeComputer.maxRam >= _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HomeComputerMaxRam) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])(`You cannot upgrade your home computer RAM because it is at its maximum possible value`); + return; + } + + + homeComputer.maxRam *= 2; + _Player__WEBPACK_IMPORTED_MODULE_2__[/* Player */ "a"].loseMoney(cost); + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Purchased additional RAM for home computer! It now has " + homeComputer.maxRam + "GB of RAM."); +} + + +/***/ }), +/* 57 */ /*!*********************!*\ !*** ./src/Gang.js ***! \*********************/ @@ -27393,16 +27651,16 @@ exports.createOptionElement = createOptionElement; /* harmony import */ var _data_gangmemberupgrades__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data/gangmemberupgrades */ 158); /* 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 */ 11); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction/Faction */ 61); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction/Faction */ 62); /* 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 */ 16); /* 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 */ 49); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 51); /* 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 */ 15); -/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 28); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 29); /* 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 */ 86); /* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_10__); @@ -27418,9 +27676,9 @@ exports.createOptionElement = createOptionElement; /* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/helpers/getRandomInt */ 17); /* 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 */ 26); +/* 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___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 */ 65); +/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 66); /* 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 */ 23); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_19__); @@ -29349,108 +29607,10 @@ Gang.prototype.clearUI = function() { UIElems.gangMemberPanels = {}; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 56 */ -/*!**************************************!*\ - !*** ./src/Settings/SettingEnums.ts ***! - \**************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// Enums that defined allowed values for setting configuration -Object.defineProperty(exports, "__esModule", { value: true }); -var CodeMirrorThemeSetting; -(function (CodeMirrorThemeSetting) { - CodeMirrorThemeSetting["Monokai"] = "monokai"; - CodeMirrorThemeSetting["Day_3024"] = "3024-day"; - CodeMirrorThemeSetting["Night_3024"] = "3024-night"; - CodeMirrorThemeSetting["abcdef"] = "abcdef"; - CodeMirrorThemeSetting["Ambiance_mobile"] = "ambiance-mobile"; - CodeMirrorThemeSetting["Ambiance"] = "ambiance"; - CodeMirrorThemeSetting["Base16_dark"] = "base16-dark"; - CodeMirrorThemeSetting["Base16_light"] = "base16-light"; - CodeMirrorThemeSetting["Bespin"] = "bespin"; - CodeMirrorThemeSetting["Blackboard"] = "blackboard"; - CodeMirrorThemeSetting["Cobalt"] = "cobalt"; - CodeMirrorThemeSetting["Colorforth"] = "colorforth"; - CodeMirrorThemeSetting["Darcula"] = "darcula"; - CodeMirrorThemeSetting["Dracula"] = "dracula"; - CodeMirrorThemeSetting["Duotone_dark"] = "duotone-dark"; - CodeMirrorThemeSetting["Duotone_light"] = "duotone-light"; - CodeMirrorThemeSetting["Eclipse"] = "eclipse"; - CodeMirrorThemeSetting["Elegant"] = "elegant"; - CodeMirrorThemeSetting["Erlang_dark"] = "erlang-dark"; - CodeMirrorThemeSetting["Gruvbox_dark"] = "gruvbox-dark"; - CodeMirrorThemeSetting["Hopscotch"] = "hopscotch"; - CodeMirrorThemeSetting["Icecoder"] = "icecoder"; - CodeMirrorThemeSetting["Idea"] = "idea"; - CodeMirrorThemeSetting["Isotope"] = "isotope"; - CodeMirrorThemeSetting["Lesser_dark"] = "lesser-dark"; - CodeMirrorThemeSetting["Liquibyte"] = "liquibyte"; - CodeMirrorThemeSetting["Lucario"] = "lucario"; - CodeMirrorThemeSetting["Material"] = "material"; - CodeMirrorThemeSetting["Mbo"] = "mbo"; - CodeMirrorThemeSetting["Mdn_like"] = "mdn-like"; - CodeMirrorThemeSetting["Midnight"] = "midnight"; - CodeMirrorThemeSetting["Neat"] = "neat"; - CodeMirrorThemeSetting["Neo"] = "neo"; - CodeMirrorThemeSetting["Night"] = "night"; - CodeMirrorThemeSetting["Oceanic_next"] = "oceanic-next"; - CodeMirrorThemeSetting["Panda_syntax"] = "panda-syntax"; - CodeMirrorThemeSetting["Paraiso_dark"] = "paraiso-dark"; - CodeMirrorThemeSetting["Paraiso_light"] = "paraiso-light"; - CodeMirrorThemeSetting["Pastel_on_dark"] = "pastel-on-dark"; - CodeMirrorThemeSetting["Railscasts"] = "railscasts"; - CodeMirrorThemeSetting["Rubyblue"] = "rubyblue"; - CodeMirrorThemeSetting["Seti"] = "seti"; - CodeMirrorThemeSetting["Shadowfox"] = "shadowfox"; - CodeMirrorThemeSetting["Solarized"] = "solarized"; - CodeMirrorThemeSetting["ssms"] = "ssms"; - CodeMirrorThemeSetting["The_matrix"] = "the-matrix"; - CodeMirrorThemeSetting["Tomorrow_night_bright"] = "tomorrow-night-bright"; - CodeMirrorThemeSetting["Tomorrow_night_eighties"] = "tomorrow-night-eighties"; - CodeMirrorThemeSetting["Ttcn"] = "ttcn"; - CodeMirrorThemeSetting["Twilight"] = "twilight"; - CodeMirrorThemeSetting["Vibrant_ink"] = "vibrant-ink"; - CodeMirrorThemeSetting["xq_dark"] = "xq-dark"; - CodeMirrorThemeSetting["xq_light"] = "xq-light"; - CodeMirrorThemeSetting["Yeti"] = "yeti"; - CodeMirrorThemeSetting["Zenburn"] = "zenburn"; -})(CodeMirrorThemeSetting = exports.CodeMirrorThemeSetting || (exports.CodeMirrorThemeSetting = {})); -/** - * Allowed values for the "Editor" setting - */ -var EditorSetting; -(function (EditorSetting) { - EditorSetting["Ace"] = "Ace"; - EditorSetting["CodeMirror"] = "CodeMirror"; -})(EditorSetting = exports.EditorSetting || (exports.EditorSetting = {})); -/** - * Allowed values for the 'OwnedAugmentationsOrder' setting - */ -var PurchaseAugmentationsOrderSetting; -(function (PurchaseAugmentationsOrderSetting) { - PurchaseAugmentationsOrderSetting[PurchaseAugmentationsOrderSetting["Cost"] = 0] = "Cost"; - PurchaseAugmentationsOrderSetting[PurchaseAugmentationsOrderSetting["Default"] = 1] = "Default"; - PurchaseAugmentationsOrderSetting[PurchaseAugmentationsOrderSetting["Reputation"] = 2] = "Reputation"; -})(PurchaseAugmentationsOrderSetting = exports.PurchaseAugmentationsOrderSetting || (exports.PurchaseAugmentationsOrderSetting = {})); -/** - * Allowed values for the 'OwnedAugmentationsOrder' setting - */ -var OwnedAugmentationsOrderSetting; -(function (OwnedAugmentationsOrderSetting) { - OwnedAugmentationsOrderSetting[OwnedAugmentationsOrderSetting["Alphabetically"] = 0] = "Alphabetically"; - OwnedAugmentationsOrderSetting[OwnedAugmentationsOrderSetting["AcquirementTime"] = 1] = "AcquirementTime"; -})(OwnedAugmentationsOrderSetting = exports.OwnedAugmentationsOrderSetting || (exports.OwnedAugmentationsOrderSetting = {})); - - -/***/ }), -/* 57 */ +/* 58 */ /*!*************************!*\ !*** ./src/Terminal.js ***! \*************************/ @@ -29461,33 +29621,33 @@ var OwnedAugmentationsOrderSetting; "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 */ 48); -/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContracts */ 47); +/* harmony import */ var _Alias__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias */ 49); +/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContracts */ 48); /* 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 _Programs_Programs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Programs/Programs */ 27); +/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Programs/Programs */ 28); /* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _DarkWeb_DarkWeb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DarkWeb/DarkWeb */ 138); -/* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DarkWeb/DarkWebItems */ 79); +/* harmony import */ var _DarkWeb_DarkWeb__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DarkWeb/DarkWeb */ 140); +/* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./DarkWeb/DarkWebItems */ 80); /* harmony import */ var _DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_DarkWeb_DarkWebItems__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./engine */ 11); -/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Fconf */ 50); -/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Hacking */ 51); -/* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./HelpText */ 119); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Fconf */ 52); +/* harmony import */ var _Hacking__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Hacking */ 53); +/* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./HelpText */ 120); /* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_HelpText__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./InteractiveTutorial */ 38); -/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Literature */ 95); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Message */ 45); +/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Literature */ 96); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Message */ 46); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./NetscriptWorker */ 30); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./RedPill */ 66); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./RedPill */ 67); /* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Script */ 33); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Server */ 12); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_18__); /* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./SpecialServerIps */ 37); -/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./TextFile */ 72); +/* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./TextFile */ 73); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_20__); /* 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__); @@ -29495,17 +29655,17 @@ var OwnedAugmentationsOrderSetting; /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_22__); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_23__); -/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 28); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utils/helpers/keyCodes */ 29); /* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_24__); -/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 73); +/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 74); /* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_25__); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/helpers/isString */ 44); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_26__); -/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 62); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 63); /* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_27__); -/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 100); +/* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../utils/helpers/getTimestamp */ 101); /* harmony import */ var _utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getTimestamp__WEBPACK_IMPORTED_MODULE_28__); -/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../utils/LogBox */ 90); +/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../utils/LogBox */ 91); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../utils/YesNoBox */ 22); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_30__); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./ui/postToTerminal */ 8); @@ -31673,10 +31833,10 @@ let Terminal = { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 58 */ +/* 59 */ /*!*********************************************!*\ !*** ./utils/uiHelpers/appendLineBreaks.ts ***! \*********************************************/ @@ -31702,7 +31862,7 @@ exports.appendLineBreaks = appendLineBreaks; /***/ }), -/* 59 */ +/* 60 */ /*!*************************************!*\ !*** ./src/NetscriptBladeburner.js ***! \*************************************/ @@ -31746,7 +31906,7 @@ function checkBladeburnerAccess(workerScript, functionName) { /***/ }), -/* 60 */ +/* 61 */ /*!*******************************************!*\ !*** ./utils/uiHelpers/getElementById.ts ***! \*******************************************/ @@ -31774,7 +31934,7 @@ exports.getElementById = getElementById; /***/ }), -/* 61 */ +/* 62 */ /*!********************************!*\ !*** ./src/Faction/Faction.ts ***! \********************************/ @@ -31786,7 +31946,7 @@ exports.getElementById = getElementById; Object.defineProperty(exports, "__esModule", { value: true }); const Constants_1 = __webpack_require__(/*! ../Constants */ 1); -const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 132); +const FactionInfo_1 = __webpack_require__(/*! ./FactionInfo */ 133); const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 15); class Faction { constructor(name = "") { @@ -31898,7 +32058,7 @@ JSONReviver_1.Reviver.constructors.Faction = Faction; /***/ }), -/* 62 */ +/* 63 */ /*!****************************************!*\ !*** ./utils/helpers/arrayToString.ts ***! \****************************************/ @@ -31919,7 +32079,7 @@ exports.arrayToString = arrayToString; /***/ }), -/* 63 */ +/* 64 */ /*!*************************!*\ !*** ./src/Missions.js ***! \*************************/ @@ -31935,12 +32095,12 @@ 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 */ 11); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 49); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 51); /* 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 */ 21); /* 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 */ 73); +/* harmony import */ var _utils_helpers_addOffset__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/addOffset */ 74); /* 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__); @@ -31948,7 +32108,7 @@ exports.arrayToString = arrayToString; /* 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 */ 44); /* 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 */ 299); +/* harmony import */ var jsplumb__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! jsplumb */ 300); /* harmony import */ var jsplumb__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(jsplumb__WEBPACK_IMPORTED_MODULE_10__); @@ -33488,10 +33648,10 @@ HackingMission.prototype.finishMission = function(win) { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 64 */ +/* 65 */ /*!*************************************************!*\ !*** ./src/Augmentation/AugmentationHelpers.js ***! \*************************************************/ @@ -33509,7 +33669,7 @@ HackingMission.prototype.finishMission = function(win) { /* harmony import */ var _Augmentation__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Augmentation__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentations */ 14); /* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Augmentations__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PlayerOwnedAugmentation */ 88); +/* harmony import */ var _PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./PlayerOwnedAugmentation */ 89); /* harmony import */ var _PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_PlayerOwnedAugmentation__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _data_AugmentationNames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./data/AugmentationNames */ 6); /* harmony import */ var _data_AugmentationNames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_3__); @@ -33519,18 +33679,18 @@ HackingMission.prototype.finishMission = function(win) { /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Faction/Factions */ 16); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../NetscriptFunctions */ 46); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../NetscriptFunctions */ 47); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../NetscriptWorker */ 30); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../Player */ 0); -/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Prestige */ 99); -/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../SaveObject */ 81); +/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../Prestige */ 100); +/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../SaveObject */ 82); /* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Script */ 33); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Server */ 12); -/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../Settings/SettingEnums */ 56); +/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../Settings/SettingEnums */ 45); /* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../SourceFile */ 82); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../SourceFile */ 83); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../utils/uiHelpers/createAccordionElement */ 86); /* harmony import */ var _utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createAccordionElement__WEBPACK_IMPORTED_MODULE_18__); @@ -33543,7 +33703,7 @@ HackingMission.prototype.finishMission = function(win) { /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_22__); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../utils/helpers/isString */ 44); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_23__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 26); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 27); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_24__); @@ -35852,7 +36012,7 @@ function displaySourceFiles(listElement, sourceFiles) { /***/ }), -/* 65 */ +/* 66 */ /*!******************************************!*\ !*** ./utils/uiHelpers/removeElement.ts ***! \******************************************/ @@ -35889,7 +36049,7 @@ exports.removeElement = removeElement; /***/ }), -/* 66 */ +/* 67 */ /*!************************!*\ !*** ./src/RedPill.js ***! \************************/ @@ -35900,18 +36060,18 @@ exports.removeElement = removeElement; "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_BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode/BitNode */ 68); +/* harmony import */ var _BitNode_BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode/BitNode */ 69); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 11); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Prestige */ 99); -/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SourceFile */ 82); +/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Prestige */ 100); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SourceFile */ 83); /* harmony import */ var _SourceFile_PlayerOwnedSourceFile__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SourceFile/PlayerOwnedSourceFile */ 157); /* harmony import */ var _SourceFile_PlayerOwnedSourceFile__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_SourceFile_PlayerOwnedSourceFile__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Terminal */ 57); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Terminal */ 58); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 21); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/DialogBox */ 9); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 26); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 27); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/YesNoBox */ 22); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_10__); @@ -36249,10 +36409,10 @@ function createBitNodeYesNoEventListeners(newBitNode, destroyedBitNode, flume=fa -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 67 */ +/* 68 */ /*!****************************************!*\ !*** ./src/Corporation/Corporation.js ***! \****************************************/ @@ -36282,25 +36442,25 @@ function createBitNodeYesNoEventListeners(newBitNode, destroyedBitNode, flume=fa /* unused harmony export CyclesPerEmployeeRaise */ /* unused harmony export EmployeeRaiseAmount */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Corporation; }); -/* harmony import */ var _CorporationState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CorporationState */ 140); +/* harmony import */ var _CorporationState__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CorporationState */ 141); /* harmony import */ var _CorporationState__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_CorporationState__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _data_CorporationUnlockUpgrades__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data/CorporationUnlockUpgrades */ 123); +/* harmony import */ var _data_CorporationUnlockUpgrades__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./data/CorporationUnlockUpgrades */ 124); /* harmony import */ var _data_CorporationUnlockUpgrades__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_data_CorporationUnlockUpgrades__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _data_CorporationUpgrades__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data/CorporationUpgrades */ 122); +/* harmony import */ var _data_CorporationUpgrades__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./data/CorporationUpgrades */ 123); /* harmony import */ var _data_CorporationUpgrades__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_data_CorporationUpgrades__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _EmployeePositions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./EmployeePositions */ 31); /* harmony import */ var _EmployeePositions__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_EmployeePositions__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _IndustryData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./IndustryData */ 25); /* harmony import */ var _IndustryData__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_IndustryData__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _IndustryUpgrades__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./IndustryUpgrades */ 121); +/* harmony import */ var _IndustryUpgrades__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./IndustryUpgrades */ 122); /* harmony import */ var _IndustryUpgrades__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_IndustryUpgrades__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _Material__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Material */ 70); +/* harmony import */ var _Material__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Material */ 71); /* harmony import */ var _Material__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_Material__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _MaterialSizes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MaterialSizes */ 84); +/* harmony import */ var _MaterialSizes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./MaterialSizes */ 85); /* harmony import */ var _MaterialSizes__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_MaterialSizes__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _Product__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Product */ 120); +/* harmony import */ var _Product__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Product */ 121); /* harmony import */ var _Product__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Product__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _ResearchMap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ResearchMap */ 113); +/* harmony import */ var _ResearchMap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./ResearchMap */ 114); /* harmony import */ var _ResearchMap__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_ResearchMap__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../BitNode/BitNodeMultipliers */ 10); /* harmony import */ var _BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_10__); @@ -36308,7 +36468,7 @@ function createBitNodeYesNoEventListeners(newBitNode, destroyedBitNode, flume=fa /* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Constants__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../Faction/Factions */ 16); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Literature */ 95); +/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../Literature */ 96); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../Locations */ 5); /* harmony import */ var _Locations__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_Locations__WEBPACK_IMPORTED_MODULE_14__); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../Player */ 0); @@ -36320,13 +36480,13 @@ function createBitNodeYesNoEventListeners(newBitNode, destroyedBitNode, flume=fa /* harmony import */ var _utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../utils/uiHelpers/clearSelector */ 164); /* harmony import */ var _utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearSelector__WEBPACK_IMPORTED_MODULE_19__); /* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../utils/JSONReviver */ 15); -/* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../utils/uiHelpers/appendLineBreaks */ 58); +/* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../utils/uiHelpers/appendLineBreaks */ 59); /* harmony import */ var _utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_appendLineBreaks__WEBPACK_IMPORTED_MODULE_21__); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../utils/uiHelpers/createElement */ 2); /* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_22__); /* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../utils/uiHelpers/createPopup */ 40); /* harmony import */ var _utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_23__); -/* harmony import */ var _utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../utils/uiHelpers/createPopupCloseButton */ 77); +/* harmony import */ var _utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../utils/uiHelpers/createPopupCloseButton */ 78); /* harmony import */ var _utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_24__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_25__); @@ -36334,11 +36494,11 @@ function createBitNodeYesNoEventListeners(newBitNode, destroyedBitNode, flume=fa /* harmony import */ var _utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_26__); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../utils/helpers/isString */ 44); /* harmony import */ var _utils_helpers_isString__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_isString__WEBPACK_IMPORTED_MODULE_27__); -/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../utils/helpers/keyCodes */ 28); +/* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../../utils/helpers/keyCodes */ 29); /* harmony import */ var _utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_28__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 26); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 27); /* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_29__); -/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../utils/uiHelpers/removeElement */ 65); +/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../utils/uiHelpers/removeElement */ 66); /* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_30__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../../utils/uiHelpers/removeElementById */ 23); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_31__); @@ -41411,10 +41571,10 @@ _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_20__["Reviver"].constructors.Corpora -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 68 */ +/* 69 */ /*!********************************!*\ !*** ./src/BitNode/BitNode.js ***! \********************************/ @@ -41599,6 +41759,7 @@ function initBitNodes() { "In this BitNode:

" + "Your stats are significantly decreased.
" + "All methods of gaining money are half as profitable (except Stock Market)
" + + "Purchased servers are more expensive, have less max RAM, and a lower maximum limit
" + "Augmentations are 5x as expensive and require twice as much reputation

" + "Destroying this BitNode will give you Source-File 10, or if you already have this Source-File it will " + "upgrade its level up to a maximum of 3. This Source-File unlocks Sleeve technology in other BitNodes. " + @@ -41768,6 +41929,9 @@ function initBitNodeMultipliers() { _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].CorporationValuation = 0.5; _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationMoneyCost = 5; _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationRepCost = 2; + _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].PurchasedServerCost = 5; + _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].PurchasedServerLimit = 0.6; + _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].PurchasedServerMaxRam = 0.5; case 11: //The Big Crash _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerMaxMoney = 0.1; _BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerStartingMoney = 0.1; @@ -41837,7 +42001,7 @@ function initBitNodeMultipliers() { /***/ }), -/* 69 */ +/* 70 */ /*!****************************!*\ !*** ./utils/IPAddress.js ***! \****************************/ @@ -41849,7 +42013,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 */ 12); -/* harmony import */ var _helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/getRandomByte */ 110); +/* harmony import */ var _helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers/getRandomByte */ 111); /* harmony import */ var _helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_helpers_getRandomByte__WEBPACK_IMPORTED_MODULE_1__); @@ -41887,7 +42051,7 @@ function ipExists(ip) { /***/ }), -/* 70 */ +/* 71 */ /*!*************************************!*\ !*** ./src/Corporation/Material.ts ***! \*************************************/ @@ -42112,8 +42276,8 @@ JSONReviver_1.Reviver.constructors.Material = Material; /***/ }), -/* 71 */, -/* 72 */ +/* 72 */, +/* 73 */ /*!*************************!*\ !*** ./src/TextFile.ts ***! \*************************/ @@ -42248,7 +42412,7 @@ function deleteTextFile(fn, server) { /***/ }), -/* 73 */ +/* 74 */ /*!************************************!*\ !*** ./utils/helpers/addOffset.ts ***! \************************************/ @@ -42284,7 +42448,7 @@ exports.addOffset = addOffset; /***/ }), -/* 74 */ +/* 75 */ /*!****************************!*\ !*** ./src/HacknetNode.js ***! \****************************/ @@ -42321,7 +42485,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 */ 60); +/* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/uiHelpers/getElementById */ 61); /* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_11__); @@ -43000,7 +43164,7 @@ function getHacknetNode(name) { /***/ }), -/* 75 */ +/* 76 */ /*!********************************!*\ !*** ./src/Company/Company.ts ***! \********************************/ @@ -43012,7 +43176,7 @@ function getHacknetNode(name) { Object.defineProperty(exports, "__esModule", { value: true }); const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 15); -const CompanyPosition_1 = __webpack_require__(/*! ./CompanyPosition */ 104); +const CompanyPosition_1 = __webpack_require__(/*! ./CompanyPosition */ 105); const Constants_1 = __webpack_require__(/*! ../Constants */ 1); const DefaultConstructorParams = { name: "", @@ -43098,7 +43262,7 @@ JSONReviver_1.Reviver.constructors.Company = Company; /***/ }), -/* 76 */ +/* 77 */ /*!********************************!*\ !*** ./src/ActiveScriptsUI.js ***! \********************************/ @@ -43118,24 +43282,24 @@ JSONReviver_1.Reviver.constructors.Company = Company; /* 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 */ 86); /* 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 */ 62); +/* harmony import */ var _utils_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/helpers/arrayToString */ 63); /* 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 */ 89); +/* harmony import */ var _utils_helpers_createProgressBarText__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/helpers/createProgressBarText */ 90); /* 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_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/getElementById */ 60); +/* harmony import */ var _utils_uiHelpers_getElementById__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/uiHelpers/getElementById */ 61); /* 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 */ 90); +/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/LogBox */ 91); /* 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 */ 26); +/* 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___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 */ 65); +/* harmony import */ var _utils_uiHelpers_removeElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/uiHelpers/removeElement */ 66); /* 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 */ 94); +/* harmony import */ var _utils_helpers_roundToTwo__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/helpers/roundToTwo */ 95); /* 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 */ 13); /* harmony import */ var _ui_navigationTracking__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_ui_navigationTracking__WEBPACK_IMPORTED_MODULE_16__); @@ -43465,7 +43629,7 @@ function updateActiveScriptsText(workerscript, item, itemName) { /***/ }), -/* 77 */ +/* 78 */ /*!***************************************************!*\ !*** ./utils/uiHelpers/createPopupCloseButton.ts ***! \***************************************************/ @@ -43478,7 +43642,7 @@ function updateActiveScriptsText(workerscript, item, itemName) { /* Creates a Close/Cancel button that is used for removing popups */ Object.defineProperty(exports, "__esModule", { value: true }); const createElement_1 = __webpack_require__(/*! ./createElement */ 2); -const removeElement_1 = __webpack_require__(/*! ./removeElement */ 65); +const removeElement_1 = __webpack_require__(/*! ./removeElement */ 66); function createPopupCloseButton(popup, options) { let button; // TODO event listener works with escape. Add and remove event listener @@ -43518,8 +43682,8 @@ exports.createPopupCloseButton = createPopupCloseButton; /***/ }), -/* 78 */, -/* 79 */ +/* 79 */, +/* 80 */ /*!*************************************!*\ !*** ./src/DarkWeb/DarkWebItems.ts ***! \*************************************/ @@ -43531,7 +43695,7 @@ exports.createPopupCloseButton = createPopupCloseButton; Object.defineProperty(exports, "__esModule", { value: true }); const DarkWebItem_1 = __webpack_require__(/*! ./DarkWebItem */ 235); -const Programs_1 = __webpack_require__(/*! ../Programs/Programs */ 27); +const Programs_1 = __webpack_require__(/*! ../Programs/Programs */ 28); exports.DarkWebItems = { BruteSSHProgram: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.BruteSSHProgram.name, 500e3, "Opens up SSH Ports"), FTPCrackProgram: new DarkWebItem_1.DarkWebItem(Programs_1.Programs.FTPCrackProgram.name, 1500e3, "Opens up FTP Ports"), @@ -43546,7 +43710,7 @@ exports.DarkWebItems = { /***/ }), -/* 80 */ +/* 81 */ /*!******************************!*\ !*** ./src/NetscriptPort.js ***! \******************************/ @@ -43612,7 +43776,7 @@ NetscriptPort.prototype.clear = function() { /***/ }), -/* 81 */ +/* 82 */ /*!***************************!*\ !*** ./src/SaveObject.js ***! \***************************/ @@ -43623,21 +43787,21 @@ NetscriptPort.prototype.clear = function() { "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 */ 48); +/* harmony import */ var _Alias__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias */ 49); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Company/Companies */ 20); /* 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 */ 104); +/* harmony import */ var _Company_CompanyPosition__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Company/CompanyPosition */ 105); /* 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 */ 11); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Faction/Factions */ 16); /* 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 */ 49); -/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Fconf */ 50); -/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Gang */ 55); -/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./HacknetNode */ 74); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Message */ 45); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 51); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Fconf */ 52); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Gang */ 57); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./HacknetNode */ 75); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Message */ 46); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Script */ 33); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Server */ 12); @@ -43646,7 +43810,7 @@ NetscriptPort.prototype.clear = function() { /* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./SpecialServerIps */ 37); /* harmony import */ var _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./StockMarket/StockMarket */ 24); /* 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 */ 96); +/* harmony import */ var _utils_GameOptions__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/GameOptions */ 97); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 21); /* 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 */ 15); @@ -43654,7 +43818,7 @@ NetscriptPort.prototype.clear = function() { /* 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 */ 40); /* 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 */ 83); +/* harmony import */ var _ui_createStatusText__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./ui/createStatusText */ 84); /* 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__); @@ -44283,10 +44447,10 @@ function openImportFileHandler(evt) { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 82 */ +/* 83 */ /*!***************************!*\ !*** ./src/SourceFile.js ***! \***************************/ @@ -44299,7 +44463,7 @@ function openImportFileHandler(evt) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return applySourceFile; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return initSourceFiles; }); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _BitNode_BitNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode/BitNode */ 68); +/* harmony import */ var _BitNode_BitNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode/BitNode */ 69); @@ -44551,7 +44715,7 @@ function applySourceFile(srcFile) { /***/ }), -/* 83 */ +/* 84 */ /*!************************************!*\ !*** ./src/ui/createStatusText.ts ***! \************************************/ @@ -44562,7 +44726,7 @@ function applySourceFile(srcFile) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ../../utils/uiHelpers/getElementById */ 60); +const getElementById_1 = __webpack_require__(/*! ../../utils/uiHelpers/getElementById */ 61); const threeSeconds = 3000; let x; /** @@ -44588,7 +44752,7 @@ exports.createStatusText = createStatusText; /***/ }), -/* 84 */ +/* 85 */ /*!******************************************!*\ !*** ./src/Corporation/MaterialSizes.ts ***! \******************************************/ @@ -44615,34 +44779,6 @@ exports.MaterialSizes = { }; -/***/ }), -/* 85 */ -/*!*******************************************!*\ - !*** ./src/SourceFile/SourceFileFlags.ts ***! - \*******************************************/ -/*! no static exports found */ -/*! exports used: SourceFileFlags, updateSourceFileFlags */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -// Contains an array containing information about the player's source files -// Array[n] returns what level the player has of Source-File N. -Object.defineProperty(exports, "__esModule", { value: true }); -const Constants_1 = __webpack_require__(/*! ../Constants */ 1); -exports.SourceFileFlags = Array(Constants_1.CONSTANTS.TotalNumBitNodes + 1); // Skip 0 -function updateSourceFileFlags(p) { - for (let i = 0; i < exports.SourceFileFlags.length; ++i) { - exports.SourceFileFlags[i] = 0; - } - for (let i = 0; i < p.sourceFiles.length; ++i) { - const sf = p.sourceFiles[i]; - exports.SourceFileFlags[sf.n] = sf.lvl; - } -} -exports.updateSourceFileFlags = updateSourceFileFlags; - - /***/ }), /* 86 */ /*!***************************************************!*\ @@ -44719,6 +44855,34 @@ exports.clearObject = clearObject; /***/ }), /* 88 */ +/*!*******************************************!*\ + !*** ./src/SourceFile/SourceFileFlags.ts ***! + \*******************************************/ +/*! no static exports found */ +/*! exports used: SourceFileFlags, updateSourceFileFlags */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +// Contains an array containing information about the player's source files +// Array[n] returns what level the player has of Source-File N. +Object.defineProperty(exports, "__esModule", { value: true }); +const Constants_1 = __webpack_require__(/*! ../Constants */ 1); +exports.SourceFileFlags = Array(Constants_1.CONSTANTS.TotalNumBitNodes + 1); // Skip 0 +function updateSourceFileFlags(p) { + for (let i = 0; i < exports.SourceFileFlags.length; ++i) { + exports.SourceFileFlags[i] = 0; + } + for (let i = 0; i < p.sourceFiles.length; ++i) { + const sf = p.sourceFiles[i]; + exports.SourceFileFlags[sf.n] = sf.lvl; + } +} +exports.updateSourceFileFlags = updateSourceFileFlags; + + +/***/ }), +/* 89 */ /*!*****************************************************!*\ !*** ./src/Augmentation/PlayerOwnedAugmentation.ts ***! \*****************************************************/ @@ -44740,7 +44904,7 @@ exports.PlayerOwnedAugmentation = PlayerOwnedAugmentation; /***/ }), -/* 89 */ +/* 90 */ /*!************************************************!*\ !*** ./utils/helpers/createProgressBarText.ts ***! \************************************************/ @@ -44776,7 +44940,7 @@ exports.createProgressBarText = createProgressBarText; /***/ }), -/* 90 */ +/* 91 */ /*!*************************!*\ !*** ./utils/LogBox.js ***! \*************************/ @@ -44792,7 +44956,7 @@ exports.createProgressBarText = createProgressBarText; /* harmony import */ var _src_NetscriptWorker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/NetscriptWorker */ 30); /* harmony import */ var _uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./uiHelpers/clearEventListeners */ 21); /* 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 */ 62); +/* harmony import */ var _helpers_arrayToString__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers/arrayToString */ 63); /* harmony import */ var _helpers_arrayToString__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_helpers_arrayToString__WEBPACK_IMPORTED_MODULE_2__); @@ -44863,10 +45027,10 @@ function logBoxUpdateText() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 91 */ +/* 92 */ /*!****************************************!*\ !*** ./src/ScriptEditor/CodeMirror.js ***! \****************************************/ @@ -44876,180 +45040,186 @@ function logBoxUpdateText() { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CodeMirrorEditor; }); -/* harmony import */ var _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ScriptEditor */ 116); -/* harmony import */ var codemirror_lib_codemirror_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! codemirror/lib/codemirror.css */ 376); +/* harmony import */ var _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ScriptEditor */ 117); +/* harmony import */ var codemirror_lib_codemirror_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! codemirror/lib/codemirror.css */ 379); /* harmony import */ var codemirror_lib_codemirror_css__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(codemirror_lib_codemirror_css__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var codemirror_theme_monokai_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! codemirror/theme/monokai.css */ 375); +/* harmony import */ var codemirror_theme_monokai_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! codemirror/theme/monokai.css */ 378); /* harmony import */ var codemirror_theme_monokai_css__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_monokai_css__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var codemirror_theme_3024_day_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! codemirror/theme/3024-day.css */ 374); +/* harmony import */ var codemirror_theme_3024_day_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! codemirror/theme/3024-day.css */ 377); /* harmony import */ var codemirror_theme_3024_day_css__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_3024_day_css__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var codemirror_theme_3024_night_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! codemirror/theme/3024-night.css */ 373); +/* harmony import */ var codemirror_theme_3024_night_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! codemirror/theme/3024-night.css */ 376); /* harmony import */ var codemirror_theme_3024_night_css__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_3024_night_css__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var codemirror_theme_abcdef_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! codemirror/theme/abcdef.css */ 372); +/* harmony import */ var codemirror_theme_abcdef_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! codemirror/theme/abcdef.css */ 375); /* harmony import */ var codemirror_theme_abcdef_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_abcdef_css__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var codemirror_theme_ambiance_mobile_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! codemirror/theme/ambiance-mobile.css */ 371); +/* harmony import */ var codemirror_theme_ambiance_mobile_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! codemirror/theme/ambiance-mobile.css */ 374); /* harmony import */ var codemirror_theme_ambiance_mobile_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_ambiance_mobile_css__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var codemirror_theme_ambiance_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! codemirror/theme/ambiance.css */ 370); +/* harmony import */ var codemirror_theme_ambiance_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! codemirror/theme/ambiance.css */ 373); /* harmony import */ var codemirror_theme_ambiance_css__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_ambiance_css__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var codemirror_theme_base16_dark_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! codemirror/theme/base16-dark.css */ 369); +/* harmony import */ var codemirror_theme_base16_dark_css__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! codemirror/theme/base16-dark.css */ 372); /* harmony import */ var codemirror_theme_base16_dark_css__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_base16_dark_css__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var codemirror_theme_base16_light_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! codemirror/theme/base16-light.css */ 368); +/* harmony import */ var codemirror_theme_base16_light_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! codemirror/theme/base16-light.css */ 371); /* harmony import */ var codemirror_theme_base16_light_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_base16_light_css__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var codemirror_theme_bespin_css__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! codemirror/theme/bespin.css */ 367); +/* harmony import */ var codemirror_theme_bespin_css__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! codemirror/theme/bespin.css */ 370); /* harmony import */ var codemirror_theme_bespin_css__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_bespin_css__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var codemirror_theme_blackboard_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! codemirror/theme/blackboard.css */ 366); +/* harmony import */ var codemirror_theme_blackboard_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! codemirror/theme/blackboard.css */ 369); /* harmony import */ var codemirror_theme_blackboard_css__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_blackboard_css__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var codemirror_theme_cobalt_css__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! codemirror/theme/cobalt.css */ 365); +/* harmony import */ var codemirror_theme_cobalt_css__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! codemirror/theme/cobalt.css */ 368); /* harmony import */ var codemirror_theme_cobalt_css__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_cobalt_css__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var codemirror_theme_colorforth_css__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! codemirror/theme/colorforth.css */ 364); +/* harmony import */ var codemirror_theme_colorforth_css__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! codemirror/theme/colorforth.css */ 367); /* harmony import */ var codemirror_theme_colorforth_css__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_colorforth_css__WEBPACK_IMPORTED_MODULE_13__); -/* harmony import */ var codemirror_theme_darcula_css__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! codemirror/theme/darcula.css */ 363); +/* harmony import */ var codemirror_theme_darcula_css__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! codemirror/theme/darcula.css */ 366); /* harmony import */ var codemirror_theme_darcula_css__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_darcula_css__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var codemirror_theme_dracula_css__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! codemirror/theme/dracula.css */ 362); +/* harmony import */ var codemirror_theme_dracula_css__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! codemirror/theme/dracula.css */ 365); /* harmony import */ var codemirror_theme_dracula_css__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_dracula_css__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var codemirror_theme_duotone_dark_css__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! codemirror/theme/duotone-dark.css */ 361); +/* harmony import */ var codemirror_theme_duotone_dark_css__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! codemirror/theme/duotone-dark.css */ 364); /* harmony import */ var codemirror_theme_duotone_dark_css__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_duotone_dark_css__WEBPACK_IMPORTED_MODULE_16__); -/* harmony import */ var codemirror_theme_duotone_light_css__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! codemirror/theme/duotone-light.css */ 360); +/* harmony import */ var codemirror_theme_duotone_light_css__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! codemirror/theme/duotone-light.css */ 363); /* harmony import */ var codemirror_theme_duotone_light_css__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_duotone_light_css__WEBPACK_IMPORTED_MODULE_17__); -/* harmony import */ var codemirror_theme_eclipse_css__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! codemirror/theme/eclipse.css */ 359); +/* harmony import */ var codemirror_theme_eclipse_css__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! codemirror/theme/eclipse.css */ 362); /* harmony import */ var codemirror_theme_eclipse_css__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_eclipse_css__WEBPACK_IMPORTED_MODULE_18__); -/* harmony import */ var codemirror_theme_elegant_css__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! codemirror/theme/elegant.css */ 358); +/* harmony import */ var codemirror_theme_elegant_css__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! codemirror/theme/elegant.css */ 361); /* harmony import */ var codemirror_theme_elegant_css__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_elegant_css__WEBPACK_IMPORTED_MODULE_19__); -/* harmony import */ var codemirror_theme_erlang_dark_css__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! codemirror/theme/erlang-dark.css */ 357); +/* harmony import */ var codemirror_theme_erlang_dark_css__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! codemirror/theme/erlang-dark.css */ 360); /* harmony import */ var codemirror_theme_erlang_dark_css__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_erlang_dark_css__WEBPACK_IMPORTED_MODULE_20__); -/* harmony import */ var codemirror_theme_gruvbox_dark_css__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! codemirror/theme/gruvbox-dark.css */ 356); +/* harmony import */ var codemirror_theme_gruvbox_dark_css__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! codemirror/theme/gruvbox-dark.css */ 359); /* harmony import */ var codemirror_theme_gruvbox_dark_css__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_gruvbox_dark_css__WEBPACK_IMPORTED_MODULE_21__); -/* harmony import */ var codemirror_theme_hopscotch_css__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! codemirror/theme/hopscotch.css */ 355); +/* harmony import */ var codemirror_theme_hopscotch_css__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! codemirror/theme/hopscotch.css */ 358); /* harmony import */ var codemirror_theme_hopscotch_css__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_hopscotch_css__WEBPACK_IMPORTED_MODULE_22__); -/* harmony import */ var codemirror_theme_icecoder_css__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! codemirror/theme/icecoder.css */ 354); +/* harmony import */ var codemirror_theme_icecoder_css__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! codemirror/theme/icecoder.css */ 357); /* harmony import */ var codemirror_theme_icecoder_css__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_icecoder_css__WEBPACK_IMPORTED_MODULE_23__); -/* harmony import */ var codemirror_theme_idea_css__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! codemirror/theme/idea.css */ 353); +/* harmony import */ var codemirror_theme_idea_css__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! codemirror/theme/idea.css */ 356); /* harmony import */ var codemirror_theme_idea_css__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_idea_css__WEBPACK_IMPORTED_MODULE_24__); -/* harmony import */ var codemirror_theme_isotope_css__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! codemirror/theme/isotope.css */ 352); +/* harmony import */ var codemirror_theme_isotope_css__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! codemirror/theme/isotope.css */ 355); /* harmony import */ var codemirror_theme_isotope_css__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_isotope_css__WEBPACK_IMPORTED_MODULE_25__); -/* harmony import */ var codemirror_theme_lesser_dark_css__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! codemirror/theme/lesser-dark.css */ 351); +/* harmony import */ var codemirror_theme_lesser_dark_css__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! codemirror/theme/lesser-dark.css */ 354); /* harmony import */ var codemirror_theme_lesser_dark_css__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_lesser_dark_css__WEBPACK_IMPORTED_MODULE_26__); -/* harmony import */ var codemirror_theme_liquibyte_css__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! codemirror/theme/liquibyte.css */ 350); +/* harmony import */ var codemirror_theme_liquibyte_css__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! codemirror/theme/liquibyte.css */ 353); /* harmony import */ var codemirror_theme_liquibyte_css__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_liquibyte_css__WEBPACK_IMPORTED_MODULE_27__); -/* harmony import */ var codemirror_theme_lucario_css__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! codemirror/theme/lucario.css */ 349); +/* harmony import */ var codemirror_theme_lucario_css__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! codemirror/theme/lucario.css */ 352); /* harmony import */ var codemirror_theme_lucario_css__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_lucario_css__WEBPACK_IMPORTED_MODULE_28__); -/* harmony import */ var codemirror_theme_material_css__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! codemirror/theme/material.css */ 348); +/* harmony import */ var codemirror_theme_material_css__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! codemirror/theme/material.css */ 351); /* harmony import */ var codemirror_theme_material_css__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_material_css__WEBPACK_IMPORTED_MODULE_29__); -/* harmony import */ var codemirror_theme_mbo_css__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! codemirror/theme/mbo.css */ 347); +/* harmony import */ var codemirror_theme_mbo_css__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! codemirror/theme/mbo.css */ 350); /* harmony import */ var codemirror_theme_mbo_css__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_mbo_css__WEBPACK_IMPORTED_MODULE_30__); -/* harmony import */ var codemirror_theme_mdn_like_css__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! codemirror/theme/mdn-like.css */ 346); +/* harmony import */ var codemirror_theme_mdn_like_css__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! codemirror/theme/mdn-like.css */ 349); /* harmony import */ var codemirror_theme_mdn_like_css__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_mdn_like_css__WEBPACK_IMPORTED_MODULE_31__); -/* harmony import */ var codemirror_theme_midnight_css__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! codemirror/theme/midnight.css */ 345); +/* harmony import */ var codemirror_theme_midnight_css__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! codemirror/theme/midnight.css */ 348); /* harmony import */ var codemirror_theme_midnight_css__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_midnight_css__WEBPACK_IMPORTED_MODULE_32__); -/* harmony import */ var codemirror_theme_neat_css__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! codemirror/theme/neat.css */ 344); +/* harmony import */ var codemirror_theme_neat_css__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! codemirror/theme/neat.css */ 347); /* harmony import */ var codemirror_theme_neat_css__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_neat_css__WEBPACK_IMPORTED_MODULE_33__); -/* harmony import */ var codemirror_theme_neo_css__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! codemirror/theme/neo.css */ 343); +/* harmony import */ var codemirror_theme_neo_css__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! codemirror/theme/neo.css */ 346); /* harmony import */ var codemirror_theme_neo_css__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_neo_css__WEBPACK_IMPORTED_MODULE_34__); -/* harmony import */ var codemirror_theme_night_css__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! codemirror/theme/night.css */ 342); +/* harmony import */ var codemirror_theme_night_css__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! codemirror/theme/night.css */ 345); /* harmony import */ var codemirror_theme_night_css__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_night_css__WEBPACK_IMPORTED_MODULE_35__); -/* harmony import */ var codemirror_theme_oceanic_next_css__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! codemirror/theme/oceanic-next.css */ 341); +/* harmony import */ var codemirror_theme_oceanic_next_css__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! codemirror/theme/oceanic-next.css */ 344); /* harmony import */ var codemirror_theme_oceanic_next_css__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_oceanic_next_css__WEBPACK_IMPORTED_MODULE_36__); -/* harmony import */ var codemirror_theme_panda_syntax_css__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! codemirror/theme/panda-syntax.css */ 340); +/* harmony import */ var codemirror_theme_panda_syntax_css__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! codemirror/theme/panda-syntax.css */ 343); /* harmony import */ var codemirror_theme_panda_syntax_css__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_panda_syntax_css__WEBPACK_IMPORTED_MODULE_37__); -/* harmony import */ var codemirror_theme_paraiso_dark_css__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! codemirror/theme/paraiso-dark.css */ 339); +/* harmony import */ var codemirror_theme_paraiso_dark_css__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! codemirror/theme/paraiso-dark.css */ 342); /* harmony import */ var codemirror_theme_paraiso_dark_css__WEBPACK_IMPORTED_MODULE_38___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_paraiso_dark_css__WEBPACK_IMPORTED_MODULE_38__); -/* harmony import */ var codemirror_theme_paraiso_light_css__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! codemirror/theme/paraiso-light.css */ 338); +/* harmony import */ var codemirror_theme_paraiso_light_css__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! codemirror/theme/paraiso-light.css */ 341); /* harmony import */ var codemirror_theme_paraiso_light_css__WEBPACK_IMPORTED_MODULE_39___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_paraiso_light_css__WEBPACK_IMPORTED_MODULE_39__); -/* harmony import */ var codemirror_theme_pastel_on_dark_css__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! codemirror/theme/pastel-on-dark.css */ 337); +/* harmony import */ var codemirror_theme_pastel_on_dark_css__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! codemirror/theme/pastel-on-dark.css */ 340); /* harmony import */ var codemirror_theme_pastel_on_dark_css__WEBPACK_IMPORTED_MODULE_40___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_pastel_on_dark_css__WEBPACK_IMPORTED_MODULE_40__); -/* harmony import */ var codemirror_theme_railscasts_css__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! codemirror/theme/railscasts.css */ 336); +/* harmony import */ var codemirror_theme_railscasts_css__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! codemirror/theme/railscasts.css */ 339); /* harmony import */ var codemirror_theme_railscasts_css__WEBPACK_IMPORTED_MODULE_41___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_railscasts_css__WEBPACK_IMPORTED_MODULE_41__); -/* harmony import */ var codemirror_theme_rubyblue_css__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! codemirror/theme/rubyblue.css */ 335); +/* harmony import */ var codemirror_theme_rubyblue_css__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! codemirror/theme/rubyblue.css */ 338); /* harmony import */ var codemirror_theme_rubyblue_css__WEBPACK_IMPORTED_MODULE_42___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_rubyblue_css__WEBPACK_IMPORTED_MODULE_42__); -/* harmony import */ var codemirror_theme_seti_css__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! codemirror/theme/seti.css */ 334); +/* harmony import */ var codemirror_theme_seti_css__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! codemirror/theme/seti.css */ 337); /* harmony import */ var codemirror_theme_seti_css__WEBPACK_IMPORTED_MODULE_43___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_seti_css__WEBPACK_IMPORTED_MODULE_43__); -/* harmony import */ var codemirror_theme_shadowfox_css__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! codemirror/theme/shadowfox.css */ 333); +/* harmony import */ var codemirror_theme_shadowfox_css__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! codemirror/theme/shadowfox.css */ 336); /* harmony import */ var codemirror_theme_shadowfox_css__WEBPACK_IMPORTED_MODULE_44___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_shadowfox_css__WEBPACK_IMPORTED_MODULE_44__); -/* harmony import */ var codemirror_theme_solarized_css__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! codemirror/theme/solarized.css */ 332); +/* harmony import */ var codemirror_theme_solarized_css__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! codemirror/theme/solarized.css */ 335); /* harmony import */ var codemirror_theme_solarized_css__WEBPACK_IMPORTED_MODULE_45___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_solarized_css__WEBPACK_IMPORTED_MODULE_45__); -/* harmony import */ var codemirror_theme_ssms_css__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! codemirror/theme/ssms.css */ 331); +/* harmony import */ var codemirror_theme_ssms_css__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! codemirror/theme/ssms.css */ 334); /* harmony import */ var codemirror_theme_ssms_css__WEBPACK_IMPORTED_MODULE_46___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_ssms_css__WEBPACK_IMPORTED_MODULE_46__); -/* harmony import */ var codemirror_theme_the_matrix_css__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! codemirror/theme/the-matrix.css */ 330); +/* harmony import */ var codemirror_theme_the_matrix_css__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! codemirror/theme/the-matrix.css */ 333); /* harmony import */ var codemirror_theme_the_matrix_css__WEBPACK_IMPORTED_MODULE_47___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_the_matrix_css__WEBPACK_IMPORTED_MODULE_47__); -/* harmony import */ var codemirror_theme_tomorrow_night_bright_css__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! codemirror/theme/tomorrow-night-bright.css */ 329); +/* harmony import */ var codemirror_theme_tomorrow_night_bright_css__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! codemirror/theme/tomorrow-night-bright.css */ 332); /* harmony import */ var codemirror_theme_tomorrow_night_bright_css__WEBPACK_IMPORTED_MODULE_48___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_tomorrow_night_bright_css__WEBPACK_IMPORTED_MODULE_48__); -/* harmony import */ var codemirror_theme_tomorrow_night_eighties_css__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! codemirror/theme/tomorrow-night-eighties.css */ 328); +/* harmony import */ var codemirror_theme_tomorrow_night_eighties_css__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! codemirror/theme/tomorrow-night-eighties.css */ 331); /* harmony import */ var codemirror_theme_tomorrow_night_eighties_css__WEBPACK_IMPORTED_MODULE_49___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_tomorrow_night_eighties_css__WEBPACK_IMPORTED_MODULE_49__); -/* harmony import */ var codemirror_theme_ttcn_css__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! codemirror/theme/ttcn.css */ 327); +/* harmony import */ var codemirror_theme_ttcn_css__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! codemirror/theme/ttcn.css */ 330); /* harmony import */ var codemirror_theme_ttcn_css__WEBPACK_IMPORTED_MODULE_50___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_ttcn_css__WEBPACK_IMPORTED_MODULE_50__); -/* harmony import */ var codemirror_theme_twilight_css__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! codemirror/theme/twilight.css */ 326); +/* harmony import */ var codemirror_theme_twilight_css__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! codemirror/theme/twilight.css */ 329); /* harmony import */ var codemirror_theme_twilight_css__WEBPACK_IMPORTED_MODULE_51___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_twilight_css__WEBPACK_IMPORTED_MODULE_51__); -/* harmony import */ var codemirror_theme_vibrant_ink_css__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! codemirror/theme/vibrant-ink.css */ 325); +/* harmony import */ var codemirror_theme_vibrant_ink_css__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! codemirror/theme/vibrant-ink.css */ 328); /* harmony import */ var codemirror_theme_vibrant_ink_css__WEBPACK_IMPORTED_MODULE_52___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_vibrant_ink_css__WEBPACK_IMPORTED_MODULE_52__); -/* harmony import */ var codemirror_theme_xq_dark_css__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! codemirror/theme/xq-dark.css */ 324); +/* harmony import */ var codemirror_theme_xq_dark_css__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! codemirror/theme/xq-dark.css */ 327); /* harmony import */ var codemirror_theme_xq_dark_css__WEBPACK_IMPORTED_MODULE_53___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_xq_dark_css__WEBPACK_IMPORTED_MODULE_53__); -/* harmony import */ var codemirror_theme_xq_light_css__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! codemirror/theme/xq-light.css */ 323); +/* harmony import */ var codemirror_theme_xq_light_css__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! codemirror/theme/xq-light.css */ 326); /* harmony import */ var codemirror_theme_xq_light_css__WEBPACK_IMPORTED_MODULE_54___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_xq_light_css__WEBPACK_IMPORTED_MODULE_54__); -/* harmony import */ var codemirror_theme_yeti_css__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! codemirror/theme/yeti.css */ 322); +/* harmony import */ var codemirror_theme_yeti_css__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! codemirror/theme/yeti.css */ 325); /* harmony import */ var codemirror_theme_yeti_css__WEBPACK_IMPORTED_MODULE_55___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_yeti_css__WEBPACK_IMPORTED_MODULE_55__); -/* harmony import */ var codemirror_theme_zenburn_css__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! codemirror/theme/zenburn.css */ 321); +/* harmony import */ var codemirror_theme_zenburn_css__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! codemirror/theme/zenburn.css */ 324); /* harmony import */ var codemirror_theme_zenburn_css__WEBPACK_IMPORTED_MODULE_56___default = /*#__PURE__*/__webpack_require__.n(codemirror_theme_zenburn_css__WEBPACK_IMPORTED_MODULE_56__); -/* harmony import */ var _css_codemirror_overrides_scss__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../../css/codemirror-overrides.scss */ 243); +/* harmony import */ var _css_codemirror_overrides_scss__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../../css/codemirror-overrides.scss */ 244); /* harmony import */ var _css_codemirror_overrides_scss__WEBPACK_IMPORTED_MODULE_57___default = /*#__PURE__*/__webpack_require__.n(_css_codemirror_overrides_scss__WEBPACK_IMPORTED_MODULE_57__); -/* harmony import */ var codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! codemirror/lib/codemirror.js */ 54); +/* harmony import */ var codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! codemirror/lib/codemirror.js */ 50); /* harmony import */ var codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58___default = /*#__PURE__*/__webpack_require__.n(codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58__); -/* harmony import */ var codemirror_mode_javascript_javascript_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! codemirror/mode/javascript/javascript.js */ 320); +/* harmony import */ var codemirror_mode_javascript_javascript_js__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! codemirror/mode/javascript/javascript.js */ 323); /* harmony import */ var codemirror_mode_javascript_javascript_js__WEBPACK_IMPORTED_MODULE_59___default = /*#__PURE__*/__webpack_require__.n(codemirror_mode_javascript_javascript_js__WEBPACK_IMPORTED_MODULE_59__); -/* harmony import */ var _CodeMirrorNetscriptMode__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./CodeMirrorNetscriptMode */ 241); +/* harmony import */ var _CodeMirrorNetscriptMode__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./CodeMirrorNetscriptMode */ 242); /* harmony import */ var _CodeMirrorNetscriptMode__WEBPACK_IMPORTED_MODULE_60___default = /*#__PURE__*/__webpack_require__.n(_CodeMirrorNetscriptMode__WEBPACK_IMPORTED_MODULE_60__); -/* harmony import */ var codemirror_keymap_sublime_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! codemirror/keymap/sublime.js */ 319); +/* harmony import */ var codemirror_keymap_sublime_js__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! codemirror/keymap/sublime.js */ 322); /* harmony import */ var codemirror_keymap_sublime_js__WEBPACK_IMPORTED_MODULE_61___default = /*#__PURE__*/__webpack_require__.n(codemirror_keymap_sublime_js__WEBPACK_IMPORTED_MODULE_61__); -/* harmony import */ var codemirror_keymap_vim_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! codemirror/keymap/vim.js */ 318); +/* harmony import */ var codemirror_keymap_vim_js__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! codemirror/keymap/vim.js */ 321); /* harmony import */ var codemirror_keymap_vim_js__WEBPACK_IMPORTED_MODULE_62___default = /*#__PURE__*/__webpack_require__.n(codemirror_keymap_vim_js__WEBPACK_IMPORTED_MODULE_62__); -/* harmony import */ var codemirror_keymap_emacs_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! codemirror/keymap/emacs.js */ 317); +/* harmony import */ var codemirror_keymap_emacs_js__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! codemirror/keymap/emacs.js */ 320); /* harmony import */ var codemirror_keymap_emacs_js__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(codemirror_keymap_emacs_js__WEBPACK_IMPORTED_MODULE_63__); -/* harmony import */ var codemirror_addon_comment_continuecomment_js__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! codemirror/addon/comment/continuecomment.js */ 316); +/* harmony import */ var codemirror_addon_comment_continuecomment_js__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! codemirror/addon/comment/continuecomment.js */ 319); /* harmony import */ var codemirror_addon_comment_continuecomment_js__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_comment_continuecomment_js__WEBPACK_IMPORTED_MODULE_64__); -/* harmony import */ var codemirror_addon_edit_closebrackets_js__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! codemirror/addon/edit/closebrackets.js */ 315); -/* harmony import */ var codemirror_addon_edit_closebrackets_js__WEBPACK_IMPORTED_MODULE_65___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_edit_closebrackets_js__WEBPACK_IMPORTED_MODULE_65__); -/* harmony import */ var codemirror_addon_edit_matchbrackets_js__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! codemirror/addon/edit/matchbrackets.js */ 174); -/* harmony import */ var codemirror_addon_edit_matchbrackets_js__WEBPACK_IMPORTED_MODULE_66___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_edit_matchbrackets_js__WEBPACK_IMPORTED_MODULE_66__); -/* harmony import */ var codemirror_addon_fold_foldcode_js__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! codemirror/addon/fold/foldcode.js */ 239); -/* harmony import */ var codemirror_addon_fold_foldcode_js__WEBPACK_IMPORTED_MODULE_67___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_foldcode_js__WEBPACK_IMPORTED_MODULE_67__); -/* harmony import */ var codemirror_addon_fold_foldgutter_js__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! codemirror/addon/fold/foldgutter.js */ 314); -/* harmony import */ var codemirror_addon_fold_foldgutter_js__WEBPACK_IMPORTED_MODULE_68___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_foldgutter_js__WEBPACK_IMPORTED_MODULE_68__); -/* harmony import */ var codemirror_addon_fold_foldgutter_css__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! codemirror/addon/fold/foldgutter.css */ 313); -/* harmony import */ var codemirror_addon_fold_foldgutter_css__WEBPACK_IMPORTED_MODULE_69___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_foldgutter_css__WEBPACK_IMPORTED_MODULE_69__); -/* harmony import */ var codemirror_addon_fold_brace_fold_js__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! codemirror/addon/fold/brace-fold.js */ 312); -/* harmony import */ var codemirror_addon_fold_brace_fold_js__WEBPACK_IMPORTED_MODULE_70___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_brace_fold_js__WEBPACK_IMPORTED_MODULE_70__); -/* harmony import */ var codemirror_addon_fold_indent_fold_js__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! codemirror/addon/fold/indent-fold.js */ 311); -/* harmony import */ var codemirror_addon_fold_indent_fold_js__WEBPACK_IMPORTED_MODULE_71___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_indent_fold_js__WEBPACK_IMPORTED_MODULE_71__); -/* harmony import */ var codemirror_addon_fold_comment_fold_js__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! codemirror/addon/fold/comment-fold.js */ 310); -/* harmony import */ var codemirror_addon_fold_comment_fold_js__WEBPACK_IMPORTED_MODULE_72___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_comment_fold_js__WEBPACK_IMPORTED_MODULE_72__); -/* harmony import */ var codemirror_addon_hint_show_hint_js__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! codemirror/addon/hint/show-hint.js */ 309); -/* harmony import */ var codemirror_addon_hint_show_hint_js__WEBPACK_IMPORTED_MODULE_73___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_hint_show_hint_js__WEBPACK_IMPORTED_MODULE_73__); -/* harmony import */ var codemirror_addon_hint_show_hint_css__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! codemirror/addon/hint/show-hint.css */ 308); -/* harmony import */ var codemirror_addon_hint_show_hint_css__WEBPACK_IMPORTED_MODULE_74___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_hint_show_hint_css__WEBPACK_IMPORTED_MODULE_74__); -/* harmony import */ var codemirror_addon_lint_lint_js__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! codemirror/addon/lint/lint.js */ 307); -/* harmony import */ var codemirror_addon_lint_lint_js__WEBPACK_IMPORTED_MODULE_75___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_lint_lint_js__WEBPACK_IMPORTED_MODULE_75__); -/* harmony import */ var codemirror_addon_lint_lint_css__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! codemirror/addon/lint/lint.css */ 306); -/* harmony import */ var codemirror_addon_lint_lint_css__WEBPACK_IMPORTED_MODULE_76___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_lint_lint_css__WEBPACK_IMPORTED_MODULE_76__); -/* harmony import */ var codemirror_addon_search_match_highlighter_js__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! codemirror/addon/search/match-highlighter.js */ 305); -/* harmony import */ var codemirror_addon_search_match_highlighter_js__WEBPACK_IMPORTED_MODULE_77___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_search_match_highlighter_js__WEBPACK_IMPORTED_MODULE_77__); -/* harmony import */ var codemirror_addon_selection_active_line_js__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! codemirror/addon/selection/active-line.js */ 304); -/* harmony import */ var codemirror_addon_selection_active_line_js__WEBPACK_IMPORTED_MODULE_78___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_selection_active_line_js__WEBPACK_IMPORTED_MODULE_78__); -/* harmony import */ var _CodeMirrorNetscriptHint_js__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./CodeMirrorNetscriptHint.js */ 238); -/* harmony import */ var _CodeMirrorNetscriptHint_js__WEBPACK_IMPORTED_MODULE_79___default = /*#__PURE__*/__webpack_require__.n(_CodeMirrorNetscriptHint_js__WEBPACK_IMPORTED_MODULE_79__); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../NetscriptFunctions */ 46); -/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../Settings/SettingEnums */ 56); -/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_81___default = /*#__PURE__*/__webpack_require__.n(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_81__); -/* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../Settings/Settings */ 19); -/* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_82___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_82__); -/* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../../utils/uiHelpers/clearEventListeners */ 21); -/* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_83___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_83__); -/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../../utils/uiHelpers/createElement */ 2); -/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_84___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_84__); -/* harmony import */ var _utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../../utils/uiHelpers/createOptionElement */ 53); -/* harmony import */ var _utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_85___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_85__); -/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ../../utils/uiHelpers/getSelectData */ 98); -/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_86___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_86__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 26); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_87___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_87__); +/* harmony import */ var codemirror_addon_dialog_dialog_css__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! codemirror/addon/dialog/dialog.css */ 318); +/* harmony import */ var codemirror_addon_dialog_dialog_css__WEBPACK_IMPORTED_MODULE_65___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_dialog_dialog_css__WEBPACK_IMPORTED_MODULE_65__); +/* harmony import */ var codemirror_addon_dialog_dialog_js__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! codemirror/addon/dialog/dialog.js */ 240); +/* harmony import */ var codemirror_addon_dialog_dialog_js__WEBPACK_IMPORTED_MODULE_66___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_dialog_dialog_js__WEBPACK_IMPORTED_MODULE_66__); +/* harmony import */ var codemirror_addon_edit_closebrackets_js__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! codemirror/addon/edit/closebrackets.js */ 317); +/* harmony import */ var codemirror_addon_edit_closebrackets_js__WEBPACK_IMPORTED_MODULE_67___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_edit_closebrackets_js__WEBPACK_IMPORTED_MODULE_67__); +/* harmony import */ var codemirror_addon_edit_matchbrackets_js__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! codemirror/addon/edit/matchbrackets.js */ 174); +/* harmony import */ var codemirror_addon_edit_matchbrackets_js__WEBPACK_IMPORTED_MODULE_68___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_edit_matchbrackets_js__WEBPACK_IMPORTED_MODULE_68__); +/* harmony import */ var codemirror_addon_fold_foldcode_js__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! codemirror/addon/fold/foldcode.js */ 239); +/* harmony import */ var codemirror_addon_fold_foldcode_js__WEBPACK_IMPORTED_MODULE_69___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_foldcode_js__WEBPACK_IMPORTED_MODULE_69__); +/* harmony import */ var codemirror_addon_fold_foldgutter_js__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! codemirror/addon/fold/foldgutter.js */ 316); +/* harmony import */ var codemirror_addon_fold_foldgutter_js__WEBPACK_IMPORTED_MODULE_70___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_foldgutter_js__WEBPACK_IMPORTED_MODULE_70__); +/* harmony import */ var codemirror_addon_fold_foldgutter_css__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! codemirror/addon/fold/foldgutter.css */ 315); +/* harmony import */ var codemirror_addon_fold_foldgutter_css__WEBPACK_IMPORTED_MODULE_71___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_foldgutter_css__WEBPACK_IMPORTED_MODULE_71__); +/* harmony import */ var codemirror_addon_fold_brace_fold_js__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! codemirror/addon/fold/brace-fold.js */ 314); +/* harmony import */ var codemirror_addon_fold_brace_fold_js__WEBPACK_IMPORTED_MODULE_72___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_brace_fold_js__WEBPACK_IMPORTED_MODULE_72__); +/* harmony import */ var codemirror_addon_fold_indent_fold_js__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! codemirror/addon/fold/indent-fold.js */ 313); +/* harmony import */ var codemirror_addon_fold_indent_fold_js__WEBPACK_IMPORTED_MODULE_73___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_indent_fold_js__WEBPACK_IMPORTED_MODULE_73__); +/* harmony import */ var codemirror_addon_fold_comment_fold_js__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! codemirror/addon/fold/comment-fold.js */ 312); +/* harmony import */ var codemirror_addon_fold_comment_fold_js__WEBPACK_IMPORTED_MODULE_74___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_fold_comment_fold_js__WEBPACK_IMPORTED_MODULE_74__); +/* harmony import */ var codemirror_addon_hint_javascript_hint_js__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! codemirror/addon/hint/javascript-hint.js */ 311); +/* harmony import */ var codemirror_addon_hint_javascript_hint_js__WEBPACK_IMPORTED_MODULE_75___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_hint_javascript_hint_js__WEBPACK_IMPORTED_MODULE_75__); +/* harmony import */ var codemirror_addon_hint_show_hint_js__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! codemirror/addon/hint/show-hint.js */ 310); +/* harmony import */ var codemirror_addon_hint_show_hint_js__WEBPACK_IMPORTED_MODULE_76___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_hint_show_hint_js__WEBPACK_IMPORTED_MODULE_76__); +/* harmony import */ var codemirror_addon_hint_show_hint_css__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! codemirror/addon/hint/show-hint.css */ 309); +/* harmony import */ var codemirror_addon_hint_show_hint_css__WEBPACK_IMPORTED_MODULE_77___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_hint_show_hint_css__WEBPACK_IMPORTED_MODULE_77__); +/* harmony import */ var codemirror_addon_lint_lint_js__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! codemirror/addon/lint/lint.js */ 308); +/* harmony import */ var codemirror_addon_lint_lint_js__WEBPACK_IMPORTED_MODULE_78___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_lint_lint_js__WEBPACK_IMPORTED_MODULE_78__); +/* harmony import */ var codemirror_addon_lint_lint_css__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! codemirror/addon/lint/lint.css */ 307); +/* harmony import */ var codemirror_addon_lint_lint_css__WEBPACK_IMPORTED_MODULE_79___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_lint_lint_css__WEBPACK_IMPORTED_MODULE_79__); +/* harmony import */ var codemirror_addon_search_match_highlighter_js__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! codemirror/addon/search/match-highlighter.js */ 306); +/* harmony import */ var codemirror_addon_search_match_highlighter_js__WEBPACK_IMPORTED_MODULE_80___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_search_match_highlighter_js__WEBPACK_IMPORTED_MODULE_80__); +/* harmony import */ var codemirror_addon_selection_active_line_js__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! codemirror/addon/selection/active-line.js */ 305); +/* harmony import */ var codemirror_addon_selection_active_line_js__WEBPACK_IMPORTED_MODULE_81___default = /*#__PURE__*/__webpack_require__.n(codemirror_addon_selection_active_line_js__WEBPACK_IMPORTED_MODULE_81__); +/* harmony import */ var _CodeMirrorNetscriptLint_js__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ./CodeMirrorNetscriptLint.js */ 238); +/* harmony import */ var _CodeMirrorNetscriptLint_js__WEBPACK_IMPORTED_MODULE_82___default = /*#__PURE__*/__webpack_require__.n(_CodeMirrorNetscriptLint_js__WEBPACK_IMPORTED_MODULE_82__); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../NetscriptFunctions */ 47); +/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../Settings/SettingEnums */ 45); +/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84___default = /*#__PURE__*/__webpack_require__.n(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__); +/* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../Settings/Settings */ 19); +/* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_85___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_85__); +/* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ../../utils/uiHelpers/clearEventListeners */ 21); +/* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_86___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_86__); +/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ../../utils/uiHelpers/createElement */ 2); +/* harmony import */ var _utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_87___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_87__); +/* harmony import */ var _utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ../../utils/uiHelpers/createOptionElement */ 55); +/* harmony import */ var _utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_88___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_88__); +/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ../../utils/uiHelpers/getSelectData */ 99); +/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_89___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_89__); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 27); +/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_90___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_90__); // Wrapper for CodeMirror editor // https://github.com/codemirror/codemirror @@ -45138,7 +45308,10 @@ function logBoxUpdateText() { -window.JSHINT = __webpack_require__(/*! jshint */ 303).JSHINT; + + + +window.JSHINT = __webpack_require__(/*! jshint */ 304).JSHINT; @@ -45165,6 +45338,8 @@ function validateInitializationParamters(params) { class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__[/* ScriptEditor */ "a"] { constructor() { super(); + this.vimCommandDisplay = null; + this.vimCommandDisplayWrapper = null; this.tabsStyleElement = null; } @@ -45211,13 +45386,17 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ this.tabsStyleElement = document.createElement('style'); document.head.appendChild(this.tabsStyleElement); + // Store a reference to the VIM command display + this.vimCommandDisplay = document.getElementById("codemirror-vim-command-display"); + this.vimCommandDisplayWrapper = document.getElementById("codemirror-vim-command-display-wrapper"); + // Define a "Save" command for CodeMirror so shortcuts like Ctrl + s // will save in-game codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58___default.a.commands.save = function() { params.saveAndCloseFn(); } // Add Netscript Functions to the autocompleter const netscriptFns = []; - var fnsObj = Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_80__[/* NetscriptFunctions */ "a"])(null); + var fnsObj = Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_83__[/* NetscriptFunctions */ "a"])(null); for (let name in fnsObj) { if (fnsObj.hasOwnProperty(name)) { netscriptFns.push(name); @@ -45257,6 +45436,21 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ return result; }; + + // Configure VIM keybindings + var VimApi = codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58___default.a.Vim; + VimApi.defineEx('write', 'w', function(cm, input) { + params.saveAndCloseFn(); + }); + VimApi.defineEx('quit', 'q', function(cm, input) { + params.quitFn(); + }); + VimApi.defineEx('xwritequit', 'x', function(cm, input) { + params.saveAndCloseFn(); + }); + VimApi.defineEx('wqwritequit', 'wq', function(cm, input) { + params.saveAndCloseFn(); + }); } initialized() { @@ -45274,7 +45468,7 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ } function safeClearEventListeners(id, whatFor="") { - const elem = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_83__["clearEventListeners"])(id); + const elem = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_86__["clearEventListeners"])(id); if (elem == null) { throw new Error(`Could not find ${whatFor} DOM element(id=${id})`); } @@ -45288,6 +45482,11 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ return; } + // Get and sanitize the keybinding (keymap) setting + if (!(Object.values(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__["CodeMirrorKeybindingSetting"]).includes(_Settings_Settings__WEBPACK_IMPORTED_MODULE_85__["Settings"].EditorKeybinding))) { + _Settings_Settings__WEBPACK_IMPORTED_MODULE_85__["Settings"].EditorKeybinding = _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__["CodeMirrorKeybindingSetting"].Default; + } + // Initialize CodeMirror Editor const textAreaElement = safeGetElementById("codemirror-editor", "CodeMirror Textarea"); const formElement = safeGetElementById("codemirror-form-wrapper", "CodeMirror Form Wrapper"); @@ -45306,22 +45505,22 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ matchBrackets: true, maxInvisibles: 32, mode: "netscript", - theme: _Settings_Settings__WEBPACK_IMPORTED_MODULE_82__["Settings"].EditorTheme, + theme: _Settings_Settings__WEBPACK_IMPORTED_MODULE_85__["Settings"].EditorTheme, }); // Setup Theme Option const themeDropdown = safeClearEventListeners("script-editor-option-theme", "Theme Selector"); - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_87__["removeChildrenFromElement"])(themeDropdown); - const themeOptions = Object.keys(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_81__["CodeMirrorThemeSetting"]); + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_90__["removeChildrenFromElement"])(themeDropdown); + const themeOptions = Object.keys(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__["CodeMirrorThemeSetting"]); for (let i = 0; i < themeOptions.length; ++i) { const themeKey = themeOptions[i]; - const themeValue = _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_81__["CodeMirrorThemeSetting"][themeKey]; - themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_85__["createOptionElement"])(themeKey, themeValue)); + const themeValue = _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__["CodeMirrorThemeSetting"][themeKey]; + themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_88__["createOptionElement"])(themeKey, themeValue)); } - if (_Settings_Settings__WEBPACK_IMPORTED_MODULE_82__["Settings"].EditorTheme) { + if (_Settings_Settings__WEBPACK_IMPORTED_MODULE_85__["Settings"].EditorTheme) { var initialIndex = 0; for (var i = 0; i < themeDropdown.options.length; ++i) { - if (themeDropdown.options[i].value === _Settings_Settings__WEBPACK_IMPORTED_MODULE_82__["Settings"].EditorTheme) { + if (themeDropdown.options[i].value === _Settings_Settings__WEBPACK_IMPORTED_MODULE_85__["Settings"].EditorTheme) { initialIndex = i; break; } @@ -45333,7 +45532,7 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ themeDropdown.onchange = () => { const val = themeDropdown.value; - _Settings_Settings__WEBPACK_IMPORTED_MODULE_82__["Settings"].EditorTheme = val; + _Settings_Settings__WEBPACK_IMPORTED_MODULE_85__["Settings"].EditorTheme = val; this.editor.setOption("theme", val); }; themeDropdown.onchange(); @@ -45344,15 +45543,15 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ console.error(`Could not find Script Editor's keybinding selector element (id="script-editor-option-keybinding")`); return false; } - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_87__["removeChildrenFromElement"])(keybindingDropdown); - keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_85__["createOptionElement"])("Default", "default")); - keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_85__["createOptionElement"])("Sublime", "sublime")); - keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_85__["createOptionElement"])("Vim", "vim")); - keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_85__["createOptionElement"])("Emacs", "emacs")); - if (_Settings_Settings__WEBPACK_IMPORTED_MODULE_82__["Settings"].EditorKeybinding) { + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_90__["removeChildrenFromElement"])(keybindingDropdown); + keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_88__["createOptionElement"])("Default", _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__["CodeMirrorKeybindingSetting"].Default)); + keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_88__["createOptionElement"])("Sublime", _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__["CodeMirrorKeybindingSetting"].Sublime)); + keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_88__["createOptionElement"])("Vim", _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__["CodeMirrorKeybindingSetting"].Vim)); + keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_88__["createOptionElement"])("Emacs", _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__["CodeMirrorKeybindingSetting"].Emacs)); + if (_Settings_Settings__WEBPACK_IMPORTED_MODULE_85__["Settings"].EditorKeybinding) { var initialIndex = 0; for (var i = 0; i < keybindingDropdown.options.length; ++i) { - if (keybindingDropdown.options[i].value === _Settings_Settings__WEBPACK_IMPORTED_MODULE_82__["Settings"].EditorKeybinding) { + if (keybindingDropdown.options[i].value === _Settings_Settings__WEBPACK_IMPORTED_MODULE_85__["Settings"].EditorKeybinding) { initialIndex = i; break; } @@ -45362,14 +45561,39 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ keybindingDropdown.selectedIndex = 0; } keybindingDropdown.onchange = () => { + // Set Vim command display to be invisible initially + this.vimCommandDisplayWrapper.style.display = "none"; + const val = keybindingDropdown.value; - _Settings_Settings__WEBPACK_IMPORTED_MODULE_82__["Settings"].EditorKeybinding = val; - this.editor.removeKeyMap("sublime"); - this.editor.removeKeyMap("emacs"); - this.editor.removeKeyMap("vim"); + _Settings_Settings__WEBPACK_IMPORTED_MODULE_85__["Settings"].EditorKeybinding = val; + this.editor.removeKeyMap(codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58___default.a.keyMap.default); + this.editor.removeKeyMap(codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58___default.a.keyMap.sublime); + this.editor.removeKeyMap(codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58___default.a.keyMap.emacs); + this.editor.removeKeyMap(codemirror_lib_codemirror_js__WEBPACK_IMPORTED_MODULE_58___default.a.keyMap.vim); + + // Setup the VIM command display + let keys = ''; + const handleVimKeyPress = (key) => { + keys = keys + key; + this.vimCommandDisplay.innerHTML = keys; + } + const handleVimCommandDone = (e) => { + keys = ''; + this.vimCommandDisplay.innerHTML = keys; + } + if (val === _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_84__["CodeMirrorKeybindingSetting"].Vim) { + this.vimCommandDisplayWrapper.style.display = "block"; + this.editor.on('vim-keypress', handleVimKeyPress); + this.editor.on('vim-command-done', handleVimCommandDone); + + } else { + this.vimCommandDisplayWrapper.style.display = "none"; + this.editor.off('vim-keypress', handleVimKeyPress); + this.editor.off('vim-command-done', handleVimCommandDone); + } + this.editor.addKeyMap(val); this.editor.setOption("keyMap", val); - console.log(`Set keymap to ${val} for CodeMirror`); }; keybindingDropdown.onchange(); @@ -45461,7 +45685,7 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ // Some helper functions for dealing with flexible options function resetFlexibleOption(id) { const fieldset = safeGetElementById(id); - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_87__["removeChildrenFromElement"])(fieldset); + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_90__["removeChildrenFromElement"])(fieldset); fieldset.style.display = "block"; return fieldset; } @@ -45476,12 +45700,12 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ // Flex 1: Automatically Close Brackets and Quotes const flex1Fieldset = resetFlexibleOption("script-editor-option-flex1-fieldset"); const flex1Id = "script-editor-option-flex1"; - flex1Fieldset.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_84__["createElement"])("label", { + flex1Fieldset.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_87__["createElement"])("label", { for: flex1Id, innerText: "Auto-Close Brackets/Quotes", })); - const flex1Checkbox = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_84__["createElement"])("input", { + const flex1Checkbox = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_87__["createElement"])("input", { checked: true, id: flex1Id, name: flex1Id, @@ -45496,12 +45720,12 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ // Flex 2: Disable/Enable Linting const flex2Fieldset = resetFlexibleOption("script-editor-option-flex2-fieldset"); const flex2Id = "script-editor-option-flex2"; - flex2Fieldset.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_84__["createElement"])("label", { + flex2Fieldset.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_87__["createElement"])("label", { for: flex2Id, innerText: "Enable Linting", })); - const flex2Checkbox = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_84__["createElement"])("input", { + const flex2Checkbox = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_87__["createElement"])("input", { checked: true, id: flex2Id, name: flex2Id, @@ -45520,12 +45744,12 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ // Flex 3: Continue Comments const flex3Fieldset = resetFlexibleOption("script-editor-option-flex3-fieldset"); const flex3Id = "script-editor-option-flex3"; - flex3Fieldset.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_84__["createElement"])("label", { + flex3Fieldset.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_87__["createElement"])("label", { for: flex3Id, innerText: "Continue Comments", })); - const flex3Checkbox = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_84__["createElement"])("input", { + const flex3Checkbox = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_87__["createElement"])("input", { checked: true, id: flex3Id, name: flex3Id, @@ -45540,9 +45764,8 @@ class CodeMirrorEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ removeFlexibleOption("script-editor-option-flex4-fieldset"); this.editor.refresh(); - console.log(this.editor.options); } catch(e) { - console.error(`Exception caught: ${e}`); + console.error(`Exception caught: ${e}. ${e.stack}`); return false; } } @@ -45575,7 +45798,7 @@ const CodeMirrorEditor = new CodeMirrorEditorWrapper(); /***/ }), -/* 92 */ +/* 93 */ /*!*********************************!*\ !*** ./src/ScriptEditor/Ace.js ***! \*********************************/ @@ -45585,37 +45808,40 @@ const CodeMirrorEditor = new CodeMirrorEditorWrapper(); "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AceEditor; }); -/* harmony import */ var _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ScriptEditor */ 116); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../NetscriptFunctions */ 46); +/* harmony import */ var _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ScriptEditor */ 117); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../NetscriptFunctions */ 47); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/uiHelpers/clearEventListeners */ 21); -/* 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_createOptionElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/uiHelpers/createOptionElement */ 53); -/* harmony import */ var _utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/uiHelpers/getSelectData */ 98); -/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/uiHelpers/removeChildrenFromElement */ 26); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Settings/SettingEnums */ 45); +/* harmony import */ var _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_3__); +/* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/uiHelpers/clearEventListeners */ 21); +/* 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_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/uiHelpers/createOptionElement */ 55); +/* harmony import */ var _utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__); +/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils/uiHelpers/getSelectData */ 99); +/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_7__); +/* 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___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_8__); -const ace = __webpack_require__(/*! brace */ 389); +const ace = __webpack_require__(/*! brace */ 392); + +__webpack_require__(/*! brace/mode/javascript */ 391); +__webpack_require__(/*! ./AceNetscriptMode */ 245); +__webpack_require__(/*! brace/theme/chaos */ 390); +__webpack_require__(/*! brace/theme/chrome */ 389); +__webpack_require__(/*! brace/theme/monokai */ 388); +__webpack_require__(/*! brace/theme/solarized_dark */ 387); +__webpack_require__(/*! brace/theme/solarized_light */ 386); +__webpack_require__(/*! brace/theme/terminal */ 385); +__webpack_require__(/*! brace/theme/twilight */ 384); +__webpack_require__(/*! brace/theme/xcode */ 383); +__webpack_require__(/*! brace/keybinding/vim */ 382); +__webpack_require__(/*! brace/keybinding/emacs */ 381); +__webpack_require__(/*! brace/ext/language_tools */ 380); -__webpack_require__(/*! brace/mode/javascript */ 388); -__webpack_require__(/*! ./AceNetscriptMode */ 244); -__webpack_require__(/*! brace/theme/chaos */ 387); -__webpack_require__(/*! brace/theme/chrome */ 386); -__webpack_require__(/*! brace/theme/monokai */ 385); -__webpack_require__(/*! brace/theme/solarized_dark */ 384); -__webpack_require__(/*! brace/theme/solarized_light */ 383); -__webpack_require__(/*! brace/theme/terminal */ 382); -__webpack_require__(/*! brace/theme/twilight */ 381); -__webpack_require__(/*! brace/theme/xcode */ 380); -__webpack_require__(/*! brace/keybinding/vim */ 379); -__webpack_require__(/*! brace/keybinding/emacs */ 378); -__webpack_require__(/*! brace/ext/language_tools */ 377); @@ -45643,6 +45869,7 @@ function validateInitializationParamters(params) { class AceEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__[/* ScriptEditor */ "a"] { constructor() { super(); + this.vimCommandDisplayWrapper = null; } init(params) { @@ -45673,7 +45900,7 @@ class AceEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__[/* Scr editorElement.style.fontSize = '16px'; this.editor.setOption("showPrintMargin", false); - //Configure some of the VIM keybindings + // Configure some of the VIM keybindings ace.config.loadModule('ace/keyboard/vim', function(module) { var VimApi = module.CodeMirror.Vim; VimApi.defineEx('write', 'w', function(cm, input) { @@ -45690,6 +45917,13 @@ class AceEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__[/* Scr }); }); + // Store a reference to the VIM command display + this.vimCommandDisplayWrapper = document.getElementById("codemirror-vim-command-display-wrapper"); + if (this.vimCommandDisplayWrapper == null) { + console.error(`Could not get Vim Command Display element (id=codemirror-vim-command-display-wrapper)`); + return false; + } + //Function autocompleter this.editor.setOption("enableBasicAutocompletion", true); var autocompleter = { @@ -45743,7 +45977,7 @@ class AceEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__[/* Scr } function safeClearEventListeners(id, whatFor="") { - const elem = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])(id); + const elem = Object(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_4__["clearEventListeners"])(id); if (elem == null) { throw new Error(`Could not find ${whatFor} DOM element(id=${id})`); } @@ -45760,17 +45994,22 @@ class AceEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__[/* Scr elem.style.display = "block"; } + // Make sure the Vim command display from CodeMirror is invisible + if (this.vimCommandDisplayWrapper instanceof HTMLElement) { + this.vimCommandDisplayWrapper.style.display = "none"; + } + // Theme const themeDropdown = safeClearEventListeners("script-editor-option-theme", "Theme Selector"); - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_7__["removeChildrenFromElement"])(themeDropdown); - themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Chaos")); - themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Chrome")); - themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Monokai")); - themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Solarized Dark", "Solarized_Dark")); - themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Solarized Light", "Solarized_Light")); - themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Terminal")); - themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Twilight")); - themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("XCode")); + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(themeDropdown); + themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Chaos")); + themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Chrome")); + themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Monokai")); + themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Solarized Dark", "Solarized_Dark")); + themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Solarized Light", "Solarized_Light")); + themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Terminal")); + themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Twilight")); + themeDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("XCode")); if (_Settings_Settings__WEBPACK_IMPORTED_MODULE_2__["Settings"].EditorTheme) { var initialIndex = 2; for (var i = 0; i < themeDropdown.options.length; ++i) { @@ -45794,11 +46033,15 @@ class AceEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__[/* Scr // Keybinding const keybindingDropdown = safeClearEventListeners("script-editor-option-keybinding", "Keybinding Selector"); - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_7__["removeChildrenFromElement"])(keybindingDropdown); - keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Ace", "ace")); - keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Vim", "vim")); - keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_5__["createOptionElement"])("Emacs", "emacs")); + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(keybindingDropdown); + keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Ace", _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_3__["AceKeybindingSetting"].Ace)); + keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Vim", _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_3__["AceKeybindingSetting"].Vim)); + keybindingDropdown.add(Object(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_6__["createOptionElement"])("Emacs", _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_3__["AceKeybindingSetting"].Emacs)); if (_Settings_Settings__WEBPACK_IMPORTED_MODULE_2__["Settings"].EditorKeybinding) { + // Sanitize the Keybinding setting + if (!(Object.values(_Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_3__["AceKeybindingSetting"]).includes(_Settings_Settings__WEBPACK_IMPORTED_MODULE_2__["Settings"].EditorKeybinding))) { + _Settings_Settings__WEBPACK_IMPORTED_MODULE_2__["Settings"].EditorKeybinding = _Settings_SettingEnums__WEBPACK_IMPORTED_MODULE_3__["AceKeybindingSetting"].Ace; + } var initialIndex = 0; for (var i = 0; i < keybindingDropdown.options.length; ++i) { if (keybindingDropdown.options[i].value === _Settings_Settings__WEBPACK_IMPORTED_MODULE_2__["Settings"].EditorKeybinding) { @@ -45838,7 +46081,7 @@ class AceEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__[/* Scr // Some helper functions for dealing with flexible options function resetFlexibleOption(id) { const fieldset = safeGetElementById(id); - Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_7__["removeChildrenFromElement"])(fieldset); + Object(_utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(fieldset); fieldset.style.display = "block"; return fieldset; } @@ -45853,12 +46096,12 @@ class AceEditorWrapper extends _ScriptEditor__WEBPACK_IMPORTED_MODULE_0__[/* Scr // Jshint Maxerr (Flex 1) const flex1Fieldset = resetFlexibleOption("script-editor-option-flex1-fieldset"); const flex1Id = "script-editor-option-maxerr"; - const flex1ValueLabel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_4__["createElement"])("em", { innerText: "200" }); - flex1Fieldset.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_4__["createElement"])("label", { + const flex1ValueLabel = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("em", { innerText: "200" }); + flex1Fieldset.appendChild(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("label", { for: flex1Id, innerText: "Max Error Count", })); - const flex1Input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_4__["createElement"])("input", { + const flex1Input = Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_5__["createElement"])("input", { id: flex1Id, max: "1000", min: "50", @@ -45902,8 +46145,8 @@ const AceEditor = new AceEditorWrapper(); /***/ }), -/* 93 */, -/* 94 */ +/* 94 */, +/* 95 */ /*!*************************************!*\ !*** ./utils/helpers/roundToTwo.ts ***! \*************************************/ @@ -45926,7 +46169,7 @@ exports.roundToTwo = roundToTwo; /***/ }), -/* 95 */ +/* 96 */ /*!***************************!*\ !*** ./src/Literature.js ***! \***************************/ @@ -46378,7 +46621,7 @@ function initLiterature() { /***/ }), -/* 96 */ +/* 97 */ /*!******************************!*\ !*** ./utils/GameOptions.js ***! \******************************/ @@ -46435,11 +46678,11 @@ function gameOptionsBoxOpen() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 97 */, -/* 98 */ +/* 98 */, +/* 99 */ /*!******************************************!*\ !*** ./utils/uiHelpers/getSelectData.ts ***! \******************************************/ @@ -46479,7 +46722,7 @@ exports.getSelectText = getSelectText; /***/ }), -/* 99 */ +/* 100 */ /*!*************************!*\ !*** ./src/Prestige.js ***! \*************************/ @@ -46490,39 +46733,39 @@ exports.getSelectText = getSelectText; "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 */ 76); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 77); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentation/Augmentations */ 14); /* harmony import */ var _Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_Augmentations__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _Augmentation_AugmentationHelpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Augmentation/AugmentationHelpers */ 64); +/* harmony import */ var _Augmentation_AugmentationHelpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Augmentation/AugmentationHelpers */ 65); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Augmentation/data/AugmentationNames */ 6); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _BitNode_BitNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BitNode/BitNode */ 68); +/* harmony import */ var _BitNode_BitNode__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./BitNode/BitNode */ 69); /* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Bladeburner */ 35); -/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CinematicText */ 115); +/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CinematicText */ 116); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Company/Companies */ 20); /* harmony import */ var _Company_Companies__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Company_Companies__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _Corporation_IndustryData__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Corporation/IndustryData */ 25); /* harmony import */ var _Corporation_IndustryData__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_Corporation_IndustryData__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Programs/Programs */ 27); +/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Programs/Programs */ 28); /* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./engine */ 11); -/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Faction/Faction */ 61); +/* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Faction/Faction */ 62); /* harmony import */ var _Faction_Faction__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_Faction_Faction__WEBPACK_IMPORTED_MODULE_11__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Faction/Factions */ 16); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 49); -/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Gang */ 55); -/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Location */ 105); -/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Message */ 45); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./NetscriptFunctions */ 46); +/* harmony import */ var _Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Faction/FactionHelpers */ 51); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Gang */ 57); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Location */ 106); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Message */ 46); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./NetscriptFunctions */ 47); /* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./NetscriptWorker */ 30); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./Server */ 12); -/* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./SourceFile/SourceFileFlags */ 85); +/* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./SourceFile/SourceFileFlags */ 88); /* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_21__); /* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./SpecialServerIps */ 37); /* harmony import */ var _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./StockMarket/StockMarket */ 24); -/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Terminal */ 57); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./Terminal */ 58); /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! decimal.js */ 39); /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 23); @@ -46868,10 +47111,10 @@ function prestigeSourceFile() { -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 71))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! jquery */ 72))) /***/ }), -/* 100 */ +/* 101 */ /*!***************************************!*\ !*** ./utils/helpers/getTimestamp.ts ***! \***************************************/ @@ -46897,7 +47140,7 @@ exports.getTimestamp = getTimestamp; /***/ }), -/* 101 */ +/* 102 */ /*!*******************************************!*\ !*** ./utils/helpers/isValidIPAddress.ts ***! \*******************************************/ @@ -46922,7 +47165,7 @@ exports.isValidIPAddress = isValidIPAddress; /***/ }), -/* 102 */ +/* 103 */ /*!********************************************!*\ !*** ./src/PersonObjects/Sleeve/Sleeve.ts ***! \********************************************/ @@ -46941,23 +47184,29 @@ Object.defineProperty(exports, "__esModule", { value: true }); * * Sleeves are unlocked in BitNode-10. */ -const SleeveTaskTypesEnum_1 = __webpack_require__(/*! ./SleeveTaskTypesEnum */ 147); -const Person_1 = __webpack_require__(/*! ../Person */ 146); +const SleeveTaskTypesEnum_1 = __webpack_require__(/*! ./SleeveTaskTypesEnum */ 148); +const Person_1 = __webpack_require__(/*! ../Person */ 147); const BitNodeMultipliers_1 = __webpack_require__(/*! ../../BitNode/BitNodeMultipliers */ 10); -const Crime_1 = __webpack_require__(/*! ../../Crime/Crime */ 151); -const Cities_1 = __webpack_require__(/*! ../../Locations/Cities */ 112); +const Crime_1 = __webpack_require__(/*! ../../Crime/Crime */ 152); +const Crimes_1 = __webpack_require__(/*! ../../Crime/Crimes */ 36); +const Cities_1 = __webpack_require__(/*! ../../Locations/Cities */ 113); const Companies_1 = __webpack_require__(/*! ../../Company/Companies */ 20); -const Company_1 = __webpack_require__(/*! ../../Company/Company */ 75); +const Company_1 = __webpack_require__(/*! ../../Company/Company */ 76); const CompanyPositions_1 = __webpack_require__(/*! ../../Company/CompanyPositions */ 34); const Constants_1 = __webpack_require__(/*! ../../Constants */ 1); -const Faction_1 = __webpack_require__(/*! ../../Faction/Faction */ 61); +const Faction_1 = __webpack_require__(/*! ../../Faction/Faction */ 62); const Factions_1 = __webpack_require__(/*! ../../Faction/Factions */ 16); -const FactionWorkTypeEnum_1 = __webpack_require__(/*! ../../Faction/FactionWorkTypeEnum */ 145); +const FactionWorkTypeEnum_1 = __webpack_require__(/*! ../../Faction/FactionWorkTypeEnum */ 146); const Locations_1 = __webpack_require__(/*! ../../Locations */ 5); const JSONReviver_1 = __webpack_require__(/*! ../../../utils/JSONReviver */ 15); class Sleeve extends Person_1.Person { constructor() { super(); + /** + * Stores the type of crime the sleeve is currently attempting + * Must match the name of a Crime object + */ + this.crimeType = ""; /** * Enum value for current task */ @@ -47040,7 +47289,8 @@ class Sleeve extends Person_1.Person { /** * Commit crimes */ - commitCrime(p, crime) { + commitCrime(p, crimeKey) { + const crime = Crimes_1.Crimes[crimeKey]; if (!(crime instanceof Crime_1.Crime)) { return false; } @@ -47058,18 +47308,7 @@ class Sleeve extends Person_1.Person { this.gainRatesForTask.cha = crime.charisma_exp * this.charisma_exp_mult * BitNodeMultipliers_1.BitNodeMultipliers.CrimeExpGain; this.gainRatesForTask.money = crime.money * this.crime_money_mult * BitNodeMultipliers_1.BitNodeMultipliers.CrimeMoney; this.currentTaskLocation = String(this.gainRatesForTask.money); - // We'll determine success now and adjust the earnings accordingly - if (Math.random() < crime.successRate(p)) { - this.gainRatesForTask.hack *= 2; - this.gainRatesForTask.str *= 2; - this.gainRatesForTask.def *= 2; - this.gainRatesForTask.dex *= 2; - this.gainRatesForTask.agi *= 2; - this.gainRatesForTask.cha *= 2; - } - else { - this.gainRatesForTask.money = 0; - } + this.crimeType = crimeKey; this.currentTaskMaxTime = crime.time; this.currentTask = SleeveTaskTypesEnum_1.SleeveTaskType.Crime; return true; @@ -47082,8 +47321,26 @@ class Sleeve extends Person_1.Person { if (this.currentTask === SleeveTaskTypesEnum_1.SleeveTaskType.Crime) { // For crimes, all experience and money is gained at the end if (this.currentTaskTime >= this.currentTaskMaxTime) { - retValue = this.gainExperience(p, this.gainRatesForTask); - this.gainMoney(p, this.gainRatesForTask); + const crime = Crimes_1.Crimes[this.crimeType]; + if (!(crime instanceof Crime_1.Crime)) { + console.error(`Invalid data stored in sleeve.crimeType: ${this.crimeType}`); + this.resetTaskStatus(); + return retValue; + } + if (Math.random() < crime.successRate(p)) { + // Success + const successGainRates = Person_1.createTaskTracker(); + const keysForIteration = Object.keys(successGainRates); + for (let i = 0; i < keysForIteration.length; ++i) { + const key = keysForIteration[i]; + successGainRates[key] = this.gainRatesForTask[key] * 2; + } + retValue = this.gainExperience(p, successGainRates); + this.gainMoney(p, this.gainRatesForTask); + } + else { + retValue = this.gainExperience(p, this.gainRatesForTask); + } // Do not reset task to IDLE this.currentTaskTime = 0; return retValue; @@ -47149,7 +47406,7 @@ class Sleeve extends Person_1.Person { this.defense_exp += pDefExp; p.gainDefenseExp(pDefExp); this.earningsForPlayer.def += pDefExp; - this.earningsForTask.dex += pDefExp; + this.earningsForTask.def += pDefExp; } if (pDexExp > 0) { this.dexterity_exp += pDexExp; @@ -47329,6 +47586,9 @@ class Sleeve extends Person_1.Person { this.currentTaskTime = 0; this.currentTaskMaxTime = 0; this.factionWorkType = FactionWorkTypeEnum_1.FactionWorkType.None; + this.crimeType = ""; + this.currentTaskLocation = ""; + this.gymStatType = ""; } /** * Take a course at a university @@ -47492,13 +47752,20 @@ class Sleeve extends Person_1.Person { else { this.resetTaskStatus(); } + const factionInfo = Factions_1.Factions[factionName].getInfo(); // Set type of work (hacking/field/security), and the experience gains const sanitizedWorkType = workType.toLowerCase(); if (sanitizedWorkType.includes("hack")) { + if (!factionInfo.offerHackingWork) { + return false; + } this.factionWorkType = FactionWorkTypeEnum_1.FactionWorkType.Hacking; this.gainRatesForTask.hack = .15 * this.hacking_exp_mult * BitNodeMultipliers_1.BitNodeMultipliers.FactionWorkExpGain; } else if (sanitizedWorkType.includes("field")) { + if (!factionInfo.offerFieldWork) { + return false; + } this.factionWorkType = FactionWorkTypeEnum_1.FactionWorkType.Field; this.gainRatesForTask.hack = .1 * this.hacking_exp_mult * BitNodeMultipliers_1.BitNodeMultipliers.FactionWorkExpGain; this.gainRatesForTask.str = .1 * this.strength_exp_mult * BitNodeMultipliers_1.BitNodeMultipliers.FactionWorkExpGain; @@ -47508,6 +47775,9 @@ class Sleeve extends Person_1.Person { this.gainRatesForTask.cha = .1 * this.charisma_exp_mult * BitNodeMultipliers_1.BitNodeMultipliers.FactionWorkExpGain; } else if (sanitizedWorkType.includes("security")) { + if (!factionInfo.offerSecurityWork) { + return false; + } this.factionWorkType = FactionWorkTypeEnum_1.FactionWorkType.Security; this.gainRatesForTask.hack = .1 * this.hacking_exp_mult * BitNodeMultipliers_1.BitNodeMultipliers.FactionWorkExpGain; this.gainRatesForTask.str = .15 * this.strength_exp_mult * BitNodeMultipliers_1.BitNodeMultipliers.FactionWorkExpGain; @@ -47619,8 +47889,8 @@ JSONReviver_1.Reviver.constructors.Sleeve = Sleeve; /***/ }), -/* 103 */, -/* 104 */ +/* 104 */, +/* 105 */ /*!****************************************!*\ !*** ./src/Company/CompanyPosition.ts ***! \****************************************/ @@ -47712,7 +47982,7 @@ exports.CompanyPosition = CompanyPosition; /***/ }), -/* 105 */ +/* 106 */ /*!*************************!*\ !*** ./src/Location.js ***! \*************************/ @@ -47728,26 +47998,26 @@ exports.CompanyPosition = CompanyPosition; /* 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 */ 20); /* 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 */ 107); +/* harmony import */ var _Company_GetJobRequirementText__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Company/GetJobRequirementText */ 108); /* 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 */ 41); /* 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 _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Corporation/Corporation */ 67); +/* harmony import */ var _Corporation_Corporation__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Corporation/Corporation */ 68); /* 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 _Crime_Crimes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Crime/Crimes */ 36); /* harmony import */ var _Crime_Crimes__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Crime_Crimes__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./engine */ 11); /* harmony import */ var _Infiltration__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Infiltration */ 163); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NetscriptFunctions */ 46); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NetscriptFunctions */ 47); /* 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 */ 12); -/* harmony import */ var _ServerPurchases__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ServerPurchases */ 139); +/* harmony import */ var _ServerPurchases__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./ServerPurchases */ 56); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Settings/Settings */ 19); /* harmony import */ var _Settings_Settings__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_Settings_Settings__WEBPACK_IMPORTED_MODULE_15__); -/* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SourceFile/SourceFileFlags */ 85); +/* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SourceFile/SourceFileFlags */ 88); /* harmony import */ var _SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_SourceFile_SourceFileFlags__WEBPACK_IMPORTED_MODULE_16__); /* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./SpecialServerIps */ 37); /* harmony import */ var _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./ui/numeralFormat */ 4); @@ -47755,7 +48025,7 @@ exports.CompanyPosition = CompanyPosition; /* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/DialogBox */ 9); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/uiHelpers/clearEventListeners */ 21); /* harmony import */ var _utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_clearEventListeners__WEBPACK_IMPORTED_MODULE_20__); -/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/IPAddress */ 69); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/IPAddress */ 70); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 3); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__); /* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/YesNoBox */ 22); @@ -47764,7 +48034,7 @@ exports.CompanyPosition = CompanyPosition; /* 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 */ 40); /* 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_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/uiHelpers/createPopupCloseButton */ 77); +/* harmony import */ var _utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../utils/uiHelpers/createPopupCloseButton */ 78); /* harmony import */ var _utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_26__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 23); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_27__); @@ -47956,16 +48226,16 @@ function displayLocationContent() { purchaseHomeRam.style.display = "none"; purchaseHomeCores.style.display = "none"; - purchase2gb.innerHTML = "Purchase 2GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(2*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase4gb.innerHTML = "Purchase 4GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(4*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase8gb.innerHTML = "Purchase 8GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(8*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase16gb.innerHTML = "Purchase 16GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(16*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase32gb.innerHTML = "Purchase 32GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(32*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase64gb.innerHTML = "Purchase 64GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(64*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase128gb.innerHTML = "Purchase 128GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(128*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase256gb.innerHTML = "Purchase 256GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(256*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase512gb.innerHTML = "Purchase 512GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(512*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase1tb.innerHTML = "Purchase 1TB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(1024*_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase2gb.innerHTML = "Purchase 2GB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(2)); + purchase4gb.innerHTML = "Purchase 4GB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(4)); + purchase8gb.innerHTML = "Purchase 8GB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(8)); + purchase16gb.innerHTML = "Purchase 16GB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(16)); + purchase32gb.innerHTML = "Purchase 32GB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(32)); + purchase64gb.innerHTML = "Purchase 64GB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(64)); + purchase128gb.innerHTML = "Purchase 128GB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(128)); + purchase256gb.innerHTML = "Purchase 256GB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(256)); + purchase512gb.innerHTML = "Purchase 512GB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(512)); + purchase1tb.innerHTML = "Purchase 1TB Server - " + _ui_numeralFormat__WEBPACK_IMPORTED_MODULE_18__["numeralWrapper"].formatMoney(Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(1024)); if (!_SpecialServerIps__WEBPACK_IMPORTED_MODULE_17__[/* SpecialServerIps */ "a"].hasOwnProperty("Darkweb Server")) { purchaseTor.classList.add("a-link-button"); purchaseTor.classList.remove("a-link-button-bought"); @@ -49491,61 +49761,61 @@ function initLocationButtons() { purchase2gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(2, 2 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(2); return false; }); purchase4gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(4, 4 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(4); return false; }); purchase8gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(8, 8 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(8); return false; }); purchase16gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(16, 16 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(16); return false; }); purchase32gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(32, 32 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(32); return false; }); purchase64gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(64, 64 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(64); return false; }); purchase128gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(128, 128 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(128); return false; }); purchase256gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(256, 256 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(256); return false; }); purchase512gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(512, 512 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(512); return false; }); purchase1tb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(1024, 1024 * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(1024); return false; }); @@ -49563,7 +49833,7 @@ function initLocationButtons() { var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Purchase"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", ()=>{ - Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* purchaseRamForHomeComputer */ "a"])(cost); + Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* purchaseRamForHomeComputer */ "d"])(cost); Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxClose"])(); }); noBtn.addEventListener("click", ()=>{ @@ -50029,13 +50299,19 @@ function travelBoxCreate(destCityName, cost) { Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxCreate"])("Would you like to travel to " + destCityName + "? The trip will cost $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_22__["formatNumber"])(cost, 2) + "."); } -function purchaseServerBoxCreate(ram, cost) { +function purchaseServerBoxCreate(ram) { + const cost = Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* getPurchaseServerCost */ "a"])(ram); + if (cost === Infinity) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_19__["dialogBoxCreate"])("Something went wrong when trying to purchase this server. Please contact developer"); + return; + } + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoTxtInpBoxGetYesButton"])(); var noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoTxtInpBoxGetNoButton"])(); yesBtn.innerHTML = "Purchase Server"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", function() { - Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* purchaseServer */ "b"])(ram, cost); + Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_14__[/* purchaseServer */ "e"])(ram); Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoTxtInpBoxClose"])(); }); noBtn.addEventListener("click", function() { @@ -50051,7 +50327,7 @@ function purchaseServerBoxCreate(ram, cost) { /***/ }), -/* 106 */ +/* 107 */ /*!****************************************!*\ !*** ./utils/helpers/compareArrays.ts ***! \****************************************/ @@ -50082,7 +50358,7 @@ exports.compareArrays = compareArrays; /***/ }), -/* 107 */ +/* 108 */ /*!**********************************************!*\ !*** ./src/Company/GetJobRequirementText.ts ***! \**********************************************/ @@ -50148,7 +50424,7 @@ exports.getJobRequirementText = getJobRequirementText; /***/ }), -/* 108 */ +/* 109 */ /*!***********************************!*\ !*** ./src/Crime/CrimeHelpers.js ***! \***********************************/ @@ -50229,7 +50505,7 @@ function findCrime(roughName) { /***/ }), -/* 109 */ +/* 110 */ /*!****************************************!*\ !*** ./src/Programs/ProgramHelpers.js ***! \****************************************/ @@ -50241,7 +50517,7 @@ function findCrime(roughName) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return displayCreateProgramContent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getNumAvailableCreateProgram; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return initCreateProgramButtons; }); -/* harmony import */ var _Programs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Programs */ 27); +/* harmony import */ var _Programs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Programs */ 28); /* harmony import */ var _Programs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Programs__WEBPACK_IMPORTED_MODULE_0__); /* 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__); @@ -50325,7 +50601,7 @@ function initCreateProgramButtons() { /***/ }), -/* 110 */ +/* 111 */ /*!****************************************!*\ !*** ./utils/helpers/getRandomByte.ts ***! \****************************************/ @@ -50351,8 +50627,8 @@ exports.getRandomByte = getRandomByte; /***/ }), -/* 111 */, -/* 112 */ +/* 112 */, +/* 113 */ /*!*********************************!*\ !*** ./src/Locations/Cities.ts ***! \*********************************/ @@ -50378,7 +50654,7 @@ exports.Cities = { /***/ }), -/* 113 */ +/* 114 */ /*!****************************************!*\ !*** ./src/Corporation/ResearchMap.ts ***! \****************************************/ @@ -50391,8 +50667,8 @@ exports.Cities = { Object.defineProperty(exports, "__esModule", { value: true }); // The Research Map is an object that holds all Corporation Research objects // as values. They are identified by their names -const Research_1 = __webpack_require__(/*! ./Research */ 253); -const ResearchMetadata_1 = __webpack_require__(/*! ./data/ResearchMetadata */ 252); +const Research_1 = __webpack_require__(/*! ./Research */ 254); +const ResearchMetadata_1 = __webpack_require__(/*! ./data/ResearchMetadata */ 253); exports.ResearchMap = {}; function addResearch(p) { if (exports.ResearchMap[p.name] != null) { @@ -50406,7 +50682,7 @@ for (const metadata of ResearchMetadata_1.researchMetadata) { /***/ }), -/* 114 */ +/* 115 */ /*!****************************************!*\ !*** ./src/CodingContractGenerator.js ***! \****************************************/ @@ -50417,7 +50693,7 @@ for (const metadata of ResearchMetadata_1.researchMetadata) { "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 */ 47); +/* harmony import */ var _CodingContracts__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CodingContracts */ 48); /* 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 */ 16); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Faction_Factions__WEBPACK_IMPORTED_MODULE_1__); @@ -50584,7 +50860,7 @@ function getRandomFilename(server, reward) { /***/ }), -/* 115 */ +/* 116 */ /*!******************************!*\ !*** ./src/CinematicText.js ***! \******************************/ @@ -50596,7 +50872,7 @@ 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 */ 11); -/* harmony import */ var _utils_uiHelpers_removeChildrenFromElement__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/uiHelpers/removeChildrenFromElement */ 26); +/* 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___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__); @@ -50706,7 +50982,7 @@ function cinematicTextEnd() { /***/ }), -/* 116 */ +/* 117 */ /*!******************************************!*\ !*** ./src/ScriptEditor/ScriptEditor.js ***! \******************************************/ @@ -50717,7 +50993,7 @@ function cinematicTextEnd() { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ScriptEditor; }); // Base Script Editor class for the Ace/CodeMirror/etc. wrappers -const beautify = __webpack_require__(/*! js-beautify */ 390).js_beautify; +const beautify = __webpack_require__(/*! js-beautify */ 393).js_beautify; class ScriptEditor { constructor() { @@ -50777,7 +51053,7 @@ class ScriptEditor { /***/ }), -/* 117 */ +/* 118 */ /*!**********************************************!*\ !*** ./src/PersonObjects/Sleeve/SleeveUI.ts ***! \**********************************************/ @@ -50788,25 +51064,27 @@ class ScriptEditor { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const SleeveTaskTypesEnum_1 = __webpack_require__(/*! ./SleeveTaskTypesEnum */ 147); +const SleeveTaskTypesEnum_1 = __webpack_require__(/*! ./SleeveTaskTypesEnum */ 148); const SleeveFaq_1 = __webpack_require__(/*! ./data/SleeveFaq */ 227); const Constants_1 = __webpack_require__(/*! ../../Constants */ 1); const Locations_1 = __webpack_require__(/*! ../../Locations */ 5); -const FactionWorkTypeEnum_1 = __webpack_require__(/*! ../../Faction/FactionWorkTypeEnum */ 145); -const Cities_1 = __webpack_require__(/*! ../../Locations/Cities */ 112); +const Factions_1 = __webpack_require__(/*! ../../Faction/Factions */ 16); +const FactionWorkTypeEnum_1 = __webpack_require__(/*! ../../Faction/FactionWorkTypeEnum */ 146); +const Cities_1 = __webpack_require__(/*! ../../Locations/Cities */ 113); const Crimes_1 = __webpack_require__(/*! ../../Crime/Crimes */ 36); const numeralFormat_1 = __webpack_require__(/*! ../../ui/numeralFormat */ 4); const navigationTracking_1 = __webpack_require__(/*! ../../ui/navigationTracking */ 13); const DialogBox_1 = __webpack_require__(/*! ../../../utils/DialogBox */ 9); -const createProgressBarText_1 = __webpack_require__(/*! ../../../utils/helpers/createProgressBarText */ 89); +const createProgressBarText_1 = __webpack_require__(/*! ../../../utils/helpers/createProgressBarText */ 90); const exceptionAlert_1 = __webpack_require__(/*! ../../../utils/helpers/exceptionAlert */ 42); +const clearEventListeners_1 = __webpack_require__(/*! ../../../utils/uiHelpers/clearEventListeners */ 21); const createElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/createElement */ 2); -const createOptionElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/createOptionElement */ 53); +const createOptionElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/createOptionElement */ 55); const createPopup_1 = __webpack_require__(/*! ../../../utils/uiHelpers/createPopup */ 40); -const createPopupCloseButton_1 = __webpack_require__(/*! ../../../utils/uiHelpers/createPopupCloseButton */ 77); -const getSelectData_1 = __webpack_require__(/*! ../../../utils/uiHelpers/getSelectData */ 98); -const removeChildrenFromElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/removeChildrenFromElement */ 26); -const removeElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/removeElement */ 65); +const createPopupCloseButton_1 = __webpack_require__(/*! ../../../utils/uiHelpers/createPopupCloseButton */ 78); +const getSelectData_1 = __webpack_require__(/*! ../../../utils/uiHelpers/getSelectData */ 99); +const removeChildrenFromElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/removeChildrenFromElement */ 27); +const removeElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/removeElement */ 66); const removeElementById_1 = __webpack_require__(/*! ../../../utils/uiHelpers/removeElementById */ 23); const UIElems = { container: null, @@ -50966,7 +51244,7 @@ function createSleeveUi(sleeve, allSleeves) { popupArguments.push(createElement_1.createElement("p", { innerText: "Have this sleeve travel to a different city. This affects " + "the gyms and universities at which this sleeve can study. " + - `Traveling to a different city costs ${numeralFormat_1.numeralWrapper.formatMoney(Constants_1.CONSTANTS.TravelCost)}.` + + `Traveling to a different city costs ${numeralFormat_1.numeralWrapper.formatMoney(Constants_1.CONSTANTS.TravelCost)}. ` + "It will also CANCEL the sleeve's current task (setting it to idle)", })); for (const label in Cities_1.Cities) { @@ -50989,6 +51267,7 @@ function createSleeveUi(sleeve, allSleeves) { sleeve.resetTaskStatus(); removeElementById_1.removeElementById(popupId); updateSleeveUi(sleeve, elems); + updateSleeveTaskSelector(sleeve, elems, allSleeves); return false; } })); @@ -51129,11 +51408,6 @@ function updateSleeveUi(sleeve, elems) { elems.taskProgressBar.innerText = ""; } } -const factionWorkTypeSelectorOptions = [ - "Hacking Contracts", - "Security Work", - "Field Work" -]; const universitySelectorOptions = [ "Study Computer Science", "Data Structures", @@ -51176,6 +51450,7 @@ function updateSleeveTaskSelector(sleeve, elems, allSleeves) { // Reset Selectors removeChildrenFromElement_1.removeChildrenFromElement(elems.taskDetailsSelector); removeChildrenFromElement_1.removeChildrenFromElement(elems.taskDetailsSelector2); + elems.taskDetailsSelector2 = clearEventListeners_1.clearEventListeners(elems.taskDetailsSelector2); const value = getSelectData_1.getSelectValue(elems.taskSelector); switch (value) { case "Work for Company": @@ -51206,28 +51481,58 @@ function updateSleeveTaskSelector(sleeve, elems, allSleeves) { ++factionCount; } } - for (let i = 0; i < factionWorkTypeSelectorOptions.length; ++i) { - elems.taskDetailsSelector2.add(createOptionElement_1.createOptionElement(factionWorkTypeSelectorOptions[i])); - } - // Set initial value for faction work type - switch (sleeve.factionWorkType) { - case FactionWorkTypeEnum_1.FactionWorkType.Hacking: - elems.taskDetailsSelector2.selectedIndex = 0; - break; - case FactionWorkTypeEnum_1.FactionWorkType.Security: - elems.taskDetailsSelector2.selectedIndex = 0; - break; - case FactionWorkTypeEnum_1.FactionWorkType.Field: - elems.taskDetailsSelector2.selectedIndex = 0; - break; - default: - break; - } + // The available faction work types depends on the faction + elems.taskDetailsSelector.addEventListener("change", () => { + const facName = getSelectData_1.getSelectValue(elems.taskDetailsSelector); + const faction = Factions_1.Factions[facName]; + if (faction == null) { + console.warn(`Invalid faction name when trying to update Sleeve Task Selector: ${facName}`); + return; + } + const facInfo = faction.getInfo(); + removeChildrenFromElement_1.removeChildrenFromElement(elems.taskDetailsSelector2); + let numOptionsAdded = 0; + if (facInfo.offerHackingWork) { + elems.taskDetailsSelector2.add(createOptionElement_1.createOptionElement("Hacking Contracts")); + if (sleeve.factionWorkType === FactionWorkTypeEnum_1.FactionWorkType.Hacking) { + elems.taskDetailsSelector2.selectedIndex = numOptionsAdded; + } + ++numOptionsAdded; + } + if (facInfo.offerFieldWork) { + elems.taskDetailsSelector2.add(createOptionElement_1.createOptionElement("Field Work")); + if (sleeve.factionWorkType === FactionWorkTypeEnum_1.FactionWorkType.Field) { + elems.taskDetailsSelector2.selectedIndex = numOptionsAdded; + } + ++numOptionsAdded; + } + if (facInfo.offerSecurityWork) { + elems.taskDetailsSelector2.add(createOptionElement_1.createOptionElement("Security Work")); + if (sleeve.factionWorkType === FactionWorkTypeEnum_1.FactionWorkType.Security) { + elems.taskDetailsSelector2.selectedIndex = numOptionsAdded; + } + ++numOptionsAdded; + } + }); + elems.taskDetailsSelector.dispatchEvent(new Event("change")); break; case "Commit Crime": + let i = 0; for (const crimeLabel in Crimes_1.Crimes) { const name = Crimes_1.Crimes[crimeLabel].name; elems.taskDetailsSelector.add(createOptionElement_1.createOptionElement(name, crimeLabel)); + // Set initial value for crime type + if (sleeve.crimeType === "") { + continue; + } + const crime = Crimes_1.Crimes[sleeve.crimeType]; + if (crime == null) { + continue; + } + if (name === crime.name) { + elems.taskDetailsSelector.selectedIndex = i; + } + ++i; } elems.taskDetailsSelector2.add(createOptionElement_1.createOptionElement("------")); break; @@ -51325,7 +51630,7 @@ function setSleeveTask(sleeve, elems) { res = sleeve.workForFaction(playerRef, detailValue, detailValue2); break; case "Commit Crime": - res = sleeve.commitCrime(playerRef, Crimes_1.Crimes[detailValue]); + res = sleeve.commitCrime(playerRef, detailValue); break; case "Take University Course": res = sleeve.takeUniversityCourse(playerRef, detailValue2, detailValue); @@ -51348,7 +51653,14 @@ function setSleeveTask(sleeve, elems) { updateSleeveTaskDescription(sleeve, elems); } else { - elems.taskDescription.innerText = "Failed to assign sleeve to task. Invalid choice(s)."; + switch (taskValue) { + case "Work for Faction": + elems.taskDescription.innerText = "Failed to assign sleeve to task. This is most likely because the selected faction does not offer the selected work type."; + break; + default: + elems.taskDescription.innerText = "Failed to assign sleeve to task. Invalid choice(s)."; + break; + } } if (navigationTracking_1.routing.isOn(navigationTracking_1.Page.Sleeves)) { updateSleevesPage(); @@ -51378,16 +51690,13 @@ function updateSleeveTaskDescription(sleeve, elems) { elems.taskDescription.innerText = "This sleeve is currently idle"; break; case "Work for Company": - elems.taskDescription.innerText = `This sleeve is currently working your ` + - `job at ${sleeve.currentTaskLocation}.`; + elems.taskDescription.innerText = `This sleeve is currently working your job at ${sleeve.currentTaskLocation}.`; break; case "Work for Faction": - elems.taskDescription.innerText = `This sleeve is currently doing ${detailValue2} for ` + - `${sleeve.currentTaskLocation}.`; + elems.taskDescription.innerText = `This sleeve is currently doing ${detailValue2} for ${sleeve.currentTaskLocation}.`; break; case "Commit Crime": - elems.taskDescription.innerText = `This sleeve is currently attempting to ` + - `${Crimes_1.Crimes[detailValue].type}.`; + elems.taskDescription.innerText = `This sleeve is currently attempting to ${Crimes_1.Crimes[detailValue].type} (Success Rate: ${numeralFormat_1.numeralWrapper.formatPercentage(Crimes_1.Crimes[detailValue].successRate(playerRef))}).`; break; case "Take University Course": elems.taskDescription.innerText = `This sleeve is currently studying/taking a course at ${sleeve.currentTaskLocation}.`; @@ -51415,7 +51724,7 @@ function updateSleeveTaskDescription(sleeve, elems) { /***/ }), -/* 118 */ +/* 119 */ /*!***********************************************!*\ !*** ./src/Company/GetNextCompanyPosition.ts ***! \***********************************************/ @@ -51441,7 +51750,7 @@ exports.getNextCompanyPosition = getNextCompanyPosition; /***/ }), -/* 119 */ +/* 120 */ /*!*************************!*\ !*** ./src/HelpText.ts ***! \*************************/ @@ -51682,7 +51991,7 @@ exports.HelpTexts = { /***/ }), -/* 120 */ +/* 121 */ /*!************************************!*\ !*** ./src/Corporation/Product.ts ***! \************************************/ @@ -51694,9 +52003,9 @@ exports.HelpTexts = { Object.defineProperty(exports, "__esModule", { value: true }); const EmployeePositions_1 = __webpack_require__(/*! ./EmployeePositions */ 31); -const MaterialSizes_1 = __webpack_require__(/*! ./MaterialSizes */ 84); -const ProductRatingWeights_1 = __webpack_require__(/*! ./ProductRatingWeights */ 250); -const Cities_1 = __webpack_require__(/*! ../Locations/Cities */ 112); +const MaterialSizes_1 = __webpack_require__(/*! ./MaterialSizes */ 85); +const ProductRatingWeights_1 = __webpack_require__(/*! ./ProductRatingWeights */ 251); +const Cities_1 = __webpack_require__(/*! ../Locations/Cities */ 113); const JSONReviver_1 = __webpack_require__(/*! ../../utils/JSONReviver */ 15); const getRandomInt_1 = __webpack_require__(/*! ../../utils/helpers/getRandomInt */ 17); class Product { @@ -51889,7 +52198,7 @@ JSONReviver_1.Reviver.constructors.Product = Product; /***/ }), -/* 121 */ +/* 122 */ /*!*********************************************!*\ !*** ./src/Corporation/IndustryUpgrades.ts ***! \*********************************************/ @@ -51916,7 +52225,7 @@ exports.IndustryUpgrades = { /***/ }), -/* 122 */ +/* 123 */ /*!*****************************************************!*\ !*** ./src/Corporation/data/CorporationUpgrades.ts ***! \*****************************************************/ @@ -51984,7 +52293,7 @@ exports.CorporationUpgrades = { /***/ }), -/* 123 */ +/* 124 */ /*!***********************************************************!*\ !*** ./src/Corporation/data/CorporationUnlockUpgrades.ts ***! \***********************************************************/ @@ -52030,7 +52339,6 @@ exports.CorporationUnlockUpgrades = { /***/ }), -/* 124 */, /* 125 */, /* 126 */, /* 127 */, @@ -52038,7 +52346,8 @@ exports.CorporationUnlockUpgrades = { /* 129 */, /* 130 */, /* 131 */, -/* 132 */ +/* 132 */, +/* 133 */ /*!************************************!*\ !*** ./src/Faction/FactionInfo.ts ***! \************************************/ @@ -52213,7 +52522,37 @@ exports.FactionInfos = { /***/ }), -/* 133 */ +/* 134 */ +/*!***************************************!*\ + !*** ./utils/helpers/isPowerOfTwo.ts ***! + \***************************************/ +/*! no static exports found */ +/*! exports used: isPowerOfTwo */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +/** + * Determines if the number is a power of 2 + * @param n The number to check. + */ +function isPowerOfTwo(n) { + if (isNaN(n)) { + return false; + } + if (n === 0) { + return false; + } + // Disabiling the bitwise rule because it's honestly the most effecient way to check for this. + // tslint:disable-next-line:no-bitwise + return (n & (n - 1)) === 0; +} +exports.isPowerOfTwo = isPowerOfTwo; + + +/***/ }), +/* 135 */ /*!*************************************!*\ !*** ./src/NetscriptEnvironment.js ***! \*************************************/ @@ -52223,9 +52562,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 */ 74); -/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptFunctions */ 46); -/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptPort */ 80); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HacknetNode */ 75); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptFunctions */ 47); +/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptPort */ 81); @@ -52325,7 +52664,7 @@ Environment.prototype = { /***/ }), -/* 134 */ +/* 136 */ /*!*************************************!*\ !*** ./src/NetscriptJSEvaluator.js ***! \*************************************/ @@ -52449,7 +52788,7 @@ function _getScriptUrls(script, scripts, seen) { /***/ }), -/* 135 */ +/* 137 */ /*!************************************************!*\ !*** ./utils/uiHelpers/removeLoadingScreen.ts ***! \************************************************/ @@ -52460,7 +52799,7 @@ function _getScriptUrls(script, scripts, seen) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const getElementById_1 = __webpack_require__(/*! ./getElementById */ 60); +const getElementById_1 = __webpack_require__(/*! ./getElementById */ 61); const removeElementById_1 = __webpack_require__(/*! ./removeElementById */ 23); /** * Routes the player from the Loading screen to the main game content. @@ -52474,7 +52813,7 @@ exports.removeLoadingScreen = removeLoadingScreen; /***/ }), -/* 136 */ +/* 138 */ /*!******************************************************!*\ !*** ./src/PersonObjects/Resleeving/ResleevingUI.ts ***! \******************************************************/ @@ -52492,10 +52831,10 @@ const navigationTracking_1 = __webpack_require__(/*! ../../ui/navigationTracking const DialogBox_1 = __webpack_require__(/*! ../../../utils/DialogBox */ 9); const exceptionAlert_1 = __webpack_require__(/*! ../../../utils/helpers/exceptionAlert */ 42); const createElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/createElement */ 2); -const createOptionElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/createOptionElement */ 53); -const getSelectData_1 = __webpack_require__(/*! ../../../utils/uiHelpers/getSelectData */ 98); -const removeChildrenFromElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/removeChildrenFromElement */ 26); -const removeElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/removeElement */ 65); +const createOptionElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/createOptionElement */ 55); +const getSelectData_1 = __webpack_require__(/*! ../../../utils/uiHelpers/getSelectData */ 99); +const removeChildrenFromElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/removeChildrenFromElement */ 27); +const removeElement_1 = __webpack_require__(/*! ../../../utils/uiHelpers/removeElement */ 66); const UIElems = { container: null, info: null, @@ -52787,7 +53126,7 @@ function updateAugDescription(elems) { /***/ }), -/* 137 */ +/* 139 */ /*!************************!*\ !*** ./src/DevMenu.js ***! \************************/ @@ -52800,18 +53139,18 @@ function updateAugDescription(elems) { /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return closeDevMenu; }); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentation/data/AugmentationNames */ 6); /* harmony import */ var _Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_Augmentation_data_AugmentationNames__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContractGenerator */ 114); -/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Programs/Programs */ 27); +/* harmony import */ var _CodingContractGenerator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CodingContractGenerator */ 115); +/* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Programs/Programs */ 28); /* harmony import */ var _Programs_Programs__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_Programs_Programs__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var _Faction_Factions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction/Factions */ 16); /* 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 */ 12); -/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RedPill */ 66); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./RedPill */ 67); /* harmony import */ var _StockMarket_StockMarket__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./StockMarket/StockMarket */ 24); /* harmony import */ var _StockMarket_Stock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./StockMarket/Stock */ 32); /* harmony import */ var _StockMarket_Stock__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_StockMarket_Stock__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Terminal */ 57); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Terminal */ 58); /* 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); @@ -52819,9 +53158,9 @@ function updateAugDescription(elems) { /* harmony import */ var _utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_helpers_exceptionAlert__WEBPACK_IMPORTED_MODULE_12__); /* 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_createOptionElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/uiHelpers/createOptionElement */ 53); +/* harmony import */ var _utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/uiHelpers/createOptionElement */ 55); /* harmony import */ var _utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_createOptionElement__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/uiHelpers/getSelectData */ 98); +/* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/uiHelpers/getSelectData */ 99); /* harmony import */ var _utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_15__); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/uiHelpers/removeElementById */ 23); /* harmony import */ var _utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_16__); @@ -53407,7 +53746,7 @@ function closeDevMenu() { /***/ }), -/* 138 */ +/* 140 */ /*!********************************!*\ !*** ./src/DarkWeb/DarkWeb.js ***! \********************************/ @@ -53418,13 +53757,13 @@ function closeDevMenu() { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return checkIfConnectedToDarkweb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return executeDarkwebTerminalCommand; }); -/* harmony import */ var _DarkWebItems__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DarkWebItems */ 79); +/* harmony import */ var _DarkWebItems__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./DarkWebItems */ 80); /* harmony import */ var _DarkWebItems__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_DarkWebItems__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Player */ 0); /* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../SpecialServerIps */ 37); /* harmony import */ var _ui_postToTerminal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ui/postToTerminal */ 8); /* 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 */ 101); +/* harmony import */ var _utils_helpers_isValidIPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/helpers/isValidIPAddress */ 102); /* 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__); @@ -53521,103 +53860,7 @@ function buyDarkwebItem(itemName) { /***/ }), -/* 139 */ -/*!********************************!*\ - !*** ./src/ServerPurchases.js ***! - \********************************/ -/*! exports provided: purchaseServer, purchaseRamForHomeComputer */ -/*! exports used: purchaseRamForHomeComputer, purchaseServer */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return purchaseServer; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return purchaseRamForHomeComputer; }); -/* 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 _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); -/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Server */ 12); -/* 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 */ 69); -/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/YesNoBox */ 22); -/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_5__); - - - - - - - - -/* Functions to handle any server-related purchasing: - * Purchasing new servers - * Purchasing more RAM for home computer - */ -function purchaseServer(ram, cost) { - //Check if player has enough money - if (_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].money.lt(cost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You don't have enough money to purchase this server!"); - return; - } - - //Maximum server limit - if (_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].purchasedServers.length >= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].PurchasedServerLimit) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You have reached the maximum limit of " + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].PurchasedServerLimit + " servers. " + - "You cannot purchase any more. You can " + - "delete some of your purchased servers using the deleteServer() Netscript function in a script"); - return; - } - - var hostname = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_5__["yesNoTxtInpBoxGetInput"])(); - if (hostname == "") { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You must enter a hostname for your new server!"); - return; - } - - //Create server - var newServ = new _Server__WEBPACK_IMPORTED_MODULE_2__[/* Server */ "d"]({ - ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_4__[/* createRandomIp */ "a"])(), hostname:hostname, organizationName:"", - isConnectedTo:false, adminRights:true, purchasedByPlayer:true, maxRam:ram - }); - Object(_Server__WEBPACK_IMPORTED_MODULE_2__[/* AddToAllServers */ "a"])(newServ); - - //Add to Player's purchasedServers array - _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].purchasedServers.push(newServ.ip); - - //Connect new server to home computer - var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].getHomeComputer(); - homeComputer.serversOnNetwork.push(newServ.ip); - newServ.serversOnNetwork.push(homeComputer.ip); - - _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].loseMoney(cost); - - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("Server successfully purchased with hostname " + hostname); -} - - -function purchaseRamForHomeComputer(cost) { - if (_Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].money.lt(cost)) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You do not have enough money to purchase additional RAM for your home computer"); - return; - } - - const homeComputer = _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].getHomeComputer(); - if (homeComputer.maxRam >= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HomeComputerMaxRam) { - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])(`You cannot upgrade your home computer RAM because it is at its maximum possible value`); - return; - } - - - homeComputer.maxRam *= 2; - _Player__WEBPACK_IMPORTED_MODULE_1__[/* Player */ "a"].loseMoney(cost); - - Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("Purchased additional RAM for home computer! It now has " + homeComputer.maxRam + "GB of RAM."); -} - - - - -/***/ }), -/* 140 */ +/* 141 */ /*!*********************************************!*\ !*** ./src/Corporation/CorporationState.ts ***! \*********************************************/ @@ -53667,11 +53910,11 @@ JSONReviver_1.Reviver.constructors.CorporationState = CorporationState; /***/ }), -/* 141 */, /* 142 */, /* 143 */, /* 144 */, -/* 145 */ +/* 145 */, +/* 146 */ /*!********************************************!*\ !*** ./src/Faction/FactionWorkTypeEnum.ts ***! \********************************************/ @@ -53692,7 +53935,7 @@ var FactionWorkType; /***/ }), -/* 146 */ +/* 147 */ /*!*************************************!*\ !*** ./src/PersonObjects/Person.ts ***! \*************************************/ @@ -53704,7 +53947,7 @@ var FactionWorkType; Object.defineProperty(exports, "__esModule", { value: true }); const BitNodeMultipliers_1 = __webpack_require__(/*! ../BitNode/BitNodeMultipliers */ 10); -const Cities_1 = __webpack_require__(/*! ../Locations/Cities */ 112); +const Cities_1 = __webpack_require__(/*! ../Locations/Cities */ 113); const Constants_1 = __webpack_require__(/*! ../Constants */ 1); function createTaskTracker() { return { @@ -53877,7 +54120,7 @@ exports.Person = Person; /***/ }), -/* 147 */ +/* 148 */ /*!*********************************************************!*\ !*** ./src/PersonObjects/Sleeve/SleeveTaskTypesEnum.ts ***! \*********************************************************/ @@ -53906,10 +54149,10 @@ var SleeveTaskType; /***/ }), -/* 148 */, /* 149 */, /* 150 */, -/* 151 */ +/* 151 */, +/* 152 */ /*!****************************!*\ !*** ./src/Crime/Crime.ts ***! \****************************/ @@ -53998,7 +54241,7 @@ exports.Crime = Crime; /***/ }), -/* 152 */ +/* 153 */ /*!************************************!*\ !*** ./src/ui/MainMenu/Headers.ts ***! \************************************/ @@ -54010,7 +54253,7 @@ exports.Crime = Crime; Object.defineProperty(exports, "__esModule", { value: true }); // Implement the collapsible main menu headers -const Links_1 = __webpack_require__(/*! ./Links */ 29); +const Links_1 = __webpack_require__(/*! ./Links */ 26); exports.MainMenuHeaders = { Hacking: null, Character: null, @@ -54144,7 +54387,7 @@ exports.initializeMainMenuHeaders = initializeMainMenuHeaders; /***/ }), -/* 153 */ +/* 154 */ /*!*************************************!*\ !*** ./src/ui/setSettingsLabels.js ***! \*************************************/ @@ -54270,7 +54513,7 @@ function setSettingsLabels() { /***/ }), -/* 154 */ +/* 155 */ /*!**********************************!*\ !*** ./src/CharacterOverview.js ***! \**********************************/ @@ -54345,7 +54588,7 @@ CharacterOverview.prototype.update = function() { /***/ }), -/* 155 */ +/* 156 */ /*!******************************!*\ !*** ./src/JSInterpreter.js ***! \******************************/ @@ -54355,7 +54598,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 */ 52); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/acorn */ 54); /* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_0__); /** @@ -58147,36 +58390,6 @@ Interpreter.prototype['createPrimitive'] = function(x) {return x;}; -/***/ }), -/* 156 */ -/*!***************************************!*\ - !*** ./utils/helpers/isPowerOfTwo.ts ***! - \***************************************/ -/*! no static exports found */ -/*! exports used: isPowerOfTwo */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Determines if the number is a power of 2 - * @param n The number to check. - */ -function isPowerOfTwo(n) { - if (isNaN(n)) { - return false; - } - if (n === 0) { - return false; - } - // Disabiling the bitwise rule because it's honestly the most effecient way to check for this. - // tslint:disable-next-line:no-bitwise - return (n & (n - 1)) === 0; -} -exports.isPowerOfTwo = isPowerOfTwo; - - /***/ }), /* 157 */ /*!*************************************************!*\ @@ -58690,7 +58903,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 */ 49); +/* harmony import */ var _src_Faction_FactionHelpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/Faction/FactionHelpers */ 51); /* harmony import */ var _src_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../src/engine */ 11); /* 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 */ 21); @@ -60256,7 +60469,7 @@ exports.serverMetadata = [ /* harmony import */ var _src_BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_src_BitNode_BitNodeMultipliers__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _src_Constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/Constants */ 1); /* harmony import */ var _src_Constants__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_src_Constants__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _src_Faction_Faction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../src/Faction/Faction */ 61); +/* harmony import */ var _src_Faction_Faction__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../src/Faction/Faction */ 62); /* harmony import */ var _src_Faction_Faction__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_src_Faction_Faction__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var _src_Faction_Factions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../src/Faction/Factions */ 16); /* harmony import */ var _src_Faction_Factions__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_src_Faction_Factions__WEBPACK_IMPORTED_MODULE_6__); @@ -61551,7 +61764,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); * Implements the Resleeve class, which defines a new body * that the player can "re-sleeve" into. */ -const Person_1 = __webpack_require__(/*! ../Person */ 146); +const Person_1 = __webpack_require__(/*! ../Person */ 147); const Augmentations_1 = __webpack_require__(/*! ../../Augmentation/Augmentations */ 14); const JSONReviver_1 = __webpack_require__(/*! ../../../utils/JSONReviver */ 15); class Resleeve extends Person_1.Person { @@ -61625,7 +61838,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); */ const Resleeve_1 = __webpack_require__(/*! ./Resleeve */ 225); const Augmentations_1 = __webpack_require__(/*! ../../Augmentation/Augmentations */ 14); -const PlayerOwnedAugmentation_1 = __webpack_require__(/*! ../../Augmentation/PlayerOwnedAugmentation */ 88); +const PlayerOwnedAugmentation_1 = __webpack_require__(/*! ../../Augmentation/PlayerOwnedAugmentation */ 89); const AugmentationNames_1 = __webpack_require__(/*! ../../Augmentation/data/AugmentationNames */ 6); const getRandomInt_1 = __webpack_require__(/*! ../../../utils/helpers/getRandomInt */ 17); // Executes the actual re-sleeve when one is purchased @@ -61965,7 +62178,7 @@ exports.Program = Program; /***/ }), /* 238 */ /*!*****************************************************!*\ - !*** ./src/ScriptEditor/CodeMirrorNetscriptHint.js ***! + !*** ./src/ScriptEditor/CodeMirrorNetscriptLint.js ***! \*****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -61975,7 +62188,7 @@ exports.Program = Program; (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! codemirror/lib/codemirror */ 54)); + mod(__webpack_require__(/*! codemirror/lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -62002,8 +62215,12 @@ exports.Program = Program; } const sanitizedText = splitText.join("\n"); + // Configure JSHINT options if (!options.indent) // JSHint error.character actually is a column index, this fixes underlining on lines using tabs for indentation options.indent = 1; // JSHint default value is 4 + + options.esversion = 6; + JSHINT(sanitizedText, options, options.globals); var errors = JSHINT.data().errors, result = []; if (errors) parseErrors(errors, result); @@ -62050,7 +62267,8 @@ exports.Program = Program; /***/ }), /* 239 */, /* 240 */, -/* 241 */ +/* 241 */, +/* 242 */ /*!*****************************************************!*\ !*** ./src/ScriptEditor/CodeMirrorNetscriptMode.js ***! \*****************************************************/ @@ -62062,7 +62280,7 @@ exports.Program = Program; (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! codemirror/lib/codemirror.js */ 54)); + mod(__webpack_require__(/*! codemirror/lib/codemirror.js */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -63185,8 +63403,8 @@ CodeMirror.defineMIME("application/typescript", { name: "netscript", typescript: /***/ }), -/* 242 */, -/* 243 */ +/* 243 */, +/* 244 */ /*!***************************************!*\ !*** ./css/codemirror-overrides.scss ***! \***************************************/ @@ -63196,7 +63414,7 @@ CodeMirror.defineMIME("application/typescript", { name: "netscript", typescript: // extracted by mini-css-extract-plugin /***/ }), -/* 244 */ +/* 245 */ /*!**********************************************!*\ !*** ./src/ScriptEditor/AceNetscriptMode.js ***! \**********************************************/ @@ -64042,7 +64260,7 @@ oop.inherits(Mode, TextMode); }; this.createWorker = function(session) { - var worker = new WorkerClient(["ace"], __webpack_require__(/*! brace/worker/javascript */ 245), "JavaScriptWorker"); + var worker = new WorkerClient(["ace"], __webpack_require__(/*! brace/worker/javascript */ 246), "JavaScriptWorker"); worker.attachToDocument(session.getDocument()); worker.on("annotate", function(results) { @@ -64064,11 +64282,11 @@ exports.Mode = Mode; /***/ }), -/* 245 */, /* 246 */, /* 247 */, /* 248 */, -/* 249 */ +/* 249 */, +/* 250 */ /*!*****************************************!*\ !*** ./src/data/codingcontracttypes.ts ***! \*****************************************/ @@ -64549,7 +64767,7 @@ exports.codingContractTypesMetadata = [ /***/ }), -/* 250 */ +/* 251 */ /*!*************************************************!*\ !*** ./src/Corporation/ProductRatingWeights.ts ***! \*************************************************/ @@ -64629,7 +64847,7 @@ exports.ProductRatingWeights = { /***/ }), -/* 251 */ +/* 252 */ /*!*****************************************!*\ !*** ./src/Corporation/ResearchTree.ts ***! \*****************************************/ @@ -64640,7 +64858,7 @@ exports.ProductRatingWeights = { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const ResearchMap_1 = __webpack_require__(/*! ./ResearchMap */ 113); +const ResearchMap_1 = __webpack_require__(/*! ./ResearchMap */ 114); class Node { constructor(p = { cost: 0, text: "" }) { // All child Nodes in the tree @@ -64871,7 +65089,7 @@ exports.ResearchTree = ResearchTree; /***/ }), -/* 252 */ +/* 253 */ /*!**************************************************!*\ !*** ./src/Corporation/data/ResearchMetadata.ts ***! \**************************************************/ @@ -65004,7 +65222,7 @@ exports.researchMetadata = [ /***/ }), -/* 253 */ +/* 254 */ /*!*************************************!*\ !*** ./src/Corporation/Research.ts ***! \*************************************/ @@ -65069,7 +65287,7 @@ exports.Research = Research; /***/ }), -/* 254 */ +/* 255 */ /*!**************************************************!*\ !*** ./src/Corporation/data/BaseResearchTree.ts ***! \**************************************************/ @@ -65080,8 +65298,8 @@ exports.Research = Research; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const ResearchMap_1 = __webpack_require__(/*! ../ResearchMap */ 113); -const ResearchTree_1 = __webpack_require__(/*! ../ResearchTree */ 251); +const ResearchMap_1 = __webpack_require__(/*! ../ResearchMap */ 114); +const ResearchTree_1 = __webpack_require__(/*! ../ResearchTree */ 252); function makeNode(name) { const research = ResearchMap_1.ResearchMap[name]; if (research == null) { @@ -65127,7 +65345,7 @@ exports.getBaseResearchTreeCopy = getBaseResearchTreeCopy; /***/ }), -/* 255 */ +/* 256 */ /*!***********************************************!*\ !*** ./src/Company/data/CompaniesMetadata.ts ***! \***********************************************/ @@ -65519,7 +65737,7 @@ exports.companiesMetadata = [ /***/ }), -/* 256 */ +/* 257 */ /*!******************************************************!*\ !*** ./src/Company/data/CompanyPositionsMetadata.ts ***! \******************************************************/ @@ -66132,7 +66350,6 @@ exports.companyPositionMetadata = [ /***/ }), -/* 257 */, /* 258 */, /* 259 */, /* 260 */, @@ -66168,7 +66385,8 @@ exports.companyPositionMetadata = [ /* 290 */, /* 291 */, /* 292 */, -/* 293 */ +/* 293 */, +/* 294 */ /*!**********************!*\ !*** util (ignored) ***! \**********************/ @@ -66179,7 +66397,7 @@ exports.companyPositionMetadata = [ /* (ignored) */ /***/ }), -/* 294 */ +/* 295 */ /*!**********************!*\ !*** util (ignored) ***! \**********************/ diff --git a/dist/engine.css b/dist/engine.css index f53467409..7a5edb72f 100644 --- a/dist/engine.css +++ b/dist/engine.css @@ -5,7 +5,7 @@ */ #codemirror-form-wrapper { height: 80%; - margin: 10px 0px 10px 6px; } + margin: 10px 0px 0px 6px; } .CodeMirror { height: 100%; @@ -32,6 +32,15 @@ pointer-events: none; color: #404F7D; } +/** + * Vim command display + */ +#codemirror-vim-command-display-wrapper { + background-color: white; + font-size: 13px; + height: 30px; + margin-left: 6px; } + /* COLORS */ /* Attributes */ /* COLORS */ @@ -886,7 +895,8 @@ button { padding: 2px; overflow: auto; z-index: 1; - color: #fff; } + color: #fff; + max-height: 50%; } #script-editor-options-panel fieldset { margin-top: 8px; diff --git a/dist/vendor.bundle.js b/dist/vendor.bundle.js index 0193858f4..48fa1047f 100644 --- a/dist/vendor.bundle.js +++ b/dist/vendor.bundle.js @@ -4803,11 +4803,7 @@ PI = new Decimal(pi); /* 47 */, /* 48 */, /* 49 */, -/* 50 */, -/* 51 */, -/* 52 */, -/* 53 */, -/* 54 */ +/* 50 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/lib/codemirror.js ***! \***************************************************/ @@ -14549,6 +14545,10 @@ PI = new Decimal(pi); /***/ }), +/* 51 */, +/* 52 */, +/* 53 */, +/* 54 */, /* 55 */, /* 56 */, /* 57 */, @@ -14565,7 +14565,8 @@ PI = new Decimal(pi); /* 68 */, /* 69 */, /* 70 */, -/* 71 */ +/* 71 */, +/* 72 */ /*!********************************************!*\ !*** ./node_modules/jquery/dist/jquery.js ***! \********************************************/ @@ -24941,13 +24942,13 @@ return jQuery; /***/ }), -/* 72 */, /* 73 */, /* 74 */, /* 75 */, /* 76 */, /* 77 */, -/* 78 */ +/* 78 */, +/* 79 */ /*!*****************************************!*\ !*** ./node_modules/jszip/lib/utils.js ***! \*****************************************/ @@ -24958,11 +24959,11 @@ return jQuery; "use strict"; -var support = __webpack_require__(/*! ./support */ 125); -var base64 = __webpack_require__(/*! ./base64 */ 289); +var support = __webpack_require__(/*! ./support */ 126); +var base64 = __webpack_require__(/*! ./base64 */ 290); var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 170); -var setImmediate = __webpack_require__(/*! core-js/library/fn/set-immediate */ 483); -var external = __webpack_require__(/*! ./external */ 148); +var setImmediate = __webpack_require__(/*! core-js/library/fn/set-immediate */ 486); +var external = __webpack_require__(/*! ./external */ 149); /** @@ -25435,7 +25436,6 @@ exports.prepareContent = function(name, inputData, isBinary, isOptimizedBinarySt /***/ }), -/* 79 */, /* 80 */, /* 81 */, /* 82 */, @@ -25449,7 +25449,8 @@ exports.prepareContent = function(name, inputData, isBinary, isOptimizedBinarySt /* 90 */, /* 91 */, /* 92 */, -/* 93 */ +/* 93 */, +/* 94 */ /*!*****************************************!*\ !*** ./node_modules/numeral/numeral.js ***! \*****************************************/ @@ -26473,10 +26474,10 @@ return numeral; /***/ }), -/* 94 */, /* 95 */, /* 96 */, -/* 97 */ +/* 97 */, +/* 98 */ /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! \***********************************/ @@ -26507,12 +26508,12 @@ module.exports = g; /***/ }), -/* 98 */, /* 99 */, /* 100 */, /* 101 */, /* 102 */, -/* 103 */ +/* 103 */, +/* 104 */ /*!********************************************************!*\ !*** ./node_modules/jszip/lib/stream/GenericWorker.js ***! \********************************************************/ @@ -26787,14 +26788,14 @@ module.exports = GenericWorker; /***/ }), -/* 104 */, /* 105 */, /* 106 */, /* 107 */, /* 108 */, /* 109 */, /* 110 */, -/* 111 */ +/* 111 */, +/* 112 */ /*!**************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/flag.js ***! \**************************************************/ @@ -26838,7 +26839,6 @@ module.exports = function flag(obj, key, value) { /***/ }), -/* 112 */, /* 113 */, /* 114 */, /* 115 */, @@ -26850,7 +26850,8 @@ module.exports = function flag(obj, key, value) { /* 121 */, /* 122 */, /* 123 */, -/* 124 */ +/* 124 */, +/* 125 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/utils/common.js ***! \***********************************************/ @@ -26967,7 +26968,7 @@ exports.setTyped(TYPED_OK); /***/ }), -/* 125 */ +/* 126 */ /*!*******************************************!*\ !*** ./node_modules/jszip/lib/support.js ***! \*******************************************/ @@ -27010,15 +27011,15 @@ else { } try { - exports.nodestream = !!__webpack_require__(/*! readable-stream */ 297).Readable; + exports.nodestream = !!__webpack_require__(/*! readable-stream */ 298).Readable; } catch(e) { exports.nodestream = false; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 150).Buffer)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 151).Buffer)) /***/ }), -/* 126 */ +/* 127 */ /*!*********************************************!*\ !*** ./node_modules/escodegen/escodegen.js ***! \*********************************************/ @@ -27092,8 +27093,8 @@ try { FORMAT_MINIFY, FORMAT_DEFAULTS; - estraverse = __webpack_require__(/*! estraverse */ 445); - esutils = __webpack_require__(/*! esutils */ 443); + estraverse = __webpack_require__(/*! estraverse */ 448); + esutils = __webpack_require__(/*! esutils */ 446); Syntax = estraverse.Syntax; @@ -29573,7 +29574,7 @@ try { if (!exports.browser) { // We assume environment is node.js // And prevent from including source-map by browserify - SourceNode = __webpack_require__(/*! source-map */ 440).SourceNode; + SourceNode = __webpack_require__(/*! source-map */ 443).SourceNode; } else { SourceNode = global.sourceMap.SourceNode; } @@ -29620,7 +29621,7 @@ try { FORMAT_DEFAULTS = getDefaultOptions().format; - exports.version = __webpack_require__(/*! ./package.json */ 433).version; + exports.version = __webpack_require__(/*! ./package.json */ 436).version; exports.generate = generate; exports.attachComments = estraverse.attachComments; exports.Precedence = updateDeeply({}, Precedence); @@ -29630,10 +29631,10 @@ try { }()); /* vim: set sw=4 ts=4 et tw=80 : */ -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98))) /***/ }), -/* 127 */ +/* 128 */ /*!***********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/transferFlags.js ***! \***********************************************************/ @@ -29689,7 +29690,7 @@ module.exports = function transferFlags(assertion, object, includeAll) { /***/ }), -/* 128 */ +/* 129 */ /*!**********************************************!*\ !*** ./node_modules/chai/lib/chai/config.js ***! \**********************************************/ @@ -29794,7 +29795,7 @@ module.exports = { /***/ }), -/* 129 */ +/* 130 */ /*!***************************************!*\ !*** ./node_modules/chai/lib/chai.js ***! \***************************************/ @@ -29820,13 +29821,13 @@ exports.version = '4.1.2'; * Assertion Error */ -exports.AssertionError = __webpack_require__(/*! assertion-error */ 263); +exports.AssertionError = __webpack_require__(/*! assertion-error */ 264); /*! * Utils for plugins (not exported) */ -var util = __webpack_require__(/*! ./chai/utils */ 428); +var util = __webpack_require__(/*! ./chai/utils */ 431); /** * # .use(function) @@ -29857,47 +29858,47 @@ exports.util = util; * Configuration */ -var config = __webpack_require__(/*! ./chai/config */ 128); +var config = __webpack_require__(/*! ./chai/config */ 129); exports.config = config; /*! * Primary `Assertion` prototype */ -var assertion = __webpack_require__(/*! ./chai/assertion */ 412); +var assertion = __webpack_require__(/*! ./chai/assertion */ 415); exports.use(assertion); /*! * Core Assertions */ -var core = __webpack_require__(/*! ./chai/core/assertions */ 411); +var core = __webpack_require__(/*! ./chai/core/assertions */ 414); exports.use(core); /*! * Expect interface */ -var expect = __webpack_require__(/*! ./chai/interface/expect */ 410); +var expect = __webpack_require__(/*! ./chai/interface/expect */ 413); exports.use(expect); /*! * Should interface */ -var should = __webpack_require__(/*! ./chai/interface/should */ 409); +var should = __webpack_require__(/*! ./chai/interface/should */ 412); exports.use(should); /*! * Assert interface */ -var assert = __webpack_require__(/*! ./chai/interface/assert */ 408); +var assert = __webpack_require__(/*! ./chai/interface/assert */ 411); exports.use(assert); /***/ }), -/* 130 */ +/* 131 */ /*!************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_duplex.js ***! \************************************************************/ @@ -29951,11 +29952,11 @@ var objectKeys = Object.keys || function (obj) { module.exports = Duplex; /**/ -var util = __webpack_require__(/*! core-util-is */ 149); -util.inherits = __webpack_require__(/*! inherits */ 131); +var util = __webpack_require__(/*! core-util-is */ 150); +util.inherits = __webpack_require__(/*! inherits */ 132); /**/ -var Readable = __webpack_require__(/*! ./_stream_readable */ 296); +var Readable = __webpack_require__(/*! ./_stream_readable */ 297); var Writable = __webpack_require__(/*! ./_stream_writable */ 233); util.inherits(Duplex, Readable); @@ -30032,7 +30033,7 @@ function forEach(xs, f) { } /***/ }), -/* 131 */ +/* 132 */ /*!***************************************************!*\ !*** ./node_modules/inherits/inherits_browser.js ***! \***************************************************/ @@ -30066,7 +30067,6 @@ if (typeof Object.create === 'function') { /***/ }), -/* 132 */, /* 133 */, /* 134 */, /* 135 */, @@ -30075,7 +30075,8 @@ if (typeof Object.create === 'function') { /* 138 */, /* 139 */, /* 140 */, -/* 141 */ +/* 141 */, +/* 142 */ /*!****************************************!*\ !*** ./node_modules/jszip/lib/utf8.js ***! \****************************************/ @@ -30086,10 +30087,10 @@ if (typeof Object.create === 'function') { "use strict"; -var utils = __webpack_require__(/*! ./utils */ 78); -var support = __webpack_require__(/*! ./support */ 125); +var utils = __webpack_require__(/*! ./utils */ 79); +var support = __webpack_require__(/*! ./support */ 126); var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 170); -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 103); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 104); /** * The following functions come from pako, from pako/lib/utils/strings @@ -30362,7 +30363,7 @@ exports.Utf8EncodeWorker = Utf8EncodeWorker; /***/ }), -/* 142 */ +/* 143 */ /*!***************************************!*\ !*** ./node_modules/events/events.js ***! \***************************************/ @@ -30675,7 +30676,7 @@ function isUndefined(arg) { /***/ }), -/* 143 */ +/* 144 */ /*!*****************************************!*\ !*** ./node_modules/process/browser.js ***! \*****************************************/ @@ -30870,7 +30871,7 @@ process.umask = function() { return 0; }; /***/ }), -/* 144 */ +/* 145 */ /*!********************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/util.js ***! \********************************************************************/ @@ -31369,10 +31370,10 @@ exports.computeSourceURL = computeSourceURL; /***/ }), -/* 145 */, /* 146 */, /* 147 */, -/* 148 */ +/* 148 */, +/* 149 */ /*!********************************************!*\ !*** ./node_modules/jszip/lib/external.js ***! \********************************************/ @@ -31391,7 +31392,7 @@ var ES6Promise = null; if (typeof Promise !== "undefined") { ES6Promise = Promise; } else { - ES6Promise = __webpack_require__(/*! lie */ 469); + ES6Promise = __webpack_require__(/*! lie */ 472); } /** @@ -31403,7 +31404,7 @@ module.exports = { /***/ }), -/* 149 */ +/* 150 */ /*!***********************************************!*\ !*** ./node_modules/core-util-is/lib/util.js ***! \***********************************************/ @@ -31519,10 +31520,10 @@ function objectToString(o) { return Object.prototype.toString.call(o); } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 150).Buffer)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 151).Buffer)) /***/ }), -/* 150 */ +/* 151 */ /*!**************************************!*\ !*** ./node_modules/buffer/index.js ***! \**************************************/ @@ -31541,9 +31542,9 @@ function objectToString(o) { -var base64 = __webpack_require__(/*! base64-js */ 493) -var ieee754 = __webpack_require__(/*! ieee754 */ 492) -var isArray = __webpack_require__(/*! isarray */ 298) +var base64 = __webpack_require__(/*! base64-js */ 496) +var ieee754 = __webpack_require__(/*! ieee754 */ 495) +var isArray = __webpack_require__(/*! isarray */ 299) exports.Buffer = Buffer exports.SlowBuffer = SlowBuffer @@ -33321,10 +33322,9 @@ function isnan (val) { return val !== val // eslint-disable-line no-self-compare } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98))) /***/ }), -/* 151 */, /* 152 */, /* 153 */, /* 154 */, @@ -33346,9 +33346,9 @@ function isnan (val) { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var config = __webpack_require__(/*! ../config */ 128); -var flag = __webpack_require__(/*! ./flag */ 111); -var getProperties = __webpack_require__(/*! ./getProperties */ 260); +var config = __webpack_require__(/*! ../config */ 129); +var flag = __webpack_require__(/*! ./flag */ 112); +var getProperties = __webpack_require__(/*! ./getProperties */ 261); var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 167); /*! @@ -33482,7 +33482,7 @@ function stringDistance(strA, strB, memo) { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var config = __webpack_require__(/*! ../config */ 128); +var config = __webpack_require__(/*! ../config */ 129); var fnLengthDesc = Object.getOwnPropertyDescriptor(function () {}, 'length'); @@ -33555,7 +33555,7 @@ module.exports = function addLengthGuard (fn, assertionName, isChainable) { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var config = __webpack_require__(/*! ../config */ 128); +var config = __webpack_require__(/*! ../config */ 129); /*! * Chai - isProxyEnabled helper @@ -33593,10 +33593,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 */ 261); -var getProperties = __webpack_require__(/*! ./getProperties */ 260); -var getEnumerableProperties = __webpack_require__(/*! ./getEnumerableProperties */ 423); -var config = __webpack_require__(/*! ../config */ 128); +var getName = __webpack_require__(/*! get-func-name */ 262); +var getProperties = __webpack_require__(/*! ./getProperties */ 261); +var getEnumerableProperties = __webpack_require__(/*! ./getEnumerableProperties */ 426); +var config = __webpack_require__(/*! ../config */ 129); module.exports = inspect; @@ -34052,7 +34052,7 @@ module.exports = { } }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 150).Buffer)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ 151).Buffer)) /***/ }), /* 171 */ @@ -34064,7 +34064,7 @@ module.exports = { /***/ (function(module, exports, __webpack_require__) { /* eslint-disable node/no-deprecated-api */ -var buffer = __webpack_require__(/*! buffer */ 150) +var buffer = __webpack_require__(/*! buffer */ 151) var Buffer = buffer.Buffer // alternative to using Object.keys for old browsers @@ -34182,7 +34182,7 @@ function nextTick(fn, arg1, arg2, arg3) { } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ 143))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../process/browser.js */ 144))) /***/ }), /* 173 */ @@ -51291,7 +51291,7 @@ function nextTick(fn, arg1, arg2, arg3) { else {} }.call(this)); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97), __webpack_require__(/*! ./../webpack/buildin/module.js */ 510)(module))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98), __webpack_require__(/*! ./../webpack/buildin/module.js */ 513)(module))) /***/ }), /* 174 */ @@ -51307,7 +51307,7 @@ function nextTick(fn, arg1, arg2, arg3) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { var ie_lt8 = /MSIE \d/.test(navigator.userAgent) && @@ -52319,7 +52319,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 */ 246) !== null) && (__webpack_require__(/*! !webpack amd options */ 446) !== null)) { +} else if (("function" !== "undefined" && __webpack_require__(/*! !webpack amd define */ 247) !== null) && (__webpack_require__(/*! !webpack amd options */ 449) !== null)) { !(__WEBPACK_AMD_DEFINE_RESULT__ = (function() { return saveAs; }).call(exports, __webpack_require__, exports, module), @@ -52374,10 +52374,10 @@ function JSZip() { return newObj; }; } -JSZip.prototype = __webpack_require__(/*! ./object */ 494); -JSZip.prototype.loadAsync = __webpack_require__(/*! ./load */ 451); -JSZip.support = __webpack_require__(/*! ./support */ 125); -JSZip.defaults = __webpack_require__(/*! ./defaults */ 283); +JSZip.prototype = __webpack_require__(/*! ./object */ 497); +JSZip.prototype.loadAsync = __webpack_require__(/*! ./load */ 454); +JSZip.support = __webpack_require__(/*! ./support */ 126); +JSZip.defaults = __webpack_require__(/*! ./defaults */ 284); // TODO find a better way to handle this version, // a require('package.json').version doesn't work with webpack, see #327 @@ -52387,7 +52387,7 @@ JSZip.loadAsync = function (content, options) { return new JSZip().loadAsync(content, options); }; -JSZip.external = __webpack_require__(/*! ./external */ 148); +JSZip.external = __webpack_require__(/*! ./external */ 149); module.exports = JSZip; @@ -53081,7 +53081,7 @@ return typeDetect; }))); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98))) /***/ }), /* 181 */, @@ -53186,7 +53186,7 @@ module.exports = { "use strict"; -var utils = __webpack_require__(/*! ./utils */ 78); +var utils = __webpack_require__(/*! ./utils */ 79); /** * The following functions come from pako, from pako/lib/zlib/crc32.js @@ -53275,11 +53275,11 @@ module.exports = function crc32wrapper(input, crc) { "use strict"; -var external = __webpack_require__(/*! ./external */ 148); -var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 282); -var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 281); -var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 280); -var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 281); +var external = __webpack_require__(/*! ./external */ 149); +var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 283); +var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 282); +var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 281); +var DataLengthProbe = __webpack_require__(/*! ./stream/DataLengthProbe */ 282); /** * Represent a compressed object, with everything needed to decompress it. @@ -53360,7 +53360,7 @@ module.exports = CompressedObject; /***/ (function(module, exports, __webpack_require__) { // Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(/*! ./_fails */ 286)(function(){ +module.exports = !__webpack_require__(/*! ./_fails */ 287)(function(){ return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; }); @@ -53453,18 +53453,18 @@ var Duplex; Writable.WritableState = WritableState; /**/ -var util = __webpack_require__(/*! core-util-is */ 149); -util.inherits = __webpack_require__(/*! inherits */ 131); +var util = __webpack_require__(/*! core-util-is */ 150); +util.inherits = __webpack_require__(/*! inherits */ 132); /**/ /**/ var internalUtil = { - deprecate: __webpack_require__(/*! util-deprecate */ 489) + deprecate: __webpack_require__(/*! util-deprecate */ 492) }; /**/ /**/ -var Stream = __webpack_require__(/*! ./internal/streams/stream */ 295); +var Stream = __webpack_require__(/*! ./internal/streams/stream */ 296); /**/ /**/ @@ -53480,14 +53480,14 @@ function _isUint8Array(obj) { /**/ -var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 292); +var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 293); util.inherits(Writable, Stream); function nop() {} function WritableState(options, stream) { - Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 130); + Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 131); options = options || {}; @@ -53637,7 +53637,7 @@ if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.protot } function Writable(options) { - Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 130); + Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 131); // Writable ctor is applied to Duplexes, too. // `realHasInstance` is necessary because using plain `instanceof` @@ -54064,7 +54064,7 @@ Writable.prototype._destroy = function (err, cb) { this.end(); cb(err); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ 143), __webpack_require__(/*! ./../../timers-browserify/main.js */ 391).setImmediate, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 97))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ 144), __webpack_require__(/*! ./../../timers-browserify/main.js */ 394).setImmediate, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 98))) /***/ }), /* 234 */ @@ -54075,13 +54075,13 @@ Writable.prototype._destroy = function (err, cb) { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ 296); +exports = module.exports = __webpack_require__(/*! ./lib/_stream_readable.js */ 297); exports.Stream = exports; exports.Readable = exports; exports.Writable = __webpack_require__(/*! ./lib/_stream_writable.js */ 233); -exports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ 130); -exports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ 290); -exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 488); +exports.Duplex = __webpack_require__(/*! ./lib/_stream_duplex.js */ 131); +exports.Transform = __webpack_require__(/*! ./lib/_stream_transform.js */ 291); +exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 491); /***/ }), @@ -54102,7 +54102,7 @@ exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 48 (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -54250,6 +54250,175 @@ exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 48 /***/ }), /* 240 */ +/*!********************************************************!*\ + !*** ./node_modules/codemirror/addon/dialog/dialog.js ***! + \********************************************************/ +/*! no static exports found */ +/*! all exports used */ +/***/ (function(module, exports, __webpack_require__) { + +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: https://codemirror.net/LICENSE + +// Open simple dialogs on top of an editor. Relies on dialog.css. + +(function(mod) { + if (true) // CommonJS + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); + else {} +})(function(CodeMirror) { + function dialogDiv(cm, template, bottom) { + var wrap = cm.getWrapperElement(); + var dialog; + dialog = wrap.appendChild(document.createElement("div")); + if (bottom) + dialog.className = "CodeMirror-dialog CodeMirror-dialog-bottom"; + else + dialog.className = "CodeMirror-dialog CodeMirror-dialog-top"; + + if (typeof template == "string") { + dialog.innerHTML = template; + } else { // Assuming it's a detached DOM element. + dialog.appendChild(template); + } + CodeMirror.addClass(wrap, 'dialog-opened'); + return dialog; + } + + function closeNotification(cm, newVal) { + if (cm.state.currentNotificationClose) + cm.state.currentNotificationClose(); + cm.state.currentNotificationClose = newVal; + } + + CodeMirror.defineExtension("openDialog", function(template, callback, options) { + if (!options) options = {}; + + closeNotification(this, null); + + var dialog = dialogDiv(this, template, options.bottom); + var closed = false, me = this; + function close(newVal) { + if (typeof newVal == 'string') { + inp.value = newVal; + } else { + if (closed) return; + closed = true; + CodeMirror.rmClass(dialog.parentNode, 'dialog-opened'); + dialog.parentNode.removeChild(dialog); + me.focus(); + + if (options.onClose) options.onClose(dialog); + } + } + + var inp = dialog.getElementsByTagName("input")[0], button; + if (inp) { + inp.focus(); + + if (options.value) { + inp.value = options.value; + if (options.selectValueOnOpen !== false) { + inp.select(); + } + } + + if (options.onInput) + CodeMirror.on(inp, "input", function(e) { options.onInput(e, inp.value, close);}); + if (options.onKeyUp) + CodeMirror.on(inp, "keyup", function(e) {options.onKeyUp(e, inp.value, close);}); + + CodeMirror.on(inp, "keydown", function(e) { + if (options && options.onKeyDown && options.onKeyDown(e, inp.value, close)) { return; } + if (e.keyCode == 27 || (options.closeOnEnter !== false && e.keyCode == 13)) { + inp.blur(); + CodeMirror.e_stop(e); + close(); + } + if (e.keyCode == 13) callback(inp.value, e); + }); + + if (options.closeOnBlur !== false) CodeMirror.on(inp, "blur", close); + } else if (button = dialog.getElementsByTagName("button")[0]) { + CodeMirror.on(button, "click", function() { + close(); + me.focus(); + }); + + if (options.closeOnBlur !== false) CodeMirror.on(button, "blur", close); + + button.focus(); + } + return close; + }); + + CodeMirror.defineExtension("openConfirm", function(template, callbacks, options) { + closeNotification(this, null); + var dialog = dialogDiv(this, template, options && options.bottom); + var buttons = dialog.getElementsByTagName("button"); + var closed = false, me = this, blurring = 1; + function close() { + if (closed) return; + closed = true; + CodeMirror.rmClass(dialog.parentNode, 'dialog-opened'); + dialog.parentNode.removeChild(dialog); + me.focus(); + } + buttons[0].focus(); + for (var i = 0; i < buttons.length; ++i) { + var b = buttons[i]; + (function(callback) { + CodeMirror.on(b, "click", function(e) { + CodeMirror.e_preventDefault(e); + close(); + if (callback) callback(me); + }); + })(callbacks[i]); + CodeMirror.on(b, "blur", function() { + --blurring; + setTimeout(function() { if (blurring <= 0) close(); }, 200); + }); + CodeMirror.on(b, "focus", function() { ++blurring; }); + } + }); + + /* + * openNotification + * Opens a notification, that can be closed with an optional timer + * (default 5000ms timer) and always closes on click. + * + * If a notification is opened while another is opened, it will close the + * currently opened one and open the new one immediately. + */ + CodeMirror.defineExtension("openNotification", function(template, options) { + closeNotification(this, close); + var dialog = dialogDiv(this, template, options && options.bottom); + var closed = false, doneTimer; + var duration = options && typeof options.duration !== "undefined" ? options.duration : 5000; + + function close() { + if (closed) return; + closed = true; + clearTimeout(doneTimer); + CodeMirror.rmClass(dialog.parentNode, 'dialog-opened'); + dialog.parentNode.removeChild(dialog); + } + + CodeMirror.on(dialog, 'click', function(e) { + CodeMirror.e_preventDefault(e); + close(); + }); + + if (duration) + doneTimer = setTimeout(close, duration); + + return close; + }); +}); + + +/***/ }), +/* 241 */ /*!**************************************************************!*\ !*** ./node_modules/codemirror/addon/search/searchcursor.js ***! \**************************************************************/ @@ -54262,7 +54431,7 @@ exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 48 (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)) + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)) else {} })(function(CodeMirror) { "use strict" @@ -54550,11 +54719,11 @@ exports.PassThrough = __webpack_require__(/*! ./lib/_stream_passthrough.js */ 48 /***/ }), -/* 241 */, /* 242 */, /* 243 */, /* 244 */, -/* 245 */ +/* 245 */, +/* 246 */ /*!*************************************************!*\ !*** ./node_modules/brace/worker/javascript.js ***! \*************************************************/ @@ -54566,7 +54735,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)}});"; /***/ }), -/* 246 */ +/* 247 */ /*!***************************************!*\ !*** (webpack)/buildin/amd-define.js ***! \***************************************/ @@ -54580,7 +54749,7 @@ module.exports = function() { /***/ }), -/* 247 */ +/* 248 */ /*!*********************************************************!*\ !*** ./node_modules/js-beautify/js/lib/beautify-css.js ***! \*********************************************************/ @@ -55630,7 +55799,7 @@ if (true) { /***/ }), -/* 248 */ +/* 249 */ /*!*****************************************************!*\ !*** ./node_modules/js-beautify/js/lib/beautify.js ***! \*****************************************************/ @@ -58459,7 +58628,6 @@ if (true) { /***/ }), -/* 249 */, /* 250 */, /* 251 */, /* 252 */, @@ -58467,7 +58635,8 @@ if (true) { /* 254 */, /* 255 */, /* 256 */, -/* 257 */ +/* 257 */, +/* 258 */ /*!*******************************************!*\ !*** ./node_modules/check-error/index.js ***! \*******************************************/ @@ -58651,7 +58820,7 @@ module.exports = { /***/ }), -/* 258 */ +/* 259 */ /*!*****************************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getOwnEnumerablePropertySymbols.js ***! \*****************************************************************************/ @@ -58689,7 +58858,7 @@ module.exports = function getOwnEnumerablePropertySymbols(obj) { /***/ }), -/* 259 */ +/* 260 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/objDisplay.js ***! \********************************************************/ @@ -58708,7 +58877,7 @@ module.exports = function getOwnEnumerablePropertySymbols(obj) { */ var inspect = __webpack_require__(/*! ./inspect */ 168); -var config = __webpack_require__(/*! ../config */ 128); +var config = __webpack_require__(/*! ../config */ 129); /** * ### .objDisplay(object) @@ -58750,7 +58919,7 @@ module.exports = function objDisplay(obj) { /***/ }), -/* 260 */ +/* 261 */ /*!***********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getProperties.js ***! \***********************************************************/ @@ -58797,7 +58966,7 @@ module.exports = function getProperties(object) { /***/ }), -/* 261 */ +/* 262 */ /*!*********************************************!*\ !*** ./node_modules/get-func-name/index.js ***! \*********************************************/ @@ -58853,7 +59022,7 @@ module.exports = getFuncName; /***/ }), -/* 262 */ +/* 263 */ /*!*******************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getActual.js ***! \*******************************************************/ @@ -58884,7 +59053,7 @@ module.exports = function getActual(obj, args) { /***/ }), -/* 263 */ +/* 264 */ /*!***********************************************!*\ !*** ./node_modules/assertion-error/index.js ***! \***********************************************/ @@ -59011,7 +59180,7 @@ AssertionError.prototype.toJSON = function (stack) { /***/ }), -/* 264 */ +/* 265 */ /*!**************************************************!*\ !*** ./node_modules/normalize.css/normalize.css ***! \**************************************************/ @@ -59021,7 +59190,7 @@ AssertionError.prototype.toJSON = function (stack) { // extracted by mini-css-extract-plugin /***/ }), -/* 265 */ +/* 266 */ /*!*************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/array-set.js ***! \*************************************************************************/ @@ -59036,7 +59205,7 @@ AssertionError.prototype.toJSON = function (stack) { * http://opensource.org/licenses/BSD-3-Clause */ -var util = __webpack_require__(/*! ./util */ 144); +var util = __webpack_require__(/*! ./util */ 145); var has = Object.prototype.hasOwnProperty; var hasNativeMap = typeof Map !== "undefined"; @@ -59153,7 +59322,7 @@ exports.ArraySet = ArraySet; /***/ }), -/* 266 */ +/* 267 */ /*!**************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js ***! \**************************************************************************/ @@ -59198,7 +59367,7 @@ exports.ArraySet = ArraySet; * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -var base64 = __webpack_require__(/*! ./base64 */ 439); +var base64 = __webpack_require__(/*! ./base64 */ 442); // 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, @@ -59304,7 +59473,7 @@ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { /***/ }), -/* 267 */ +/* 268 */ /*!************************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js ***! \************************************************************************************/ @@ -59319,10 +59488,10 @@ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { * http://opensource.org/licenses/BSD-3-Clause */ -var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 266); -var util = __webpack_require__(/*! ./util */ 144); -var ArraySet = __webpack_require__(/*! ./array-set */ 265).ArraySet; -var MappingList = __webpack_require__(/*! ./mapping-list */ 438).MappingList; +var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 267); +var util = __webpack_require__(/*! ./util */ 145); +var ArraySet = __webpack_require__(/*! ./array-set */ 266).ArraySet; +var MappingList = __webpack_require__(/*! ./mapping-list */ 441).MappingList; /** * An instance of the SourceMapGenerator represents a source map which is @@ -59740,7 +59909,7 @@ exports.SourceMapGenerator = SourceMapGenerator; /***/ }), -/* 268 */ +/* 269 */ /*!******************************************!*\ !*** ./node_modules/esutils/lib/code.js ***! \******************************************/ @@ -59886,7 +60055,7 @@ exports.SourceMapGenerator = SourceMapGenerator; /***/ }), -/* 269 */ +/* 270 */ /*!***********************************************************!*\ !*** ./node_modules/jszip/lib/reader/Uint8ArrayReader.js ***! \***********************************************************/ @@ -59896,8 +60065,8 @@ exports.SourceMapGenerator = SourceMapGenerator; "use strict"; -var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 271); -var utils = __webpack_require__(/*! ../utils */ 78); +var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 272); +var utils = __webpack_require__(/*! ../utils */ 79); function Uint8ArrayReader(data) { ArrayReader.call(this, data); @@ -59920,7 +60089,7 @@ module.exports = Uint8ArrayReader; /***/ }), -/* 270 */ +/* 271 */ /*!*****************************************************!*\ !*** ./node_modules/jszip/lib/reader/DataReader.js ***! \*****************************************************/ @@ -59930,7 +60099,7 @@ module.exports = Uint8ArrayReader; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 78); +var utils = __webpack_require__(/*! ../utils */ 79); function DataReader(data) { this.data = data; // type : see implementation @@ -60048,7 +60217,7 @@ module.exports = DataReader; /***/ }), -/* 271 */ +/* 272 */ /*!******************************************************!*\ !*** ./node_modules/jszip/lib/reader/ArrayReader.js ***! \******************************************************/ @@ -60058,8 +60227,8 @@ module.exports = DataReader; "use strict"; -var DataReader = __webpack_require__(/*! ./DataReader */ 270); -var utils = __webpack_require__(/*! ../utils */ 78); +var DataReader = __webpack_require__(/*! ./DataReader */ 271); +var utils = __webpack_require__(/*! ../utils */ 79); function ArrayReader(data) { DataReader.call(this, data); @@ -60117,7 +60286,7 @@ module.exports = ArrayReader; /***/ }), -/* 272 */ +/* 273 */ /*!****************************************************!*\ !*** ./node_modules/jszip/lib/reader/readerFor.js ***! \****************************************************/ @@ -60128,12 +60297,12 @@ module.exports = ArrayReader; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 78); -var support = __webpack_require__(/*! ../support */ 125); -var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 271); -var StringReader = __webpack_require__(/*! ./StringReader */ 449); -var NodeBufferReader = __webpack_require__(/*! ./NodeBufferReader */ 448); -var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 269); +var utils = __webpack_require__(/*! ../utils */ 79); +var support = __webpack_require__(/*! ../support */ 126); +var ArrayReader = __webpack_require__(/*! ./ArrayReader */ 272); +var StringReader = __webpack_require__(/*! ./StringReader */ 452); +var NodeBufferReader = __webpack_require__(/*! ./NodeBufferReader */ 451); +var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 270); /** * Create a reader adapted to the data. @@ -60157,7 +60326,7 @@ module.exports = function (data) { /***/ }), -/* 273 */ +/* 274 */ /*!*********************************************!*\ !*** ./node_modules/jszip/lib/signature.js ***! \*********************************************/ @@ -60176,7 +60345,7 @@ exports.DATA_DESCRIPTOR = "PK\x07\x08"; /***/ }), -/* 274 */ +/* 275 */ /*!*************************************************!*\ !*** ./node_modules/pako/lib/zlib/constants.js ***! \*************************************************/ @@ -60256,7 +60425,7 @@ module.exports = { /***/ }), -/* 275 */ +/* 276 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/zstream.js ***! \***********************************************/ @@ -60315,7 +60484,7 @@ module.exports = ZStream; /***/ }), -/* 276 */ +/* 277 */ /*!************************************************!*\ !*** ./node_modules/pako/lib/utils/strings.js ***! \************************************************/ @@ -60328,7 +60497,7 @@ module.exports = ZStream; -var utils = __webpack_require__(/*! ./common */ 124); +var utils = __webpack_require__(/*! ./common */ 125); // Quick check if we can use fast array to bin string conversion @@ -60512,7 +60681,7 @@ exports.utf8border = function (buf, max) { /***/ }), -/* 277 */ +/* 278 */ /*!*********************************************!*\ !*** ./node_modules/pako/lib/zlib/crc32.js ***! \*********************************************/ @@ -60583,7 +60752,7 @@ module.exports = crc32; /***/ }), -/* 278 */ +/* 279 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/adler32.js ***! \***********************************************/ @@ -60646,7 +60815,7 @@ module.exports = adler32; /***/ }), -/* 279 */ +/* 280 */ /*!************************************************!*\ !*** ./node_modules/jszip/lib/compressions.js ***! \************************************************/ @@ -60657,7 +60826,7 @@ module.exports = adler32; "use strict"; -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 103); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 104); exports.STORE = { magic: "\x00\x00", @@ -60668,11 +60837,11 @@ exports.STORE = { return new GenericWorker("STORE decompression"); } }; -exports.DEFLATE = __webpack_require__(/*! ./flate */ 463); +exports.DEFLATE = __webpack_require__(/*! ./flate */ 466); /***/ }), -/* 280 */ +/* 281 */ /*!*****************************************************!*\ !*** ./node_modules/jszip/lib/stream/Crc32Probe.js ***! \*****************************************************/ @@ -60683,9 +60852,9 @@ exports.DEFLATE = __webpack_require__(/*! ./flate */ 463); "use strict"; -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 103); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 104); var crc32 = __webpack_require__(/*! ../crc32 */ 229); -var utils = __webpack_require__(/*! ../utils */ 78); +var utils = __webpack_require__(/*! ../utils */ 79); /** * A worker which calculate the crc32 of the data flowing through. @@ -60708,7 +60877,7 @@ module.exports = Crc32Probe; /***/ }), -/* 281 */ +/* 282 */ /*!**********************************************************!*\ !*** ./node_modules/jszip/lib/stream/DataLengthProbe.js ***! \**********************************************************/ @@ -60719,8 +60888,8 @@ module.exports = Crc32Probe; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 78); -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 103); +var utils = __webpack_require__(/*! ../utils */ 79); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 104); /** * A worker which calculate the total length of the data flowing through. @@ -60749,7 +60918,7 @@ module.exports = DataLengthProbe; /***/ }), -/* 282 */ +/* 283 */ /*!*****************************************************!*\ !*** ./node_modules/jszip/lib/stream/DataWorker.js ***! \*****************************************************/ @@ -60760,8 +60929,8 @@ module.exports = DataLengthProbe; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 78); -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 103); +var utils = __webpack_require__(/*! ../utils */ 79); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 104); // the size of the generated chunks // TODO expose this as a public variable @@ -60877,7 +61046,7 @@ module.exports = DataWorker; /***/ }), -/* 283 */ +/* 284 */ /*!********************************************!*\ !*** ./node_modules/jszip/lib/defaults.js ***! \********************************************/ @@ -60900,7 +61069,7 @@ exports.dosPermissions = null; /***/ }), -/* 284 */ +/* 285 */ /*!*******************************************************!*\ !*** ./node_modules/jszip/lib/stream/StreamHelper.js ***! \*******************************************************/ @@ -60911,17 +61080,17 @@ exports.dosPermissions = null; "use strict"; /* WEBPACK VAR INJECTION */(function(Buffer) { -var utils = __webpack_require__(/*! ../utils */ 78); -var ConvertWorker = __webpack_require__(/*! ./ConvertWorker */ 467); -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 103); -var base64 = __webpack_require__(/*! ../base64 */ 289); -var support = __webpack_require__(/*! ../support */ 125); -var external = __webpack_require__(/*! ../external */ 148); +var utils = __webpack_require__(/*! ../utils */ 79); +var ConvertWorker = __webpack_require__(/*! ./ConvertWorker */ 470); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 104); +var base64 = __webpack_require__(/*! ../base64 */ 290); +var support = __webpack_require__(/*! ../support */ 126); +var external = __webpack_require__(/*! ../external */ 149); var NodejsStreamOutputAdapter = null; if (support.nodestream) { try { - NodejsStreamOutputAdapter = __webpack_require__(/*! ../nodejs/NodejsStreamOutputAdapter */ 466); + NodejsStreamOutputAdapter = __webpack_require__(/*! ../nodejs/NodejsStreamOutputAdapter */ 469); } catch(e) {} } @@ -61122,10 +61291,10 @@ StreamHelper.prototype = { module.exports = StreamHelper; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../buffer/index.js */ 150).Buffer)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../buffer/index.js */ 151).Buffer)) /***/ }), -/* 285 */ +/* 286 */ /*!********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_dom-create.js ***! \********************************************************************************/ @@ -61142,7 +61311,7 @@ module.exports = function(it){ }; /***/ }), -/* 286 */ +/* 287 */ /*!***************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_fails.js ***! \***************************************************************************/ @@ -61159,7 +61328,7 @@ module.exports = function(exec){ }; /***/ }), -/* 287 */ +/* 288 */ /*!*************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_ctx.js ***! \*************************************************************************/ @@ -61168,7 +61337,7 @@ module.exports = function(exec){ /***/ (function(module, exports, __webpack_require__) { // optional / simple context binding -var aFunction = __webpack_require__(/*! ./_a-function */ 480); +var aFunction = __webpack_require__(/*! ./_a-function */ 483); module.exports = function(fn, that, length){ aFunction(fn); if(that === undefined)return fn; @@ -61189,7 +61358,7 @@ module.exports = function(fn, that, length){ }; /***/ }), -/* 288 */ +/* 289 */ /*!**************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_core.js ***! \**************************************************************************/ @@ -61201,7 +61370,7 @@ var core = module.exports = {version: '2.3.0'}; if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef /***/ }), -/* 289 */ +/* 290 */ /*!******************************************!*\ !*** ./node_modules/jszip/lib/base64.js ***! \******************************************/ @@ -61211,8 +61380,8 @@ if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef "use strict"; -var utils = __webpack_require__(/*! ./utils */ 78); -var support = __webpack_require__(/*! ./support */ 125); +var utils = __webpack_require__(/*! ./utils */ 79); +var support = __webpack_require__(/*! ./support */ 126); // private property var _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; @@ -61319,7 +61488,7 @@ exports.decode = function(input) { /***/ }), -/* 290 */ +/* 291 */ /*!***************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_transform.js ***! \***************************************************************/ @@ -61395,11 +61564,11 @@ exports.decode = function(input) { module.exports = Transform; -var Duplex = __webpack_require__(/*! ./_stream_duplex */ 130); +var Duplex = __webpack_require__(/*! ./_stream_duplex */ 131); /**/ -var util = __webpack_require__(/*! core-util-is */ 149); -util.inherits = __webpack_require__(/*! inherits */ 131); +var util = __webpack_require__(/*! core-util-is */ 150); +util.inherits = __webpack_require__(/*! inherits */ 132); /**/ util.inherits(Transform, Duplex); @@ -61544,7 +61713,7 @@ function done(stream, er, data) { } /***/ }), -/* 291 */ +/* 292 */ /*!***********************************************************!*\ !*** ./node_modules/string_decoder/lib/string_decoder.js ***! \***********************************************************/ @@ -61827,7 +61996,7 @@ function simpleEnd(buf) { } /***/ }), -/* 292 */ +/* 293 */ /*!**********************************************************************!*\ !*** ./node_modules/readable-stream/lib/internal/streams/destroy.js ***! \**********************************************************************/ @@ -61912,9 +62081,9 @@ module.exports = { }; /***/ }), -/* 293 */, /* 294 */, -/* 295 */ +/* 295 */, +/* 296 */ /*!*****************************************************************************!*\ !*** ./node_modules/readable-stream/lib/internal/streams/stream-browser.js ***! \*****************************************************************************/ @@ -61922,11 +62091,11 @@ module.exports = { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! events */ 142).EventEmitter; +module.exports = __webpack_require__(/*! events */ 143).EventEmitter; /***/ }), -/* 296 */ +/* 297 */ /*!**************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_readable.js ***! \**************************************************************/ @@ -61966,7 +62135,7 @@ var processNextTick = __webpack_require__(/*! process-nextick-args */ 172).nextT module.exports = Readable; /**/ -var isArray = __webpack_require__(/*! isarray */ 298); +var isArray = __webpack_require__(/*! isarray */ 299); /**/ /**/ @@ -61976,7 +62145,7 @@ var Duplex; Readable.ReadableState = ReadableState; /**/ -var EE = __webpack_require__(/*! events */ 142).EventEmitter; +var EE = __webpack_require__(/*! events */ 143).EventEmitter; var EElistenerCount = function (emitter, type) { return emitter.listeners(type).length; @@ -61984,7 +62153,7 @@ var EElistenerCount = function (emitter, type) { /**/ /**/ -var Stream = __webpack_require__(/*! ./internal/streams/stream */ 295); +var Stream = __webpack_require__(/*! ./internal/streams/stream */ 296); /**/ /**/ @@ -62001,12 +62170,12 @@ function _isUint8Array(obj) { /**/ /**/ -var util = __webpack_require__(/*! core-util-is */ 149); -util.inherits = __webpack_require__(/*! inherits */ 131); +var util = __webpack_require__(/*! core-util-is */ 150); +util.inherits = __webpack_require__(/*! inherits */ 132); /**/ /**/ -var debugUtil = __webpack_require__(/*! util */ 294); +var debugUtil = __webpack_require__(/*! util */ 295); var debug = void 0; if (debugUtil && debugUtil.debuglog) { debug = debugUtil.debuglog('stream'); @@ -62015,8 +62184,8 @@ if (debugUtil && debugUtil.debuglog) { } /**/ -var BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ 490); -var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 292); +var BufferList = __webpack_require__(/*! ./internal/streams/BufferList */ 493); +var destroyImpl = __webpack_require__(/*! ./internal/streams/destroy */ 293); var StringDecoder; util.inherits(Readable, Stream); @@ -62036,7 +62205,7 @@ function prependListener(emitter, event, fn) { } function ReadableState(options, stream) { - Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 130); + Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 131); options = options || {}; @@ -62106,14 +62275,14 @@ function ReadableState(options, stream) { this.decoder = null; this.encoding = null; if (options.encoding) { - if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 291).StringDecoder; + if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 292).StringDecoder; this.decoder = new StringDecoder(options.encoding); this.encoding = options.encoding; } } function Readable(options) { - Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 130); + Duplex = Duplex || __webpack_require__(/*! ./_stream_duplex */ 131); if (!(this instanceof Readable)) return new Readable(options); @@ -62262,7 +62431,7 @@ Readable.prototype.isPaused = function () { // backwards compatibility. Readable.prototype.setEncoding = function (enc) { - if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 291).StringDecoder; + if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ 292).StringDecoder; this._readableState.decoder = new StringDecoder(enc); this._readableState.encoding = enc; return this; @@ -62950,10 +63119,10 @@ function indexOf(xs, x) { } return -1; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 97), __webpack_require__(/*! ./../../process/browser.js */ 143))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 98), __webpack_require__(/*! ./../../process/browser.js */ 144))) /***/ }), -/* 297 */ +/* 298 */ /*!***********************************************************!*\ !*** ./node_modules/jszip/lib/readable-stream-browser.js ***! \***********************************************************/ @@ -62969,11 +63138,11 @@ function indexOf(xs, x) { * reduce the final size of the bundle (only one stream implementation, not * two). */ -module.exports = __webpack_require__(/*! stream */ 491); +module.exports = __webpack_require__(/*! stream */ 494); /***/ }), -/* 298 */ +/* 299 */ /*!***************************************!*\ !*** ./node_modules/isarray/index.js ***! \***************************************/ @@ -62989,7 +63158,7 @@ module.exports = Array.isArray || function (arr) { /***/ }), -/* 299 */ +/* 300 */ /*!*************************************************!*\ !*** ./node_modules/jsplumb/dist/js/jsplumb.js ***! \*************************************************/ @@ -77686,7 +77855,7 @@ module.exports = Array.isArray || function (arr) { /***/ }), -/* 300 */ +/* 301 */ /*!***********************************!*\ !*** ./node_modules/util/util.js ***! \***********************************/ @@ -78219,7 +78388,7 @@ function isPrimitive(arg) { } exports.isPrimitive = isPrimitive; -exports.isBuffer = __webpack_require__(/*! ./support/isBuffer */ 497); +exports.isBuffer = __webpack_require__(/*! ./support/isBuffer */ 500); function objectToString(o) { return Object.prototype.toString.call(o); @@ -78263,7 +78432,7 @@ exports.log = function() { * prototype. * @param {function} superCtor Constructor function to inherit prototype from. */ -exports.inherits = __webpack_require__(/*! inherits */ 131); +exports.inherits = __webpack_require__(/*! inherits */ 132); exports._extend = function(origin, add) { // Don't do anything if add isn't an object @@ -78281,10 +78450,10 @@ function hasOwnProperty(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97), __webpack_require__(/*! ./../process/browser.js */ 143))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98), __webpack_require__(/*! ./../process/browser.js */ 144))) /***/ }), -/* 301 */ +/* 302 */ /*!******************************************!*\ !*** ./node_modules/jshint/src/state.js ***! \******************************************/ @@ -78294,7 +78463,7 @@ function hasOwnProperty(obj, prop) { "use strict"; -var NameStack = __webpack_require__(/*! ./name-stack.js */ 506); +var NameStack = __webpack_require__(/*! ./name-stack.js */ 509); var state = { syntax: {}, @@ -78449,7 +78618,7 @@ exports.state = state; /***/ }), -/* 302 */ +/* 303 */ /*!****************************************!*\ !*** ./node_modules/jshint/src/reg.js ***! \****************************************/ @@ -78503,7 +78672,7 @@ exports.whitespace = /[ \f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u2 /***/ }), -/* 303 */ +/* 304 */ /*!*******************************************!*\ !*** ./node_modules/jshint/src/jshint.js ***! \*******************************************/ @@ -78545,20 +78714,20 @@ exports.whitespace = /[ \f\n\r\t\v\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u2 /*exported console */ var _ = __webpack_require__(/*! lodash */ 173); -var events = __webpack_require__(/*! events */ 142); -var vars = __webpack_require__(/*! ./vars.js */ 509); -var messages = __webpack_require__(/*! ./messages.js */ 508); -var Lexer = __webpack_require__(/*! ./lex.js */ 507).Lexer; -var reg = __webpack_require__(/*! ./reg.js */ 302); -var state = __webpack_require__(/*! ./state.js */ 301).state; -var style = __webpack_require__(/*! ./style.js */ 501); -var options = __webpack_require__(/*! ./options.js */ 500); -var scopeManager = __webpack_require__(/*! ./scope-manager.js */ 499); +var events = __webpack_require__(/*! events */ 143); +var vars = __webpack_require__(/*! ./vars.js */ 512); +var messages = __webpack_require__(/*! ./messages.js */ 511); +var Lexer = __webpack_require__(/*! ./lex.js */ 510).Lexer; +var reg = __webpack_require__(/*! ./reg.js */ 303); +var state = __webpack_require__(/*! ./state.js */ 302).state; +var style = __webpack_require__(/*! ./style.js */ 504); +var options = __webpack_require__(/*! ./options.js */ 503); +var scopeManager = __webpack_require__(/*! ./scope-manager.js */ 502); // We need this module here because environments such as IE and Rhino // don't necessarilly expose the 'console' API and browserify uses // it to log things. It's a sad state of affair, really. -var console = __webpack_require__(/*! console-browserify */ 498); +var console = __webpack_require__(/*! console-browserify */ 501); // We build the application inside a function so that we produce only a singleton // variable. That function will be invoked immediately, and its return value is @@ -84153,7 +84322,7 @@ if (typeof exports === "object" && exports) { /***/ }), -/* 304 */ +/* 305 */ /*!****************************************************************!*\ !*** ./node_modules/codemirror/addon/selection/active-line.js ***! \****************************************************************/ @@ -84165,7 +84334,7 @@ if (typeof exports === "object" && exports) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -84232,7 +84401,7 @@ if (typeof exports === "object" && exports) { /***/ }), -/* 305 */ +/* 306 */ /*!*******************************************************************!*\ !*** ./node_modules/codemirror/addon/search/match-highlighter.js ***! \*******************************************************************/ @@ -84262,7 +84431,7 @@ if (typeof exports === "object" && exports) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54), __webpack_require__(/*! ./matchesonscrollbar */ 512)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50), __webpack_require__(/*! ./matchesonscrollbar */ 515)); else {} })(function(CodeMirror) { "use strict"; @@ -84404,7 +84573,7 @@ if (typeof exports === "object" && exports) { /***/ }), -/* 306 */ +/* 307 */ /*!*****************************************************!*\ !*** ./node_modules/codemirror/addon/lint/lint.css ***! \*****************************************************/ @@ -84414,7 +84583,7 @@ if (typeof exports === "object" && exports) { // extracted by mini-css-extract-plugin /***/ }), -/* 307 */ +/* 308 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/addon/lint/lint.js ***! \****************************************************/ @@ -84426,7 +84595,7 @@ if (typeof exports === "object" && exports) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -84673,7 +84842,7 @@ if (typeof exports === "object" && exports) { /***/ }), -/* 308 */ +/* 309 */ /*!**********************************************************!*\ !*** ./node_modules/codemirror/addon/hint/show-hint.css ***! \**********************************************************/ @@ -84683,7 +84852,7 @@ if (typeof exports === "object" && exports) { // extracted by mini-css-extract-plugin /***/ }), -/* 309 */ +/* 310 */ /*!*********************************************************!*\ !*** ./node_modules/codemirror/addon/hint/show-hint.js ***! \*********************************************************/ @@ -84697,7 +84866,7 @@ var mac = /Mac/.test(navigator.platform); (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -85138,7 +85307,171 @@ var mac = /Mac/.test(navigator.platform); /***/ }), -/* 310 */ +/* 311 */ +/*!***************************************************************!*\ + !*** ./node_modules/codemirror/addon/hint/javascript-hint.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +// CodeMirror, copyright (c) by Marijn Haverbeke and others +// Distributed under an MIT license: https://codemirror.net/LICENSE + +(function(mod) { + if (true) // CommonJS + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); + else {} +})(function(CodeMirror) { + var Pos = CodeMirror.Pos; + + function forEach(arr, f) { + for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]); + } + + function arrayContains(arr, item) { + if (!Array.prototype.indexOf) { + var i = arr.length; + while (i--) { + if (arr[i] === item) { + return true; + } + } + return false; + } + return arr.indexOf(item) != -1; + } + + function scriptHint(editor, keywords, getToken, options) { + // Find the token at the cursor + var cur = editor.getCursor(), token = getToken(editor, cur); + if (/\b(?:string|comment)\b/.test(token.type)) return; + var innerMode = CodeMirror.innerMode(editor.getMode(), token.state); + if (innerMode.mode.helperType === "json") return; + token.state = innerMode.state; + + // If it's not a 'word-style' token, ignore the token. + if (!/^[\w$_]*$/.test(token.string)) { + token = {start: cur.ch, end: cur.ch, string: "", state: token.state, + type: token.string == "." ? "property" : null}; + } else if (token.end > cur.ch) { + token.end = cur.ch; + token.string = token.string.slice(0, cur.ch - token.start); + } + + var tprop = token; + // If it is a property, find out what it is a property of. + while (tprop.type == "property") { + tprop = getToken(editor, Pos(cur.line, tprop.start)); + if (tprop.string != ".") return; + tprop = getToken(editor, Pos(cur.line, tprop.start)); + if (!context) var context = []; + context.push(tprop); + } + return {list: getCompletions(token, context, keywords, options), + from: Pos(cur.line, token.start), + to: Pos(cur.line, token.end)}; + } + + function javascriptHint(editor, options) { + return scriptHint(editor, javascriptKeywords, + function (e, cur) {return e.getTokenAt(cur);}, + options); + }; + CodeMirror.registerHelper("hint", "javascript", javascriptHint); + + function getCoffeeScriptToken(editor, cur) { + // This getToken, it is for coffeescript, imitates the behavior of + // getTokenAt method in javascript.js, that is, returning "property" + // type and treat "." as indepenent token. + var token = editor.getTokenAt(cur); + if (cur.ch == token.start + 1 && token.string.charAt(0) == '.') { + token.end = token.start; + token.string = '.'; + token.type = "property"; + } + else if (/^\.[\w$_]*$/.test(token.string)) { + token.type = "property"; + token.start++; + token.string = token.string.replace(/\./, ''); + } + return token; + } + + function coffeescriptHint(editor, options) { + return scriptHint(editor, coffeescriptKeywords, getCoffeeScriptToken, options); + } + CodeMirror.registerHelper("hint", "coffeescript", coffeescriptHint); + + var stringProps = ("charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight " + + "toUpperCase toLowerCase split concat match replace search").split(" "); + var arrayProps = ("length concat join splice push pop shift unshift slice reverse sort indexOf " + + "lastIndexOf every some filter forEach map reduce reduceRight ").split(" "); + var funcProps = "prototype apply call bind".split(" "); + var javascriptKeywords = ("break case catch class const continue debugger default delete do else export extends false finally for function " + + "if in import instanceof new null return super switch this throw true try typeof var void while with yield").split(" "); + var coffeescriptKeywords = ("and break catch class continue delete do else extends false finally for " + + "if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes").split(" "); + + function forAllProps(obj, callback) { + if (!Object.getOwnPropertyNames || !Object.getPrototypeOf) { + for (var name in obj) callback(name) + } else { + for (var o = obj; o; o = Object.getPrototypeOf(o)) + Object.getOwnPropertyNames(o).forEach(callback) + } + } + + function getCompletions(token, context, keywords, options) { + var found = [], start = token.string, global = options && options.globalScope || window; + function maybeAdd(str) { + if (str.lastIndexOf(start, 0) == 0 && !arrayContains(found, str)) found.push(str); + } + function gatherCompletions(obj) { + if (typeof obj == "string") forEach(stringProps, maybeAdd); + else if (obj instanceof Array) forEach(arrayProps, maybeAdd); + else if (obj instanceof Function) forEach(funcProps, maybeAdd); + forAllProps(obj, maybeAdd) + } + + if (context && context.length) { + // If this is a property, see if it belongs to some object we can + // find in the current environment. + var obj = context.pop(), base; + if (obj.type && obj.type.indexOf("variable") === 0) { + if (options && options.additionalContext) + base = options.additionalContext[obj.string]; + if (!options || options.useGlobalScope !== false) + base = base || global[obj.string]; + } else if (obj.type == "string") { + base = ""; + } else if (obj.type == "atom") { + base = 1; + } else if (obj.type == "function") { + if (global.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') && + (typeof global.jQuery == 'function')) + base = global.jQuery(); + else if (global._ != null && (obj.string == '_') && (typeof global._ == 'function')) + base = global._(); + } + while (base != null && context.length) + base = base[context.pop().string]; + if (base != null) gatherCompletions(base); + } else { + // If not, just look in the global object and any local scope + // (reading into JS mode internals to get at the local and global variables) + for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name); + for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name); + if (!options || options.useGlobalScope !== false) + gatherCompletions(global); + forEach(keywords, maybeAdd); + } + return found; + } +}); + + +/***/ }), +/* 312 */ /*!************************************************************!*\ !*** ./node_modules/codemirror/addon/fold/comment-fold.js ***! \************************************************************/ @@ -85150,7 +85483,7 @@ var mac = /Mac/.test(navigator.platform); (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -85204,7 +85537,7 @@ CodeMirror.registerGlobalHelper("fold", "comment", function(mode) { /***/ }), -/* 311 */ +/* 313 */ /*!***********************************************************!*\ !*** ./node_modules/codemirror/addon/fold/indent-fold.js ***! \***********************************************************/ @@ -85216,7 +85549,7 @@ CodeMirror.registerGlobalHelper("fold", "comment", function(mode) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -85259,7 +85592,7 @@ CodeMirror.registerHelper("fold", "indent", function(cm, start) { /***/ }), -/* 312 */ +/* 314 */ /*!**********************************************************!*\ !*** ./node_modules/codemirror/addon/fold/brace-fold.js ***! \**********************************************************/ @@ -85271,7 +85604,7 @@ CodeMirror.registerHelper("fold", "indent", function(cm, start) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -85371,7 +85704,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { /***/ }), -/* 313 */ +/* 315 */ /*!***********************************************************!*\ !*** ./node_modules/codemirror/addon/fold/foldgutter.css ***! \***********************************************************/ @@ -85381,7 +85714,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { // extracted by mini-css-extract-plugin /***/ }), -/* 314 */ +/* 316 */ /*!**********************************************************!*\ !*** ./node_modules/codemirror/addon/fold/foldgutter.js ***! \**********************************************************/ @@ -85393,7 +85726,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54), __webpack_require__(/*! ./foldcode */ 239)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50), __webpack_require__(/*! ./foldcode */ 239)); else {} })(function(CodeMirror) { "use strict"; @@ -85534,7 +85867,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { /***/ }), -/* 315 */ +/* 317 */ /*!*************************************************************!*\ !*** ./node_modules/codemirror/addon/edit/closebrackets.js ***! \*************************************************************/ @@ -85546,7 +85879,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { var defaults = { @@ -85728,7 +86061,17 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { /***/ }), -/* 316 */ +/* 318 */ +/*!*********************************************************!*\ + !*** ./node_modules/codemirror/addon/dialog/dialog.css ***! + \*********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), +/* 319 */ /*!******************************************************************!*\ !*** ./node_modules/codemirror/addon/comment/continuecomment.js ***! \******************************************************************/ @@ -85740,7 +86083,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { function continueComment(cm) { @@ -85813,7 +86156,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { /***/ }), -/* 317 */ +/* 320 */ /*!*************************************************!*\ !*** ./node_modules/codemirror/keymap/emacs.js ***! \*************************************************/ @@ -85825,7 +86168,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -86237,7 +86580,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { /***/ }), -/* 318 */ +/* 321 */ /*!***********************************************!*\ !*** ./node_modules/codemirror/keymap/vim.js ***! \***********************************************/ @@ -86282,7 +86625,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../lib/codemirror */ 54), __webpack_require__(/*! ../addon/search/searchcursor */ 240), __webpack_require__(/*! ../addon/dialog/dialog */ 516), __webpack_require__(/*! ../addon/edit/matchbrackets.js */ 174)); + mod(__webpack_require__(/*! ../lib/codemirror */ 50), __webpack_require__(/*! ../addon/search/searchcursor */ 241), __webpack_require__(/*! ../addon/dialog/dialog */ 240), __webpack_require__(/*! ../addon/edit/matchbrackets.js */ 174)); else {} })(function(CodeMirror) { 'use strict'; @@ -91718,7 +92061,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { /***/ }), -/* 319 */ +/* 322 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/keymap/sublime.js ***! \***************************************************/ @@ -91733,7 +92076,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../lib/codemirror */ 54), __webpack_require__(/*! ../addon/search/searchcursor */ 240), __webpack_require__(/*! ../addon/edit/matchbrackets */ 174)); + mod(__webpack_require__(/*! ../lib/codemirror */ 50), __webpack_require__(/*! ../addon/search/searchcursor */ 241), __webpack_require__(/*! ../addon/edit/matchbrackets */ 174)); else {} })(function(CodeMirror) { "use strict"; @@ -92416,7 +92759,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { /***/ }), -/* 320 */ +/* 323 */ /*!***************************************************************!*\ !*** ./node_modules/codemirror/mode/javascript/javascript.js ***! \***************************************************************/ @@ -92428,7 +92771,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -93348,7 +93691,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript /***/ }), -/* 321 */ +/* 324 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/theme/zenburn.css ***! \***************************************************/ @@ -93358,7 +93701,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 322 */ +/* 325 */ /*!************************************************!*\ !*** ./node_modules/codemirror/theme/yeti.css ***! \************************************************/ @@ -93368,7 +93711,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 323 */ +/* 326 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/theme/xq-light.css ***! \****************************************************/ @@ -93378,7 +93721,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 324 */ +/* 327 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/theme/xq-dark.css ***! \***************************************************/ @@ -93388,7 +93731,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 325 */ +/* 328 */ /*!*******************************************************!*\ !*** ./node_modules/codemirror/theme/vibrant-ink.css ***! \*******************************************************/ @@ -93398,7 +93741,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 326 */ +/* 329 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/theme/twilight.css ***! \****************************************************/ @@ -93408,7 +93751,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 327 */ +/* 330 */ /*!************************************************!*\ !*** ./node_modules/codemirror/theme/ttcn.css ***! \************************************************/ @@ -93418,7 +93761,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 328 */ +/* 331 */ /*!*******************************************************************!*\ !*** ./node_modules/codemirror/theme/tomorrow-night-eighties.css ***! \*******************************************************************/ @@ -93428,7 +93771,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 329 */ +/* 332 */ /*!*****************************************************************!*\ !*** ./node_modules/codemirror/theme/tomorrow-night-bright.css ***! \*****************************************************************/ @@ -93438,7 +93781,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 330 */ +/* 333 */ /*!******************************************************!*\ !*** ./node_modules/codemirror/theme/the-matrix.css ***! \******************************************************/ @@ -93448,7 +93791,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 331 */ +/* 334 */ /*!************************************************!*\ !*** ./node_modules/codemirror/theme/ssms.css ***! \************************************************/ @@ -93458,7 +93801,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 332 */ +/* 335 */ /*!*****************************************************!*\ !*** ./node_modules/codemirror/theme/solarized.css ***! \*****************************************************/ @@ -93468,7 +93811,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 333 */ +/* 336 */ /*!*****************************************************!*\ !*** ./node_modules/codemirror/theme/shadowfox.css ***! \*****************************************************/ @@ -93478,7 +93821,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 334 */ +/* 337 */ /*!************************************************!*\ !*** ./node_modules/codemirror/theme/seti.css ***! \************************************************/ @@ -93488,7 +93831,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 335 */ +/* 338 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/theme/rubyblue.css ***! \****************************************************/ @@ -93498,7 +93841,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 336 */ +/* 339 */ /*!******************************************************!*\ !*** ./node_modules/codemirror/theme/railscasts.css ***! \******************************************************/ @@ -93508,7 +93851,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 337 */ +/* 340 */ /*!**********************************************************!*\ !*** ./node_modules/codemirror/theme/pastel-on-dark.css ***! \**********************************************************/ @@ -93518,7 +93861,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 338 */ +/* 341 */ /*!*********************************************************!*\ !*** ./node_modules/codemirror/theme/paraiso-light.css ***! \*********************************************************/ @@ -93528,7 +93871,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 339 */ +/* 342 */ /*!********************************************************!*\ !*** ./node_modules/codemirror/theme/paraiso-dark.css ***! \********************************************************/ @@ -93538,7 +93881,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 340 */ +/* 343 */ /*!********************************************************!*\ !*** ./node_modules/codemirror/theme/panda-syntax.css ***! \********************************************************/ @@ -93548,7 +93891,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 341 */ +/* 344 */ /*!********************************************************!*\ !*** ./node_modules/codemirror/theme/oceanic-next.css ***! \********************************************************/ @@ -93558,7 +93901,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 342 */ +/* 345 */ /*!*************************************************!*\ !*** ./node_modules/codemirror/theme/night.css ***! \*************************************************/ @@ -93568,7 +93911,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 343 */ +/* 346 */ /*!***********************************************!*\ !*** ./node_modules/codemirror/theme/neo.css ***! \***********************************************/ @@ -93578,7 +93921,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 344 */ +/* 347 */ /*!************************************************!*\ !*** ./node_modules/codemirror/theme/neat.css ***! \************************************************/ @@ -93588,7 +93931,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 345 */ +/* 348 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/theme/midnight.css ***! \****************************************************/ @@ -93598,7 +93941,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 346 */ +/* 349 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/theme/mdn-like.css ***! \****************************************************/ @@ -93608,7 +93951,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 347 */ +/* 350 */ /*!***********************************************!*\ !*** ./node_modules/codemirror/theme/mbo.css ***! \***********************************************/ @@ -93618,7 +93961,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 348 */ +/* 351 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/theme/material.css ***! \****************************************************/ @@ -93628,7 +93971,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 349 */ +/* 352 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/theme/lucario.css ***! \***************************************************/ @@ -93638,7 +93981,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 350 */ +/* 353 */ /*!*****************************************************!*\ !*** ./node_modules/codemirror/theme/liquibyte.css ***! \*****************************************************/ @@ -93648,7 +93991,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 351 */ +/* 354 */ /*!*******************************************************!*\ !*** ./node_modules/codemirror/theme/lesser-dark.css ***! \*******************************************************/ @@ -93658,7 +94001,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 352 */ +/* 355 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/theme/isotope.css ***! \***************************************************/ @@ -93668,7 +94011,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 353 */ +/* 356 */ /*!************************************************!*\ !*** ./node_modules/codemirror/theme/idea.css ***! \************************************************/ @@ -93678,7 +94021,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 354 */ +/* 357 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/theme/icecoder.css ***! \****************************************************/ @@ -93688,7 +94031,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 355 */ +/* 358 */ /*!*****************************************************!*\ !*** ./node_modules/codemirror/theme/hopscotch.css ***! \*****************************************************/ @@ -93698,7 +94041,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 356 */ +/* 359 */ /*!********************************************************!*\ !*** ./node_modules/codemirror/theme/gruvbox-dark.css ***! \********************************************************/ @@ -93708,7 +94051,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 357 */ +/* 360 */ /*!*******************************************************!*\ !*** ./node_modules/codemirror/theme/erlang-dark.css ***! \*******************************************************/ @@ -93718,7 +94061,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 358 */ +/* 361 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/theme/elegant.css ***! \***************************************************/ @@ -93728,7 +94071,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 359 */ +/* 362 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/theme/eclipse.css ***! \***************************************************/ @@ -93738,7 +94081,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 360 */ +/* 363 */ /*!*********************************************************!*\ !*** ./node_modules/codemirror/theme/duotone-light.css ***! \*********************************************************/ @@ -93748,7 +94091,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 361 */ +/* 364 */ /*!********************************************************!*\ !*** ./node_modules/codemirror/theme/duotone-dark.css ***! \********************************************************/ @@ -93758,7 +94101,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 362 */ +/* 365 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/theme/dracula.css ***! \***************************************************/ @@ -93768,7 +94111,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 363 */ +/* 366 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/theme/darcula.css ***! \***************************************************/ @@ -93778,7 +94121,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 364 */ +/* 367 */ /*!******************************************************!*\ !*** ./node_modules/codemirror/theme/colorforth.css ***! \******************************************************/ @@ -93788,7 +94131,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 365 */ +/* 368 */ /*!**************************************************!*\ !*** ./node_modules/codemirror/theme/cobalt.css ***! \**************************************************/ @@ -93798,7 +94141,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 366 */ +/* 369 */ /*!******************************************************!*\ !*** ./node_modules/codemirror/theme/blackboard.css ***! \******************************************************/ @@ -93808,7 +94151,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 367 */ +/* 370 */ /*!**************************************************!*\ !*** ./node_modules/codemirror/theme/bespin.css ***! \**************************************************/ @@ -93818,7 +94161,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 368 */ +/* 371 */ /*!********************************************************!*\ !*** ./node_modules/codemirror/theme/base16-light.css ***! \********************************************************/ @@ -93828,7 +94171,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 369 */ +/* 372 */ /*!*******************************************************!*\ !*** ./node_modules/codemirror/theme/base16-dark.css ***! \*******************************************************/ @@ -93838,7 +94181,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 370 */ +/* 373 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/theme/ambiance.css ***! \****************************************************/ @@ -93848,7 +94191,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 371 */ +/* 374 */ /*!***********************************************************!*\ !*** ./node_modules/codemirror/theme/ambiance-mobile.css ***! \***********************************************************/ @@ -93858,7 +94201,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 372 */ +/* 375 */ /*!**************************************************!*\ !*** ./node_modules/codemirror/theme/abcdef.css ***! \**************************************************/ @@ -93868,7 +94211,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 373 */ +/* 376 */ /*!******************************************************!*\ !*** ./node_modules/codemirror/theme/3024-night.css ***! \******************************************************/ @@ -93878,7 +94221,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 374 */ +/* 377 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/theme/3024-day.css ***! \****************************************************/ @@ -93888,7 +94231,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 375 */ +/* 378 */ /*!***************************************************!*\ !*** ./node_modules/codemirror/theme/monokai.css ***! \***************************************************/ @@ -93898,7 +94241,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 376 */ +/* 379 */ /*!****************************************************!*\ !*** ./node_modules/codemirror/lib/codemirror.css ***! \****************************************************/ @@ -93908,7 +94251,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript // extracted by mini-css-extract-plugin /***/ }), -/* 377 */ +/* 380 */ /*!**************************************************!*\ !*** ./node_modules/brace/ext/language_tools.js ***! \**************************************************/ @@ -95874,7 +96217,7 @@ acequire("../config").defineOptions(Editor.prototype, "editor", { /***/ }), -/* 378 */ +/* 381 */ /*!************************************************!*\ !*** ./node_modules/brace/keybinding/emacs.js ***! \************************************************/ @@ -97066,7 +97409,7 @@ exports.killRing = { /***/ }), -/* 379 */ +/* 382 */ /*!**********************************************!*\ !*** ./node_modules/brace/keybinding/vim.js ***! \**********************************************/ @@ -102675,7 +103018,7 @@ dom.importCssString(".normal-mode .ace_cursor{\ /***/ }), -/* 380 */ +/* 383 */ /*!*******************************************!*\ !*** ./node_modules/brace/theme/xcode.js ***! \*******************************************/ @@ -102774,7 +103117,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 381 */ +/* 384 */ /*!**********************************************!*\ !*** ./node_modules/brace/theme/twilight.js ***! \**********************************************/ @@ -102894,7 +103237,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 382 */ +/* 385 */ /*!**********************************************!*\ !*** ./node_modules/brace/theme/terminal.js ***! \**********************************************/ @@ -103019,7 +103362,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 383 */ +/* 386 */ /*!*****************************************************!*\ !*** ./node_modules/brace/theme/solarized_light.js ***! \*****************************************************/ @@ -103121,7 +103464,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 384 */ +/* 387 */ /*!****************************************************!*\ !*** ./node_modules/brace/theme/solarized_dark.js ***! \****************************************************/ @@ -103220,7 +103563,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 385 */ +/* 388 */ /*!*********************************************!*\ !*** ./node_modules/brace/theme/monokai.js ***! \*********************************************/ @@ -103336,7 +103679,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 386 */ +/* 389 */ /*!********************************************!*\ !*** ./node_modules/brace/theme/chrome.js ***! \********************************************/ @@ -103475,7 +103818,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 387 */ +/* 390 */ /*!*******************************************!*\ !*** ./node_modules/brace/theme/chaos.js ***! \*******************************************/ @@ -103642,7 +103985,7 @@ dom.importCssString(exports.cssText, exports.cssClass); /***/ }), -/* 388 */ +/* 391 */ /*!***********************************************!*\ !*** ./node_modules/brace/mode/javascript.js ***! \***********************************************/ @@ -104420,7 +104763,7 @@ oop.inherits(Mode, TextMode); }; this.createWorker = function(session) { - var worker = new WorkerClient(["ace"], __webpack_require__(/*! ../worker/javascript */ 245), "JavaScriptWorker"); + var worker = new WorkerClient(["ace"], __webpack_require__(/*! ../worker/javascript */ 246), "JavaScriptWorker"); worker.attachToDocument(session.getDocument()); worker.on("annotate", function(results) { @@ -104442,7 +104785,7 @@ exports.Mode = Mode; /***/ }), -/* 389 */ +/* 392 */ /*!*************************************!*\ !*** ./node_modules/brace/index.js ***! \*************************************/ @@ -108630,7 +108973,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 */ 246).packaged); + options.packaged = packaged || acequire.packaged || module.packaged || (global.define && __webpack_require__(/*! !webpack amd define */ 247).packaged); var scriptOptions = {}; var scriptUrl = ""; @@ -124657,7 +125000,7 @@ exports.config = acequire("./config"); exports.acequire = acequire; if (true) - exports.define = __webpack_require__(/*! !webpack amd define */ 246); + exports.define = __webpack_require__(/*! !webpack amd define */ 247); exports.edit = function(el) { if (typeof el == "string") { var _id = el; @@ -124724,7 +125067,7 @@ exports.version = "1.2.9"; module.exports = window.ace.acequire("ace/ace"); /***/ }), -/* 390 */ +/* 393 */ /*!**********************************************!*\ !*** ./node_modules/js-beautify/js/index.js ***! \**********************************************/ @@ -124797,9 +125140,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 */ 248), - __webpack_require__(/*! ./lib/beautify-css */ 247), - __webpack_require__(/*! ./lib/beautify-html */ 573) + __webpack_require__(/*! ./lib/beautify */ 249), + __webpack_require__(/*! ./lib/beautify-css */ 248), + __webpack_require__(/*! ./lib/beautify-html */ 576) ], __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__), @@ -124807,7 +125150,7 @@ if (true) { } else {} /***/ }), -/* 391 */ +/* 394 */ /*!************************************************!*\ !*** ./node_modules/timers-browserify/main.js ***! \************************************************/ @@ -124868,7 +125211,7 @@ exports._unrefActive = exports.active = function(item) { }; // setimmediate attaches itself to the global object -__webpack_require__(/*! setimmediate */ 574); +__webpack_require__(/*! setimmediate */ 577); // 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. @@ -124879,10 +125222,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 */ 97))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98))) /***/ }), -/* 392 */ +/* 395 */ /*!******************************************************!*\ !*** ./node_modules/bluebird/js/browser/bluebird.js ***! \******************************************************/ @@ -130192,10 +130535,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 */ 143), __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 97), __webpack_require__(/*! ./../../../timers-browserify/main.js */ 391).setImmediate)) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../process/browser.js */ 144), __webpack_require__(/*! ./../../../webpack/buildin/global.js */ 98), __webpack_require__(/*! ./../../../timers-browserify/main.js */ 394).setImmediate)) /***/ }), -/* 393 */ +/* 396 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/ru.js ***! \********************************************/ @@ -130209,7 +130552,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130240,7 +130583,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 394 */ +/* 397 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/pl.js ***! \********************************************/ @@ -130254,7 +130597,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130282,7 +130625,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 395 */ +/* 398 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/no.js ***! \********************************************/ @@ -130296,7 +130639,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130324,7 +130667,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 396 */ +/* 399 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/lv.js ***! \********************************************/ @@ -130338,7 +130681,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130366,7 +130709,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 397 */ +/* 400 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/it.js ***! \********************************************/ @@ -130380,7 +130723,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130408,7 +130751,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 398 */ +/* 401 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/hu.js ***! \********************************************/ @@ -130422,7 +130765,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130450,7 +130793,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 399 */ +/* 402 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/fr.js ***! \********************************************/ @@ -130464,7 +130807,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130492,7 +130835,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 400 */ +/* 403 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/es.js ***! \********************************************/ @@ -130506,7 +130849,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130539,7 +130882,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 401 */ +/* 404 */ /*!***********************************************!*\ !*** ./node_modules/numeral/locales/en-gb.js ***! \***********************************************/ @@ -130553,7 +130896,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130585,7 +130928,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 402 */ +/* 405 */ /*!***********************************************!*\ !*** ./node_modules/numeral/locales/en-au.js ***! \***********************************************/ @@ -130599,7 +130942,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130631,7 +130974,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 403 */ +/* 406 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/de.js ***! \********************************************/ @@ -130645,7 +130988,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130673,7 +131016,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 404 */ +/* 407 */ /*!***********************************************!*\ !*** ./node_modules/numeral/locales/da-dk.js ***! \***********************************************/ @@ -130687,7 +131030,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130715,7 +131058,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 405 */ +/* 408 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/cs.js ***! \********************************************/ @@ -130729,7 +131072,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130757,7 +131100,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 406 */ +/* 409 */ /*!********************************************!*\ !*** ./node_modules/numeral/locales/bg.js ***! \********************************************/ @@ -130771,7 +131114,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ (function (global, factory) { if (true) { - !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 93)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ../numeral */ 94)], __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__)); @@ -130807,7 +131150,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ /***/ }), -/* 407 */ +/* 410 */ /*!***************************************************************!*\ !*** ./node_modules/chai-as-promised/lib/chai-as-promised.js ***! \***************************************************************/ @@ -130818,7 +131161,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 */ 257); +let checkError = __webpack_require__(/*! check-error */ 258); module.exports = (chai, utils) => { const Assertion = chai.Assertion; @@ -131180,7 +131523,7 @@ module.exports.transformAsserterArgs = values => values; /***/ }), -/* 408 */ +/* 411 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/interface/assert.js ***! \********************************************************/ @@ -134289,7 +134632,7 @@ module.exports = function (chai, util) { /***/ }), -/* 409 */ +/* 412 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/interface/should.js ***! \********************************************************/ @@ -134504,7 +134847,7 @@ module.exports = function (chai, util) { /***/ }), -/* 410 */ +/* 413 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/interface/expect.js ***! \********************************************************/ @@ -134549,7 +134892,7 @@ module.exports = function (chai, util) { /***/ }), -/* 411 */ +/* 414 */ /*!*******************************************************!*\ !*** ./node_modules/chai/lib/chai/core/assertions.js ***! \*******************************************************/ @@ -138289,7 +138632,7 @@ module.exports = function (chai, _) { /***/ }), -/* 412 */ +/* 415 */ /*!*************************************************!*\ !*** ./node_modules/chai/lib/chai/assertion.js ***! \*************************************************/ @@ -138304,7 +138647,7 @@ module.exports = function (chai, _) { * MIT Licensed */ -var config = __webpack_require__(/*! ./config */ 128); +var config = __webpack_require__(/*! ./config */ 129); module.exports = function (_chai, util) { /*! @@ -138465,7 +138808,7 @@ module.exports = function (_chai, util) { /***/ }), -/* 413 */ +/* 416 */ /*!***************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/isNaN.js ***! \***************************************************/ @@ -138502,7 +138845,7 @@ module.exports = Number.isNaN || isNaN; /***/ }), -/* 414 */ +/* 417 */ /*!************************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getOwnEnumerableProperties.js ***! \************************************************************************/ @@ -138520,7 +138863,7 @@ module.exports = Number.isNaN || isNaN; * Module dependancies */ -var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 258); +var getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 259); /** * ### .getOwnEnumerableProperties(object) @@ -138542,7 +138885,7 @@ module.exports = function getOwnEnumerableProperties(obj) { /***/ }), -/* 415 */ +/* 418 */ /*!**************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/compareByInspect.js ***! \**************************************************************/ @@ -138584,7 +138927,7 @@ module.exports = function compareByInspect(a, b) { /***/ }), -/* 416 */ +/* 419 */ /*!**********************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/overwriteChainableMethod.js ***! \**********************************************************************/ @@ -138598,8 +138941,8 @@ module.exports = function compareByInspect(a, b) { * MIT Licensed */ -var chai = __webpack_require__(/*! ../../chai */ 129); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 127); +var chai = __webpack_require__(/*! ../../chai */ 130); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 128); /** * ### .overwriteChainableMethod(ctx, name, method, chainingBehavior) @@ -138664,7 +139007,7 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe /***/ }), -/* 417 */ +/* 420 */ /*!****************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/addChainableMethod.js ***! \****************************************************************/ @@ -138683,10 +139026,10 @@ module.exports = function overwriteChainableMethod(ctx, name, method, chainingBe */ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 166); -var chai = __webpack_require__(/*! ../../chai */ 129); -var flag = __webpack_require__(/*! ./flag */ 111); +var chai = __webpack_require__(/*! ../../chai */ 130); +var flag = __webpack_require__(/*! ./flag */ 112); var proxify = __webpack_require__(/*! ./proxify */ 165); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 127); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 128); /*! * Module variables @@ -138827,7 +139170,7 @@ module.exports = function addChainableMethod(ctx, name, method, chainingBehavior /***/ }), -/* 418 */ +/* 421 */ /*!*************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/overwriteMethod.js ***! \*************************************************************/ @@ -138842,10 +139185,10 @@ module.exports = function addChainableMethod(ctx, name, method, chainingBehavior */ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 166); -var chai = __webpack_require__(/*! ../../chai */ 129); -var flag = __webpack_require__(/*! ./flag */ 111); +var chai = __webpack_require__(/*! ../../chai */ 130); +var flag = __webpack_require__(/*! ./flag */ 112); var proxify = __webpack_require__(/*! ./proxify */ 165); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 127); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 128); /** * ### .overwriteMethod(ctx, name, fn) @@ -138930,7 +139273,7 @@ module.exports = function overwriteMethod(ctx, name, method) { /***/ }), -/* 419 */ +/* 422 */ /*!***************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/overwriteProperty.js ***! \***************************************************************/ @@ -138944,10 +139287,10 @@ module.exports = function overwriteMethod(ctx, name, method) { * MIT Licensed */ -var chai = __webpack_require__(/*! ../../chai */ 129); -var flag = __webpack_require__(/*! ./flag */ 111); +var chai = __webpack_require__(/*! ../../chai */ 130); +var flag = __webpack_require__(/*! ./flag */ 112); var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 167); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 127); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 128); /** * ### .overwriteProperty(ctx, name, fn) @@ -139033,7 +139376,7 @@ module.exports = function overwriteProperty(ctx, name, getter) { /***/ }), -/* 420 */ +/* 423 */ /*!*******************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/addMethod.js ***! \*******************************************************/ @@ -139048,10 +139391,10 @@ module.exports = function overwriteProperty(ctx, name, getter) { */ var addLengthGuard = __webpack_require__(/*! ./addLengthGuard */ 166); -var chai = __webpack_require__(/*! ../../chai */ 129); -var flag = __webpack_require__(/*! ./flag */ 111); +var chai = __webpack_require__(/*! ../../chai */ 130); +var flag = __webpack_require__(/*! ./flag */ 112); var proxify = __webpack_require__(/*! ./proxify */ 165); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 127); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 128); /** * ### .addMethod(ctx, name, method) @@ -139112,7 +139455,7 @@ module.exports = function addMethod(ctx, name, method) { /***/ }), -/* 421 */ +/* 424 */ /*!*********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/addProperty.js ***! \*********************************************************/ @@ -139126,10 +139469,10 @@ module.exports = function addMethod(ctx, name, method) { * MIT Licensed */ -var chai = __webpack_require__(/*! ../../chai */ 129); -var flag = __webpack_require__(/*! ./flag */ 111); +var chai = __webpack_require__(/*! ../../chai */ 130); +var flag = __webpack_require__(/*! ./flag */ 112); var isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 167); -var transferFlags = __webpack_require__(/*! ./transferFlags */ 127); +var transferFlags = __webpack_require__(/*! ./transferFlags */ 128); /** * ### .addProperty(ctx, name, getter) @@ -139195,7 +139538,7 @@ module.exports = function addProperty(ctx, name, getter) { /***/ }), -/* 422 */ +/* 425 */ /*!****************************************!*\ !*** ./node_modules/deep-eql/index.js ***! \****************************************/ @@ -139662,7 +140005,7 @@ function isPrimitive(value) { /***/ }), -/* 423 */ +/* 426 */ /*!*********************************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getEnumerableProperties.js ***! \*********************************************************************/ @@ -139699,7 +140042,7 @@ module.exports = function getEnumerableProperties(object) { /***/ }), -/* 424 */ +/* 427 */ /*!********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/getMessage.js ***! \********************************************************/ @@ -139717,10 +140060,10 @@ module.exports = function getEnumerableProperties(object) { * Module dependancies */ -var flag = __webpack_require__(/*! ./flag */ 111) - , getActual = __webpack_require__(/*! ./getActual */ 262) +var flag = __webpack_require__(/*! ./flag */ 112) + , getActual = __webpack_require__(/*! ./getActual */ 263) , inspect = __webpack_require__(/*! ./inspect */ 168) - , objDisplay = __webpack_require__(/*! ./objDisplay */ 259); + , objDisplay = __webpack_require__(/*! ./objDisplay */ 260); /** * ### .getMessage(object, message, negateMessage) @@ -139761,7 +140104,7 @@ module.exports = function getMessage(obj, args) { /***/ }), -/* 425 */ +/* 428 */ /*!*********************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/expectTypes.js ***! \*********************************************************/ @@ -139789,8 +140132,8 @@ module.exports = function getMessage(obj, args) { * @api public */ -var AssertionError = __webpack_require__(/*! assertion-error */ 263); -var flag = __webpack_require__(/*! ./flag */ 111); +var AssertionError = __webpack_require__(/*! assertion-error */ 264); +var flag = __webpack_require__(/*! ./flag */ 112); var type = __webpack_require__(/*! type-detect */ 180); module.exports = function expectTypes(obj, types) { @@ -139823,7 +140166,7 @@ module.exports = function expectTypes(obj, types) { /***/ }), -/* 426 */ +/* 429 */ /*!**************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/test.js ***! \**************************************************/ @@ -139841,7 +140184,7 @@ module.exports = function expectTypes(obj, types) { * Module dependancies */ -var flag = __webpack_require__(/*! ./flag */ 111); +var flag = __webpack_require__(/*! ./flag */ 112); /** * ### .test(object, expression) @@ -139862,7 +140205,7 @@ module.exports = function test(obj, args) { /***/ }), -/* 427 */ +/* 430 */ /*!***************************************!*\ !*** ./node_modules/pathval/index.js ***! \***************************************/ @@ -140165,7 +140508,7 @@ module.exports = { /***/ }), -/* 428 */ +/* 431 */ /*!***************************************************!*\ !*** ./node_modules/chai/lib/chai/utils/index.js ***! \***************************************************/ @@ -140183,13 +140526,13 @@ module.exports = { * Dependencies that are used for multiple exports are required here only once */ -var pathval = __webpack_require__(/*! pathval */ 427); +var pathval = __webpack_require__(/*! pathval */ 430); /*! * test utility */ -exports.test = __webpack_require__(/*! ./test */ 426); +exports.test = __webpack_require__(/*! ./test */ 429); /*! * type utility @@ -140200,19 +140543,19 @@ exports.type = __webpack_require__(/*! type-detect */ 180); /*! * expectTypes utility */ -exports.expectTypes = __webpack_require__(/*! ./expectTypes */ 425); +exports.expectTypes = __webpack_require__(/*! ./expectTypes */ 428); /*! * message utility */ -exports.getMessage = __webpack_require__(/*! ./getMessage */ 424); +exports.getMessage = __webpack_require__(/*! ./getMessage */ 427); /*! * actual utility */ -exports.getActual = __webpack_require__(/*! ./getActual */ 262); +exports.getActual = __webpack_require__(/*! ./getActual */ 263); /*! * Inspect util @@ -140224,25 +140567,25 @@ exports.inspect = __webpack_require__(/*! ./inspect */ 168); * Object Display util */ -exports.objDisplay = __webpack_require__(/*! ./objDisplay */ 259); +exports.objDisplay = __webpack_require__(/*! ./objDisplay */ 260); /*! * Flag utility */ -exports.flag = __webpack_require__(/*! ./flag */ 111); +exports.flag = __webpack_require__(/*! ./flag */ 112); /*! * Flag transferring utility */ -exports.transferFlags = __webpack_require__(/*! ./transferFlags */ 127); +exports.transferFlags = __webpack_require__(/*! ./transferFlags */ 128); /*! * Deep equal utility */ -exports.eql = __webpack_require__(/*! deep-eql */ 422); +exports.eql = __webpack_require__(/*! deep-eql */ 425); /*! * Deep path info @@ -140260,67 +140603,67 @@ exports.hasProperty = pathval.hasProperty; * Function name */ -exports.getName = __webpack_require__(/*! get-func-name */ 261); +exports.getName = __webpack_require__(/*! get-func-name */ 262); /*! * add Property */ -exports.addProperty = __webpack_require__(/*! ./addProperty */ 421); +exports.addProperty = __webpack_require__(/*! ./addProperty */ 424); /*! * add Method */ -exports.addMethod = __webpack_require__(/*! ./addMethod */ 420); +exports.addMethod = __webpack_require__(/*! ./addMethod */ 423); /*! * overwrite Property */ -exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ 419); +exports.overwriteProperty = __webpack_require__(/*! ./overwriteProperty */ 422); /*! * overwrite Method */ -exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ 418); +exports.overwriteMethod = __webpack_require__(/*! ./overwriteMethod */ 421); /*! * Add a chainable method */ -exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ 417); +exports.addChainableMethod = __webpack_require__(/*! ./addChainableMethod */ 420); /*! * Overwrite chainable method */ -exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ 416); +exports.overwriteChainableMethod = __webpack_require__(/*! ./overwriteChainableMethod */ 419); /*! * Compare by inspect method */ -exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ 415); +exports.compareByInspect = __webpack_require__(/*! ./compareByInspect */ 418); /*! * Get own enumerable property symbols method */ -exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 258); +exports.getOwnEnumerablePropertySymbols = __webpack_require__(/*! ./getOwnEnumerablePropertySymbols */ 259); /*! * Get own enumerable properties method */ -exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ 414); +exports.getOwnEnumerableProperties = __webpack_require__(/*! ./getOwnEnumerableProperties */ 417); /*! * Checks error against a given set of criteria */ -exports.checkError = __webpack_require__(/*! check-error */ 257); +exports.checkError = __webpack_require__(/*! check-error */ 258); /*! * Proxify util @@ -140344,11 +140687,11 @@ exports.isProxyEnabled = __webpack_require__(/*! ./isProxyEnabled */ 167); * isNaN method */ -exports.isNaN = __webpack_require__(/*! ./isNaN */ 413); +exports.isNaN = __webpack_require__(/*! ./isNaN */ 416); /***/ }), -/* 429 */ +/* 432 */ /*!************************************!*\ !*** ./node_modules/chai/index.js ***! \************************************/ @@ -140356,14 +140699,14 @@ exports.isNaN = __webpack_require__(/*! ./isNaN */ 413); /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./lib/chai */ 129); +module.exports = __webpack_require__(/*! ./lib/chai */ 130); /***/ }), -/* 430 */, -/* 431 */, -/* 432 */, -/* 433 */ +/* 433 */, +/* 434 */, +/* 435 */, +/* 436 */ /*!*********************************************!*\ !*** ./node_modules/escodegen/package.json ***! \*********************************************/ @@ -140374,7 +140717,7 @@ module.exports = __webpack_require__(/*! ./lib/chai */ 129); 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"}; /***/ }), -/* 434 */ +/* 437 */ /*!***************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/source-node.js ***! \***************************************************************************/ @@ -140389,8 +140732,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 */ 267).SourceMapGenerator; -var util = __webpack_require__(/*! ./util */ 144); +var SourceMapGenerator = __webpack_require__(/*! ./source-map-generator */ 268).SourceMapGenerator; +var util = __webpack_require__(/*! ./util */ 145); // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other // operating systems these days (capturing the result). @@ -140798,7 +141141,7 @@ exports.SourceNode = SourceNode; /***/ }), -/* 435 */ +/* 438 */ /*!**************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/quick-sort.js ***! \**************************************************************************/ @@ -140923,7 +141266,7 @@ exports.quickSort = function (ary, comparator) { /***/ }), -/* 436 */ +/* 439 */ /*!*****************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/binary-search.js ***! \*****************************************************************************/ @@ -141045,7 +141388,7 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { /***/ }), -/* 437 */ +/* 440 */ /*!***********************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js ***! \***********************************************************************************/ @@ -141060,11 +141403,11 @@ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { * http://opensource.org/licenses/BSD-3-Clause */ -var util = __webpack_require__(/*! ./util */ 144); -var binarySearch = __webpack_require__(/*! ./binary-search */ 436); -var ArraySet = __webpack_require__(/*! ./array-set */ 265).ArraySet; -var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 266); -var quickSort = __webpack_require__(/*! ./quick-sort */ 435).quickSort; +var util = __webpack_require__(/*! ./util */ 145); +var binarySearch = __webpack_require__(/*! ./binary-search */ 439); +var ArraySet = __webpack_require__(/*! ./array-set */ 266).ArraySet; +var base64VLQ = __webpack_require__(/*! ./base64-vlq */ 267); +var quickSort = __webpack_require__(/*! ./quick-sort */ 438).quickSort; function SourceMapConsumer(aSourceMap, aSourceMapURL) { var sourceMap = aSourceMap; @@ -142201,7 +142544,7 @@ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; /***/ }), -/* 438 */ +/* 441 */ /*!****************************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/mapping-list.js ***! \****************************************************************************/ @@ -142216,7 +142559,7 @@ exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; * http://opensource.org/licenses/BSD-3-Clause */ -var util = __webpack_require__(/*! ./util */ 144); +var util = __webpack_require__(/*! ./util */ 145); /** * Determine whether mappingB is after mappingA with respect to generated @@ -142291,7 +142634,7 @@ exports.MappingList = MappingList; /***/ }), -/* 439 */ +/* 442 */ /*!**********************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/lib/base64.js ***! \**********************************************************************/ @@ -142369,7 +142712,7 @@ exports.decode = function (charCode) { /***/ }), -/* 440 */ +/* 443 */ /*!**********************************************************************!*\ !*** ./node_modules/escodegen/node_modules/source-map/source-map.js ***! \**********************************************************************/ @@ -142382,13 +142725,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 */ 267).SourceMapGenerator; -exports.SourceMapConsumer = __webpack_require__(/*! ./lib/source-map-consumer */ 437).SourceMapConsumer; -exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 434).SourceNode; +exports.SourceMapGenerator = __webpack_require__(/*! ./lib/source-map-generator */ 268).SourceMapGenerator; +exports.SourceMapConsumer = __webpack_require__(/*! ./lib/source-map-consumer */ 440).SourceMapConsumer; +exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 437).SourceNode; /***/ }), -/* 441 */ +/* 444 */ /*!*********************************************!*\ !*** ./node_modules/esutils/lib/keyword.js ***! \*********************************************/ @@ -142423,7 +142766,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 434).SourceNod (function () { 'use strict'; - var code = __webpack_require__(/*! ./code */ 268); + var code = __webpack_require__(/*! ./code */ 269); function isStrictModeReservedWordES6(id) { switch (id) { @@ -142564,7 +142907,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 434).SourceNod /***/ }), -/* 442 */ +/* 445 */ /*!*****************************************!*\ !*** ./node_modules/esutils/lib/ast.js ***! \*****************************************/ @@ -142719,7 +143062,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 434).SourceNod /***/ }), -/* 443 */ +/* 446 */ /*!*******************************************!*\ !*** ./node_modules/esutils/lib/utils.js ***! \*******************************************/ @@ -142755,15 +143098,15 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 434).SourceNod (function () { 'use strict'; - exports.ast = __webpack_require__(/*! ./ast */ 442); - exports.code = __webpack_require__(/*! ./code */ 268); - exports.keyword = __webpack_require__(/*! ./keyword */ 441); + exports.ast = __webpack_require__(/*! ./ast */ 445); + exports.code = __webpack_require__(/*! ./code */ 269); + exports.keyword = __webpack_require__(/*! ./keyword */ 444); }()); /* vim: set sw=4 ts=4 et tw=80 : */ /***/ }), -/* 444 */ +/* 447 */ /*!**********************************************!*\ !*** ./node_modules/estraverse/package.json ***! \**********************************************/ @@ -142774,7 +143117,7 @@ exports.SourceNode = __webpack_require__(/*! ./lib/source-node */ 434).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"}; /***/ }), -/* 445 */ +/* 448 */ /*!***********************************************!*\ !*** ./node_modules/estraverse/estraverse.js ***! \***********************************************/ @@ -143618,7 +143961,7 @@ module.exports = {"_args":[["estraverse@4.2.0","C:\\Users\\danie\\Desktop\\bitbu return tree; } - exports.version = __webpack_require__(/*! ./package.json */ 444).version; + exports.version = __webpack_require__(/*! ./package.json */ 447).version; exports.Syntax = Syntax; exports.traverse = traverse; exports.replace = replace; @@ -143634,7 +143977,7 @@ module.exports = {"_args":[["estraverse@4.2.0","C:\\Users\\danie\\Desktop\\bitbu /***/ }), -/* 446 */ +/* 449 */ /*!****************************************!*\ !*** (webpack)/buildin/amd-options.js ***! \****************************************/ @@ -143648,7 +143991,7 @@ module.exports = __webpack_amd_options__; /* WEBPACK VAR INJECTION */}.call(this, {})) /***/ }), -/* 447 */ +/* 450 */ /*!********************************************!*\ !*** ./node_modules/jszip/lib/zipEntry.js ***! \********************************************/ @@ -143658,13 +144001,13 @@ module.exports = __webpack_amd_options__; "use strict"; -var readerFor = __webpack_require__(/*! ./reader/readerFor */ 272); -var utils = __webpack_require__(/*! ./utils */ 78); +var readerFor = __webpack_require__(/*! ./reader/readerFor */ 273); +var utils = __webpack_require__(/*! ./utils */ 79); var CompressedObject = __webpack_require__(/*! ./compressedObject */ 230); var crc32fn = __webpack_require__(/*! ./crc32 */ 229); -var utf8 = __webpack_require__(/*! ./utf8 */ 141); -var compressions = __webpack_require__(/*! ./compressions */ 279); -var support = __webpack_require__(/*! ./support */ 125); +var utf8 = __webpack_require__(/*! ./utf8 */ 142); +var compressions = __webpack_require__(/*! ./compressions */ 280); +var support = __webpack_require__(/*! ./support */ 126); var MADE_BY_DOS = 0x00; var MADE_BY_UNIX = 0x03; @@ -143952,7 +144295,7 @@ module.exports = ZipEntry; /***/ }), -/* 448 */ +/* 451 */ /*!***********************************************************!*\ !*** ./node_modules/jszip/lib/reader/NodeBufferReader.js ***! \***********************************************************/ @@ -143962,8 +144305,8 @@ module.exports = ZipEntry; "use strict"; -var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 269); -var utils = __webpack_require__(/*! ../utils */ 78); +var Uint8ArrayReader = __webpack_require__(/*! ./Uint8ArrayReader */ 270); +var utils = __webpack_require__(/*! ../utils */ 79); function NodeBufferReader(data) { Uint8ArrayReader.call(this, data); @@ -143983,7 +144326,7 @@ module.exports = NodeBufferReader; /***/ }), -/* 449 */ +/* 452 */ /*!*******************************************************!*\ !*** ./node_modules/jszip/lib/reader/StringReader.js ***! \*******************************************************/ @@ -143993,8 +144336,8 @@ module.exports = NodeBufferReader; "use strict"; -var DataReader = __webpack_require__(/*! ./DataReader */ 270); -var utils = __webpack_require__(/*! ../utils */ 78); +var DataReader = __webpack_require__(/*! ./DataReader */ 271); +var utils = __webpack_require__(/*! ../utils */ 79); function StringReader(data) { DataReader.call(this, data); @@ -144033,7 +144376,7 @@ module.exports = StringReader; /***/ }), -/* 450 */ +/* 453 */ /*!**********************************************!*\ !*** ./node_modules/jszip/lib/zipEntries.js ***! \**********************************************/ @@ -144043,12 +144386,12 @@ module.exports = StringReader; "use strict"; -var readerFor = __webpack_require__(/*! ./reader/readerFor */ 272); -var utils = __webpack_require__(/*! ./utils */ 78); -var sig = __webpack_require__(/*! ./signature */ 273); -var ZipEntry = __webpack_require__(/*! ./zipEntry */ 447); -var utf8 = __webpack_require__(/*! ./utf8 */ 141); -var support = __webpack_require__(/*! ./support */ 125); +var readerFor = __webpack_require__(/*! ./reader/readerFor */ 273); +var utils = __webpack_require__(/*! ./utils */ 79); +var sig = __webpack_require__(/*! ./signature */ 274); +var ZipEntry = __webpack_require__(/*! ./zipEntry */ 450); +var utf8 = __webpack_require__(/*! ./utf8 */ 142); +var support = __webpack_require__(/*! ./support */ 126); // class ZipEntries {{{ /** * All the entries in the zip file. @@ -144307,7 +144650,7 @@ module.exports = ZipEntries; /***/ }), -/* 451 */ +/* 454 */ /*!****************************************!*\ !*** ./node_modules/jszip/lib/load.js ***! \****************************************/ @@ -144317,12 +144660,12 @@ module.exports = ZipEntries; "use strict"; -var utils = __webpack_require__(/*! ./utils */ 78); -var external = __webpack_require__(/*! ./external */ 148); -var utf8 = __webpack_require__(/*! ./utf8 */ 141); -var utils = __webpack_require__(/*! ./utils */ 78); -var ZipEntries = __webpack_require__(/*! ./zipEntries */ 450); -var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 280); +var utils = __webpack_require__(/*! ./utils */ 79); +var external = __webpack_require__(/*! ./external */ 149); +var utf8 = __webpack_require__(/*! ./utf8 */ 142); +var utils = __webpack_require__(/*! ./utils */ 79); +var ZipEntries = __webpack_require__(/*! ./zipEntries */ 453); +var Crc32Probe = __webpack_require__(/*! ./stream/Crc32Probe */ 281); var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 170); /** @@ -144401,7 +144744,7 @@ module.exports = function(data, options) { /***/ }), -/* 452 */ +/* 455 */ /*!*******************************************************************!*\ !*** ./node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js ***! \*******************************************************************/ @@ -144412,8 +144755,8 @@ module.exports = function(data, options) { "use strict"; -var utils = __webpack_require__(/*! ../utils */ 78); -var GenericWorker = __webpack_require__(/*! ../stream/GenericWorker */ 103); +var utils = __webpack_require__(/*! ../utils */ 79); +var GenericWorker = __webpack_require__(/*! ../stream/GenericWorker */ 104); /** * A worker that use a nodejs stream as source. @@ -144487,7 +144830,7 @@ module.exports = NodejsStreamInputAdapter; /***/ }), -/* 453 */ +/* 456 */ /*!**********************************************************!*\ !*** ./node_modules/jszip/lib/generate/ZipFileWorker.js ***! \**********************************************************/ @@ -144498,11 +144841,11 @@ module.exports = NodejsStreamInputAdapter; "use strict"; -var utils = __webpack_require__(/*! ../utils */ 78); -var GenericWorker = __webpack_require__(/*! ../stream/GenericWorker */ 103); -var utf8 = __webpack_require__(/*! ../utf8 */ 141); +var utils = __webpack_require__(/*! ../utils */ 79); +var GenericWorker = __webpack_require__(/*! ../stream/GenericWorker */ 104); +var utf8 = __webpack_require__(/*! ../utf8 */ 142); var crc32 = __webpack_require__(/*! ../crc32 */ 229); -var signature = __webpack_require__(/*! ../signature */ 273); +var signature = __webpack_require__(/*! ../signature */ 274); /** * Transform an integer into a string in hexadecimal. @@ -145039,7 +145382,7 @@ module.exports = ZipFileWorker; /***/ }), -/* 454 */ +/* 457 */ /*!************************************************!*\ !*** ./node_modules/pako/lib/zlib/gzheader.js ***! \************************************************/ @@ -145109,7 +145452,7 @@ module.exports = GZheader; /***/ }), -/* 455 */ +/* 458 */ /*!************************************************!*\ !*** ./node_modules/pako/lib/zlib/inftrees.js ***! \************************************************/ @@ -145139,7 +145482,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 */ 124); +var utils = __webpack_require__(/*! ../utils/common */ 125); var MAXBITS = 15; var ENOUGH_LENS = 852; @@ -145464,7 +145807,7 @@ module.exports = function inflate_table(type, lens, lens_index, codes, table, ta /***/ }), -/* 456 */ +/* 459 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/inffast.js ***! \***********************************************/ @@ -145821,7 +146164,7 @@ module.exports = function inflate_fast(strm, start) { /***/ }), -/* 457 */ +/* 460 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/inflate.js ***! \***********************************************/ @@ -145851,11 +146194,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 */ 124); -var adler32 = __webpack_require__(/*! ./adler32 */ 278); -var crc32 = __webpack_require__(/*! ./crc32 */ 277); -var inflate_fast = __webpack_require__(/*! ./inffast */ 456); -var inflate_table = __webpack_require__(/*! ./inftrees */ 455); +var utils = __webpack_require__(/*! ../utils/common */ 125); +var adler32 = __webpack_require__(/*! ./adler32 */ 279); +var crc32 = __webpack_require__(/*! ./crc32 */ 278); +var inflate_fast = __webpack_require__(/*! ./inffast */ 459); +var inflate_table = __webpack_require__(/*! ./inftrees */ 458); var CODES = 0; var LENS = 1; @@ -147389,7 +147732,7 @@ exports.inflateUndermine = inflateUndermine; /***/ }), -/* 458 */ +/* 461 */ /*!******************************************!*\ !*** ./node_modules/pako/lib/inflate.js ***! \******************************************/ @@ -147401,13 +147744,13 @@ exports.inflateUndermine = inflateUndermine; -var zlib_inflate = __webpack_require__(/*! ./zlib/inflate */ 457); -var utils = __webpack_require__(/*! ./utils/common */ 124); -var strings = __webpack_require__(/*! ./utils/strings */ 276); -var c = __webpack_require__(/*! ./zlib/constants */ 274); +var zlib_inflate = __webpack_require__(/*! ./zlib/inflate */ 460); +var utils = __webpack_require__(/*! ./utils/common */ 125); +var strings = __webpack_require__(/*! ./utils/strings */ 277); +var c = __webpack_require__(/*! ./zlib/constants */ 275); var msg = __webpack_require__(/*! ./zlib/messages */ 228); -var ZStream = __webpack_require__(/*! ./zlib/zstream */ 275); -var GZheader = __webpack_require__(/*! ./zlib/gzheader */ 454); +var ZStream = __webpack_require__(/*! ./zlib/zstream */ 276); +var GZheader = __webpack_require__(/*! ./zlib/gzheader */ 457); var toString = Object.prototype.toString; @@ -147819,7 +148162,7 @@ exports.ungzip = inflate; /***/ }), -/* 459 */ +/* 462 */ /*!*********************************************!*\ !*** ./node_modules/pako/lib/zlib/trees.js ***! \*********************************************/ @@ -147849,7 +148192,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 */ 124); +var utils = __webpack_require__(/*! ../utils/common */ 125); /* Public constants ==========================================================*/ /* ===========================================================================*/ @@ -149051,7 +149394,7 @@ exports._tr_align = _tr_align; /***/ }), -/* 460 */ +/* 463 */ /*!***********************************************!*\ !*** ./node_modules/pako/lib/zlib/deflate.js ***! \***********************************************/ @@ -149081,10 +149424,10 @@ 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 */ 124); -var trees = __webpack_require__(/*! ./trees */ 459); -var adler32 = __webpack_require__(/*! ./adler32 */ 278); -var crc32 = __webpack_require__(/*! ./crc32 */ 277); +var utils = __webpack_require__(/*! ../utils/common */ 125); +var trees = __webpack_require__(/*! ./trees */ 462); +var adler32 = __webpack_require__(/*! ./adler32 */ 279); +var crc32 = __webpack_require__(/*! ./crc32 */ 278); var msg = __webpack_require__(/*! ./messages */ 228); /* Public constants ==========================================================*/ @@ -150937,7 +151280,7 @@ exports.deflateTune = deflateTune; /***/ }), -/* 461 */ +/* 464 */ /*!******************************************!*\ !*** ./node_modules/pako/lib/deflate.js ***! \******************************************/ @@ -150949,11 +151292,11 @@ exports.deflateTune = deflateTune; -var zlib_deflate = __webpack_require__(/*! ./zlib/deflate */ 460); -var utils = __webpack_require__(/*! ./utils/common */ 124); -var strings = __webpack_require__(/*! ./utils/strings */ 276); +var zlib_deflate = __webpack_require__(/*! ./zlib/deflate */ 463); +var utils = __webpack_require__(/*! ./utils/common */ 125); +var strings = __webpack_require__(/*! ./utils/strings */ 277); var msg = __webpack_require__(/*! ./zlib/messages */ 228); -var ZStream = __webpack_require__(/*! ./zlib/zstream */ 275); +var ZStream = __webpack_require__(/*! ./zlib/zstream */ 276); var toString = Object.prototype.toString; @@ -151349,7 +151692,7 @@ exports.gzip = gzip; /***/ }), -/* 462 */ +/* 465 */ /*!************************************!*\ !*** ./node_modules/pako/index.js ***! \************************************/ @@ -151361,11 +151704,11 @@ exports.gzip = gzip; // Top level file is just a mixin of submodules & constants -var assign = __webpack_require__(/*! ./lib/utils/common */ 124).assign; +var assign = __webpack_require__(/*! ./lib/utils/common */ 125).assign; -var deflate = __webpack_require__(/*! ./lib/deflate */ 461); -var inflate = __webpack_require__(/*! ./lib/inflate */ 458); -var constants = __webpack_require__(/*! ./lib/zlib/constants */ 274); +var deflate = __webpack_require__(/*! ./lib/deflate */ 464); +var inflate = __webpack_require__(/*! ./lib/inflate */ 461); +var constants = __webpack_require__(/*! ./lib/zlib/constants */ 275); var pako = {}; @@ -151375,7 +151718,7 @@ module.exports = pako; /***/ }), -/* 463 */ +/* 466 */ /*!*****************************************!*\ !*** ./node_modules/jszip/lib/flate.js ***! \*****************************************/ @@ -151387,9 +151730,9 @@ module.exports = pako; var USE_TYPEDARRAY = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Uint32Array !== 'undefined'); -var pako = __webpack_require__(/*! pako */ 462); -var utils = __webpack_require__(/*! ./utils */ 78); -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 103); +var pako = __webpack_require__(/*! pako */ 465); +var utils = __webpack_require__(/*! ./utils */ 79); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 104); var ARRAY_TYPE = USE_TYPEDARRAY ? "uint8array" : "array"; @@ -151472,7 +151815,7 @@ exports.uncompressWorker = function () { /***/ }), -/* 464 */ +/* 467 */ /*!**************************************************!*\ !*** ./node_modules/jszip/lib/generate/index.js ***! \**************************************************/ @@ -151483,8 +151826,8 @@ exports.uncompressWorker = function () { "use strict"; -var compressions = __webpack_require__(/*! ../compressions */ 279); -var ZipFileWorker = __webpack_require__(/*! ./ZipFileWorker */ 453); +var compressions = __webpack_require__(/*! ../compressions */ 280); +var ZipFileWorker = __webpack_require__(/*! ./ZipFileWorker */ 456); /** * Find the compression to use. @@ -151541,7 +151884,7 @@ exports.generateWorker = function (zip, options, comment) { /***/ }), -/* 465 */ +/* 468 */ /*!*********************************************!*\ !*** ./node_modules/jszip/lib/zipObject.js ***! \*********************************************/ @@ -151552,11 +151895,11 @@ exports.generateWorker = function (zip, options, comment) { "use strict"; -var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 284); -var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 282); -var utf8 = __webpack_require__(/*! ./utf8 */ 141); +var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 285); +var DataWorker = __webpack_require__(/*! ./stream/DataWorker */ 283); +var utf8 = __webpack_require__(/*! ./utf8 */ 142); var CompressedObject = __webpack_require__(/*! ./compressedObject */ 230); -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 103); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 104); /** * A simple object representing a file in the zip file. @@ -151686,7 +152029,7 @@ module.exports = ZipObject; /***/ }), -/* 466 */ +/* 469 */ /*!********************************************************************!*\ !*** ./node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js ***! \********************************************************************/ @@ -151697,9 +152040,9 @@ module.exports = ZipObject; "use strict"; -var Readable = __webpack_require__(/*! readable-stream */ 297).Readable; +var Readable = __webpack_require__(/*! readable-stream */ 298).Readable; -var utils = __webpack_require__(/*! ../utils */ 78); +var utils = __webpack_require__(/*! ../utils */ 79); utils.inherits(NodejsStreamOutputAdapter, Readable); /** @@ -151740,7 +152083,7 @@ module.exports = NodejsStreamOutputAdapter; /***/ }), -/* 467 */ +/* 470 */ /*!********************************************************!*\ !*** ./node_modules/jszip/lib/stream/ConvertWorker.js ***! \********************************************************/ @@ -151751,8 +152094,8 @@ module.exports = NodejsStreamOutputAdapter; "use strict"; -var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 103); -var utils = __webpack_require__(/*! ../utils */ 78); +var GenericWorker = __webpack_require__(/*! ./GenericWorker */ 104); +var utils = __webpack_require__(/*! ../utils */ 79); /** * A worker which convert chunks to a specified type. @@ -151778,7 +152121,7 @@ module.exports = ConvertWorker; /***/ }), -/* 468 */ +/* 471 */ /*!***********************************************!*\ !*** ./node_modules/immediate/lib/browser.js ***! \***********************************************/ @@ -151857,10 +152200,10 @@ function immediate(task) { } } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 97))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 98))) /***/ }), -/* 469 */ +/* 472 */ /*!*****************************************!*\ !*** ./node_modules/lie/lib/browser.js ***! \*****************************************/ @@ -151870,7 +152213,7 @@ function immediate(task) { "use strict"; -var immediate = __webpack_require__(/*! immediate */ 468); +var immediate = __webpack_require__(/*! immediate */ 471); /* istanbul ignore next */ function INTERNAL() {} @@ -152125,7 +152468,7 @@ function race(iterable) { /***/ }), -/* 470 */ +/* 473 */ /*!*************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_cof.js ***! \*************************************************************************/ @@ -152140,7 +152483,7 @@ module.exports = function(it){ }; /***/ }), -/* 471 */ +/* 474 */ /*!**************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_html.js ***! \**************************************************************************/ @@ -152151,7 +152494,7 @@ module.exports = function(it){ module.exports = __webpack_require__(/*! ./_global */ 169).document && document.documentElement; /***/ }), -/* 472 */ +/* 475 */ /*!****************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_invoke.js ***! \****************************************************************************/ @@ -152177,7 +152520,7 @@ module.exports = function(fn, args, that){ }; /***/ }), -/* 473 */ +/* 476 */ /*!**************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_task.js ***! \**************************************************************************/ @@ -152185,10 +152528,10 @@ module.exports = function(fn, args, that){ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var ctx = __webpack_require__(/*! ./_ctx */ 287) - , invoke = __webpack_require__(/*! ./_invoke */ 472) - , html = __webpack_require__(/*! ./_html */ 471) - , cel = __webpack_require__(/*! ./_dom-create */ 285) +var ctx = __webpack_require__(/*! ./_ctx */ 288) + , invoke = __webpack_require__(/*! ./_invoke */ 475) + , html = __webpack_require__(/*! ./_html */ 474) + , cel = __webpack_require__(/*! ./_dom-create */ 286) , global = __webpack_require__(/*! ./_global */ 169) , process = global.process , setTask = global.setImmediate @@ -152224,7 +152567,7 @@ if(!setTask || !clearTask){ delete queue[id]; }; // Node.js 0.8- - if(__webpack_require__(/*! ./_cof */ 470)(process) == 'process'){ + if(__webpack_require__(/*! ./_cof */ 473)(process) == 'process'){ defer = function(id){ process.nextTick(ctx(run, id, 1)); }; @@ -152262,7 +152605,7 @@ module.exports = { }; /***/ }), -/* 474 */ +/* 477 */ /*!***********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_property-desc.js ***! \***********************************************************************************/ @@ -152280,7 +152623,7 @@ module.exports = function(bitmap, value){ }; /***/ }), -/* 475 */ +/* 478 */ /*!**********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_to-primitive.js ***! \**********************************************************************************/ @@ -152302,7 +152645,7 @@ module.exports = function(it, S){ }; /***/ }), -/* 476 */ +/* 479 */ /*!************************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_ie8-dom-define.js ***! \************************************************************************************/ @@ -152310,12 +152653,12 @@ module.exports = function(it, S){ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = !__webpack_require__(/*! ./_descriptors */ 231) && !__webpack_require__(/*! ./_fails */ 286)(function(){ - return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ 285)('div'), 'a', {get: function(){ return 7; }}).a != 7; +module.exports = !__webpack_require__(/*! ./_descriptors */ 231) && !__webpack_require__(/*! ./_fails */ 287)(function(){ + return Object.defineProperty(__webpack_require__(/*! ./_dom-create */ 286)('div'), 'a', {get: function(){ return 7; }}).a != 7; }); /***/ }), -/* 477 */ +/* 480 */ /*!*******************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_an-object.js ***! \*******************************************************************************/ @@ -152330,7 +152673,7 @@ module.exports = function(it){ }; /***/ }), -/* 478 */ +/* 481 */ /*!*******************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_object-dp.js ***! \*******************************************************************************/ @@ -152338,9 +152681,9 @@ module.exports = function(it){ /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var anObject = __webpack_require__(/*! ./_an-object */ 477) - , IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 476) - , toPrimitive = __webpack_require__(/*! ./_to-primitive */ 475) +var anObject = __webpack_require__(/*! ./_an-object */ 480) + , IE8_DOM_DEFINE = __webpack_require__(/*! ./_ie8-dom-define */ 479) + , toPrimitive = __webpack_require__(/*! ./_to-primitive */ 478) , dP = Object.defineProperty; exports.f = __webpack_require__(/*! ./_descriptors */ 231) ? Object.defineProperty : function defineProperty(O, P, Attributes){ @@ -152356,7 +152699,7 @@ exports.f = __webpack_require__(/*! ./_descriptors */ 231) ? Object.defineProper }; /***/ }), -/* 479 */ +/* 482 */ /*!**************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_hide.js ***! \**************************************************************************/ @@ -152364,8 +152707,8 @@ exports.f = __webpack_require__(/*! ./_descriptors */ 231) ? Object.defineProper /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var dP = __webpack_require__(/*! ./_object-dp */ 478) - , createDesc = __webpack_require__(/*! ./_property-desc */ 474); +var dP = __webpack_require__(/*! ./_object-dp */ 481) + , createDesc = __webpack_require__(/*! ./_property-desc */ 477); module.exports = __webpack_require__(/*! ./_descriptors */ 231) ? function(object, key, value){ return dP.f(object, key, createDesc(1, value)); } : function(object, key, value){ @@ -152374,7 +152717,7 @@ module.exports = __webpack_require__(/*! ./_descriptors */ 231) ? function(objec }; /***/ }), -/* 480 */ +/* 483 */ /*!********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_a-function.js ***! \********************************************************************************/ @@ -152388,7 +152731,7 @@ module.exports = function(it){ }; /***/ }), -/* 481 */ +/* 484 */ /*!****************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/_export.js ***! \****************************************************************************/ @@ -152397,9 +152740,9 @@ module.exports = function(it){ /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(/*! ./_global */ 169) - , core = __webpack_require__(/*! ./_core */ 288) - , ctx = __webpack_require__(/*! ./_ctx */ 287) - , hide = __webpack_require__(/*! ./_hide */ 479) + , core = __webpack_require__(/*! ./_core */ 289) + , ctx = __webpack_require__(/*! ./_ctx */ 288) + , hide = __webpack_require__(/*! ./_hide */ 482) , PROTOTYPE = 'prototype'; var $export = function(type, name, source){ @@ -152459,7 +152802,7 @@ $export.R = 128; // real proto method for `library` module.exports = $export; /***/ }), -/* 482 */ +/* 485 */ /*!**********************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/modules/web.immediate.js ***! \**********************************************************************************/ @@ -152467,15 +152810,15 @@ module.exports = $export; /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -var $export = __webpack_require__(/*! ./_export */ 481) - , $task = __webpack_require__(/*! ./_task */ 473); +var $export = __webpack_require__(/*! ./_export */ 484) + , $task = __webpack_require__(/*! ./_task */ 476); $export($export.G + $export.B, { setImmediate: $task.set, clearImmediate: $task.clear }); /***/ }), -/* 483 */ +/* 486 */ /*!*****************************************************************************!*\ !*** ./node_modules/jszip/node_modules/core-js/library/fn/set-immediate.js ***! \*****************************************************************************/ @@ -152483,11 +152826,11 @@ $export($export.G + $export.B, { /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -__webpack_require__(/*! ../modules/web.immediate */ 482); -module.exports = __webpack_require__(/*! ../modules/_core */ 288).setImmediate; +__webpack_require__(/*! ../modules/web.immediate */ 485); +module.exports = __webpack_require__(/*! ../modules/_core */ 289).setImmediate; /***/ }), -/* 484 */ +/* 487 */ /*!*****************************************************!*\ !*** ./node_modules/readable-stream/passthrough.js ***! \*****************************************************/ @@ -152499,7 +152842,7 @@ module.exports = __webpack_require__(/*! ./readable */ 234).PassThrough /***/ }), -/* 485 */ +/* 488 */ /*!***************************************************!*\ !*** ./node_modules/readable-stream/transform.js ***! \***************************************************/ @@ -152511,7 +152854,7 @@ module.exports = __webpack_require__(/*! ./readable */ 234).Transform /***/ }), -/* 486 */ +/* 489 */ /*!********************************************************!*\ !*** ./node_modules/readable-stream/duplex-browser.js ***! \********************************************************/ @@ -152519,11 +152862,11 @@ module.exports = __webpack_require__(/*! ./readable */ 234).Transform /*! all exports used */ /***/ (function(module, exports, __webpack_require__) { -module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ 130); +module.exports = __webpack_require__(/*! ./lib/_stream_duplex.js */ 131); /***/ }), -/* 487 */ +/* 490 */ /*!**********************************************************!*\ !*** ./node_modules/readable-stream/writable-browser.js ***! \**********************************************************/ @@ -152535,7 +152878,7 @@ module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ 233); /***/ }), -/* 488 */ +/* 491 */ /*!*****************************************************************!*\ !*** ./node_modules/readable-stream/lib/_stream_passthrough.js ***! \*****************************************************************/ @@ -152573,11 +152916,11 @@ module.exports = __webpack_require__(/*! ./lib/_stream_writable.js */ 233); module.exports = PassThrough; -var Transform = __webpack_require__(/*! ./_stream_transform */ 290); +var Transform = __webpack_require__(/*! ./_stream_transform */ 291); /**/ -var util = __webpack_require__(/*! core-util-is */ 149); -util.inherits = __webpack_require__(/*! inherits */ 131); +var util = __webpack_require__(/*! core-util-is */ 150); +util.inherits = __webpack_require__(/*! inherits */ 132); /**/ util.inherits(PassThrough, Transform); @@ -152593,7 +152936,7 @@ PassThrough.prototype._transform = function (chunk, encoding, cb) { }; /***/ }), -/* 489 */ +/* 492 */ /*!************************************************!*\ !*** ./node_modules/util-deprecate/browser.js ***! \************************************************/ @@ -152669,10 +153012,10 @@ function config (name) { return String(val).toLowerCase() === 'true'; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98))) /***/ }), -/* 490 */ +/* 493 */ /*!*************************************************************************!*\ !*** ./node_modules/readable-stream/lib/internal/streams/BufferList.js ***! \*************************************************************************/ @@ -152686,7 +153029,7 @@ 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 */ 171).Buffer; -var util = __webpack_require__(/*! util */ 293); +var util = __webpack_require__(/*! util */ 294); function copyBuffer(src, target, offset) { src.copy(target, offset); @@ -152762,7 +153105,7 @@ if (util && util.inspect && util.inspect.custom) { } /***/ }), -/* 491 */ +/* 494 */ /*!*************************************************!*\ !*** ./node_modules/stream-browserify/index.js ***! \*************************************************/ @@ -152793,15 +153136,15 @@ if (util && util.inspect && util.inspect.custom) { module.exports = Stream; -var EE = __webpack_require__(/*! events */ 142).EventEmitter; -var inherits = __webpack_require__(/*! inherits */ 131); +var EE = __webpack_require__(/*! events */ 143).EventEmitter; +var inherits = __webpack_require__(/*! inherits */ 132); inherits(Stream, EE); Stream.Readable = __webpack_require__(/*! readable-stream/readable.js */ 234); -Stream.Writable = __webpack_require__(/*! readable-stream/writable.js */ 487); -Stream.Duplex = __webpack_require__(/*! readable-stream/duplex.js */ 486); -Stream.Transform = __webpack_require__(/*! readable-stream/transform.js */ 485); -Stream.PassThrough = __webpack_require__(/*! readable-stream/passthrough.js */ 484); +Stream.Writable = __webpack_require__(/*! readable-stream/writable.js */ 490); +Stream.Duplex = __webpack_require__(/*! readable-stream/duplex.js */ 489); +Stream.Transform = __webpack_require__(/*! readable-stream/transform.js */ 488); +Stream.PassThrough = __webpack_require__(/*! readable-stream/passthrough.js */ 487); // Backwards-compat with node 0.4.x Stream.Stream = Stream; @@ -152900,7 +153243,7 @@ Stream.prototype.pipe = function(dest, options) { /***/ }), -/* 492 */ +/* 495 */ /*!***************************************!*\ !*** ./node_modules/ieee754/index.js ***! \***************************************/ @@ -152995,7 +153338,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { /***/ }), -/* 493 */ +/* 496 */ /*!*****************************************!*\ !*** ./node_modules/base64-js/index.js ***! \*****************************************/ @@ -153158,7 +153501,7 @@ function fromByteArray (uint8) { /***/ }), -/* 494 */ +/* 497 */ /*!******************************************!*\ !*** ./node_modules/jszip/lib/object.js ***! \******************************************/ @@ -153168,16 +153511,16 @@ function fromByteArray (uint8) { "use strict"; -var utf8 = __webpack_require__(/*! ./utf8 */ 141); -var utils = __webpack_require__(/*! ./utils */ 78); -var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 103); -var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 284); -var defaults = __webpack_require__(/*! ./defaults */ 283); +var utf8 = __webpack_require__(/*! ./utf8 */ 142); +var utils = __webpack_require__(/*! ./utils */ 79); +var GenericWorker = __webpack_require__(/*! ./stream/GenericWorker */ 104); +var StreamHelper = __webpack_require__(/*! ./stream/StreamHelper */ 285); +var defaults = __webpack_require__(/*! ./defaults */ 284); var CompressedObject = __webpack_require__(/*! ./compressedObject */ 230); -var ZipObject = __webpack_require__(/*! ./zipObject */ 465); -var generate = __webpack_require__(/*! ./generate */ 464); +var ZipObject = __webpack_require__(/*! ./zipObject */ 468); +var generate = __webpack_require__(/*! ./generate */ 467); var nodejsUtils = __webpack_require__(/*! ./nodejsUtils */ 170); -var NodejsStreamInputAdapter = __webpack_require__(/*! ./nodejs/NodejsStreamInputAdapter */ 452); +var NodejsStreamInputAdapter = __webpack_require__(/*! ./nodejs/NodejsStreamInputAdapter */ 455); /** @@ -153559,7 +153902,7 @@ module.exports = out; /***/ }), -/* 495 */ +/* 498 */ /*!****************************************!*\ !*** ./node_modules/date-now/index.js ***! \****************************************/ @@ -153575,7 +153918,7 @@ function now() { /***/ }), -/* 496 */ +/* 499 */ /*!***************************************!*\ !*** ./node_modules/assert/assert.js ***! \***************************************/ @@ -153652,7 +153995,7 @@ function isBuffer(b) { // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -var util = __webpack_require__(/*! util/ */ 300); +var util = __webpack_require__(/*! util/ */ 301); var hasOwn = Object.prototype.hasOwnProperty; var pSlice = Array.prototype.slice; var functionsHaveNames = (function () { @@ -154075,10 +154418,10 @@ var objectKeys = Object.keys || function (obj) { return keys; }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98))) /***/ }), -/* 497 */ +/* 500 */ /*!******************************************************!*\ !*** ./node_modules/util/support/isBufferBrowser.js ***! \******************************************************/ @@ -154094,7 +154437,7 @@ module.exports = function isBuffer(arg) { } /***/ }), -/* 498 */ +/* 501 */ /*!**************************************************!*\ !*** ./node_modules/console-browserify/index.js ***! \**************************************************/ @@ -154103,9 +154446,9 @@ module.exports = function isBuffer(arg) { /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/*global window, global*/ -var util = __webpack_require__(/*! util */ 300) -var assert = __webpack_require__(/*! assert */ 496) -var now = __webpack_require__(/*! date-now */ 495) +var util = __webpack_require__(/*! util */ 301) +var assert = __webpack_require__(/*! assert */ 499) +var now = __webpack_require__(/*! date-now */ 498) var slice = Array.prototype.slice var console @@ -154189,10 +154532,10 @@ function consoleAssert(expression) { } } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98))) /***/ }), -/* 499 */ +/* 502 */ /*!**************************************************!*\ !*** ./node_modules/jshint/src/scope-manager.js ***! \**************************************************/ @@ -154204,7 +154547,7 @@ function consoleAssert(expression) { var _ = __webpack_require__(/*! lodash */ 173); -var events = __webpack_require__(/*! events */ 142); +var events = __webpack_require__(/*! events */ 143); // Used to denote membership in lookup tables (a primitive value such as `true` // would be silently rejected for the property name "__proto__" in some @@ -155099,7 +155442,7 @@ module.exports = scopeManager; /***/ }), -/* 500 */ +/* 503 */ /*!********************************************!*\ !*** ./node_modules/jshint/src/options.js ***! \********************************************/ @@ -156163,7 +156506,7 @@ exports.noenforceall = { /***/ }), -/* 501 */ +/* 504 */ /*!******************************************!*\ !*** ./node_modules/jshint/src/style.js ***! \******************************************/ @@ -156319,7 +156662,7 @@ exports.register = function(linter) { /***/ }), -/* 502 */ +/* 505 */ /*!**********************************************************!*\ !*** ./node_modules/jshint/data/es5-identifier-names.js ***! \**********************************************************/ @@ -156330,7 +156673,7 @@ exports.register = function(linter) { module.exports = /^(?:[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0525\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0621-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971\u0972\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3D\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC\u0EDD\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8B\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u2094\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31B7\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCB\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA65F\uA662-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B\uA78C\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA2D\uFA30-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])(?:[\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0525\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0621-\u065E\u0660-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0900-\u0939\u093C-\u094E\u0950-\u0955\u0958-\u0963\u0966-\u096F\u0971\u0972\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC\u0EDD\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10D0-\u10FA\u10FC\u1100-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17B3\u17B6-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BAA\u1BAE-\u1BB9\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF2\u1D00-\u1DE6\u1DFD-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u2094\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF1\u2D00-\u2D25\u2D30-\u2D65\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31B7\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCB\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA65F\uA662-\uA66F\uA67C\uA67D\uA67F-\uA697\uA6A0-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B\uA78C\uA7FB-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA2D\uFA30-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC])*$/; /***/ }), -/* 503 */ +/* 506 */ /*!********************************************************************!*\ !*** ./node_modules/jshint/data/non-ascii-identifier-part-only.js ***! \********************************************************************/ @@ -156345,7 +156688,7 @@ var arr = str.split(',').map(function(code) { module.exports = arr; /***/ }), -/* 504 */ +/* 507 */ /*!****************************************************************!*\ !*** ./node_modules/jshint/data/non-ascii-identifier-start.js ***! \****************************************************************/ @@ -156360,7 +156703,7 @@ var arr = str.split(',').map(function(code) { module.exports = arr; /***/ }), -/* 505 */ +/* 508 */ /*!***********************************************************!*\ !*** ./node_modules/jshint/data/ascii-identifier-data.js ***! \***********************************************************/ @@ -156393,7 +156736,7 @@ module.exports = { /***/ }), -/* 506 */ +/* 509 */ /*!***********************************************!*\ !*** ./node_modules/jshint/src/name-stack.js ***! \***********************************************/ @@ -156479,7 +156822,7 @@ module.exports = NameStack; /***/ }), -/* 507 */ +/* 510 */ /*!****************************************!*\ !*** ./node_modules/jshint/src/lex.js ***! \****************************************/ @@ -156495,15 +156838,15 @@ module.exports = NameStack; var _ = __webpack_require__(/*! lodash */ 173); -var events = __webpack_require__(/*! events */ 142); -var reg = __webpack_require__(/*! ./reg.js */ 302); -var state = __webpack_require__(/*! ./state.js */ 301).state; +var events = __webpack_require__(/*! events */ 143); +var reg = __webpack_require__(/*! ./reg.js */ 303); +var state = __webpack_require__(/*! ./state.js */ 302).state; -var unicodeData = __webpack_require__(/*! ../data/ascii-identifier-data.js */ 505); +var unicodeData = __webpack_require__(/*! ../data/ascii-identifier-data.js */ 508); var asciiIdentifierStartTable = unicodeData.asciiIdentifierStartTable; var asciiIdentifierPartTable = unicodeData.asciiIdentifierPartTable; -var nonAsciiIdentifierStartTable = __webpack_require__(/*! ../data/non-ascii-identifier-start.js */ 504); -var nonAsciiIdentifierPartTable = __webpack_require__(/*! ../data/non-ascii-identifier-part-only.js */ 503); +var nonAsciiIdentifierStartTable = __webpack_require__(/*! ../data/non-ascii-identifier-start.js */ 507); +var nonAsciiIdentifierPartTable = __webpack_require__(/*! ../data/non-ascii-identifier-part-only.js */ 506); // Loading of this module is deferred as an optimization for ES2015 input var es5IdentifierNames; @@ -157190,7 +157533,7 @@ Lexer.prototype = { value = removeEscapeSequences(id); if (!state.inES6(true)) { - es5IdentifierNames = __webpack_require__(/*! ../data/es5-identifier-names.js */ 502); + es5IdentifierNames = __webpack_require__(/*! ../data/es5-identifier-names.js */ 505); if (!es5IdentifierNames.test(value)) { this.triggerAsync( @@ -158420,7 +158763,7 @@ exports.Context = Context; /***/ }), -/* 508 */ +/* 511 */ /*!*********************************************!*\ !*** ./node_modules/jshint/src/messages.js ***! \*********************************************/ @@ -158690,7 +159033,7 @@ _.each(info, function(desc, code) { /***/ }), -/* 509 */ +/* 512 */ /*!*****************************************!*\ !*** ./node_modules/jshint/src/vars.js ***! \*****************************************/ @@ -159487,7 +159830,7 @@ exports.jasmine = { /***/ }), -/* 510 */ +/* 513 */ /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ @@ -159520,7 +159863,7 @@ module.exports = function(module) { /***/ }), -/* 511 */ +/* 514 */ /*!*******************************************************************!*\ !*** ./node_modules/codemirror/addon/scroll/annotatescrollbar.js ***! \*******************************************************************/ @@ -159533,7 +159876,7 @@ module.exports = function(module) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50)); else {} })(function(CodeMirror) { "use strict"; @@ -159650,7 +159993,7 @@ module.exports = function(module) { /***/ }), -/* 512 */ +/* 515 */ /*!********************************************************************!*\ !*** ./node_modules/codemirror/addon/search/matchesonscrollbar.js ***! \********************************************************************/ @@ -159663,7 +160006,7 @@ module.exports = function(module) { (function(mod) { if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54), __webpack_require__(/*! ./searchcursor */ 240), __webpack_require__(/*! ../scroll/annotatescrollbar */ 511)); + mod(__webpack_require__(/*! ../../lib/codemirror */ 50), __webpack_require__(/*! ./searchcursor */ 241), __webpack_require__(/*! ../scroll/annotatescrollbar */ 514)); else {} })(function(CodeMirror) { "use strict"; @@ -159755,178 +160098,7 @@ module.exports = function(module) { /***/ }), -/* 513 */, -/* 514 */, -/* 515 */, -/* 516 */ -/*!********************************************************!*\ - !*** ./node_modules/codemirror/addon/dialog/dialog.js ***! - \********************************************************/ -/*! no static exports found */ -/*! all exports used */ -/***/ (function(module, exports, __webpack_require__) { - -// CodeMirror, copyright (c) by Marijn Haverbeke and others -// Distributed under an MIT license: https://codemirror.net/LICENSE - -// Open simple dialogs on top of an editor. Relies on dialog.css. - -(function(mod) { - if (true) // CommonJS - mod(__webpack_require__(/*! ../../lib/codemirror */ 54)); - else {} -})(function(CodeMirror) { - function dialogDiv(cm, template, bottom) { - var wrap = cm.getWrapperElement(); - var dialog; - dialog = wrap.appendChild(document.createElement("div")); - if (bottom) - dialog.className = "CodeMirror-dialog CodeMirror-dialog-bottom"; - else - dialog.className = "CodeMirror-dialog CodeMirror-dialog-top"; - - if (typeof template == "string") { - dialog.innerHTML = template; - } else { // Assuming it's a detached DOM element. - dialog.appendChild(template); - } - CodeMirror.addClass(wrap, 'dialog-opened'); - return dialog; - } - - function closeNotification(cm, newVal) { - if (cm.state.currentNotificationClose) - cm.state.currentNotificationClose(); - cm.state.currentNotificationClose = newVal; - } - - CodeMirror.defineExtension("openDialog", function(template, callback, options) { - if (!options) options = {}; - - closeNotification(this, null); - - var dialog = dialogDiv(this, template, options.bottom); - var closed = false, me = this; - function close(newVal) { - if (typeof newVal == 'string') { - inp.value = newVal; - } else { - if (closed) return; - closed = true; - CodeMirror.rmClass(dialog.parentNode, 'dialog-opened'); - dialog.parentNode.removeChild(dialog); - me.focus(); - - if (options.onClose) options.onClose(dialog); - } - } - - var inp = dialog.getElementsByTagName("input")[0], button; - if (inp) { - inp.focus(); - - if (options.value) { - inp.value = options.value; - if (options.selectValueOnOpen !== false) { - inp.select(); - } - } - - if (options.onInput) - CodeMirror.on(inp, "input", function(e) { options.onInput(e, inp.value, close);}); - if (options.onKeyUp) - CodeMirror.on(inp, "keyup", function(e) {options.onKeyUp(e, inp.value, close);}); - - CodeMirror.on(inp, "keydown", function(e) { - if (options && options.onKeyDown && options.onKeyDown(e, inp.value, close)) { return; } - if (e.keyCode == 27 || (options.closeOnEnter !== false && e.keyCode == 13)) { - inp.blur(); - CodeMirror.e_stop(e); - close(); - } - if (e.keyCode == 13) callback(inp.value, e); - }); - - if (options.closeOnBlur !== false) CodeMirror.on(inp, "blur", close); - } else if (button = dialog.getElementsByTagName("button")[0]) { - CodeMirror.on(button, "click", function() { - close(); - me.focus(); - }); - - if (options.closeOnBlur !== false) CodeMirror.on(button, "blur", close); - - button.focus(); - } - return close; - }); - - CodeMirror.defineExtension("openConfirm", function(template, callbacks, options) { - closeNotification(this, null); - var dialog = dialogDiv(this, template, options && options.bottom); - var buttons = dialog.getElementsByTagName("button"); - var closed = false, me = this, blurring = 1; - function close() { - if (closed) return; - closed = true; - CodeMirror.rmClass(dialog.parentNode, 'dialog-opened'); - dialog.parentNode.removeChild(dialog); - me.focus(); - } - buttons[0].focus(); - for (var i = 0; i < buttons.length; ++i) { - var b = buttons[i]; - (function(callback) { - CodeMirror.on(b, "click", function(e) { - CodeMirror.e_preventDefault(e); - close(); - if (callback) callback(me); - }); - })(callbacks[i]); - CodeMirror.on(b, "blur", function() { - --blurring; - setTimeout(function() { if (blurring <= 0) close(); }, 200); - }); - CodeMirror.on(b, "focus", function() { ++blurring; }); - } - }); - - /* - * openNotification - * Opens a notification, that can be closed with an optional timer - * (default 5000ms timer) and always closes on click. - * - * If a notification is opened while another is opened, it will close the - * currently opened one and open the new one immediately. - */ - CodeMirror.defineExtension("openNotification", function(template, options) { - closeNotification(this, close); - var dialog = dialogDiv(this, template, options && options.bottom); - var closed = false, doneTimer; - var duration = options && typeof options.duration !== "undefined" ? options.duration : 5000; - - function close() { - if (closed) return; - closed = true; - clearTimeout(doneTimer); - CodeMirror.rmClass(dialog.parentNode, 'dialog-opened'); - dialog.parentNode.removeChild(dialog); - } - - CodeMirror.on(dialog, 'click', function(e) { - CodeMirror.e_preventDefault(e); - close(); - }); - - if (duration) - doneTimer = setTimeout(close, duration); - - return close; - }); -}); - - -/***/ }), +/* 516 */, /* 517 */, /* 518 */, /* 519 */, @@ -159983,7 +160155,10 @@ module.exports = function(module) { /* 570 */, /* 571 */, /* 572 */, -/* 573 */ +/* 573 */, +/* 574 */, +/* 575 */, +/* 576 */ /*!**********************************************************!*\ !*** ./node_modules/js-beautify/js/lib/beautify-html.js ***! \**********************************************************/ @@ -161346,9 +161521,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 */ 248), __webpack_require__(/*! ./beautify-css */ 247)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(requireamd) { - var js_beautify = __webpack_require__(/*! ./beautify */ 248); - var css_beautify = __webpack_require__(/*! ./beautify-css */ 247); + !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, __webpack_require__(/*! ./beautify */ 249), __webpack_require__(/*! ./beautify-css */ 248)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(requireamd) { + var js_beautify = __webpack_require__(/*! ./beautify */ 249); + var css_beautify = __webpack_require__(/*! ./beautify-css */ 248); return { html_beautify: function(html_source, options) { @@ -161363,7 +161538,7 @@ if (true) { /***/ }), -/* 574 */ +/* 577 */ /*!***************************************************!*\ !*** ./node_modules/setimmediate/setImmediate.js ***! \***************************************************/ @@ -161558,7 +161733,7 @@ if (true) { attachTo.clearImmediate = clearImmediate; }(typeof self === "undefined" ? typeof global === "undefined" ? this : global : self)); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 97), __webpack_require__(/*! ./../process/browser.js */ 143))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ 98), __webpack_require__(/*! ./../process/browser.js */ 144))) /***/ }) ])]); diff --git a/dist/vendor.css b/dist/vendor.css index 64f8245af..5882a9476 100644 --- a/dist/vendor.css +++ b/dist/vendor.css @@ -5383,6 +5383,35 @@ THE SOFTWARE. .cm-s-zenburn .CodeMirror-focused div.CodeMirror-selected { background: #4f4f4f; } +.CodeMirror-dialog { + position: absolute; + left: 0; + right: 0; + background: inherit; + z-index: 15; + padding: .1em .8em; + overflow: hidden; + color: inherit; } + +.CodeMirror-dialog-top { + border-bottom: 1px solid #eee; + top: 0; } + +.CodeMirror-dialog-bottom { + border-top: 1px solid #eee; + bottom: 0; } + +.CodeMirror-dialog input { + border: none; + outline: none; + background: transparent; + width: 20em; + color: inherit; + font-family: monospace; } + +.CodeMirror-dialog button { + font-size: 70%; } + .CodeMirror-foldmarker { color: blue; text-shadow: #b9f 1px 1px 2px, #b9f -1px -1px 2px, #b9f 1px -1px 2px, #b9f -1px 1px 2px; diff --git a/doc/source/index.rst b/doc/source/index.rst index cf0f99330..d39e9c979 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -23,6 +23,7 @@ secrets that you've been searching for. Basic Gameplay Advanced Gameplay Keyboard Shortcuts + Script Editors Game Frozen or Stuck? Changelog diff --git a/doc/source/scripteditors.rst b/doc/source/scripteditors.rst new file mode 100644 index 000000000..57ddabeaa --- /dev/null +++ b/doc/source/scripteditors.rst @@ -0,0 +1,140 @@ +.. _scripteditors: + +Script Editors +============== +Third-party libraries are used to implement the game's Script Editor(s). There are +currently two options for the Script Editor: + +* `Ace `_ +* `CodeMirror `_ + +You can select which of the two editors you want to use on the Script Editor page +('Create Script' on the main menu). + +Ace was the game's original Script Editor, while CodeMirror was added later in +v0.43.0. The two editors share many of the same features, so there is not a significant +difference between the two. Currently, CodeMirror is slightly more modern, +more customizable, and has a few quality-of-life improvements compared to Ace. + +Universal Key Bindings +---------------------- +These keyboard shortcuts are available in both the Ace and CodeMirror editors, regardless +of what key binding option you are using: + +============= =========================================================================== +Shortcut Action +============= =========================================================================== +Ctrl + b Save script and return to :ref:`terminal` +Ctrl + space Show Autocomplete Hints +============= =========================================================================== + +.. _scripteditor_linter: + +Linter +------ +Both script editors contain a linter, which is a tool that analyzes your +code and flags anything it thinks might be an error. You can see +warnings and errors from the linter on the left-hand side of the script editor. There +will be an icon on whatever lines the linter thinks might be problematic. Hovering +over the icon will display information on what the issue is. + +Note that **just because the linter shows an error/warning, this does NOT automatically mean that** +**your script is broken and will fail to run.** This is especially true if you are using +:ref:`netscriptjs`. The linter used by the script editors isn't necessarily perfect or +up-to-date. Furthermore, the linter does not affect anything when you actually run scripts. + +Ace +--- +The following documents what the different settings/options do for the Ace editor, +as well as the different key binding settings. Note that the +information for the key bindings may not be completely comprehensive. You'll +have to dig into the editor source code if you want to learn more. + +Settings +~~~~~~~~ + +===================== =========================================================================================================== +Setting Effect +===================== =========================================================================================================== +Theme Switch between different color schemes +Key Binding Switch between different key binding options. This changes what keyboard shortcuts are available +Highlight Active Line When enabled, the line on which the cursor currently resides will be highlighted. +Show Invisibles When enabled, you will be able to view hidden whitespace characters such as spaces, tabs, and newlines. +Use Soft Tab When enabled, tabs will be replaced with spaces +Max Error Count Specifies the (approximate) number of lines that will be linted +===================== =========================================================================================================== + +Ace Key Bindings +~~~~~~~~~~~~~~~~ +For Ace, the "Ace" Key Binding setting uses the default configuration. A list of these +`can be found here `_. + +Vim Key Bindings +~~~~~~~~~~~~~~~~ +For Ace, the "Vim" Key Binding setting configures the editor to use +`Vim `_ key mappings. Note that while this tries +to emulate Vim features as faithfully as possible, it is not a complete Vim implementation. + +Since I'm not familiar with Vim, I'll leave +`Ace's Vim Mode implementation here `_, +which I believe shows most of the implemented features. + +Note that the following Vim Ex commands will properly save the script and/or quit the editor in game: + +======= ============================================== +Command Effect +======= ============================================== +:w Save the script and return to :ref:`terminal` +:q Return to :ref:`terminal` **WITHOUT** saving +:x Save the script and return to :ref:`terminal` +:wq Save the script and return to :ref:`terminal` +======= ============================================== + +Emacs Key Bindings +~~~~~~~~~~~~~~~~~~ +For Ace, the "Emacs" Key Binding setting configures the editor to use +`Emacs `_ key mappings. Note that while this tries +to emulate the Emacs key mappings as faithfully as possible, it won't necessarily be a +complete implementation. + +Since I'm not familiar with Emacs, I'll leave +`Ace's Emacs Mode implementation here `_, +which I believe shows most of the implemented features. + +CodeMirror +---------- +The following documents what the different settings/options do for the CodeMirror editor, +as well as the shortcuts for the different key binding settings. Note that the +information for the key bindings may not be completely comprehensive. You'll +have to dig into the editor source code if you want to learn everything. + +Settings +~~~~~~~~ +========================== =========================================================================================================== +Setting Effect +========================== =========================================================================================================== +Theme Switch between different color schemes +Key Binding Switch between different key binding options. This changes what keyboard shortcuts are available +Highlight Active Line When enabled, the line on which the cursor currently resides will be highlighted. +Show Invisibles When enabled, you will be able to view hidden whitespace characters such as spaces, tabs, and newlines. +Use Soft Tab When enabled, tabs will be replaced with spaces +Auto-Close Brackets/Quotes When enabled, any opening brackets or quotes that are typed will be closed +Enable Linting Enable/Disable the :ref:`scripteditor_linter` +Continue Comments When enabled, pressing 'Enter' inside a comment block will continue the comment on the next line +========================== =========================================================================================================== + +Default Key Bindings +~~~~~~~~~~~~~~~~~~~~ +.. todo:: Fill out + +Sublime Key Bindings +~~~~~~~~~~~~~~~~~~~~ +.. todo:: Fill out + +Vim Key Bindings +~~~~~~~~~~~~~~~~ +.. todo:: Fill out + +Emacs Key Bindings +~~~~~~~~~~~~~~~~~~ +.. todo:: Fill out diff --git a/doc/source/shortcuts.rst b/doc/source/shortcuts.rst index cef353257..60e22bf28 100644 --- a/doc/source/shortcuts.rst +++ b/doc/source/shortcuts.rst @@ -35,20 +35,7 @@ Alt + o Switch to 'Options' page Script Editor ------------- -These shortcuts are available only in the Script Editor - -============= =========================================================================== -Shortcut Action -============= =========================================================================== -Ctrl + b Save script and return to :ref:`terminal` -Ctrl + space Function autocompletion -============= =========================================================================== - -In the Script Editor you can configure your key binding mode to three preset options: - -* `Ace `_ -* Vim -* Emacs +See the :ref:`Script Editor ` documentation for more details. Terminal Shortcuts ------------------ @@ -92,10 +79,13 @@ Alt + f Move cursor to next word Ctrl + h/d Delete previous character ('Backspace') ============= =========================================================================== -Misc Shortcuts --------------- +Popup/Dialog Box Shortcuts +-------------------------- +The following shortcuts work if there are any popup or dialog boxes on the screen. + ============= =========================================================================== Shortcut Action ============= =========================================================================== -Esc Close a script's log window +Esc Close the current popup, cancelling any prompts on a dialog box +Enter Clicks the "Yes/Confirm" option for every dialog box ============= =========================================================================== diff --git a/index.html b/index.html index 2b707549e..69dd1c2bf 100644 --- a/index.html +++ b/index.html @@ -120,6 +120,9 @@
+
+ Key Buffer: +
diff --git a/src/BitNode/BitNode.js b/src/BitNode/BitNode.js index 22f9739b1..a94fa2615 100644 --- a/src/BitNode/BitNode.js +++ b/src/BitNode/BitNode.js @@ -168,6 +168,7 @@ function initBitNodes() { "In this BitNode:

" + "Your stats are significantly decreased.
" + "All methods of gaining money are half as profitable (except Stock Market)
" + + "Purchased servers are more expensive, have less max RAM, and a lower maximum limit
" + "Augmentations are 5x as expensive and require twice as much reputation

" + "Destroying this BitNode will give you Source-File 10, or if you already have this Source-File it will " + "upgrade its level up to a maximum of 3. This Source-File unlocks Sleeve technology in other BitNodes. " + @@ -337,6 +338,9 @@ function initBitNodeMultipliers() { BitNodeMultipliers.CorporationValuation = 0.5; BitNodeMultipliers.AugmentationMoneyCost = 5; BitNodeMultipliers.AugmentationRepCost = 2; + BitNodeMultipliers.PurchasedServerCost = 5; + BitNodeMultipliers.PurchasedServerLimit = 0.6; + BitNodeMultipliers.PurchasedServerMaxRam = 0.5; case 11: //The Big Crash BitNodeMultipliers.ServerMaxMoney = 0.1; BitNodeMultipliers.ServerStartingMoney = 0.1; diff --git a/src/BitNode/BitNodeMultipliers.ts b/src/BitNode/BitNodeMultipliers.ts index b1f7f7c07..0e579c11a 100644 --- a/src/BitNode/BitNodeMultipliers.ts +++ b/src/BitNode/BitNodeMultipliers.ts @@ -125,6 +125,20 @@ interface IBitNodeMultipliers { */ ManualHackMoney: number; + /** + * Influence how much it costs to purchase a server + */ + PurchasedServerCost: number; + + /** + * Influences the maximum number of purchased servers you can have + */ + PurchasedServerLimit: number; + + /** + * Influences the maximum allowed RAM for a purchased server + */ + PurchasedServerMaxRam: number; /** * Influences the minimum favor the player must have with a faction before they can donate to gain rep. */ @@ -184,6 +198,10 @@ export const BitNodeMultipliers: IBitNodeMultipliers = { ServerStartingSecurity: 1, ServerWeakenRate: 1, + PurchasedServerCost: 1, + PurchasedServerLimit: 1, + PurchasedServerMaxRam: 1, + CompanyWorkMoney: 1, CrimeMoney: 1, HacknetNodeMoney: 1, diff --git a/src/Constants.ts b/src/Constants.ts index a1bacb184..fe2d3e6a7 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -524,10 +524,11 @@ export let CONSTANTS: IMap = { * Script Editor Changes: ** Added new script editor: CodeMirror. You can choose between the old editor (Ace) or CodeMirror - ** Navigation keyboard shortcuts no longer work on the script editor page + ** Navigation keyboard shortcuts no longer work if the script editor is focused * Trying to programmatically run a script (run(), exec()) with a 'threads' argument of 0 will now cause the function to return false without running the script * Home Computer RAM is now capped at 2 ^ 30 GB (1073741824 GB) + * The maximum amount, maximum RAM, and cost of purchasing servers can now vary between different BitNodes (new BitNode multipliers) * Pop-up dialog boxes are a little bit bigger * Bug Fix: When importing scripts, "./" will now be properly ignored (e.g. import { foo } from "./lib.script" ) ` diff --git a/src/Faction/FactionHelpers.js b/src/Faction/FactionHelpers.js index 7b862d2f8..281764481 100644 --- a/src/Faction/FactionHelpers.js +++ b/src/Faction/FactionHelpers.js @@ -481,7 +481,7 @@ function createFactionAugmentationDisplayElements(augmentationsList, augs, facti } var item = createElement("li"); - var span = createElement("span", {display:"inline-block"}); + var span = createElement("span", { display:"inline-block", margin: "4px", padding: "4px" }); var aDiv = createElement("div", {tooltip:aug.info}); var aElem = createElement("a", { innerText:aug.name, display:"inline", diff --git a/src/InteractiveTutorial.js b/src/InteractiveTutorial.js index 0e503cd34..8a36775ee 100644 --- a/src/InteractiveTutorial.js +++ b/src/InteractiveTutorial.js @@ -1,10 +1,12 @@ -import {Engine} from "./engine"; -import {Player} from "./Player"; -import {Settings} from "./Settings/Settings"; -import {clearEventListeners} from "../utils/uiHelpers/clearEventListeners"; -import {createElement} from "../utils/uiHelpers/createElement"; -import {createPopup} from "../utils/uiHelpers/createPopup"; -import {removeElementById} from "../utils/uiHelpers/removeElementById"; +import { Engine } from "./engine"; +import { Player } from "./Player"; +import { Settings } from "./Settings/Settings"; +import { initializeMainMenuLinks } from "./ui/MainMenu/Links"; +import { exceptionAlert } from "../utils/helpers/exceptionAlert"; +import { clearEventListeners } from "../utils/uiHelpers/clearEventListeners"; +import { createElement } from "../utils/uiHelpers/createElement"; +import { createPopup } from "../utils/uiHelpers/createPopup"; +import { removeElementById } from "../utils/uiHelpers/removeElementById"; //Ordered array of keys to Interactive Tutorial Steps const orderedITutorialSteps = [ @@ -472,7 +474,19 @@ function iTutorialEnd() { } console.log("Ending interactive tutorial"); + + // Initialize references to main menu links + // We have to call initializeMainMenuLinks() again because the Interactive Tutorial + // re-creates Main menu links with clearEventListeners() + if (!initializeMainMenuLinks()) { + const errorMsg = "Failed to initialize Main Menu Links. Please try refreshing the page. " + + "If that doesn't work, report the issue to the developer"; + exceptionAlert(new Error(errorMsg)); + console.error(errorMsg); + return; + } Engine.init(); + ITutorial.currStep = iTutorialSteps.End; ITutorial.isRunning = false; document.getElementById("interactive-tutorial-container").style.display = "none"; diff --git a/src/Location.js b/src/Location.js index 063cf3e28..b00adc353 100644 --- a/src/Location.js +++ b/src/Location.js @@ -12,8 +12,9 @@ import {hasBladeburnerSF} from "./NetscriptFunctions"; import {Locations} from "./Locations"; import {Player} from "./Player"; import {Server, AllServers, AddToAllServers} from "./Server"; -import {purchaseServer, - purchaseRamForHomeComputer} from "./ServerPurchases"; +import { getPurchaseServerCost, + purchaseServer, + purchaseRamForHomeComputer} from "./ServerPurchases"; import {Settings} from "./Settings/Settings"; import { SourceFileFlags } from "./SourceFile/SourceFileFlags"; import {SpecialServerNames, SpecialServerIps} from "./SpecialServerIps"; @@ -191,16 +192,16 @@ function displayLocationContent() { purchaseHomeRam.style.display = "none"; purchaseHomeCores.style.display = "none"; - purchase2gb.innerHTML = "Purchase 2GB Server - $" + formatNumber(2*CONSTANTS.BaseCostFor1GBOfRamServer, 2); - purchase4gb.innerHTML = "Purchase 4GB Server - $" + formatNumber(4*CONSTANTS.BaseCostFor1GBOfRamServer, 2); - purchase8gb.innerHTML = "Purchase 8GB Server - $" + formatNumber(8*CONSTANTS.BaseCostFor1GBOfRamServer, 2); - purchase16gb.innerHTML = "Purchase 16GB Server - $" + formatNumber(16*CONSTANTS.BaseCostFor1GBOfRamServer, 2); - purchase32gb.innerHTML = "Purchase 32GB Server - $" + formatNumber(32*CONSTANTS.BaseCostFor1GBOfRamServer, 2); - purchase64gb.innerHTML = "Purchase 64GB Server - $" + formatNumber(64*CONSTANTS.BaseCostFor1GBOfRamServer, 2); - purchase128gb.innerHTML = "Purchase 128GB Server - $" + formatNumber(128*CONSTANTS.BaseCostFor1GBOfRamServer, 2); - purchase256gb.innerHTML = "Purchase 256GB Server - $" + formatNumber(256*CONSTANTS.BaseCostFor1GBOfRamServer, 2); - purchase512gb.innerHTML = "Purchase 512GB Server - $" + formatNumber(512*CONSTANTS.BaseCostFor1GBOfRamServer, 2); - purchase1tb.innerHTML = "Purchase 1TB Server - $" + formatNumber(1024*CONSTANTS.BaseCostFor1GBOfRamServer, 2); + purchase2gb.innerHTML = "Purchase 2GB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(2)); + purchase4gb.innerHTML = "Purchase 4GB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(4)); + purchase8gb.innerHTML = "Purchase 8GB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(8)); + purchase16gb.innerHTML = "Purchase 16GB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(16)); + purchase32gb.innerHTML = "Purchase 32GB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(32)); + purchase64gb.innerHTML = "Purchase 64GB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(64)); + purchase128gb.innerHTML = "Purchase 128GB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(128)); + purchase256gb.innerHTML = "Purchase 256GB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(256)); + purchase512gb.innerHTML = "Purchase 512GB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(512)); + purchase1tb.innerHTML = "Purchase 1TB Server - " + numeralWrapper.formatMoney(getPurchaseServerCost(1024)); if (!SpecialServerIps.hasOwnProperty("Darkweb Server")) { purchaseTor.classList.add("a-link-button"); purchaseTor.classList.remove("a-link-button-bought"); @@ -1726,61 +1727,61 @@ function initLocationButtons() { purchase2gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(2, 2 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(2); return false; }); purchase4gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(4, 4 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(4); return false; }); purchase8gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(8, 8 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(8); return false; }); purchase16gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(16, 16 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(16); return false; }); purchase32gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(32, 32 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(32); return false; }); purchase64gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(64, 64 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(64); return false; }); purchase128gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(128, 128 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(128); return false; }); purchase256gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(256, 256 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(256); return false; }); purchase512gb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(512, 512 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(512); return false; }); purchase1tb.addEventListener("click", function(e) { if (!e.isTrusted) {return false;} - purchaseServerBoxCreate(1024, 1024 * CONSTANTS.BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(1024); return false; }); @@ -2264,13 +2265,19 @@ function travelBoxCreate(destCityName, cost) { yesNoBoxCreate("Would you like to travel to " + destCityName + "? The trip will cost $" + formatNumber(cost, 2) + "."); } -function purchaseServerBoxCreate(ram, cost) { +function purchaseServerBoxCreate(ram) { + const cost = getPurchaseServerCost(ram); + if (cost === Infinity) { + dialogBoxCreate("Something went wrong when trying to purchase this server. Please contact developer"); + return; + } + var yesBtn = yesNoTxtInpBoxGetYesButton(); var noBtn = yesNoTxtInpBoxGetNoButton(); yesBtn.innerHTML = "Purchase Server"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", function() { - purchaseServer(ram, cost); + purchaseServer(ram); yesNoTxtInpBoxClose(); }); noBtn.addEventListener("click", function() { diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js index 56192c4ad..c6191c51d 100644 --- a/src/NetscriptFunctions.js +++ b/src/NetscriptFunctions.js @@ -40,6 +40,9 @@ import {Script, findRunningScript, RunningScript, import {Server, getServer, AddToAllServers, AllServers, processSingleServerGrowth, GetServerByHostname, numCycleForGrowth} from "./Server"; +import { getPurchaseServerCost, + getPurchaseServerLimit, + getPurchaseServerMaxRam } from "./ServerPurchases"; import {Settings} from "./Settings/Settings"; import {SpecialServerIps} from "./SpecialServerIps"; import {Stock} from "./StockMarket/Stock"; @@ -234,24 +237,6 @@ function NetscriptFunctions(workerScript) { return server.getContract(fn); } - /** - * @param {number} ram The amount of server RAM to calculate cost of. - * @exception {Error} If the value passed in is not numeric, out of range, or too large of a value. - * @returns {number} The cost of - */ - const getPurchaseServerRamCostGuard = (ram) => { - const guardedRam = Math.round(ram); - if (isNaN(guardedRam) || !isPowerOfTwo(guardedRam)) { - throw Error("failed due to invalid ram argument. Must be numeric and a power of 2"); - } - - if (guardedRam > CONSTANTS.PurchasedServerMaxRam) { - throw Error("failed because specified RAM was too high. Maximum RAM on a purchased server is " + CONSTANTS.PurchasedServerMaxRam + "GB"); - } - - return guardedRam * CONSTANTS.BaseCostFor1GBOfRamServer; - }; - return { hacknet : { numNodes : function() { @@ -1911,7 +1896,7 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getPurchasedServerLimit", CONSTANTS.ScriptGetPurchasedServerLimit); - return CONSTANTS.PurchasedServerLimit; + return getPurchaseServerLimit(); }, getPurchasedServerMaxRam: function() { if (workerScript.checkingRam) { @@ -1919,7 +1904,7 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getPurchasedServerMaxRam", CONSTANTS.ScriptGetPurchasedServerMaxRam); - return CONSTANTS.PurchasedServerMaxRam; + return getPurchaseServerMaxRam(); }, getPurchasedServerCost: function(ram) { if (workerScript.checkingRam) { @@ -1927,11 +1912,9 @@ function NetscriptFunctions(workerScript) { } updateDynamicRam("getPurchasedServerCost", CONSTANTS.ScriptGetPurchaseServerRamCost); - let cost = 0; - try { - cost = getPurchaseServerRamCostGuard(ram); - } catch (e) { - workerScript.scriptRef.log("ERROR: 'getPurchasedServerCost()' " + e.message); + const cost = getPurchaseServerCost(ram); + if (cost === Infinity) { + workerScript.scriptRef.log("ERROR: 'getPurchasedServerCost()' failed due to an invalid 'ram' argument"); return Infinity; } @@ -1945,26 +1928,23 @@ function NetscriptFunctions(workerScript) { var hostnameStr = String(hostname); hostnameStr = hostnameStr.replace(/\s+/g, ''); if (hostnameStr == "") { - workerScript.scriptRef.log("ERROR: Passed empty string for hostname argument of purchaseServer()"); + workerScript.log("ERROR: Passed empty string for hostname argument of purchaseServer()"); return ""; } - if (Player.purchasedServers.length >= CONSTANTS.PurchasedServerLimit) { - workerScript.scriptRef.log("ERROR: You have reached the maximum limit of " + CONSTANTS.PurchasedServerLimit + - " servers. You cannot purchase any more."); + if (Player.purchasedServers.length >= getPurchaseServerLimit()) { + workerScript.log(`ERROR: You have reached the maximum limit of ${getPurchaseServerLimit()} servers. You cannot purchase any more.`); return ""; } - let cost = 0; - try { - cost = getPurchaseServerRamCostGuard(ram); - } catch (e) { - workerScript.scriptRef.log("ERROR: 'purchaseServer()' " + e.message); - return ""; + const cost = getPurchaseServerCost(ram); + if (cost === Infinity) { + workerScript.log("ERROR: 'purchaseServer()' failed due to an invalid 'ram' argument"); + return Infinity; } if (Player.money.lt(cost)) { - workerScript.scriptRef.log("ERROR: Not enough money to purchase server. Need $" + formatNumber(cost, 2)); + workerScript.log("ERROR: Not enough money to purchase server. Need $" + formatNumber(cost, 2)); return ""; } var newServ = new Server({ diff --git a/src/PersonObjects/Sleeve/Sleeve.ts b/src/PersonObjects/Sleeve/Sleeve.ts index 4309666ee..8d3a90c4c 100644 --- a/src/PersonObjects/Sleeve/Sleeve.ts +++ b/src/PersonObjects/Sleeve/Sleeve.ts @@ -16,6 +16,7 @@ import { Person, import { BitNodeMultipliers } from "../../BitNode/BitNodeMultipliers"; import { Crime } from "../../Crime/Crime"; +import { Crimes } from "../../Crime/Crimes"; import { Cities } from "../../Locations/Cities"; @@ -42,6 +43,12 @@ export class Sleeve extends Person { return Generic_fromJSON(Sleeve, value.data); } + /** + * Stores the type of crime the sleeve is currently attempting + * Must match the name of a Crime object + */ + crimeType: string = ""; + /** * Enum value for current task */ @@ -136,8 +143,10 @@ export class Sleeve extends Person { /** * Commit crimes */ - commitCrime(p: IPlayer, crime: Crime): boolean { + commitCrime(p: IPlayer, crimeKey: string): boolean { + const crime: Crime | null = Crimes[crimeKey]; if (!(crime instanceof Crime)) { return false; } + if (this.currentTask !== SleeveTaskType.Idle) { this.finishTask(p); } else { @@ -154,19 +163,7 @@ export class Sleeve extends Person { this.currentTaskLocation = String(this.gainRatesForTask.money); - // We'll determine success now and adjust the earnings accordingly - if (Math.random() < crime.successRate(p)) { - this.gainRatesForTask.hack *= 2; - this.gainRatesForTask.str *= 2; - this.gainRatesForTask.def *= 2; - this.gainRatesForTask.dex *= 2; - this.gainRatesForTask.agi *= 2; - this.gainRatesForTask.cha *= 2; - } else { - this.gainRatesForTask.money = 0; - } - - + this.crimeType = crimeKey; this.currentTaskMaxTime = crime.time; this.currentTask = SleeveTaskType.Crime; return true; @@ -181,8 +178,26 @@ export class Sleeve extends Person { if (this.currentTask === SleeveTaskType.Crime) { // For crimes, all experience and money is gained at the end if (this.currentTaskTime >= this.currentTaskMaxTime) { - retValue = this.gainExperience(p, this.gainRatesForTask); - this.gainMoney(p, this.gainRatesForTask); + const crime: Crime | null = Crimes[this.crimeType]; + if (!(crime instanceof Crime)) { + console.error(`Invalid data stored in sleeve.crimeType: ${this.crimeType}`); + this.resetTaskStatus(); + return retValue; + } + if (Math.random() < crime.successRate(p)) { + // Success + const successGainRates: ITaskTracker = createTaskTracker(); + + const keysForIteration: (keyof ITaskTracker)[] = (<(keyof ITaskTracker)[]>Object.keys(successGainRates)); + for (let i = 0; i < keysForIteration.length; ++i) { + const key = keysForIteration[i]; + successGainRates[key] = this.gainRatesForTask[key] * 2; + } + retValue = this.gainExperience(p, successGainRates); + this.gainMoney(p, this.gainRatesForTask); + } else { + retValue = this.gainExperience(p, this.gainRatesForTask); + } // Do not reset task to IDLE this.currentTaskTime = 0; @@ -261,7 +276,7 @@ export class Sleeve extends Person { this.defense_exp += pDefExp; p.gainDefenseExp(pDefExp); this.earningsForPlayer.def += pDefExp; - this.earningsForTask.dex += pDefExp; + this.earningsForTask.def += pDefExp; } if (pDexExp > 0) { @@ -464,6 +479,9 @@ export class Sleeve extends Person { this.currentTaskTime = 0; this.currentTaskMaxTime = 0; this.factionWorkType = FactionWorkType.None; + this.crimeType = ""; + this.currentTaskLocation = ""; + this.gymStatType = ""; } /** @@ -630,12 +648,16 @@ export class Sleeve extends Person { this.resetTaskStatus(); } + const factionInfo = Factions[factionName].getInfo(); + // Set type of work (hacking/field/security), and the experience gains const sanitizedWorkType: string = workType.toLowerCase(); if (sanitizedWorkType.includes("hack")) { + if (!factionInfo.offerHackingWork) { return false; } this.factionWorkType = FactionWorkType.Hacking; this.gainRatesForTask.hack = .15 * this.hacking_exp_mult * BitNodeMultipliers.FactionWorkExpGain; } else if (sanitizedWorkType.includes("field")) { + if (!factionInfo.offerFieldWork) { return false; } this.factionWorkType = FactionWorkType.Field; this.gainRatesForTask.hack = .1 * this.hacking_exp_mult * BitNodeMultipliers.FactionWorkExpGain; this.gainRatesForTask.str = .1 * this.strength_exp_mult * BitNodeMultipliers.FactionWorkExpGain; @@ -644,6 +666,7 @@ export class Sleeve extends Person { this.gainRatesForTask.agi = .1 * this.agility_exp_mult * BitNodeMultipliers.FactionWorkExpGain; this.gainRatesForTask.cha = .1 * this.charisma_exp_mult * BitNodeMultipliers.FactionWorkExpGain; } else if (sanitizedWorkType.includes("security")) { + if (!factionInfo.offerSecurityWork) { return false; } this.factionWorkType = FactionWorkType.Security; this.gainRatesForTask.hack = .1 * this.hacking_exp_mult * BitNodeMultipliers.FactionWorkExpGain; this.gainRatesForTask.str = .15 * this.strength_exp_mult * BitNodeMultipliers.FactionWorkExpGain; diff --git a/src/PersonObjects/Sleeve/SleeveUI.ts b/src/PersonObjects/Sleeve/SleeveUI.ts index 77efc4b94..aac680326 100644 --- a/src/PersonObjects/Sleeve/SleeveUI.ts +++ b/src/PersonObjects/Sleeve/SleeveUI.ts @@ -10,8 +10,12 @@ import { IPlayer } from "../IPlayer"; import { CONSTANTS } from "../../Constants"; import { Locations } from "../../Locations"; +import { Faction } from "../../Faction/Faction"; +import { Factions } from "../../Faction/Factions"; import { FactionWorkType } from "../../Faction/FactionWorkTypeEnum"; + import { Cities } from "../../Locations/Cities"; +import { Crime } from "../../Crime/Crime"; import { Crimes } from "../../Crime/Crimes"; import { numeralWrapper } from "../../ui/numeralFormat"; @@ -23,6 +27,7 @@ import { dialogBoxCreate } from "../../../utils/DialogBox"; import { createProgressBarText } from "../../../utils/helpers/createProgressBarText"; import { exceptionAlert } from "../../../utils/helpers/exceptionAlert"; +import { clearEventListeners } from "../../../utils/uiHelpers/clearEventListeners"; import { createElement } from "../../../utils/uiHelpers/createElement"; import { createOptionElement } from "../../../utils/uiHelpers/createOptionElement"; import { createPopup } from "../../../utils/uiHelpers/createPopup"; @@ -229,7 +234,7 @@ function createSleeveUi(sleeve: Sleeve, allSleeves: Sleeve[]): ISleeveUIElems { popupArguments.push(createElement("p", { innerText: "Have this sleeve travel to a different city. This affects " + "the gyms and universities at which this sleeve can study. " + - `Traveling to a different city costs ${numeralWrapper.formatMoney(CONSTANTS.TravelCost)}.` + + `Traveling to a different city costs ${numeralWrapper.formatMoney(CONSTANTS.TravelCost)}. ` + "It will also CANCEL the sleeve's current task (setting it to idle)", })); for (const label in Cities) { @@ -250,6 +255,7 @@ function createSleeveUi(sleeve: Sleeve, allSleeves: Sleeve[]): ISleeveUIElems { sleeve.resetTaskStatus(); removeElementById(popupId); updateSleeveUi(sleeve, elems); + updateSleeveTaskSelector(sleeve, elems, allSleeves); return false; } })); @@ -401,12 +407,6 @@ function updateSleeveUi(sleeve: Sleeve, elems: ISleeveUIElems) { } } -const factionWorkTypeSelectorOptions: string[] = [ - "Hacking Contracts", - "Security Work", - "Field Work" -]; - const universitySelectorOptions: string[] = [ "Study Computer Science", "Data Structures", @@ -450,6 +450,7 @@ function updateSleeveTaskSelector(sleeve: Sleeve, elems: ISleeveUIElems, allSlee // Reset Selectors removeChildrenFromElement(elems.taskDetailsSelector); removeChildrenFromElement(elems.taskDetailsSelector2); + elems.taskDetailsSelector2 = clearEventListeners(elems.taskDetailsSelector2!) as HTMLSelectElement; const value: string = getSelectValue(elems.taskSelector); switch(value) { @@ -486,29 +487,57 @@ function updateSleeveTaskSelector(sleeve: Sleeve, elems: ISleeveUIElems, allSlee ++factionCount; } } - for (let i = 0; i < factionWorkTypeSelectorOptions.length; ++i) { - elems.taskDetailsSelector2!.add(createOptionElement(factionWorkTypeSelectorOptions[i])); - } - // Set initial value for faction work type - switch (sleeve.factionWorkType) { - case FactionWorkType.Hacking: - elems.taskDetailsSelector2!.selectedIndex = 0; - break; - case FactionWorkType.Security: - elems.taskDetailsSelector2!.selectedIndex = 0; - break; - case FactionWorkType.Field: - elems.taskDetailsSelector2!.selectedIndex = 0; - break; - default: - break; - } + // The available faction work types depends on the faction + elems.taskDetailsSelector!.addEventListener("change", () => { + const facName = getSelectValue(elems.taskDetailsSelector!); + const faction: Faction | null = Factions[facName]; + if (faction == null) { + console.warn(`Invalid faction name when trying to update Sleeve Task Selector: ${facName}`); + return; + } + const facInfo = faction.getInfo(); + removeChildrenFromElement(elems.taskDetailsSelector2!); + let numOptionsAdded = 0; + if (facInfo.offerHackingWork) { + elems.taskDetailsSelector2!.add(createOptionElement("Hacking Contracts")); + if (sleeve.factionWorkType === FactionWorkType.Hacking) { + elems.taskDetailsSelector2!.selectedIndex = numOptionsAdded; + } + ++numOptionsAdded; + } + if (facInfo.offerFieldWork) { + elems.taskDetailsSelector2!.add(createOptionElement("Field Work")); + if (sleeve.factionWorkType === FactionWorkType.Field) { + elems.taskDetailsSelector2!.selectedIndex = numOptionsAdded; + } + ++numOptionsAdded; + } + if (facInfo.offerSecurityWork) { + elems.taskDetailsSelector2!.add(createOptionElement("Security Work")); + if (sleeve.factionWorkType === FactionWorkType.Security) { + elems.taskDetailsSelector2!.selectedIndex = numOptionsAdded; + } + ++numOptionsAdded; + } + }); + elems.taskDetailsSelector!.dispatchEvent(new Event("change")); break; case "Commit Crime": + let i = 0; for (const crimeLabel in Crimes) { const name: string = Crimes[crimeLabel].name; elems.taskDetailsSelector!.add(createOptionElement(name, crimeLabel)); + + // Set initial value for crime type + if (sleeve.crimeType === "") { continue; } + const crime: Crime | null = Crimes[sleeve.crimeType]; + if (crime == null) { continue; } + if (name === crime!.name) { + elems.taskDetailsSelector!.selectedIndex = i; + } + + ++i; } elems.taskDetailsSelector2!.add(createOptionElement("------")); @@ -614,7 +643,7 @@ function setSleeveTask(sleeve: Sleeve, elems: ISleeveUIElems): boolean { res = sleeve.workForFaction(playerRef!, detailValue, detailValue2); break; case "Commit Crime": - res = sleeve.commitCrime(playerRef!, Crimes[detailValue]); + res = sleeve.commitCrime(playerRef!, detailValue); break; case "Take University Course": res = sleeve.takeUniversityCourse(playerRef!, detailValue2, detailValue); @@ -637,7 +666,15 @@ function setSleeveTask(sleeve: Sleeve, elems: ISleeveUIElems): boolean { if (res) { updateSleeveTaskDescription(sleeve, elems); } else { - elems.taskDescription!.innerText = "Failed to assign sleeve to task. Invalid choice(s)."; + switch (taskValue) { + case "Work for Faction": + elems.taskDescription!.innerText = "Failed to assign sleeve to task. This is most likely because the selected faction does not offer the selected work type."; + break; + default: + elems.taskDescription!.innerText = "Failed to assign sleeve to task. Invalid choice(s)."; + break; + } + } if (routing.isOn(Page.Sleeves)) { @@ -672,16 +709,13 @@ function updateSleeveTaskDescription(sleeve: Sleeve, elems: ISleeveUIElems): voi elems.taskDescription!.innerText = "This sleeve is currently idle"; break; case "Work for Company": - elems.taskDescription!.innerText = `This sleeve is currently working your ` + - `job at ${sleeve.currentTaskLocation}.`; + elems.taskDescription!.innerText = `This sleeve is currently working your job at ${sleeve.currentTaskLocation}.`; break; case "Work for Faction": - elems.taskDescription!.innerText = `This sleeve is currently doing ${detailValue2} for ` + - `${sleeve.currentTaskLocation}.`; + elems.taskDescription!.innerText = `This sleeve is currently doing ${detailValue2} for ${sleeve.currentTaskLocation}.`; break; case "Commit Crime": - elems.taskDescription!.innerText = `This sleeve is currently attempting to ` + - `${Crimes[detailValue].type}.`; + elems.taskDescription!.innerText = `This sleeve is currently attempting to ${Crimes[detailValue].type} (Success Rate: ${numeralWrapper.formatPercentage(Crimes[detailValue].successRate(playerRef))}).`; break; case "Take University Course": elems.taskDescription!.innerText = `This sleeve is currently studying/taking a course at ${sleeve.currentTaskLocation}.`; diff --git a/src/Player.js b/src/Player.js index 591c8019e..630b5b21a 100644 --- a/src/Player.js +++ b/src/Player.js @@ -201,6 +201,7 @@ function PlayerObject() { // Sleeves & Re-sleeving this.sleeves = []; this.resleeves = []; + this.sleevesFromCovenant = 0; // # of Duplicate sleeves purchased from the covenant //bitnode this.bitNodeN = 1; @@ -369,9 +370,7 @@ PlayerObject.prototype.prestigeSourceFile = function() { this.resleeves = []; // Duplicate sleeves are reset to level 1 every Bit Node (but the number of sleeves you have persists) - if (this.sleeves.length < SourceFileFlags[10]) { - this.sleeves.length = SourceFileFlags[10]; - } + this.sleeves.length = SourceFileFlags[10] + this.sleevesFromCovenant; for (let i = 0; i < this.sleeves.length; ++i) { this.sleeves[i] = new Sleeve(); } diff --git a/src/Script.js b/src/Script.js index 349805d6d..72804e868 100755 --- a/src/Script.js +++ b/src/Script.js @@ -41,8 +41,6 @@ function scriptEditorInit() { return false; } - - // Beautify button const beautifyButton = createElement("button", { class: "std-button", @@ -210,8 +208,9 @@ $(document).keydown(function(e) { function saveAndCloseScriptEditor() { var filename = document.getElementById("script-editor-filename").value; + let code; try { - let code = getCurrentEditor().getCode(); + code = getCurrentEditor().getCode(); } catch(e) { dialogBoxCreate("Something went wrong when trying to save (getCurrentEditor().getCode()). Please report to game developer with details"); return; diff --git a/src/ScriptEditor/Ace.js b/src/ScriptEditor/Ace.js index 5f768376a..da53f92d4 100644 --- a/src/ScriptEditor/Ace.js +++ b/src/ScriptEditor/Ace.js @@ -18,6 +18,7 @@ require("brace/ext/language_tools"); import { NetscriptFunctions } from "../NetscriptFunctions"; import { Settings } from "../Settings/Settings"; +import { AceKeybindingSetting } from "../Settings/SettingEnums"; import { clearEventListeners } from "../../utils/uiHelpers/clearEventListeners"; import { createElement } from "../../utils/uiHelpers/createElement"; @@ -43,6 +44,7 @@ function validateInitializationParamters(params) { class AceEditorWrapper extends ScriptEditor { constructor() { super(); + this.vimCommandDisplayWrapper = null; } init(params) { @@ -73,7 +75,7 @@ class AceEditorWrapper extends ScriptEditor { editorElement.style.fontSize = '16px'; this.editor.setOption("showPrintMargin", false); - //Configure some of the VIM keybindings + // Configure some of the VIM keybindings ace.config.loadModule('ace/keyboard/vim', function(module) { var VimApi = module.CodeMirror.Vim; VimApi.defineEx('write', 'w', function(cm, input) { @@ -90,6 +92,13 @@ class AceEditorWrapper extends ScriptEditor { }); }); + // Store a reference to the VIM command display + this.vimCommandDisplayWrapper = document.getElementById("codemirror-vim-command-display-wrapper"); + if (this.vimCommandDisplayWrapper == null) { + console.error(`Could not get Vim Command Display element (id=codemirror-vim-command-display-wrapper)`); + return false; + } + //Function autocompleter this.editor.setOption("enableBasicAutocompletion", true); var autocompleter = { @@ -160,6 +169,11 @@ class AceEditorWrapper extends ScriptEditor { elem.style.display = "block"; } + // Make sure the Vim command display from CodeMirror is invisible + if (this.vimCommandDisplayWrapper instanceof HTMLElement) { + this.vimCommandDisplayWrapper.style.display = "none"; + } + // Theme const themeDropdown = safeClearEventListeners("script-editor-option-theme", "Theme Selector"); removeChildrenFromElement(themeDropdown); @@ -195,10 +209,14 @@ class AceEditorWrapper extends ScriptEditor { // Keybinding const keybindingDropdown = safeClearEventListeners("script-editor-option-keybinding", "Keybinding Selector"); removeChildrenFromElement(keybindingDropdown); - keybindingDropdown.add(createOptionElement("Ace", "ace")); - keybindingDropdown.add(createOptionElement("Vim", "vim")); - keybindingDropdown.add(createOptionElement("Emacs", "emacs")); + keybindingDropdown.add(createOptionElement("Ace", AceKeybindingSetting.Ace)); + keybindingDropdown.add(createOptionElement("Vim", AceKeybindingSetting.Vim)); + keybindingDropdown.add(createOptionElement("Emacs", AceKeybindingSetting.Emacs)); if (Settings.EditorKeybinding) { + // Sanitize the Keybinding setting + if (!(Object.values(AceKeybindingSetting).includes(Settings.EditorKeybinding))) { + Settings.EditorKeybinding = AceKeybindingSetting.Ace; + } var initialIndex = 0; for (var i = 0; i < keybindingDropdown.options.length; ++i) { if (keybindingDropdown.options[i].value === Settings.EditorKeybinding) { diff --git a/src/ScriptEditor/CodeMirror.js b/src/ScriptEditor/CodeMirror.js index a94a9e283..6a04324d9 100644 --- a/src/ScriptEditor/CodeMirror.js +++ b/src/ScriptEditor/CodeMirror.js @@ -71,6 +71,8 @@ import 'codemirror/keymap/vim.js'; import 'codemirror/keymap/emacs.js'; import 'codemirror/addon/comment/continuecomment.js'; +import 'codemirror/addon/dialog/dialog.css'; +import 'codemirror/addon/dialog/dialog.js'; import 'codemirror/addon/edit/closebrackets.js'; import 'codemirror/addon/edit/matchbrackets.js'; import 'codemirror/addon/fold/foldcode.js'; @@ -79,6 +81,7 @@ import 'codemirror/addon/fold/foldgutter.css'; import 'codemirror/addon/fold/brace-fold.js'; import 'codemirror/addon/fold/indent-fold.js'; import 'codemirror/addon/fold/comment-fold.js'; +import 'codemirror/addon/hint/javascript-hint.js'; import 'codemirror/addon/hint/show-hint.js'; import 'codemirror/addon/hint/show-hint.css'; import 'codemirror/addon/lint/lint.js'; @@ -87,10 +90,11 @@ import 'codemirror/addon/search/match-highlighter.js'; import 'codemirror/addon/selection/active-line.js'; window.JSHINT = require('jshint').JSHINT; -import './CodeMirrorNetscriptHint.js'; +import './CodeMirrorNetscriptLint.js'; import { NetscriptFunctions } from "../NetscriptFunctions"; -import { CodeMirrorThemeSetting } from "../Settings/SettingEnums"; +import { CodeMirrorKeybindingSetting, + CodeMirrorThemeSetting } from "../Settings/SettingEnums"; import { Settings } from "../Settings/Settings"; import { clearEventListeners } from "../../utils/uiHelpers/clearEventListeners"; @@ -114,6 +118,8 @@ function validateInitializationParamters(params) { class CodeMirrorEditorWrapper extends ScriptEditor { constructor() { super(); + this.vimCommandDisplay = null; + this.vimCommandDisplayWrapper = null; this.tabsStyleElement = null; } @@ -160,6 +166,10 @@ class CodeMirrorEditorWrapper extends ScriptEditor { this.tabsStyleElement = document.createElement('style'); document.head.appendChild(this.tabsStyleElement); + // Store a reference to the VIM command display + this.vimCommandDisplay = document.getElementById("codemirror-vim-command-display"); + this.vimCommandDisplayWrapper = document.getElementById("codemirror-vim-command-display-wrapper"); + // Define a "Save" command for CodeMirror so shortcuts like Ctrl + s // will save in-game CodeMirror.commands.save = function() { params.saveAndCloseFn(); } @@ -206,6 +216,21 @@ class CodeMirrorEditorWrapper extends ScriptEditor { return result; }; + + // Configure VIM keybindings + var VimApi = CodeMirror.Vim; + VimApi.defineEx('write', 'w', function(cm, input) { + params.saveAndCloseFn(); + }); + VimApi.defineEx('quit', 'q', function(cm, input) { + params.quitFn(); + }); + VimApi.defineEx('xwritequit', 'x', function(cm, input) { + params.saveAndCloseFn(); + }); + VimApi.defineEx('wqwritequit', 'wq', function(cm, input) { + params.saveAndCloseFn(); + }); } initialized() { @@ -237,6 +262,11 @@ class CodeMirrorEditorWrapper extends ScriptEditor { return; } + // Get and sanitize the keybinding (keymap) setting + if (!(Object.values(CodeMirrorKeybindingSetting).includes(Settings.EditorKeybinding))) { + Settings.EditorKeybinding = CodeMirrorKeybindingSetting.Default; + } + // Initialize CodeMirror Editor const textAreaElement = safeGetElementById("codemirror-editor", "CodeMirror Textarea"); const formElement = safeGetElementById("codemirror-form-wrapper", "CodeMirror Form Wrapper"); @@ -294,10 +324,10 @@ class CodeMirrorEditorWrapper extends ScriptEditor { return false; } removeChildrenFromElement(keybindingDropdown); - keybindingDropdown.add(createOptionElement("Default", "default")); - keybindingDropdown.add(createOptionElement("Sublime", "sublime")); - keybindingDropdown.add(createOptionElement("Vim", "vim")); - keybindingDropdown.add(createOptionElement("Emacs", "emacs")); + keybindingDropdown.add(createOptionElement("Default", CodeMirrorKeybindingSetting.Default)); + keybindingDropdown.add(createOptionElement("Sublime", CodeMirrorKeybindingSetting.Sublime)); + keybindingDropdown.add(createOptionElement("Vim", CodeMirrorKeybindingSetting.Vim)); + keybindingDropdown.add(createOptionElement("Emacs", CodeMirrorKeybindingSetting.Emacs)); if (Settings.EditorKeybinding) { var initialIndex = 0; for (var i = 0; i < keybindingDropdown.options.length; ++i) { @@ -311,14 +341,39 @@ class CodeMirrorEditorWrapper extends ScriptEditor { keybindingDropdown.selectedIndex = 0; } keybindingDropdown.onchange = () => { + // Set Vim command display to be invisible initially + this.vimCommandDisplayWrapper.style.display = "none"; + const val = keybindingDropdown.value; Settings.EditorKeybinding = val; - this.editor.removeKeyMap("sublime"); - this.editor.removeKeyMap("emacs"); - this.editor.removeKeyMap("vim"); + this.editor.removeKeyMap(CodeMirror.keyMap.default); + this.editor.removeKeyMap(CodeMirror.keyMap.sublime); + this.editor.removeKeyMap(CodeMirror.keyMap.emacs); + this.editor.removeKeyMap(CodeMirror.keyMap.vim); + + // Setup the VIM command display + let keys = ''; + const handleVimKeyPress = (key) => { + keys = keys + key; + this.vimCommandDisplay.innerHTML = keys; + } + const handleVimCommandDone = (e) => { + keys = ''; + this.vimCommandDisplay.innerHTML = keys; + } + if (val === CodeMirrorKeybindingSetting.Vim) { + this.vimCommandDisplayWrapper.style.display = "block"; + this.editor.on('vim-keypress', handleVimKeyPress); + this.editor.on('vim-command-done', handleVimCommandDone); + + } else { + this.vimCommandDisplayWrapper.style.display = "none"; + this.editor.off('vim-keypress', handleVimKeyPress); + this.editor.off('vim-command-done', handleVimCommandDone); + } + this.editor.addKeyMap(val); this.editor.setOption("keyMap", val); - console.log(`Set keymap to ${val} for CodeMirror`); }; keybindingDropdown.onchange(); @@ -489,9 +544,8 @@ class CodeMirrorEditorWrapper extends ScriptEditor { removeFlexibleOption("script-editor-option-flex4-fieldset"); this.editor.refresh(); - console.log(this.editor.options); } catch(e) { - console.error(`Exception caught: ${e}`); + console.error(`Exception caught: ${e}. ${e.stack}`); return false; } } diff --git a/src/ScriptEditor/CodeMirrorNetscriptHint.js b/src/ScriptEditor/CodeMirrorNetscriptLint.js similarity index 97% rename from src/ScriptEditor/CodeMirrorNetscriptHint.js rename to src/ScriptEditor/CodeMirrorNetscriptLint.js index b0d1e6b68..35542901a 100644 --- a/src/ScriptEditor/CodeMirrorNetscriptHint.js +++ b/src/ScriptEditor/CodeMirrorNetscriptLint.js @@ -33,8 +33,12 @@ } const sanitizedText = splitText.join("\n"); + // Configure JSHINT options if (!options.indent) // JSHint error.character actually is a column index, this fixes underlining on lines using tabs for indentation options.indent = 1; // JSHint default value is 4 + + options.esversion = 6; + JSHINT(sanitizedText, options, options.globals); var errors = JSHINT.data().errors, result = []; if (errors) parseErrors(errors, result); diff --git a/src/ServerPurchases.js b/src/ServerPurchases.js index 39bd22527..115f05a54 100644 --- a/src/ServerPurchases.js +++ b/src/ServerPurchases.js @@ -1,16 +1,46 @@ -import {CONSTANTS} from "./Constants"; -import {Player} from "./Player"; -import {Server, AllServers, AddToAllServers} from "./Server"; -import {dialogBoxCreate} from "../utils/DialogBox"; -import {createRandomIp} from "../utils/IPAddress"; -import {yesNoTxtInpBoxGetInput} from "../utils/YesNoBox"; - - -/* Functions to handle any server-related purchasing: - * Purchasing new servers - * Purchasing more RAM for home computer +/** + * Implements functions for purchasing servers or purchasing more RAM for + * the home computer */ -function purchaseServer(ram, cost) { +import { BitNodeMultipliers } from "./BitNode/BitNodeMultipliers"; +import { CONSTANTS } from "./Constants"; +import { Player } from "./Player"; +import { Server, + AllServers, + AddToAllServers} from "./Server"; +import { dialogBoxCreate } from "../utils/DialogBox"; +import { createRandomIp } from "../utils/IPAddress"; +import { yesNoTxtInpBoxGetInput } from "../utils/YesNoBox"; +import { isPowerOfTwo } from "../utils/helpers/isPowerOfTwo"; + +// Returns the cost of purchasing a server with the given RAM +// Returns Infinity for invalid 'ram' arguments +export function getPurchaseServerCost(ram) { + const sanitizedRam = Math.round(ram); + if (isNaN(sanitizedRam) || !isPowerOfTwo(sanitizedRam)) { + return Infinity; + } + + if (sanitizedRam > getPurchaseServerMaxRam()) { + return Infinity; + } + + return sanitizedRam * CONSTANTS.BaseCostFor1GBOfRamServer * BitNodeMultipliers.PurchasedServerCost; +} + +export function getPurchaseServerLimit() { + return Math.round(CONSTANTS.PurchasedServerLimit * BitNodeMultipliers.PurchasedServerLimit); +} + +export function getPurchaseServerMaxRam() { + // TODO ensure this is a power of 2? + return Math.round(CONSTANTS.PurchasedServerMaxRam * BitNodeMultipliers.PurchasedServerMaxRam); +} + +// Manually purchase a server (NOT through Netscript) +export function purchaseServer(ram) { + const cost = getPurchaseServerCost(ram); + //Check if player has enough money if (Player.money.lt(cost)) { dialogBoxCreate("You don't have enough money to purchase this server!"); @@ -18,8 +48,8 @@ function purchaseServer(ram, cost) { } //Maximum server limit - if (Player.purchasedServers.length >= CONSTANTS.PurchasedServerLimit) { - dialogBoxCreate("You have reached the maximum limit of " + CONSTANTS.PurchasedServerLimit + " servers. " + + if (Player.purchasedServers.length >= getPurchaseServerLimit()) { + dialogBoxCreate("You have reached the maximum limit of " + getPurchaseServerLimit() + " servers. " + "You cannot purchase any more. You can " + "delete some of your purchased servers using the deleteServer() Netscript function in a script"); return; @@ -51,8 +81,8 @@ function purchaseServer(ram, cost) { dialogBoxCreate("Server successfully purchased with hostname " + hostname); } - -function purchaseRamForHomeComputer(cost) { +// Manually upgrade RAM on home computer (NOT through Netscript) +export function purchaseRamForHomeComputer(cost) { if (Player.money.lt(cost)) { dialogBoxCreate("You do not have enough money to purchase additional RAM for your home computer"); return; @@ -70,5 +100,3 @@ function purchaseRamForHomeComputer(cost) { dialogBoxCreate("Purchased additional RAM for home computer! It now has " + homeComputer.maxRam + "GB of RAM."); } - -export {purchaseServer, purchaseRamForHomeComputer}; diff --git a/src/Settings/SettingEnums.ts b/src/Settings/SettingEnums.ts index 229722d96..977359675 100644 --- a/src/Settings/SettingEnums.ts +++ b/src/Settings/SettingEnums.ts @@ -1,5 +1,27 @@ // Enums that defined allowed values for setting configuration +/** + * Allowed values for 'Keybinding/Keymap' setting in Ace editor + */ +export enum AceKeybindingSetting { + Ace = "ace", + Emacs = "emacs", + Vim = "vim", +} + +/** + * Allowed values for 'Keybinding/Keymap' setting in Code Mirror editor + */ +export enum CodeMirrorKeybindingSetting { + Default = "default", + Emacs = "emacs", + Sublime = "sublime", + Vim = "vim", +} + +/** + * Allowed values for 'Theme' setting in Code Mirror editor + */ export enum CodeMirrorThemeSetting { Monokai = "monokai", Day_3024 = "3024-day", @@ -57,6 +79,7 @@ export enum CodeMirrorThemeSetting { Yeti = "yeti", Zenburn = "zenburn", } + /** * Allowed values for the "Editor" setting */ diff --git a/src/Settings/Settings.ts b/src/Settings/Settings.ts index 359dac16e..62981eaf8 100644 --- a/src/Settings/Settings.ts +++ b/src/Settings/Settings.ts @@ -1,5 +1,7 @@ import { ISelfInitializer, ISelfLoading } from "../types"; -import { CodeMirrorThemeSetting, +import { AceKeybindingSetting, + CodeMirrorKeybindingSetting, + CodeMirrorThemeSetting, EditorSetting, OwnedAugmentationsOrderSetting, PurchaseAugmentationsOrderSetting } from "./SettingEnums"; @@ -77,7 +79,7 @@ interface ISettings extends IDefaultSettings { * The keybinding to use in the script editor. * TODO: This should really be an enum of allowed values. */ - EditorKeybinding: string; + EditorKeybinding: AceKeybindingSetting | CodeMirrorKeybindingSetting; /** * The theme used in the script editor. @@ -119,7 +121,7 @@ export const Settings: ISettings & ISelfInitializer & ISelfLoading = { CodeInstructionRunTime: 25, DisableHotkeys: defaultSettings.DisableHotkeys, Editor: EditorSetting.Ace, - EditorKeybinding: "ace", + EditorKeybinding: AceKeybindingSetting.Ace, EditorTheme: "Monokai", Locale: "en", MaxLogCapacity: defaultSettings.MaxLogCapacity, diff --git a/src/engine.js b/src/engine.js index f34fa0ba1..67640ad2a 100644 --- a/src/engine.js +++ b/src/engine.js @@ -564,6 +564,7 @@ const Engine = { MainMenuLinks.Factions.classList.remove("active"); MainMenuLinks.Augmentations.classList.remove("active"); MainMenuLinks.HacknetNodes.classList.remove("active"); + MainMenuLinks.Sleeves.classList.remove("active"); MainMenuLinks.City.classList.remove("active"); MainMenuLinks.Travel.classList.remove("active"); MainMenuLinks.Job.classList.remove("active"); @@ -1580,6 +1581,7 @@ const Engine = { const errorMsg = "Failed to initialize Main Menu Links. Please try refreshing the page. " + "If that doesn't work, report the issue to the developer"; exceptionAlert(new Error(errorMsg)); + console.error(errorMsg); return; } }, @@ -1596,6 +1598,7 @@ const Engine = { const errorMsg = "Failed to initialize Main Menu Headers. Please try refreshing the page. " + "If that doesn't work, report the issue to the developer"; exceptionAlert(new Error(errorMsg)); + console.error(errorMsg); return; } @@ -1641,6 +1644,7 @@ const Engine = { MainMenuLinks.Sleeves.addEventListener("click", function() { Engine.loadSleevesContent(); + MainMenuLinks.Sleeves.classList.add("active"); return false; }); diff --git a/src/index.html b/src/index.html index d91b06362..6745ad9a8 100644 --- a/src/index.html +++ b/src/index.html @@ -122,6 +122,9 @@ if (htmlWebpackPlugin.options.googleAnalytics.trackingId) { %>
+
+ Key Buffer: +
diff --git a/src/ui/MainMenu/Links.ts b/src/ui/MainMenu/Links.ts index 4dd08d478..e0cb6e10e 100644 --- a/src/ui/MainMenu/Links.ts +++ b/src/ui/MainMenu/Links.ts @@ -65,7 +65,7 @@ export function initializeMainMenuLinks(): boolean { MainMenuLinks.Factions = safeGetLink("factions-menu-link"); MainMenuLinks.Augmentations = safeGetLink("augmentations-menu-link"); MainMenuLinks.HacknetNodes = safeGetLink("hacknet-nodes-menu-link"); - MainMenuLinks.Sleeves = safeGetLink("sleeves-menu-link"); + MainMenuLinks.Sleeves = safeGetLink("sleeves-menu-link"); MainMenuLinks.City = safeGetLink("city-menu-link"); MainMenuLinks.Travel = safeGetLink("travel-menu-link"); MainMenuLinks.Job = safeGetLink("job-menu-link"); diff --git a/utils/uiHelpers/clearEventListeners.ts b/utils/uiHelpers/clearEventListeners.ts index d2eb90a92..f94f3be8c 100644 --- a/utils/uiHelpers/clearEventListeners.ts +++ b/utils/uiHelpers/clearEventListeners.ts @@ -5,9 +5,15 @@ import { getElementById } from "./getElementById"; * replacing. Then returns the new cloned element. * @param elemId The HTML ID to retrieve the element by. */ -export function clearEventListeners(elemId: string): HTMLElement | null { +export function clearEventListeners(elemId: string | HTMLElement): HTMLElement | null { try { - const elem: HTMLElement = getElementById(elemId); + let elem: HTMLElement; + if (typeof elemId === "string") { + elem = getElementById(elemId); + } else { + elem = elemId; + } + const newElem: HTMLElement = elem.cloneNode(true) as HTMLElement; if (elem.parentNode !== null) { elem.parentNode.replaceChild(newElem, elem);