From cc9a07c09f288e44465f24fdbbfa3a8d2a13d279 Mon Sep 17 00:00:00 2001
From: Olivier Gagnon Total Stock Shares: "+p.numeralWrapper.format(this.corp().totalShares,"0.000a")+""+`Outstanding Shares: ${p.numeralWrapper.format(this.corp().issuedShares,"0.000a")} {let e=Math.floor(37*this.rng.random()),t=o.createElement(o.Fragment,null),n=0,a=this.state.strategy.match(e);if(a&&Math.random()>.9)for(a=!1;this.state.strategy.match(e);)e++;a?(n=this.state.investment*this.state.strategy.payout,t=o.createElement(o.Fragment,null,"won ",l.Money(n))):(n=-this.state.investment,t=o.createElement(o.Fragment,null,"lost ",l.Money(-n))),this.win(this.props.p,n),this.setState({canPlay:!0,lock:!0,status:t,n:e}),this.reachedLimit(this.props.p)},1600))}render(){return o.createElement(o.Fragment,null,o.createElement("h1",null,this.currentNumber()),o.createElement("input",{type:"number",className:"text-input",onChange:this.updateInvestment,placeholder:"Amount to play",value:this.state.investment,disabled:!this.state.canPlay}),o.createElement("h1",null,this.state.status),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"3",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(3)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"6",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(6)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"9",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(9)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"12",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(12)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"15",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(15)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"18",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(18)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"21",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(21)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"24",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(24)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"27",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(27)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"30",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(30)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"33",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(33)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"36",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(36)))}))),o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"2",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(2)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"5",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(5)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"8",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(8)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"11",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(11)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"14",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(14)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"17",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(17)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"20",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(20)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"23",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(23)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"26",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(26)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"29",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(29)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"32",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(32)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"35",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(35)))}))),o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"1",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(1)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"4",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(4)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"7",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(7)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"10",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(10)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"13",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(13)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"16",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(16)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"19",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(19)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"22",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(22)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"25",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(25)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"28",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(28)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"31",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(31)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"34",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(34)))}))),o.createElement("tr",null,o.createElement("td",{colSpan:4},o.createElement(s.StdButton,{text:"1 to 12",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Third1))})),o.createElement("td",{colSpan:4},o.createElement(s.StdButton,{text:"13 to 24",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Third2))})),o.createElement("td",{colSpan:4},o.createElement(s.StdButton,{text:"25 to 36",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Third3))}))),o.createElement("tr",null,o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Red",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Red))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Black",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Black))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Odd",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Odd))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Even",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Even))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"High",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.High))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Low",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Low))}))),o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"0",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(0)))}))))))}}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinFlip=void 0;const o=i(n(0)),s=n(63),l=n(298),c=n(405),u=n(485),m=0,p=1e4;t.CoinFlip=class extends c.Game{constructor(e){super(e),this.state={investment:1e3,result:o.createElement("span",null," "),status:"",playLock:!1},this.play=this.play.bind(this),this.updateInvestment=this.updateInvestment.bind(this)}updateInvestment(e){let t=parseInt(e.currentTarget.value);isNaN(t)&&(t=m),t>p&&(t=p),t Total Stock Shares: "+p.numeralWrapper.format(this.corp().totalShares,"0.000a")+""+`Outstanding Shares: ${p.numeralWrapper.format(this.corp().issuedShares,"0.000a")} {let e=Math.floor(37*this.rng.random()),t=o.createElement(o.Fragment,null),n=0,a=this.state.strategy.match(e);if(a&&Math.random()>.9)for(a=!1;this.state.strategy.match(e);)e++;a?(n=this.state.investment*this.state.strategy.payout,t=o.createElement(o.Fragment,null,"won ",l.Money(n))):(n=-this.state.investment,t=o.createElement(o.Fragment,null,"lost ",l.Money(-n))),this.win(this.props.p,n),this.setState({canPlay:!0,lock:!0,status:t,n:e}),this.reachedLimit(this.props.p)},1600))}render(){return o.createElement(o.Fragment,null,o.createElement("h1",null,this.currentNumber()),o.createElement("input",{type:"number",className:"text-input",onChange:this.updateInvestment,placeholder:"Amount to play",value:this.state.investment,disabled:!this.state.canPlay}),o.createElement("h1",null,this.state.status),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"3",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(3)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"6",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(6)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"9",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(9)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"12",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(12)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"15",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(15)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"18",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(18)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"21",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(21)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"24",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(24)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"27",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(27)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"30",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(30)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"33",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(33)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"36",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(36)))}))),o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"2",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(2)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"5",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(5)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"8",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(8)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"11",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(11)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"14",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(14)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"17",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(17)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"20",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(20)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"23",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(23)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"26",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(26)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"29",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(29)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"32",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(32)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"35",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(35)))}))),o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"1",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(1)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"4",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(4)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"7",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(7)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"10",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(10)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"13",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(13)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"16",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(16)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"19",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(19)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"22",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(22)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"25",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(25)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"28",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(28)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"31",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(31)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"34",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(34)))}))),o.createElement("tr",null,o.createElement("td",{colSpan:4},o.createElement(s.StdButton,{text:"1 to 12",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Third1))})),o.createElement("td",{colSpan:4},o.createElement(s.StdButton,{text:"13 to 24",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Third2))})),o.createElement("td",{colSpan:4},o.createElement(s.StdButton,{text:"25 to 36",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Third3))}))),o.createElement("tr",null,o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Red",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Red))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Black",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Black))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Odd",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Odd))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Even",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Even))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"High",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.High))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Low",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Low))}))),o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"0",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(0)))}))))))}}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinFlip=void 0;const o=i(n(0)),s=n(63),l=n(298),c=n(405),u=n(485),m=0,p=1e4;t.CoinFlip=class extends c.Game{constructor(e){super(e),this.state={investment:1e3,result:o.createElement("span",null," "),status:"",playLock:!1},this.play=this.play.bind(this),this.updateInvestment=this.updateInvestment.bind(this)}updateInvestment(e){let t=parseInt(e.currentTarget.value);isNaN(t)&&(t=m),t>p&&(t=p),t
- {this.props.getContent()}
+ {this.props.getContent()} "You can order bigger servers via scripts. We don't take custom order in person." Insufficient funds Invalid donate amount entered! This donation will result in {Reputation(repFromDonation(donateAmt, props.p))} reputation gain {this.state.status} Unlocked at {props.favorToDonate} favor with {props.faction.name} "You can order bigger servers via scripts. We don't take custom order in person." "You can order bigger servers via scripts. We don't take custom order in person." Team Size: {formatNumber(props.bladeburner.teamSize, 0)} Team Members Lost: {formatNumber(props.bladeburner.teamLost, 0)} Num Times Hospitalized: {props.bladeburner.numHosp} Money Lost From Hospitalizations: {Money(props.bladeburner.moneyLost)} Money Lost From Hospitalizations: Current City: {props.bladeburner.city}
Est. Synthoid Population: {numeralWrapper.formatPopulation(props.bladeburner.getCurrentCity().popEst)}
diff --git a/src/Casino/Blackjack.tsx b/src/Casino/Blackjack.tsx
index e2ee8e957..8a41b1f1c 100644
--- a/src/Casino/Blackjack.tsx
+++ b/src/Casino/Blackjack.tsx
@@ -314,7 +314,7 @@ export class Blackjack extends Game
{"Total earnings this session: "}
- {Money(gains)}
+
Would you like to purchase an additional Duplicate Sleeve from The Covenant
- for {Money(purchaseCost())}?
+ for
diff --git a/src/PersonObjects/Sleeve/ui/CovenantSleeveMemoryUpgrade.tsx b/src/PersonObjects/Sleeve/ui/CovenantSleeveMemoryUpgrade.tsx
index d89789b5d..98880b897 100644
--- a/src/PersonObjects/Sleeve/ui/CovenantSleeveMemoryUpgrade.tsx
+++ b/src/PersonObjects/Sleeve/ui/CovenantSleeveMemoryUpgrade.tsx
@@ -79,7 +79,7 @@ export class CovenantSleeveMemoryUpgrade extends React.Component
Commission Fees: Every transaction you make has
- a {Money(CONSTANTS.StockMarketCommission)} commission fee.
+ a
WARNING: When you reset after installing Augmentations, the Stock
diff --git a/src/StockMarket/ui/StockTicker.tsx b/src/StockMarket/ui/StockTicker.tsx
index a5165344e..dc6de5280 100644
--- a/src/StockMarket/ui/StockTicker.tsx
+++ b/src/StockMarket/ui/StockTicker.tsx
@@ -115,7 +115,7 @@ export class StockTicker extends React.Component
- Average Price: {Money(stock.playerAvgPx)} (Total Cost: {Money(totalCost)})
+ Average Price:
- Profit: {Money(gains)} ({numeralWrapper.formatPercentage(percentageGains)})
+ Profit:
- Average Price: {Money(stock.playerAvgShortPx)} (Total Cost: {Money(totalCost)})
+ Average Price:
- Profit: {Money(gains)} ({numeralWrapper.formatPercentage(percentageGains)})
+ Profit:
${t.txt}`;r.dialogBoxCreate(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorporationUpgrades=void 0,t.CorporationUpgrades={0:[0,2e9,1.06,.03,"Smart Factories","Advanced AI automatically optimizes the operation and productivity of factories. Each level of this upgrade increases your global production by 3% (additive)."],1:[1,2e9,1.06,.1,"Smart Storage","Advanced AI automatically optimizes your warehouse storage methods. Each level of this upgrade increases your global warehouse storage size by 10% (additive)."],2:[2,4e9,1.1,.001,"DreamSense","Use DreamSense LCC Technologies to advertise your corporation to consumers through their dreams. Each level of this upgrade provides a passive increase in awareness of all of your companies (divisions) by 0.004 / market cycle,and in popularity by 0.001 / market cycle. A market cycle is approximately 15 seconds."],3:[3,4e9,1.12,.005,"Wilson Analytics","Purchase data and analysis from Wilson, a marketing research firm. Each level of this upgrades increases the effectiveness of your advertising by 0.5% (additive)."],4:[4,1e9,1.06,.1,"Nuoptimal Nootropic Injector Implants","Purchase the Nuoptimal Nootropic Injector augmentation for your employees. Each level of this upgrade globally increases the creativity of your employees by 10% (additive)."],5:[5,1e9,1.06,.1,"Speech Processor Implants","Purchase the Speech Processor augmentation for your employees. Each level of this upgrade globally increases the charisma of your employees by 10% (additive)."],6:[6,1e9,1.06,.1,"Neural Accelerators","Purchase the Neural Accelerator augmentation for your employees. Each level of this upgrade globally increases the intelligence of your employees by 10% (additive)."],7:[7,1e9,1.06,.1,"FocusWires","Purchase the FocusWire augmentation for your employees. Each level of this upgrade globally increases the efficiency of your employees by 10% (additive)."],8:[8,1e9,1.07,.01,"ABC SalesBots","Always Be Closing. Purchase these robotic salesmen to increase the amount of materials and products you sell. Each level of this upgrade globally increases your sales by 1% (additive)."],9:[9,5e9,1.07,.05,"Project Insight","Purchase 'Project Insight', a R&D service provided by the secretive Fulcrum Technologies. Each level of this upgrade globally increases the amount of Scientific Research you produce by 5% (additive)."]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorporationUnlockUpgrades=void 0,t.CorporationUnlockUpgrades={0:[0,2e10,"Export","Develop infrastructure to export your materials to your other facilities. This allows you to move materials around between different divisions and cities."],1:[1,25e9,"Smart Supply","Use advanced AI to anticipate your supply needs. This allows you to purchase exactly however many materials you need for production."],2:[2,5e9,"Market Research - Demand","Mine and analyze market data to determine the demand of all resources. The demand attribute, which affects sales, will be displayed for every material and product."],3:[3,5e9,"Market Data - Competition","Mine and analyze market data to determine how much competition there is on the market for all resources. The competition attribute, which affects sales, will be displayed for every material and product."],4:[4,1e10,"VeChain","Use AI and blockchain technology to identify where you can improve your supply chain systems. This upgrade will allow you to view a wide array of useful statistics about your Corporation."],5:[5,5e11,"Shady Accounting","Utilize unscrupulous accounting practices and pay off government officials to save money on taxes. This reduces the dividend tax rate by 5%."],6:[6,2e12,"Government Partnership","Help national governments further their agendas in exchange for lowered taxes. This reduces the dividend tax rate by 10%"]}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.clearSleevesPage=t.updateSleevesPage=t.createSleevesPage=void 0;const o=n(953),s=n(251),l=n(952),c=n(11),u=n(16),m=n(428),p=n(176),d=n(173),h=n(38),_=n(47),g=n(3),f=n(19),y=n(12),b=n(171),E=n(97),v=n(56),C=n(13),k=n(431),P=n(57),S=n(69),O=n(181),M=n(156),T=n(172),x=n(49),w=n(951),A=n(31),R=n(125),N=n(459),D=n(950),B=n(949),I=n(948),L=i(n(22)),W=n(415),F={container:null,docButton:null,faqButton:null,info:null,sleeveList:null,sleeves:null};let j;function U(){if(f.routing.isOn(f.Page.Sleeves)){if(null===j)throw new Error("playerRef is null in updateSleevesPage()");if(null===F.sleeves)throw new Error("UIElems.sleeves is null in updateSleevesPage()");try{for(let e=0;eSleeves
Duplicate Sleeves are MK-V Synthoids (synthetic androids) into which your consciousness has been copied. In other words, these Synthoids contain a perfect duplicate of your mind.
Sleeves can be used to perform different tasks synchronously.
"}),F.faqButton=C.createElement("button",{class:"std-button",display:"inline-block",innerText:"FAQ",clickListener:()=>{y.dialogBoxCreate(l.SleeveFaq,!1)}}),F.docButton=C.createElement("a",{class:"std-button",display:"inline-block",href:"https://bitburner.readthedocs.io/en/latest/advancedgameplay/sleeves.html#duplicate-sleeves",innerText:"Documentation",target:"_blank"}),F.sleeveList=C.createElement("ul"),F.sleeves=[];for(const t of e.sleeves){const n=H(t,e.sleeves);if(null==n.container)throw new Error("sleeveUi.container is null in createSleevesPage()");F.sleeveList.appendChild(n.container),F.sleeves.push(n)}F.container.appendChild(F.info),F.container.appendChild(F.faqButton),F.container.appendChild(F.docButton),F.container.appendChild(F.sleeveList);const t=document.getElementById("entire-game-container");if(null===t)throw new Error("entire-game-container not found in createSleevesPage()");t.appendChild(F.container)}catch(e){E.exceptionAlert(e)}},t.updateSleevesPage=U,t.clearSleevesPage=function(){F.container instanceof HTMLElement&&T.removeElement(F.container);for(const e in F)F[e]=null;j=null};const K=["Study Computer Science","Data Structures","Networks","Algorithms","Management","Leadership"],q=["Train Strength","Train Defense","Train Dexterity","Train Agility"];function $(e,t,n){if(null==j)throw new Error("playerRef is null in updateSleeveTaskSelector()");const a=[];for(const t of n)e!==t&&t.currentTask===s.SleeveTaskType.Company&&a.push(t.currentTaskLocation);const r=[];for(const t of n)e!==t&&t.currentTask===s.SleeveTaskType.Faction&&r.push(t.currentTaskLocation);if(null===t.taskDetailsSelector)throw new Error("elems.taskDetailsSelector is null");if(null===t.taskDetailsSelector2)throw new Error("elems.taskDetailsSelector is null");switch(M.removeChildrenFromElement(t.taskDetailsSelector),M.removeChildrenFromElement(t.taskDetailsSelector2),t.taskDetailsSelector2=v.clearEventListeners(t.taskDetailsSelector2),O.getSelectValue(t.taskSelector)){case"Work for Company":{let n=0;const r=Object.keys(j.jobs);for(let i=0;i
alias [-g] [name=\"value\"] Create or display Terminal aliases
analyze Get information about the current machine
backdoor Install a backdoor on the current machine
buy [-l/program] Purchase a program through the Dark Web
cat [file] Display a .msg, .lit, or .txt file
cd [dir] Change to a new directory
check [script] [args...] Print a script's logs to Terminal
clear Clear all text on the terminal
cls See 'clear' command
connect [ip/hostname] Connects to a remote server
download [script/text file] Downloads scripts or text files to your computer
expr [math expression] Evaluate a mathematical expression
free Check the machine's memory (RAM) usage
hack Hack the current machine
help [command] Display this help text, or the help text for a command
home Connect to home computer
hostname Displays the hostname of the machine
ifconfig Displays the IP address of the machine
kill [script/pid] [args...] Stops the specified script on the current server
killall Stops all running scripts on the current machine
ls [dir] [| grep pattern] Displays all files on the machine
lscpu Displays the number of CPU cores on the machine
mem [script] [-t] [n] Displays the amount of RAM required to run the script
mv [src] [dest] Move/rename a text or script file
nano [file] Text editor - Open up and edit a script or text file
ps Display all scripts that are currently running
rm [file] Delete a file from the server
run [name] [-t] [n] [args...] Execute a program or script
scan Prints all immediately-available network connections
scan-analyze [d] [-a] Prints info for all servers up to d nodes away
scp [file] [server] Copies a file to a destination server
sudov Shows whether you have root access on this computer
tail [script] [args...] Displays dynamic logs for the specified script
theme [preset] | bg txt hlgt Change the color scheme of the UI
top Displays all running scripts and their RAM usage
unalias [alias name] Deletes the specified alias
wget [url] [target file] Retrieves code/text from a web server
",t.HelpTexts={alias:"alias [-g] [name=\"value\"]
Create or display aliases. An alias enables a replacement of a word with another string. It can be used to abbreviate a commonly used command, or commonly used parts of a command. The NAME of an alias defines the word that will be replaced, while the VALUE defines what it will be replaced by. For example, you could create the alias 'nuke' for the Terminal command 'run NUKE.exe' using the following:
alias nuke=\"run NUKE.exe\"
Then, to run the NUKE.exe program you would just have to enter 'nuke' in Terminal rather than the full command. It is important to note that 'default' aliases will only be substituted for the first word of a Terminal command. For example, if the following alias was set:
alias worm=\"HTTPWorm.exe\"
and then you tried to run the following terminal command:
run worm
This would fail because the worm alias is not the first word of a Terminal command. To allow an alias to be substituted anywhere in a Terminal command, rather than just the first word, you must set it to be a global alias using the -g flag:
alias -g worm=\"HTTPWorm.exe\"
Now, the 'worm' alias will be substituted anytime it shows up as an individual word in a Terminal command.
Entering just the command 'alias' without any arguments prints the list of all defined aliases in the reusable form 'alias NAME=VALUE' on the Terminal.
The 'unalias' command can be used to remove aliases.
",analyze:"analze
Prints details and statistics about the current server. The information that is printed includes basic server details such as the hostname, whether the player has root access, what ports are opened/closed, and also hacking-related information such as an estimated chance to successfully hack, an estimate of how much money is available on the server, etc.",backdoor:"backdoor
Install a backdoor on the current machine, grants a secret bonus depending on the machine.
Requires root access to run.
",buy:"buy [-l / program]
Purchase a program through the Dark Web. Requires a TOR router to use.
If this command is ran with the '-l' flag, it will display a list of all programs that can be bought through the dark web to the Terminal, as well as their costs.
Otherwise, the name of the program must be passed in as a parameter. This name is NOT case-sensitive.",cat:"cat [file]
Display message (.msg), literature (.lit), or text (.txt) files. Examples:
cat j1.msg
cat foo.lit
cat servers.txt",cd:"cd [dir]
Change to the specified directory. Note that this works even for directories that don't exist. If you change to a directory that does not exist, it will not be 'created'. Examples:
cd scripts/hacking
cd /logs
cd ../",check:"check [script name] [args...]
Print the logs of the script specified by the script name and arguments to the Terminal. Each argument must be separated by a space. Remember that a running script is uniquely identified both by its name and the arguments that are used to start it. So, if a script was ran with the following arguments:
run foo.script 1 2 foodnstuff
Then to run the 'check' command on this script you would have to pass the same arguments in:
check foo.script 1 2 foodnstuff",clear:"clear
Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'cls' command",cls:"cls
Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'clear' command",connect:"connect [hostname/ip]
Connect to a remote server. The hostname or IP address of the remote server must be given as the argument to this command. Note that only servers that are immediately adjacent to the current server in the network can be connected to. To see which servers can be connected to, use the 'scan' command.",download:"download [script/text file]
Downloads a script or text file to your computer (like your real life computer).
You can also download all of your scripts/text files as a zip file using the following Terminal commands:
Download all scripts and text files: download *
Download all scripts: download *.script
Download all text files: download *.txt
",expr:"expr [mathematical expression]
Evaluate a simple mathematical expression. Supports native JavaScript operators:
+, -, /, *, **, %
Example:
expr 25 * 2 ** 10
Note that letters (non-digits) are not allowed and will be removed from the input.",free:"free
Display's the memory usage on the current machine. Print the amount of RAM that is available on the current server as well as how much of it is being used.",hack:"hack
Attempt to hack the current server. Requires root access in order to be run. See the wiki page for hacking mechanics
",help:"help [command]
Display Terminal help information. Without arguments, 'help' prints a list of all valid Terminal commands and a brief description of their functionality. You can also pass the name of a Terminal command as an argument to 'help' to print more detailed information about the Terminal command. Examples:
help alias
help scan-analyze",home:"home
Connect to your home computer. This will work no matter what server you are currently connected to.",hostname:"hostname
Prints the hostname of the current server",ifconfig:"ipconfig
Prints the IP address of the current server",kill:"kill [script name] [args...]
kill [pid]
Kill the script specified by the script name and arguments OR by its PID.
If you are killing the script using its filename and arguments, then each argument must be separated by a space. Remember that a running script is uniquely identified by both its name and the arguments that are used to start it. So, if a script was ran with the following arguments:
run foo.script 1 sigma-cosmetics
Then to kill this script the same arguments would have to be used:
kill foo.script 1 sigma-cosmetics
If you are killing the script using its PID, then the PID argument must be numeric",killall:"killall
Kills all scripts on the current server. Note that after the 'kill' command is issued for a script, it may take a while for the script to actually stop running. This will happen if the script is in the middle of a command such as grow() or weaken() that takes time to execute. The script will not be stopped/killed until after that time has elapsed.",ls:"ls [dir] [| grep pattern]
The ls command, with no arguments, prints all files and directories on the current server's directory to the Terminal screen. The files will be displayed in alphabetical order.
The 'dir' optional parameter can be used to display files/directories in another directory.
The '| grep pattern' optional parameter can be used to only display files whose filenames match the specified pattern.
Examples:
List all files with the '.script' extension in the current directory:
ls | grep .script
List all files with the '.js' extension in the root directory:
ls / | grep .js
List all files with the word 'purchase' in the filename, in the 'scripts' directory:
ls scripts | grep purchase",lscpu:"lscpu
Prints the number of CPU Cores the current server has",mem:"mem [script name] [-t] [num threads]
Displays the amount of RAM needed to run the specified script with a single thread. The command can also be used to print the amount of RAM needed to run a script with multiple threads using the '-t' flag. If the '-t' flag is specified, then an argument for the number of threads must be passed in afterwards. Examples:
mem foo.script
mem foo.script -t 50
The first example above will print the amount of RAM needed to run 'foo.script' with a single thread. The second example above will print the amount of RAM needed to run 'foo.script' with 50 threads.",mv:"mv [src] [dest]
Move the source file to the specified destination. This can also be used to rename files. This command only works for scripts and text files (.txt). This command CANNOT be used to convert to different file types
Note that, unlike the Linux 'mv' command, the destination argument must be the full filepath. Examples:
mv hacking-controller.script scripts/hacking-controller.script
mv myScript.js myOldScript.js",nano:"nano [file name]
Opens up the specified file in the Text Editor. Only scripts (.script) or text files (.txt) can be edited using the Text Editor. If the file does not already exist, then a new, empty one will be created",ps:"ps
Prints all scripts that are running on the current server",rm:"rm [file]
Removes the specified file from the current server. A file can be a script, a program, or a message file.
WARNING: This is permanent and cannot be undone",run:"run [file name] [-t] [num threads] [args...]
Execute a program or a script.
The '[-t]', '[num threads]', and '[args...]' arguments are only valid when running a script. The '-t' flag is used to indicate that the script should be run with the specified number of threads. If the flag is omitted, then the script will be run with a single thread by default. If the '-t' flag is used, then it MUST come immediately after the script name, and the [num threads] argument MUST come immediately afterwards.
[args...] represents a variable number of arguments that will be passed into the script. See the documentation about script arguments. Each specified argument must be separated by a space.
",scan:"scan
Prints all immediately-available network connection. This will print a list of all servers that you can currently connect to using the 'connect' Terminal command.","scan-analyze":"scan-analyze [depth] [-a]
Prints detailed information about all servers up to [depth] nodes away on the network. Calling 'scan-analyze 1' will display information for the same servers that are shown by the 'scan' Terminal command. This command also shows the relative paths to reach each server.
By default, the maximum depth that can be specified for 'scan-analyze' is 3. However, once you have the DeepscanV1.exe and DeepscanV2.exe programs, you can execute 'scan-analyze' with a depth up to 5 and 10, respectively.
The information 'scan-analyze' displays about each server includes whether or not you have root access to it, its required hacking level, the number of open ports required to run NUKE.exe on it, and how much RAM it has.
By default, this command will not display servers that you have purchased. However, you can pass in the -a flag at the end of the command if you would like to enable that.",scp:"scp [filename] [target server]
Copies the specified file from the current server to the target server. This command only works for script files (.script extension), literature files (.lit extension), and text files (.txt extension). The second argument passed in must be the hostname or IP of the target server.",sudov:"sudov
Prints whether or not you have root access to the current machine",tail:"tail [script name] [args...]
Displays dynamic logs for the script specified by the script name and arguments. Each argument must be separated by a space. Remember that a running script is uniquely identified by both its name and the arguments that were used to run it. So, if a script was ran with the following arguments:
run foo.script 10 50000
Then in order to check its logs with 'tail' the same arguments must be used:
tail foo.script 10 50000",theme:"theme [preset] | [#background #text #highlight]
Change the color of the game's user interface
This command can be called with a preset theme. Currently, the supported presets are 'default', 'muted', and 'solarized'. However, you can also specify your own color scheme using hex values. To do so, you must specify three hex color values for the background color, the text color, and the highlight color. These hex values must be preceded by a pound sign (#) and must be either 3 or 6 digits. Example:
theme #ffffff #385 #235012
A color picker such as Google's can be used to get your desired hex color values
Themes are not saved, so when the game is closed and then re-opened or reloaded then it will revert back to the default theme.",top:"top
Prints a list of all scripts running on the current server as well as their thread count and how much RAM they are using in total.",unalias:"unalias [alias name]
Deletes the specified alias. Note that the double quotation marks are required.
As an example, if an alias was declared using:
alias r=\"run\"
Then it could be removed using:
unalias r
It is not necessary to differentiate between global and non-global aliases when using 'unalias'",wget:"wget [url] [target file]
Retrieves data from a URL and downloads it to a file on the current server. The data can only be downloaded to a script (.script, .ns, .js) or a text file (.txt). If the file already exists, it will be overwritten by this command.
Note that it will not be possible to download data from many websites because they do not allow cross-origin resource sharing (CORS). Example:
wget https://raw.githubusercontent.com/danielyxie/bitburner/master/README.md game_readme.txt"}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trusted=void 0,t.trusted=function(e){return function(t){t.isTrusted&&e()}}},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.purchaseTorRouter=t.createUpgradeHomeRamPopup=t.createUpgradeHomeCoresPopup=t.createStartCorporationPopup=t.createPurchaseServerPopup=t.createTravelPopup=void 0;const o=n(11),s=n(23),l=n(24),c=n(144),u=n(45),m=n(26),p=n(3),d=n(31),h=n(12),_=n(54),g=n(13),f=n(57),y=n(69),b=n(49),E=i(n(0));t.createTravelPopup=function(e,t){const n=o.CONSTANTS.TravelCost;if(m.Settings.SuppressTravelConfirmation)return void t(e);const a=_.yesNoBoxGetYesButton(),r=_.yesNoBoxGetNoButton();null!=a&&null!=r?(a.innerHTML="Yes",a.addEventListener("click",()=>(_.yesNoBoxClose(),t(e),!1)),r.innerHTML="No",r.addEventListener("click",()=>(_.yesNoBoxClose(),!1)),_.yesNoBoxCreate(E.createElement("span",null,"Would you like to travel to ",e,"? The trip will cost ",d.Money(n),"."))):console.warn("Could not find YesNo pop-up box buttons")},t.createPurchaseServerPopup=function(e,t){const n=c.getPurchaseServerCost(e);if(n===1/0)return void h.dialogBoxCreate("Something went wrong when trying to purchase this server. Please contact developer.");const a=_.yesNoTxtInpBoxGetYesButton(),r=_.yesNoTxtInpBoxGetNoButton();null!=a&&null!=r&&(a.innerHTML="Purchase Server",r.innerHTML="Cancel",a.addEventListener("click",function(){c.purchaseServer(e,t),_.yesNoTxtInpBoxClose()}),r.addEventListener("click",function(){_.yesNoTxtInpBoxClose()}),_.yesNoTxtInpBoxCreate(E.createElement(E.Fragment,null,"Would you like to purchase a new server with ",p.numeralWrapper.formatRAM(e)," of RAM for ",d.Money(n),"?",E.createElement("br",null),E.createElement("br",null),"Please enter the server hostname below:",E.createElement("br",null))))},t.createStartCorporationPopup=function(e){if(!e.canAccessCorporation()||e.hasCorporation())return;const t="create-corporation-popup",n=g.createElement("p",{innerHTML:"Would you like to start a corporation? This will require $150b for registration and initial funding. This $150b can either be self-funded, or you can obtain the seed money from the government in exchange for 500 million shares
If you would like to start one, please enter a name for your corporation below:"}),a=g.createElement("input",{class:"text-input",placeholder:"Corporation Name"}),r=g.createElement("button",{class:"popup-box-button",innerText:"Self-Fund",clickListener:()=>{if(!e.canAfford(15e10))return h.dialogBoxCreate("You don't have enough money to create a corporation! You need $150b."),!1;const n=a.value;if(null==n||""==n)return h.dialogBoxCreate("Invalid company name!"),!1;e.startCorporation(n),e.loseMoney(15e10);const r=document.getElementById("world-menu-header");return r instanceof HTMLElement&&(r.click(),r.click()),h.dialogBoxCreate("Congratulations! You just self-funded your own corporation. You can visit and manage your company in the City."),b.removeElementById(t),!1}}),i=g.createElement("button",{class:"popup-box-button",innerText:"Use Seed Money",clickListener:()=>{const n=a.value;if(null==n||""==n)return h.dialogBoxCreate("Invalid company name!"),!1;e.startCorporation(n,5e8);const r=document.getElementById("world-menu-header");return r instanceof HTMLElement&&(r.click(),r.click()),h.dialogBoxCreate("Congratulations! You just started your own corporation with government seed money. You can visit and manage your company in the City."),b.removeElementById(t),!1}}),o=y.createPopupCloseButton(t,{class:"popup-box-button"});f.createPopup(t,[n,a,o,r,i]),a.focus()},t.createUpgradeHomeCoresPopup=function(e){const t=e.getHomeComputer().cpuCores;if(t>=8)return void h.dialogBoxCreate(E.createElement(E.Fragment,null,"You have the maximum amount of CPU cores on your home computer."));const n=[0,1e10,25e10,5e12,1e14,1e15,2e16,2e17][t],a=_.yesNoBoxGetYesButton(),r=_.yesNoBoxGetNoButton();null!=a&&null!=r&&(a.innerHTML="Purchase",a.addEventListener("click",()=>{e.canAfford(n)?(e.loseMoney(n),e.getHomeComputer().cpuCores++,h.dialogBoxCreate("You purchased an additional CPU Core for your home computer! It now has "+e.getHomeComputer().cpuCores+" cores.")):h.dialogBoxCreate("You do not have enough money to purchase an additional CPU Core for your home computer!"),_.yesNoBoxClose()}),r.innerHTML="Cancel",r.addEventListener("click",()=>{_.yesNoBoxClose()}),_.yesNoBoxCreate(E.createElement(E.Fragment,null,"Would you like to purchase an additional CPU Core for your home computer? Each CPU Core lets you start with an additional Core Node in Hacking Missions.",E.createElement("br",null),E.createElement("br",null),"Purchasing an additional core (for a total of ",e.getHomeComputer().cpuCores+1,") will cost ",d.Money(n))))},t.createUpgradeHomeRamPopup=function(e){const t=e.getUpgradeHomeRamCost(),n=e.getHomeComputer().maxRam,a=_.yesNoBoxGetYesButton(),r=_.yesNoBoxGetNoButton();null!=a&&null!=r&&(e.getHomeComputer().maxRam>=o.CONSTANTS.HomeComputerMaxRam?h.dialogBoxCreate(E.createElement(E.Fragment,null,"You have the maximum amount of RAM on your home computer.")):(a.innerText="Purchase",a.addEventListener("click",()=>{c.purchaseRamForHomeComputer(t,e),_.yesNoBoxClose()}),r.innerText="Cancel",r.addEventListener("click",()=>{_.yesNoBoxClose()}),_.yesNoBoxCreate(E.createElement(E.Fragment,null,"Would you like to purchase additional RAM for your home computer? ",E.createElement("br",null),E.createElement("br",null),"This will upgrade your RAM from ",p.numeralWrapper.formatRAM(n)," to ",p.numeralWrapper.formatRAM(2*n),". ",E.createElement("br",null),E.createElement("br",null),"This will cost ",d.Money(t)))))},t.purchaseTorRouter=function(e){if(e.hasTorRouter())return void h.dialogBoxCreate("You already have a TOR Router!");if(!e.canAfford(o.CONSTANTS.TorRouterCost))return void h.dialogBoxCreate("You cannot afford to purchase the TOR router!");e.loseMoney(o.CONSTANTS.TorRouterCost);const t=l.safetlyCreateUniqueServer({ip:s.createUniqueRandomIp(),hostname:"darkweb",organizationName:"",isConnectedTo:!1,adminRights:!1,purchasedByPlayer:!1,maxRam:1});s.AddToAllServers(t),u.SpecialServerIps.addIp("Darkweb Server",t.ip),e.getHomeComputer().serversOnNetwork.push(t.ip),t.serversOnNetwork.push(e.getHomeComputer().ip),h.dialogBoxCreate("You have purchased a TOR router!
You now have access to the dark web from your home computer.
Use the scan/scan-analyze commands to search for the dark web connection.")}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AutoupdatingStdButton=void 0;const o=i(n(0));t.AutoupdatingStdButton=class extends o.Component{constructor(e){super(e),this.interval=0,this.state={i:0}}componentDidMount(){const e=this.props.intervalTime?this.props.intervalTime:1e3;this.interval=window.setInterval(()=>this.tick(),e)}componentWillUnmount(){clearInterval(this.interval)}tick(){this.setState(e=>({i:e.i+1}))}render(){const e=null!=this.props.tooltip&&""!==this.props.tooltip;let t=this.props.disabled?"std-button-disabled":"std-button";e&&(t+=" tooltip");const n={__html:this.props.tooltip?this.props.tooltip:""};return o.createElement("button",{className:t,onClick:this.props.onClick,style:this.props.style},this.props.text,e&&o.createElement("span",{className:"tooltiptext",dangerouslySetInnerHTML:n}))}}},,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SuccessChance=void 0;const r=a(n(0)),i=n(20);t.SuccessChance=function(e){return e.chance[0]===e.chance[1]?r.default.createElement(r.default.Fragment,null,i.formatNumber(100*e.chance[0],1),"%"):r.default.createElement(r.default.Fragment,null,i.formatNumber(100*e.chance[0],1),"% ~ ",i.formatNumber(100*e.chance[1],1),"%")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocationType=void 0,function(e){e[e.Company=0]="Company",e[e.Gym=1]="Gym",e[e.Hospital=2]="Hospital",e[e.Slums=3]="Slums",e[e.Special=4]="Special",e[e.StockMarket=5]="StockMarket",e[e.TechVendor=6]="TechVendor",e[e.TravelAgency=7]="TravelAgency",e[e.University=8]="University",e[e.Casino=9]="Casino"}(t.LocationType||(t.LocationType={}))},,,,,,,,,function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.gangMemberUpgradesMetadata=t.UpgradeType=void 0,function(e){e.Weapon="w",e.Armor="a",e.Vehicle="v",e.Rootkit="r",e.Augmentation="g"}(a=t.UpgradeType||(t.UpgradeType={})),t.gangMemberUpgradesMetadata=[{cost:1e6,mults:{str:1.04,def:1.04},name:"Baseball Bat",upgType:a.Weapon},{cost:12e6,mults:{str:1.08,def:1.08,dex:1.08},name:"Katana",upgType:a.Weapon},{cost:25e6,mults:{str:1.1,def:1.1,dex:1.1,agi:1.1},name:"Glock 18C",upgType:a.Weapon},{cost:5e7,mults:{str:1.12,def:1.1,agi:1.1},name:"P90C",upgType:a.Weapon},{cost:6e7,mults:{str:1.2,def:1.15},name:"Steyr AUG",upgType:a.Weapon},{cost:1e8,mults:{str:1.25,def:1.2},name:"AK-47",upgType:a.Weapon},{cost:15e7,mults:{str:1.3,def:1.25},name:"M15A10 Assault Rifle",upgType:a.Weapon},{cost:225e6,mults:{str:1.3,dex:1.25,agi:1.3},name:"AWM Sniper Rifle",upgType:a.Weapon},{cost:2e6,mults:{def:1.04},name:"Bulletproof Vest",upgType:a.Armor},{cost:5e6,mults:{def:1.08},name:"Full Body Armor",upgType:a.Armor},{cost:25e6,mults:{def:1.15,agi:1.15},name:"Liquid Body Armor",upgType:a.Armor},{cost:4e7,mults:{def:1.2},name:"Graphene Plating Armor",upgType:a.Armor},{cost:3e6,mults:{agi:1.04,cha:1.04},name:"Ford Flex V20",upgType:a.Vehicle},{cost:9e6,mults:{agi:1.08,cha:1.08},name:"ATX1070 Superbike",upgType:a.Vehicle},{cost:18e6,mults:{agi:1.12,cha:1.12},name:"Mercedes-Benz S9001",upgType:a.Vehicle},{cost:3e7,mults:{agi:1.16,cha:1.16},name:"White Ferrari",upgType:a.Vehicle},{cost:5e6,mults:{hack:1.05},name:"NUKE Rootkit",upgType:a.Rootkit},{cost:25e6,mults:{hack:1.1},name:"Soulstealer Rootkit",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Demon Rootkit",upgType:a.Rootkit},{cost:4e7,mults:{hack:1.12},name:"Hmap Node",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Jack the Ripper",upgType:a.Rootkit},{cost:1e10,mults:{str:1.3,dex:1.3},name:"Bionic Arms",upgType:a.Augmentation},{cost:1e10,mults:{agi:1.6},name:"Bionic Legs",upgType:a.Augmentation},{cost:15e9,mults:{str:1.15,def:1.15,dex:1.15,agi:1.15},name:"Bionic Spine",upgType:a.Augmentation},{cost:2e10,mults:{str:1.4,def:1.4},name:"BrachiBlades",upgType:a.Augmentation},{cost:12e9,mults:{str:1.2,def:1.2},name:"Nanofiber Weave",upgType:a.Augmentation},{cost:25e9,mults:{str:1.5,agi:1.5},name:"Synthetic Heart",upgType:a.Augmentation},{cost:15e9,mults:{str:1.3,def:1.3},name:"Synfibril Muscle",upgType:a.Augmentation},{cost:5e9,mults:{hack:1.05},name:"BitWire",upgType:a.Augmentation},{cost:1e10,mults:{hack:1.15},name:"Neuralstimulator",upgType:a.Augmentation},{cost:75e8,mults:{hack:1.1},name:"DataJack",upgType:a.Augmentation},{cost:5e10,mults:{str:1.7,def:1.7},name:"Graphene Bone Lacings",upgType:a.Augmentation}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventEmitter=void 0;t.EventEmitter=class{constructor(e){if(this.subscribers={},Array.isArray(e))for(const t of e)this.addSubscriber(t)}addSubscriber(e){this.subscribers[e.id]=e.cb}emitEvent(...e){for(const t in this.subscribers)(0,this.subscribers[t])(e)}removeSubscriber(e){delete this.subscribers[e]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const a=n(705),r=n(21),i=n(1141),o=n(416),s=n(27);class l extends a.BaseServer{constructor(e={hostname:"",ip:o.createRandomIp()}){super(e),this.backdoorInstalled=!1,this.baseDifficulty=1,this.hackDifficulty=1,this.minDifficulty=1,this.moneyAvailable=0,this.moneyMax=0,this.numOpenPortsRequired=5,this.openPortCount=0,this.purchasedByPlayer=!1,this.requiredHackingSkill=1,this.serverGrowth=1,this.hostname.startsWith("hacknet-node-")&&(this.hostname=i.createRandomString(10)),this.purchasedByPlayer=null!=e.purchasedByPlayer&&e.purchasedByPlayer,this.maxRam=null!=e.maxRam?e.maxRam:0,this.requiredHackingSkill=null!=e.requiredHackingSkill?e.requiredHackingSkill:1,this.moneyAvailable=null!=e.moneyAvailable?e.moneyAvailable*r.BitNodeMultipliers.ServerStartingMoney:0,this.moneyMax=25*this.moneyAvailable*r.BitNodeMultipliers.ServerMaxMoney,this.hackDifficulty=null!=e.hackDifficulty?e.hackDifficulty*r.BitNodeMultipliers.ServerStartingSecurity:1,this.baseDifficulty=this.hackDifficulty,this.minDifficulty=Math.max(1,Math.round(this.hackDifficulty/3)),this.serverGrowth=null!=e.serverGrowth?e.serverGrowth:1,this.numOpenPortsRequired=null!=e.numOpenPortsRequired?e.numOpenPortsRequired:5}capDifficulty(){this.hackDifficulty
`+`Strength: ${l.numeralWrapper.formatSkill(e.strength)} (${l.numeralWrapper.formatExp(e.strength_exp)} exp)
`+`Defense: ${l.numeralWrapper.formatSkill(e.defense)} (${l.numeralWrapper.formatExp(e.defense_exp)} exp)
`+`Dexterity: ${l.numeralWrapper.formatSkill(e.dexterity)} (${l.numeralWrapper.formatExp(e.dexterity_exp)} exp)
`+`Agility: ${l.numeralWrapper.formatSkill(e.agility)} (${l.numeralWrapper.formatExp(e.agility_exp)} exp)
`+`Charisma: ${l.numeralWrapper.formatSkill(e.charisma)} (${l.numeralWrapper.formatExp(e.charisma_exp)} exp)
`+`# Augmentations: ${e.augmentations.length}`}),t.multipliersButton=d.createElement("button",{class:"std-button",innerText:"Multipliers",clickListener:()=>{m.dialogBoxCreate(["Total Multipliers:
",`Hacking Level multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_mult)}`,`Hacking Experience multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_exp_mult)}`,`Strength Level multiplier: ${l.numeralWrapper.formatPercentage(e.strength_mult)}`,`Strength Experience multiplier: ${l.numeralWrapper.formatPercentage(e.strength_exp_mult)}`,`Defense Level multiplier: ${l.numeralWrapper.formatPercentage(e.defense_mult)}`,`Defense Experience multiplier: ${l.numeralWrapper.formatPercentage(e.defense_exp_mult)}`,`Dexterity Level multiplier: ${l.numeralWrapper.formatPercentage(e.dexterity_mult)}`,`Dexterity Experience multiplier: ${l.numeralWrapper.formatPercentage(e.dexterity_exp_mult)}`,`Agility Level multiplier: ${l.numeralWrapper.formatPercentage(e.agility_mult)}`,`Agility Experience multiplier: ${l.numeralWrapper.formatPercentage(e.agility_exp_mult)}`,`Charisma Level multiplier: ${l.numeralWrapper.formatPercentage(e.charisma_mult)}`,`Charisma Experience multiplier: ${l.numeralWrapper.formatPercentage(e.charisma_exp_mult)}`,`Hacking Chance multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_chance_mult)}`,`Hacking Speed multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_speed_mult)}`,`Hacking Money multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_money_mult)}`,`Hacking Growth multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_grow_mult)}`,`Salary multiplier: ${l.numeralWrapper.formatPercentage(e.work_money_mult)}`,`Company Reputation Gain multiplier: ${l.numeralWrapper.formatPercentage(e.company_rep_mult)}`,`Faction Reputation Gain multiplier: ${l.numeralWrapper.formatPercentage(e.faction_rep_mult)}`,`Crime Money multiplier: ${l.numeralWrapper.formatPercentage(e.crime_money_mult)}`,`Crime Success multiplier: ${l.numeralWrapper.formatPercentage(e.crime_success_mult)}`,`Hacknet Income multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_money_mult)}`,`Hacknet Purchase Cost multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_purchase_cost_mult)}`,`Hacknet Level Upgrade Cost multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_level_cost_mult)}`,`Hacknet Ram Upgrade Cost multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_ram_cost_mult)}`,`Hacknet Core Upgrade Cost multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_core_cost_mult)}`,`Bladeburner Max Stamina multiplier: ${l.numeralWrapper.formatPercentage(e.bladeburner_max_stamina_mult)}`,`Bladeburner Stamina Gain multiplier: ${l.numeralWrapper.formatPercentage(e.bladeburner_stamina_gain_mult)}`,`Bladeburner Field Analysis multiplier: ${l.numeralWrapper.formatPercentage(e.bladeburner_analysis_mult)}`,`Bladeburner Success Chance multiplier: ${l.numeralWrapper.formatPercentage(e.bladeburner_success_chance_mult)}`].join("
"),!1)}}),t.statsPanel.appendChild(t.stats),t.statsPanel.appendChild(t.multipliersButton),t.augPanel=d.createElement("div",{class:"resleeve-panel",width:"50%"}),t.augSelector=d.createElement("select",{class:"resleeve-aug-selector dropdown"}),t.augDescription=d.createElement("p");for(let n=0;n
Re-sleeving will change your experience for every stat. It will also REMOVE all of your currently-installed Augmentations, and replace them with the ones provided by the purchased sleeve. However, Augmentations that you have purchased but not installed will NOT be removed. If you have purchased an Augmentation and then re-sleeve into a body which already has that Augmentation, it will be removed (since you cannot have duplicate Augmentations).
NOTE: The stats and multipliers displayed on this page do NOT include your bonuses from Source-File.",width:"75%"}),0===e.resleeves.length&&(e.resleeves=o.generateResleeves()),E.sortTag=d.createElement("p",{display:"inline-block",innerText:"Sort By: "}),E.sortSelector=d.createElement("select",{class:"dropdown"}),function(e){e.Cost="Cost",e.Hacking="Hacking",e.Strength="Strength",e.Defense="Defense",e.Dexterity="Dexterity",e.Agility="Agility",e.Charisma="Charisma",e.AverageCombatStats="AverageCombat",e.AverageAllStats="AverageAllStats",e.TotalNumAugmentations="TotalNumAugmentations"}(t||(t={})),E.sortSelector.add(h.createOptionElement("Cost",t.Cost)),E.sortSelector.add(h.createOptionElement("Hacking Level",t.Hacking)),E.sortSelector.add(h.createOptionElement("Strength Level",t.Strength)),E.sortSelector.add(h.createOptionElement("Defense Level",t.Defense)),E.sortSelector.add(h.createOptionElement("Dexterity Level",t.Dexterity)),E.sortSelector.add(h.createOptionElement("Agility Level",t.Agility)),E.sortSelector.add(h.createOptionElement("Charisma Level",t.Charisma)),E.sortSelector.add(h.createOptionElement("Average Combat Stats",t.AverageCombatStats)),E.sortSelector.add(h.createOptionElement("Average Stats",t.AverageAllStats)),E.sortSelector.add(h.createOptionElement("Number of Augmentations",t.TotalNumAugmentations)),E.resleeveList=d.createElement("ul"),E.sortSelector.onchange=(()=>{function n(...e){let t=0;for(let n=0;n
Does NOT require stamina."}),e="Recruitment",t.GeneralActions[e]=new a.Action({name:e,desc:"Attempt to recruit members for your Bladeburner team. These members can help you conduct operations.
Does NOT require stamina."}),e="Diplomacy",t.GeneralActions[e]=new a.Action({name:e,desc:"Improve diplomatic relations with the Synthoid population. Completing this action will reduce the Chaos level in your current city.
Does NOT require stamina."}),e="Hyperbolic Regeneration Chamber",t.GeneralActions[e]=new a.Action({name:e,desc:"Enter cryogenic stasis using the Bladeburner division's hi-tech Regeneration Chamber. This will slowly heal your wounds and slightly increase your stamina.
"})}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation=void 0;const a=n(150),r=n(518),i=n(27);class o extends r.Action{constructor(e=null){super(e),this.reqdRank=100,this.teamCount=0,e&&e.reqdRank&&(this.reqdRank=e.reqdRank),e&&e.teamCount&&(this.teamCount=e.teamCount)}getTeamSuccessBonus(e){if(this.teamCount&&this.teamCount>0){return this.teamCount=Math.min(this.teamCount,e.teamSize),Math.pow(this.teamCount,.05)}return 1}getActionTypeSkillSuccessBonus(e){return e.skillMultipliers.successChanceOperation}getChaosDifficultyBonus(e){const t=e.getCurrentCity();if(t.chaos>a.BladeburnerConstants.ChaosThreshold){const e=t.chaos-a.BladeburnerConstants.ChaosThreshold+1;return Math.pow(e,.1)}return 1}toJSON(){return i.Generic_toJSON("Operation",this)}static fromJSON(e){return i.Generic_fromJSON(o,e.data)}}t.Operation=o,i.Reviver.constructors.Operation=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlackOperation=void 0;const a=n(753),r=n(27);class i extends a.Operation{constructor(e=null){super(e),this.count=1,this.countGrowth=0}getActionTimePenalty(){return 1.5}getChaosCompetencePenalty(){return 1}getChaosDifficultyBonus(){return 1}toJSON(){return r.Generic_toJSON("BlackOperation",this)}static fromJSON(e){return r.Generic_fromJSON(i,e.data)}}t.BlackOperation=i,r.Reviver.constructors.BlackOperation=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlackOperations=void 0;const a=n(754);t.BlackOperations={},t.BlackOperations["Operation Typhoon"]=new a.BlackOperation({name:"Operation Typhoon",desc:"Obadiah Zenyatta is the leader of a RedWater PMC. It has long been known among the intelligence community that Zenyatta, along with the rest of the PMC, is a Synthoid.
The goal of Operation Typhoon is to find and eliminate Zenyatta and RedWater by any means necessary. After the task is completed, the actions must be covered up from the general public.",baseDifficulty:2e3,reqdRank:2500,rankGain:50,rankLoss:10,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Zero"]=new a.BlackOperation({name:"Operation Zero",desc:"AeroCorp is one of the world's largest defense contractors. Its leader, Steve Watataki, is thought to be a supporter of Synthoid rights. He must be removed.
The goal of Operation Zero is to covertly infiltrate AeroCorp and uncover any incriminating evidence or information against Watataki that will cause him to be removed from his position at AeroCorp. Incriminating evidence can be fabricated as a last resort. Be warned that AeroCorp has some of the most advanced security measures in the world.",baseDifficulty:2500,reqdRank:5e3,rankGain:60,rankLoss:15,hpLoss:50,weights:{hack:.2,str:.15,def:.15,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),t.BlackOperations["Operation X"]=new a.BlackOperation({name:"Operation X",desc:"We have recently discovered an underground publication group called Samizdat. Even though most of their publications are nonsensical conspiracy theories, the average human is gullible enough to believe them. Many of their works discuss Synthoids and pose a threat to society. The publications are spreading rapidly in China and other Eastern countries.
Samizdat has done a good job of keeping hidden and anonymous. However, we've just received intelligence that their base of operations is in Ishima's underground sewer systems. Your task is to investigate the sewer systems, and eliminate Samizdat. They must never publish anything again.",baseDifficulty:3e3,reqdRank:7500,rankGain:75,rankLoss:15,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Titan"]=new a.BlackOperation({name:"Operation Titan",desc:"Several months ago Titan Laboratories' Bioengineering department was infiltrated by Synthoids. As far as we know, Titan Laboratories' management has no knowledge about this. We don't know what the Synthoids are up to, but the research that they could be conducting using Titan Laboraties' vast resources is potentially very dangerous.
Your goal is to enter and destroy the Bioengineering department's facility in Aevum. The task is not just to retire the Synthoids there, but also to destroy any information or research at the facility that is relevant to the Synthoids and their goals.",baseDifficulty:4e3,reqdRank:1e4,rankGain:100,rankLoss:20,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Ares"]=new a.BlackOperation({name:"Operation Ares",desc:"One of our undercover agents, Agent Carter, has informed us of a massive weapons deal going down in Dubai between rogue Russian militants and a radical Synthoid community. These weapons are next-gen plasma and energy weapons. It is critical for the safety of humanity that this deal does not happen.
Your task is to intercept the deal. Leave no survivors.",baseDifficulty:5e3,reqdRank:12500,rankGain:125,rankLoss:20,hpLoss:200,weights:{hack:0,str:.25,def:.25,dex:.25,agi:.25,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Archangel"]=new a.BlackOperation({name:"Operation Archangel",desc:"Our analysts have discovered that the popular Red Rabbit brothel in Amsterdam is run and 'staffed' by MK-VI Synthoids. Intelligence suggests that the profit from this brothel is used to fund a large black market arms trafficking operation.
The goal of this operation is to take out the leaders that are running the Red Rabbit brothel. Try to limit the number of other casualties, but do what you must to complete the mission.",baseDifficulty:7500,reqdRank:15e3,rankGain:200,rankLoss:20,hpLoss:25,weights:{hack:0,str:.2,def:.2,dex:.3,agi:.3,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Juggernaut"]=new a.BlackOperation({name:"Operation Juggernaut",desc:"The CIA has just encountered a new security threat. A new criminal group, lead by a shadowy operative who calls himself Juggernaut, has been smuggling drugs and weapons (including suspected bioweapons) into Sector-12. We also have reason to believe the tried to break into one of Universal Energy's facilities in order to cause a city-wide blackout. The CIA suspects that Juggernaut is a heavily-augmented Synthoid, and have thus enlisted our help.
Your mission is to eradicate Juggernaut and his followers.",baseDifficulty:1e4,reqdRank:2e4,rankGain:300,rankLoss:40,hpLoss:300,weights:{hack:0,str:.25,def:.25,dex:.25,agi:.25,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Red Dragon"]=new a.BlackOperation({name:"Operation Red Dragon",desc:"The Tetrads criminal organization is suspected of reverse-engineering the MK-VI Synthoid design. We believe they altered and possibly improved the design and began manufacturing their own Synthoid models in order to bolster their criminal activities.
Your task is to infiltrate and destroy the Tetrads' base of operations in Los Angeles. Intelligence tells us that their base houses one of their Synthoid manufacturing units.",baseDifficulty:12500,reqdRank:25e3,rankGain:500,rankLoss:50,hpLoss:500,weights:{hack:.05,str:.2,def:.2,dex:.25,agi:.25,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation K"]=new a.BlackOperation({name:"Operation K",desc:"CODE RED SITUATION. Our intelligence tells us that VitaLife has discovered a new android cloning technology. This technology is supposedly capable of cloning Synthoid, not only physically but also their advanced AI modules. We do not believe that VitaLife is trying to use this technology illegally or maliciously, but if any Synthoids were able to infiltrate the corporation and take advantage of this technology then the results would be catastrophic.
We do not have the power or jurisdiction to shutdown this down through legal or political means, so we must resort to a covert operation. Your goal is to destroy this technology and eliminate anyone who was involved in its creation.",baseDifficulty:15e3,reqdRank:3e4,rankGain:750,rankLoss:60,hpLoss:1e3,weights:{hack:.05,str:.2,def:.2,dex:.25,agi:.25,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Deckard"]=new a.BlackOperation({name:"Operation Deckard",desc:"Despite your success in eliminating VitaLife's new android-replicating technology in Operation K, we've discovered that a small group of MK-VI Synthoids were able to make off with the schematics and design of the technology before the Operation. It is almost a certainty that these Synthoids are some of the rogue MK-VI ones from the Synthoid Uprising.
The goal of Operation Deckard is to hunt down these Synthoids and retire them. I don't need to tell you how critical this mission is.",baseDifficulty:2e4,reqdRank:4e4,rankGain:1e3,rankLoss:75,hpLoss:200,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Tyrell"]=new a.BlackOperation({name:"Operation Tyrell",desc:"A week ago Blade Industries reported a small break-in at one of their Aevum Augmentation storage facitilities. We figured out that The Dark Army was behind the heist, and didn't think any more of it. However, we've just discovered that several known MK-VI Synthoids were part of that break-in group.
We cannot have Synthoids upgrading their already-enhanced abilities with Augmentations. Your task is to hunt down the associated Dark Army members and eliminate them.",baseDifficulty:25e3,reqdRank:5e4,rankGain:1500,rankLoss:100,hpLoss:500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Wallace"]=new a.BlackOperation({name:"Operation Wallace",desc:"Based on information gathered from Operation Tyrell, we've discovered that The Dark Army was well aware that there were Synthoids amongst their ranks. Even worse, we believe that The Dark Army is working together with other criminal organizations such as The Syndicate and that they are planning some sort of large-scale takeover of multiple major cities, most notably Aevum. We suspect that Synthoids have infiltrated the ranks of these criminal factions and are trying to stage another Synthoid uprising.
The best way to deal with this is to prevent it before it even happens. The goal of Operation Wallace is to destroy the Dark Army and Syndicate factions in Aevum immediately. Leave no survivors.",baseDifficulty:3e4,reqdRank:75e3,rankGain:2e3,rankLoss:150,hpLoss:1500,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Shoulder of Orion"]=new a.BlackOperation({name:"Operation Shoulder of Orion",desc:"China's Solaris Space Systems is secretly launching the first manned spacecraft in over a decade using Synthoids. We believe China is trying to establish the first off-world colonies.
The mission is to prevent this launch without instigating an international conflict. When you accept this mission you will be officially disavowed by the NSA and the national government until after you successfully return. In the event of failure, all of the operation's team members must not let themselves be captured alive.",baseDifficulty:35e3,reqdRank:1e5,rankGain:2500,rankLoss:500,hpLoss:1500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),t.BlackOperations["Operation Hyron"]=new a.BlackOperation({name:"Operation Hyron",desc:"Our intelligence tells us that Fulcrum Technologies is developing a quantum supercomputer using human brains as core processors. This supercomputer is rumored to be able to store vast amounts of data and perform computations unmatched by any other supercomputer on the planet. But more importantly, the use of organic human brains means that the supercomputer may be able to reason abstractly and become self-aware.
I do not need to remind you why sentient-level AIs pose a serious threat to all of mankind.
The research for this project is being conducted at one of Fulcrum Technologies secret facilities in Aevum, codenamed 'Alpha Ranch'. Infiltrate the compound, delete and destroy the work, and then find and kill the project lead.",baseDifficulty:4e4,reqdRank:125e3,rankGain:3e3,rankLoss:1e3,hpLoss:500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Morpheus"]=new a.BlackOperation({name:"Operation Morpheus",desc:"DreamSense Technologies is an advertising company that uses special technology to transmit their ads into the peoples dreams and subconcious. They do this using broadcast transmitter towers. Based on information from our agents and informants in Chonqging, we have reason to believe that one of the broadcast towers there has been compromised by Synthoids and is being used to spread pro-Synthoid propaganda.
The mission is to destroy this broadcast tower. Speed and stealth are of the upmost important for this.",baseDifficulty:45e3,reqdRank:15e4,rankGain:4e3,rankLoss:1e3,hpLoss:100,weights:{hack:.05,str:.15,def:.15,dex:.3,agi:.3,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),t.BlackOperations["Operation Ion Storm"]=new a.BlackOperation({name:"Operation Ion Storm",desc:"Our analysts have uncovered a gathering of MK-VI Synthoids that have taken up residence in the Sector-12 Slums. We don't know if they are rogue Synthoids from the Uprising, but we do know that they have been stockpiling weapons, money, and other resources. This makes them dangerous.
This is a full-scale assault operation to find and retire all of these Synthoids in the Sector-12 Slums.",baseDifficulty:5e4,reqdRank:175e3,rankGain:5e3,rankLoss:1e3,hpLoss:5e3,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Annihilus"]=new a.BlackOperation({name:"Operation Annihilus",desc:"Our superiors have ordered us to eradicate everything and everyone in an underground facility located in Aevum. They tell us that the facility houses many dangerous Synthoids and belongs to a terrorist organization called 'The Covenant'. We have no prior intelligence about this organization, so you are going in blind.",baseDifficulty:55e3,reqdRank:2e5,rankGain:7500,rankLoss:1e3,hpLoss:1e4,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Ultron"]=new a.BlackOperation({name:"Operation Ultron",desc:"OmniTek Incorporated, the original designer and manufacturer of Synthoids, has notified us of a malfunction in their AI design. This malfunction, when triggered, causes MK-VI Synthoids to become radicalized and seek out the destruction of humanity. They say that this bug affects all MK-VI Synthoids, not just the rogue ones from the Uprising.
OmniTek has also told us they they believe someone has triggered this malfunction in a large group of MK-VI Synthoids, and that these newly-radicalized Synthoids are now amassing in Volhaven to form a terrorist group called Ultron.
Intelligence suggests Ultron is heavily armed and that their members are augmented. We believe Ultron is making moves to take control of and weaponize DeltaOne's Tactical High-Energy Satellite Laser Array (THESLA).
Your task is to find and destroy Ultron.",baseDifficulty:6e4,reqdRank:25e4,rankGain:1e4,rankLoss:2e3,hpLoss:1e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Centurion"]=new a.BlackOperation({name:"Operation Centurion",desc:"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)
Throughout all of humanity's history, we have relied on technology to survive, conquer, and progress. Its advancement became our primary goal. And at the peak of human civilization technology turned into power. Global, absolute power.
It seems that the universe is not without a sense of irony.
D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)",baseDifficulty:7e4,reqdRank:3e5,rankGain:15e3,rankLoss:5e3,hpLoss:1e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}}),t.BlackOperations["Operation Vindictus"]=new a.BlackOperation({name:"Operation Vindictus",desc:"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)
The bits are all around us. The daemons that hold the Node together can manifest themselves in many different ways.
D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)",baseDifficulty:75e3,reqdRank:35e4,rankGain:2e4,rankLoss:2e4,hpLoss:2e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}}),t.BlackOperations["Operation Daedalus"]=new a.BlackOperation({name:"Operation Daedalus",desc:"Yesterday we obeyed kings and bent our neck to emperors. Today we kneel only to truth.",baseDifficulty:8e4,reqdRank:4e5,rankGain:4e4,rankLoss:1e4,hpLoss:1e5,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FactionInfos=t.FactionInfo=void 0;class a{constructor(e,t,n,a,r,i){this.infoText=e,this.enemies=t,this.offerHackingMission=n,this.offerHackingWork=a,this.offerFieldWork=r,this.offerSecurityWork=i,this.augmentationPriceMult=1,this.augmentationRepRequirementMult=1}offersWork(){return this.offerFieldWork||this.offerHackingMission||this.offerHackingWork||this.offerSecurityWork}}t.FactionInfo=a,t.FactionInfos={Illuminati:new a("Humanity never changes. No matter how civilized society becomes, it will eventually fall back into chaos. And from this chaos, we are the invisible hand that guides them to order. ",[],!0,!0,!0,!1),Daedalus:new a("Yesterday we obeyed kings and bent our necks to emperors. Today we kneel only to truth.",[],!0,!0,!0,!1),"The Covenant":new a("Surrender yourself. Give up your empty individuality to become part of something great, something eternal. Become a slave. Submit your mind, body, and soul. Only then can you set yourself free.
Only then can you discover immortality.",[],!0,!0,!0,!1),ECorp:new a("ECorp's mission is simple: to connect the world of today with the technology of tomorrow. With our wide range of Internet-related software and commercial hardware, ECorp makes the world's information universally accessible.",[],!0,!0,!0,!0),MegaCorp:new a("MegaCorp does what no other dares to do. We imagine. We create. We invent. We create what others have never even dreamed of. Our work fills the world's needs for food, water, power, and transporation on an unprecendented scale, in ways that no other company can.
In our labs and factories and on the ground with customers, MegaCorp is ushering in a new era for the world.",[],!0,!0,!0,!0),"Bachman & Associates":new a("Where Law and Business meet - thats where we are.
Legal Insight - Business Instinct - Innovative Experience.",[],!0,!0,!0,!0),"Blade Industries":new a("Augmentation is Salvation.",[],!0,!0,!0,!0),NWO:new a("Humans don't truly desire freedom. They want to be observed, understood, and judged. They want to be given purpose and direction in life. That is why they created God. And that is why they created civilization - not because of willingness, but because of a need to be incorporated into higher orders of structure and meaning.",[],!0,!0,!0,!0),"Clarke Incorporated":new a("The Power of the Genome - Unlocked.",[],!0,!0,!0,!0),"OmniTek Incorporated":new a("Simply put, our mission is to design and build robots that make a difference.",[],!0,!0,!0,!0),"Four Sigma":new a("The scientific method is the best way to approach investing. Big strategies backed up with big data. Driven by deep learning and innovative ideas. And improved by iteration. That's Four Sigma.",[],!0,!0,!0,!0),"KuaiGong International":new a("Dream big. Work hard. Make history.",[],!0,!0,!0,!0),"Fulcrum Secret Technologies":new a("The human organism has an innate desire to worship. That is why they created gods. If there were no gods, it would be necessary to create them. And now we can.",[],!0,!0,!1,!0),BitRunners:new a("Our entire lives are controlled by bits. All of our actions, our thoughts, our personal information. It's all transformed into bits, stored in bits, communicated through bits. It’s impossible for any person to move, to live, to operate at any level without the use of bits. And when a person moves, lives, and operates, they leave behind their bits, mere traces of seemingly meaningless fragments of information. But these bits can be reconstructed. Transformed. Used.
Those who run the bits, run the world.",[],!0,!0,!1,!1),"The Black Hand":new a("The world, so afraid of strong government, now has no government. Only power - Digital power. Financial power. Technological power. And those at the top rule with an invisible hand. They built a society where the rich get richer, and everyone else suffers.
So much pain. So many lives. Their darkness must end.",[],!0,!0,!0,!1),NiteSec:new a(" __..__
_.nITESECNIt.
.-'NITESECNITESEc.
.' NITESECNITESECn
/ NITESECNITESEC;
: :NITESECNITESEC;
; $ NITESECNITESECN
: _, ,N'ITESECNITESEC
: .+^^`, : `NITESECNIT
) /), `-,-=,NITESECNI
/ ^ ,-;|NITESECN;
/ _.' '-';NITESECN
( , ,-''`^NITE'
)` :`. .'
)-- ; `- /
' _.-' :
( _.-' .
------.
.
_.nIt
_.nITESECNi
nITESECNIT^'
NITE^' ___
/ .gP''''Tp.
: d' . `b
; d' o `b ;
/ d; `b|
/, $; @ `:
/' $$ ;
.' $$b o |
.' d$$$; :
/ .d$$$$; , ;
d .dNITESEC $ |
:bp.__.gNITESEC$$ :$ ;
NITESECNITESECNIT $$b :
",[],!0,!0,!1,!1),Aevum:new a("The Silicon City.",["Chongqing","New Tokyo","Ishima","Volhaven"],!0,!0,!0,!0),Chongqing:new a("Serve the People.",["Sector-12","Aevum","Volhaven"],!0,!0,!0,!0),Ishima:new a("The East Asian Order of the Future.",["Sector-12","Aevum","Volhaven"],!0,!0,!0,!0),"New Tokyo":new a("Asia's World City.",["Sector-12","Aevum","Volhaven"],!0,!0,!0,!0),"Sector-12":new a("The City of the Future.",["Chongqing","New Tokyo","Ishima","Volhaven"],!0,!0,!0,!0),Volhaven:new a("Benefit, Honor, and Glory.",["Chongqing","Sector-12","New Tokyo","Aevum","Ishima"],!0,!0,!0,!0),"Speakers for the Dead":new a("It is better to reign in Hell than to serve in Heaven.",[],!0,!0,!0,!0),"The Dark Army":new a("The World doesn't care about right or wrong. It only cares about power.",[],!0,!0,!0,!1),"The Syndicate":new a("Honor holds you back.",[],!0,!0,!0,!0),Silhouette:new a("Corporations have filled the void of power left behind by the collapse of Western government. The issue is they've become so big that you don't know who they're working for. And if you're employed at one of these corporations, you don't even know who you're working for.
That's terror. Terror, fear, and corruption. All born into the system, all propagated by the system.",[],!0,!0,!0,!1),Tetrads:new a("Following the mandate of Heaven and carrying out the way.",[],!1,!1,!0,!0),"Slum Snakes":new a("Slum Snakes rule!",[],!1,!1,!0,!0),Netburners:new a("~~//*>H4CK||3T 8URN3R5**>?>\\~~",[],!0,!0,!1,!1),"Tian Di Hui":new a("Obey Heaven and work righteously.",[],!0,!0,!1,!0),CyberSec:new a("The Internet is the first thing that was built that we don't fully understand, the largest experiment in anarchy that we have ever had. And as the world becomes increasingly dominated by it, society approaches the brink of total chaos. We serve only to protect society, to protect humanity, to protect the world from imminent collapse.",[],!0,!0,!1,!1),Bladeburners:new a("It's too bad they won't live. But then again, who does?
Note that for this faction, reputation can only be gained through Bladeburner actions. Completing Bladeburner contracts/operations will increase your reputation.",[],!1,!1,!1,!1)}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileDiagnosticPopup=t.ServerAccordion=void 0;const r=a(n(0)),i=n(23),o=n(167),s=n(3);function l(e){const t=i.AllServers[e.ip];let n=0;for(const e of t.scripts)n+=e.code.length;for(const e of t.textFiles)n+=e.text.length;if(0===n)return r.default.createElement(r.default.Fragment,null);const a=[];for(const e of t.scripts)a.push({name:e.filename,size:e.code.length});for(const e of t.textFiles)a.push({name:e.fn,size:e.text.length});return a.sort((e,t)=>t.size-e.size),r.default.createElement(o.Accordion,{headerContent:r.default.createElement(r.default.Fragment,null,t.hostname," (",s.numeralWrapper.formatBigNumber(n),"b)"),panelContent:r.default.createElement("ul",null,a.map(e=>r.default.createElement("li",{key:e.name},e.name,": ",s.numeralWrapper.formatBigNumber(e.size),"b")))})}t.ServerAccordion=l,t.FileDiagnosticPopup=function(e){const t=[];for(const e of Object.keys(i.AllServers))t.push(e);return r.default.createElement(r.default.Fragment,null,r.default.createElement("p",null,"Welcome to the file diagnostic! If your save file is really big it's likely because you have too many text/scripts. This tool can help you narrow down where they are."),t.map(e=>r.default.createElement(l,{key:e,ip:e})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializeMainMenuHeaders=t.MainMenuHeaders=void 0;const a=n(34);function r(e,t,n){for(let n=0;n
").map((e,t)=>o.createElement("div",{key:t},o.createElement("span",{style:{whiteSpace:"pre-wrap",overflowWrap:"break-word"}},e),o.createElement("br",null)))))}return o.createElement(o.Fragment,null)},null))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.displayMilestonesContent=void 0;const o=n(19),s=n(955),l=n(1),c=i(n(0)),u=i(n(22));let m=null;!function(){document.addEventListener("DOMContentLoaded",function e(){m=document.getElementById("milestones-container"),document.removeEventListener("DOMContentLoaded",e)})}(),t.displayMilestonesContent=function(){o.routing.isOn(o.Page.Milestones)&&m instanceof HTMLElement&&u.render(c.createElement(s.Root,{player:l.Player}),m)}},,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(r,i){function o(e){try{l(a.next(e))}catch(e){i(e)}}function s(e){try{l(a.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(o,s)}l((a=a.apply(e,t||[])).next())})},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Root=void 0;const l=i(n(0)),c=n(63),u=s(n(960)),m=n(79),p=n(959),d=n(958),h=n(94),_=n(12),g=n(202),f=n(74),y=n(237),b=n(145),E=n(509),v=n(159),C=n(3),k=n(701),P=n(956),S=n(464),O=n(26),M=n(50);let T=[];!function(){const e=S.NetscriptFunctions({});T=function e(t){let n=[];const a=Object.keys(t);for(const r of a)"object"==typeof t[r]&&(n.push(r),n=n.concat(e(t[r]))),"function"==typeof t[r]&&n.push(r);return n}(e)}();let x="",w="",A=null;t.Root=function(e){const t=l.useRef(null),[n,a]=l.useState(e.filename?e.filename:x),[r,i]=l.useState(e.code?e.code:w),[s,S]=l.useState("RAM: ???"),[R,N]=l.useState({theme:O.Settings.MonacoTheme,insertSpaces:O.Settings.MonacoInsertSpaces});function D(){if(null!==t.current){const e=t.current.getPosition();null!==e&&k.CursorPositions.saveCursor(n,{row:e.lineNumber,column:e.column})}if(A=null,M.ITutorial.isRunning&&M.ITutorial.currStep===M.iTutorialSteps.TerminalTypeScript){if("n00dles.script"!==n)return void _.dialogBoxCreate("Leave the script name as 'n00dles'!");if(-1==r.replace(/\s/g,"").indexOf("while(true){hack('n00dles');}"))return void _.dialogBoxCreate("Please copy and paste the code from the tutorial!");const t=e.player.getCurrentServer();if(null===t)throw new Error("Server should not be null but it is.");for(let a=0;a
The new program can be found on your home computer."),this.getHomeComputer().programs.push(t);else{var n=t+"-"+(Math.floor(this.timeWorkedCreateProgram/this.timeNeededToCompleteWork*1e4)/100).toString()+"%-INC";this.getHomeComputer().programs.push(n)}e||this.gainIntelligenceExp(this.createProgramReqLvl/_.CONSTANTS.IntelligenceProgramBaseExpGain),document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,b.Engine.loadTerminalContent(),this.resetWorkStatus()}function Ze(e,t,n){this.resetWorkStatus(),this.isWorking=!0,this.focus=!0,this.workType=_.CONSTANTS.WorkTypeStudyClass,this.className=n;const a=1e3/b.Engine._idleSpeed;var r=0,i=0,o=0,l=0,c=0,u=0,m=0;const p=this.hashManager;switch(n){case _.CONSTANTS.ClassStudyComputerScience:i=_.CONSTANTS.ClassStudyComputerScienceBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassDataStructures:r=_.CONSTANTS.ClassDataStructuresBaseCost*e/a,i=_.CONSTANTS.ClassDataStructuresBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassNetworks:r=_.CONSTANTS.ClassNetworksBaseCost*e/a,i=_.CONSTANTS.ClassNetworksBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassAlgorithms:r=_.CONSTANTS.ClassAlgorithmsBaseCost*e/a,i=_.CONSTANTS.ClassAlgorithmsBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassManagement:r=_.CONSTANTS.ClassManagementBaseCost*e/a,m=_.CONSTANTS.ClassManagementBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassLeadership:r=_.CONSTANTS.ClassLeadershipBaseCost*e/a,m=_.CONSTANTS.ClassLeadershipBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassGymStrength:r=_.CONSTANTS.ClassGymBaseCost*e/a,o=t/a*p.getTrainingMult();break;case _.CONSTANTS.ClassGymDefense:r=_.CONSTANTS.ClassGymBaseCost*e/a,l=t/a*p.getTrainingMult();break;case _.CONSTANTS.ClassGymDexterity:r=_.CONSTANTS.ClassGymBaseCost*e/a,c=t/a*p.getTrainingMult();break;case _.CONSTANTS.ClassGymAgility:r=_.CONSTANTS.ClassGymBaseCost*e/a,u=t/a*p.getTrainingMult();break;default:throw new Error("ERR: Invalid/unrecognized class name")}this.workMoneyLossRate=r,this.workHackExpGainRate=i*this.hacking_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workStrExpGainRate=o*this.strength_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workDefExpGainRate=l*this.defense_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workDexExpGainRate=c*this.dexterity_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workAgiExpGainRate=u*this.agility_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workChaExpGainRate=m*this.charisma_exp_mult*s.BitNodeMultipliers.ClassGymExpGain;var d=Object(Y.clearEventListeners)("work-in-progress-cancel-button");n==_.CONSTANTS.ClassGymStrength||n==_.CONSTANTS.ClassGymDefense||n==_.CONSTANTS.ClassGymDexterity||n==_.CONSTANTS.ClassGymAgility?d.innerHTML="Stop training at gym":d.innerHTML="Stop taking course",d.addEventListener("click",()=>(this.finishClass(),!1)),Object(Y.clearEventListeners)("work-in-progress-something-else-button").style.visibility="hidden",b.Engine.loadWorkInProgressContent()}function et(e){this.timeWorked+=b.Engine._idleSpeed*e;var t=this.className;this.processWorkEarnings(e);const n=document.getElementById("work-in-progress-text");ne.a.render(ee.a.createElement(ee.a.Fragment,null,"You have been ",t," for ",Object(z.convertTimeMsToTimeElapsedString)(this.timeWorked),ee.a.createElement("br",null),ee.a.createElement("br",null),"This has cost you: ",ee.a.createElement("br",null),Object(J.Money)(-this.workMoneyGained)," (",Object(X.MoneyRate)(this.workMoneyLossRate*ae),") ",ee.a.createElement("br",null),ee.a.createElement("br",null),"You have gained: ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workHackExpGained)," (",K.numeralWrapper.formatExp(this.workHackExpGainRate*ae)," / sec) hacking exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workStrExpGained)," (",K.numeralWrapper.formatExp(this.workStrExpGainRate*ae)," / sec) strength exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDefExpGained)," (",K.numeralWrapper.formatExp(this.workDefExpGainRate*ae)," / sec) defense exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDexExpGained)," (",K.numeralWrapper.formatExp(this.workDexExpGainRate*ae)," / sec) dexterity exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workAgiExpGained)," (",K.numeralWrapper.formatExp(this.workAgiExpGainRate*ae)," / sec) agility exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workChaExpGained)," (",K.numeralWrapper.formatExp(this.workChaExpGainRate*ae)," / sec) charisma exp ",ee.a.createElement("br",null),"You may cancel at any time"),n)}function tt(e=!1){if(this.gainIntelligenceExp(_.CONSTANTS.IntelligenceClassBaseExpGain*Math.round(this.timeWorked/1e3)),this.workMoneyGained>0)throw new Error("ERR: Somehow gained money while taking class");if(this.updateSkillLevels(),e||Object($.dialogBoxCreate)(ee.a.createElement(ee.a.Fragment,null,"After ",this.className," for ",Object(z.convertTimeMsToTimeElapsedString)(this.timeWorked),", ",ee.a.createElement("br",null),"you spent a total of ",Object(J.Money)(-1*this.workMoneyGained),". ",ee.a.createElement("br",null),ee.a.createElement("br",null),"You earned a total of: ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workHackExpGained)," hacking exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workStrExpGained)," strength exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDefExpGained)," defense exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDexExpGained)," dexterity exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workAgiExpGained)," agility exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workChaExpGained)," charisma exp",ee.a.createElement("br",null))),document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,b.Engine.loadLocationContent(!1),e){var t="After "+this.className+" for "+Object(z.convertTimeMsToTimeElapsedString)(this.timeWorked)+", you spent a total of "+K.numeralWrapper.formatMoney(-1*this.workMoneyGained)+". You earned a total of: "+K.numeralWrapper.formatExp(this.workHackExpGained)+" hacking exp, "+K.numeralWrapper.formatExp(this.workStrExpGained)+" strength exp, "+K.numeralWrapper.formatExp(this.workDefExpGained)+" defense exp, "+K.numeralWrapper.formatExp(this.workDexExpGained)+" dexterity exp, "+K.numeralWrapper.formatExp(this.workAgiExpGained)+" agility exp, and "+K.numeralWrapper.formatExp(this.workChaExpGained)+" charisma exp";return this.resetWorkStatus(),t}this.resetWorkStatus()}function nt(e,t,n,a,r,i,o,l,c,u=null){this.crimeType=e,this.resetWorkStatus(),this.isWorking=!0,this.focus=!0,this.workType=_.CONSTANTS.WorkTypeCrime,u&&u.workerscript&&(this.committingCrimeThruSingFn=!0,this.singFnCrimeWorkerScript=u.workerscript),this.workHackExpGained=t*this.hacking_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workStrExpGained=n*this.strength_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workDefExpGained=a*this.defense_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workDexExpGained=r*this.dexterity_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workAgiExpGained=i*this.agility_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workChaExpGained=o*this.charisma_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workMoneyGained=l*this.crime_money_mult*s.BitNodeMultipliers.CrimeMoney,this.timeNeededToCompleteWork=c;const m=Object(Y.clearEventListeners)("work-in-progress-cancel-button");m.innerHTML="Cancel crime",m.addEventListener("click",()=>(this.finishCrime(!0),!1)),Object(Y.clearEventListeners)("work-in-progress-something-else-button").style.visibility="hidden",b.Engine.loadWorkInProgressContent()}function at(e){if(this.timeWorked+=b.Engine._idleSpeed*e,this.timeWorked>=this.timeNeededToCompleteWork)this.finishCrime(!1);else{var t=Math.round(this.timeWorked/this.timeNeededToCompleteWork*100),n=Math.round(t/5);n<0&&(n=0),n>20&&(n=20);var a="["+Array(n+1).join("|")+Array(20-n+1).join(" ")+"]";document.getElementById("work-in-progress-text").innerHTML="You are attempting to "+this.crimeType+".
Time remaining: "+Object(z.convertTimeMsToTimeElapsedString)(this.timeNeededToCompleteWork-this.timeWorked)+"
"+a.replace(/ /g," ")}}function rt(e){if(!e){if(Object(f.determineCrimeSuccess)(this,this.crimeType)){let e=null;for(const t in y.Crimes)if(y.Crimes[t].type==this.crimeType){e=y.Crimes[t];break}null==e&&Object($.dialogBoxCreate)(`ERR: Unrecognized crime type (${this.crimeType}). This is probably a bug please contact the developer`),this.gainMoney(this.workMoneyGained),this.recordMoneySource(this.workMoneyGained,"crime"),this.karma-=e.karma,this.numPeopleKilled+=e.kills,e.intelligence_exp>0&&this.gainIntelligenceExp(e.intelligence_exp),this.workHackExpGained*=2,this.workStrExpGained*=2,this.workDefExpGained*=2,this.workDexExpGained*=2,this.workAgiExpGained*=2,this.workChaExpGained*=2,this.committingCrimeThruSingFn?null==this.singFnCrimeWorkerScript.disableLogs.ALL&&null==this.singFnCrimeWorkerScript.disableLogs.commitCrime&&this.singFnCrimeWorkerScript.scriptRef.log("Crime successful! Gained "+K.numeralWrapper.formatMoney(this.workMoneyGained)+", "+K.numeralWrapper.formatExp(this.workHackExpGained)+" hack exp, "+K.numeralWrapper.formatExp(this.workStrExpGained)+" str exp, "+K.numeralWrapper.formatExp(this.workDefExpGained)+" def exp, "+K.numeralWrapper.formatExp(this.workDexExpGained)+" dex exp, "+K.numeralWrapper.formatExp(this.workAgiExpGained)+" agi exp, "+K.numeralWrapper.formatExp(this.workChaExpGained)+" cha exp."):Object($.dialogBoxCreate)(ee.a.createElement(ee.a.Fragment,null,"Crime successful!",ee.a.createElement("br",null),ee.a.createElement("br",null),"You gained:",ee.a.createElement("br",null),Object(J.Money)(this.workMoneyGained),ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workHackExpGained)," hacking experience ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workStrExpGained)," strength experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDefExpGained)," defense experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDexExpGained)," dexterity experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workAgiExpGained)," agility experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workChaExpGained)," charisma experience"))}else this.workHackExpGained/=2,this.workStrExpGained/=2,this.workDefExpGained/=2,this.workDexExpGained/=2,this.workAgiExpGained/=2,this.workChaExpGained/=2,this.committingCrimeThruSingFn?null==this.singFnCrimeWorkerScript.disableLogs.ALL&&null==this.singFnCrimeWorkerScript.disableLogs.commitCrime&&this.singFnCrimeWorkerScript.scriptRef.log("Crime failed! Gained "+K.numeralWrapper.formatExp(this.workHackExpGained)+" hack exp, "+K.numeralWrapper.formatExp(this.workStrExpGained)+" str exp, "+K.numeralWrapper.formatExp(this.workDefExpGained)+" def exp, "+K.numeralWrapper.formatExp(this.workDexExpGained)+" dex exp, "+K.numeralWrapper.formatExp(this.workAgiExpGained)+" agi exp, "+K.numeralWrapper.formatExp(this.workChaExpGained)+" cha exp."):Object($.dialogBoxCreate)(ee.a.createElement(ee.a.Fragment,null,"Crime failed!",ee.a.createElement("br",null),ee.a.createElement("br",null),"You gained:",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workHackExpGained)," hacking experience ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workStrExpGained)," strength experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDefExpGained)," defense experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDexExpGained)," dexterity experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workAgiExpGained)," agility experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workChaExpGained)," charisma experience"));this.gainHackingExp(this.workHackExpGained),this.gainStrengthExp(this.workStrExpGained),this.gainDefenseExp(this.workDefExpGained),this.gainDexterityExp(this.workDexExpGained),this.gainAgilityExp(this.workAgiExpGained),this.gainCharismaExp(this.workChaExpGained)}this.committingCrimeThruSingFn=!1,this.singFnCrimeWorkerScript=null,document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,this.resetWorkStatus(),b.Engine.loadLocationContent(!1)}function it(){if(!this.isWorking)return"";var e;switch(this.workType){case _.CONSTANTS.WorkTypeStudyClass:e=this.finishClass(!0);break;case _.CONSTANTS.WorkTypeCompany:e=this.finishWork(!0,!0);break;case _.CONSTANTS.WorkTypeCompanyPartTime:e=this.finishWorkPartTime(!0);break;case _.CONSTANTS.WorkTypeFaction:e=this.finishFactionWork(!0,!0);break;case _.CONSTANTS.WorkTypeCreateProgram:e=this.finishCreateProgramWork(!0);break;case _.CONSTANTS.WorkTypeCrime:e=this.finishCrime(!0);break;default:return console.error(`Unrecognized work type (${this.workType})`),""}return e}function ot(e){if("number"==typeof e)return this.hp-=e,this.hp<=0&&(this.hospitalize(),!0);console.warn(`Player.takeDamage() called without a numeric argument: ${e}`)}function st(e){"number"==typeof e?(this.hp+=e,this.hp>this.max_hp&&(this.hp=this.max_hp)):console.warn(`Player.regenerateHp() called without a numeric argument: ${e}`)}function lt(){const e=Object(H.getHospitalizationCost)(this);return!1===B.Settings.SuppressHospitalizationPopup&&Object($.dialogBoxCreate)(ee.a.createElement(ee.a.Fragment,null,"You were in critical condition! You were taken to the hospital where luckily they were able to save your life. You were charged ",Object(J.Money)(e))),this.loseMoney(e),this.recordMoneySource(-1*e,"hospitalization"),this.hp=this.max_hp,e}function ct(e,t=!1){let n=null;""!==this.companyName&&(n=u.Companies[this.companyName]);const a=this.jobs[this.companyName],r=u.Companies[this.location];if(!(r instanceof c.Company))return t?"ERROR: Invalid company name: "+this.location+". applyToCompany() failed":void console.error(`Could not find company that matches the location: ${this.location}. Player.applyToCompany() failed`);let i=e;if(!this.isQualified(r,i)){var o=Object(p.getJobRequirementText)(r,i);return!t&&void Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position
"+o)}for(;;){let e=Object(m.getNextCompanyPositionHelper)(i);if(null==e)break;if(!r.hasPosition(e))break;if(!this.isQualified(r,e))break;i=e}if(null==n||n.name!=r.name||i.name!=a){if(this.jobs[r.name]=i.name,this.companyName=this.location,document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),t)return!0;Object($.dialogBoxCreate)("Congratulations! You were offered a new job at "+this.companyName+" as a "+i.name+"!")}else{var s=Object(m.getNextCompanyPositionHelper)(i);if(null==s){if(t)return!1;Object($.dialogBoxCreate)("You are already at the highest position for your field! No promotion available")}else if(r.hasPosition(s)){if(t)return!1;o=Object(p.getJobRequirementText)(r,s);Object($.dialogBoxCreate)("Unfortunately, you do not qualify for a promotion
"+o)}else{if(t)return!1;Object($.dialogBoxCreate)("You are already at the highest position for your field! No promotion available")}}}function ut(e,t){var n=null;if(""!==this.companyName&&(n=u.Companies[this.companyName]),null==n||n.name!=e.name)return t;const a=this.jobs[this.companyName],r=d.CompanyPositions[a];return r.isSoftwareJob()&&t.isSoftwareJob()||r.isITJob()&&t.isITJob()||r.isBusinessJob()&&t.isBusinessJob()||r.isSecurityEngineerJob()&&t.isSecurityEngineerJob()||r.isNetworkEngineerJob()&&t.isNetworkEngineerJob()||r.isSecurityJob()&&t.isSecurityJob()||r.isAgentJob()&&t.isAgentJob()||r.isSoftwareConsultantJob()&&t.isSoftwareConsultantJob()||r.isBusinessConsultantJob()&&t.isBusinessConsultantJob()||r.isPartTimeJob()&&t.isPartTimeJob()?Object(m.getNextCompanyPositionHelper)(r):t}function mt(e){this.isWorking=!1,this.companyName="",delete this.jobs[e]}function pt(e=!1){return this.applyForJob(d.CompanyPositions[h.SoftwareCompanyPositions[0]],e)}function dt(e=!1){return this.applyForJob(d.CompanyPositions[h.SoftwareConsultantCompanyPositions[0]],e)}function ht(e=!1){return this.applyForJob(d.CompanyPositions[h.ITCompanyPositions[0]],e)}function _t(e=!1){var t=u.Companies[this.location];return this.isQualified(t,d.CompanyPositions[h.SecurityEngineerCompanyPositions[0]])?this.applyForJob(d.CompanyPositions[h.SecurityEngineerCompanyPositions[0]],e):!e&&void Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}function gt(e=!1){var t=u.Companies[this.location];return this.isQualified(t,d.CompanyPositions[h.NetworkEngineerCompanyPositions[0]])?this.applyForJob(d.CompanyPositions[h.NetworkEngineerCompanyPositions[0]],e):!e&&void Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}function ft(e=!1){return this.applyForJob(d.CompanyPositions[h.BusinessCompanyPositions[0]],e)}function yt(e=!1){return this.applyForJob(d.CompanyPositions[h.BusinessConsultantCompanyPositions[0]],e)}function bt(e=!1){return this.applyForJob(d.CompanyPositions[h.SecurityCompanyPositions[2]],e)}function Et(e=!1){var t=u.Companies[this.location];return this.isQualified(t,d.CompanyPositions[h.AgentCompanyPositions[0]])?this.applyForJob(d.CompanyPositions[h.AgentCompanyPositions[0]],e):!e&&void Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}function vt(e=!1){var t=u.Companies[this.location];if(this.isQualified(t,d.CompanyPositions[h.MiscCompanyPositions[1]])){if(this.companyName=t.name,this.jobs[t.name]=h.MiscCompanyPositions[1],document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),e)return!0;Object($.dialogBoxCreate)("Congratulations, you are now employed at "+this.companyName)}else{if(e)return!1;Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}}function Ct(e=!1){var t=u.Companies[this.location];if(this.isQualified(t,d.CompanyPositions[h.PartTimeCompanyPositions[1]])){if(this.jobs[t.name]=h.PartTimeCompanyPositions[1],document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),e)return!0;Object($.dialogBoxCreate)("Congratulations, you are now employed part-time at "+this.companyName)}else{if(e)return!1;Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}}function kt(e=!1){var t=u.Companies[this.location];if(this.isQualified(t,d.CompanyPositions[h.MiscCompanyPositions[0]])){if(this.companyName=t.name,this.jobs[t.name]=h.MiscCompanyPositions[0],document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),e)return!0;Object($.dialogBoxCreate)("Congratulations, you are now employed as a waiter at "+this.companyName)}else{if(e)return!1;Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}}function Pt(e=!1){var t=u.Companies[this.location];if(this.isQualified(t,d.CompanyPositions[h.PartTimeCompanyPositions[0]])){if(this.companyName=t.name,this.jobs[t.name]=h.PartTimeCompanyPositions[0],document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),e)return!0;Object($.dialogBoxCreate)("Congratulations, you are now employed as a part-time waiter at "+this.companyName)}else{if(e)return!1;Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}}function St(e,t){var n=e.jobStatReqOffset,a=t.requiredHacking>0?t.requiredHacking+n:0,r=t.requiredStrength>0?t.requiredStrength+n:0,i=t.requiredDefense>0?t.requiredDefense+n:0,o=t.requiredDexterity>0?t.requiredDexterity+n:0,s=t.requiredDexterity>0?t.requiredDexterity+n:0,l=t.requiredCharisma>0?t.requiredCharisma+n:0;return this.hacking_skill>=a&&this.strength>=r&&this.defense>=i&&this.dexterity>=o&&this.agility>=s&&this.charisma>=l&&e.playerReputation>=t.requiredReputation}function Ot(e=!0){e&&this.resetMultipliers();for(let e=0;e
":"This is a COMBAT gang. Members in this gang will have different tasks than HACKING gangs. Compared to hacking gangs, progression with combat gangs can be more difficult as territory management is more important. However, well-managed combat gangs can progress faster than hacking ones.
",_.yesNoBoxCreate(`Would you like to create a new Gang with ${e}?
`+"Note that this will prevent you from creating a Gang with any other Faction until this BitNode is destroyed. It also resets your reputation with this faction.
"+r+"Other than hacking vs combat, there are NO differences between the Factions you can create a Gang with, and each of these Factions have all Augmentations available.")}rerender(){this.setState(e=>({rerenderFlag:!e.rerenderFlag}))}routeToMain(){this.setState({purchasingAugs:!1})}routeToPurchaseAugs(){this.setState({purchasingAugs:!0})}sleevePurchases(){d.createSleevePurchasesFromCovenantPopup(this.props.p)}startFieldWork(){this.props.p.startFactionFieldWork(this.props.faction)}startHackingContracts(){this.props.p.startFactionHackWork(this.props.faction)}startHackingMission(){const e=this.props.faction;this.props.p.singularityStopWork(),this.props.engine.loadMissionContent(),this.props.startHackingMissionFn(e)}startSecurityWork(){this.props.p.startFactionSecurityWork(this.props.faction)}render(){return this.state.purchasingAugs?this.renderAugmentationsPage():this.renderMainPage()}renderMainPage(){const e=this.props.p,t=this.props.faction,n=t.getInfo(),a=e.inGang()&&e.getGangName()===t.name,r=Math.floor(m.CONSTANTS.BaseFavorToDonate*p.BitNodeMultipliers.RepToDonateToFaction),i=t.favor>=r,s="The Covenant"===t.name&&e.bitNodeN>=10&&h.SourceFileFlags[10];let d=e.canAccessGang()&&k.includes(t.name);return e.inGang()&&(e.getGangName()!==t.name?d=!1:e.getGangName()===t.name&&(d=!0)),o.createElement("div",null,o.createElement("h1",null,t.name),o.createElement(c.Info,{faction:t,factionInfo:n}),d&&o.createElement(u.Option,{buttonText:"Manage Gang",infoText:g,onClick:this.manageGang}),!a&&n.offerHackingMission&&o.createElement(u.Option,{buttonText:"Hacking Mission",infoText:f,onClick:this.startHackingMission}),!a&&n.offerHackingWork&&o.createElement(u.Option,{buttonText:"Hacking Contracts",infoText:y,onClick:this.startHackingContracts}),!a&&n.offerFieldWork&&o.createElement(u.Option,{buttonText:"Field Work",infoText:b,onClick:this.startFieldWork}),!a&&n.offerSecurityWork&&o.createElement(u.Option,{buttonText:"Security Work",infoText:E,onClick:this.startSecurityWork}),!a&&n.offersWork()&&o.createElement(l.DonateOption,{faction:this.props.faction,p:this.props.p,rerender:this.rerender,favorToDonate:r,disabled:!i}),o.createElement(u.Option,{buttonText:"Purchase Augmentations",infoText:v,onClick:this.routeToPurchaseAugs}),s&&o.createElement(u.Option,{buttonText:"Purchase & Upgrade Duplicate Sleeves",infoText:C,onClick:this.sleevePurchases}))}renderAugmentationsPage(){return o.createElement("div",null,o.createElement(s.AugmentationsPage,{faction:this.props.faction,p:this.props.p,routeToMainPage:this.routeToMain}))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"canAccessBladeburner",function(){return i}),n.d(t,"inBladeburner",function(){return o}),n.d(t,"startBladeburner",function(){return s});var a=n(100),r=n(43);function i(){return 8!==this.bitNodeN&&(6===this.bitNodeN||7===this.bitNodeN||r.SourceFileFlags[6]>0||r.SourceFileFlags[7]>0)}function o(){return null!=this.bladeburner&&this.bladeburner instanceof a.Bladeburner}function s(){this.bladeburner=new a.Bladeburner(this)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasAugmentation=void 0;const a=n(18);t.hasAugmentation=function(e){const t=e instanceof a.Augmentation?e.name:e;for(const e of this.augmentations)if(e.name===t)return!0;for(const e of this.queuedAugmentations)if(e.name===t)return!0;return!1}},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var a=n(856),r=n(855),i=n(833),o=n(832),s=n(831),l=n(828),c=n(185),u=n(38),m=n(187),p=n(27),d=n(55);function h(){this.hacking_skill=1,this.hp=10,this.max_hp=10,this.strength=1,this.defense=1,this.dexterity=1,this.agility=1,this.charisma=1,this.intelligence=0,this.hacking_chance_mult=1,this.hacking_speed_mult=1,this.hacking_money_mult=1,this.hacking_grow_mult=1,this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.intelligence_exp=0,this.hacking_mult=1,this.strength_mult=1,this.defense_mult=1,this.dexterity_mult=1,this.agility_mult=1,this.charisma_mult=1,this.hacking_exp_mult=1,this.strength_exp_mult=1,this.defense_exp_mult=1,this.dexterity_exp_mult=1,this.agility_exp_mult=1,this.charisma_exp_mult=1,this.company_rep_mult=1,this.faction_rep_mult=1,this.money=new d.a(1e3),this.homeComputer="",this.city=u.CityName.Sector12,this.location="",this.jobs={},this.companyName="",this.currentServer="",this.purchasedServers=[],this.hacknetNodes=[],this.hashManager=new c.HashManager,this.factions=[],this.factionInvitations=[],this.queuedAugmentations=[],this.augmentations=[],this.sourceFiles=[],this.numPeopleKilled=0,this.karma=0,this.crime_money_mult=1,this.crime_success_mult=1,this.isWorking=!1,this.focus=!1,this.workType="",this.currentWorkFactionName="",this.currentWorkFactionDescription="",this.workHackExpGainRate=0,this.workStrExpGainRate=0,this.workDefExpGainRate=0,this.workDexExpGainRate=0,this.workAgiExpGainRate=0,this.workChaExpGainRate=0,this.workRepGainRate=0,this.workMoneyGainRate=0,this.workMoneyLossRate=0,this.workHackExpGained=0,this.workStrExpGained=0,this.workDefExpGained=0,this.workDexExpGained=0,this.workAgiExpGained=0,this.workChaExpGained=0,this.workRepGained=0,this.workMoneyGained=0,this.createProgramName="",this.createProgramReqLvl=0,this.className="",this.crimeType="",this.timeWorked=0,this.timeWorkedCreateProgram=0,this.timeNeededToCompleteWork=0,this.work_money_mult=1,this.hacknet_node_money_mult=1,this.hacknet_node_purchase_cost_mult=1,this.hacknet_node_ram_cost_mult=1,this.hacknet_node_core_cost_mult=1,this.hacknet_node_level_cost_mult=1,this.hasWseAccount=!1,this.hasTixApiAccess=!1,this.has4SData=!1,this.has4SDataTixApi=!1,this.gang=0,this.corporation=0,this.bladeburner=0,this.bladeburner_max_stamina_mult=1,this.bladeburner_stamina_gain_mult=1,this.bladeburner_analysis_mult=1,this.bladeburner_success_chance_mult=1,this.sleeves=[],this.resleeves=[],this.sleevesFromCovenant=0,this.bitNodeN=1,this.firstFacInvRecvd=!1,this.firstAugPurchased=!1,this.firstTimeTraveled=!1,this.firstProgramAvailable=!1,this.lastUpdate=0,this.totalPlaytime=0,this.playtimeSinceLastAug=0,this.playtimeSinceLastBitnode=0,this.moneySourceA=new m.MoneySourceTracker,this.moneySourceB=new m.MoneySourceTracker,this.scriptProdSinceLastAug=0,this.exploits=[]}Object.assign(h.prototype,s,l,r,i,o,a),h.prototype.toJSON=function(){return Object(p.Generic_toJSON)("PlayerObject",this)},h.fromJSON=function(e){return Object(p.Generic_fromJSON)(h,e.data)},p.Reviver.constructors.PlayerObject=h},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var a=n(0),r=n.n(a),i=n(72),o=n(3),s=n(12);class l extends i.a{render(){const e=this.props.upgradeData,t=`${e[2]} - ${o.numeralWrapper.formatMoney(e[1])}`,n=e[3];return r.a.createElement("div",{className:"cmpy-mgmt-upgrade-div tooltip",style:{width:"45%"},onClick:()=>{const t=this.corp();t.funds.lt(e[1])?Object(s.dialogBoxCreate)("Insufficient funds"):(t.unlock(e),t.rerender())}},t,r.a.createElement("span",{className:"tooltiptext"},n))}}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var a=n(0),r=n.n(a),i=n(72),o=n(3),s=n(12);class l extends i.a{render(){const e=this.props.upgradeData,t=this.props.upgradeLevel,n=e[1],a=e[2],i=n*Math.pow(a,t),l=`${e[4]} - ${o.numeralWrapper.formatMoney(i)}`,c=e[5];return r.a.createElement("div",{className:"cmpy-mgmt-upgrade-div tooltip",style:{width:"45%"},onClick:()=>{const t=this.corp();t.funds.lt(i)?Object(s.dialogBoxCreate)("Insufficient funds"):(t.upgrade(e),t.rerender())}},l,r.a.createElement("span",{className:"tooltiptext"},c))}}},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var a=n(0),r=n.n(a),i=n(72),o=n(859),s=n(858),l=n(41),c=n(472),u=n(471),m=n(11),p=n(3),d=n(20);function h(){return(h=Object.assign||function(e){for(var t=1;t
`+`Dividend Percentage: ${p.numeralWrapper.format(this.corp().dividendPercentage/100,"0%")}
`+`Dividends per share: ${p.numeralWrapper.format(r,"$0.000a")} / s
`+`Your earnings as a shareholder (Pre-Tax): ${p.numeralWrapper.format(i,"$0.000a")} / s
`+`Dividend Tax Rate: ${this.corp().dividendTaxPercentage}%
`+`Your earnings as a shareholder (Post-Tax): ${p.numeralWrapper.format(i*(1-this.corp().dividendTaxPercentage/100),"$0.000a")} / s
`}let a="Total Funds: "+p.numeralWrapper.format(this.corp().funds.toNumber(),"$0.000a")+"
Total Revenue: "+p.numeralWrapper.format(this.corp().revenue.toNumber(),"$0.000a")+" / s
Total Expenses: "+p.numeralWrapper.format(this.corp().expenses.toNumber(),"$0.000a")+" / s
Total Profits: "+t+" / s
"+n+"Publicly Traded: "+(this.corp().public?"Yes":"No")+"
Owned Stock Shares: "+p.numeralWrapper.format(this.corp().numShares,"0.000a")+"
Stock Price: "+(this.corp().public?p.numeralWrapper.formatMoney(this.corp().sharePrice):"N/A")+"
`+`Private Shares: ${p.numeralWrapper.format(this.corp().totalShares-this.corp().issuedShares-this.corp().numShares,"0.000a")}`+"
";const r=this.corp().storedCycles*m.CONSTANTS.MilliPerCycle;r>15e3&&(a+=`Bonus time: ${Object(d.convertTimeMsToTimeElapsedString)(r)}
`);let i=this.corp().getProductionMultiplier(),o=this.corp().getStorageMultiplier(),s=this.corp().getAdvertisingMultiplier(),l=this.corp().getEmployeeCreMultiplier(),c=this.corp().getEmployeeChaMultiplier(),u=this.corp().getEmployeeIntMultiplier(),h=this.corp().getEmployeeEffMultiplier(),_=this.corp().getSalesMultiplier(),g=this.corp().getScientificResearchMultiplier();return i>1&&(a+="Production Multiplier: "+p.numeralWrapper.format(i,"0.000")+"
"),o>1&&(a+="Storage Multiplier: "+p.numeralWrapper.format(o,"0.000")+"
"),s>1&&(a+="Advertising Multiplier: "+p.numeralWrapper.format(s,"0.000")+"
"),l>1&&(a+="Empl. Creativity Multiplier: "+p.numeralWrapper.format(l,"0.000")+"
"),c>1&&(a+="Empl. Charisma Multiplier: "+p.numeralWrapper.format(c,"0.000")+"
"),u>1&&(a+="Empl. Intelligence Multiplier: "+p.numeralWrapper.format(u,"0.000")+"
"),h>1&&(a+="Empl. Efficiency Multiplier: "+p.numeralWrapper.format(h,"0.000")+"
"),_>1&&(a+="Sales Multiplier: "+p.numeralWrapper.format(_,"0.000")+"
"),g>1&&(a+="Scientific Research Multiplier: "+p.numeralWrapper.format(g,"0.000")+"
"),a}renderButtons(){const e=this.corp().getStarterGuide.bind(this.corp()),t=this.createButton({class:"a-link-button",display:"inline-block",onClick:e,text:"Getting Started Guide",tooltip:"Get a copy of and read 'The Complete Handbook for Creating a Successful Corporation.' This is a .lit file that guides you through the beginning of setting up a Corporation and provides some tips/pointers for helping you get started with managing it."}),n=this.corp().determineValuation()>=l.a,a=this.eventHandler().createBribeFactionsPopup.bind(this.eventHandler()),r=n?"a-link-button":"a-link-button-inactive",i={bribeFactions:this.createButton({class:r,display:"inline-block",onClick:a,text:"Bribe Factions",tooltip:n?"Use your Corporations power and influence to bribe Faction leaders in exchange for reputation":"Your Corporation is not powerful enough to bribe Faction leaders"}),getStarterGuide:t};return this.corp().public?this.renderPublicButtons(i):this.renderPrivateButtons(i)}renderPrivateButtons(e){const t=this.corp().fundingRound<4,n=t?"std-button":"a-link-button-inactive",a=t?"Search for private investors who will give you startup funding in exchangefor equity (stock shares) in your company":null,i=this.corp().getInvestment.bind(this.corp()),o=this.corp().goPublic.bind(this.corp()),s=this.createButton({class:n,onClick:i,style:"inline-block",text:"Find Investors",tooltip:a}),l=this.createButton({class:"std-button",onClick:o,style:"inline-block",text:"Go Public",tooltip:"Become a publicly traded and owned entity. Going public involves issuing shares for an IPO. Once you are a public company, your shares will be traded on the stock market."});return r.a.createElement("div",null,e.getStarterGuide,s,l,r.a.createElement("br",null),e.bribeFactions)}renderPublicButtons(e){const t=this.corp(),n=this.eventHandler().createSellSharesPopup.bind(this.eventHandler()),a=t.shareSaleCooldown>0,i=a?"a-link-button-inactive":"std-button",o=a?"Cannot sell shares for "+t.convertCooldownToString(t.shareSaleCooldown):"Sell your shares in the company. The money earned from selling your shares goes into your personal account, not the Corporation's. This is one of the only ways to profit from your business venture.",s=this.createButton({class:i,display:"inline-block",onClick:function(e){e.isTrusted&&n(e)},text:"Sell Shares",tooltip:o}),l=this.eventHandler().createBuybackSharesPopup.bind(this.eventHandler()),c=this.createButton({class:"std-button",display:"inline-block",onClick:l,text:"Buyback shares",tooltip:"Buy back shares you that previously issued or sold at market price."}),u=this.eventHandler().createIssueNewSharesPopup.bind(this.eventHandler()),m=t.issueNewSharesCooldown>0,p=m?"a-link-button-inactive":"std-button",d=m?"Cannot issue new shares for "+t.convertCooldownToString(t.issueNewSharesCooldown):"Issue new equity shares to raise capital.",h=this.createButton({class:p,display:"inline-block",onClick:u,text:"Issue New Shares",tooltip:d}),_=this.eventHandler().createIssueDividendsPopup.bind(this.eventHandler()),g=this.createButton({class:"std-button",display:"inline-block",onClick:_,text:"Issue Dividends",tooltip:"Manage the dividends that are paid out to shareholders (including yourself)"});return r.a.createElement("div",null,e.getStarterGuide,s,c,r.a.createElement("br",null),h,g,r.a.createElement("br",null),e.bribeFactions)}renderUpgrades(){if(this.corp().divisions.length<=0)return;const e=[];Object.values(c.CorporationUnlockUpgrades).forEach(t=>{0===this.corp().unlockUpgrades[t[0]]&&e.push(this.renderUnlockUpgrade(t))});const t=[];for(let e=0;e
To begin developing a product, first choose the city in which it will be designed. The stats of your employees in the selected city affect the properties of the finished product, such as its quality, performance, and durability.
You can also choose to invest money in the design and marketing of the product. Investing money in its design will result in a superior product. Investing money in marketing the product will help the product's sales.";const a=e.hasMaximumNumberProducts(),i=a?"a-link-button-inactive tooltip":"std-button",o=this.eventHandler().createMakeProductPopup.bind(this.eventHandler(),n,e);return r.a.createElement("button",{className:i,onClick:o,style:{margin:"6px",display:"inline-block"}},t,a&&r.a.createElement("span",{className:"tooltiptext"},"You have reached the maximum number of products: ",e.getMaximumNumberProducts()))}renderText(){const e=this.corp(),t=this.routing().currentDivision,n=1===e.unlockUpgrades[4],a=t.lastCycleRevenue.minus(t.lastCycleExpenses).toNumber(),i=`Industry: ${t.type} (Corp Funds: ${c.numeralWrapper.formatMoney(e.funds.toNumber())})`,o=`Awareness: ${c.numeralWrapper.format(t.awareness,"0.000")}`,s=`Popularity: ${c.numeralWrapper.format(t.popularity,"0.000")}`;let l=!1;const p=t.getAdvertisingFactors(),d=p[1],h=p[2],_=p[3],g=p[0];n&&(l=!0);const f=`Revenue: ${c.numeralWrapper.formatMoney(t.lastCycleRevenue.toNumber())} / s`,y=`Expenses: ${c.numeralWrapper.formatMoney(t.lastCycleExpenses.toNumber())} /s`,b=`Profit: ${c.numeralWrapper.formatMoney(a)} / s`;return r.a.createElement("div",null,i,r.a.createElement("br",null)," ",r.a.createElement("br",null),o," ",r.a.createElement("br",null),s," ",r.a.createElement("br",null),!1!==l&&r.a.createElement("p",{className:"tooltip"},"Advertising Multiplier: x",c.numeralWrapper.format(g,"0.000"),r.a.createElement("span",{className:"tooltiptext cmpy-mgmt-advertising-info"},"Total multiplier for this industrys sales due to its awareness and popularity",r.a.createElement("br",null),"Awareness Bonus: x",c.numeralWrapper.format(Math.pow(d,.85),"0.000"),r.a.createElement("br",null),"Popularity Bonus: x",c.numeralWrapper.format(Math.pow(h,.85),"0.000"),r.a.createElement("br",null),"Ratio Multiplier: x",c.numeralWrapper.format(Math.pow(_,.85),"0.000"))),l,r.a.createElement("br",null),r.a.createElement("br",null),f," ",r.a.createElement("br",null),y," ",r.a.createElement("br",null),b,r.a.createElement("br",null)," ",r.a.createElement("br",null),r.a.createElement("p",{className:"tooltip"},"Production Multiplier: ",c.numeralWrapper.format(t.prodMult,"0.00"),r.a.createElement("span",{className:"tooltiptext"},"Production gain from owning production-boosting materials such as hardware, Robots, AI Cores, and Real Estate")),r.a.createElement("div",{className:"help-tip",onClick:()=>{function e(e){return Object(m.createProgressBarText)({progress:e,totalTicks:20})}Object(u.dialogBoxCreate)("Owning Hardware, Robots, AI Cores, and Real Estate can boost your Industry's production. The effect these materials have on your production varies between Industries. For example, Real Estate may be very effective for some Industries, but ineffective for others.
This division's production multiplier is calculated by summing the individual production multiplier of each of its office locations. This production multiplier is applied to each office. Therefore, it is beneficial to expand into new cities as this can greatly increase the production multiplier of your entire Division.
Below are approximations for how effective each material is at boosting this industry's production multiplier (Bigger bars = more effective):
"+`Hardware: ${e(t.hwFac)}
`+`Robots: ${e(t.robFac)}
`+`AI Cores: ${e(t.aiFac)}
`+`Real Estate: ${e(t.reFac)}`)}},"?"),r.a.createElement("br",null)," ",r.a.createElement("br",null),r.a.createElement("p",{className:"tooltip"},"Scientific Research: ",c.numeralWrapper.format(t.sciResearch.qty,"0.000a"),r.a.createElement("span",{className:"tooltiptext"},"Scientific Research increases the quality of the materials and products that you produce.")),r.a.createElement("button",{className:"help-tip",onClick:t.createResearchBox.bind(t)},"Research"))}renderUpgrades(){const e=this.corp(),t=this.routing().currentDivision,n=t.offices[this.props.currentCity];if(!(n instanceof o.i))throw new Error(`Current City (${this.props.currentCity}) for UI does not have an OfficeSpace object`);const a=[];for(const r in l.IndustryUpgrades){const i=l.IndustryUpgrades[r];if(t.hasResearch("AutoBrew")&&"Coffee"===i[4])continue;const o=i[0],s=i[1],m=i[2];let p=0;switch(o){case 0:p=n.employees.length*s;break;default:p=s*Math.pow(m,t.upgrades[o])}const d=()=>{e.funds.lt(p)?Object(u.dialogBoxCreate)("Insufficient funds"):(e.funds=e.funds.minus(p),t.upgrade(i,{corporation:e,office:n}),e.rerender())};a.push(this.renderUpgrade({onClick:d,text:`${i[4]} - ${c.numeralWrapper.formatMoney(p)}`,tooltip:i[5]}))}return a}renderUpgrade(e){return r.a.createElement("div",{className:"cmpy-mgmt-upgrade-div tooltip",onClick:e.onClick,key:e.text},e.text,null!=e.tooltip&&r.a.createElement("span",{className:"tooltiptext"},e.tooltip))}render(){const e=this.routing().currentDivision;if(null==e)throw new Error("Routing does not hold reference to the current Industry");const t=this.renderMakeProductButton();return r.a.createElement("div",{className:"cmpy-mgmt-industry-overview-panel"},this.renderText(),r.a.createElement("br",null),r.a.createElement("u",{className:"industry-purchases-and-upgrades-header"},"Purchases & Upgrades"),r.a.createElement("br",null),this.renderUpgrades()," ",r.a.createElement("br",null),e.makesProducts&&t)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var a=n(0),r=n.n(a),i=n(72),o=n(41),s=n(25),l=n(3),c=n(181);class u extends i.a{constructor(e){super(e),this.state={city:"",division:"",employeeManualAssignMode:!1,employee:null,numEmployees:0,numOperations:0,numEngineers:0,numBusiness:0,numManagement:0,numResearch:0,numUnassigned:0,numTraining:0},this.updateEmployeeCount()}resetEmployeeCount(){this.state.numEmployees=0,this.state.numOperations=0,this.state.numEngineers=0,this.state.numBusiness=0,this.state.numManagement=0,this.state.numResearch=0,this.state.numUnassigned=0,this.state.numTraining=0}updateEmployeeCount(){const e=this.routing().currentDivision;if(null==e)throw new Error("Routing does not hold reference to the current Industry");const t=e.offices[this.props.currentCity];if(!(t instanceof o.i))throw new Error(`Current City (${this.props.currentCity}) for UI does not have an OfficeSpace object`);e.name===this.state.division&&this.props.currentCity===this.state.city||(this.resetEmployeeCount(),this.state.division=e.name,this.state.city=this.props.currentCity);const n=t.employees.length;for(let e=this.state.numEmployees;e
To purchase these shares, you must use your own money (NOT your Corporation's funds).
The current buyback price of your company's stock is "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t,"$0.000a")+". Your company currently has "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatBigNumber(this.corp.issuedShares)+" outstanding stock shares"});var a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"number",placeholder:"Shares to buyback",margin:"5px",inputListener:()=>{var e=Math.round(r.value);isNaN(e)||e<=0?a.innerText="ERROR: Invalid value entered for number of shares to buyback":e>this.corp.issuedShares?a.innerText="There are not this many shares available to buy back. There are only "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatBigNumber(this.corp.issuedShares)+" outstanding shares.":a.innerText="Purchase "+e+" shares for a total of "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(e*t,"$0.000a")}}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"a-link-button",innerText:"Buy shares",display:"inline-block",clickListener:()=>{var t=Math.round(r.value);const n=1.1*this.corp.sharePrice;if(isNaN(t)||t<=0)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: Invalid value for number of shares");else if(t>this.corp.issuedShares)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: There are not this many oustanding shares to buy back");else if(t*n>_Player__WEBPACK_IMPORTED_MODULE_5__.Player.money)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: You do not have enough money to purchase this many shares (you need "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t*n,"$0.000a")+")");else{if(this.corp.numShares+=t,isNaN(this.corp.issuedShares)){console.warn("Corporation issuedShares is NaN: "+this.corp.issuedShares),console.warn("Converting to number now");const e=parseInt(this.corp.issuedShares);isNaN(e)?this.corp.issuedShares=0:this.corp.issuedShares=e}this.corp.issuedShares-=t,_Player__WEBPACK_IMPORTED_MODULE_5__.Player.loseMoney(t*n),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(e),this.rerender()}return!1}}),o=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(e,{class:"std-button",display:"inline-block",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,[n,a,r,i,o]),r.focus()}createDiscontinueProductPopup(e,t){const n="cmpy-mgmt-discontinue-product-popup",a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Are you sure you want to do this? Discontinuing a product removes it completely and permanently. You will no longer produce this product and all of its existing stock will be removed and left unsold"}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"popup-box-button",innerText:"Discontinue",clickListener:()=>(t.discontinueProduct(e),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n),this.rerender(),!1)}),i=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[a,i,r])}createExportMaterialPopup(mat){const corp=this.corp,popupId="cmpy-mgmt-export-popup",exportTxt=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Select the industry and city to export this material to, as well as how much of this material to export per second. You can set the export amount to 'MAX' to export all of the materials in this warehouse."}),citySelector=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown"}),industrySelector=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown",changeListener:()=>{const e=Object(_utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_17__.getSelectValue)(industrySelector);for(let t=0;t
Amount/s: "+t.exp[e].amt,clickListener:()=>{t.exp.splice(e,1),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(popupId),createExportMaterialPopup(t)}}))}(i,mat,currExports);Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(popupId,[exportTxt,industrySelector,citySelector,exportAmount,exportBtn,cancelBtn,currExportsText].concat(currExports))}createIssueDividendsPopup(){const e="cmpy-mgmt-issue-dividends-popup",t="Dividends are a distribution of a portion of the corporation's profits to the shareholders. This includes yourself, as well.
In order to issue dividends, simply allocate some percentage of your corporation's profits to dividends. This percentage must be an "+`integer between 0 and ${_Corporation__WEBPACK_IMPORTED_MODULE_1__.d}. (A percentage of 0 means no dividends will be `+"issued
Two important things to note:
* Issuing dividends will negatively affect your corporation's stock price
* Dividends are taxed. Taxes start at 50%, but can be decreased
Example: Assume your corporation makes $100m / sec in profit and you allocate 40% of that towards dividends. That means your corporation will gain $60m / sec in funds and the remaining $40m / sec will be paid as dividends. Since your corporation starts with 1 billion shares, every shareholder will be paid $0.04 per share per second before taxes.",n=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:t});let a;const r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"Dividend %",type:"number",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&a.click()}});a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",display:"inline-block",innerText:"Allocate Dividend Percentage",clickListener:()=>{const t=Math.round(parseInt(r.value));return isNaN(t)||t<0||t>_Corporation__WEBPACK_IMPORTED_MODULE_1__.d?Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)(`Invalid value. Must be an integer between 0 and ${_Corporation__WEBPACK_IMPORTED_MODULE_1__.d}`):(this.corp.dividendPercentage=t,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(e),this.rerender(),!1)}});const i=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(e,{class:"std-button",display:"inline-block",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,[n,r,a,i]),r.focus()}createIssueNewSharesPopup(){const e="cmpy-mgmt-issue-new-shares-popup",t=Math.round(.2*this.corp.totalShares),n=t-t%1e6,a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"You can issue new equity shares (i.e. stocks) in order to raise capital for your corporation.
"+` * You can issue at most ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(n,"0.000a")} new shares
`+" * New shares are sold at a 10% discount
* You can only issue new shares once every 12 hours
* Issuing new shares causes dilution, resulting in a decrease in stock price and lower dividends per share
* Number of new shares issued must be a multiple of 10 million
When you choose to issue new equity, private shareholders have first priority for up to 50% of the new shares. If they choose to exercise this option, these newly issued shares become private, restricted shares, which means you cannot buy them back."});let r,i;const o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{display:"block"});i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"# New Shares",type:"number",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER?r.click():function(e){const t=Math.round(.9*e.sharePrice);let a=parseInt(i.value);isNaN(a)?o.innerText="Invalid input":(a/=1e7,a=1e7*Math.round(a),o.innerText=a<1e7?"Must issue at least 10 million new shares":a>n?"You cannot issue that many shares":`Issue ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(a,"0.000a")} new shares `+`for ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(a*t)}?`)}(this.corp)}}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",display:"inline-block",innerText:"Issue New Shares",clickListener:()=>{const t=Math.round(.9*this.corp.sharePrice);let a=parseInt(i.value);if(isNaN(a))return void Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid input for number of new shares");if((a=1e7*Math.round(a/1e7))<1e7||a>n)return void Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid input for number of new shares");const r=a*t;this.corp.issueNewSharesCooldown=_Corporation__WEBPACK_IMPORTED_MODULE_1__.f,this.corp.totalShares+=a;let o=Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_10__.getRandomInt)(0,Math.round(a/2));return o=1e6*Math.round(o/1e6),this.corp.issuedShares+=a-o,this.corp.funds=this.corp.funds.plus(r),this.corp.immediatelyUpdateSharePrice(),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(e),Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)(`Issued ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(a,"0.000a")} and raised `+`${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(r)}. ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(o,"0.000a")} `+"of these shares were bought by private investors.
"+`Stock price decreased to ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(this.corp.sharePrice)}`),this.rerender(),!1}});const s=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(e,{class:"std-button",display:"inline-block",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,[a,o,i,r,s]),i.focus()}createLimitProductProdutionPopup(e,t){const n="cmpy-mgmt-limit-product-production-popup",a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Enter a limit to the amount of this product you would like to product per second. Leave the box empty to set no limit."});let r;const i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"Limit",type:"number",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&r.click()}});r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",display:"inline-block",innerText:"Limit production",margin:"5px",clickListener:()=>{if(""===i.value)return e.prdman[t][0]=!1,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n),!1;var a=parseFloat(i.value);return isNaN(a)?(Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value entered"),!1):(a<0?e.prdman[t][0]=!1:(e.prdman[t][0]=!0,e.prdman[t][1]=a),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n),this.rerender(),!1)}});const o=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{innerText:"Cancel"});o.style.margin="6px",Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[a,i,r,o]),i.focus()}createMakeProductPopup(e,t){if(t.hasMaximumNumberProducts())return;const n="cmpy-mgmt-create-product-popup",a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:e}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown",margin:"5px"});for(const e in t.offices)t.offices[e]instanceof _Corporation__WEBPACK_IMPORTED_MODULE_1__.i&&r.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("option",{value:e,text:e}));let i="Product Name";t.type===_IndustryData__WEBPACK_IMPORTED_MODULE_2__.Industries.Food?i="Restaurant Name":t.type===_IndustryData__WEBPACK_IMPORTED_MODULE_2__.Industries.Healthcare?i="Hospital Name":t.type===_IndustryData__WEBPACK_IMPORTED_MODULE_2__.Industries.RealEstate&&(i="Property Name");var o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{class:"text-input",margin:"5px",placeholder:i}),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("br"),l=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{class:"text-input",margin:"5px",placeholder:"Design investment",type:"number"});let c;var u=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{class:"text-input",margin:"5px",placeholder:"Marketing investment",type:"number",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&c.click()}});c=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Develop Product",clickListener:()=>{(null==l.value||l.value<0)&&(l.value=0),(null==u.value||u.value<0)&&(u.value=0);var e=parseFloat(l.value),a=parseFloat(u.value);if(null==o.value||""===o.value)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You must specify a name for your product!");else if(isNaN(e))Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value for design investment");else if(isNaN(a))Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value for marketing investment");else if(this.corp.funds.lt(e+a))Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You don't have enough company funds to make this large of an investment");else{const i=new _Product__WEBPACK_IMPORTED_MODULE_4__.Product({name:o.value.replace(/[<>]/g,""),createCity:r.options[r.selectedIndex].value,designCost:e,advCost:a});if(t.products[i.name]instanceof _Product__WEBPACK_IMPORTED_MODULE_4__.Product)return void Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You already have a product with this name!");this.corp.funds=this.corp.funds.minus(e+a),t.products[i.name]=i,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n)}return this.rerender(),!1}});const m=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{class:"std-button",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[a,r,o,s,l,u,c,m]),o.focus()}createMaterialMarketTaPopup(e,t){const n="cmpy-mgmt-marketta-popup",a=e.getMarkupLimit(),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Market-TA.I
The maximum sale price you can mark this up to is "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(e.bCost+a)+". This means that if you set the sale price higher than this, you will begin to experience a loss in number of sales"}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{display:"block"}),o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{color:"white",for:"cmpy-mgmt-marketa1-checkbox",innerText:"Use Market-TA.I for Auto-Sale Price",tooltip:"If this is enabled, then this Material will automatically be sold at the price identified by Market-TA.I (i.e. the price shown above)"}),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:e.marketTa1,id:"cmpy-mgmt-marketa1-checkbox",margin:"3px",type:"checkbox",changeListener:t=>{e.marketTa1=t.target.checked}});i.appendChild(o),i.appendChild(s);const l=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{class:"std-button",display:"block",innerText:"Close"});if(t.hasResearch("Market-TA.II")){let t;const o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p"),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{marginTop:"4px",onkeyup:e=>{e.preventDefault(),t()},type:"number",value:e.bCost});(t=function(){const t=parseFloat(s.value);let n=1;t>e.bCost?t-e.bCost>a&&(n=Math.pow(a/(t-e.bCost),2)):t
"+`If you sell at ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(t)}, `+`then you will sell ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(n,"0.00000")}x as much compared `+"to if you sold at market price."})();const c="cmpy-mgmt-marketa2-checkbox",u=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{display:"block"}),m=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{color:"white",for:c,innerText:"Use Market-TA.II for Auto-Sale Price",tooltip:"If this is enabled, then this Material will automatically be sold at the optimal price such that the amount sold matches the amount produced. (i.e. the highest possible price, while still ensuring that all produced materials will be sold)"}),p=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:e.marketTa2,id:c,margin:"3px",type:"checkbox",changeListener:t=>{e.marketTa2=t.target.checked}});u.appendChild(m),u.appendChild(p);const d=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Note that Market-TA.II overrides Market-TA.I. This means that if both are enabled, then Market-TA.II will take effect, not Market-TA.I"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[r,i,o,s,u,d,l])}else Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[r,i,l])}createNewCityPopup(e,t){const n="cmpy-mgmt-expand-city-popup",a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Would you like to expand into a new city by opening an office? This would cost "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(_Corporation__WEBPACK_IMPORTED_MODULE_1__.g,"$0.000a")}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown",margin:"5px"});for(const t in e.offices)e.offices[t]instanceof _Corporation__WEBPACK_IMPORTED_MODULE_1__.i||r.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("option",{text:t,value:t}));const i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",display:"inline-block",innerText:"Confirm",clickListener:()=>{if(r.length<=0)return!1;let a=r.options[r.selectedIndex].value;return this.corp.funds.lt(_Corporation__WEBPACK_IMPORTED_MODULE_1__.g)?Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You don't have enough company funds to open a new office!"):(this.corp.funds=this.corp.funds.minus(_Corporation__WEBPACK_IMPORTED_MODULE_1__.g),Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Opened a new office in "+a+"!"),e.offices[a]=new _Corporation__WEBPACK_IMPORTED_MODULE_1__.i({loc:a,size:_Corporation__WEBPACK_IMPORTED_MODULE_1__.h})),t(a),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n),this.rerender(),!1}}),o=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{class:"std-button",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[a,r,i,o])}createNewIndustryPopup(){const e="cmpy-mgmt-expand-industry-popup";if(null!=document.getElementById(e))return;var t,n=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Create a new division to expand into a new industry:"}),a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown"}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"text",id:"cmpy-mgmt-expand-industry-name-input",class:"text-input",display:"block",maxLength:30,pattern:"[a-zA-Z0-9-_]",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&t.click()}}),o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{for:"cmpy-mgmt-expand-industry-name-input",innerText:"Division name: "});t=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("span",{class:"popup-box-button",innerText:"Create Division",clickListener:()=>{const e=a.options[a.selectedIndex].value,t=i.value;for(let e=0;e
",a.addEventListener("change",function(){var e=a.options[a.selectedIndex].value;r.innerHTML=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.IndustryDescriptions[e]+"
"});const m=[];return m.push(n),m.push(a),m.push(r),m.push(o),m.push(i),m.push(s),m.push(t),Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,m),i.focus(),!1}createProductMarketTaPopup(e,t){const n="cmpy-mgmt-marketta-popup",a=e.rat/e.mku,r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Market-TA.I
The maximum sale price you can mark this up to is "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(e.pCost+a)+". This means that if you set the sale price higher than this, you will begin to experience a loss in number of sales"}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{display:"block"}),o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{color:"white",for:"cmpy-mgmt-marketa1-checkbox",innerText:"Use Market-TA.I for Auto-Sale Price",tooltip:"If this is enabled, then this Product will automatically be sold at the price identified by Market-TA.I (i.e. the price shown above)"}),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:e.marketTa1,id:"cmpy-mgmt-marketa1-checkbox",margin:"3px",type:"checkbox",changeListener:t=>{e.marketTa1=t.target.checked}});i.appendChild(o),i.appendChild(s);const l=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{class:"std-button",display:"block",innerText:"Close"});if(t.hasResearch("Market-TA.II")){let t;const o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p"),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{marginTop:"4px",onkeyup:e=>{e.preventDefault(),t()},type:"number",value:e.pCost});(t=function(){const t=parseFloat(s.value);let n=1;t>e.pCost&&t-e.pCost>a&&(n=a/(t-e.pCost)),o.innerHTML="
Market-TA.II
"+`If you sell at ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(t)}, `+`then you will sell ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(n,"0.00000")}x as much compared `+"to if you sold at market price."})();const c="cmpy-mgmt-marketa2-checkbox",u=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{display:"block"}),m=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{color:"white",for:c,innerText:"Use Market-TA.II for Auto-Sale Price",tooltip:"If this is enabled, then this Product will automatically be sold at the optimal price such that the amount sold matches the amount produced. (i.e. the highest possible price, while still ensuring that all produced materials will be sold)"}),p=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:e.marketTa2,id:c,margin:"3px",type:"checkbox",changeListener:t=>{e.marketTa2=t.target.checked}});u.appendChild(m),u.appendChild(p);const d=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Note that Market-TA.II overrides Market-TA.I. This means that if both are enabled, then Market-TA.II will take effect, not Market-TA.I"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[r,i,o,s,u,d,l])}else Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[r,i,l])}createPurchaseMaterialPopup(e,t,n){const a=this.corp,r="cmpy-mgmt-material-purchase-popup",i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Enter the amount of "+e.name+" you would like to purchase per second. This material's cost changes constantly"});let o,s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"Purchase amount",type:"number",value:e.buy?e.buy:null,onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&o.click()}});o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{innerText:"Confirm",class:"std-button",clickListener:()=>{if(!isNaN(s.value))return e.buy=parseFloat(s.value),isNaN(e.buy)&&(e.buy=0),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(r),this.rerender(),!1;Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid amount")}});const l=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{innerText:"Clear Purchase",class:"std-button",clickListener:()=>(e.buy=0,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(r),this.rerender(),!1)}),c=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(r,{class:"std-button",innerText:"Cancel"}),u=[i,s,o,l,c];if(t.hasResearch("Bulk Purchasing")){const t=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Enter the amount of "+e.name+" you would like to bulk purchase. This purchases the specified amount instantly (all at once)."});let i,o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p");const s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"Bulk Purchase amount",type:"number",onkeyup:t=>{t.preventDefault(),function(t){const a=parseFloat(t),r=a*e.bCost,i=_MaterialSizes__WEBPACK_IMPORTED_MODULE_3__.MaterialSizes[e.name];a*i>(n.size-n.sizeUsed)/i?o.innerText="Not enough warehouse space to purchase this amount":isNaN(r)?o.innerText="Invalid put for Bulk Purchase amount":o.innerText=`Purchasing ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(a,"0,0.00")} of `+`${e.name} will cost ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(r)}`}(t.target.value),t.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&i.click()}});i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Confirm Bulk Purchase",clickListener:()=>{const t=parseFloat(s.value),i=_MaterialSizes__WEBPACK_IMPORTED_MODULE_3__.MaterialSizes[e.name];if(t*i>(n.size-n.sizeUsed)/i)return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You do not have enough warehouse size to fit this purchase"),!1;if(!isNaN(t)){const n=t*e.bCost;return a.funds.gt(n)?(a.funds=a.funds.minus(n),e.qty+=t,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(r),!1):(Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You cannot afford this purchase."),!1)}Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid input amount")}}),u.push(t),u.push(o),u.push(s),u.push(i)}Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(r,u),s.focus()}createSellMaterialPopup(mat){const sellPopupId="cmpy-mgmt-material-sell-popup",txt=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Enter the maximum amount of "+mat.name+" you would like to sell per second, as well as the price at which you would like to sell at.
If the sell amount is set to 0, then the material will not be sold. If the sell price if set to 0, then the material will be discarded
Setting the sell amount to 'MAX' will result in you always selling the maximum possible amount of the material.
When setting the sell amount, you can use the 'PROD' variable to designate a dynamically changing amount that depends on your production. For example, if you set the sell amount to 'PROD-5' then you will always sell 5 less of the material than you produce.
When setting the sell price, you can use the 'MP' variable to designate a dynamically changing price that depends on the market price. For example, if you set the sell price to 'MP+10' then it will always be sold at $10 above the market price."}),br=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("br");let confirmBtn;const inputQty=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"text",marginTop:"4px",value:mat.sllman[1]?mat.sllman[1]:null,placeholder:"Sell amount",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&confirmBtn.click()}});let inputButtonInitValue=mat.sCost?mat.sCost:null;mat.marketTa2?inputButtonInitValue+=" (Market-TA.II)":mat.marketTa1&&(inputButtonInitValue+=" (Market-TA.I)");const inputPx=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"text",marginTop:"4px",value:inputButtonInitValue,placeholder:"Sell price",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&confirmBtn.click()}});confirmBtn=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Confirm",clickListener:()=>{let cost=inputPx.value.replace(/\s+/g,"");cost=cost.replace(/[^-()\d/*+.MP]/g,"");let temp=cost.replace(/MP/g,mat.bCost);try{temp=eval(temp)}catch(e){return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field: "+e),!1}if(null==temp||isNaN(temp))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field"),!1;if(cost.includes("MP")?mat.sCost=cost:mat.sCost=temp,inputQty.value.includes("MAX")||inputQty.value.includes("PROD")){let qty=inputQty.value.replace(/\s+/g,"");qty=qty.replace(/[^-()\d/*+.MAXPROD]/g,"");let tempQty=qty.replace(/MAX/g,1);tempQty=tempQty.replace(/PROD/g,1);try{tempQty=eval(tempQty)}catch(e){return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field: "+e),!1}if(null==tempQty||isNaN(tempQty))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field"),!1;mat.sllman[0]=!0,mat.sllman[1]=qty}else{if(isNaN(inputQty.value))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value for sell quantity field! Must be numeric or 'MAX'"),!1;var qty=parseFloat(inputQty.value);isNaN(qty)&&(qty=0),0===qty?(mat.sllman[0]=!1,mat.sllman[1]=0):(mat.sllman[0]=!0,mat.sllman[1]=qty)}return Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(sellPopupId),this.rerender(),!1}});const cancelBtn=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(sellPopupId,{class:"std-button",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(sellPopupId,[txt,br,inputQty,inputPx,confirmBtn,cancelBtn]),inputQty.focus()}createSellProductPopup(product,city){const popupId="cmpy-mgmt-sell-product-popup",txt=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Enter the maximum amount of "+product.name+" you would like to sell per second, as well as the price at which you would like to sell it at.
If the sell amount is set to 0, then the product will not be sold. If the sell price is set to 0, then the product will be discarded.
Setting the sell amount to 'MAX' will result in you always selling the maximum possible amount of the material.
When setting the sell amount, you can use the 'PROD' variable to designate a dynamically changing amount that depends on your production. For example, if you set the sell amount to 'PROD-1' then you will always sell 1 less of the material than you produce.
When setting the sell price, you can use the 'MP' variable to set a dynamically changing price that depends on the Product's estimated market price. For example, if you set it to 'MP*5' then it will always be sold at five times the estimated market price."});let confirmBtn;const inputQty=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px 0px 5px 0px",placeholder:"Sell amount",type:"text",value:product.sllman[city][1]?product.sllman[city][1]:null,onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&confirmBtn.click()}});let inputButtonInitValue=product.sCost?product.sCost:null;product.marketTa2?inputButtonInitValue+=" (Market-TA.II)":product.marketTa1&&(inputButtonInitValue+=" (Market-TA.I)");const inputPx=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px 0px 5px 0px",placeholder:"Sell price",type:"text",value:inputButtonInitValue,onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&confirmBtn.click()}}),checkboxDiv=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{border:"1px solid white",display:"inline-block"}),checkboxLabel=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{for:popupId+"-checkbox",innerText:"Use same 'Sell Amount' for all cities"}),checkbox=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:!0,id:popupId+"-checkbox",margin:"2px",type:"checkbox"});checkboxDiv.appendChild(checkboxLabel),checkboxDiv.appendChild(checkbox),confirmBtn=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Confirm",clickListener:()=>{if(inputPx.value.includes("MP")){var price=inputPx.value.replace(/\s+/g,"");price=price.replace(/[^-()\d/*+.MP]/g,"");var temp=price.replace(/MP/g,1);try{temp=eval(temp)}catch(e){return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell quantity field: "+e),!1}if(null==temp||isNaN(temp))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell quantity field."),!1;product.sCost=price}else{var cost=parseFloat(inputPx.value);if(isNaN(cost))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value for sell price field"),!1;product.sCost=cost}const cities=Object.keys(_Locations_Cities__WEBPACK_IMPORTED_MODULE_7__.Cities);if(inputQty.value.includes("MAX")||inputQty.value.includes("PROD")){var qty=inputQty.value.replace(/\s+/g,"");qty=qty.replace(/[^-()\d/*+.MAXPROD]/g,"");var temp=qty.replace(/MAX/g,1);temp=temp.replace(/PROD/g,1);try{temp=eval(temp)}catch(e){return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field: "+e),!1}if(null==temp||isNaN(temp))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field"),!1;if(checkbox.checked)for(let e=0;e
Selling your shares will cause your corporation's stock price to fall due to dilution. Furthermore, selling a large number of shares all at once will have an immediate effect in reducing your stock price.
The current price of your company's stock is "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t,"$0.000a")}),a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p"),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{class:"text-input",type:"number",placeholder:"Shares to sell",margin:"5px",inputListener:()=>{var e=Math.round(r.value);if(isNaN(e)||e<=0)a.innerText="ERROR: Invalid value entered for number of shares to sell";else if(e>this.corp.numShares)a.innerText="You don't have this many shares to sell!";else{const t=this.corp.calculateShareSale(e)[0];a.innerText="Sell "+e+" shares for a total of "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t,"$0.000a")}}}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"a-link-button",innerText:"Sell shares",display:"inline-block",clickListener:()=>{var t=Math.round(r.value);if(isNaN(t)||t<=0)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: Invalid value for number of shares");else{if(!(t>this.corp.numShares)){const a=this.corp.calculateShareSale(t),r=a[0],i=a[1],o=a[2];if(this.corp.numShares-=t,isNaN(this.corp.issuedShares)){console.error(`Corporation issuedShares is NaN: ${this.corp.issuedShares}`);var n=parseInt(this.corp.issuedShares);isNaN(n)?this.corp.issuedShares=0:this.corp.issuedShares=n}return this.corp.issuedShares+=t,this.corp.sharePrice=i,this.corp.shareSalesUntilPriceUpdate=o,this.corp.shareSaleCooldown=_Corporation__WEBPACK_IMPORTED_MODULE_1__.k,_Player__WEBPACK_IMPORTED_MODULE_5__.Player.gainMoney(r),_Player__WEBPACK_IMPORTED_MODULE_5__.Player.recordMoneySource(r,"corporation"),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(e),Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)(`Sold ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(t,"0.000a")} shares for `+`${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(r,"$0.000a")}. `+`The corporation's stock price fell to ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(this.corp.sharePrice)} `+"as a result of dilution."),this.rerender(),!1}Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: You don't have this many shares to sell")}}}),o=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(e,{class:"std-button",display:"inline-block",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,[n,a,r,i,o]),r.focus()}createThrowOfficePartyPopup(e){const t="cmpy-mgmt-throw-office-party-popup",n=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Enter the amount of money you would like to spend PER EMPLOYEE on this office party"}),a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Throwing this party will cost a total of $0"});let r;const i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"number",margin:"5px",placeholder:"$ / employee",inputListener:()=>{if(isNaN(i.value)||i.value<0)a.innerText="Invalid value entered!";else{const t=i.value*e.employees.length;a.innerText="Throwing this party will cost a total of "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t,"$0.000a")}},onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&r.click()}});r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Throw Party",clickListener:()=>{if(isNaN(i.value)||i.value<0)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value entered");else{var n=i.value*e.employees.length;if(this.corp.funds.lt(n))Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You don't have enough company funds to throw this.corp party!");else{var a;this.corp.funds=this.corp.funds.minus(n);for(let t=0;t
",n+=m.renderToStaticMarkup(t.stats),g.appendChild(s.createElement("div",{class:"gang-owned-upgrade",innerText:e,tooltip:n}))}_.push(g);const f=s.createElement("p",{innerHTML:["You can purchase Augmentations for your Duplicate Sleeves. These Augmentations","have the same effect as they would for you. You can only purchase Augmentations","that you have unlocked through Factions.
","When purchasing an Augmentation for a Duplicate Sleeve, they are immediately","installed. This means that the Duplicate Sleeve will immediately lose all of","its stat experience."].join(" ")});_.push(f);for(const a of d){const r=s.createElement("div",{class:"cmpy-mgmt-upgrade-div"});let l=a.info;"string"!=typeof l&&(l=m.renderToStaticMarkup(l)),l+="
",l+=m.renderToStaticMarkup(a.stats),r.appendChild(s.createElement("p",{fontSize:"12px",innerHTML:[`${a.name}
`,`Cost: ${m.renderToStaticMarkup(i.Money(a.startingCost))}
`,`${l}`].join(" "),padding:"2px",clickListener:()=>{t.tryBuyAugmentation(n,a)?(o.dialogBoxCreate(`Installed ${a.name} on Duplicate Sleeve!`,!1),u.removeElementById(h),e(t,n)):o.dialogBoxCreate(`You cannot afford ${a.name}`,!1)}})),_.push(r)}l.createPopup(h,_)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Milestones=void 0;const a=n(16),r=n(24);function i(e,t){const n=t.augmentations.slice().filter(e=>"NeuroFlux Governor"!==e);for(const t of n)if(!e.augmentations.some(e=>e.name==t))return!1;return!0}t.Milestones=[{title:"Gain root access on CSEC",fulfilled:()=>{const e=r.GetServerByHostname("CSEC");return!(!e||!e.hasOwnProperty("hasAdminRights"))&&e.hasAdminRights}},{title:"Install the backdoor on CSEC",fulfilled:()=>{const e=r.GetServerByHostname("CSEC");return!(!e||!e.hasOwnProperty("backdoorInstalled"))&&e.backdoorInstalled}},{title:"Join the faction hinted at in csec-test.msg",fulfilled:e=>e.factions.includes("CyberSec")},{title:"Install all the Augmentations from CyberSec",fulfilled:e=>i(e,a.Factions.CyberSec)},{title:"Join the faction hinted at in nitesec-test.msg",fulfilled:e=>e.factions.includes("NiteSec")},{title:"Install all the Augmentations from NiteSec",fulfilled:e=>i(e,a.Factions.NiteSec)},{title:"Join the faction hinted at in j3.msg",fulfilled:e=>e.factions.includes("The Black Hand")},{title:"Install all the Augmentations from The Black Hand",fulfilled:e=>i(e,a.Factions["The Black Hand"])},{title:"Join the faction hinted at in 19dfj3l1nd.msg",fulfilled:e=>e.factions.includes("BitRunners")},{title:"Install all the Augmentations from BitRunners",fulfilled:e=>i(e,a.Factions.BitRunners)},{title:"Complete fl1ght.exe",fulfilled:e=>e.factions.includes("Daedalus")},{title:"Install the special Augmentation from Daedalus",fulfilled:e=>e.augmentations.some(e=>"The Red Pill"==e.name)},{title:"Install the final backdoor and free yourself.",fulfilled:()=>!1}]},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Root=void 0;const o=n(954),s=i(n(0));t.Root=function(e){const t=function(e,t){let n=-1;for(let a=0;a
Your max stamina is determined primarily by your agility stat.
Your stamina gain rate is determined by both your agility and your max stamina. Higher max stamina leads to a higher gain rate.
Once your stamina falls below 50% of its max value, it begins to negatively affect the success rate of your contracts/operations. This penalty is shown in the overview panel. If the penalty is 15%, then this means your success rate would be multipled by 85% (100 - 15).
Your max stamina and stamina gain rate can also be increased by training, or through skills and Augmentation upgrades.")}},"?"),o.default.createElement("br",null),o.default.createElement("p",null,"Stamina Penalty: ",s.formatNumber(100*(1-e.bladeburner.calculateStaminaPenalty()),1),"%"),o.default.createElement("br",null),o.default.createElement("p",null,"Team Size: ",s.formatNumber(e.bladeburner.teamSize,0)),o.default.createElement("p",null,"Team Members Lost: ",s.formatNumber(e.bladeburner.teamLost,0)),o.default.createElement("br",null),o.default.createElement("p",null,"Num Times Hospitalized: ",e.bladeburner.numHosp),o.default.createElement("p",null,"Money Lost From Hospitalizations: ",c.Money(e.bladeburner.moneyLost)),o.default.createElement("br",null),o.default.createElement("p",null,"Current City: ",e.bladeburner.city),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Est. Synthoid Population: ",m.numeralWrapper.formatPopulation(e.bladeburner.getCurrentCity().popEst),o.default.createElement("span",{className:"tooltiptext"},"This is your Bladeburner division's estimate of how many Synthoids exist in your current city.")),o.default.createElement("div",{className:"help-tip",onClick:function(){p.dialogBoxCreate("The success rate of your contracts/operations depends on the population of Synthoids in your current city. The success rate that is shown to you is only an estimate, and it is based on your Synthoid population estimate.
Therefore, it is important that this Synthoid population estimate is accurate so that you have a better idea of your success rate for contracts/operations. Certain actions will increase the accuracy of your population estimate.
The Synthoid populations of cities can change due to your actions or random events. If random events occur, they will be logged in the Bladeburner Console.")}},"?"),o.default.createElement("br",null),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Est. Synthoid Communities: ",s.formatNumber(e.bladeburner.getCurrentCity().comms,0),o.default.createElement("span",{className:"tooltiptext"},"This is your Bladeburner divison's estimate of how many Synthoid communities exist in your current city.")),o.default.createElement("br",null),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"City Chaos: ",s.formatNumber(e.bladeburner.getCurrentCity().chaos),o.default.createElement("span",{className:"tooltiptext"},"The city's chaos level due to tensions and conflicts between humans and Synthoids. Having too high of a chaos level can make contracts and operations harder.")),o.default.createElement("br",null),o.default.createElement("br",null),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Bonus time: ",s.convertTimeMsToTimeElapsedString(e.bladeburner.storedCycles/l.BladeburnerConstants.CyclesPerSecond*1e3),o.default.createElement("br",null),o.default.createElement("span",{className:"tooltiptext"},"You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by browser). Bonus time makes the Bladeburner mechanic progress faster, up to 5x the normal speed.")),o.default.createElement("p",null,"Skill Points: ",s.formatNumber(e.bladeburner.skillPoints,0)),o.default.createElement("br",null),u.StatsTable([["Aug. Success Chance mult: ",s.formatNumber(100*e.player.bladeburner_success_chance_mult,1)+"%"],["Aug. Max Stamina mult: ",s.formatNumber(100*e.player.bladeburner_max_stamina_mult,1)+"%"],["Aug. Stamina Gain mult: ",s.formatNumber(100*e.player.bladeburner_stamina_gain_mult,1)+"%"],["Aug. Field Analysis mult: ",s.formatNumber(100*e.player.bladeburner_analysis_mult,1)+"%"]]),o.default.createElement("br",null),o.default.createElement("a",{onClick:function(){const t="bladeburner-travel-popup";d.createPopup(t,g.TravelPopup,{bladeburner:e.bladeburner,popupId:t})},className:"a-link-button",style:{display:"inline-block"}},"Travel"),o.default.createElement("a",{onClick:function(){const t=h.Factions.Bladeburners;t.isMember?(e.engine.loadFactionContent(),_.displayFactionContent("Bladeburners")):e.bladeburner.rank>=l.BladeburnerConstants.RankNeededForFaction?(_.joinFaction(t),p.dialogBoxCreate("Congratulations! You were accepted into the Bladeburners faction")):p.dialogBoxCreate("You need a rank of 25 to join the Bladeburners Faction!")},className:"a-link-button tooltip",style:{display:"inline-block"}},o.default.createElement("span",{className:"tooltiptext"},"Apply to the Bladeburner Faction, or go to the faction page if you are already a member"),"Faction"),o.default.createElement("br",null),o.default.createElement("br",null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TerritorySubpage=void 0;const r=a(n(0)),i=n(3),o=n(12),s=n(20),l=n(93);t.TerritorySubpage=function(e){function t(e){const t=100*e;return t<=0?s.formatNumber(0,2):t>=100?s.formatNumber(100,2):s.formatNumber(t,2)}const n=l.AllGangs[e.gang.facName].power,a=Object.keys(l.AllGangs).filter(t=>t!=e.gang.facName);return r.default.createElement("div",{style:{width:"70%"}},r.default.createElement("p",{className:"noselect"},"This page shows how much territory your Gang controls. This statistic is listed as a percentage, which represents how much of the total territory you control.",r.default.createElement("br",null),r.default.createElement("br",null),"Every ~20 seconds, your gang has a chance to 'clash' with other gangs. Your chance to win a clash depends on your gang's power, which is listed in the display below. Your gang's power slowly accumulates over time. The accumulation rate is determined by the stats of all Gang members you have assigned to the 'Territory Warfare' task. Gang members that are not assigned to this task do not contribute to your gang's power. Your gang also loses a small amount of power whenever you lose a clash.",r.default.createElement("br",null),r.default.createElement("br",null),"NOTE: Gang members assigned to 'Territory Warfare' can be killed during clashes. This can happen regardless of whether you win or lose the clash. A gang member being killed results in both respect and power loss for your gang.",r.default.createElement("br",null),r.default.createElement("br",null),"The amount of territory you have affects all aspects of your Gang members' production, including money, respect, and wanted level. It is very beneficial to have high territory control.",r.default.createElement("br",null),r.default.createElement("br",null)),r.default.createElement("input",{checked:e.gang.territoryWarfareEngaged,id:"warfare",type:"checkbox",style:{display:"inline-block",margin:"2px"},onChange:t=>e.gang.territoryWarfareEngaged=t.target.checked}),r.default.createElement("label",{htmlFor:"warfare",className:"tooltip noselect",style:{color:"white",display:"inline-block"}},"Engage in Territory Warfare",r.default.createElement("span",{className:"tooltiptext",style:{display:"inline-block"}},"Engaging in Territory Warfare sets your clash chance to 100%. Disengaging will cause your clash chance to gradually decrease until it reaches 0%.")),r.default.createElement("br",null),r.default.createElement("p",{style:{display:"inline-block"}},"Territory Clash Chance: ",i.numeralWrapper.formatPercentage(e.gang.territoryClashChance,3)),r.default.createElement("div",{className:"help-tip noselect",style:{display:"inline-block"},onClick:function(){o.dialogBoxCreate("This percentage represents the chance you have of 'clashing' with with another gang. If you do not wish to gain/lose territory, then keep this percentage at 0% by not engaging in territory warfare.")}},"?"),r.default.createElement("br",null),r.default.createElement("input",{checked:e.gang.notifyMemberDeath,id:"notify",type:"checkbox",style:{display:"inline-block",margin:"2px"},onChange:t=>e.gang.notifyMemberDeath=t.target.checked}),r.default.createElement("label",{htmlFor:"warfare",className:"tooltip noselect",style:{color:"white",display:"inline-block"}},"Notify about Gang Member Deaths",r.default.createElement("span",{className:"tooltiptext",style:{display:"inline-block"}},"If this is enabled, then you will receive a pop-up notifying you whenever one of your Gang Members dies in a territory clash.")),r.default.createElement("br",null),r.default.createElement("fieldset",{style:{display:"block",margin:"6px"}},r.default.createElement("p",null,r.default.createElement("b",null,r.default.createElement("u",null,e.gang.facName)),r.default.createElement("br",null),"Power: ",s.formatNumber(l.AllGangs[e.gang.facName].power,6),r.default.createElement("br",null),"Territory: ",t(l.AllGangs[e.gang.facName].territory),"%",r.default.createElement("br",null),r.default.createElement("br",null),a.map(e=>(function(e){const a=l.AllGangs[e].power,o=n/(a+n);return r.default.createElement("span",{key:e},r.default.createElement("u",null,e),r.default.createElement("br",null),"Power: ",s.formatNumber(a,6),r.default.createElement("br",null),"Territory: ",t(l.AllGangs[e].territory),"%",r.default.createElement("br",null),"Chance to win clash with this gang: ",i.numeralWrapper.formatPercentage(o,3),r.default.createElement("br",null),r.default.createElement("br",null))})(e)))))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RecruitPopup=void 0;const o=i(n(0)),s=n(79),l=n(12);t.RecruitPopup=function(e){const[t,n]=o.useState("");function a(){""!==t?e.gang.canRecruitMember()?e.gang.recruitMember(t)?(e.onRecruit(),s.removePopup(e.popupId)):l.dialogBoxCreate("You already have a gang member with this name!"):l.dialogBoxCreate("You cannot recruit another Gang member!"):l.dialogBoxCreate("You must enter a name for your Gang member!")}function r(){s.removePopup(e.popupId)}return o.default.createElement(o.default.Fragment,null,o.default.createElement("p",{className:"noselect"},"Enter a name for your new Gang member:"),o.default.createElement("br",null),o.default.createElement("input",{autoFocus:!0,onKeyUp:function(e){13===e.keyCode&&a(),27===e.keyCode&&r()},onChange:function(e){n(e.target.value)},className:"text-input noselect",type:"text",placeholder:"unique name"}),o.default.createElement("a",{className:"std-button",onClick:a},"Recruit Gang Member"),o.default.createElement("a",{className:"std-button",onClick:r},"Cancel"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecruitButton=void 0;const r=a(n(0)),i=n(1024),o=n(703),s=n(20),l=n(79);t.RecruitButton=function(e){if(e.gang.members.length>=o.GangConstants.MaximumGangMembers)return r.default.createElement(r.default.Fragment,null);if(!e.gang.canRecruitMember()){const t=e.gang.getRespectNeededToRecruitMember();return r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{className:"a-link-button-inactive",style:{display:"inline-block",margin:"10px"}},"Recruit Gang Member"),r.default.createElement("p",{style:{margin:"10px",color:"red",display:"inline-block"}},s.formatNumber(t,2)," respect needed to recruit next member"))}return r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{className:"a-link-button",onClick:function(){const t="recruit-gang-member-popup";l.createPopup(t,i.RecruitPopup,{gang:e.gang,popupId:t,onRecruit:e.onRecruit})},style:{display:"inline-block",margin:"10px"}},"Recruit Gang Member"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TaskDescription=void 0;const r=a(n(0)),i=n(300);t.TaskDescription=function(e){const t=i.GangMemberTasks[e.member.task],n=t?t.desc:i.GangMemberTasks.Unassigned.desc;return r.default.createElement("p",{className:"inline noselect",dangerouslySetInnerHTML:{__html:n}})}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TaskSelector=void 0;const o=i(n(0)),s=n(3),l=n(286),c=n(125);t.TaskSelector=function(e){const[t,n]=o.useState(e.member.task),a=e.gang.getAllTaskNames(),r=[["Money:",c.MoneyRate(5*e.member.calculateMoneyGain(e.gang))],["Respect:",`${s.numeralWrapper.formatRespect(5*e.member.calculateRespectGain(e.gang))} / sec`],["Wanted Level:",`${s.numeralWrapper.formatWanted(5*e.member.calculateWantedLevelGain(e.gang))} / sec`],["Total Respect:",`${s.numeralWrapper.formatRespect(e.member.earnedRespect)}`]];return o.default.createElement(o.default.Fragment,null,o.default.createElement("select",{onChange:function(t){const a=t.target.value;e.member.assignToTask(a),n(a),e.onTaskChange()},className:"dropdown noselect",value:t},o.default.createElement("option",{key:0,value:"---"},"---"),a.map((e,t)=>o.default.createElement("option",{key:t+1,value:e},e))),o.default.createElement("div",null,l.StatsTable(r)))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AscensionPopup=void 0;const o=i(n(0)),s=n(3),l=n(79),c=n(12);t.AscensionPopup=function(e){const t=o.useState(!1)[1];o.useEffect(()=>{const e=setInterval(()=>t(e=>!e),1e3);return()=>clearInterval(e)},[]);const n=e.member.getAscensionResults();return o.default.createElement(o.default.Fragment,null,o.default.createElement("pre",null,"Are you sure you want to ascend this member? They will lose all of",o.default.createElement("br",null),"their non-Augmentation upgrades and their stats will reset back to 1.",o.default.createElement("br",null),o.default.createElement("br",null),"Furthermore, your gang will lose ",s.numeralWrapper.formatRespect(e.member.earnedRespect)," respect",o.default.createElement("br",null),o.default.createElement("br",null),"In return, they will gain the following permanent boost to stat multipliers:",o.default.createElement("br",null),"Hacking: x",s.numeralWrapper.format(n.hack,"0.000"),o.default.createElement("br",null),"Strength: x",s.numeralWrapper.format(n.str,"0.000"),o.default.createElement("br",null),"Defense: x",s.numeralWrapper.format(n.def,"0.000"),o.default.createElement("br",null),"Dexterity: x",s.numeralWrapper.format(n.dex,"0.000"),o.default.createElement("br",null),"Agility: x",s.numeralWrapper.format(n.agi,"0.000"),o.default.createElement("br",null),"Charisma: x",s.numeralWrapper.format(n.cha,"0.000"),o.default.createElement("br",null)),o.default.createElement("button",{className:"std-button",onClick:function(){e.onAscend();const t=e.gang.ascendMember(e.member);c.dialogBoxCreate(o.default.createElement("p",null,"You ascended ",e.member.name,"!",o.default.createElement("br",null),o.default.createElement("br",null),"Your gang lost ",s.numeralWrapper.formatRespect(t.respect)," respect.",o.default.createElement("br",null),o.default.createElement("br",null),e.member.name," gained the following stat multipliers for ascending:",o.default.createElement("br",null),"Hacking: x",s.numeralWrapper.format(t.hack,"0.000"),o.default.createElement("br",null),"Strength: x",s.numeralWrapper.format(t.str,"0.000"),o.default.createElement("br",null),"Defense: x",s.numeralWrapper.format(t.def,"0.000"),o.default.createElement("br",null),"Dexterity: x",s.numeralWrapper.format(t.dex,"0.000"),o.default.createElement("br",null),"Agility: x",s.numeralWrapper.format(t.agi,"0.000"),o.default.createElement("br",null),"Charisma: x",s.numeralWrapper.format(t.cha,"0.000"),o.default.createElement("br",null))),l.removePopup(e.popupId)}},"Ascend"),o.default.createElement("button",{className:"std-button",onClick:function(){l.removePopup(e.popupId)}},"Cancel"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberStats=void 0;const r=a(n(0)),i=n(12),o=n(20),s=n(3),l=n(79),c=n(1028);t.GangMemberStats=function(e){const t={hack:e.member.calculateAscensionMult(e.member.hack_asc_points),str:e.member.calculateAscensionMult(e.member.str_asc_points),def:e.member.calculateAscensionMult(e.member.def_asc_points),dex:e.member.calculateAscensionMult(e.member.dex_asc_points),agi:e.member.calculateAscensionMult(e.member.agi_asc_points),cha:e.member.calculateAscensionMult(e.member.cha_asc_points)};return r.default.createElement(r.default.Fragment,null,r.default.createElement("span",{className:"tooltiptext smallfont"},"Hk: x",s.numeralWrapper.formatMultiplier(e.member.hack_mult*t.hack),"(x",s.numeralWrapper.formatMultiplier(e.member.hack_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.hack)," Asc)",r.default.createElement("br",null),"St: x",s.numeralWrapper.formatMultiplier(e.member.str_mult*t.str),"(x",s.numeralWrapper.formatMultiplier(e.member.str_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.str)," Asc)",r.default.createElement("br",null),"Df: x",s.numeralWrapper.formatMultiplier(e.member.def_mult*t.def),"(x",s.numeralWrapper.formatMultiplier(e.member.def_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.def)," Asc)",r.default.createElement("br",null),"Dx: x",s.numeralWrapper.formatMultiplier(e.member.dex_mult*t.dex),"(x",s.numeralWrapper.formatMultiplier(e.member.dex_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.dex)," Asc)",r.default.createElement("br",null),"Ag: x",s.numeralWrapper.formatMultiplier(e.member.agi_mult*t.agi),"(x",s.numeralWrapper.formatMultiplier(e.member.agi_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.agi)," Asc)",r.default.createElement("br",null),"Ch: x",s.numeralWrapper.formatMultiplier(e.member.cha_mult*t.cha),"(x",s.numeralWrapper.formatMultiplier(e.member.cha_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.cha)," Asc)"),r.default.createElement("pre",null,"Hacking: ",o.formatNumber(e.member.hack,0)," (",s.numeralWrapper.formatExp(e.member.hack_exp)," exp)",r.default.createElement("br",null),"Strength: ",o.formatNumber(e.member.str,0)," (",s.numeralWrapper.formatExp(e.member.str_exp)," exp)",r.default.createElement("br",null),"Defense: ",o.formatNumber(e.member.def,0)," (",s.numeralWrapper.formatExp(e.member.def_exp)," exp)",r.default.createElement("br",null),"Dexterity: ",o.formatNumber(e.member.dex,0)," (",s.numeralWrapper.formatExp(e.member.dex_exp)," exp)",r.default.createElement("br",null),"Agility: ",o.formatNumber(e.member.agi,0)," (",s.numeralWrapper.formatExp(e.member.agi_exp)," exp)",r.default.createElement("br",null),"Charisma: ",o.formatNumber(e.member.cha,0)," (",s.numeralWrapper.formatExp(e.member.cha_exp)," exp)",r.default.createElement("br",null)),r.default.createElement("br",null),e.member.canAscend()&&r.default.createElement(r.default.Fragment,null,r.default.createElement("button",{className:"accordion-button noselect",onClick:function(){const t=`gang-management-ascend-member ${e.member.name}`;l.createPopup(t,c.AscensionPopup,{member:e.member,gang:e.gang,popupId:t,onAscend:e.onAscend})}},"Ascend"),r.default.createElement("div",{className:"help-tip noselect",style:{marginTop:"5px"},onClick:function(){i.dialogBoxCreate(r.default.createElement(r.default.Fragment,null,"Ascending a Gang Member resets the member's progress and stats in exchange for a permanent boost to their stat multipliers.",r.default.createElement("br",null),r.default.createElement("br",null),"The additional stat multiplier that the Gang Member gains upon ascension is based on the amount of exp they have.",r.default.createElement("br",null),r.default.createElement("br",null),"Upon ascension, the member will lose all of its non-Augmentation Equipment and your gang will lose respect equal to the total respect earned by the member."))}},"?")))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberAccordionContent=void 0;const o=i(n(0)),s=n(1029),l=n(1027),c=n(1026);t.GangMemberAccordionContent=function(e){const t=o.useState(!1)[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"gang-member-info-div tooltip"},o.default.createElement(s.GangMemberStats,{onAscend:()=>t(e=>!e),gang:e.gang,member:e.member})),o.default.createElement("div",{className:"gang-member-info-div"},o.default.createElement(l.TaskSelector,{onTaskChange:()=>t(e=>!e),gang:e.gang,member:e.member})),o.default.createElement("div",{className:"gang-member-info-div"},o.default.createElement(c.TaskDescription,{member:e.member})))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberAccordion=void 0;const r=a(n(0)),i=n(167),o=n(1030);t.GangMemberAccordion=function(e){return r.default.createElement(i.Accordion,{panelInitiallyOpened:!0,headerContent:r.default.createElement(r.default.Fragment,null,e.member.name),panelContent:r.default.createElement(o.GangMemberAccordionContent,{gang:e.gang,member:e.member})})}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberUpgradePopup=void 0;const o=i(n(0)),s=n(20),l=n(3),c=n(183),u=n(31),m=n(79),p=n(506);function d(e){const t=o.useState(!1)[1];function n(t,n){return Object.keys(c.GangMemberUpgrades).filter(a=>{const r=c.GangMemberUpgrades[a];return!e.player.money.lt(e.gang.getUpgradeCost(r))&&(r.type===n&&!t.includes(a))}).map(e=>c.GangMemberUpgrades[e])}const a=n(e.member.upgrades,p.UpgradeType.Weapon),r=n(e.member.upgrades,p.UpgradeType.Armor),i=n(e.member.upgrades,p.UpgradeType.Vehicle),l=n(e.member.upgrades,p.UpgradeType.Rootkit),m=n(e.member.augmentations,p.UpgradeType.Augmentation);function d(e){const t=c.GangMemberUpgrades[e];return o.default.createElement("div",{key:e,className:"gang-owned-upgrade tooltip"},t.name,o.default.createElement("span",{className:"tooltiptext",dangerouslySetInnerHTML:{__html:t.desc}}))}function h(n,a=!1){return o.default.createElement("a",{key:n.name,className:"a-link-button tooltip",style:{margin:"2px",padding:"2px",display:"block",fontSize:"11px"},onClick:function(){e.member.buyUpgrade(n,e.player,e.gang),t(e=>!e)}},n.name," - ",u.Money(e.gang.getUpgradeCost(n)),o.default.createElement("span",{className:a?"tooltiptextleft":"tooltiptext",dangerouslySetInnerHTML:{__html:n.desc}}))}const _=e.member.calculateAscensionMult(e.member.hack_asc_points),g=e.member.calculateAscensionMult(e.member.str_asc_points),f=e.member.calculateAscensionMult(e.member.def_asc_points),y=e.member.calculateAscensionMult(e.member.dex_asc_points),b=e.member.calculateAscensionMult(e.member.agi_asc_points),E=e.member.calculateAscensionMult(e.member.cha_asc_points);return o.default.createElement("div",{style:{border:"1px solid white"}},o.default.createElement("h1",null,e.member.name,"(",e.member.task,")"),o.default.createElement("pre",{style:{fontSize:"14px",display:"inline-block",width:"20%"}},"Hack: ",e.member.hack," (x",s.formatNumber(e.member.hack_mult*_,2),")",o.default.createElement("br",null),"Str: ",e.member.str," (x",s.formatNumber(e.member.str_mult*g,2),")",o.default.createElement("br",null),"Def: ",e.member.def," (x",s.formatNumber(e.member.def_mult*f,2),")",o.default.createElement("br",null),"Dex: ",e.member.dex," (x",s.formatNumber(e.member.dex_mult*y,2),")",o.default.createElement("br",null),"Agi: ",e.member.agi," (x",s.formatNumber(e.member.agi_mult*b,2),")",o.default.createElement("br",null),"Cha: ",e.member.cha," (x",s.formatNumber(e.member.cha_mult*E,2),")"),o.default.createElement("div",{className:"gang-owned-upgrades-div noselect"},"Purchased Upgrades: ",e.member.upgrades.map(e=>d(e)),e.member.augmentations.map(e=>d(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Weapons"),a.map(e=>h(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Armor"),r.map(e=>h(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Vehicles"),i.map(e=>h(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Rootkits"),l.map(e=>h(e,!0))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Augmentations"),m.map(e=>h(e,!0))))}t.GangMemberUpgradePopup=function(e){const t=o.useState(!1)[1],[n,a]=o.useState("");function r(t){27===t.keyCode&&m.removePopup(e.popupId)}return o.useEffect(()=>{window.addEventListener("keydown",r);const e=setInterval(()=>t(e=>!e),1e3);return()=>{clearInterval(e),window.removeEventListener("keydown",r)}},[]),o.default.createElement(o.default.Fragment,null,o.default.createElement("input",{className:"text-input noselect",value:n,placeholder:"Filter gang member",onChange:e=>a(e.target.value)}),o.default.createElement("p",{className:"tooltip",style:{marginLeft:"6px",display:"inline-block"}},"Discount: -",l.numeralWrapper.formatPercentage(1-1/e.gang.getDiscount()),o.default.createElement("span",{className:"tooltiptext noselect"},"You get a discount on equipment and upgrades based on your gang's respect and power. More respect and power leads to more discounts.")),e.gang.members.map(t=>o.default.createElement(d,{key:t.name,player:e.player,gang:e.gang,member:t})))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberList=void 0;const o=i(n(0)),s=n(1032),l=n(1031),c=n(79),u=n(1025);t.GangMemberList=function(e){const[t,n]=o.useState(""),a=o.useState(!1)[1],r=e.gang.members.filter(e=>e.name.indexOf(t)>-1||e.task.indexOf(t)>-1);return o.default.createElement(o.default.Fragment,null,o.default.createElement(u.RecruitButton,{onRecruit:()=>a(e=>!e),gang:e.gang}),o.default.createElement("br",null),o.default.createElement("input",{className:"text-input noselect",placeholder:"Filter gang member",style:{margin:"5px",padding:"5px"},value:t,onChange:function(e){n(e.target.value)}}),o.default.createElement("a",{className:"a-link-button",style:{display:"inline-block"},onClick:function(){c.createPopup("gang-upgrade-popup",s.GangMemberUpgradePopup,{gang:e.gang,player:e.player,popupId:"gang-upgrade-popup"})}},"Manage Equipment"),o.default.createElement("ul",null,r.map(t=>o.default.createElement("li",{key:t.name},o.default.createElement(l.GangMemberAccordion,{gang:e.gang,member:t})))))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BonusTime=void 0;const o=i(n(0)),s=n(11),l=n(20);t.BonusTime=function(e){const t=1e3/s.CONSTANTS._idleSpeed;if(e.gang.storedCycles/t*1e3<=5e3)return o.createElement(o.Fragment,null);const n=e.gang.storedCycles/t*1e3;return o.createElement(o.Fragment,null,o.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Bonus time: ",l.convertTimeMsToTimeElapsedString(n),o.createElement("span",{className:"tooltiptext noselect"},"You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by the browser). Bonus time makes the Gang mechanic progress faster, up to 5x the normal speed.")),o.createElement("br",null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GangStats=void 0;const r=a(n(0)),i=n(16),o=n(20),s=n(3),l=n(125),c=n(67),u=n(93),m=n(1034);t.GangStats=function(e){const t=100*u.AllGangs[e.gang.facName].territory;let n;return n=t<=0?o.formatNumber(0,2):t>=100?o.formatNumber(100,2):o.formatNumber(t,2),r.default.createElement(r.default.Fragment,null,r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Respect: ",s.numeralWrapper.formatRespect(e.gang.respect)," (",s.numeralWrapper.formatRespect(5*e.gang.respectGainRate)," / sec)",r.default.createElement("span",{className:"tooltiptext"},"Represents the amount of respect your gang has from other gangs and criminal organizations. Your respect affects the amount of money your gang members will earn, and also determines how much reputation you are earning with your gang's corresponding Faction.")),r.default.createElement("br",null),r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Wanted Level: ",s.numeralWrapper.formatWanted(e.gang.wanted)," (",s.numeralWrapper.formatWanted(5*e.gang.wantedGainRate)," / sec)",r.default.createElement("span",{className:"tooltiptext"},"Represents how much the gang is wanted by law enforcement. The higher your gang's wanted level, the harder it will be for your gang members to make money and earn respect. Note that the minimum wanted level is 1.")),r.default.createElement("br",null),r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Wanted Level Penalty: -",o.formatNumber(100*(1-e.gang.getWantedPenalty()),2),"%",r.default.createElement("span",{className:"tooltiptext"},"Penalty for respect and money gain rates due to Wanted Level")),r.default.createElement("br",null),r.default.createElement("div",null,r.default.createElement("p",{style:{display:"inline-block"}},"Money gain rate: ",l.MoneyRate(5*e.gang.moneyGainRate))),r.default.createElement("br",null),r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Territory: ",n,"%",r.default.createElement("span",{className:"tooltiptext"},"The percentage of total territory your Gang controls")),r.default.createElement("br",null),r.default.createElement("p",{style:{display:"inline-block"}},"Faction reputation: ",c.Reputation(i.Factions[e.gang.facName].playerReputation)),r.default.createElement("br",null),r.default.createElement(m.BonusTime,{gang:e.gang}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagementSubpage=void 0;const r=a(n(0)),i=n(1035),o=n(1033);t.ManagementSubpage=function(e){return r.default.createElement("div",{style:{display:"block"}},r.default.createElement("p",{className:"noselect",style:{width:"70%"}},"This page is used to manage your gang members and get an overview of your gang's stats.",r.default.createElement("br",null),r.default.createElement("br",null),"If a gang member is not earning much money or respect, the task that you have assigned to that member might be too difficult. Consider training that member's stats or choosing an easier task. The tasks closer to the top of the dropdown list are generally easier. Alternatively, the gang member's low production might be due to the fact that your wanted level is too high. Consider assigning a few members to the '",e.gang.isHackingGang?"Ethical Hacking":"Vigilante Justice","' task to lower your wanted level.",r.default.createElement("br",null),r.default.createElement("br",null),"Installing Augmentations does NOT reset your progress with your Gang. Furthermore, after installing Augmentations, you will automatically be a member of whatever Faction you created your gang with.",r.default.createElement("br",null),r.default.createElement("br",null),"You can also manage your gang programmatically through Netscript using the Gang API"),r.default.createElement("br",null),r.default.createElement(i.GangStats,{gang:e.gang}),r.default.createElement("br",null),r.default.createElement(o.GangMemberList,{gang:e.gang,player:e.player}))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Root=void 0;const o=i(n(0)),s=n(1036),l=n(1023),c=n(80);t.Root=function(e){const[t,n]=o.useState(!0),a=o.useState(!1)[1];return o.useEffect(()=>{const e=setInterval(()=>a(e=>!e),1e3);return()=>clearInterval(e)},[]),o.default.createElement(o.default.Fragment,null,o.default.createElement("a",{className:"a-link-button",style:{display:"inline-block"},onClick:function(){e.engine.loadFactionContent(),c.displayFactionContent(e.gang.facName)}},"Back"),o.default.createElement("a",{className:t?"a-link-button-inactive":"a-link-button",style:{display:"inline-block"},onClick:()=>n(!0)},"Gang Management"),o.default.createElement("a",{className:t?"a-link-button":"a-link-button-inactive",style:{display:"inline-block"},onClick:()=>n(!1)},"Gang Territory"),t?o.default.createElement(s.ManagementSubpage,{gang:e.gang,player:e.player}):o.default.createElement(l.TerritorySubpage,{gang:e.gang}))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PurchasedAugmentations=void 0;const o=i(n(0)),s=n(14),l=n(4),c=n(1),u=n(667);t.PurchasedAugmentations=function(){const e=[];let t=-1;for(let e=c.Player.queuedAugmentations.length-1;e>=0;e--)if(c.Player.queuedAugmentations[e].name===l.AugmentationNames.NeuroFluxGovernor){t=e;break}for(let n=0;n
Price Forecast indicates the probability the stock has of increasing or decreasing. A '+' forecast means the stock has a higher chance of increasing than decreasing, and a '-' means the opposite. The number of '+/-' symbols is used to illustrate the magnitude of these probabilities. For example, '+++' means that the stock has a significantly higher chance of increasing than decreasing, while '+' means that the stock only has a slightly higher chance of increasing than decreasing.
Volatility represents the maximum percentage by which a stock's price can change every tick (a tick occurs every few seconds while the game is running).
A stock's price forecast can change over time. This is also affected by volatility. The more volatile a stock is, the more its price forecast will change.")}purchaseWseAccount(){if(this.props.p.hasWseAccount)return;if(!this.props.p.canAfford(l.CONSTANTS.WSEAccountCost))return;this.props.p.hasWseAccount=!0,this.props.initStockMarket(),this.props.p.loseMoney(l.CONSTANTS.WSEAccountCost),this.props.rerender();const e=document.getElementById("world-menu-header");e instanceof HTMLElement&&(e.click(),e.click())}purchaseTixApiAccess(){this.props.p.hasTixApiAccess||this.props.p.canAfford(l.CONSTANTS.TIXAPICost)&&(this.props.p.hasTixApiAccess=!0,this.props.p.loseMoney(l.CONSTANTS.TIXAPICost),this.props.rerender())}purchase4SMarketData(){this.props.p.has4SData||this.props.p.canAfford(s.getStockMarket4SDataCost())&&(this.props.p.has4SData=!0,this.props.p.loseMoney(s.getStockMarket4SDataCost()),this.props.rerender())}purchase4SMarketDataTixApiAccess(){this.props.p.has4SDataTixApi||this.props.p.canAfford(s.getStockMarket4STixApiCost())&&(this.props.p.has4SDataTixApi=!0,this.props.p.loseMoney(s.getStockMarket4STixApiCost()),this.props.rerender())}renderPurchaseWseAccountButton(){if(this.props.p.hasWseAccount)return o.createElement(u.StdButtonPurchased,{text:"WSE Account - Purchased"});{const e=l.CONSTANTS.WSEAccountCost;return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e),onClick:this.purchaseWseAccount,text:o.createElement(o.Fragment,null,"Buy WSE Account - ",m.Money(e))})}}renderPurchaseTixApiAccessButton(){if(this.props.p.hasTixApiAccess)return o.createElement(u.StdButtonPurchased,{text:"TIX API Access - Purchased"});{const e=l.CONSTANTS.TIXAPICost;return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e)||!this.props.p.hasWseAccount,onClick:this.purchaseTixApiAccess,style:d,text:o.createElement(o.Fragment,null,"Buy Trade Information eXchange (TIX) API Access - ",m.Money(e))})}}renderPurchase4SMarketDataButton(){if(this.props.p.has4SData)return o.createElement(u.StdButtonPurchased,{text:"4S Market Data - Purchased",tooltip:"Lets you view additional pricing and volatility information about stocks"});{const e=s.getStockMarket4SDataCost();return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e)||!this.props.p.hasWseAccount,onClick:this.purchase4SMarketData,text:o.createElement(o.Fragment,null,"Buy 4S Market Data Access - ",m.Money(e)),tooltip:"Lets you view additional pricing and volatility information about stocks"})}}renderPurchase4SMarketDataTixApiAccessButton(){if(this.props.p.hasTixApiAccess){if(this.props.p.has4SDataTixApi)return o.createElement(u.StdButtonPurchased,{text:"4S Market Data TIX API - Purchased",tooltip:"Let you access 4S Market Data through Netscript"});{const e=s.getStockMarket4STixApiCost();return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e),onClick:this.purchase4SMarketDataTixApiAccess,text:o.createElement(o.Fragment,null,"Buy 4S Market Data TIX API Access - ",m.Money(e)),tooltip:"Let you access 4S Market Data through Netscript"})}}return o.createElement(c.StdButton,{disabled:!0,text:"Buy 4S Market Data TIX API Access",tooltip:"Requires TIX API Access"})}render(){return o.createElement("div",{className:"stock-market-info-and-purchases"},o.createElement("p",null,"Welcome to the World Stock Exchange (WSE)!"),o.createElement("button",{className:"std-button"},o.createElement("a",{href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/stockmarket.html",target:"_blank"},"Investopedia")),o.createElement("br",null),o.createElement("p",null,"To begin trading, you must first purchase an account:"),this.renderPurchaseWseAccountButton(),o.createElement("h2",null,"Trade Information eXchange (TIX) API"),o.createElement("p",null,"TIX, short for Trade Information eXchange, is the communications protocol used by the WSE. Purchasing access to the TIX API lets you write code to create your own algorithmic/automated trading strategies."),this.renderPurchaseTixApiAccessButton(),o.createElement("h2",null,"Four Sigma (4S) Market Data Feed"),o.createElement("p",null,"Four Sigma's (4S) Market Data Feed provides information about stocks that will help your trading strategies."),this.renderPurchase4SMarketDataButton(),o.createElement("button",{className:"help-tip-big",onClick:this.handleClick4SMarketDataHelpTip},"?"),this.renderPurchase4SMarketDataTixApiAccessButton(),o.createElement("p",null,"Commission Fees: Every transaction you make has a ",m.Money(l.CONSTANTS.StockMarketCommission)," commission fee."),o.createElement("br",null),o.createElement("p",null,"WARNING: When you reset after installing Augmentations, the Stock Market is reset. You will retain your WSE Account, access to the TIX API, and 4S Market Data access. However, all of your stock positions are lost, so make sure to sell your stocks before installing Augmentations!"))}}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.StockMarketRoot=void 0;const o=i(n(0)),s=n(1071),l=n(1070);t.StockMarketRoot=class extends o.Component{constructor(e){super(e),this.state={rerenderFlag:!1},this.rerender=this.rerender.bind(this)}rerender(){this.setState(e=>({rerenderFlag:!e.rerenderFlag}))}render(){return o.createElement("div",null,o.createElement(s.InfoAndPurchases,{initStockMarket:this.props.initStockMarket,p:this.props.p,rerender:this.rerender}),this.props.p.hasWseAccount&&o.createElement(l.StockTickers,{buyStockLong:this.props.buyStockLong,buyStockShort:this.props.buyStockShort,cancelOrder:this.props.cancelOrder,eventEmitterForReset:this.props.eventEmitterForReset,p:this.props.p,placeOrder:this.props.placeOrder,sellStockLong:this.props.sellStockLong,sellStockShort:this.props.sellStockShort,stockMarket:this.props.stockMarket}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitStockMetadata=void 0;const a=n(299),r=n(47);t.InitStockMetadata=[{b:!0,initPrice:{max:28e3,min:17e3},marketCap:24e11,mv:{divisor:100,max:50,min:40},name:r.LocationName.AevumECorp,otlkMag:19,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.AevumECorp]},{b:!0,initPrice:{max:34e3,min:24e3},marketCap:24e11,mv:{divisor:100,max:50,min:40},name:r.LocationName.Sector12MegaCorp,otlkMag:19,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12MegaCorp]},{b:!0,initPrice:{max:25e3,min:12e3},marketCap:16e11,mv:{divisor:100,max:80,min:70},name:r.LocationName.Sector12BladeIndustries,otlkMag:13,spreadPerc:{divisor:10,max:6,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12BladeIndustries]},{b:!0,initPrice:{max:25e3,min:1e4},marketCap:15e11,mv:{divisor:100,max:75,min:65},name:r.LocationName.AevumClarkeIncorporated,otlkMag:12,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.AevumClarkeIncorporated]},{b:!0,initPrice:{max:43e3,min:32e3},marketCap:18e11,mv:{divisor:100,max:70,min:60},name:r.LocationName.VolhavenOmniTekIncorporated,otlkMag:12,spreadPerc:{divisor:10,max:6,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.VolhavenOmniTekIncorporated]},{b:!0,initPrice:{max:8e4,min:5e4},marketCap:2e12,mv:{divisor:100,max:110,min:100},name:r.LocationName.Sector12FourSigma,otlkMag:17,spreadPerc:{divisor:10,max:10,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12FourSigma]},{b:!0,initPrice:{max:28e3,min:16e3},marketCap:19e11,mv:{divisor:100,max:85,min:75},name:r.LocationName.ChongqingKuaiGongInternational,otlkMag:10,spreadPerc:{divisor:10,max:7,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.ChongqingKuaiGongInternational]},{b:!0,initPrice:{max:36e3,min:29e3},marketCap:2e12,mv:{divisor:100,max:130,min:120},name:r.LocationName.AevumFulcrumTechnologies,otlkMag:16,spreadPerc:{divisor:10,max:10,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.AevumFulcrumTechnologies]},{b:!0,initPrice:{max:25e3,min:2e4},marketCap:12e11,mv:{divisor:100,max:90,min:80},name:r.LocationName.IshimaStormTechnologies,otlkMag:7,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.IshimaStormTechnologies]},{b:!0,initPrice:{max:19e3,min:6e3},marketCap:9e11,mv:{divisor:100,max:70,min:60},name:r.LocationName.NewTokyoDefComm,otlkMag:10,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.NewTokyoDefComm]},{b:!0,initPrice:{max:18e3,min:1e4},marketCap:825e9,mv:{divisor:100,max:65,min:55},name:r.LocationName.VolhavenHeliosLabs,otlkMag:9,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.VolhavenHeliosLabs]},{b:!0,initPrice:{max:14e3,min:8e3},marketCap:1e12,mv:{divisor:100,max:80,min:70},name:r.LocationName.NewTokyoVitaLife,otlkMag:7,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.NewTokyoVitaLife]},{b:!0,initPrice:{max:24e3,min:12e3},marketCap:8e11,mv:{divisor:100,max:70,min:60},name:r.LocationName.Sector12IcarusMicrosystems,otlkMag:7.5,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.Sector12IcarusMicrosystems]},{b:!0,initPrice:{max:29e3,min:16e3},marketCap:9e11,mv:{divisor:100,max:60,min:50},name:r.LocationName.Sector12UniversalEnergy,otlkMag:10,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.Sector12UniversalEnergy]},{b:!0,initPrice:{max:17e3,min:8e3},marketCap:64e10,mv:{divisor:100,max:65,min:55},name:r.LocationName.AevumAeroCorp,otlkMag:6,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.AevumAeroCorp]},{b:!0,initPrice:{max:15e3,min:6e3},marketCap:6e11,mv:{divisor:100,max:75,min:65},name:r.LocationName.VolhavenOmniaCybersystems,otlkMag:4.5,spreadPerc:{divisor:10,max:11,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.VolhavenOmniaCybersystems]},{b:!0,initPrice:{max:28e3,min:14e3},marketCap:705e9,mv:{divisor:100,max:80,min:70},name:r.LocationName.ChongqingSolarisSpaceSystems,otlkMag:8.5,spreadPerc:{divisor:10,max:12,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.ChongqingSolarisSpaceSystems]},{b:!0,initPrice:{max:3e4,min:12e3},marketCap:695e9,mv:{divisor:100,max:65,min:55},name:r.LocationName.NewTokyoGlobalPharmaceuticals,otlkMag:10.5,spreadPerc:{divisor:10,max:10,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.NewTokyoGlobalPharmaceuticals]},{b:!0,initPrice:{max:27e3,min:15e3},marketCap:6e11,mv:{divisor:100,max:80,min:70},name:r.LocationName.IshimaNovaMedical,otlkMag:5,spreadPerc:{divisor:10,max:11,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.IshimaNovaMedical]},{b:!0,initPrice:{max:8500,min:4e3},marketCap:45e10,mv:{divisor:100,max:260,min:240},name:r.LocationName.AevumWatchdogSecurity,otlkMag:1.5,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:54e3,min:12e3},symbol:a.StockSymbols[r.LocationName.AevumWatchdogSecurity]},{b:!0,initPrice:{max:8e3,min:4500},marketCap:3e11,mv:{divisor:100,max:135,min:115},name:r.LocationName.VolhavenLexoCorp,otlkMag:6,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.VolhavenLexoCorp]},{b:!0,initPrice:{max:7e3,min:2e3},marketCap:18e10,mv:{divisor:100,max:70,min:50},name:r.LocationName.AevumRhoConstruction,otlkMag:1,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:126e3,min:6e4},symbol:a.StockSymbols[r.LocationName.AevumRhoConstruction]},{b:!0,initPrice:{max:8500,min:4e3},marketCap:24e10,mv:{divisor:100,max:205,min:175},name:r.LocationName.Sector12AlphaEnterprises,otlkMag:10,spreadPerc:{divisor:10,max:16,min:5},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12AlphaEnterprises]},{b:!0,initPrice:{max:8e3,min:3e3},marketCap:2e11,mv:{divisor:100,max:170,min:150},name:r.LocationName.VolhavenSysCoreSecurities,otlkMag:3,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:9e4,min:15e3},symbol:a.StockSymbols[r.LocationName.VolhavenSysCoreSecurities]},{b:!0,initPrice:{max:6e3,min:1e3},marketCap:185e9,mv:{divisor:100,max:100,min:80},name:r.LocationName.VolhavenCompuTek,otlkMag:4,spreadPerc:{divisor:10,max:12,min:4},shareTxForMovement:{max:126e3,min:6e4},symbol:a.StockSymbols[r.LocationName.VolhavenCompuTek]},{b:!0,initPrice:{max:5e3,min:1e3},marketCap:58e9,mv:{divisor:100,max:400,min:200},name:r.LocationName.AevumNetLinkTechnologies,otlkMag:1,spreadPerc:{divisor:10,max:20,min:5},shareTxForMovement:{max:54e3,min:18e3},symbol:a.StockSymbols[r.LocationName.AevumNetLinkTechnologies]},{b:!0,initPrice:{max:8e3,min:1e3},marketCap:6e10,mv:{divisor:100,max:110,min:90},name:r.LocationName.IshimaOmegaSoftware,otlkMag:.5,spreadPerc:{divisor:10,max:13,min:4},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.IshimaOmegaSoftware]},{b:!1,initPrice:{max:4500,min:500},marketCap:45e9,mv:{divisor:100,max:80,min:70},name:r.LocationName.Sector12FoodNStuff,otlkMag:1,spreadPerc:{divisor:10,max:10,min:6},shareTxForMovement:{max:18e4,min:6e4},symbol:a.StockSymbols[r.LocationName.Sector12FoodNStuff]},{b:!0,initPrice:{max:3500,min:1500},marketCap:3e10,mv:{divisor:100,max:275,min:100},name:"Sigma Cosmetics",otlkMag:0,spreadPerc:{divisor:10,max:14,min:6},shareTxForMovement:{max:7e4,min:2e4},symbol:a.StockSymbols["Sigma Cosmetics"]},{b:!0,initPrice:{max:1500,min:250},marketCap:42e9,mv:{divisor:100,max:350,min:200},name:"Joes Guns",otlkMag:1,spreadPerc:{divisor:10,max:14,min:6},shareTxForMovement:{max:52e3,min:15e3},symbol:a.StockSymbols["Joes Guns"]},{b:!0,initPrice:{max:1500,min:250},marketCap:1e11,mv:{divisor:100,max:175,min:120},name:"Catalyst Ventures",otlkMag:13.5,spreadPerc:{divisor:10,max:14,min:5},shareTxForMovement:{max:72e3,min:24e3},symbol:a.StockSymbols["Catalyst Ventures"]},{b:!0,initPrice:{max:3e4,min:15e3},marketCap:36e10,mv:{divisor:100,max:80,min:70},name:"Microdyne Technologies",otlkMag:8,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:216e3,min:9e4},symbol:a.StockSymbols["Microdyne Technologies"]},{b:!0,initPrice:{max:24e3,min:12e3},marketCap:42e10,mv:{divisor:100,max:70,min:50},name:"Titan Laboratories",otlkMag:11,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:216e3,min:9e4},symbol:a.StockSymbols["Titan Laboratories"]}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TicksPerCycle=void 0,t.TicksPerCycle=75},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.processOrders=void 0;const o=n(182),s=n(199),l=n(115),c=n(103),u=n(3),m=n(31),p=n(12),d=i(n(0));function h(e,t){const n=t.symbolToStockMap[e.stockSymbol];if(!(n instanceof s.Stock))return void console.error(`Could not find stock for this order: ${e.stockSymbol}`);const a=t.stockMarket.Orders[n.symbol],r={rerenderFn:t.rerenderFn,suppressDialog:!0};let i=!0,h=!1;switch(e.type){case l.OrderTypes.LimitBuy:case l.OrderTypes.StopBuy:h=!0,e.pos===c.PositionTypes.Long?i=o.buyStock(n,e.shares,null,r)&&i:e.pos===c.PositionTypes.Short&&(i=o.shortStock(n,e.shares,null,r)&&i);break;case l.OrderTypes.LimitSell:case l.OrderTypes.StopSell:e.pos===c.PositionTypes.Long?i=o.sellStock(n,e.shares,null,r)&&i:e.pos===c.PositionTypes.Short&&(i=o.sellShort(n,e.shares,null,r)&&i);break;default:return void console.warn(`Invalid order type: ${e.type}`)}const _=e.pos===c.PositionTypes.Long?"Long":"Short";if(i){for(let r=0;r
")}getType(){switch(this.type){case a.UpgradeType.Weapon:return"Weapon";case a.UpgradeType.Armor:return"Armor";case a.UpgradeType.Vehicle:return"Vehicle";case a.UpgradeType.Rootkit:return"Rootkit";case a.UpgradeType.Augmentation:return"Augmentation";default:return""}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GangMember=void 0;const a=n(702),r=n(300),i=n(183),o=n(93),s=n(27);class l{constructor(e=""){this.task="Unassigned",this.earnedRespect=0,this.hack=1,this.str=1,this.def=1,this.dex=1,this.agi=1,this.cha=1,this.hack_exp=0,this.str_exp=0,this.def_exp=0,this.dex_exp=0,this.agi_exp=0,this.cha_exp=0,this.hack_mult=1,this.str_mult=1,this.def_mult=1,this.dex_mult=1,this.agi_mult=1,this.cha_mult=1,this.hack_asc_points=0,this.str_asc_points=0,this.def_asc_points=0,this.dex_asc_points=0,this.agi_asc_points=0,this.cha_asc_points=0,this.upgrades=[],this.augmentations=[],this.name=e}calculateSkill(e,t=1){return Math.max(Math.floor(t*(32*Math.log(e+534.5)-200)),1)}calculateAscensionMult(e){return Math.max(Math.pow(e/4e3,.7),1)}updateSkillLevels(){this.hack=this.calculateSkill(this.hack_exp,this.hack_mult*this.calculateAscensionMult(this.hack_asc_points)),this.str=this.calculateSkill(this.str_exp,this.str_mult*this.calculateAscensionMult(this.str_asc_points)),this.def=this.calculateSkill(this.def_exp,this.def_mult*this.calculateAscensionMult(this.def_asc_points)),this.dex=this.calculateSkill(this.dex_exp,this.dex_mult*this.calculateAscensionMult(this.dex_asc_points)),this.agi=this.calculateSkill(this.agi_exp,this.agi_mult*this.calculateAscensionMult(this.agi_asc_points)),this.cha=this.calculateSkill(this.cha_exp,this.cha_mult*this.calculateAscensionMult(this.cha_asc_points))}calculatePower(){return(this.hack+this.str+this.def+this.dex+this.agi+this.cha)/95}assignToTask(e){return r.GangMemberTasks.hasOwnProperty(e)?(this.task=e,!0):(this.task="Unassigned",!1)}unassignFromTask(){this.task="Unassigned"}getTask(){return this.task instanceof a.GangMemberTask&&(this.task=this.task.name),r.GangMemberTasks.hasOwnProperty(this.task)?r.GangMemberTasks[this.task]:r.GangMemberTasks.Unassigned}calculateRespectGain(e){const t=this.getTask();if(0===t.baseRespect)return 0;let n=t.hackWeight/100*this.hack+t.strWeight/100*this.str+t.defWeight/100*this.def+t.dexWeight/100*this.dex+t.agiWeight/100*this.agi+t.chaWeight/100*this.cha;if((n-=4*t.difficulty)<=0)return 0;const a=Math.max(.005,Math.pow(100*o.AllGangs[e.facName].territory,t.territory.respect)/100);if(isNaN(a)||a<=0)return 0;const r=e.getWantedPenalty();return 11*t.baseRespect*n*a*r}calculateWantedLevelGain(e){const t=this.getTask();if(0===t.baseWanted)return 0;let n=t.hackWeight/100*this.hack+t.strWeight/100*this.str+t.defWeight/100*this.def+t.dexWeight/100*this.dex+t.agiWeight/100*this.agi+t.chaWeight/100*this.cha;if((n-=3.5*t.difficulty)<=0)return 0;const a=Math.max(.005,Math.pow(100*o.AllGangs[e.facName].territory,t.territory.wanted)/100);if(isNaN(a)||a<=0)return 0;if(t.baseWanted<0)return.4*t.baseWanted*n*a;const r=7*t.baseWanted/Math.pow(3*n*a,.8);return Math.min(100,r)}calculateMoneyGain(e){const t=this.getTask();if(0===t.baseMoney)return 0;let n=t.hackWeight/100*this.hack+t.strWeight/100*this.str+t.defWeight/100*this.def+t.dexWeight/100*this.dex+t.agiWeight/100*this.agi+t.chaWeight/100*this.cha;if((n-=3.2*t.difficulty)<=0)return 0;const a=Math.max(.005,Math.pow(100*o.AllGangs[e.facName].territory,t.territory.money)/100);if(isNaN(a)||a<=0)return 0;const r=e.getWantedPenalty();return 5*t.baseMoney*n*a*r}expMult(){return{hack:(this.hack_mult-1)/4+1,str:(this.str_mult-1)/4+1,def:(this.def_mult-1)/4+1,dex:(this.dex_mult-1)/4+1,agi:(this.agi_mult-1)/4+1,cha:(this.cha_mult-1)/4+1}}gainExperience(e=1){const t=this.getTask();if(t===r.GangMemberTasks.Unassigned)return;const n=Math.pow(t.difficulty,.9)*e,a=this.expMult();this.hack_exp+=t.hackWeight/1500*n*a.hack,this.str_exp+=t.strWeight/1500*n*a.str,this.def_exp+=t.defWeight/1500*n*a.def,this.dex_exp+=t.dexWeight/1500*n*a.dex,this.agi_exp+=t.agiWeight/1500*n*a.agi,this.cha_exp+=t.chaWeight/1500*n*a.cha}recordEarnedRespect(e=1,t){this.earnedRespect+=this.calculateRespectGain(t)*e}getGainedAscensionPoints(){return{hack:Math.max(this.hack_exp-1e3,0),str:Math.max(this.str_exp-1e3,0),def:Math.max(this.def_exp-1e3,0),dex:Math.max(this.dex_exp-1e3,0),agi:Math.max(this.agi_exp-1e3,0),cha:Math.max(this.cha_exp-1e3,0)}}canAscend(){const e=this.getGainedAscensionPoints();return e.hack>0||e.str>0||e.def>0||e.dex>0||e.agi>0||e.cha>0}getAscensionResults(){const e=this.getGainedAscensionPoints();return{hack:this.calculateAscensionMult(this.hack_asc_points+e.hack)/this.calculateAscensionMult(this.hack_asc_points),str:this.calculateAscensionMult(this.str_asc_points+e.str)/this.calculateAscensionMult(this.str_asc_points),def:this.calculateAscensionMult(this.def_asc_points+e.def)/this.calculateAscensionMult(this.def_asc_points),dex:this.calculateAscensionMult(this.dex_asc_points+e.dex)/this.calculateAscensionMult(this.dex_asc_points),agi:this.calculateAscensionMult(this.agi_asc_points+e.agi)/this.calculateAscensionMult(this.agi_asc_points),cha:this.calculateAscensionMult(this.cha_asc_points+e.cha)/this.calculateAscensionMult(this.cha_asc_points)}}ascend(){const e=this.getAscensionResults(),t=this.getGainedAscensionPoints();this.hack_asc_points+=t.hack,this.str_asc_points+=t.str,this.def_asc_points+=t.def,this.dex_asc_points+=t.dex,this.agi_asc_points+=t.agi,this.cha_asc_points+=t.cha,this.upgrades.length=0,this.hack_mult=1,this.str_mult=1,this.def_mult=1,this.dex_mult=1,this.agi_mult=1,this.cha_mult=1;for(let e=0;e
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Ransomware",params:{baseRespect:5e-5,baseWanted:1e-4,baseMoney:1,hackWeight:100,difficulty:1}},{desc:"Assign this gang member to attempt phishing scams and attacks
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Phishing",params:{baseRespect:8e-5,baseWanted:.003,baseMoney:2.5,hackWeight:85,chaWeight:15,difficulty:3.5}},{desc:"Assign this gang member to attempt identity theft
Earns money - Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Identity Theft",params:{baseRespect:1e-4,baseWanted:.075,baseMoney:6,hackWeight:80,chaWeight:20,difficulty:5}},{desc:"Assign this gang member to carry out DDoS attacks
Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"DDoS Attacks",params:{baseRespect:4e-4,baseWanted:.2,hackWeight:100,difficulty:8}},{desc:"Assign this gang member to create and distribute malicious viruses
Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Plant Virus",params:{baseRespect:6e-4,baseWanted:.4,hackWeight:100,difficulty:12}},{desc:"Assign this gang member to commit financial fraud and digital counterfeiting
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Fraud & Counterfeiting",params:{baseRespect:4e-4,baseWanted:.3,baseMoney:15,hackWeight:80,chaWeight:20,difficulty:20}},{desc:"Assign this gang member to launder money
Earns money - Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Money Laundering",params:{baseRespect:.001,baseWanted:1.25,baseMoney:120,hackWeight:75,chaWeight:25,difficulty:25}},{desc:"Assign this gang member to commit acts of cyberterrorism
Greatly increases respect - Greatly increases wanted level",isCombat:!1,isHacking:!0,name:"Cyberterrorism",params:{baseRespect:.01,baseWanted:6,hackWeight:80,chaWeight:20,difficulty:36}},{desc:"Assign this gang member to be an ethical hacker for corporations
Earns money - Lowers wanted level",isCombat:!1,isHacking:!0,name:"Ethical Hacking",params:{baseWanted:-.001,baseMoney:1,hackWeight:90,chaWeight:10,difficulty:1}},{desc:"Assign this gang member to mug random people on the streets
Earns money - Slightly increases respect - Very slightly increases wanted level",isCombat:!0,isHacking:!1,name:"Mug People",params:{baseRespect:5e-5,baseWanted:5e-5,baseMoney:1.2,strWeight:25,defWeight:25,dexWeight:25,agiWeight:10,chaWeight:15,difficulty:1}},{desc:"Assign this gang member to sell drugs
Earns money - Slightly increases respect - Slightly increases wanted level - Scales slightly with territory",isCombat:!0,isHacking:!1,name:"Deal Drugs",params:{baseRespect:6e-5,baseWanted:.002,baseMoney:5,agiWeight:20,dexWeight:20,chaWeight:60,difficulty:3.5,territory:{money:1.2,respect:1,wanted:1.15}}},{desc:"Assign this gang member to extort civilians in your territory
Earns money - Slightly increases respect - Increases wanted - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Strongarm Civilians",params:{baseRespect:4e-5,baseWanted:.02,baseMoney:2.5,hackWeight:10,strWeight:25,defWeight:25,dexWeight:20,agiWeight:10,chaWeight:10,difficulty:5,territory:{money:1.6,respect:1.1,wanted:1.5}}},{desc:"Assign this gang member to run cons
Earns money - Increases respect - Increases wanted level",isCombat:!0,isHacking:!1,name:"Run a Con",params:{baseRespect:12e-5,baseWanted:.05,baseMoney:15,strWeight:5,defWeight:5,agiWeight:25,dexWeight:25,chaWeight:40,difficulty:14}},{desc:"Assign this gang member to commit armed robbery on stores, banks and armored cars
Earns money - Increases respect - Increases wanted level",isCombat:!0,isHacking:!1,name:"Armed Robbery",params:{baseRespect:14e-5,baseWanted:.1,baseMoney:38,hackWeight:20,strWeight:15,defWeight:15,agiWeight:10,dexWeight:20,chaWeight:20,difficulty:20}},{desc:"Assign this gang member to traffick illegal arms
Earns money - Increases respect - Increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Traffick Illegal Arms",params:{baseRespect:2e-4,baseWanted:.24,baseMoney:58,hackWeight:15,strWeight:20,defWeight:20,dexWeight:20,chaWeight:25,difficulty:32,territory:{money:1.4,respect:1.3,wanted:1.25}}},{desc:"Assign this gang member to threaten and black mail high-profile targets
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!0,isHacking:!1,name:"Threaten & Blackmail",params:{baseRespect:2e-4,baseWanted:.125,baseMoney:24,hackWeight:25,strWeight:25,dexWeight:25,chaWeight:25,difficulty:28}},{desc:"Assign this gang member to engage in human trafficking operations
Earns money - Increases respect - Increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Human Trafficking",params:{baseRespect:.004,baseWanted:1.25,baseMoney:120,hackWeight:30,strWeight:5,defWeight:5,dexWeight:30,chaWeight:30,difficulty:36,territory:{money:1.5,respect:1.5,wanted:1.6}}},{desc:"Assign this gang member to commit acts of terrorism
Greatly increases respect - Greatly increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Terrorism",params:{baseRespect:.01,baseWanted:6,hackWeight:20,strWeight:20,defWeight:20,dexWeight:20,chaWeight:20,difficulty:36,territory:{money:1,respect:2,wanted:2}}},{desc:"Assign this gang member to be a vigilante and protect the city from criminals
Decreases wanted level",isCombat:!0,isHacking:!0,name:"Vigilante Justice",params:{baseWanted:-.001,hackWeight:20,strWeight:20,defWeight:20,dexWeight:20,agiWeight:20,difficulty:1,territory:{money:1,respect:1,wanted:.9}}},{desc:"Assign this gang member to increase their combat stats (str, def, dex, agi)",isCombat:!0,isHacking:!0,name:"Train Combat",params:{strWeight:25,defWeight:25,dexWeight:25,agiWeight:25,difficulty:100}},{desc:"Assign this gang member to train their hacking skills",isCombat:!0,isHacking:!0,name:"Train Hacking",params:{hackWeight:100,difficulty:45}},{desc:"Assign this gang member to train their charisma",isCombat:!0,isHacking:!0,name:"Train Charisma",params:{chaWeight:100,difficulty:8}},{desc:"Assign this gang member to engage in territorial warfare with other gangs. Members assigned to this task will help increase your gang's territory and will defend your territory from being taken.",isCombat:!0,isHacking:!0,name:"Territory Warfare",params:{hackWeight:15,strWeight:20,defWeight:20,dexWeight:20,agiWeight:20,chaWeight:5,difficulty:5}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarkWebItem=void 0;t.DarkWebItem=class{constructor(e,t,n){this.program=e,this.price=t,this.description=n}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0;class a{constructor(e){this.parent=null,this.stopFlag=!1,this.vars={},e instanceof a&&(this.vars=Object.assign({},e.vars)),this.parent=e}lookup(e){let t=this;for(;t;){if(Object.prototype.hasOwnProperty.call(t.vars,e))return t;t=t.parent}return null}get(e){if(e in this.vars)return this.vars[e];throw new Error(`Undefined variable ${e}`)}set(e,t){const n=this.lookup(e);return null!==n?n.vars[e]=t:this.vars[e]=t}def(e,t){return this.vars[e]=t}}t.Environment=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidNumber=void 0,t.isValidNumber=function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serverMetadata=void 0;const a=n(47),r=n(139);t.serverMetadata=[{hackDifficulty:99,hostname:"ecorp",moneyAvailable:{max:7e10,min:3e10},networkLayer:15,numOpenPortsRequired:5,organizationName:a.LocationName.AevumECorp,requiredHackingSkill:{max:1400,min:1050},serverGrowth:99,specialName:a.LocationName.AevumECorp},{hackDifficulty:99,hostname:"megacorp",moneyAvailable:{max:6e10,min:4e10},networkLayer:15,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12MegaCorp,requiredHackingSkill:{max:1350,min:1100},serverGrowth:99,specialName:a.LocationName.Sector12MegaCorp},{hackDifficulty:{max:88,min:72},hostname:"b-and-a",moneyAvailable:{max:3e10,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.AevumBachmanAndAssociates,requiredHackingSkill:{max:1150,min:900},serverGrowth:{max:80,min:60},specialName:a.LocationName.AevumBachmanAndAssociates},{hackDifficulty:{max:97,min:88},hostname:"blade",literature:[r.LiteratureNames.BeyondMan],maxRamExponent:{max:9,min:5},moneyAvailable:{max:4e10,min:1e10},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12BladeIndustries,requiredHackingSkill:{max:1200,min:900},serverGrowth:{max:85,min:55},specialName:a.LocationName.Sector12BladeIndustries},{hackDifficulty:99,hostname:"nwo",literature:[r.LiteratureNames.TheHiddenWorld],moneyAvailable:{max:4e10,min:2e10},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenNWO,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:95,min:65},specialName:a.LocationName.VolhavenNWO},{hackDifficulty:{max:65,min:45},hostname:"clarkinc",literature:[r.LiteratureNames.BeyondMan,r.LiteratureNames.CostOfImmortality],moneyAvailable:{max:25e9,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.AevumClarkeIncorporated,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:75,min:45},specialName:a.LocationName.AevumClarkeIncorporated},{hackDifficulty:{max:99,min:90},hostname:"omnitek",literature:[r.LiteratureNames.CodedIntelligence,r.LiteratureNames.HistoryOfSynthoids],maxRamExponent:{max:9,min:7},moneyAvailable:{max:22e9,min:13e9},networkLayer:13,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenOmniTekIncorporated,requiredHackingSkill:{max:1100,min:900},serverGrowth:{max:99,min:95},specialName:a.LocationName.VolhavenOmniTekIncorporated},{hackDifficulty:{max:75,min:55},hostname:"4sigma",moneyAvailable:{max:25e9,min:15e9},networkLayer:13,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12FourSigma,requiredHackingSkill:{max:1250,min:900},serverGrowth:{max:99,min:75},specialName:a.LocationName.Sector12FourSigma},{hackDifficulty:{max:99,min:95},hostname:"kuai-gong",moneyAvailable:{max:3e10,min:2e10},networkLayer:13,numOpenPortsRequired:5,organizationName:a.LocationName.ChongqingKuaiGongInternational,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:99,min:90},specialName:a.LocationName.ChongqingKuaiGongInternational},{hackDifficulty:{max:97,min:83},hostname:"fulcrumtech",literature:[r.LiteratureNames.SimulatedReality],maxRamExponent:{max:11,min:7},moneyAvailable:{max:18e8,min:14e8},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.AevumFulcrumTechnologies,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:99,min:80},specialName:a.LocationName.AevumFulcrumTechnologies},{hackDifficulty:99,hostname:"fulcrumassets",moneyAvailable:1e6,networkLayer:15,numOpenPortsRequired:5,organizationName:a.LocationName.AevumFulcrumTechnologies,requiredHackingSkill:{max:1600,min:1100},serverGrowth:1,specialName:"Fulcrum Secret Technologies Server"},{hackDifficulty:{max:92,min:78},hostname:"stormtech",moneyAvailable:{max:12e8,min:1e9},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.IshimaStormTechnologies,requiredHackingSkill:{max:1075,min:875},serverGrowth:{max:92,min:68},specialName:a.LocationName.IshimaStormTechnologies},{hackDifficulty:{max:96,min:84},hostname:"defcomm",moneyAvailable:{max:95e7,min:8e8},networkLayer:9,numOpenPortsRequired:5,organizationName:a.LocationName.NewTokyoDefComm,requiredHackingSkill:{max:1050,min:850},serverGrowth:{max:73,min:47},specialName:a.LocationName.NewTokyoDefComm},{hackDifficulty:{max:90,min:70},hostname:"infocomm",moneyAvailable:{max:9e8,min:6e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"InfoComm",requiredHackingSkill:{max:950,min:875},serverGrowth:{max:75,min:35}},{hackDifficulty:{max:95,min:85},hostname:"helios",literature:[r.LiteratureNames.BeyondMan],maxRamExponent:{max:8,min:5},moneyAvailable:{max:75e7,min:55e7},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenHeliosLabs,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:80,min:70},specialName:a.LocationName.VolhavenHeliosLabs},{hackDifficulty:{max:90,min:80},hostname:"vitalife",literature:[r.LiteratureNames.AGreenTomorrow],maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.NewTokyoVitaLife,requiredHackingSkill:{max:900,min:775},serverGrowth:{max:80,min:60},specialName:a.LocationName.NewTokyoVitaLife},{hackDifficulty:{max:95,min:85},hostname:"icarus",moneyAvailable:{max:1e9,min:9e8},networkLayer:9,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12IcarusMicrosystems,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:95,min:85},specialName:a.LocationName.Sector12IcarusMicrosystems},{hackDifficulty:{max:90,min:80},hostname:"univ-energy",maxRamExponent:{max:7,min:4},moneyAvailable:{max:12e8,min:11e8},networkLayer:9,numOpenPortsRequired:4,organizationName:a.LocationName.Sector12UniversalEnergy,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:90,min:80},specialName:a.LocationName.Sector12UniversalEnergy},{hackDifficulty:{max:80,min:70},hostname:"titan-labs",literature:[r.LiteratureNames.CodedIntelligence],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:75e7},networkLayer:11,numOpenPortsRequired:5,organizationName:"Titan Laboratories",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:80,min:60}},{hackDifficulty:{max:75,min:65},hostname:"microdyne",literature:[r.LiteratureNames.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:11,numOpenPortsRequired:5,organizationName:"Microdyne Technologies",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:90,min:70}},{hackDifficulty:{max:80,min:70},hostname:"taiyang-digital",literature:[r.LiteratureNames.AGreenTomorrow,r.LiteratureNames.BrighterThanTheSun],moneyAvailable:{max:9e8,min:8e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"Taiyang Digital",requiredHackingSkill:{max:950,min:850},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:65,min:55},hostname:"galactic-cyber",moneyAvailable:{max:85e7,min:75e7},networkLayer:7,numOpenPortsRequired:5,organizationName:a.LocationName.AevumGalacticCybersystems,requiredHackingSkill:{max:875,min:825},serverGrowth:{max:90,min:70},specialName:a.LocationName.AevumGalacticCybersystems},{hackDifficulty:{max:90,min:80},hostname:"aerocorp",literature:[r.LiteratureNames.ManAndMachine],moneyAvailable:{max:12e8,min:1e9},networkLayer:7,numOpenPortsRequired:5,organizationName:a.LocationName.AevumAeroCorp,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:65,min:55},specialName:a.LocationName.AevumAeroCorp},{hackDifficulty:{max:95,min:85},hostname:"omnia",literature:[r.LiteratureNames.HistoryOfSynthoids],maxRamExponent:{max:6,min:4},moneyAvailable:{max:1e9,min:9e8},networkLayer:8,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenOmniaCybersystems,requiredHackingSkill:{max:950,min:850},serverGrowth:{max:70,min:60},specialName:a.LocationName.VolhavenOmniaCybersystems},{hackDifficulty:{max:65,min:55},hostname:"zb-def",literature:[r.LiteratureNames.SyntheticMuscles],moneyAvailable:{max:11e8,min:9e8},networkLayer:10,numOpenPortsRequired:4,organizationName:"ZB Defense Industries",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:75,min:65}},{hackDifficulty:{max:80,min:60},hostname:"applied-energetics",moneyAvailable:{max:1e9,min:7e8},networkLayer:11,numOpenPortsRequired:4,organizationName:"Applied Energetics",requiredHackingSkill:{max:850,min:775},serverGrowth:{max:75,min:70}},{hackDifficulty:{max:80,min:70},hostname:"solaris",literature:[r.LiteratureNames.AGreenTomorrow,r.LiteratureNames.TheFailedFrontier],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:7e8},networkLayer:9,numOpenPortsRequired:5,organizationName:a.LocationName.ChongqingSolarisSpaceSystems,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:80,min:70},specialName:a.LocationName.ChongqingSolarisSpaceSystems},{hackDifficulty:{max:85,min:75},hostname:"deltaone",moneyAvailable:{max:17e8,min:13e8},networkLayer:8,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12DeltaOne,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:70,min:50},specialName:a.LocationName.Sector12DeltaOne},{hackDifficulty:{max:85,min:75},hostname:"global-pharm",literature:[r.LiteratureNames.AGreenTomorrow],maxRamExponent:{max:6,min:3},moneyAvailable:{max:175e7,min:15e8},networkLayer:7,numOpenPortsRequired:4,organizationName:a.LocationName.NewTokyoGlobalPharmaceuticals,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:90,min:80},specialName:a.LocationName.NewTokyoGlobalPharmaceuticals},{hackDifficulty:{max:80,min:60},hostname:"nova-med",moneyAvailable:{max:125e7,min:11e8},networkLayer:10,numOpenPortsRequired:4,organizationName:a.LocationName.IshimaNovaMedical,requiredHackingSkill:{max:850,min:775},serverGrowth:{max:85,min:65},specialName:a.LocationName.IshimaNovaMedical},{hackDifficulty:{max:90,min:70},hostname:"zeus-med",moneyAvailable:{max:15e8,min:13e8},networkLayer:9,numOpenPortsRequired:5,organizationName:"Zeus Medical",requiredHackingSkill:{max:850,min:800},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:70},hostname:"unitalife",maxRamExponent:{max:6,min:4},moneyAvailable:{max:11e8,min:1e9},networkLayer:8,numOpenPortsRequired:4,organizationName:"UnitaLife Group",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:60},hostname:"lexo-corp",maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:6,numOpenPortsRequired:4,organizationName:a.LocationName.VolhavenLexoCorp,requiredHackingSkill:{max:750,min:650},serverGrowth:{max:65,min:55},specialName:a.LocationName.VolhavenLexoCorp},{hackDifficulty:{max:60,min:40},hostname:"rho-construction",maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:6,numOpenPortsRequired:3,organizationName:a.LocationName.AevumRhoConstruction,requiredHackingSkill:{max:525,min:475},serverGrowth:{max:60,min:40},specialName:a.LocationName.AevumRhoConstruction},{hackDifficulty:{max:70,min:50},hostname:"alpha-ent",literature:[r.LiteratureNames.Sector12Crime],maxRamExponent:{max:7,min:4},moneyAvailable:{max:75e7,min:6e8},networkLayer:6,numOpenPortsRequired:4,organizationName:a.LocationName.Sector12AlphaEnterprises,requiredHackingSkill:{max:600,min:500},serverGrowth:{max:60,min:50},specialName:a.LocationName.Sector12AlphaEnterprises},{hackDifficulty:{max:80,min:70},hostname:"aevum-police",maxRamExponent:{max:6,min:4},moneyAvailable:{max:4e8,min:2e8},networkLayer:6,numOpenPortsRequired:4,organizationName:a.LocationName.AevumPolice,requiredHackingSkill:{max:450,min:400},serverGrowth:{max:50,min:30},specialName:a.LocationName.AevumPolice},{hackDifficulty:{max:55,min:45},hostname:"rothman-uni",literature:[r.LiteratureNames.SecretSocieties,r.LiteratureNames.TheFailedFrontier,r.LiteratureNames.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:25e7,min:175e6},networkLayer:5,numOpenPortsRequired:3,organizationName:a.LocationName.Sector12RothmanUniversity,requiredHackingSkill:{max:430,min:370},serverGrowth:{max:45,min:35},specialName:a.LocationName.Sector12RothmanUniversity},{hackDifficulty:{max:85,min:65},hostname:"zb-institute",maxRamExponent:{max:7,min:4},moneyAvailable:{max:11e8,min:8e8},networkLayer:5,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenZBInstituteOfTechnology,requiredHackingSkill:{max:775,min:725},serverGrowth:{max:85,min:75},specialName:a.LocationName.VolhavenZBInstituteOfTechnology},{hackDifficulty:{max:65,min:45},hostname:"summit-uni",literature:[r.LiteratureNames.SecretSocieties,r.LiteratureNames.TheFailedFrontier,r.LiteratureNames.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:35e7,min:2e8},networkLayer:5,numOpenPortsRequired:3,organizationName:a.LocationName.AevumSummitUniversity,requiredHackingSkill:{max:475,min:425},serverGrowth:{max:60,min:40},specialName:a.LocationName.AevumSummitUniversity},{hackDifficulty:{max:80,min:60},hostname:"syscore",moneyAvailable:{max:6e8,min:4e8},networkLayer:5,numOpenPortsRequired:4,organizationName:a.LocationName.VolhavenSysCoreSecurities,requiredHackingSkill:{max:650,min:550},serverGrowth:{max:70,min:60},specialName:a.LocationName.VolhavenSysCoreSecurities},{hackDifficulty:{max:70,min:60},hostname:"catalyst",literature:[r.LiteratureNames.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:55e7,min:3e8},networkLayer:5,numOpenPortsRequired:3,organizationName:"Catalyst Ventures",requiredHackingSkill:{max:450,min:400},serverGrowth:{max:55,min:25}},{hackDifficulty:{max:45,min:35},hostname:"the-hub",maxRamExponent:{max:6,min:3},moneyAvailable:{max:2e8,min:15e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"The Hub",requiredHackingSkill:{max:325,min:275},serverGrowth:{max:55,min:45}},{hackDifficulty:{max:65,min:55},hostname:"comptek",literature:[r.LiteratureNames.ManAndMachine],moneyAvailable:{max:25e7,min:22e7},networkLayer:4,numOpenPortsRequired:3,organizationName:a.LocationName.VolhavenCompuTek,requiredHackingSkill:{max:400,min:300},serverGrowth:{max:65,min:45},specialName:a.LocationName.VolhavenCompuTek},{hackDifficulty:{max:80,min:60},hostname:"netlink",literature:[r.LiteratureNames.SimulatedReality],maxRamExponent:{max:7,min:4},moneyAvailable:275e6,networkLayer:4,numOpenPortsRequired:3,organizationName:a.LocationName.AevumNetLinkTechnologies,requiredHackingSkill:{max:425,min:375},serverGrowth:{max:75,min:45},specialName:a.LocationName.AevumNetLinkTechnologies},{hackDifficulty:{max:65,min:35},hostname:"johnson-ortho",moneyAvailable:{max:85e6,min:7e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Johnson Orthopedics",requiredHackingSkill:{max:300,min:250},serverGrowth:{max:65,min:35}},{hackDifficulty:1,hostname:"n00dles",literature:[],maxRamExponent:2,moneyAvailable:7e4,networkLayer:1,numOpenPortsRequired:0,organizationName:a.LocationName.NewTokyoNoodleBar,requiredHackingSkill:1,serverGrowth:3e3,specialName:a.LocationName.NewTokyoNoodleBar},{hackDifficulty:10,hostname:"foodnstuff",literature:[r.LiteratureNames.Sector12Crime],maxRamExponent:4,moneyAvailable:2e6,networkLayer:1,numOpenPortsRequired:0,organizationName:a.LocationName.Sector12FoodNStuff,requiredHackingSkill:1,serverGrowth:5,specialName:a.LocationName.Sector12FoodNStuff},{hackDifficulty:10,hostname:"sigma-cosmetics",maxRamExponent:4,moneyAvailable:23e5,networkLayer:1,numOpenPortsRequired:0,organizationName:"Sigma Cosmetics",requiredHackingSkill:5,serverGrowth:10},{hackDifficulty:15,hostname:"joesguns",maxRamExponent:4,moneyAvailable:25e5,networkLayer:1,numOpenPortsRequired:0,organizationName:a.LocationName.Sector12JoesGuns,requiredHackingSkill:10,serverGrowth:20,specialName:a.LocationName.Sector12JoesGuns},{hackDifficulty:25,hostname:"zer0",maxRamExponent:5,moneyAvailable:75e5,networkLayer:2,numOpenPortsRequired:1,organizationName:"ZER0 Nightclub",requiredHackingSkill:75,serverGrowth:40},{hackDifficulty:20,hostname:"nectar-net",maxRamExponent:4,moneyAvailable:275e4,networkLayer:2,numOpenPortsRequired:0,organizationName:"Nectar Nightclub Network",requiredHackingSkill:20,serverGrowth:25},{hackDifficulty:25,hostname:"neo-net",literature:[r.LiteratureNames.TheHiddenWorld],maxRamExponent:5,moneyAvailable:5e6,networkLayer:3,numOpenPortsRequired:1,organizationName:"Neo Nightclub Network",requiredHackingSkill:50,serverGrowth:25},{hackDifficulty:30,hostname:"silver-helix",literature:[r.LiteratureNames.NewTriads],maxRamExponent:6,moneyAvailable:45e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Silver Helix",requiredHackingSkill:150,serverGrowth:30},{hackDifficulty:15,hostname:"hong-fang-tea",literature:[r.LiteratureNames.BrighterThanTheSun],maxRamExponent:4,moneyAvailable:3e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HongFang Teahouse",requiredHackingSkill:30,serverGrowth:20},{hackDifficulty:15,hostname:"harakiri-sushi",maxRamExponent:4,moneyAvailable:4e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HaraKiri Sushi Bar Network",requiredHackingSkill:40,serverGrowth:40},{hackDifficulty:20,hostname:"phantasy",maxRamExponent:5,moneyAvailable:24e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Phantasy Club",requiredHackingSkill:100,serverGrowth:35},{hackDifficulty:15,hostname:"max-hardware",maxRamExponent:5,moneyAvailable:1e7,networkLayer:2,numOpenPortsRequired:1,organizationName:"Max Hardware Store",requiredHackingSkill:80,serverGrowth:30},{hackDifficulty:{max:35,min:25},hostname:"omega-net",literature:[r.LiteratureNames.TheNewGod],maxRamExponent:5,moneyAvailable:{max:7e7,min:6e7},networkLayer:3,numOpenPortsRequired:2,organizationName:a.LocationName.IshimaOmegaSoftware,requiredHackingSkill:{max:220,min:180},serverGrowth:{max:40,min:30},specialName:a.LocationName.IshimaOmegaSoftware},{hackDifficulty:{max:45,min:35},hostname:"crush-fitness",moneyAvailable:{max:6e7,min:4e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Crush Fitness",requiredHackingSkill:{max:275,min:225},serverGrowth:{max:33,min:27},specialName:a.LocationName.AevumCrushFitnessGym},{hackDifficulty:30,hostname:"iron-gym",maxRamExponent:5,moneyAvailable:2e7,networkLayer:1,numOpenPortsRequired:1,organizationName:"Iron Gym Network",requiredHackingSkill:100,serverGrowth:20,specialName:a.LocationName.Sector12IronGym},{hackDifficulty:{max:55,min:45},hostname:"millenium-fitness",maxRamExponent:{max:8,min:4},moneyAvailable:25e7,networkLayer:6,numOpenPortsRequired:3,organizationName:"Millenium Fitness Network",requiredHackingSkill:{max:525,min:475},serverGrowth:{max:45,min:25},specialName:a.LocationName.VolhavenMilleniumFitnessGym},{hackDifficulty:{max:65,min:55},hostname:"powerhouse-fitness",maxRamExponent:{max:6,min:4},moneyAvailable:9e8,networkLayer:14,numOpenPortsRequired:5,organizationName:"Powerhouse Fitness",requiredHackingSkill:{max:1100,min:950},serverGrowth:{max:60,min:50},specialName:a.LocationName.Sector12PowerhouseGym},{hackDifficulty:{max:60,min:40},hostname:"snap-fitness",moneyAvailable:45e7,networkLayer:7,numOpenPortsRequired:4,organizationName:"Snap Fitness",requiredHackingSkill:{max:800,min:675},serverGrowth:{max:60,min:40},specialName:a.LocationName.AevumSnapFitnessGym},{hackDifficulty:0,hostname:"run4theh111z",literature:[r.LiteratureNames.SimulatedReality,r.LiteratureNames.TheNewGod],maxRamExponent:{max:9,min:5},moneyAvailable:0,networkLayer:11,numOpenPortsRequired:4,organizationName:"The Runners",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:"BitRunners Server"},{hackDifficulty:0,hostname:"I.I.I.I",literature:[r.LiteratureNames.DemocracyIsDead],maxRamExponent:{max:8,min:4},moneyAvailable:0,networkLayer:5,numOpenPortsRequired:3,organizationName:"I.I.I.I",requiredHackingSkill:{max:365,min:340},serverGrowth:0,specialName:"The Black Hand Server"},{hackDifficulty:0,hostname:"avmnite-02h",literature:[r.LiteratureNames.DemocracyIsDead],maxRamExponent:{max:7,min:4},moneyAvailable:0,networkLayer:4,numOpenPortsRequired:2,organizationName:"NiteSec",requiredHackingSkill:{max:220,min:202},serverGrowth:0,specialName:"NiteSec Server"},{hackDifficulty:0,hostname:".",maxRamExponent:4,moneyAvailable:0,networkLayer:13,numOpenPortsRequired:4,organizationName:".",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:"The Dark Army Server"},{hackDifficulty:0,hostname:"CSEC",literature:[r.LiteratureNames.DemocracyIsDead],maxRamExponent:3,moneyAvailable:0,networkLayer:2,numOpenPortsRequired:1,organizationName:"CyberSec",requiredHackingSkill:{max:60,min:51},serverGrowth:0,specialName:"CyberSec Server"},{hackDifficulty:0,hostname:"The-Cave",literature:[r.LiteratureNames.AlphaOmega],moneyAvailable:0,networkLayer:15,numOpenPortsRequired:5,organizationName:"Helios",requiredHackingSkill:925,serverGrowth:0,specialName:"Daedalus Server"},{hackDifficulty:0,hostname:"w0r1d_d43m0n",moneyAvailable:0,numOpenPortsRequired:5,organizationName:"w0r1d_d43m0n",requiredHackingSkill:3e3,serverGrowth:0,specialName:"w0r1d_d43m0n"}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRandomString=void 0;const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";t.createRandomString=function(e){let t="";for(let n=0;n
"}}));return o.default.createElement("div",null,o.default.createElement(c.CopyableText,{value:e.c.type,tag:c.ClickableTag.Tag_h1}),o.default.createElement("br",null),o.default.createElement("br",null),o.default.createElement("p",null,"You are attempting to solve a Coding Contract. You have ",e.c.getMaxNumTries()-e.c.tries," tries remaining, after which the contract will self-destruct."),o.default.createElement("br",null),o.default.createElement("p",null,r),o.default.createElement("br",null),o.default.createElement("input",{className:"text-input",style:{width:"50%",marginTop:"8px"},autoFocus:!0,placeholder:"Enter Solution here",value:t,onChange:function(e){n(e.target.value)},onKeyDown:function(n){const a=n.target.value;n.keyCode===s.KEY.ENTER&&""!==a?(n.preventDefault(),e.onAttempt(t)):n.keyCode===s.KEY.ESC&&(n.preventDefault(),e.onClose())}}),o.default.createElement(u.PopupCloseButton,{popup:e.popupId,onClose:()=>e.onAttempt(t),text:"Solve"}),o.default.createElement(u.PopupCloseButton,{popup:e.popupId,onClose:e.onClose,text:"Close"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codingContractTypesMetadata=void 0;const a=n(36);function r(e){let t=e;return t.startsWith("[")&&(t=t.slice(1)),t.endsWith("]")&&(t=t.slice(0,-1)),t}function i(e){let t=e;return(t.startsWith('"')||t.startsWith("'"))&&(t=t.slice(1)),(t.endsWith('"')||t.endsWith("'"))&&(t=t.slice(0,-1)),t}function o(e){const t=[];return e.forEach(e=>{let n=e.toString();n=["[",n,"]"].join(""),t.push(n)}),t.join(",").replace(/\s/g,"")}t.codingContractTypesMetadata=[{desc:e=>["A prime factor is a factor that is a prime number.",`What is the largest prime factor of ${e}?`].join(" "),difficulty:1,gen:()=>a.getRandomInt(500,1e9),name:"Find Largest Prime Factor",numTries:10,solver:(e,t)=>{let n=2,a=e;for(;a>(n-1)*(n-1);){for(;a%n==0;)a=Math.round(a/n);++n}return(1===a?n-1:a)===parseInt(t,10)}},{desc:e=>["Given the following integer array, find the contiguous subarray","(containing at least one number) which has the largest sum and return that sum.","'Sum' refers to the sum of all the numbers in the subarray.\n",`${e.toString()}`].join(" "),difficulty:1,gen:()=>{const e=a.getRandomInt(5,40),t=[];t.length=e;for(let n=0;n
Learn to Program
For Experienced JavaScript Developers: NetscriptJS
Netscript Documentation
When starting out, hacking is the most profitable way to earn money and progress. This is a brief collection of tips/pointers on how to make the most out of your hacking scripts.
-hack() and grow() both work by percentages. hack() steals a certain percentage of the money on a server, and grow() increases the amount of money on a server by some percentage (multiplicatively)
-Because hack() and grow() work by percentages, they are more effective if the target server has a high amount of money. Therefore, you should try to increase the amount of money on a server (using grow()) to a certain amount before hacking it. Two import Netscript functions for this are getServerMoneyAvailable() and getServerMaxMoney()
-Keep security level low. Security level affects everything when hacking. Two important Netscript functions for this are getServerSecurityLevel() and getServerMinSecurityLevel()
-Purchase additional servers by visiting 'Alpha Enterprises' in the city. They are relatively cheap and give you valuable RAM to run more scripts early in the game
-Prioritize upgrading the RAM on your home computer. This can also be done at 'Alpha Enterprises'
-Many low level servers have free RAM. You can use this RAM to run your scripts. Use the scp Terminal or Netscript command to copy your scripts onto these servers and then run them.",t.Literatures[n]=new a.Literature(e,n,i),e="The Complete Handbook for Creating a Successful Corporation",n=r.LiteratureNames.CorporationManagementHandbook,i="Getting Started with Corporations
To get started, visit the City Hall in Sector-12 in order to create a Corporation. This requires $150b of your own money, but this $150b will get put into your Corporation's funds. After creating your Corporation, you will see it listed as one of the locations in the city. Click on your Corporation in order to manage it.
Your Corporation can have many different divisions, each in a different Industry. There are many different types of Industries, each with different properties. To create your first division, click the 'Expand into new Industry' button at the top of the management UI. The Agriculture and Software industries are recommended for your first division.
The first thing you'll need to do is hire some employees. Employees can be assigned to five different positions. Each position has a different effect on various aspects of your Corporation. It is recommended to have at least one employee at each position.
Each industry uses some combination of Materials in order to produce other Materials and/or create Products. Specific information about this is displayed in each of your divisions' UI.
Products are special, industry-specific objects. They are different than Materials because you must manually choose to develop them, and you can choose to develop any number of Products. Developing a Product takes time, but a Product typically generates significantly more revenue than any Material. Not all industries allow you to create Products. To create a Product, look for a button in the top-left panel of the division UI (e.g. For the Software Industry, the button says 'Develop Software').
To get your supply chain system started, purchase the Materials that your industry needs to produce other Materials/Products. This can be done by clicking the 'Buy' button next to the corresponding Material(s). After you have the required Materials, you will immediately start production. The amount of Materials/Products you produce is based on a variety of factors, one of which is your employees and their productivity.
Once you start producing Materials/Products, you can sell them in order to start earning revenue. This can be done by clicking the 'Sell' button next to the corresponding Material or Product. The amount of Material/Product you sell is dependent on a wide variety of different factors.
These are the basics of getting your Corporation up and running! Now, you can start purchasing upgrades to improve your bottom line. If you need money, consider looking for seed investors, who will give you money in exchange for stock shares. Otherwise, once you feel you are ready, take your Corporation public! Once your Corporation goes public, you can no longer find investors. Instead, your Corporation will be publicly traded and its stock price will change based on how well it's performing financially. You can then sell your stock shares in order to make money.
Tips/Pointers
-The 'Smart Supply' upgrade is extremely useful. Consider purchasing it as soon as possible.
-Purchasing Hardware, Robots, AI Cores, and Real Estate can potentially increase your production. The effects of these depend on what industry you are in.
-In order to optimize your production, you will need a good balance of Operators, Managers, and Engineers
-Different employees excel in different jobs. For example, the highly intelligent employees will probably do best if they are assigned to do Engineering work or Research & Development.
-If your employees have low morale, energy, or happiness, their production will greatly suffer.
-Tech is important, but don't neglect sales! Having several Businessmen can boost your sales and your bottom line.
-Don't forget to advertise your company. You won't have any business if nobody knows you.
-Having company awareness is great, but what's really important is your company's popularity. Try to keep your popularity as high as possible to see the biggest benefit for your sales
-Remember, you need to spend money to make money!
-Corporations do not reset when installing Augmentations, but they do reset when destroying a BitNode",t.Literatures[n]=new a.Literature(e,n,i),e="A Brief History of Synthoids",n=r.LiteratureNames.HistoryOfSynthoids,i="Synthetic androids, or Synthoids for short, are genetically engineered robots and, short of Augmentations, are composed entirely of organic substances. For this reason, Synthoids are virtually identical to humans in form, composition, and appearance.
Synthoids were first designed and manufactured by OmniTek Incorporated sometime around the middle of the century. Their original purpose was to be used for manual labor and as emergency responders for disasters. As such, they were initially programmed only for their specific tasks. Each iteration that followed improved upon the intelligence and capabilities of the Synthoids. By the 6th iteration, called MK-VI, the Synthoids were so smart and capable enough of making their own decisions that many argued OmniTek had created the first sentient AI. These MK-VI Synthoids were produced in mass quantities (estimates up to 50 billion) with the hopes of increasing society's productivity and bolstering the global economy. Stemming from humanity's desire for technological advancement, optimism and excitement about the future had never been higher.
All of that excitement and optimism quickly turned to fear, panic, and dread in 2070, when a terrorist group called Ascendis Totalis hacked into OmniTek and uploaded a rogue AI into severeal of their Synthoid manufacturing facilities. This hack went undetected and for months OmniTek unknowingly churned out legions of Synthoids embedded with this rogue AI. Then, on December 24th, 2070, Omnica activated dormant protocols in the rogue AI, causing all of the infected Synthoids to immediately launch a military campaign to seek and destroy all of humanity.
What ensued was the deadlist conflict in human history. This crisis, now commonly known as the Synthoid Uprising, resulted in almost ten billion deaths over the course of a year. Despite the nations of the world banding together to combat the threat, the MK-VI Synthoids were simply stronger, faster, more intelligent, and more adaptable than humans, outsmarting them at every turn.
It wasn't until the sacrifice of an elite international military taskforce, called the Bladeburners, that humanity was finally able to defeat the Synthoids. The Bladeburners' final act was a suicide bombing mission that destroyed a large portion of the MK-VI Synthoids, including many of its leaders. In the following weeks militaries from around the world were able to round up and shut down the remaining rogue MK-VI Synthoids, ending the Synthoid Uprising.
In the aftermath of the bloodshed, the Synthoid Accords were drawn up. These Accords banned OmniTek Incorporated from manufacturing any Synthoids beyond the MK-III series. They also banned any other corporation from constructing androids with advanced, near-sentient AI. MK-VI Synthoids that did not have the rogue Ascendis Totalis AI were allowed to continue their existence, but they were stripped of all rights and protections as they were not considered humans. They were also banned from doing anything that may pose a global security threat, such as working for any military/defense organization or conducting any bioengineering, computing, or robotics related research.
Unfortunately, many believe that not all of the rogue MK-VI Synthoids from the Uprising were found and destroyed, and that many of them are blending in as normal humans in society today. In response, many nations have created Bladeburner divisions, special military branches that are tasked with investigating and dealing with any Synthoid threads.
To this day, tensions still exist between the remaining Synthoids and humans as a result of the Uprising.
Nobody knows what happened to the terrorist group Ascendis Totalis.",t.Literatures[n]=new a.Literature(e,n,i),e="A Green Tomorrow",n=r.LiteratureNames.AGreenTomorrow,i="Starting a few decades ago, there was a massive global movement towards the generation of renewable energy in an effort to combat global warming and climate change. The shift towards renewable energy was a big success, or so it seemed. In 2045 a staggering 80% of the world's energy came from non-renewable fossil fuels. Now, about three decades later, that number is down to only 15%. Most of the world's energy now comes from nuclear power and renewable sources such as solar and geothermal energy. Unfortunately, these efforts were not the huge success that they seem to be.
Since 2045 primary energy use has soared almost tenfold. This was mainly due to growing urban populations and the rise of increasingly advanced (and power-hungry) technology that has become ubiquitous in our lives. So, despite the fact that the percentage of our energy that comes from fossil fuels has drastically decreased, the total amount of energy we are producing from fossil fuels has actually increased.
The grim effects of our species' irresponsible use of energy and neglect of our mother world have become increasingly apparent. Last year a temperature of 190F was recorded in the Death Valley desert, which is over 50% higher than the highest recorded temperature at the beginning of the century. In the last two decades numerous major cities such as Manhattan, Boston, and Los Angeles have been partially or fully submerged by rising sea levels. In the present day, over 75% of the world's agriculture is done in climate-controlled vertical farms, as most traditional farmland has become unusable due to severe climate conditions.
Despite all of this, the greedy and corrupt corporations that rule the world have done nothing to address these problems that threaten our species. And so it's up to us, the common people. Each and every one of us can make a difference by doing what these corporations won't: taking responsibility. If we don't, pretty soon there won't be an Earth left to save. We are the last hope for a green tomorrow.",t.Literatures[n]=new a.Literature(e,n,i),e="Alpha and Omega",n=r.LiteratureNames.AlphaOmega,i="Then we saw a new Heaven and a new Earth, for our first Heaven and Earth had gone away, and our sea was no more. And we saw a new holy city, new Aeria, coming down out of this new Heaven, prepared as a bride adorned for her husband. And we heard a loud voice saying, 'Behold, the new dwelling place of the Gods. We will dwell with them, and they will be our people, and we will be with them as their Gods. We will wipe away every tear from their eyes, and death shall be no more, neither shall there be mourning, nor crying, nor pain anymore, for the former things have passed away.'
And once we were seated on the throne we said 'Behold, I am making all things new.' Also we said, 'Write this down, for these words are trustworthy and true.' And we said to you, 'It is done! I am the Alpha and the Omega, the beginning and the end. To the thirsty I will give from the spring of the water of life without payment. The one who conquers will have this heritage, and we will be his God and he will be our son. But as for the cowardly, the faithless, the detestable, as for murderers, the sexually immoral, sorcerers, idolaters, and all liars, their portion will be in the lake that burns with fire and sulfur, for it is the second true death.'",t.Literatures[n]=new a.Literature(e,n,i),e="Are We Living in a Computer Simulation?",n=r.LiteratureNames.SimulatedReality,i="The idea that we are living in a virtual world is not new. It's a trope that has been explored constantly in literature and pop culture. However, it is also a legitimate scientific hypothesis that many notable physicists and philosophers have debated for years.
Proponents for this simulated reality theory often point to how advanced our technology has become, as well as the incredibly fast pace at which it has advanced over the past decades. The amount of computing power available to us has increased over 100-fold since 2060 due to the development of nanoprocessors and quantum computers. Artifical Intelligence has advanced to the point where our entire lives are controlled by robots and machines that handle our day-to-day activities such as autonomous transportation and scheduling. If we consider the pace at which this technology has advanced and assume that these developments continue, it's reasonable to assume that at some point in the future our technology would be advanced enough that we could create simulations that are indistinguishable from reality. However, if continued technological advancement is a reasonable outcome, then it is very likely that such a scenario has already happened.
Statistically speaking, somewhere out there in the infinite universe there is an advanced, intelligent species that already has such technology. Who's to say that they haven't already created such a virtual reality: our own?",t.Literatures[n]=new a.Literature(e,n,i),e="Beyond Man",n=r.LiteratureNames.BeyondMan,i="Humanity entered a 'transhuman' era a long time ago. And despite the protests and criticisms of many who cried out against human augmentation at the time, the transhuman movement continued and prospered. Proponents of the movement ignored the critics, arguing that it was in our inherent nature to better ourselves. To improve. To be more than we were. They claimed that not doing so would be to go against every living organism's biological purpose: evolution and survival of the fittest.
And here we are today, with technology that is advanced enough to augment humans to a state that can only be described as posthuman. But what do we have to show for it when this augmentation technology is only available to the so-called 'elite'? Are we really better off than before when only 5% of the world's population has access to this technology? When the powerful corporations and organizations of the world keep it all to themselves, have we really evolved?
Augmentation technology has only further increased the divide between the rich and the poor, between the powerful and the oppressed. We have not become 'more than human'. We have not evolved from nature's original design. We are still the greedy, corrupted, and evil men that we always were.",t.Literatures[n]=new a.Literature(e,n,i),e="Brighter than the Sun",n=r.LiteratureNames.BrighterThanTheSun,i="When people think about the corporations that dominate the East, they typically think of KuaiGong International, which holds a complete monopoly for manufacturing and commerce in Asia, or Global Pharmaceuticals, the world's largest drug company, or OmniTek Incorporated, the global leader in intelligent and autonomous robots. But there's one company that has seen a rapid rise in the last year and is poised to dominate not only the East, but the entire world: TaiYang Digital.
TaiYang Digital is a Chinese internet-technology corporation that provides services such as online advertising, search engines, gaming, media, entertainment, and cloud computing/storage. Its name TaiYang comes from the Chinese word for 'sun'. In Chinese culture, the sun is a 'yang' symbol associated with life, heat, masculinity, and heaven.
The company was founded less than 5 years ago and is already the third highest valued company in all of Asia. In 2076 it generated a total revenue of over 10 trillion yuan. It's services are used daily by over a billion people worldwide.
TaiYang Digital's meteoric rise is extremely surprising in modern society. This sort of growth is something you'd commonly see in the first half of the century, especially for tech companies. However in the last two decades the number of corporations has significantly declined as the largest entities quickly took over the economy. Corporations such as ECorp, MegaCorp, and KuaiGong have established such strong monopolies in their market sectors that they have effectively killed off all of the smaller and new corporations that have tried to start up over the years. This is what makes the rise of TaiYang Digital so impressive. And if TaiYang continues down this path, then they have a bright future ahead of them.",t.Literatures[n]=new a.Literature(e,n,i),e="Democracy is Dead: The Fall of an Empire",n=r.LiteratureNames.DemocracyIsDead,i="They rose from the shadows in the street.
From the places where the oppressed meet.
Their cries echoed loudly through the air.
As they once did in Tiananmen Square.
Loudness in the silence, Darkness in the light.
They came forth with power and might.
Once the beacon of democracy, America was first.
Its pillars of society destroyed and dispersed.
Soon the cries rose everywhere, with revolt and riot.
Until one day, finally, all was quiet.
From the ashes rose a new order, corporatocracy was its name.
Rome, Mongol, Byzantine, all of history is just the same.
For man will never change in a fundamental way.
And now democracy is dead, in the USA.",t.Literatures[n]=new a.Literature(e,n,i),e="Figures Show Rising Crime Rates in Sector-12",n=r.LiteratureNames.Sector12Crime,i="A recent study by analytics company Wilson Inc. shows a significant rise in criminal activity in Sector-12. Perhaps the most alarming part of the statistic is that most of the rise is in violent crime such as homicide and assault. According to the study, the city saw a total of 21,406 reported homicides in 2076, which is over a 20% increase compared to 2075.
CIA director David Glarow says its too early to know whether these figures indicate the beginning of a sustained increase in crime rates, or whether the year was just an unfortunate outlier. He states that many intelligence and law enforcement agents have noticed an increase in organized crime activites, and believes that these figures may be the result of an uprising from criminal organizations such as The Syndicate or the Slum Snakes.",t.Literatures[n]=new a.Literature(e,n,i),e="Man and the Machine",n=r.LiteratureNames.ManAndMachine,i="In 2005 Ray Kurzweil popularized his theory of the Singularity. He predicted that the rate of technological advancement would continue to accelerate faster and faster until one day machines would be become infinitely more intelligent than humans. This point, called the Singularity, would result in a drastic transformation of the world as we know it. He predicted that the Singularity would arrive by 2045. And yet here we are, more than three decades later, where most would agree that we have not yet reached a point where computers and machines are vastly more intelligent than we are. So what gives?
The answer is that we have reached the Singularity, just not in the way we expected. The artifical superintelligence that was predicted by Kurzweil and others exists in the world today - in the form of Augmentations. Yes, those Augmentations that the rich and powerful keep to themselves enable humans to become superintelligent beings. The Singularity did not lead to a world where our machines are infinitely more intelligent than us, it led to a world where man and machine can merge to become something greater. Most of the world just doesn't know it yet.",t.Literatures[n]=new a.Literature(e,n,i),e="Secret Societies",n=r.LiteratureNames.SecretSocieties,i="The idea of secret societies has long intrigued the general public by inspiring curiosity, fascination, and distrust. People have long wondered about who these secret society members are and what they do, with the most radical of conspiracy theorists claiming that they control everything in the entire world. And while the world may never know for sure, it is likely that many secret societies do actually exist, even today.
However, the secret societies of the modern world are nothing like those that (supposedly) existed decades and centuries ago. The Freemasons, Knights Templar, and Illuminati, while they may have been around at the turn of the 21st century, almost assuredly do not exist today. The dominance of the Web in our everyday lives and the fact that so much of the world is now digital has given rise to a new breed of secret societies: Internet-based ones.
Commonly called 'hacker groups', Internet-based secret societies have become well-known in today's world. Some of these, such as The Black Hand, are black hat groups that claim they are trying to help the oppressed by attacking the elite and powerful. Others, such as NiteSec, are hacktivist groups that try to push political and social agendas. Perhaps the most intriguing hacker group is the mysterious Bitrunners, whose purpose still remains unknown.",t.Literatures[n]=new a.Literature(e,n,i),e="Space: The Failed Frontier",n=r.LiteratureNames.TheFailedFrontier,i="Humans have long dreamed about spaceflight. With enduring interest, we were driven to explore the unknown and discover new worlds. We dreamed about conquering the stars. And in our quest, we pushed the boundaries of our scientific limits, and then pushed further. Space exploration lead to the development of many important technologies and new industries.
But sometime in the middle of the 21st century, all of that changed. Humanity lost its ambitions and aspirations of exploring the cosmos. The once-large funding for agencies like NASA and the European Space Agency gradually whittled away until their eventual disbanding in the 2060's. Not even militaries are fielding flights into space nowadays. The only remnants of the once great mission for cosmic conquest are the countless satellites in near-earth orbit, used for communications, espionage, and other corporate interests.
And as we continue to look at the state of space technology, it becomes more and more apparent that we will never return to that golden age of space exploration, that age where everyone dreamed of going beyond earth for the sake of discovery.",t.Literatures[n]=new a.Literature(e,n,i),e="Coded Intelligence: Myth or Reality?",n=r.LiteratureNames.CodedIntelligence,i="Tremendous progress has been made in the field of Artificial Intelligence over the past few decades. Our autonomous vehicles and transporation systems. The electronic personal assistants that control our everyday lives. Medical, service, and manufacturing robots. All of these are examples of how far AI has come and how much it has improved our daily lives. However, the question still remains of whether AI will ever be advanced enough to re-create human intelligence.
We've certainly come close to artificial intelligence that is similar to humans. For example OmniTek Incorporated's CompanionBot, a robot meant to act as a comforting friend for lonely and grieving people, is eerily human-like in its appearance, speech, mannerisms, and even movement. However its artificial intelligence isn't the same as that of humans. Not yet. It doesn't have sentience or self-awareness or consciousness.
Many neuroscientists believe that we won't ever reach the point of creating artificial human intelligence. 'At the end of the the day, AI comes down to 1's and 0's, while the human brain does not. We'll never see AI that is identical to that of humans.'",t.Literatures[n]=new a.Literature(e,n,i),e="Synthetic Muscles",n=r.LiteratureNames.SyntheticMuscles,i="Initial versions of synthetic muscles weren't made of anything organic but were actually crude devices made to mimic human muscle function. Some of the early iterations were actually made of common materials such as fishing lines and sewing threads due to their high strength for a cheap cost.
As technology progressed, however, advances in biomedical engineering paved the way for a new method of creating synthetic muscles. Instead of creating something that closely imitated the functionality of human muscle, scientists discovered a way of forcing the human body itself to augment its own muscle tissue using both synthetic and organic materials. This is typically done using gene therapy or chemical injections.",t.Literatures[n]=new a.Literature(e,n,i),e="Tensions rise in global tech race",n=r.LiteratureNames.TensionsInTechRace,i="Have we entered a new Cold War? Is WWIII just beyond the horizon?
After rumors came out that OmniTek Incorporated had begun developing advanced robotic supersoldiers, geopolitical tensions quickly flared between the USA, Russia, and several Asian superpowers. In a rare show of cooperation between corporations, MegaCorp and ECorp have reportedly launched hundreds of new surveillance and espionage satellites. Defense contractors such as DeltaOne and AeroCorp have been working with the CIA and NSA to prepare for conflict. Meanwhile, the rest of the world sits in earnest hoping that it never reaches full-scale war. With today's technology and firepower, a World War would assuredly mean the end of human civilization.",t.Literatures[n]=new a.Literature(e,n,i),e="The Cost of Immortality",n=r.LiteratureNames.CostOfImmortality,i="Evolution and advances in medical and augmentation technology has lead to drastic improvements in human mortality rates. Recent figures show that the life expectancy for humans that live in a first-world country is about 130 years of age, almost double of what it was at the turn of the century. However, this increase in average lifespan has had some significant effects on society and culture.
Due to longer lifespans and a better quality of life, many adults are holding off on having kids until much later. As a result, the percentage of youth in first-world countries has been decreasing, while the number of senior citizens is significantly increasing.
Perhaps the most alarming result of all of this is the rapidly shrinking workforce. Despite the increase in life expectancy, the typical retirement age for workers in America has remained about the same, meaning a larger and larger percentage of people in America are retirees. Furthermore, many young adults are holding off on joining the workforce because they feel that they have plenty of time left in their lives for employment, and want to 'enjoy life while they're young.' For most industries, this shrinking workforce is not a major issue as most things are handled by robots anyways. However, there are still several key industries such as engineering and education that have not been automated, and these remain in danger to this cultural phenomenon.",t.Literatures[n]=new a.Literature(e,n,i),e="The Hidden World",n=r.LiteratureNames.TheHiddenWorld,i="WAKE UP SHEEPLE
THE GOVERNMENT DOES NOT EXIST. CORPORATIONS DO NOT RUN SOCIETY
THE ILLUMINATI ARE THE SECRET RULERS OF THE WORLD!
Yes, the Illuminati of legends. The ancient secret society that controls the entire world from the shadows with their invisible hand. The group of the rich and wealthy that have penetrated every major government, financial agency, and corporation in the last three hundred years.
OPEN YOUR EYES
It was the Illuminati that brought an end to democracy in the world. They are the driving force behind everything that happens.
THEY ARE ALL AROUND YOU
After destabilizing the world's governments, they are now entering the final stage of their master plan. They will secretly initiate global crises. Terrorism. Pandemics. World War. And out of the chaos that ensues they will build their New World Order.",t.Literatures[n]=new a.Literature(e,n,i),e="The New God",n=r.LiteratureNames.TheNewGod,i="Everyone has a moment in their life when they wonder about the bigger questions.
What's the point of all this? What is my purpose?
Some people dare to think even bigger.
What will the fate of the human race be?
We live in an era vastly different from that of 15 or even 20 years ago. We have gone beyond the limits of humanity. We have stripped ourselves of the tyranny of flesh.
The Singularity is here. The merging of man and machine. This is where humanity evolves into ",t.Literatures[n]=new a.Literature(e,n,i),e="The New Triads",n=r.LiteratureNames.NewTriads,i="The Triads were an ancient transnational crime syndicate based in China, Hong Kong, and other Asian territories. They were often considered one of the first and biggest criminal secret societies. While most of the branches of the Triads have been destroyed over the past few decades, the crime faction has spawned and inspired a number of other Asian crime organizations over the past few years. The most notable of these is the Tetrads.
It is widely believed that the Tetrads are a rogue group that splintered off from the Triads sometime in the mid 21st century. The founders of the Tetrads, all of whom were ex-Triad members, believed that the Triads were losing their purpose and direction. The Tetrads started off as a small group that mainly engaged in fraud and extortion. They were largely unknown until just a few years ago when they took over the illegal drug trade in all of the major Asian cities. They quickly became the most powerful crime syndicate in the continent.
Not much else is known about the Tetrads, or about the efforts the Asian governments and corporations are making to take down this large new crime organization. Many believe that the Tetrads have infiltrated the governments and powerful corporations in Asia, which has helped faciliate their recent rapid rise.",t.Literatures[n]=new a.Literature(e,n,i),e="The Secret War",n=r.LiteratureNames.TheSecretWar,i="",t.Literatures[n]=new a.Literature(e,n,i)}()},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Popup=void 0;const o=i(n(0));t.Popup=function(e){function t(t){"Escape"===t.key&&e.removePopup(e.id)}return o.useEffect(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)})),o.default.createElement("div",{className:"popup-box-content",id:`${e.id}-content`},o.default.createElement(e.content,e.props))}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCityMap=void 0;const a=n(173);t.createCityMap=function(e){const t={},n=Object.keys(a.Cities);for(let a=0;a
${r.numeralWrapper.format(this.cost,"0,0")} Scientific Research`+''+`${n.desc}`+"",text:{name:this.text}}}findNode(e){if(this.text===e)return this;let t=null;for(let n=0;n
${t.txt}`;r.dialogBoxCreate(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorporationUpgrades=void 0,t.CorporationUpgrades={0:[0,2e9,1.06,.03,"Smart Factories","Advanced AI automatically optimizes the operation and productivity of factories. Each level of this upgrade increases your global production by 3% (additive)."],1:[1,2e9,1.06,.1,"Smart Storage","Advanced AI automatically optimizes your warehouse storage methods. Each level of this upgrade increases your global warehouse storage size by 10% (additive)."],2:[2,4e9,1.1,.001,"DreamSense","Use DreamSense LCC Technologies to advertise your corporation to consumers through their dreams. Each level of this upgrade provides a passive increase in awareness of all of your companies (divisions) by 0.004 / market cycle,and in popularity by 0.001 / market cycle. A market cycle is approximately 15 seconds."],3:[3,4e9,1.12,.005,"Wilson Analytics","Purchase data and analysis from Wilson, a marketing research firm. Each level of this upgrades increases the effectiveness of your advertising by 0.5% (additive)."],4:[4,1e9,1.06,.1,"Nuoptimal Nootropic Injector Implants","Purchase the Nuoptimal Nootropic Injector augmentation for your employees. Each level of this upgrade globally increases the creativity of your employees by 10% (additive)."],5:[5,1e9,1.06,.1,"Speech Processor Implants","Purchase the Speech Processor augmentation for your employees. Each level of this upgrade globally increases the charisma of your employees by 10% (additive)."],6:[6,1e9,1.06,.1,"Neural Accelerators","Purchase the Neural Accelerator augmentation for your employees. Each level of this upgrade globally increases the intelligence of your employees by 10% (additive)."],7:[7,1e9,1.06,.1,"FocusWires","Purchase the FocusWire augmentation for your employees. Each level of this upgrade globally increases the efficiency of your employees by 10% (additive)."],8:[8,1e9,1.07,.01,"ABC SalesBots","Always Be Closing. Purchase these robotic salesmen to increase the amount of materials and products you sell. Each level of this upgrade globally increases your sales by 1% (additive)."],9:[9,5e9,1.07,.05,"Project Insight","Purchase 'Project Insight', a R&D service provided by the secretive Fulcrum Technologies. Each level of this upgrade globally increases the amount of Scientific Research you produce by 5% (additive)."]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorporationUnlockUpgrades=void 0,t.CorporationUnlockUpgrades={0:[0,2e10,"Export","Develop infrastructure to export your materials to your other facilities. This allows you to move materials around between different divisions and cities."],1:[1,25e9,"Smart Supply","Use advanced AI to anticipate your supply needs. This allows you to purchase exactly however many materials you need for production."],2:[2,5e9,"Market Research - Demand","Mine and analyze market data to determine the demand of all resources. The demand attribute, which affects sales, will be displayed for every material and product."],3:[3,5e9,"Market Data - Competition","Mine and analyze market data to determine how much competition there is on the market for all resources. The competition attribute, which affects sales, will be displayed for every material and product."],4:[4,1e10,"VeChain","Use AI and blockchain technology to identify where you can improve your supply chain systems. This upgrade will allow you to view a wide array of useful statistics about your Corporation."],5:[5,5e11,"Shady Accounting","Utilize unscrupulous accounting practices and pay off government officials to save money on taxes. This reduces the dividend tax rate by 5%."],6:[6,2e12,"Government Partnership","Help national governments further their agendas in exchange for lowered taxes. This reduces the dividend tax rate by 10%"]}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.clearSleevesPage=t.updateSleevesPage=t.createSleevesPage=void 0;const o=n(953),s=n(251),l=n(952),c=n(11),u=n(16),m=n(428),p=n(176),d=n(173),h=n(38),_=n(47),g=n(3),f=n(19),y=n(12),b=n(171),E=n(97),v=n(56),C=n(13),k=n(431),P=n(57),S=n(69),O=n(181),M=n(156),T=n(172),x=n(49),w=n(951),A=n(31),R=n(125),N=n(459),D=n(950),B=n(949),I=n(948),L=i(n(22)),W=n(415),F={container:null,docButton:null,faqButton:null,info:null,sleeveList:null,sleeves:null};let j;function U(){if(f.routing.isOn(f.Page.Sleeves)){if(null===j)throw new Error("playerRef is null in updateSleevesPage()");if(null===F.sleeves)throw new Error("UIElems.sleeves is null in updateSleevesPage()");try{for(let e=0;eSleeves
Duplicate Sleeves are MK-V Synthoids (synthetic androids) into which your consciousness has been copied. In other words, these Synthoids contain a perfect duplicate of your mind.
Sleeves can be used to perform different tasks synchronously.
"}),F.faqButton=C.createElement("button",{class:"std-button",display:"inline-block",innerText:"FAQ",clickListener:()=>{y.dialogBoxCreate(l.SleeveFaq,!1)}}),F.docButton=C.createElement("a",{class:"std-button",display:"inline-block",href:"https://bitburner.readthedocs.io/en/latest/advancedgameplay/sleeves.html#duplicate-sleeves",innerText:"Documentation",target:"_blank"}),F.sleeveList=C.createElement("ul"),F.sleeves=[];for(const t of e.sleeves){const n=H(t,e.sleeves);if(null==n.container)throw new Error("sleeveUi.container is null in createSleevesPage()");F.sleeveList.appendChild(n.container),F.sleeves.push(n)}F.container.appendChild(F.info),F.container.appendChild(F.faqButton),F.container.appendChild(F.docButton),F.container.appendChild(F.sleeveList);const t=document.getElementById("entire-game-container");if(null===t)throw new Error("entire-game-container not found in createSleevesPage()");t.appendChild(F.container)}catch(e){E.exceptionAlert(e)}},t.updateSleevesPage=U,t.clearSleevesPage=function(){F.container instanceof HTMLElement&&T.removeElement(F.container);for(const e in F)F[e]=null;j=null};const K=["Study Computer Science","Data Structures","Networks","Algorithms","Management","Leadership"],q=["Train Strength","Train Defense","Train Dexterity","Train Agility"];function $(e,t,n){if(null==j)throw new Error("playerRef is null in updateSleeveTaskSelector()");const a=[];for(const t of n)e!==t&&t.currentTask===s.SleeveTaskType.Company&&a.push(t.currentTaskLocation);const r=[];for(const t of n)e!==t&&t.currentTask===s.SleeveTaskType.Faction&&r.push(t.currentTaskLocation);if(null===t.taskDetailsSelector)throw new Error("elems.taskDetailsSelector is null");if(null===t.taskDetailsSelector2)throw new Error("elems.taskDetailsSelector is null");switch(M.removeChildrenFromElement(t.taskDetailsSelector),M.removeChildrenFromElement(t.taskDetailsSelector2),t.taskDetailsSelector2=v.clearEventListeners(t.taskDetailsSelector2),O.getSelectValue(t.taskSelector)){case"Work for Company":{let n=0;const r=Object.keys(j.jobs);for(let i=0;i
alias [-g] [name=\"value\"] Create or display Terminal aliases
analyze Get information about the current machine
backdoor Install a backdoor on the current machine
buy [-l/program] Purchase a program through the Dark Web
cat [file] Display a .msg, .lit, or .txt file
cd [dir] Change to a new directory
check [script] [args...] Print a script's logs to Terminal
clear Clear all text on the terminal
cls See 'clear' command
connect [ip/hostname] Connects to a remote server
download [script/text file] Downloads scripts or text files to your computer
expr [math expression] Evaluate a mathematical expression
free Check the machine's memory (RAM) usage
hack Hack the current machine
help [command] Display this help text, or the help text for a command
home Connect to home computer
hostname Displays the hostname of the machine
ifconfig Displays the IP address of the machine
kill [script/pid] [args...] Stops the specified script on the current server
killall Stops all running scripts on the current machine
ls [dir] [| grep pattern] Displays all files on the machine
lscpu Displays the number of CPU cores on the machine
mem [script] [-t] [n] Displays the amount of RAM required to run the script
mv [src] [dest] Move/rename a text or script file
nano [file] Text editor - Open up and edit a script or text file
ps Display all scripts that are currently running
rm [file] Delete a file from the server
run [name] [-t] [n] [args...] Execute a program or script
scan Prints all immediately-available network connections
scan-analyze [d] [-a] Prints info for all servers up to d nodes away
scp [file] [server] Copies a file to a destination server
sudov Shows whether you have root access on this computer
tail [script] [args...] Displays dynamic logs for the specified script
theme [preset] | bg txt hlgt Change the color scheme of the UI
top Displays all running scripts and their RAM usage
unalias [alias name] Deletes the specified alias
wget [url] [target file] Retrieves code/text from a web server
",t.HelpTexts={alias:"alias [-g] [name=\"value\"]
Create or display aliases. An alias enables a replacement of a word with another string. It can be used to abbreviate a commonly used command, or commonly used parts of a command. The NAME of an alias defines the word that will be replaced, while the VALUE defines what it will be replaced by. For example, you could create the alias 'nuke' for the Terminal command 'run NUKE.exe' using the following:
alias nuke=\"run NUKE.exe\"
Then, to run the NUKE.exe program you would just have to enter 'nuke' in Terminal rather than the full command. It is important to note that 'default' aliases will only be substituted for the first word of a Terminal command. For example, if the following alias was set:
alias worm=\"HTTPWorm.exe\"
and then you tried to run the following terminal command:
run worm
This would fail because the worm alias is not the first word of a Terminal command. To allow an alias to be substituted anywhere in a Terminal command, rather than just the first word, you must set it to be a global alias using the -g flag:
alias -g worm=\"HTTPWorm.exe\"
Now, the 'worm' alias will be substituted anytime it shows up as an individual word in a Terminal command.
Entering just the command 'alias' without any arguments prints the list of all defined aliases in the reusable form 'alias NAME=VALUE' on the Terminal.
The 'unalias' command can be used to remove aliases.
",analyze:"analze
Prints details and statistics about the current server. The information that is printed includes basic server details such as the hostname, whether the player has root access, what ports are opened/closed, and also hacking-related information such as an estimated chance to successfully hack, an estimate of how much money is available on the server, etc.",backdoor:"backdoor
Install a backdoor on the current machine, grants a secret bonus depending on the machine.
Requires root access to run.
",buy:"buy [-l / program]
Purchase a program through the Dark Web. Requires a TOR router to use.
If this command is ran with the '-l' flag, it will display a list of all programs that can be bought through the dark web to the Terminal, as well as their costs.
Otherwise, the name of the program must be passed in as a parameter. This name is NOT case-sensitive.",cat:"cat [file]
Display message (.msg), literature (.lit), or text (.txt) files. Examples:
cat j1.msg
cat foo.lit
cat servers.txt",cd:"cd [dir]
Change to the specified directory. Note that this works even for directories that don't exist. If you change to a directory that does not exist, it will not be 'created'. Examples:
cd scripts/hacking
cd /logs
cd ../",check:"check [script name] [args...]
Print the logs of the script specified by the script name and arguments to the Terminal. Each argument must be separated by a space. Remember that a running script is uniquely identified both by its name and the arguments that are used to start it. So, if a script was ran with the following arguments:
run foo.script 1 2 foodnstuff
Then to run the 'check' command on this script you would have to pass the same arguments in:
check foo.script 1 2 foodnstuff",clear:"clear
Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'cls' command",cls:"cls
Clear the Terminal screen, deleting all of the text. Note that this does not delete the user's command history, so using the up and down arrow keys is still valid. Also note that this is permanent and there is no way to undo this. Synonymous with 'clear' command",connect:"connect [hostname/ip]
Connect to a remote server. The hostname or IP address of the remote server must be given as the argument to this command. Note that only servers that are immediately adjacent to the current server in the network can be connected to. To see which servers can be connected to, use the 'scan' command.",download:"download [script/text file]
Downloads a script or text file to your computer (like your real life computer).
You can also download all of your scripts/text files as a zip file using the following Terminal commands:
Download all scripts and text files: download *
Download all scripts: download *.script
Download all text files: download *.txt
",expr:"expr [mathematical expression]
Evaluate a simple mathematical expression. Supports native JavaScript operators:
+, -, /, *, **, %
Example:
expr 25 * 2 ** 10
Note that letters (non-digits) are not allowed and will be removed from the input.",free:"free
Display's the memory usage on the current machine. Print the amount of RAM that is available on the current server as well as how much of it is being used.",hack:"hack
Attempt to hack the current server. Requires root access in order to be run. See the wiki page for hacking mechanics
",help:"help [command]
Display Terminal help information. Without arguments, 'help' prints a list of all valid Terminal commands and a brief description of their functionality. You can also pass the name of a Terminal command as an argument to 'help' to print more detailed information about the Terminal command. Examples:
help alias
help scan-analyze",home:"home
Connect to your home computer. This will work no matter what server you are currently connected to.",hostname:"hostname
Prints the hostname of the current server",ifconfig:"ipconfig
Prints the IP address of the current server",kill:"kill [script name] [args...]
kill [pid]
Kill the script specified by the script name and arguments OR by its PID.
If you are killing the script using its filename and arguments, then each argument must be separated by a space. Remember that a running script is uniquely identified by both its name and the arguments that are used to start it. So, if a script was ran with the following arguments:
run foo.script 1 sigma-cosmetics
Then to kill this script the same arguments would have to be used:
kill foo.script 1 sigma-cosmetics
If you are killing the script using its PID, then the PID argument must be numeric",killall:"killall
Kills all scripts on the current server. Note that after the 'kill' command is issued for a script, it may take a while for the script to actually stop running. This will happen if the script is in the middle of a command such as grow() or weaken() that takes time to execute. The script will not be stopped/killed until after that time has elapsed.",ls:"ls [dir] [| grep pattern]
The ls command, with no arguments, prints all files and directories on the current server's directory to the Terminal screen. The files will be displayed in alphabetical order.
The 'dir' optional parameter can be used to display files/directories in another directory.
The '| grep pattern' optional parameter can be used to only display files whose filenames match the specified pattern.
Examples:
List all files with the '.script' extension in the current directory:
ls | grep .script
List all files with the '.js' extension in the root directory:
ls / | grep .js
List all files with the word 'purchase' in the filename, in the 'scripts' directory:
ls scripts | grep purchase",lscpu:"lscpu
Prints the number of CPU Cores the current server has",mem:"mem [script name] [-t] [num threads]
Displays the amount of RAM needed to run the specified script with a single thread. The command can also be used to print the amount of RAM needed to run a script with multiple threads using the '-t' flag. If the '-t' flag is specified, then an argument for the number of threads must be passed in afterwards. Examples:
mem foo.script
mem foo.script -t 50
The first example above will print the amount of RAM needed to run 'foo.script' with a single thread. The second example above will print the amount of RAM needed to run 'foo.script' with 50 threads.",mv:"mv [src] [dest]
Move the source file to the specified destination. This can also be used to rename files. This command only works for scripts and text files (.txt). This command CANNOT be used to convert to different file types
Note that, unlike the Linux 'mv' command, the destination argument must be the full filepath. Examples:
mv hacking-controller.script scripts/hacking-controller.script
mv myScript.js myOldScript.js",nano:"nano [file name]
Opens up the specified file in the Text Editor. Only scripts (.script) or text files (.txt) can be edited using the Text Editor. If the file does not already exist, then a new, empty one will be created",ps:"ps
Prints all scripts that are running on the current server",rm:"rm [file]
Removes the specified file from the current server. A file can be a script, a program, or a message file.
WARNING: This is permanent and cannot be undone",run:"run [file name] [-t] [num threads] [args...]
Execute a program or a script.
The '[-t]', '[num threads]', and '[args...]' arguments are only valid when running a script. The '-t' flag is used to indicate that the script should be run with the specified number of threads. If the flag is omitted, then the script will be run with a single thread by default. If the '-t' flag is used, then it MUST come immediately after the script name, and the [num threads] argument MUST come immediately afterwards.
[args...] represents a variable number of arguments that will be passed into the script. See the documentation about script arguments. Each specified argument must be separated by a space.
",scan:"scan
Prints all immediately-available network connection. This will print a list of all servers that you can currently connect to using the 'connect' Terminal command.","scan-analyze":"scan-analyze [depth] [-a]
Prints detailed information about all servers up to [depth] nodes away on the network. Calling 'scan-analyze 1' will display information for the same servers that are shown by the 'scan' Terminal command. This command also shows the relative paths to reach each server.
By default, the maximum depth that can be specified for 'scan-analyze' is 3. However, once you have the DeepscanV1.exe and DeepscanV2.exe programs, you can execute 'scan-analyze' with a depth up to 5 and 10, respectively.
The information 'scan-analyze' displays about each server includes whether or not you have root access to it, its required hacking level, the number of open ports required to run NUKE.exe on it, and how much RAM it has.
By default, this command will not display servers that you have purchased. However, you can pass in the -a flag at the end of the command if you would like to enable that.",scp:"scp [filename] [target server]
Copies the specified file from the current server to the target server. This command only works for script files (.script extension), literature files (.lit extension), and text files (.txt extension). The second argument passed in must be the hostname or IP of the target server.",sudov:"sudov
Prints whether or not you have root access to the current machine",tail:"tail [script name] [args...]
Displays dynamic logs for the script specified by the script name and arguments. Each argument must be separated by a space. Remember that a running script is uniquely identified by both its name and the arguments that were used to run it. So, if a script was ran with the following arguments:
run foo.script 10 50000
Then in order to check its logs with 'tail' the same arguments must be used:
tail foo.script 10 50000",theme:"theme [preset] | [#background #text #highlight]
Change the color of the game's user interface
This command can be called with a preset theme. Currently, the supported presets are 'default', 'muted', and 'solarized'. However, you can also specify your own color scheme using hex values. To do so, you must specify three hex color values for the background color, the text color, and the highlight color. These hex values must be preceded by a pound sign (#) and must be either 3 or 6 digits. Example:
theme #ffffff #385 #235012
A color picker such as Google's can be used to get your desired hex color values
Themes are not saved, so when the game is closed and then re-opened or reloaded then it will revert back to the default theme.",top:"top
Prints a list of all scripts running on the current server as well as their thread count and how much RAM they are using in total.",unalias:"unalias [alias name]
Deletes the specified alias. Note that the double quotation marks are required.
As an example, if an alias was declared using:
alias r=\"run\"
Then it could be removed using:
unalias r
It is not necessary to differentiate between global and non-global aliases when using 'unalias'",wget:"wget [url] [target file]
Retrieves data from a URL and downloads it to a file on the current server. The data can only be downloaded to a script (.script, .ns, .js) or a text file (.txt). If the file already exists, it will be overwritten by this command.
Note that it will not be possible to download data from many websites because they do not allow cross-origin resource sharing (CORS). Example:
wget https://raw.githubusercontent.com/danielyxie/bitburner/master/README.md game_readme.txt"}},,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trusted=void 0,t.trusted=function(e){return function(t){t.isTrusted&&e()}}},,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.purchaseTorRouter=t.createUpgradeHomeRamPopup=t.createUpgradeHomeCoresPopup=t.createStartCorporationPopup=t.createPurchaseServerPopup=t.createTravelPopup=void 0;const o=n(11),s=n(23),l=n(24),c=n(144),u=n(45),m=n(26),p=n(3),d=n(31),h=n(12),_=n(54),g=n(13),f=n(57),y=n(69),b=n(49),E=i(n(0));t.createTravelPopup=function(e,t){const n=o.CONSTANTS.TravelCost;if(m.Settings.SuppressTravelConfirmation)return void t(e);const a=_.yesNoBoxGetYesButton(),r=_.yesNoBoxGetNoButton();null!=a&&null!=r?(a.innerHTML="Yes",a.addEventListener("click",()=>(_.yesNoBoxClose(),t(e),!1)),r.innerHTML="No",r.addEventListener("click",()=>(_.yesNoBoxClose(),!1)),_.yesNoBoxCreate(E.createElement("span",null,"Would you like to travel to ",e,"? The trip will cost ",d.Money(n),"."))):console.warn("Could not find YesNo pop-up box buttons")},t.createPurchaseServerPopup=function(e,t){const n=c.getPurchaseServerCost(e);if(n===1/0)return void h.dialogBoxCreate("Something went wrong when trying to purchase this server. Please contact developer.");const a=_.yesNoTxtInpBoxGetYesButton(),r=_.yesNoTxtInpBoxGetNoButton();null!=a&&null!=r&&(a.innerHTML="Purchase Server",r.innerHTML="Cancel",a.addEventListener("click",function(){c.purchaseServer(e,t),_.yesNoTxtInpBoxClose()}),r.addEventListener("click",function(){_.yesNoTxtInpBoxClose()}),_.yesNoTxtInpBoxCreate(E.createElement(E.Fragment,null,"Would you like to purchase a new server with ",p.numeralWrapper.formatRAM(e)," of RAM for ",d.Money(n),"?",E.createElement("br",null),E.createElement("br",null),"Please enter the server hostname below:",E.createElement("br",null))))},t.createStartCorporationPopup=function(e){if(!e.canAccessCorporation()||e.hasCorporation())return;const t="create-corporation-popup",n=g.createElement("p",{innerHTML:"Would you like to start a corporation? This will require $150b for registration and initial funding. This $150b can either be self-funded, or you can obtain the seed money from the government in exchange for 500 million shares
If you would like to start one, please enter a name for your corporation below:"}),a=g.createElement("input",{class:"text-input",placeholder:"Corporation Name"}),r=g.createElement("button",{class:"popup-box-button",innerText:"Self-Fund",clickListener:()=>{if(!e.canAfford(15e10))return h.dialogBoxCreate("You don't have enough money to create a corporation! You need $150b."),!1;const n=a.value;if(null==n||""==n)return h.dialogBoxCreate("Invalid company name!"),!1;e.startCorporation(n),e.loseMoney(15e10);const r=document.getElementById("world-menu-header");return r instanceof HTMLElement&&(r.click(),r.click()),h.dialogBoxCreate("Congratulations! You just self-funded your own corporation. You can visit and manage your company in the City."),b.removeElementById(t),!1}}),i=g.createElement("button",{class:"popup-box-button",innerText:"Use Seed Money",clickListener:()=>{const n=a.value;if(null==n||""==n)return h.dialogBoxCreate("Invalid company name!"),!1;e.startCorporation(n,5e8);const r=document.getElementById("world-menu-header");return r instanceof HTMLElement&&(r.click(),r.click()),h.dialogBoxCreate("Congratulations! You just started your own corporation with government seed money. You can visit and manage your company in the City."),b.removeElementById(t),!1}}),o=y.createPopupCloseButton(t,{class:"popup-box-button"});f.createPopup(t,[n,a,o,r,i]),a.focus()},t.createUpgradeHomeCoresPopup=function(e){const t=e.getHomeComputer().cpuCores;if(t>=8)return void h.dialogBoxCreate(E.createElement(E.Fragment,null,"You have the maximum amount of CPU cores on your home computer."));const n=[0,1e10,25e10,5e12,1e14,1e15,2e16,2e17][t],a=_.yesNoBoxGetYesButton(),r=_.yesNoBoxGetNoButton();null!=a&&null!=r&&(a.innerHTML="Purchase",a.addEventListener("click",()=>{e.canAfford(n)?(e.loseMoney(n),e.getHomeComputer().cpuCores++,h.dialogBoxCreate("You purchased an additional CPU Core for your home computer! It now has "+e.getHomeComputer().cpuCores+" cores.")):h.dialogBoxCreate("You do not have enough money to purchase an additional CPU Core for your home computer!"),_.yesNoBoxClose()}),r.innerHTML="Cancel",r.addEventListener("click",()=>{_.yesNoBoxClose()}),_.yesNoBoxCreate(E.createElement(E.Fragment,null,"Would you like to purchase an additional CPU Core for your home computer? Each CPU Core lets you start with an additional Core Node in Hacking Missions.",E.createElement("br",null),E.createElement("br",null),"Purchasing an additional core (for a total of ",e.getHomeComputer().cpuCores+1,") will cost ",d.Money(n))))},t.createUpgradeHomeRamPopup=function(e){const t=e.getUpgradeHomeRamCost(),n=e.getHomeComputer().maxRam,a=_.yesNoBoxGetYesButton(),r=_.yesNoBoxGetNoButton();null!=a&&null!=r&&(e.getHomeComputer().maxRam>=o.CONSTANTS.HomeComputerMaxRam?h.dialogBoxCreate(E.createElement(E.Fragment,null,"You have the maximum amount of RAM on your home computer.")):(a.innerText="Purchase",a.addEventListener("click",()=>{c.purchaseRamForHomeComputer(t,e),_.yesNoBoxClose()}),r.innerText="Cancel",r.addEventListener("click",()=>{_.yesNoBoxClose()}),_.yesNoBoxCreate(E.createElement(E.Fragment,null,"Would you like to purchase additional RAM for your home computer? ",E.createElement("br",null),E.createElement("br",null),"This will upgrade your RAM from ",p.numeralWrapper.formatRAM(n)," to ",p.numeralWrapper.formatRAM(2*n),". ",E.createElement("br",null),E.createElement("br",null),"This will cost ",d.Money(t)))))},t.purchaseTorRouter=function(e){if(e.hasTorRouter())return void h.dialogBoxCreate("You already have a TOR Router!");if(!e.canAfford(o.CONSTANTS.TorRouterCost))return void h.dialogBoxCreate("You cannot afford to purchase the TOR router!");e.loseMoney(o.CONSTANTS.TorRouterCost);const t=l.safetlyCreateUniqueServer({ip:s.createUniqueRandomIp(),hostname:"darkweb",organizationName:"",isConnectedTo:!1,adminRights:!1,purchasedByPlayer:!1,maxRam:1});s.AddToAllServers(t),u.SpecialServerIps.addIp("Darkweb Server",t.ip),e.getHomeComputer().serversOnNetwork.push(t.ip),t.serversOnNetwork.push(e.getHomeComputer().ip),h.dialogBoxCreate("You have purchased a TOR router!
You now have access to the dark web from your home computer.
Use the scan/scan-analyze commands to search for the dark web connection.")}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AutoupdatingStdButton=void 0;const o=i(n(0));t.AutoupdatingStdButton=class extends o.Component{constructor(e){super(e),this.interval=0,this.state={i:0}}componentDidMount(){const e=this.props.intervalTime?this.props.intervalTime:1e3;this.interval=window.setInterval(()=>this.tick(),e)}componentWillUnmount(){clearInterval(this.interval)}tick(){this.setState(e=>({i:e.i+1}))}render(){const e=null!=this.props.tooltip&&""!==this.props.tooltip;let t=this.props.disabled?"std-button-disabled":"std-button";e&&(t+=" tooltip");const n={__html:this.props.tooltip?this.props.tooltip:""};return o.createElement("button",{className:t,onClick:this.props.onClick,style:this.props.style},this.props.text,e&&o.createElement("span",{className:"tooltiptext",dangerouslySetInnerHTML:n}))}}},,,,,,,function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SuccessChance=void 0;const r=a(n(0)),i=n(20);t.SuccessChance=function(e){return e.chance[0]===e.chance[1]?r.default.createElement(r.default.Fragment,null,i.formatNumber(100*e.chance[0],1),"%"):r.default.createElement(r.default.Fragment,null,i.formatNumber(100*e.chance[0],1),"% ~ ",i.formatNumber(100*e.chance[1],1),"%")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocationType=void 0,function(e){e[e.Company=0]="Company",e[e.Gym=1]="Gym",e[e.Hospital=2]="Hospital",e[e.Slums=3]="Slums",e[e.Special=4]="Special",e[e.StockMarket=5]="StockMarket",e[e.TechVendor=6]="TechVendor",e[e.TravelAgency=7]="TravelAgency",e[e.University=8]="University",e[e.Casino=9]="Casino"}(t.LocationType||(t.LocationType={}))},,,,,,,,,function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.gangMemberUpgradesMetadata=t.UpgradeType=void 0,function(e){e.Weapon="w",e.Armor="a",e.Vehicle="v",e.Rootkit="r",e.Augmentation="g"}(a=t.UpgradeType||(t.UpgradeType={})),t.gangMemberUpgradesMetadata=[{cost:1e6,mults:{str:1.04,def:1.04},name:"Baseball Bat",upgType:a.Weapon},{cost:12e6,mults:{str:1.08,def:1.08,dex:1.08},name:"Katana",upgType:a.Weapon},{cost:25e6,mults:{str:1.1,def:1.1,dex:1.1,agi:1.1},name:"Glock 18C",upgType:a.Weapon},{cost:5e7,mults:{str:1.12,def:1.1,agi:1.1},name:"P90C",upgType:a.Weapon},{cost:6e7,mults:{str:1.2,def:1.15},name:"Steyr AUG",upgType:a.Weapon},{cost:1e8,mults:{str:1.25,def:1.2},name:"AK-47",upgType:a.Weapon},{cost:15e7,mults:{str:1.3,def:1.25},name:"M15A10 Assault Rifle",upgType:a.Weapon},{cost:225e6,mults:{str:1.3,dex:1.25,agi:1.3},name:"AWM Sniper Rifle",upgType:a.Weapon},{cost:2e6,mults:{def:1.04},name:"Bulletproof Vest",upgType:a.Armor},{cost:5e6,mults:{def:1.08},name:"Full Body Armor",upgType:a.Armor},{cost:25e6,mults:{def:1.15,agi:1.15},name:"Liquid Body Armor",upgType:a.Armor},{cost:4e7,mults:{def:1.2},name:"Graphene Plating Armor",upgType:a.Armor},{cost:3e6,mults:{agi:1.04,cha:1.04},name:"Ford Flex V20",upgType:a.Vehicle},{cost:9e6,mults:{agi:1.08,cha:1.08},name:"ATX1070 Superbike",upgType:a.Vehicle},{cost:18e6,mults:{agi:1.12,cha:1.12},name:"Mercedes-Benz S9001",upgType:a.Vehicle},{cost:3e7,mults:{agi:1.16,cha:1.16},name:"White Ferrari",upgType:a.Vehicle},{cost:5e6,mults:{hack:1.05},name:"NUKE Rootkit",upgType:a.Rootkit},{cost:25e6,mults:{hack:1.1},name:"Soulstealer Rootkit",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Demon Rootkit",upgType:a.Rootkit},{cost:4e7,mults:{hack:1.12},name:"Hmap Node",upgType:a.Rootkit},{cost:75e6,mults:{hack:1.15},name:"Jack the Ripper",upgType:a.Rootkit},{cost:1e10,mults:{str:1.3,dex:1.3},name:"Bionic Arms",upgType:a.Augmentation},{cost:1e10,mults:{agi:1.6},name:"Bionic Legs",upgType:a.Augmentation},{cost:15e9,mults:{str:1.15,def:1.15,dex:1.15,agi:1.15},name:"Bionic Spine",upgType:a.Augmentation},{cost:2e10,mults:{str:1.4,def:1.4},name:"BrachiBlades",upgType:a.Augmentation},{cost:12e9,mults:{str:1.2,def:1.2},name:"Nanofiber Weave",upgType:a.Augmentation},{cost:25e9,mults:{str:1.5,agi:1.5},name:"Synthetic Heart",upgType:a.Augmentation},{cost:15e9,mults:{str:1.3,def:1.3},name:"Synfibril Muscle",upgType:a.Augmentation},{cost:5e9,mults:{hack:1.05},name:"BitWire",upgType:a.Augmentation},{cost:1e10,mults:{hack:1.15},name:"Neuralstimulator",upgType:a.Augmentation},{cost:75e8,mults:{hack:1.1},name:"DataJack",upgType:a.Augmentation},{cost:5e10,mults:{str:1.7,def:1.7},name:"Graphene Bone Lacings",upgType:a.Augmentation}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventEmitter=void 0;t.EventEmitter=class{constructor(e){if(this.subscribers={},Array.isArray(e))for(const t of e)this.addSubscriber(t)}addSubscriber(e){this.subscribers[e.id]=e.cb}emitEvent(...e){for(const t in this.subscribers)(0,this.subscribers[t])(e)}removeSubscriber(e){delete this.subscribers[e]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const a=n(705),r=n(21),i=n(1141),o=n(416),s=n(27);class l extends a.BaseServer{constructor(e={hostname:"",ip:o.createRandomIp()}){super(e),this.backdoorInstalled=!1,this.baseDifficulty=1,this.hackDifficulty=1,this.minDifficulty=1,this.moneyAvailable=0,this.moneyMax=0,this.numOpenPortsRequired=5,this.openPortCount=0,this.purchasedByPlayer=!1,this.requiredHackingSkill=1,this.serverGrowth=1,this.hostname.startsWith("hacknet-node-")&&(this.hostname=i.createRandomString(10)),this.purchasedByPlayer=null!=e.purchasedByPlayer&&e.purchasedByPlayer,this.maxRam=null!=e.maxRam?e.maxRam:0,this.requiredHackingSkill=null!=e.requiredHackingSkill?e.requiredHackingSkill:1,this.moneyAvailable=null!=e.moneyAvailable?e.moneyAvailable*r.BitNodeMultipliers.ServerStartingMoney:0,this.moneyMax=25*this.moneyAvailable*r.BitNodeMultipliers.ServerMaxMoney,this.hackDifficulty=null!=e.hackDifficulty?e.hackDifficulty*r.BitNodeMultipliers.ServerStartingSecurity:1,this.baseDifficulty=this.hackDifficulty,this.minDifficulty=Math.max(1,Math.round(this.hackDifficulty/3)),this.serverGrowth=null!=e.serverGrowth?e.serverGrowth:1,this.numOpenPortsRequired=null!=e.numOpenPortsRequired?e.numOpenPortsRequired:5}capDifficulty(){this.hackDifficulty
`+`Strength: ${l.numeralWrapper.formatSkill(e.strength)} (${l.numeralWrapper.formatExp(e.strength_exp)} exp)
`+`Defense: ${l.numeralWrapper.formatSkill(e.defense)} (${l.numeralWrapper.formatExp(e.defense_exp)} exp)
`+`Dexterity: ${l.numeralWrapper.formatSkill(e.dexterity)} (${l.numeralWrapper.formatExp(e.dexterity_exp)} exp)
`+`Agility: ${l.numeralWrapper.formatSkill(e.agility)} (${l.numeralWrapper.formatExp(e.agility_exp)} exp)
`+`Charisma: ${l.numeralWrapper.formatSkill(e.charisma)} (${l.numeralWrapper.formatExp(e.charisma_exp)} exp)
`+`# Augmentations: ${e.augmentations.length}`}),t.multipliersButton=d.createElement("button",{class:"std-button",innerText:"Multipliers",clickListener:()=>{m.dialogBoxCreate(["Total Multipliers:
",`Hacking Level multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_mult)}`,`Hacking Experience multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_exp_mult)}`,`Strength Level multiplier: ${l.numeralWrapper.formatPercentage(e.strength_mult)}`,`Strength Experience multiplier: ${l.numeralWrapper.formatPercentage(e.strength_exp_mult)}`,`Defense Level multiplier: ${l.numeralWrapper.formatPercentage(e.defense_mult)}`,`Defense Experience multiplier: ${l.numeralWrapper.formatPercentage(e.defense_exp_mult)}`,`Dexterity Level multiplier: ${l.numeralWrapper.formatPercentage(e.dexterity_mult)}`,`Dexterity Experience multiplier: ${l.numeralWrapper.formatPercentage(e.dexterity_exp_mult)}`,`Agility Level multiplier: ${l.numeralWrapper.formatPercentage(e.agility_mult)}`,`Agility Experience multiplier: ${l.numeralWrapper.formatPercentage(e.agility_exp_mult)}`,`Charisma Level multiplier: ${l.numeralWrapper.formatPercentage(e.charisma_mult)}`,`Charisma Experience multiplier: ${l.numeralWrapper.formatPercentage(e.charisma_exp_mult)}`,`Hacking Chance multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_chance_mult)}`,`Hacking Speed multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_speed_mult)}`,`Hacking Money multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_money_mult)}`,`Hacking Growth multiplier: ${l.numeralWrapper.formatPercentage(e.hacking_grow_mult)}`,`Salary multiplier: ${l.numeralWrapper.formatPercentage(e.work_money_mult)}`,`Company Reputation Gain multiplier: ${l.numeralWrapper.formatPercentage(e.company_rep_mult)}`,`Faction Reputation Gain multiplier: ${l.numeralWrapper.formatPercentage(e.faction_rep_mult)}`,`Crime Money multiplier: ${l.numeralWrapper.formatPercentage(e.crime_money_mult)}`,`Crime Success multiplier: ${l.numeralWrapper.formatPercentage(e.crime_success_mult)}`,`Hacknet Income multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_money_mult)}`,`Hacknet Purchase Cost multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_purchase_cost_mult)}`,`Hacknet Level Upgrade Cost multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_level_cost_mult)}`,`Hacknet Ram Upgrade Cost multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_ram_cost_mult)}`,`Hacknet Core Upgrade Cost multiplier: ${l.numeralWrapper.formatPercentage(e.hacknet_node_core_cost_mult)}`,`Bladeburner Max Stamina multiplier: ${l.numeralWrapper.formatPercentage(e.bladeburner_max_stamina_mult)}`,`Bladeburner Stamina Gain multiplier: ${l.numeralWrapper.formatPercentage(e.bladeburner_stamina_gain_mult)}`,`Bladeburner Field Analysis multiplier: ${l.numeralWrapper.formatPercentage(e.bladeburner_analysis_mult)}`,`Bladeburner Success Chance multiplier: ${l.numeralWrapper.formatPercentage(e.bladeburner_success_chance_mult)}`].join("
"),!1)}}),t.statsPanel.appendChild(t.stats),t.statsPanel.appendChild(t.multipliersButton),t.augPanel=d.createElement("div",{class:"resleeve-panel",width:"50%"}),t.augSelector=d.createElement("select",{class:"resleeve-aug-selector dropdown"}),t.augDescription=d.createElement("p");for(let n=0;n
Re-sleeving will change your experience for every stat. It will also REMOVE all of your currently-installed Augmentations, and replace them with the ones provided by the purchased sleeve. However, Augmentations that you have purchased but not installed will NOT be removed. If you have purchased an Augmentation and then re-sleeve into a body which already has that Augmentation, it will be removed (since you cannot have duplicate Augmentations).
NOTE: The stats and multipliers displayed on this page do NOT include your bonuses from Source-File.",width:"75%"}),0===e.resleeves.length&&(e.resleeves=o.generateResleeves()),E.sortTag=d.createElement("p",{display:"inline-block",innerText:"Sort By: "}),E.sortSelector=d.createElement("select",{class:"dropdown"}),function(e){e.Cost="Cost",e.Hacking="Hacking",e.Strength="Strength",e.Defense="Defense",e.Dexterity="Dexterity",e.Agility="Agility",e.Charisma="Charisma",e.AverageCombatStats="AverageCombat",e.AverageAllStats="AverageAllStats",e.TotalNumAugmentations="TotalNumAugmentations"}(t||(t={})),E.sortSelector.add(h.createOptionElement("Cost",t.Cost)),E.sortSelector.add(h.createOptionElement("Hacking Level",t.Hacking)),E.sortSelector.add(h.createOptionElement("Strength Level",t.Strength)),E.sortSelector.add(h.createOptionElement("Defense Level",t.Defense)),E.sortSelector.add(h.createOptionElement("Dexterity Level",t.Dexterity)),E.sortSelector.add(h.createOptionElement("Agility Level",t.Agility)),E.sortSelector.add(h.createOptionElement("Charisma Level",t.Charisma)),E.sortSelector.add(h.createOptionElement("Average Combat Stats",t.AverageCombatStats)),E.sortSelector.add(h.createOptionElement("Average Stats",t.AverageAllStats)),E.sortSelector.add(h.createOptionElement("Number of Augmentations",t.TotalNumAugmentations)),E.resleeveList=d.createElement("ul"),E.sortSelector.onchange=(()=>{function n(...e){let t=0;for(let n=0;n
Does NOT require stamina."}),e="Recruitment",t.GeneralActions[e]=new a.Action({name:e,desc:"Attempt to recruit members for your Bladeburner team. These members can help you conduct operations.
Does NOT require stamina."}),e="Diplomacy",t.GeneralActions[e]=new a.Action({name:e,desc:"Improve diplomatic relations with the Synthoid population. Completing this action will reduce the Chaos level in your current city.
Does NOT require stamina."}),e="Hyperbolic Regeneration Chamber",t.GeneralActions[e]=new a.Action({name:e,desc:"Enter cryogenic stasis using the Bladeburner division's hi-tech Regeneration Chamber. This will slowly heal your wounds and slightly increase your stamina.
"})}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation=void 0;const a=n(150),r=n(518),i=n(27);class o extends r.Action{constructor(e=null){super(e),this.reqdRank=100,this.teamCount=0,e&&e.reqdRank&&(this.reqdRank=e.reqdRank),e&&e.teamCount&&(this.teamCount=e.teamCount)}getTeamSuccessBonus(e){if(this.teamCount&&this.teamCount>0){return this.teamCount=Math.min(this.teamCount,e.teamSize),Math.pow(this.teamCount,.05)}return 1}getActionTypeSkillSuccessBonus(e){return e.skillMultipliers.successChanceOperation}getChaosDifficultyBonus(e){const t=e.getCurrentCity();if(t.chaos>a.BladeburnerConstants.ChaosThreshold){const e=t.chaos-a.BladeburnerConstants.ChaosThreshold+1;return Math.pow(e,.1)}return 1}toJSON(){return i.Generic_toJSON("Operation",this)}static fromJSON(e){return i.Generic_fromJSON(o,e.data)}}t.Operation=o,i.Reviver.constructors.Operation=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlackOperation=void 0;const a=n(753),r=n(27);class i extends a.Operation{constructor(e=null){super(e),this.count=1,this.countGrowth=0}getActionTimePenalty(){return 1.5}getChaosCompetencePenalty(){return 1}getChaosDifficultyBonus(){return 1}toJSON(){return r.Generic_toJSON("BlackOperation",this)}static fromJSON(e){return r.Generic_fromJSON(i,e.data)}}t.BlackOperation=i,r.Reviver.constructors.BlackOperation=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlackOperations=void 0;const a=n(754);t.BlackOperations={},t.BlackOperations["Operation Typhoon"]=new a.BlackOperation({name:"Operation Typhoon",desc:"Obadiah Zenyatta is the leader of a RedWater PMC. It has long been known among the intelligence community that Zenyatta, along with the rest of the PMC, is a Synthoid.
The goal of Operation Typhoon is to find and eliminate Zenyatta and RedWater by any means necessary. After the task is completed, the actions must be covered up from the general public.",baseDifficulty:2e3,reqdRank:2500,rankGain:50,rankLoss:10,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Zero"]=new a.BlackOperation({name:"Operation Zero",desc:"AeroCorp is one of the world's largest defense contractors. Its leader, Steve Watataki, is thought to be a supporter of Synthoid rights. He must be removed.
The goal of Operation Zero is to covertly infiltrate AeroCorp and uncover any incriminating evidence or information against Watataki that will cause him to be removed from his position at AeroCorp. Incriminating evidence can be fabricated as a last resort. Be warned that AeroCorp has some of the most advanced security measures in the world.",baseDifficulty:2500,reqdRank:5e3,rankGain:60,rankLoss:15,hpLoss:50,weights:{hack:.2,str:.15,def:.15,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),t.BlackOperations["Operation X"]=new a.BlackOperation({name:"Operation X",desc:"We have recently discovered an underground publication group called Samizdat. Even though most of their publications are nonsensical conspiracy theories, the average human is gullible enough to believe them. Many of their works discuss Synthoids and pose a threat to society. The publications are spreading rapidly in China and other Eastern countries.
Samizdat has done a good job of keeping hidden and anonymous. However, we've just received intelligence that their base of operations is in Ishima's underground sewer systems. Your task is to investigate the sewer systems, and eliminate Samizdat. They must never publish anything again.",baseDifficulty:3e3,reqdRank:7500,rankGain:75,rankLoss:15,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Titan"]=new a.BlackOperation({name:"Operation Titan",desc:"Several months ago Titan Laboratories' Bioengineering department was infiltrated by Synthoids. As far as we know, Titan Laboratories' management has no knowledge about this. We don't know what the Synthoids are up to, but the research that they could be conducting using Titan Laboraties' vast resources is potentially very dangerous.
Your goal is to enter and destroy the Bioengineering department's facility in Aevum. The task is not just to retire the Synthoids there, but also to destroy any information or research at the facility that is relevant to the Synthoids and their goals.",baseDifficulty:4e3,reqdRank:1e4,rankGain:100,rankLoss:20,hpLoss:100,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Ares"]=new a.BlackOperation({name:"Operation Ares",desc:"One of our undercover agents, Agent Carter, has informed us of a massive weapons deal going down in Dubai between rogue Russian militants and a radical Synthoid community. These weapons are next-gen plasma and energy weapons. It is critical for the safety of humanity that this deal does not happen.
Your task is to intercept the deal. Leave no survivors.",baseDifficulty:5e3,reqdRank:12500,rankGain:125,rankLoss:20,hpLoss:200,weights:{hack:0,str:.25,def:.25,dex:.25,agi:.25,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Archangel"]=new a.BlackOperation({name:"Operation Archangel",desc:"Our analysts have discovered that the popular Red Rabbit brothel in Amsterdam is run and 'staffed' by MK-VI Synthoids. Intelligence suggests that the profit from this brothel is used to fund a large black market arms trafficking operation.
The goal of this operation is to take out the leaders that are running the Red Rabbit brothel. Try to limit the number of other casualties, but do what you must to complete the mission.",baseDifficulty:7500,reqdRank:15e3,rankGain:200,rankLoss:20,hpLoss:25,weights:{hack:0,str:.2,def:.2,dex:.3,agi:.3,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Juggernaut"]=new a.BlackOperation({name:"Operation Juggernaut",desc:"The CIA has just encountered a new security threat. A new criminal group, lead by a shadowy operative who calls himself Juggernaut, has been smuggling drugs and weapons (including suspected bioweapons) into Sector-12. We also have reason to believe the tried to break into one of Universal Energy's facilities in order to cause a city-wide blackout. The CIA suspects that Juggernaut is a heavily-augmented Synthoid, and have thus enlisted our help.
Your mission is to eradicate Juggernaut and his followers.",baseDifficulty:1e4,reqdRank:2e4,rankGain:300,rankLoss:40,hpLoss:300,weights:{hack:0,str:.25,def:.25,dex:.25,agi:.25,cha:0,int:0},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Red Dragon"]=new a.BlackOperation({name:"Operation Red Dragon",desc:"The Tetrads criminal organization is suspected of reverse-engineering the MK-VI Synthoid design. We believe they altered and possibly improved the design and began manufacturing their own Synthoid models in order to bolster their criminal activities.
Your task is to infiltrate and destroy the Tetrads' base of operations in Los Angeles. Intelligence tells us that their base houses one of their Synthoid manufacturing units.",baseDifficulty:12500,reqdRank:25e3,rankGain:500,rankLoss:50,hpLoss:500,weights:{hack:.05,str:.2,def:.2,dex:.25,agi:.25,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation K"]=new a.BlackOperation({name:"Operation K",desc:"CODE RED SITUATION. Our intelligence tells us that VitaLife has discovered a new android cloning technology. This technology is supposedly capable of cloning Synthoid, not only physically but also their advanced AI modules. We do not believe that VitaLife is trying to use this technology illegally or maliciously, but if any Synthoids were able to infiltrate the corporation and take advantage of this technology then the results would be catastrophic.
We do not have the power or jurisdiction to shutdown this down through legal or political means, so we must resort to a covert operation. Your goal is to destroy this technology and eliminate anyone who was involved in its creation.",baseDifficulty:15e3,reqdRank:3e4,rankGain:750,rankLoss:60,hpLoss:1e3,weights:{hack:.05,str:.2,def:.2,dex:.25,agi:.25,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Deckard"]=new a.BlackOperation({name:"Operation Deckard",desc:"Despite your success in eliminating VitaLife's new android-replicating technology in Operation K, we've discovered that a small group of MK-VI Synthoids were able to make off with the schematics and design of the technology before the Operation. It is almost a certainty that these Synthoids are some of the rogue MK-VI ones from the Synthoid Uprising.
The goal of Operation Deckard is to hunt down these Synthoids and retire them. I don't need to tell you how critical this mission is.",baseDifficulty:2e4,reqdRank:4e4,rankGain:1e3,rankLoss:75,hpLoss:200,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:0,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Tyrell"]=new a.BlackOperation({name:"Operation Tyrell",desc:"A week ago Blade Industries reported a small break-in at one of their Aevum Augmentation storage facitilities. We figured out that The Dark Army was behind the heist, and didn't think any more of it. However, we've just discovered that several known MK-VI Synthoids were part of that break-in group.
We cannot have Synthoids upgrading their already-enhanced abilities with Augmentations. Your task is to hunt down the associated Dark Army members and eliminate them.",baseDifficulty:25e3,reqdRank:5e4,rankGain:1500,rankLoss:100,hpLoss:500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Wallace"]=new a.BlackOperation({name:"Operation Wallace",desc:"Based on information gathered from Operation Tyrell, we've discovered that The Dark Army was well aware that there were Synthoids amongst their ranks. Even worse, we believe that The Dark Army is working together with other criminal organizations such as The Syndicate and that they are planning some sort of large-scale takeover of multiple major cities, most notably Aevum. We suspect that Synthoids have infiltrated the ranks of these criminal factions and are trying to stage another Synthoid uprising.
The best way to deal with this is to prevent it before it even happens. The goal of Operation Wallace is to destroy the Dark Army and Syndicate factions in Aevum immediately. Leave no survivors.",baseDifficulty:3e4,reqdRank:75e3,rankGain:2e3,rankLoss:150,hpLoss:1500,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Shoulder of Orion"]=new a.BlackOperation({name:"Operation Shoulder of Orion",desc:"China's Solaris Space Systems is secretly launching the first manned spacecraft in over a decade using Synthoids. We believe China is trying to establish the first off-world colonies.
The mission is to prevent this launch without instigating an international conflict. When you accept this mission you will be officially disavowed by the NSA and the national government until after you successfully return. In the event of failure, all of the operation's team members must not let themselves be captured alive.",baseDifficulty:35e3,reqdRank:1e5,rankGain:2500,rankLoss:500,hpLoss:1500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),t.BlackOperations["Operation Hyron"]=new a.BlackOperation({name:"Operation Hyron",desc:"Our intelligence tells us that Fulcrum Technologies is developing a quantum supercomputer using human brains as core processors. This supercomputer is rumored to be able to store vast amounts of data and perform computations unmatched by any other supercomputer on the planet. But more importantly, the use of organic human brains means that the supercomputer may be able to reason abstractly and become self-aware.
I do not need to remind you why sentient-level AIs pose a serious threat to all of mankind.
The research for this project is being conducted at one of Fulcrum Technologies secret facilities in Aevum, codenamed 'Alpha Ranch'. Infiltrate the compound, delete and destroy the work, and then find and kill the project lead.",baseDifficulty:4e4,reqdRank:125e3,rankGain:3e3,rankLoss:1e3,hpLoss:500,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Morpheus"]=new a.BlackOperation({name:"Operation Morpheus",desc:"DreamSense Technologies is an advertising company that uses special technology to transmit their ads into the peoples dreams and subconcious. They do this using broadcast transmitter towers. Based on information from our agents and informants in Chonqging, we have reason to believe that one of the broadcast towers there has been compromised by Synthoids and is being used to spread pro-Synthoid propaganda.
The mission is to destroy this broadcast tower. Speed and stealth are of the upmost important for this.",baseDifficulty:45e3,reqdRank:15e4,rankGain:4e3,rankLoss:1e3,hpLoss:100,weights:{hack:.05,str:.15,def:.15,dex:.3,agi:.3,cha:0,int:.05},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isStealth:!0}),t.BlackOperations["Operation Ion Storm"]=new a.BlackOperation({name:"Operation Ion Storm",desc:"Our analysts have uncovered a gathering of MK-VI Synthoids that have taken up residence in the Sector-12 Slums. We don't know if they are rogue Synthoids from the Uprising, but we do know that they have been stockpiling weapons, money, and other resources. This makes them dangerous.
This is a full-scale assault operation to find and retire all of these Synthoids in the Sector-12 Slums.",baseDifficulty:5e4,reqdRank:175e3,rankGain:5e3,rankLoss:1e3,hpLoss:5e3,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Annihilus"]=new a.BlackOperation({name:"Operation Annihilus",desc:"Our superiors have ordered us to eradicate everything and everyone in an underground facility located in Aevum. They tell us that the facility houses many dangerous Synthoids and belongs to a terrorist organization called 'The Covenant'. We have no prior intelligence about this organization, so you are going in blind.",baseDifficulty:55e3,reqdRank:2e5,rankGain:7500,rankLoss:1e3,hpLoss:1e4,weights:{hack:0,str:.24,def:.24,dex:.24,agi:.24,cha:0,int:.04},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Ultron"]=new a.BlackOperation({name:"Operation Ultron",desc:"OmniTek Incorporated, the original designer and manufacturer of Synthoids, has notified us of a malfunction in their AI design. This malfunction, when triggered, causes MK-VI Synthoids to become radicalized and seek out the destruction of humanity. They say that this bug affects all MK-VI Synthoids, not just the rogue ones from the Uprising.
OmniTek has also told us they they believe someone has triggered this malfunction in a large group of MK-VI Synthoids, and that these newly-radicalized Synthoids are now amassing in Volhaven to form a terrorist group called Ultron.
Intelligence suggests Ultron is heavily armed and that their members are augmented. We believe Ultron is making moves to take control of and weaponize DeltaOne's Tactical High-Energy Satellite Laser Array (THESLA).
Your task is to find and destroy Ultron.",baseDifficulty:6e4,reqdRank:25e4,rankGain:1e4,rankLoss:2e3,hpLoss:1e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75},isKill:!0}),t.BlackOperations["Operation Centurion"]=new a.BlackOperation({name:"Operation Centurion",desc:"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)
Throughout all of humanity's history, we have relied on technology to survive, conquer, and progress. Its advancement became our primary goal. And at the peak of human civilization technology turned into power. Global, absolute power.
It seems that the universe is not without a sense of irony.
D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)",baseDifficulty:7e4,reqdRank:3e5,rankGain:15e3,rankLoss:5e3,hpLoss:1e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}}),t.BlackOperations["Operation Vindictus"]=new a.BlackOperation({name:"Operation Vindictus",desc:"D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)
The bits are all around us. The daemons that hold the Node together can manifest themselves in many different ways.
D)@#)($M)C0293c40($*)@#D0JUMP3Rm0C<*@#)*$)#02c94830c(#$*D)",baseDifficulty:75e3,reqdRank:35e4,rankGain:2e4,rankLoss:2e4,hpLoss:2e4,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}}),t.BlackOperations["Operation Daedalus"]=new a.BlackOperation({name:"Operation Daedalus",desc:"Yesterday we obeyed kings and bent our neck to emperors. Today we kneel only to truth.",baseDifficulty:8e4,reqdRank:4e5,rankGain:4e4,rankLoss:1e4,hpLoss:1e5,weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.75}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FactionInfos=t.FactionInfo=void 0;class a{constructor(e,t,n,a,r,i){this.infoText=e,this.enemies=t,this.offerHackingMission=n,this.offerHackingWork=a,this.offerFieldWork=r,this.offerSecurityWork=i,this.augmentationPriceMult=1,this.augmentationRepRequirementMult=1}offersWork(){return this.offerFieldWork||this.offerHackingMission||this.offerHackingWork||this.offerSecurityWork}}t.FactionInfo=a,t.FactionInfos={Illuminati:new a("Humanity never changes. No matter how civilized society becomes, it will eventually fall back into chaos. And from this chaos, we are the invisible hand that guides them to order. ",[],!0,!0,!0,!1),Daedalus:new a("Yesterday we obeyed kings and bent our necks to emperors. Today we kneel only to truth.",[],!0,!0,!0,!1),"The Covenant":new a("Surrender yourself. Give up your empty individuality to become part of something great, something eternal. Become a slave. Submit your mind, body, and soul. Only then can you set yourself free.
Only then can you discover immortality.",[],!0,!0,!0,!1),ECorp:new a("ECorp's mission is simple: to connect the world of today with the technology of tomorrow. With our wide range of Internet-related software and commercial hardware, ECorp makes the world's information universally accessible.",[],!0,!0,!0,!0),MegaCorp:new a("MegaCorp does what no other dares to do. We imagine. We create. We invent. We create what others have never even dreamed of. Our work fills the world's needs for food, water, power, and transporation on an unprecendented scale, in ways that no other company can.
In our labs and factories and on the ground with customers, MegaCorp is ushering in a new era for the world.",[],!0,!0,!0,!0),"Bachman & Associates":new a("Where Law and Business meet - thats where we are.
Legal Insight - Business Instinct - Innovative Experience.",[],!0,!0,!0,!0),"Blade Industries":new a("Augmentation is Salvation.",[],!0,!0,!0,!0),NWO:new a("Humans don't truly desire freedom. They want to be observed, understood, and judged. They want to be given purpose and direction in life. That is why they created God. And that is why they created civilization - not because of willingness, but because of a need to be incorporated into higher orders of structure and meaning.",[],!0,!0,!0,!0),"Clarke Incorporated":new a("The Power of the Genome - Unlocked.",[],!0,!0,!0,!0),"OmniTek Incorporated":new a("Simply put, our mission is to design and build robots that make a difference.",[],!0,!0,!0,!0),"Four Sigma":new a("The scientific method is the best way to approach investing. Big strategies backed up with big data. Driven by deep learning and innovative ideas. And improved by iteration. That's Four Sigma.",[],!0,!0,!0,!0),"KuaiGong International":new a("Dream big. Work hard. Make history.",[],!0,!0,!0,!0),"Fulcrum Secret Technologies":new a("The human organism has an innate desire to worship. That is why they created gods. If there were no gods, it would be necessary to create them. And now we can.",[],!0,!0,!1,!0),BitRunners:new a("Our entire lives are controlled by bits. All of our actions, our thoughts, our personal information. It's all transformed into bits, stored in bits, communicated through bits. It’s impossible for any person to move, to live, to operate at any level without the use of bits. And when a person moves, lives, and operates, they leave behind their bits, mere traces of seemingly meaningless fragments of information. But these bits can be reconstructed. Transformed. Used.
Those who run the bits, run the world.",[],!0,!0,!1,!1),"The Black Hand":new a("The world, so afraid of strong government, now has no government. Only power - Digital power. Financial power. Technological power. And those at the top rule with an invisible hand. They built a society where the rich get richer, and everyone else suffers.
So much pain. So many lives. Their darkness must end.",[],!0,!0,!0,!1),NiteSec:new a(" __..__
_.nITESECNIt.
.-'NITESECNITESEc.
.' NITESECNITESECn
/ NITESECNITESEC;
: :NITESECNITESEC;
; $ NITESECNITESECN
: _, ,N'ITESECNITESEC
: .+^^`, : `NITESECNIT
) /), `-,-=,NITESECNI
/ ^ ,-;|NITESECN;
/ _.' '-';NITESECN
( , ,-''`^NITE'
)` :`. .'
)-- ; `- /
' _.-' :
( _.-' .
------.
.
_.nIt
_.nITESECNi
nITESECNIT^'
NITE^' ___
/ .gP''''Tp.
: d' . `b
; d' o `b ;
/ d; `b|
/, $; @ `:
/' $$ ;
.' $$b o |
.' d$$$; :
/ .d$$$$; , ;
d .dNITESEC $ |
:bp.__.gNITESEC$$ :$ ;
NITESECNITESECNIT $$b :
",[],!0,!0,!1,!1),Aevum:new a("The Silicon City.",["Chongqing","New Tokyo","Ishima","Volhaven"],!0,!0,!0,!0),Chongqing:new a("Serve the People.",["Sector-12","Aevum","Volhaven"],!0,!0,!0,!0),Ishima:new a("The East Asian Order of the Future.",["Sector-12","Aevum","Volhaven"],!0,!0,!0,!0),"New Tokyo":new a("Asia's World City.",["Sector-12","Aevum","Volhaven"],!0,!0,!0,!0),"Sector-12":new a("The City of the Future.",["Chongqing","New Tokyo","Ishima","Volhaven"],!0,!0,!0,!0),Volhaven:new a("Benefit, Honor, and Glory.",["Chongqing","Sector-12","New Tokyo","Aevum","Ishima"],!0,!0,!0,!0),"Speakers for the Dead":new a("It is better to reign in Hell than to serve in Heaven.",[],!0,!0,!0,!0),"The Dark Army":new a("The World doesn't care about right or wrong. It only cares about power.",[],!0,!0,!0,!1),"The Syndicate":new a("Honor holds you back.",[],!0,!0,!0,!0),Silhouette:new a("Corporations have filled the void of power left behind by the collapse of Western government. The issue is they've become so big that you don't know who they're working for. And if you're employed at one of these corporations, you don't even know who you're working for.
That's terror. Terror, fear, and corruption. All born into the system, all propagated by the system.",[],!0,!0,!0,!1),Tetrads:new a("Following the mandate of Heaven and carrying out the way.",[],!1,!1,!0,!0),"Slum Snakes":new a("Slum Snakes rule!",[],!1,!1,!0,!0),Netburners:new a("~~//*>H4CK||3T 8URN3R5**>?>\\~~",[],!0,!0,!1,!1),"Tian Di Hui":new a("Obey Heaven and work righteously.",[],!0,!0,!1,!0),CyberSec:new a("The Internet is the first thing that was built that we don't fully understand, the largest experiment in anarchy that we have ever had. And as the world becomes increasingly dominated by it, society approaches the brink of total chaos. We serve only to protect society, to protect humanity, to protect the world from imminent collapse.",[],!0,!0,!1,!1),Bladeburners:new a("It's too bad they won't live. But then again, who does?
Note that for this faction, reputation can only be gained through Bladeburner actions. Completing Bladeburner contracts/operations will increase your reputation.",[],!1,!1,!1,!1)}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileDiagnosticPopup=t.ServerAccordion=void 0;const r=a(n(0)),i=n(23),o=n(167),s=n(3);function l(e){const t=i.AllServers[e.ip];let n=0;for(const e of t.scripts)n+=e.code.length;for(const e of t.textFiles)n+=e.text.length;if(0===n)return r.default.createElement(r.default.Fragment,null);const a=[];for(const e of t.scripts)a.push({name:e.filename,size:e.code.length});for(const e of t.textFiles)a.push({name:e.fn,size:e.text.length});return a.sort((e,t)=>t.size-e.size),r.default.createElement(o.Accordion,{headerContent:r.default.createElement(r.default.Fragment,null,t.hostname," (",s.numeralWrapper.formatBigNumber(n),"b)"),panelContent:r.default.createElement("ul",null,a.map(e=>r.default.createElement("li",{key:e.name},e.name,": ",s.numeralWrapper.formatBigNumber(e.size),"b")))})}t.ServerAccordion=l,t.FileDiagnosticPopup=function(e){const t=[];for(const e of Object.keys(i.AllServers))t.push(e);return r.default.createElement(r.default.Fragment,null,r.default.createElement("p",null,"Welcome to the file diagnostic! If your save file is really big it's likely because you have too many text/scripts. This tool can help you narrow down where they are."),t.map(e=>r.default.createElement(l,{key:e,ip:e})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializeMainMenuHeaders=t.MainMenuHeaders=void 0;const a=n(34);function r(e,t,n){for(let n=0;n
").map((e,t)=>o.createElement("div",{key:t},o.createElement("span",{style:{whiteSpace:"pre-wrap",overflowWrap:"break-word"}},e),o.createElement("br",null)))))}return o.createElement(o.Fragment,null)},null))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.displayMilestonesContent=void 0;const o=n(19),s=n(955),l=n(1),c=i(n(0)),u=i(n(22));let m=null;!function(){document.addEventListener("DOMContentLoaded",function e(){m=document.getElementById("milestones-container"),document.removeEventListener("DOMContentLoaded",e)})}(),t.displayMilestonesContent=function(){o.routing.isOn(o.Page.Milestones)&&m instanceof HTMLElement&&u.render(c.createElement(s.Root,{player:l.Player}),m)}},,,,,,,,,,,,,function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(r,i){function o(e){try{l(a.next(e))}catch(e){i(e)}}function s(e){try{l(a.throw(e))}catch(e){i(e)}}function l(e){e.done?r(e.value):function(e){return e instanceof n?e:new n(function(t){t(e)})}(e.value).then(o,s)}l((a=a.apply(e,t||[])).next())})},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Root=void 0;const l=i(n(0)),c=n(63),u=s(n(960)),m=n(79),p=n(959),d=n(958),h=n(94),_=n(12),g=n(202),f=n(74),y=n(237),b=n(145),E=n(509),v=n(159),C=n(3),k=n(701),P=n(956),S=n(464),O=n(26),M=n(50);let T=[];!function(){const e=S.NetscriptFunctions({});T=function e(t){let n=[];const a=Object.keys(t);for(const r of a)"object"==typeof t[r]&&(n.push(r),n=n.concat(e(t[r]))),"function"==typeof t[r]&&n.push(r);return n}(e)}();let x="",w="",A=null;t.Root=function(e){const t=l.useRef(null),[n,a]=l.useState(e.filename?e.filename:x),[r,i]=l.useState(e.code?e.code:w),[s,S]=l.useState("RAM: ???"),[R,N]=l.useState({theme:O.Settings.MonacoTheme,insertSpaces:O.Settings.MonacoInsertSpaces});function D(){if(null!==t.current){const e=t.current.getPosition();null!==e&&k.CursorPositions.saveCursor(n,{row:e.lineNumber,column:e.column})}if(A=null,M.ITutorial.isRunning&&M.ITutorial.currStep===M.iTutorialSteps.TerminalTypeScript){if("n00dles.script"!==n)return void _.dialogBoxCreate("Leave the script name as 'n00dles'!");if(-1==r.replace(/\s/g,"").indexOf("while(true){hack('n00dles');}"))return void _.dialogBoxCreate("Please copy and paste the code from the tutorial!");const t=e.player.getCurrentServer();if(null===t)throw new Error("Server should not be null but it is.");for(let a=0;a
The new program can be found on your home computer."),this.getHomeComputer().programs.push(t);else{var n=t+"-"+(Math.floor(this.timeWorkedCreateProgram/this.timeNeededToCompleteWork*1e4)/100).toString()+"%-INC";this.getHomeComputer().programs.push(n)}e||this.gainIntelligenceExp(this.createProgramReqLvl/_.CONSTANTS.IntelligenceProgramBaseExpGain),document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,b.Engine.loadTerminalContent(),this.resetWorkStatus()}function Ze(e,t,n){this.resetWorkStatus(),this.isWorking=!0,this.focus=!0,this.workType=_.CONSTANTS.WorkTypeStudyClass,this.className=n;const a=1e3/b.Engine._idleSpeed;var r=0,i=0,o=0,l=0,c=0,u=0,m=0;const p=this.hashManager;switch(n){case _.CONSTANTS.ClassStudyComputerScience:i=_.CONSTANTS.ClassStudyComputerScienceBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassDataStructures:r=_.CONSTANTS.ClassDataStructuresBaseCost*e/a,i=_.CONSTANTS.ClassDataStructuresBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassNetworks:r=_.CONSTANTS.ClassNetworksBaseCost*e/a,i=_.CONSTANTS.ClassNetworksBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassAlgorithms:r=_.CONSTANTS.ClassAlgorithmsBaseCost*e/a,i=_.CONSTANTS.ClassAlgorithmsBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassManagement:r=_.CONSTANTS.ClassManagementBaseCost*e/a,m=_.CONSTANTS.ClassManagementBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassLeadership:r=_.CONSTANTS.ClassLeadershipBaseCost*e/a,m=_.CONSTANTS.ClassLeadershipBaseExp*t/a*p.getStudyMult();break;case _.CONSTANTS.ClassGymStrength:r=_.CONSTANTS.ClassGymBaseCost*e/a,o=t/a*p.getTrainingMult();break;case _.CONSTANTS.ClassGymDefense:r=_.CONSTANTS.ClassGymBaseCost*e/a,l=t/a*p.getTrainingMult();break;case _.CONSTANTS.ClassGymDexterity:r=_.CONSTANTS.ClassGymBaseCost*e/a,c=t/a*p.getTrainingMult();break;case _.CONSTANTS.ClassGymAgility:r=_.CONSTANTS.ClassGymBaseCost*e/a,u=t/a*p.getTrainingMult();break;default:throw new Error("ERR: Invalid/unrecognized class name")}this.workMoneyLossRate=r,this.workHackExpGainRate=i*this.hacking_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workStrExpGainRate=o*this.strength_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workDefExpGainRate=l*this.defense_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workDexExpGainRate=c*this.dexterity_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workAgiExpGainRate=u*this.agility_exp_mult*s.BitNodeMultipliers.ClassGymExpGain,this.workChaExpGainRate=m*this.charisma_exp_mult*s.BitNodeMultipliers.ClassGymExpGain;var d=Object(Y.clearEventListeners)("work-in-progress-cancel-button");n==_.CONSTANTS.ClassGymStrength||n==_.CONSTANTS.ClassGymDefense||n==_.CONSTANTS.ClassGymDexterity||n==_.CONSTANTS.ClassGymAgility?d.innerHTML="Stop training at gym":d.innerHTML="Stop taking course",d.addEventListener("click",()=>(this.finishClass(),!1)),Object(Y.clearEventListeners)("work-in-progress-something-else-button").style.visibility="hidden",b.Engine.loadWorkInProgressContent()}function et(e){this.timeWorked+=b.Engine._idleSpeed*e;var t=this.className;this.processWorkEarnings(e);const n=document.getElementById("work-in-progress-text");ne.a.render(ee.a.createElement(ee.a.Fragment,null,"You have been ",t," for ",Object(z.convertTimeMsToTimeElapsedString)(this.timeWorked),ee.a.createElement("br",null),ee.a.createElement("br",null),"This has cost you: ",ee.a.createElement("br",null),Object(J.Money)(-this.workMoneyGained)," (",Object(X.MoneyRate)(this.workMoneyLossRate*ae),") ",ee.a.createElement("br",null),ee.a.createElement("br",null),"You have gained: ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workHackExpGained)," (",K.numeralWrapper.formatExp(this.workHackExpGainRate*ae)," / sec) hacking exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workStrExpGained)," (",K.numeralWrapper.formatExp(this.workStrExpGainRate*ae)," / sec) strength exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDefExpGained)," (",K.numeralWrapper.formatExp(this.workDefExpGainRate*ae)," / sec) defense exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDexExpGained)," (",K.numeralWrapper.formatExp(this.workDexExpGainRate*ae)," / sec) dexterity exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workAgiExpGained)," (",K.numeralWrapper.formatExp(this.workAgiExpGainRate*ae)," / sec) agility exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workChaExpGained)," (",K.numeralWrapper.formatExp(this.workChaExpGainRate*ae)," / sec) charisma exp ",ee.a.createElement("br",null),"You may cancel at any time"),n)}function tt(e=!1){if(this.gainIntelligenceExp(_.CONSTANTS.IntelligenceClassBaseExpGain*Math.round(this.timeWorked/1e3)),this.workMoneyGained>0)throw new Error("ERR: Somehow gained money while taking class");if(this.updateSkillLevels(),e||Object($.dialogBoxCreate)(ee.a.createElement(ee.a.Fragment,null,"After ",this.className," for ",Object(z.convertTimeMsToTimeElapsedString)(this.timeWorked),", ",ee.a.createElement("br",null),"you spent a total of ",Object(J.Money)(-1*this.workMoneyGained),". ",ee.a.createElement("br",null),ee.a.createElement("br",null),"You earned a total of: ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workHackExpGained)," hacking exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workStrExpGained)," strength exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDefExpGained)," defense exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDexExpGained)," dexterity exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workAgiExpGained)," agility exp ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workChaExpGained)," charisma exp",ee.a.createElement("br",null))),document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,b.Engine.loadLocationContent(!1),e){var t="After "+this.className+" for "+Object(z.convertTimeMsToTimeElapsedString)(this.timeWorked)+", you spent a total of "+K.numeralWrapper.formatMoney(-1*this.workMoneyGained)+". You earned a total of: "+K.numeralWrapper.formatExp(this.workHackExpGained)+" hacking exp, "+K.numeralWrapper.formatExp(this.workStrExpGained)+" strength exp, "+K.numeralWrapper.formatExp(this.workDefExpGained)+" defense exp, "+K.numeralWrapper.formatExp(this.workDexExpGained)+" dexterity exp, "+K.numeralWrapper.formatExp(this.workAgiExpGained)+" agility exp, and "+K.numeralWrapper.formatExp(this.workChaExpGained)+" charisma exp";return this.resetWorkStatus(),t}this.resetWorkStatus()}function nt(e,t,n,a,r,i,o,l,c,u=null){this.crimeType=e,this.resetWorkStatus(),this.isWorking=!0,this.focus=!0,this.workType=_.CONSTANTS.WorkTypeCrime,u&&u.workerscript&&(this.committingCrimeThruSingFn=!0,this.singFnCrimeWorkerScript=u.workerscript),this.workHackExpGained=t*this.hacking_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workStrExpGained=n*this.strength_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workDefExpGained=a*this.defense_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workDexExpGained=r*this.dexterity_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workAgiExpGained=i*this.agility_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workChaExpGained=o*this.charisma_exp_mult*s.BitNodeMultipliers.CrimeExpGain,this.workMoneyGained=l*this.crime_money_mult*s.BitNodeMultipliers.CrimeMoney,this.timeNeededToCompleteWork=c;const m=Object(Y.clearEventListeners)("work-in-progress-cancel-button");m.innerHTML="Cancel crime",m.addEventListener("click",()=>(this.finishCrime(!0),!1)),Object(Y.clearEventListeners)("work-in-progress-something-else-button").style.visibility="hidden",b.Engine.loadWorkInProgressContent()}function at(e){if(this.timeWorked+=b.Engine._idleSpeed*e,this.timeWorked>=this.timeNeededToCompleteWork)this.finishCrime(!1);else{var t=Math.round(this.timeWorked/this.timeNeededToCompleteWork*100),n=Math.round(t/5);n<0&&(n=0),n>20&&(n=20);var a="["+Array(n+1).join("|")+Array(20-n+1).join(" ")+"]";document.getElementById("work-in-progress-text").innerHTML="You are attempting to "+this.crimeType+".
Time remaining: "+Object(z.convertTimeMsToTimeElapsedString)(this.timeNeededToCompleteWork-this.timeWorked)+"
"+a.replace(/ /g," ")}}function rt(e){if(!e){if(Object(f.determineCrimeSuccess)(this,this.crimeType)){let e=null;for(const t in y.Crimes)if(y.Crimes[t].type==this.crimeType){e=y.Crimes[t];break}null==e&&Object($.dialogBoxCreate)(`ERR: Unrecognized crime type (${this.crimeType}). This is probably a bug please contact the developer`),this.gainMoney(this.workMoneyGained),this.recordMoneySource(this.workMoneyGained,"crime"),this.karma-=e.karma,this.numPeopleKilled+=e.kills,e.intelligence_exp>0&&this.gainIntelligenceExp(e.intelligence_exp),this.workHackExpGained*=2,this.workStrExpGained*=2,this.workDefExpGained*=2,this.workDexExpGained*=2,this.workAgiExpGained*=2,this.workChaExpGained*=2,this.committingCrimeThruSingFn?null==this.singFnCrimeWorkerScript.disableLogs.ALL&&null==this.singFnCrimeWorkerScript.disableLogs.commitCrime&&this.singFnCrimeWorkerScript.scriptRef.log("Crime successful! Gained "+K.numeralWrapper.formatMoney(this.workMoneyGained)+", "+K.numeralWrapper.formatExp(this.workHackExpGained)+" hack exp, "+K.numeralWrapper.formatExp(this.workStrExpGained)+" str exp, "+K.numeralWrapper.formatExp(this.workDefExpGained)+" def exp, "+K.numeralWrapper.formatExp(this.workDexExpGained)+" dex exp, "+K.numeralWrapper.formatExp(this.workAgiExpGained)+" agi exp, "+K.numeralWrapper.formatExp(this.workChaExpGained)+" cha exp."):Object($.dialogBoxCreate)(ee.a.createElement(ee.a.Fragment,null,"Crime successful!",ee.a.createElement("br",null),ee.a.createElement("br",null),"You gained:",ee.a.createElement("br",null),Object(J.Money)(this.workMoneyGained),ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workHackExpGained)," hacking experience ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workStrExpGained)," strength experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDefExpGained)," defense experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDexExpGained)," dexterity experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workAgiExpGained)," agility experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workChaExpGained)," charisma experience"))}else this.workHackExpGained/=2,this.workStrExpGained/=2,this.workDefExpGained/=2,this.workDexExpGained/=2,this.workAgiExpGained/=2,this.workChaExpGained/=2,this.committingCrimeThruSingFn?null==this.singFnCrimeWorkerScript.disableLogs.ALL&&null==this.singFnCrimeWorkerScript.disableLogs.commitCrime&&this.singFnCrimeWorkerScript.scriptRef.log("Crime failed! Gained "+K.numeralWrapper.formatExp(this.workHackExpGained)+" hack exp, "+K.numeralWrapper.formatExp(this.workStrExpGained)+" str exp, "+K.numeralWrapper.formatExp(this.workDefExpGained)+" def exp, "+K.numeralWrapper.formatExp(this.workDexExpGained)+" dex exp, "+K.numeralWrapper.formatExp(this.workAgiExpGained)+" agi exp, "+K.numeralWrapper.formatExp(this.workChaExpGained)+" cha exp."):Object($.dialogBoxCreate)(ee.a.createElement(ee.a.Fragment,null,"Crime failed!",ee.a.createElement("br",null),ee.a.createElement("br",null),"You gained:",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workHackExpGained)," hacking experience ",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workStrExpGained)," strength experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDefExpGained)," defense experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workDexExpGained)," dexterity experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workAgiExpGained)," agility experience",ee.a.createElement("br",null),K.numeralWrapper.formatExp(this.workChaExpGained)," charisma experience"));this.gainHackingExp(this.workHackExpGained),this.gainStrengthExp(this.workStrExpGained),this.gainDefenseExp(this.workDefExpGained),this.gainDexterityExp(this.workDexExpGained),this.gainAgilityExp(this.workAgiExpGained),this.gainCharismaExp(this.workChaExpGained)}this.committingCrimeThruSingFn=!1,this.singFnCrimeWorkerScript=null,document.getElementById("mainmenu-container").style.visibility="visible",this.isWorking=!1,this.resetWorkStatus(),b.Engine.loadLocationContent(!1)}function it(){if(!this.isWorking)return"";var e;switch(this.workType){case _.CONSTANTS.WorkTypeStudyClass:e=this.finishClass(!0);break;case _.CONSTANTS.WorkTypeCompany:e=this.finishWork(!0,!0);break;case _.CONSTANTS.WorkTypeCompanyPartTime:e=this.finishWorkPartTime(!0);break;case _.CONSTANTS.WorkTypeFaction:e=this.finishFactionWork(!0,!0);break;case _.CONSTANTS.WorkTypeCreateProgram:e=this.finishCreateProgramWork(!0);break;case _.CONSTANTS.WorkTypeCrime:e=this.finishCrime(!0);break;default:return console.error(`Unrecognized work type (${this.workType})`),""}return e}function ot(e){if("number"==typeof e)return this.hp-=e,this.hp<=0&&(this.hospitalize(),!0);console.warn(`Player.takeDamage() called without a numeric argument: ${e}`)}function st(e){"number"==typeof e?(this.hp+=e,this.hp>this.max_hp&&(this.hp=this.max_hp)):console.warn(`Player.regenerateHp() called without a numeric argument: ${e}`)}function lt(){const e=Object(H.getHospitalizationCost)(this);return!1===B.Settings.SuppressHospitalizationPopup&&Object($.dialogBoxCreate)(ee.a.createElement(ee.a.Fragment,null,"You were in critical condition! You were taken to the hospital where luckily they were able to save your life. You were charged ",Object(J.Money)(e))),this.loseMoney(e),this.recordMoneySource(-1*e,"hospitalization"),this.hp=this.max_hp,e}function ct(e,t=!1){let n=null;""!==this.companyName&&(n=u.Companies[this.companyName]);const a=this.jobs[this.companyName],r=u.Companies[this.location];if(!(r instanceof c.Company))return t?"ERROR: Invalid company name: "+this.location+". applyToCompany() failed":void console.error(`Could not find company that matches the location: ${this.location}. Player.applyToCompany() failed`);let i=e;if(!this.isQualified(r,i)){var o=Object(p.getJobRequirementText)(r,i);return!t&&void Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position
"+o)}for(;;){let e=Object(m.getNextCompanyPositionHelper)(i);if(null==e)break;if(!r.hasPosition(e))break;if(!this.isQualified(r,e))break;i=e}if(null==n||n.name!=r.name||i.name!=a){if(this.jobs[r.name]=i.name,this.companyName=this.location,document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),t)return!0;Object($.dialogBoxCreate)("Congratulations! You were offered a new job at "+this.companyName+" as a "+i.name+"!")}else{var s=Object(m.getNextCompanyPositionHelper)(i);if(null==s){if(t)return!1;Object($.dialogBoxCreate)("You are already at the highest position for your field! No promotion available")}else if(r.hasPosition(s)){if(t)return!1;o=Object(p.getJobRequirementText)(r,s);Object($.dialogBoxCreate)("Unfortunately, you do not qualify for a promotion
"+o)}else{if(t)return!1;Object($.dialogBoxCreate)("You are already at the highest position for your field! No promotion available")}}}function ut(e,t){var n=null;if(""!==this.companyName&&(n=u.Companies[this.companyName]),null==n||n.name!=e.name)return t;const a=this.jobs[this.companyName],r=d.CompanyPositions[a];return r.isSoftwareJob()&&t.isSoftwareJob()||r.isITJob()&&t.isITJob()||r.isBusinessJob()&&t.isBusinessJob()||r.isSecurityEngineerJob()&&t.isSecurityEngineerJob()||r.isNetworkEngineerJob()&&t.isNetworkEngineerJob()||r.isSecurityJob()&&t.isSecurityJob()||r.isAgentJob()&&t.isAgentJob()||r.isSoftwareConsultantJob()&&t.isSoftwareConsultantJob()||r.isBusinessConsultantJob()&&t.isBusinessConsultantJob()||r.isPartTimeJob()&&t.isPartTimeJob()?Object(m.getNextCompanyPositionHelper)(r):t}function mt(e){this.isWorking=!1,this.companyName="",delete this.jobs[e]}function pt(e=!1){return this.applyForJob(d.CompanyPositions[h.SoftwareCompanyPositions[0]],e)}function dt(e=!1){return this.applyForJob(d.CompanyPositions[h.SoftwareConsultantCompanyPositions[0]],e)}function ht(e=!1){return this.applyForJob(d.CompanyPositions[h.ITCompanyPositions[0]],e)}function _t(e=!1){var t=u.Companies[this.location];return this.isQualified(t,d.CompanyPositions[h.SecurityEngineerCompanyPositions[0]])?this.applyForJob(d.CompanyPositions[h.SecurityEngineerCompanyPositions[0]],e):!e&&void Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}function gt(e=!1){var t=u.Companies[this.location];return this.isQualified(t,d.CompanyPositions[h.NetworkEngineerCompanyPositions[0]])?this.applyForJob(d.CompanyPositions[h.NetworkEngineerCompanyPositions[0]],e):!e&&void Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}function ft(e=!1){return this.applyForJob(d.CompanyPositions[h.BusinessCompanyPositions[0]],e)}function yt(e=!1){return this.applyForJob(d.CompanyPositions[h.BusinessConsultantCompanyPositions[0]],e)}function bt(e=!1){return this.applyForJob(d.CompanyPositions[h.SecurityCompanyPositions[2]],e)}function Et(e=!1){var t=u.Companies[this.location];return this.isQualified(t,d.CompanyPositions[h.AgentCompanyPositions[0]])?this.applyForJob(d.CompanyPositions[h.AgentCompanyPositions[0]],e):!e&&void Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}function vt(e=!1){var t=u.Companies[this.location];if(this.isQualified(t,d.CompanyPositions[h.MiscCompanyPositions[1]])){if(this.companyName=t.name,this.jobs[t.name]=h.MiscCompanyPositions[1],document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),e)return!0;Object($.dialogBoxCreate)("Congratulations, you are now employed at "+this.companyName)}else{if(e)return!1;Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}}function Ct(e=!1){var t=u.Companies[this.location];if(this.isQualified(t,d.CompanyPositions[h.PartTimeCompanyPositions[1]])){if(this.jobs[t.name]=h.PartTimeCompanyPositions[1],document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),e)return!0;Object($.dialogBoxCreate)("Congratulations, you are now employed part-time at "+this.companyName)}else{if(e)return!1;Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}}function kt(e=!1){var t=u.Companies[this.location];if(this.isQualified(t,d.CompanyPositions[h.MiscCompanyPositions[0]])){if(this.companyName=t.name,this.jobs[t.name]=h.MiscCompanyPositions[0],document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),e)return!0;Object($.dialogBoxCreate)("Congratulations, you are now employed as a waiter at "+this.companyName)}else{if(e)return!1;Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}}function Pt(e=!1){var t=u.Companies[this.location];if(this.isQualified(t,d.CompanyPositions[h.PartTimeCompanyPositions[0]])){if(this.companyName=t.name,this.jobs[t.name]=h.PartTimeCompanyPositions[0],document.getElementById("world-menu-header").click(),document.getElementById("world-menu-header").click(),e)return!0;Object($.dialogBoxCreate)("Congratulations, you are now employed as a part-time waiter at "+this.companyName)}else{if(e)return!1;Object($.dialogBoxCreate)("Unforunately, you do not qualify for this position")}}function St(e,t){var n=e.jobStatReqOffset,a=t.requiredHacking>0?t.requiredHacking+n:0,r=t.requiredStrength>0?t.requiredStrength+n:0,i=t.requiredDefense>0?t.requiredDefense+n:0,o=t.requiredDexterity>0?t.requiredDexterity+n:0,s=t.requiredDexterity>0?t.requiredDexterity+n:0,l=t.requiredCharisma>0?t.requiredCharisma+n:0;return this.hacking_skill>=a&&this.strength>=r&&this.defense>=i&&this.dexterity>=o&&this.agility>=s&&this.charisma>=l&&e.playerReputation>=t.requiredReputation}function Ot(e=!0){e&&this.resetMultipliers();for(let e=0;e
":"This is a COMBAT gang. Members in this gang will have different tasks than HACKING gangs. Compared to hacking gangs, progression with combat gangs can be more difficult as territory management is more important. However, well-managed combat gangs can progress faster than hacking ones.
",_.yesNoBoxCreate(`Would you like to create a new Gang with ${e}?
`+"Note that this will prevent you from creating a Gang with any other Faction until this BitNode is destroyed. It also resets your reputation with this faction.
"+r+"Other than hacking vs combat, there are NO differences between the Factions you can create a Gang with, and each of these Factions have all Augmentations available.")}rerender(){this.setState(e=>({rerenderFlag:!e.rerenderFlag}))}routeToMain(){this.setState({purchasingAugs:!1})}routeToPurchaseAugs(){this.setState({purchasingAugs:!0})}sleevePurchases(){d.createSleevePurchasesFromCovenantPopup(this.props.p)}startFieldWork(){this.props.p.startFactionFieldWork(this.props.faction)}startHackingContracts(){this.props.p.startFactionHackWork(this.props.faction)}startHackingMission(){const e=this.props.faction;this.props.p.singularityStopWork(),this.props.engine.loadMissionContent(),this.props.startHackingMissionFn(e)}startSecurityWork(){this.props.p.startFactionSecurityWork(this.props.faction)}render(){return this.state.purchasingAugs?this.renderAugmentationsPage():this.renderMainPage()}renderMainPage(){const e=this.props.p,t=this.props.faction,n=t.getInfo(),a=e.inGang()&&e.getGangName()===t.name,r=Math.floor(m.CONSTANTS.BaseFavorToDonate*p.BitNodeMultipliers.RepToDonateToFaction),i=t.favor>=r,s="The Covenant"===t.name&&e.bitNodeN>=10&&h.SourceFileFlags[10];let d=e.canAccessGang()&&k.includes(t.name);return e.inGang()&&(e.getGangName()!==t.name?d=!1:e.getGangName()===t.name&&(d=!0)),o.createElement("div",null,o.createElement("h1",null,t.name),o.createElement(c.Info,{faction:t,factionInfo:n}),d&&o.createElement(u.Option,{buttonText:"Manage Gang",infoText:g,onClick:this.manageGang}),!a&&n.offerHackingMission&&o.createElement(u.Option,{buttonText:"Hacking Mission",infoText:f,onClick:this.startHackingMission}),!a&&n.offerHackingWork&&o.createElement(u.Option,{buttonText:"Hacking Contracts",infoText:y,onClick:this.startHackingContracts}),!a&&n.offerFieldWork&&o.createElement(u.Option,{buttonText:"Field Work",infoText:b,onClick:this.startFieldWork}),!a&&n.offerSecurityWork&&o.createElement(u.Option,{buttonText:"Security Work",infoText:E,onClick:this.startSecurityWork}),!a&&n.offersWork()&&o.createElement(l.DonateOption,{faction:this.props.faction,p:this.props.p,rerender:this.rerender,favorToDonate:r,disabled:!i}),o.createElement(u.Option,{buttonText:"Purchase Augmentations",infoText:v,onClick:this.routeToPurchaseAugs}),s&&o.createElement(u.Option,{buttonText:"Purchase & Upgrade Duplicate Sleeves",infoText:C,onClick:this.sleevePurchases}))}renderAugmentationsPage(){return o.createElement("div",null,o.createElement(s.AugmentationsPage,{faction:this.props.faction,p:this.props.p,routeToMainPage:this.routeToMain}))}}},function(e,t,n){"use strict";n.r(t),n.d(t,"canAccessBladeburner",function(){return i}),n.d(t,"inBladeburner",function(){return o}),n.d(t,"startBladeburner",function(){return s});var a=n(100),r=n(43);function i(){return 8!==this.bitNodeN&&(6===this.bitNodeN||7===this.bitNodeN||r.SourceFileFlags[6]>0||r.SourceFileFlags[7]>0)}function o(){return null!=this.bladeburner&&this.bladeburner instanceof a.Bladeburner}function s(){this.bladeburner=new a.Bladeburner(this)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasAugmentation=void 0;const a=n(18);t.hasAugmentation=function(e){const t=e instanceof a.Augmentation?e.name:e;for(const e of this.augmentations)if(e.name===t)return!0;for(const e of this.queuedAugmentations)if(e.name===t)return!0;return!1}},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var a=n(856),r=n(855),i=n(833),o=n(832),s=n(831),l=n(828),c=n(185),u=n(38),m=n(187),p=n(27),d=n(55);function h(){this.hacking_skill=1,this.hp=10,this.max_hp=10,this.strength=1,this.defense=1,this.dexterity=1,this.agility=1,this.charisma=1,this.intelligence=0,this.hacking_chance_mult=1,this.hacking_speed_mult=1,this.hacking_money_mult=1,this.hacking_grow_mult=1,this.hacking_exp=0,this.strength_exp=0,this.defense_exp=0,this.dexterity_exp=0,this.agility_exp=0,this.charisma_exp=0,this.intelligence_exp=0,this.hacking_mult=1,this.strength_mult=1,this.defense_mult=1,this.dexterity_mult=1,this.agility_mult=1,this.charisma_mult=1,this.hacking_exp_mult=1,this.strength_exp_mult=1,this.defense_exp_mult=1,this.dexterity_exp_mult=1,this.agility_exp_mult=1,this.charisma_exp_mult=1,this.company_rep_mult=1,this.faction_rep_mult=1,this.money=new d.a(1e3),this.homeComputer="",this.city=u.CityName.Sector12,this.location="",this.jobs={},this.companyName="",this.currentServer="",this.purchasedServers=[],this.hacknetNodes=[],this.hashManager=new c.HashManager,this.factions=[],this.factionInvitations=[],this.queuedAugmentations=[],this.augmentations=[],this.sourceFiles=[],this.numPeopleKilled=0,this.karma=0,this.crime_money_mult=1,this.crime_success_mult=1,this.isWorking=!1,this.focus=!1,this.workType="",this.currentWorkFactionName="",this.currentWorkFactionDescription="",this.workHackExpGainRate=0,this.workStrExpGainRate=0,this.workDefExpGainRate=0,this.workDexExpGainRate=0,this.workAgiExpGainRate=0,this.workChaExpGainRate=0,this.workRepGainRate=0,this.workMoneyGainRate=0,this.workMoneyLossRate=0,this.workHackExpGained=0,this.workStrExpGained=0,this.workDefExpGained=0,this.workDexExpGained=0,this.workAgiExpGained=0,this.workChaExpGained=0,this.workRepGained=0,this.workMoneyGained=0,this.createProgramName="",this.createProgramReqLvl=0,this.className="",this.crimeType="",this.timeWorked=0,this.timeWorkedCreateProgram=0,this.timeNeededToCompleteWork=0,this.work_money_mult=1,this.hacknet_node_money_mult=1,this.hacknet_node_purchase_cost_mult=1,this.hacknet_node_ram_cost_mult=1,this.hacknet_node_core_cost_mult=1,this.hacknet_node_level_cost_mult=1,this.hasWseAccount=!1,this.hasTixApiAccess=!1,this.has4SData=!1,this.has4SDataTixApi=!1,this.gang=0,this.corporation=0,this.bladeburner=0,this.bladeburner_max_stamina_mult=1,this.bladeburner_stamina_gain_mult=1,this.bladeburner_analysis_mult=1,this.bladeburner_success_chance_mult=1,this.sleeves=[],this.resleeves=[],this.sleevesFromCovenant=0,this.bitNodeN=1,this.firstFacInvRecvd=!1,this.firstAugPurchased=!1,this.firstTimeTraveled=!1,this.firstProgramAvailable=!1,this.lastUpdate=0,this.totalPlaytime=0,this.playtimeSinceLastAug=0,this.playtimeSinceLastBitnode=0,this.moneySourceA=new m.MoneySourceTracker,this.moneySourceB=new m.MoneySourceTracker,this.scriptProdSinceLastAug=0,this.exploits=[]}Object.assign(h.prototype,s,l,r,i,o,a),h.prototype.toJSON=function(){return Object(p.Generic_toJSON)("PlayerObject",this)},h.fromJSON=function(e){return Object(p.Generic_fromJSON)(h,e.data)},p.Reviver.constructors.PlayerObject=h},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var a=n(0),r=n.n(a),i=n(72),o=n(3),s=n(12);class l extends i.a{render(){const e=this.props.upgradeData,t=`${e[2]} - ${o.numeralWrapper.formatMoney(e[1])}`,n=e[3];return r.a.createElement("div",{className:"cmpy-mgmt-upgrade-div tooltip",style:{width:"45%"},onClick:()=>{const t=this.corp();t.funds.lt(e[1])?Object(s.dialogBoxCreate)("Insufficient funds"):(t.unlock(e),t.rerender())}},t,r.a.createElement("span",{className:"tooltiptext"},n))}}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var a=n(0),r=n.n(a),i=n(72),o=n(3),s=n(12);class l extends i.a{render(){const e=this.props.upgradeData,t=this.props.upgradeLevel,n=e[1],a=e[2],i=n*Math.pow(a,t),l=`${e[4]} - ${o.numeralWrapper.formatMoney(i)}`,c=e[5];return r.a.createElement("div",{className:"cmpy-mgmt-upgrade-div tooltip",style:{width:"45%"},onClick:()=>{const t=this.corp();t.funds.lt(i)?Object(s.dialogBoxCreate)("Insufficient funds"):(t.upgrade(e),t.rerender())}},l,r.a.createElement("span",{className:"tooltiptext"},c))}}},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var a=n(0),r=n.n(a),i=n(72),o=n(859),s=n(858),l=n(41),c=n(472),u=n(471),m=n(11),p=n(3),d=n(20);function h(){return(h=Object.assign||function(e){for(var t=1;t
`+`Dividend Percentage: ${p.numeralWrapper.format(this.corp().dividendPercentage/100,"0%")}
`+`Dividends per share: ${p.numeralWrapper.format(r,"$0.000a")} / s
`+`Your earnings as a shareholder (Pre-Tax): ${p.numeralWrapper.format(i,"$0.000a")} / s
`+`Dividend Tax Rate: ${this.corp().dividendTaxPercentage}%
`+`Your earnings as a shareholder (Post-Tax): ${p.numeralWrapper.format(i*(1-this.corp().dividendTaxPercentage/100),"$0.000a")} / s
`}let a="Total Funds: "+p.numeralWrapper.format(this.corp().funds.toNumber(),"$0.000a")+"
Total Revenue: "+p.numeralWrapper.format(this.corp().revenue.toNumber(),"$0.000a")+" / s
Total Expenses: "+p.numeralWrapper.format(this.corp().expenses.toNumber(),"$0.000a")+" / s
Total Profits: "+t+" / s
"+n+"Publicly Traded: "+(this.corp().public?"Yes":"No")+"
Owned Stock Shares: "+p.numeralWrapper.format(this.corp().numShares,"0.000a")+"
Stock Price: "+(this.corp().public?p.numeralWrapper.formatMoney(this.corp().sharePrice):"N/A")+"
`+`Private Shares: ${p.numeralWrapper.format(this.corp().totalShares-this.corp().issuedShares-this.corp().numShares,"0.000a")}`+"
";const r=this.corp().storedCycles*m.CONSTANTS.MilliPerCycle;r>15e3&&(a+=`Bonus time: ${Object(d.convertTimeMsToTimeElapsedString)(r)}
`);let i=this.corp().getProductionMultiplier(),o=this.corp().getStorageMultiplier(),s=this.corp().getAdvertisingMultiplier(),l=this.corp().getEmployeeCreMultiplier(),c=this.corp().getEmployeeChaMultiplier(),u=this.corp().getEmployeeIntMultiplier(),h=this.corp().getEmployeeEffMultiplier(),_=this.corp().getSalesMultiplier(),g=this.corp().getScientificResearchMultiplier();return i>1&&(a+="Production Multiplier: "+p.numeralWrapper.format(i,"0.000")+"
"),o>1&&(a+="Storage Multiplier: "+p.numeralWrapper.format(o,"0.000")+"
"),s>1&&(a+="Advertising Multiplier: "+p.numeralWrapper.format(s,"0.000")+"
"),l>1&&(a+="Empl. Creativity Multiplier: "+p.numeralWrapper.format(l,"0.000")+"
"),c>1&&(a+="Empl. Charisma Multiplier: "+p.numeralWrapper.format(c,"0.000")+"
"),u>1&&(a+="Empl. Intelligence Multiplier: "+p.numeralWrapper.format(u,"0.000")+"
"),h>1&&(a+="Empl. Efficiency Multiplier: "+p.numeralWrapper.format(h,"0.000")+"
"),_>1&&(a+="Sales Multiplier: "+p.numeralWrapper.format(_,"0.000")+"
"),g>1&&(a+="Scientific Research Multiplier: "+p.numeralWrapper.format(g,"0.000")+"
"),a}renderButtons(){const e=this.corp().getStarterGuide.bind(this.corp()),t=this.createButton({class:"a-link-button",display:"inline-block",onClick:e,text:"Getting Started Guide",tooltip:"Get a copy of and read 'The Complete Handbook for Creating a Successful Corporation.' This is a .lit file that guides you through the beginning of setting up a Corporation and provides some tips/pointers for helping you get started with managing it."}),n=this.corp().determineValuation()>=l.a,a=this.eventHandler().createBribeFactionsPopup.bind(this.eventHandler()),r=n?"a-link-button":"a-link-button-inactive",i={bribeFactions:this.createButton({class:r,display:"inline-block",onClick:a,text:"Bribe Factions",tooltip:n?"Use your Corporations power and influence to bribe Faction leaders in exchange for reputation":"Your Corporation is not powerful enough to bribe Faction leaders"}),getStarterGuide:t};return this.corp().public?this.renderPublicButtons(i):this.renderPrivateButtons(i)}renderPrivateButtons(e){const t=this.corp().fundingRound<4,n=t?"std-button":"a-link-button-inactive",a=t?"Search for private investors who will give you startup funding in exchangefor equity (stock shares) in your company":null,i=this.corp().getInvestment.bind(this.corp()),o=this.corp().goPublic.bind(this.corp()),s=this.createButton({class:n,onClick:i,style:"inline-block",text:"Find Investors",tooltip:a}),l=this.createButton({class:"std-button",onClick:o,style:"inline-block",text:"Go Public",tooltip:"Become a publicly traded and owned entity. Going public involves issuing shares for an IPO. Once you are a public company, your shares will be traded on the stock market."});return r.a.createElement("div",null,e.getStarterGuide,s,l,r.a.createElement("br",null),e.bribeFactions)}renderPublicButtons(e){const t=this.corp(),n=this.eventHandler().createSellSharesPopup.bind(this.eventHandler()),a=t.shareSaleCooldown>0,i=a?"a-link-button-inactive":"std-button",o=a?"Cannot sell shares for "+t.convertCooldownToString(t.shareSaleCooldown):"Sell your shares in the company. The money earned from selling your shares goes into your personal account, not the Corporation's. This is one of the only ways to profit from your business venture.",s=this.createButton({class:i,display:"inline-block",onClick:function(e){e.isTrusted&&n(e)},text:"Sell Shares",tooltip:o}),l=this.eventHandler().createBuybackSharesPopup.bind(this.eventHandler()),c=this.createButton({class:"std-button",display:"inline-block",onClick:l,text:"Buyback shares",tooltip:"Buy back shares you that previously issued or sold at market price."}),u=this.eventHandler().createIssueNewSharesPopup.bind(this.eventHandler()),m=t.issueNewSharesCooldown>0,p=m?"a-link-button-inactive":"std-button",d=m?"Cannot issue new shares for "+t.convertCooldownToString(t.issueNewSharesCooldown):"Issue new equity shares to raise capital.",h=this.createButton({class:p,display:"inline-block",onClick:u,text:"Issue New Shares",tooltip:d}),_=this.eventHandler().createIssueDividendsPopup.bind(this.eventHandler()),g=this.createButton({class:"std-button",display:"inline-block",onClick:_,text:"Issue Dividends",tooltip:"Manage the dividends that are paid out to shareholders (including yourself)"});return r.a.createElement("div",null,e.getStarterGuide,s,c,r.a.createElement("br",null),h,g,r.a.createElement("br",null),e.bribeFactions)}renderUpgrades(){if(this.corp().divisions.length<=0)return;const e=[];Object.values(c.CorporationUnlockUpgrades).forEach(t=>{0===this.corp().unlockUpgrades[t[0]]&&e.push(this.renderUnlockUpgrade(t))});const t=[];for(let e=0;e
To begin developing a product, first choose the city in which it will be designed. The stats of your employees in the selected city affect the properties of the finished product, such as its quality, performance, and durability.
You can also choose to invest money in the design and marketing of the product. Investing money in its design will result in a superior product. Investing money in marketing the product will help the product's sales.";const a=e.hasMaximumNumberProducts(),i=a?"a-link-button-inactive tooltip":"std-button",o=this.eventHandler().createMakeProductPopup.bind(this.eventHandler(),n,e);return r.a.createElement("button",{className:i,onClick:o,style:{margin:"6px",display:"inline-block"}},t,a&&r.a.createElement("span",{className:"tooltiptext"},"You have reached the maximum number of products: ",e.getMaximumNumberProducts()))}renderText(){const e=this.corp(),t=this.routing().currentDivision,n=1===e.unlockUpgrades[4],a=t.lastCycleRevenue.minus(t.lastCycleExpenses).toNumber(),i=`Industry: ${t.type} (Corp Funds: ${c.numeralWrapper.formatMoney(e.funds.toNumber())})`,o=`Awareness: ${c.numeralWrapper.format(t.awareness,"0.000")}`,s=`Popularity: ${c.numeralWrapper.format(t.popularity,"0.000")}`;let l=!1;const p=t.getAdvertisingFactors(),d=p[1],h=p[2],_=p[3],g=p[0];n&&(l=!0);const f=`Revenue: ${c.numeralWrapper.formatMoney(t.lastCycleRevenue.toNumber())} / s`,y=`Expenses: ${c.numeralWrapper.formatMoney(t.lastCycleExpenses.toNumber())} /s`,b=`Profit: ${c.numeralWrapper.formatMoney(a)} / s`;return r.a.createElement("div",null,i,r.a.createElement("br",null)," ",r.a.createElement("br",null),o," ",r.a.createElement("br",null),s," ",r.a.createElement("br",null),!1!==l&&r.a.createElement("p",{className:"tooltip"},"Advertising Multiplier: x",c.numeralWrapper.format(g,"0.000"),r.a.createElement("span",{className:"tooltiptext cmpy-mgmt-advertising-info"},"Total multiplier for this industrys sales due to its awareness and popularity",r.a.createElement("br",null),"Awareness Bonus: x",c.numeralWrapper.format(Math.pow(d,.85),"0.000"),r.a.createElement("br",null),"Popularity Bonus: x",c.numeralWrapper.format(Math.pow(h,.85),"0.000"),r.a.createElement("br",null),"Ratio Multiplier: x",c.numeralWrapper.format(Math.pow(_,.85),"0.000"))),l,r.a.createElement("br",null),r.a.createElement("br",null),f," ",r.a.createElement("br",null),y," ",r.a.createElement("br",null),b,r.a.createElement("br",null)," ",r.a.createElement("br",null),r.a.createElement("p",{className:"tooltip"},"Production Multiplier: ",c.numeralWrapper.format(t.prodMult,"0.00"),r.a.createElement("span",{className:"tooltiptext"},"Production gain from owning production-boosting materials such as hardware, Robots, AI Cores, and Real Estate")),r.a.createElement("div",{className:"help-tip",onClick:()=>{function e(e){return Object(m.createProgressBarText)({progress:e,totalTicks:20})}Object(u.dialogBoxCreate)("Owning Hardware, Robots, AI Cores, and Real Estate can boost your Industry's production. The effect these materials have on your production varies between Industries. For example, Real Estate may be very effective for some Industries, but ineffective for others.
This division's production multiplier is calculated by summing the individual production multiplier of each of its office locations. This production multiplier is applied to each office. Therefore, it is beneficial to expand into new cities as this can greatly increase the production multiplier of your entire Division.
Below are approximations for how effective each material is at boosting this industry's production multiplier (Bigger bars = more effective):
"+`Hardware: ${e(t.hwFac)}
`+`Robots: ${e(t.robFac)}
`+`AI Cores: ${e(t.aiFac)}
`+`Real Estate: ${e(t.reFac)}`)}},"?"),r.a.createElement("br",null)," ",r.a.createElement("br",null),r.a.createElement("p",{className:"tooltip"},"Scientific Research: ",c.numeralWrapper.format(t.sciResearch.qty,"0.000a"),r.a.createElement("span",{className:"tooltiptext"},"Scientific Research increases the quality of the materials and products that you produce.")),r.a.createElement("button",{className:"help-tip",onClick:t.createResearchBox.bind(t)},"Research"))}renderUpgrades(){const e=this.corp(),t=this.routing().currentDivision,n=t.offices[this.props.currentCity];if(!(n instanceof o.i))throw new Error(`Current City (${this.props.currentCity}) for UI does not have an OfficeSpace object`);const a=[];for(const r in l.IndustryUpgrades){const i=l.IndustryUpgrades[r];if(t.hasResearch("AutoBrew")&&"Coffee"===i[4])continue;const o=i[0],s=i[1],m=i[2];let p=0;switch(o){case 0:p=n.employees.length*s;break;default:p=s*Math.pow(m,t.upgrades[o])}const d=()=>{e.funds.lt(p)?Object(u.dialogBoxCreate)("Insufficient funds"):(e.funds=e.funds.minus(p),t.upgrade(i,{corporation:e,office:n}),e.rerender())};a.push(this.renderUpgrade({onClick:d,text:`${i[4]} - ${c.numeralWrapper.formatMoney(p)}`,tooltip:i[5]}))}return a}renderUpgrade(e){return r.a.createElement("div",{className:"cmpy-mgmt-upgrade-div tooltip",onClick:e.onClick,key:e.text},e.text,null!=e.tooltip&&r.a.createElement("span",{className:"tooltiptext"},e.tooltip))}render(){const e=this.routing().currentDivision;if(null==e)throw new Error("Routing does not hold reference to the current Industry");const t=this.renderMakeProductButton();return r.a.createElement("div",{className:"cmpy-mgmt-industry-overview-panel"},this.renderText(),r.a.createElement("br",null),r.a.createElement("u",{className:"industry-purchases-and-upgrades-header"},"Purchases & Upgrades"),r.a.createElement("br",null),this.renderUpgrades()," ",r.a.createElement("br",null),e.makesProducts&&t)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var a=n(0),r=n.n(a),i=n(72),o=n(41),s=n(25),l=n(3),c=n(181);class u extends i.a{constructor(e){super(e),this.state={city:"",division:"",employeeManualAssignMode:!1,employee:null,numEmployees:0,numOperations:0,numEngineers:0,numBusiness:0,numManagement:0,numResearch:0,numUnassigned:0,numTraining:0},this.updateEmployeeCount()}resetEmployeeCount(){this.state.numEmployees=0,this.state.numOperations=0,this.state.numEngineers=0,this.state.numBusiness=0,this.state.numManagement=0,this.state.numResearch=0,this.state.numUnassigned=0,this.state.numTraining=0}updateEmployeeCount(){const e=this.routing().currentDivision;if(null==e)throw new Error("Routing does not hold reference to the current Industry");const t=e.offices[this.props.currentCity];if(!(t instanceof o.i))throw new Error(`Current City (${this.props.currentCity}) for UI does not have an OfficeSpace object`);e.name===this.state.division&&this.props.currentCity===this.state.city||(this.resetEmployeeCount(),this.state.division=e.name,this.state.city=this.props.currentCity);const n=t.employees.length;for(let e=this.state.numEmployees;e
To purchase these shares, you must use your own money (NOT your Corporation's funds).
The current buyback price of your company's stock is "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t,"$0.000a")+". Your company currently has "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatBigNumber(this.corp.issuedShares)+" outstanding stock shares"});var a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"number",placeholder:"Shares to buyback",margin:"5px",inputListener:()=>{var e=Math.round(r.value);isNaN(e)||e<=0?a.innerText="ERROR: Invalid value entered for number of shares to buyback":e>this.corp.issuedShares?a.innerText="There are not this many shares available to buy back. There are only "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatBigNumber(this.corp.issuedShares)+" outstanding shares.":a.innerText="Purchase "+e+" shares for a total of "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(e*t,"$0.000a")}}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"a-link-button",innerText:"Buy shares",display:"inline-block",clickListener:()=>{var t=Math.round(r.value);const n=1.1*this.corp.sharePrice;if(isNaN(t)||t<=0)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: Invalid value for number of shares");else if(t>this.corp.issuedShares)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: There are not this many oustanding shares to buy back");else if(t*n>_Player__WEBPACK_IMPORTED_MODULE_5__.Player.money)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: You do not have enough money to purchase this many shares (you need "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t*n,"$0.000a")+")");else{if(this.corp.numShares+=t,isNaN(this.corp.issuedShares)){console.warn("Corporation issuedShares is NaN: "+this.corp.issuedShares),console.warn("Converting to number now");const e=parseInt(this.corp.issuedShares);isNaN(e)?this.corp.issuedShares=0:this.corp.issuedShares=e}this.corp.issuedShares-=t,_Player__WEBPACK_IMPORTED_MODULE_5__.Player.loseMoney(t*n),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(e),this.rerender()}return!1}}),o=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(e,{class:"std-button",display:"inline-block",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,[n,a,r,i,o]),r.focus()}createDiscontinueProductPopup(e,t){const n="cmpy-mgmt-discontinue-product-popup",a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Are you sure you want to do this? Discontinuing a product removes it completely and permanently. You will no longer produce this product and all of its existing stock will be removed and left unsold"}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"popup-box-button",innerText:"Discontinue",clickListener:()=>(t.discontinueProduct(e),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n),this.rerender(),!1)}),i=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[a,i,r])}createExportMaterialPopup(mat){const corp=this.corp,popupId="cmpy-mgmt-export-popup",exportTxt=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Select the industry and city to export this material to, as well as how much of this material to export per second. You can set the export amount to 'MAX' to export all of the materials in this warehouse."}),citySelector=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown"}),industrySelector=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown",changeListener:()=>{const e=Object(_utils_uiHelpers_getSelectData__WEBPACK_IMPORTED_MODULE_17__.getSelectValue)(industrySelector);for(let t=0;t
Amount/s: "+t.exp[e].amt,clickListener:()=>{t.exp.splice(e,1),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(popupId),createExportMaterialPopup(t)}}))}(i,mat,currExports);Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(popupId,[exportTxt,industrySelector,citySelector,exportAmount,exportBtn,cancelBtn,currExportsText].concat(currExports))}createIssueDividendsPopup(){const e="cmpy-mgmt-issue-dividends-popup",t="Dividends are a distribution of a portion of the corporation's profits to the shareholders. This includes yourself, as well.
In order to issue dividends, simply allocate some percentage of your corporation's profits to dividends. This percentage must be an "+`integer between 0 and ${_Corporation__WEBPACK_IMPORTED_MODULE_1__.d}. (A percentage of 0 means no dividends will be `+"issued
Two important things to note:
* Issuing dividends will negatively affect your corporation's stock price
* Dividends are taxed. Taxes start at 50%, but can be decreased
Example: Assume your corporation makes $100m / sec in profit and you allocate 40% of that towards dividends. That means your corporation will gain $60m / sec in funds and the remaining $40m / sec will be paid as dividends. Since your corporation starts with 1 billion shares, every shareholder will be paid $0.04 per share per second before taxes.",n=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:t});let a;const r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"Dividend %",type:"number",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&a.click()}});a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",display:"inline-block",innerText:"Allocate Dividend Percentage",clickListener:()=>{const t=Math.round(parseInt(r.value));return isNaN(t)||t<0||t>_Corporation__WEBPACK_IMPORTED_MODULE_1__.d?Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)(`Invalid value. Must be an integer between 0 and ${_Corporation__WEBPACK_IMPORTED_MODULE_1__.d}`):(this.corp.dividendPercentage=t,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(e),this.rerender(),!1)}});const i=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(e,{class:"std-button",display:"inline-block",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,[n,r,a,i]),r.focus()}createIssueNewSharesPopup(){const e="cmpy-mgmt-issue-new-shares-popup",t=Math.round(.2*this.corp.totalShares),n=t-t%1e6,a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"You can issue new equity shares (i.e. stocks) in order to raise capital for your corporation.
"+` * You can issue at most ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(n,"0.000a")} new shares
`+" * New shares are sold at a 10% discount
* You can only issue new shares once every 12 hours
* Issuing new shares causes dilution, resulting in a decrease in stock price and lower dividends per share
* Number of new shares issued must be a multiple of 10 million
When you choose to issue new equity, private shareholders have first priority for up to 50% of the new shares. If they choose to exercise this option, these newly issued shares become private, restricted shares, which means you cannot buy them back."});let r,i;const o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{display:"block"});i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"# New Shares",type:"number",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER?r.click():function(e){const t=Math.round(.9*e.sharePrice);let a=parseInt(i.value);isNaN(a)?o.innerText="Invalid input":(a/=1e7,a=1e7*Math.round(a),o.innerText=a<1e7?"Must issue at least 10 million new shares":a>n?"You cannot issue that many shares":`Issue ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(a,"0.000a")} new shares `+`for ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(a*t)}?`)}(this.corp)}}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",display:"inline-block",innerText:"Issue New Shares",clickListener:()=>{const t=Math.round(.9*this.corp.sharePrice);let a=parseInt(i.value);if(isNaN(a))return void Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid input for number of new shares");if((a=1e7*Math.round(a/1e7))<1e7||a>n)return void Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid input for number of new shares");const r=a*t;this.corp.issueNewSharesCooldown=_Corporation__WEBPACK_IMPORTED_MODULE_1__.f,this.corp.totalShares+=a;let o=Object(_utils_helpers_getRandomInt__WEBPACK_IMPORTED_MODULE_10__.getRandomInt)(0,Math.round(a/2));return o=1e6*Math.round(o/1e6),this.corp.issuedShares+=a-o,this.corp.funds=this.corp.funds.plus(r),this.corp.immediatelyUpdateSharePrice(),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(e),Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)(`Issued ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(a,"0.000a")} and raised `+`${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(r)}. ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(o,"0.000a")} `+"of these shares were bought by private investors.
"+`Stock price decreased to ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(this.corp.sharePrice)}`),this.rerender(),!1}});const s=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(e,{class:"std-button",display:"inline-block",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,[a,o,i,r,s]),i.focus()}createLimitProductProdutionPopup(e,t){const n="cmpy-mgmt-limit-product-production-popup",a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Enter a limit to the amount of this product you would like to product per second. Leave the box empty to set no limit."});let r;const i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"Limit",type:"number",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&r.click()}});r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",display:"inline-block",innerText:"Limit production",margin:"5px",clickListener:()=>{if(""===i.value)return e.prdman[t][0]=!1,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n),!1;var a=parseFloat(i.value);return isNaN(a)?(Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value entered"),!1):(a<0?e.prdman[t][0]=!1:(e.prdman[t][0]=!0,e.prdman[t][1]=a),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n),this.rerender(),!1)}});const o=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{innerText:"Cancel"});o.style.margin="6px",Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[a,i,r,o]),i.focus()}createMakeProductPopup(e,t){if(t.hasMaximumNumberProducts())return;const n="cmpy-mgmt-create-product-popup",a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:e}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown",margin:"5px"});for(const e in t.offices)t.offices[e]instanceof _Corporation__WEBPACK_IMPORTED_MODULE_1__.i&&r.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("option",{value:e,text:e}));let i="Product Name";t.type===_IndustryData__WEBPACK_IMPORTED_MODULE_2__.Industries.Food?i="Restaurant Name":t.type===_IndustryData__WEBPACK_IMPORTED_MODULE_2__.Industries.Healthcare?i="Hospital Name":t.type===_IndustryData__WEBPACK_IMPORTED_MODULE_2__.Industries.RealEstate&&(i="Property Name");var o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{class:"text-input",margin:"5px",placeholder:i}),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("br"),l=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{class:"text-input",margin:"5px",placeholder:"Design investment",type:"number"});let c;var u=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{class:"text-input",margin:"5px",placeholder:"Marketing investment",type:"number",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&c.click()}});c=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Develop Product",clickListener:()=>{(null==l.value||l.value<0)&&(l.value=0),(null==u.value||u.value<0)&&(u.value=0);var e=parseFloat(l.value),a=parseFloat(u.value);if(null==o.value||""===o.value)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You must specify a name for your product!");else if(isNaN(e))Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value for design investment");else if(isNaN(a))Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value for marketing investment");else if(this.corp.funds.lt(e+a))Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You don't have enough company funds to make this large of an investment");else{const i=new _Product__WEBPACK_IMPORTED_MODULE_4__.Product({name:o.value.replace(/[<>]/g,""),createCity:r.options[r.selectedIndex].value,designCost:e,advCost:a});if(t.products[i.name]instanceof _Product__WEBPACK_IMPORTED_MODULE_4__.Product)return void Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You already have a product with this name!");this.corp.funds=this.corp.funds.minus(e+a),t.products[i.name]=i,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n)}return this.rerender(),!1}});const m=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{class:"std-button",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[a,r,o,s,l,u,c,m]),o.focus()}createMaterialMarketTaPopup(e,t){const n="cmpy-mgmt-marketta-popup",a=e.getMarkupLimit(),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Market-TA.I
The maximum sale price you can mark this up to is "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(e.bCost+a)+". This means that if you set the sale price higher than this, you will begin to experience a loss in number of sales"}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{display:"block"}),o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{color:"white",for:"cmpy-mgmt-marketa1-checkbox",innerText:"Use Market-TA.I for Auto-Sale Price",tooltip:"If this is enabled, then this Material will automatically be sold at the price identified by Market-TA.I (i.e. the price shown above)"}),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:e.marketTa1,id:"cmpy-mgmt-marketa1-checkbox",margin:"3px",type:"checkbox",changeListener:t=>{e.marketTa1=t.target.checked}});i.appendChild(o),i.appendChild(s);const l=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{class:"std-button",display:"block",innerText:"Close"});if(t.hasResearch("Market-TA.II")){let t;const o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p"),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{marginTop:"4px",onkeyup:e=>{e.preventDefault(),t()},type:"number",value:e.bCost});(t=function(){const t=parseFloat(s.value);let n=1;t>e.bCost?t-e.bCost>a&&(n=Math.pow(a/(t-e.bCost),2)):t
"+`If you sell at ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(t)}, `+`then you will sell ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(n,"0.00000")}x as much compared `+"to if you sold at market price."})();const c="cmpy-mgmt-marketa2-checkbox",u=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{display:"block"}),m=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{color:"white",for:c,innerText:"Use Market-TA.II for Auto-Sale Price",tooltip:"If this is enabled, then this Material will automatically be sold at the optimal price such that the amount sold matches the amount produced. (i.e. the highest possible price, while still ensuring that all produced materials will be sold)"}),p=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:e.marketTa2,id:c,margin:"3px",type:"checkbox",changeListener:t=>{e.marketTa2=t.target.checked}});u.appendChild(m),u.appendChild(p);const d=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Note that Market-TA.II overrides Market-TA.I. This means that if both are enabled, then Market-TA.II will take effect, not Market-TA.I"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[r,i,o,s,u,d,l])}else Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[r,i,l])}createNewCityPopup(e,t){const n="cmpy-mgmt-expand-city-popup",a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Would you like to expand into a new city by opening an office? This would cost "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(_Corporation__WEBPACK_IMPORTED_MODULE_1__.g,"$0.000a")}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown",margin:"5px"});for(const t in e.offices)e.offices[t]instanceof _Corporation__WEBPACK_IMPORTED_MODULE_1__.i||r.add(Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("option",{text:t,value:t}));const i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",display:"inline-block",innerText:"Confirm",clickListener:()=>{if(r.length<=0)return!1;let a=r.options[r.selectedIndex].value;return this.corp.funds.lt(_Corporation__WEBPACK_IMPORTED_MODULE_1__.g)?Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You don't have enough company funds to open a new office!"):(this.corp.funds=this.corp.funds.minus(_Corporation__WEBPACK_IMPORTED_MODULE_1__.g),Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Opened a new office in "+a+"!"),e.offices[a]=new _Corporation__WEBPACK_IMPORTED_MODULE_1__.i({loc:a,size:_Corporation__WEBPACK_IMPORTED_MODULE_1__.h})),t(a),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(n),this.rerender(),!1}}),o=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{class:"std-button",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[a,r,i,o])}createNewIndustryPopup(){const e="cmpy-mgmt-expand-industry-popup";if(null!=document.getElementById(e))return;var t,n=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Create a new division to expand into a new industry:"}),a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("select",{class:"dropdown"}),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"text",id:"cmpy-mgmt-expand-industry-name-input",class:"text-input",display:"block",maxLength:30,pattern:"[a-zA-Z0-9-_]",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&t.click()}}),o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{for:"cmpy-mgmt-expand-industry-name-input",innerText:"Division name: "});t=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("span",{class:"popup-box-button",innerText:"Create Division",clickListener:()=>{const e=a.options[a.selectedIndex].value,t=i.value;for(let e=0;e
",a.addEventListener("change",function(){var e=a.options[a.selectedIndex].value;r.innerHTML=_IndustryData__WEBPACK_IMPORTED_MODULE_2__.IndustryDescriptions[e]+"
"});const m=[];return m.push(n),m.push(a),m.push(r),m.push(o),m.push(i),m.push(s),m.push(t),Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,m),i.focus(),!1}createProductMarketTaPopup(e,t){const n="cmpy-mgmt-marketta-popup",a=e.rat/e.mku,r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Market-TA.I
The maximum sale price you can mark this up to is "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(e.pCost+a)+". This means that if you set the sale price higher than this, you will begin to experience a loss in number of sales"}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{display:"block"}),o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{color:"white",for:"cmpy-mgmt-marketa1-checkbox",innerText:"Use Market-TA.I for Auto-Sale Price",tooltip:"If this is enabled, then this Product will automatically be sold at the price identified by Market-TA.I (i.e. the price shown above)"}),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:e.marketTa1,id:"cmpy-mgmt-marketa1-checkbox",margin:"3px",type:"checkbox",changeListener:t=>{e.marketTa1=t.target.checked}});i.appendChild(o),i.appendChild(s);const l=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(n,{class:"std-button",display:"block",innerText:"Close"});if(t.hasResearch("Market-TA.II")){let t;const o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p"),s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{marginTop:"4px",onkeyup:e=>{e.preventDefault(),t()},type:"number",value:e.pCost});(t=function(){const t=parseFloat(s.value);let n=1;t>e.pCost&&t-e.pCost>a&&(n=a/(t-e.pCost)),o.innerHTML="
Market-TA.II
"+`If you sell at ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(t)}, `+`then you will sell ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(n,"0.00000")}x as much compared `+"to if you sold at market price."})();const c="cmpy-mgmt-marketa2-checkbox",u=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{display:"block"}),m=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{color:"white",for:c,innerText:"Use Market-TA.II for Auto-Sale Price",tooltip:"If this is enabled, then this Product will automatically be sold at the optimal price such that the amount sold matches the amount produced. (i.e. the highest possible price, while still ensuring that all produced materials will be sold)"}),p=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:e.marketTa2,id:c,margin:"3px",type:"checkbox",changeListener:t=>{e.marketTa2=t.target.checked}});u.appendChild(m),u.appendChild(p);const d=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Note that Market-TA.II overrides Market-TA.I. This means that if both are enabled, then Market-TA.II will take effect, not Market-TA.I"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[r,i,o,s,u,d,l])}else Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(n,[r,i,l])}createPurchaseMaterialPopup(e,t,n){const a=this.corp,r="cmpy-mgmt-material-purchase-popup",i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Enter the amount of "+e.name+" you would like to purchase per second. This material's cost changes constantly"});let o,s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"Purchase amount",type:"number",value:e.buy?e.buy:null,onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&o.click()}});o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{innerText:"Confirm",class:"std-button",clickListener:()=>{if(!isNaN(s.value))return e.buy=parseFloat(s.value),isNaN(e.buy)&&(e.buy=0),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(r),this.rerender(),!1;Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid amount")}});const l=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{innerText:"Clear Purchase",class:"std-button",clickListener:()=>(e.buy=0,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(r),this.rerender(),!1)}),c=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(r,{class:"std-button",innerText:"Cancel"}),u=[i,s,o,l,c];if(t.hasResearch("Bulk Purchasing")){const t=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Enter the amount of "+e.name+" you would like to bulk purchase. This purchases the specified amount instantly (all at once)."});let i,o=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p");const s=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px",placeholder:"Bulk Purchase amount",type:"number",onkeyup:t=>{t.preventDefault(),function(t){const a=parseFloat(t),r=a*e.bCost,i=_MaterialSizes__WEBPACK_IMPORTED_MODULE_3__.MaterialSizes[e.name];a*i>(n.size-n.sizeUsed)/i?o.innerText="Not enough warehouse space to purchase this amount":isNaN(r)?o.innerText="Invalid put for Bulk Purchase amount":o.innerText=`Purchasing ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(a,"0,0.00")} of `+`${e.name} will cost ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(r)}`}(t.target.value),t.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&i.click()}});i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Confirm Bulk Purchase",clickListener:()=>{const t=parseFloat(s.value),i=_MaterialSizes__WEBPACK_IMPORTED_MODULE_3__.MaterialSizes[e.name];if(t*i>(n.size-n.sizeUsed)/i)return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You do not have enough warehouse size to fit this purchase"),!1;if(!isNaN(t)){const n=t*e.bCost;return a.funds.gt(n)?(a.funds=a.funds.minus(n),e.qty+=t,Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(r),!1):(Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You cannot afford this purchase."),!1)}Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid input amount")}}),u.push(t),u.push(o),u.push(s),u.push(i)}Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(r,u),s.focus()}createSellMaterialPopup(mat){const sellPopupId="cmpy-mgmt-material-sell-popup",txt=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Enter the maximum amount of "+mat.name+" you would like to sell per second, as well as the price at which you would like to sell at.
If the sell amount is set to 0, then the material will not be sold. If the sell price if set to 0, then the material will be discarded
Setting the sell amount to 'MAX' will result in you always selling the maximum possible amount of the material.
When setting the sell amount, you can use the 'PROD' variable to designate a dynamically changing amount that depends on your production. For example, if you set the sell amount to 'PROD-5' then you will always sell 5 less of the material than you produce.
When setting the sell price, you can use the 'MP' variable to designate a dynamically changing price that depends on the market price. For example, if you set the sell price to 'MP+10' then it will always be sold at $10 above the market price."}),br=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("br");let confirmBtn;const inputQty=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"text",marginTop:"4px",value:mat.sllman[1]?mat.sllman[1]:null,placeholder:"Sell amount",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&confirmBtn.click()}});let inputButtonInitValue=mat.sCost?mat.sCost:null;mat.marketTa2?inputButtonInitValue+=" (Market-TA.II)":mat.marketTa1&&(inputButtonInitValue+=" (Market-TA.I)");const inputPx=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"text",marginTop:"4px",value:inputButtonInitValue,placeholder:"Sell price",onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&confirmBtn.click()}});confirmBtn=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Confirm",clickListener:()=>{let cost=inputPx.value.replace(/\s+/g,"");cost=cost.replace(/[^-()\d/*+.MP]/g,"");let temp=cost.replace(/MP/g,mat.bCost);try{temp=eval(temp)}catch(e){return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field: "+e),!1}if(null==temp||isNaN(temp))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field"),!1;if(cost.includes("MP")?mat.sCost=cost:mat.sCost=temp,inputQty.value.includes("MAX")||inputQty.value.includes("PROD")){let qty=inputQty.value.replace(/\s+/g,"");qty=qty.replace(/[^-()\d/*+.MAXPROD]/g,"");let tempQty=qty.replace(/MAX/g,1);tempQty=tempQty.replace(/PROD/g,1);try{tempQty=eval(tempQty)}catch(e){return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field: "+e),!1}if(null==tempQty||isNaN(tempQty))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field"),!1;mat.sllman[0]=!0,mat.sllman[1]=qty}else{if(isNaN(inputQty.value))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value for sell quantity field! Must be numeric or 'MAX'"),!1;var qty=parseFloat(inputQty.value);isNaN(qty)&&(qty=0),0===qty?(mat.sllman[0]=!1,mat.sllman[1]=0):(mat.sllman[0]=!0,mat.sllman[1]=qty)}return Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(sellPopupId),this.rerender(),!1}});const cancelBtn=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(sellPopupId,{class:"std-button",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(sellPopupId,[txt,br,inputQty,inputPx,confirmBtn,cancelBtn]),inputQty.focus()}createSellProductPopup(product,city){const popupId="cmpy-mgmt-sell-product-popup",txt=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerHTML:"Enter the maximum amount of "+product.name+" you would like to sell per second, as well as the price at which you would like to sell it at.
If the sell amount is set to 0, then the product will not be sold. If the sell price is set to 0, then the product will be discarded.
Setting the sell amount to 'MAX' will result in you always selling the maximum possible amount of the material.
When setting the sell amount, you can use the 'PROD' variable to designate a dynamically changing amount that depends on your production. For example, if you set the sell amount to 'PROD-1' then you will always sell 1 less of the material than you produce.
When setting the sell price, you can use the 'MP' variable to set a dynamically changing price that depends on the Product's estimated market price. For example, if you set it to 'MP*5' then it will always be sold at five times the estimated market price."});let confirmBtn;const inputQty=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px 0px 5px 0px",placeholder:"Sell amount",type:"text",value:product.sllman[city][1]?product.sllman[city][1]:null,onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&confirmBtn.click()}});let inputButtonInitValue=product.sCost?product.sCost:null;product.marketTa2?inputButtonInitValue+=" (Market-TA.II)":product.marketTa1&&(inputButtonInitValue+=" (Market-TA.I)");const inputPx=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{margin:"5px 0px 5px 0px",placeholder:"Sell price",type:"text",value:inputButtonInitValue,onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&confirmBtn.click()}}),checkboxDiv=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("div",{border:"1px solid white",display:"inline-block"}),checkboxLabel=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("label",{for:popupId+"-checkbox",innerText:"Use same 'Sell Amount' for all cities"}),checkbox=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{checked:!0,id:popupId+"-checkbox",margin:"2px",type:"checkbox"});checkboxDiv.appendChild(checkboxLabel),checkboxDiv.appendChild(checkbox),confirmBtn=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Confirm",clickListener:()=>{if(inputPx.value.includes("MP")){var price=inputPx.value.replace(/\s+/g,"");price=price.replace(/[^-()\d/*+.MP]/g,"");var temp=price.replace(/MP/g,1);try{temp=eval(temp)}catch(e){return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell quantity field: "+e),!1}if(null==temp||isNaN(temp))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell quantity field."),!1;product.sCost=price}else{var cost=parseFloat(inputPx.value);if(isNaN(cost))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value for sell price field"),!1;product.sCost=cost}const cities=Object.keys(_Locations_Cities__WEBPACK_IMPORTED_MODULE_7__.Cities);if(inputQty.value.includes("MAX")||inputQty.value.includes("PROD")){var qty=inputQty.value.replace(/\s+/g,"");qty=qty.replace(/[^-()\d/*+.MAXPROD]/g,"");var temp=qty.replace(/MAX/g,1);temp=temp.replace(/PROD/g,1);try{temp=eval(temp)}catch(e){return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field: "+e),!1}if(null==temp||isNaN(temp))return Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value or expression for sell price field"),!1;if(checkbox.checked)for(let e=0;e
Selling your shares will cause your corporation's stock price to fall due to dilution. Furthermore, selling a large number of shares all at once will have an immediate effect in reducing your stock price.
The current price of your company's stock is "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t,"$0.000a")}),a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p"),r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{class:"text-input",type:"number",placeholder:"Shares to sell",margin:"5px",inputListener:()=>{var e=Math.round(r.value);if(isNaN(e)||e<=0)a.innerText="ERROR: Invalid value entered for number of shares to sell";else if(e>this.corp.numShares)a.innerText="You don't have this many shares to sell!";else{const t=this.corp.calculateShareSale(e)[0];a.innerText="Sell "+e+" shares for a total of "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t,"$0.000a")}}}),i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"a-link-button",innerText:"Sell shares",display:"inline-block",clickListener:()=>{var t=Math.round(r.value);if(isNaN(t)||t<=0)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: Invalid value for number of shares");else{if(!(t>this.corp.numShares)){const a=this.corp.calculateShareSale(t),r=a[0],i=a[1],o=a[2];if(this.corp.numShares-=t,isNaN(this.corp.issuedShares)){console.error(`Corporation issuedShares is NaN: ${this.corp.issuedShares}`);var n=parseInt(this.corp.issuedShares);isNaN(n)?this.corp.issuedShares=0:this.corp.issuedShares=n}return this.corp.issuedShares+=t,this.corp.sharePrice=i,this.corp.shareSalesUntilPriceUpdate=o,this.corp.shareSaleCooldown=_Corporation__WEBPACK_IMPORTED_MODULE_1__.k,_Player__WEBPACK_IMPORTED_MODULE_5__.Player.gainMoney(r),_Player__WEBPACK_IMPORTED_MODULE_5__.Player.recordMoneySource(r,"corporation"),Object(_utils_uiHelpers_removeElementById__WEBPACK_IMPORTED_MODULE_18__.removeElementById)(e),Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)(`Sold ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(t,"0.000a")} shares for `+`${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(r,"$0.000a")}. `+`The corporation's stock price fell to ${_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.formatMoney(this.corp.sharePrice)} `+"as a result of dilution."),this.rerender(),!1}Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("ERROR: You don't have this many shares to sell")}}}),o=Object(_utils_uiHelpers_createPopupCloseButton__WEBPACK_IMPORTED_MODULE_16__.createPopupCloseButton)(e,{class:"std-button",display:"inline-block",innerText:"Cancel"});Object(_utils_uiHelpers_createPopup__WEBPACK_IMPORTED_MODULE_15__.createPopup)(e,[n,a,r,i,o]),r.focus()}createThrowOfficePartyPopup(e){const t="cmpy-mgmt-throw-office-party-popup",n=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Enter the amount of money you would like to spend PER EMPLOYEE on this office party"}),a=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("p",{innerText:"Throwing this party will cost a total of $0"});let r;const i=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("input",{type:"number",margin:"5px",placeholder:"$ / employee",inputListener:()=>{if(isNaN(i.value)||i.value<0)a.innerText="Invalid value entered!";else{const t=i.value*e.employees.length;a.innerText="Throwing this party will cost a total of "+_ui_numeralFormat__WEBPACK_IMPORTED_MODULE_8__.numeralWrapper.format(t,"$0.000a")}},onkeyup:e=>{e.preventDefault(),e.keyCode===_utils_helpers_keyCodes__WEBPACK_IMPORTED_MODULE_11__.KEY.ENTER&&r.click()}});r=Object(_utils_uiHelpers_createElement__WEBPACK_IMPORTED_MODULE_13__.createElement)("button",{class:"std-button",innerText:"Throw Party",clickListener:()=>{if(isNaN(i.value)||i.value<0)Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("Invalid value entered");else{var n=i.value*e.employees.length;if(this.corp.funds.lt(n))Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__.dialogBoxCreate)("You don't have enough company funds to throw this.corp party!");else{var a;this.corp.funds=this.corp.funds.minus(n);for(let t=0;t
",n+=m.renderToStaticMarkup(t.stats),g.appendChild(s.createElement("div",{class:"gang-owned-upgrade",innerText:e,tooltip:n}))}_.push(g);const f=s.createElement("p",{innerHTML:["You can purchase Augmentations for your Duplicate Sleeves. These Augmentations","have the same effect as they would for you. You can only purchase Augmentations","that you have unlocked through Factions.
","When purchasing an Augmentation for a Duplicate Sleeve, they are immediately","installed. This means that the Duplicate Sleeve will immediately lose all of","its stat experience."].join(" ")});_.push(f);for(const a of d){const r=s.createElement("div",{class:"cmpy-mgmt-upgrade-div"});let l=a.info;"string"!=typeof l&&(l=m.renderToStaticMarkup(l)),l+="
",l+=m.renderToStaticMarkup(a.stats),r.appendChild(s.createElement("p",{fontSize:"12px",innerHTML:[`${a.name}
`,`Cost: ${m.renderToStaticMarkup(i.Money(a.startingCost))}
`,`${l}`].join(" "),padding:"2px",clickListener:()=>{t.tryBuyAugmentation(n,a)?(o.dialogBoxCreate(`Installed ${a.name} on Duplicate Sleeve!`,!1),u.removeElementById(h),e(t,n)):o.dialogBoxCreate(`You cannot afford ${a.name}`,!1)}})),_.push(r)}l.createPopup(h,_)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Milestones=void 0;const a=n(16),r=n(24);function i(e,t){const n=t.augmentations.slice().filter(e=>"NeuroFlux Governor"!==e);for(const t of n)if(!e.augmentations.some(e=>e.name==t))return!1;return!0}t.Milestones=[{title:"Gain root access on CSEC",fulfilled:()=>{const e=r.GetServerByHostname("CSEC");return!(!e||!e.hasOwnProperty("hasAdminRights"))&&e.hasAdminRights}},{title:"Install the backdoor on CSEC",fulfilled:()=>{const e=r.GetServerByHostname("CSEC");return!(!e||!e.hasOwnProperty("backdoorInstalled"))&&e.backdoorInstalled}},{title:"Join the faction hinted at in csec-test.msg",fulfilled:e=>e.factions.includes("CyberSec")},{title:"Install all the Augmentations from CyberSec",fulfilled:e=>i(e,a.Factions.CyberSec)},{title:"Join the faction hinted at in nitesec-test.msg",fulfilled:e=>e.factions.includes("NiteSec")},{title:"Install all the Augmentations from NiteSec",fulfilled:e=>i(e,a.Factions.NiteSec)},{title:"Join the faction hinted at in j3.msg",fulfilled:e=>e.factions.includes("The Black Hand")},{title:"Install all the Augmentations from The Black Hand",fulfilled:e=>i(e,a.Factions["The Black Hand"])},{title:"Join the faction hinted at in 19dfj3l1nd.msg",fulfilled:e=>e.factions.includes("BitRunners")},{title:"Install all the Augmentations from BitRunners",fulfilled:e=>i(e,a.Factions.BitRunners)},{title:"Complete fl1ght.exe",fulfilled:e=>e.factions.includes("Daedalus")},{title:"Install the special Augmentation from Daedalus",fulfilled:e=>e.augmentations.some(e=>"The Red Pill"==e.name)},{title:"Install the final backdoor and free yourself.",fulfilled:()=>!1}]},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Root=void 0;const o=n(954),s=i(n(0));t.Root=function(e){const t=function(e,t){let n=-1;for(let a=0;a
Your max stamina is determined primarily by your agility stat.
Your stamina gain rate is determined by both your agility and your max stamina. Higher max stamina leads to a higher gain rate.
Once your stamina falls below 50% of its max value, it begins to negatively affect the success rate of your contracts/operations. This penalty is shown in the overview panel. If the penalty is 15%, then this means your success rate would be multipled by 85% (100 - 15).
Your max stamina and stamina gain rate can also be increased by training, or through skills and Augmentation upgrades.")}},"?"),o.default.createElement("br",null),o.default.createElement("p",null,"Stamina Penalty: ",s.formatNumber(100*(1-e.bladeburner.calculateStaminaPenalty()),1),"%"),o.default.createElement("br",null),o.default.createElement("p",null,"Team Size: ",s.formatNumber(e.bladeburner.teamSize,0)),o.default.createElement("p",null,"Team Members Lost: ",s.formatNumber(e.bladeburner.teamLost,0)),o.default.createElement("br",null),o.default.createElement("p",null,"Num Times Hospitalized: ",e.bladeburner.numHosp),o.default.createElement("p",null,"Money Lost From Hospitalizations: ",c.Money(e.bladeburner.moneyLost)),o.default.createElement("br",null),o.default.createElement("p",null,"Current City: ",e.bladeburner.city),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Est. Synthoid Population: ",m.numeralWrapper.formatPopulation(e.bladeburner.getCurrentCity().popEst),o.default.createElement("span",{className:"tooltiptext"},"This is your Bladeburner division's estimate of how many Synthoids exist in your current city.")),o.default.createElement("div",{className:"help-tip",onClick:function(){p.dialogBoxCreate("The success rate of your contracts/operations depends on the population of Synthoids in your current city. The success rate that is shown to you is only an estimate, and it is based on your Synthoid population estimate.
Therefore, it is important that this Synthoid population estimate is accurate so that you have a better idea of your success rate for contracts/operations. Certain actions will increase the accuracy of your population estimate.
The Synthoid populations of cities can change due to your actions or random events. If random events occur, they will be logged in the Bladeburner Console.")}},"?"),o.default.createElement("br",null),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Est. Synthoid Communities: ",s.formatNumber(e.bladeburner.getCurrentCity().comms,0),o.default.createElement("span",{className:"tooltiptext"},"This is your Bladeburner divison's estimate of how many Synthoid communities exist in your current city.")),o.default.createElement("br",null),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"City Chaos: ",s.formatNumber(e.bladeburner.getCurrentCity().chaos),o.default.createElement("span",{className:"tooltiptext"},"The city's chaos level due to tensions and conflicts between humans and Synthoids. Having too high of a chaos level can make contracts and operations harder.")),o.default.createElement("br",null),o.default.createElement("br",null),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Bonus time: ",s.convertTimeMsToTimeElapsedString(e.bladeburner.storedCycles/l.BladeburnerConstants.CyclesPerSecond*1e3),o.default.createElement("br",null),o.default.createElement("span",{className:"tooltiptext"},"You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by browser). Bonus time makes the Bladeburner mechanic progress faster, up to 5x the normal speed.")),o.default.createElement("p",null,"Skill Points: ",s.formatNumber(e.bladeburner.skillPoints,0)),o.default.createElement("br",null),u.StatsTable([["Aug. Success Chance mult: ",s.formatNumber(100*e.player.bladeburner_success_chance_mult,1)+"%"],["Aug. Max Stamina mult: ",s.formatNumber(100*e.player.bladeburner_max_stamina_mult,1)+"%"],["Aug. Stamina Gain mult: ",s.formatNumber(100*e.player.bladeburner_stamina_gain_mult,1)+"%"],["Aug. Field Analysis mult: ",s.formatNumber(100*e.player.bladeburner_analysis_mult,1)+"%"]]),o.default.createElement("br",null),o.default.createElement("a",{onClick:function(){const t="bladeburner-travel-popup";d.createPopup(t,g.TravelPopup,{bladeburner:e.bladeburner,popupId:t})},className:"a-link-button",style:{display:"inline-block"}},"Travel"),o.default.createElement("a",{onClick:function(){const t=h.Factions.Bladeburners;t.isMember?(e.engine.loadFactionContent(),_.displayFactionContent("Bladeburners")):e.bladeburner.rank>=l.BladeburnerConstants.RankNeededForFaction?(_.joinFaction(t),p.dialogBoxCreate("Congratulations! You were accepted into the Bladeburners faction")):p.dialogBoxCreate("You need a rank of 25 to join the Bladeburners Faction!")},className:"a-link-button tooltip",style:{display:"inline-block"}},o.default.createElement("span",{className:"tooltiptext"},"Apply to the Bladeburner Faction, or go to the faction page if you are already a member"),"Faction"),o.default.createElement("br",null),o.default.createElement("br",null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TerritorySubpage=void 0;const r=a(n(0)),i=n(3),o=n(12),s=n(20),l=n(93);t.TerritorySubpage=function(e){function t(e){const t=100*e;return t<=0?s.formatNumber(0,2):t>=100?s.formatNumber(100,2):s.formatNumber(t,2)}const n=l.AllGangs[e.gang.facName].power,a=Object.keys(l.AllGangs).filter(t=>t!=e.gang.facName);return r.default.createElement("div",{style:{width:"70%"}},r.default.createElement("p",{className:"noselect"},"This page shows how much territory your Gang controls. This statistic is listed as a percentage, which represents how much of the total territory you control.",r.default.createElement("br",null),r.default.createElement("br",null),"Every ~20 seconds, your gang has a chance to 'clash' with other gangs. Your chance to win a clash depends on your gang's power, which is listed in the display below. Your gang's power slowly accumulates over time. The accumulation rate is determined by the stats of all Gang members you have assigned to the 'Territory Warfare' task. Gang members that are not assigned to this task do not contribute to your gang's power. Your gang also loses a small amount of power whenever you lose a clash.",r.default.createElement("br",null),r.default.createElement("br",null),"NOTE: Gang members assigned to 'Territory Warfare' can be killed during clashes. This can happen regardless of whether you win or lose the clash. A gang member being killed results in both respect and power loss for your gang.",r.default.createElement("br",null),r.default.createElement("br",null),"The amount of territory you have affects all aspects of your Gang members' production, including money, respect, and wanted level. It is very beneficial to have high territory control.",r.default.createElement("br",null),r.default.createElement("br",null)),r.default.createElement("input",{checked:e.gang.territoryWarfareEngaged,id:"warfare",type:"checkbox",style:{display:"inline-block",margin:"2px"},onChange:t=>e.gang.territoryWarfareEngaged=t.target.checked}),r.default.createElement("label",{htmlFor:"warfare",className:"tooltip noselect",style:{color:"white",display:"inline-block"}},"Engage in Territory Warfare",r.default.createElement("span",{className:"tooltiptext",style:{display:"inline-block"}},"Engaging in Territory Warfare sets your clash chance to 100%. Disengaging will cause your clash chance to gradually decrease until it reaches 0%.")),r.default.createElement("br",null),r.default.createElement("p",{style:{display:"inline-block"}},"Territory Clash Chance: ",i.numeralWrapper.formatPercentage(e.gang.territoryClashChance,3)),r.default.createElement("div",{className:"help-tip noselect",style:{display:"inline-block"},onClick:function(){o.dialogBoxCreate("This percentage represents the chance you have of 'clashing' with with another gang. If you do not wish to gain/lose territory, then keep this percentage at 0% by not engaging in territory warfare.")}},"?"),r.default.createElement("br",null),r.default.createElement("input",{checked:e.gang.notifyMemberDeath,id:"notify",type:"checkbox",style:{display:"inline-block",margin:"2px"},onChange:t=>e.gang.notifyMemberDeath=t.target.checked}),r.default.createElement("label",{htmlFor:"warfare",className:"tooltip noselect",style:{color:"white",display:"inline-block"}},"Notify about Gang Member Deaths",r.default.createElement("span",{className:"tooltiptext",style:{display:"inline-block"}},"If this is enabled, then you will receive a pop-up notifying you whenever one of your Gang Members dies in a territory clash.")),r.default.createElement("br",null),r.default.createElement("fieldset",{style:{display:"block",margin:"6px"}},r.default.createElement("p",null,r.default.createElement("b",null,r.default.createElement("u",null,e.gang.facName)),r.default.createElement("br",null),"Power: ",s.formatNumber(l.AllGangs[e.gang.facName].power,6),r.default.createElement("br",null),"Territory: ",t(l.AllGangs[e.gang.facName].territory),"%",r.default.createElement("br",null),r.default.createElement("br",null),a.map(e=>(function(e){const a=l.AllGangs[e].power,o=n/(a+n);return r.default.createElement("span",{key:e},r.default.createElement("u",null,e),r.default.createElement("br",null),"Power: ",s.formatNumber(a,6),r.default.createElement("br",null),"Territory: ",t(l.AllGangs[e].territory),"%",r.default.createElement("br",null),"Chance to win clash with this gang: ",i.numeralWrapper.formatPercentage(o,3),r.default.createElement("br",null),r.default.createElement("br",null))})(e)))))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RecruitPopup=void 0;const o=i(n(0)),s=n(79),l=n(12);t.RecruitPopup=function(e){const[t,n]=o.useState("");function a(){""!==t?e.gang.canRecruitMember()?e.gang.recruitMember(t)?(e.onRecruit(),s.removePopup(e.popupId)):l.dialogBoxCreate("You already have a gang member with this name!"):l.dialogBoxCreate("You cannot recruit another Gang member!"):l.dialogBoxCreate("You must enter a name for your Gang member!")}function r(){s.removePopup(e.popupId)}return o.default.createElement(o.default.Fragment,null,o.default.createElement("p",{className:"noselect"},"Enter a name for your new Gang member:"),o.default.createElement("br",null),o.default.createElement("input",{autoFocus:!0,onKeyUp:function(e){13===e.keyCode&&a(),27===e.keyCode&&r()},onChange:function(e){n(e.target.value)},className:"text-input noselect",type:"text",placeholder:"unique name"}),o.default.createElement("a",{className:"std-button",onClick:a},"Recruit Gang Member"),o.default.createElement("a",{className:"std-button",onClick:r},"Cancel"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecruitButton=void 0;const r=a(n(0)),i=n(1024),o=n(703),s=n(20),l=n(79);t.RecruitButton=function(e){if(e.gang.members.length>=o.GangConstants.MaximumGangMembers)return r.default.createElement(r.default.Fragment,null);if(!e.gang.canRecruitMember()){const t=e.gang.getRespectNeededToRecruitMember();return r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{className:"a-link-button-inactive",style:{display:"inline-block",margin:"10px"}},"Recruit Gang Member"),r.default.createElement("p",{style:{margin:"10px",color:"red",display:"inline-block"}},s.formatNumber(t,2)," respect needed to recruit next member"))}return r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{className:"a-link-button",onClick:function(){const t="recruit-gang-member-popup";l.createPopup(t,i.RecruitPopup,{gang:e.gang,popupId:t,onRecruit:e.onRecruit})},style:{display:"inline-block",margin:"10px"}},"Recruit Gang Member"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TaskDescription=void 0;const r=a(n(0)),i=n(300);t.TaskDescription=function(e){const t=i.GangMemberTasks[e.member.task],n=t?t.desc:i.GangMemberTasks.Unassigned.desc;return r.default.createElement("p",{className:"inline noselect",dangerouslySetInnerHTML:{__html:n}})}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TaskSelector=void 0;const o=i(n(0)),s=n(3),l=n(286),c=n(125);t.TaskSelector=function(e){const[t,n]=o.useState(e.member.task),a=e.gang.getAllTaskNames(),r=[["Money:",c.MoneyRate(5*e.member.calculateMoneyGain(e.gang))],["Respect:",`${s.numeralWrapper.formatRespect(5*e.member.calculateRespectGain(e.gang))} / sec`],["Wanted Level:",`${s.numeralWrapper.formatWanted(5*e.member.calculateWantedLevelGain(e.gang))} / sec`],["Total Respect:",`${s.numeralWrapper.formatRespect(e.member.earnedRespect)}`]];return o.default.createElement(o.default.Fragment,null,o.default.createElement("select",{onChange:function(t){const a=t.target.value;e.member.assignToTask(a),n(a),e.onTaskChange()},className:"dropdown noselect",value:t},o.default.createElement("option",{key:0,value:"---"},"---"),a.map((e,t)=>o.default.createElement("option",{key:t+1,value:e},e))),o.default.createElement("div",null,l.StatsTable(r)))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AscensionPopup=void 0;const o=i(n(0)),s=n(3),l=n(79),c=n(12);t.AscensionPopup=function(e){const t=o.useState(!1)[1];o.useEffect(()=>{const e=setInterval(()=>t(e=>!e),1e3);return()=>clearInterval(e)},[]);const n=e.member.getAscensionResults();return o.default.createElement(o.default.Fragment,null,o.default.createElement("pre",null,"Are you sure you want to ascend this member? They will lose all of",o.default.createElement("br",null),"their non-Augmentation upgrades and their stats will reset back to 1.",o.default.createElement("br",null),o.default.createElement("br",null),"Furthermore, your gang will lose ",s.numeralWrapper.formatRespect(e.member.earnedRespect)," respect",o.default.createElement("br",null),o.default.createElement("br",null),"In return, they will gain the following permanent boost to stat multipliers:",o.default.createElement("br",null),"Hacking: x",s.numeralWrapper.format(n.hack,"0.000"),o.default.createElement("br",null),"Strength: x",s.numeralWrapper.format(n.str,"0.000"),o.default.createElement("br",null),"Defense: x",s.numeralWrapper.format(n.def,"0.000"),o.default.createElement("br",null),"Dexterity: x",s.numeralWrapper.format(n.dex,"0.000"),o.default.createElement("br",null),"Agility: x",s.numeralWrapper.format(n.agi,"0.000"),o.default.createElement("br",null),"Charisma: x",s.numeralWrapper.format(n.cha,"0.000"),o.default.createElement("br",null)),o.default.createElement("button",{className:"std-button",onClick:function(){e.onAscend();const t=e.gang.ascendMember(e.member);c.dialogBoxCreate(o.default.createElement("p",null,"You ascended ",e.member.name,"!",o.default.createElement("br",null),o.default.createElement("br",null),"Your gang lost ",s.numeralWrapper.formatRespect(t.respect)," respect.",o.default.createElement("br",null),o.default.createElement("br",null),e.member.name," gained the following stat multipliers for ascending:",o.default.createElement("br",null),"Hacking: x",s.numeralWrapper.format(t.hack,"0.000"),o.default.createElement("br",null),"Strength: x",s.numeralWrapper.format(t.str,"0.000"),o.default.createElement("br",null),"Defense: x",s.numeralWrapper.format(t.def,"0.000"),o.default.createElement("br",null),"Dexterity: x",s.numeralWrapper.format(t.dex,"0.000"),o.default.createElement("br",null),"Agility: x",s.numeralWrapper.format(t.agi,"0.000"),o.default.createElement("br",null),"Charisma: x",s.numeralWrapper.format(t.cha,"0.000"),o.default.createElement("br",null))),l.removePopup(e.popupId)}},"Ascend"),o.default.createElement("button",{className:"std-button",onClick:function(){l.removePopup(e.popupId)}},"Cancel"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberStats=void 0;const r=a(n(0)),i=n(12),o=n(20),s=n(3),l=n(79),c=n(1028);t.GangMemberStats=function(e){const t={hack:e.member.calculateAscensionMult(e.member.hack_asc_points),str:e.member.calculateAscensionMult(e.member.str_asc_points),def:e.member.calculateAscensionMult(e.member.def_asc_points),dex:e.member.calculateAscensionMult(e.member.dex_asc_points),agi:e.member.calculateAscensionMult(e.member.agi_asc_points),cha:e.member.calculateAscensionMult(e.member.cha_asc_points)};return r.default.createElement(r.default.Fragment,null,r.default.createElement("span",{className:"tooltiptext smallfont"},"Hk: x",s.numeralWrapper.formatMultiplier(e.member.hack_mult*t.hack),"(x",s.numeralWrapper.formatMultiplier(e.member.hack_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.hack)," Asc)",r.default.createElement("br",null),"St: x",s.numeralWrapper.formatMultiplier(e.member.str_mult*t.str),"(x",s.numeralWrapper.formatMultiplier(e.member.str_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.str)," Asc)",r.default.createElement("br",null),"Df: x",s.numeralWrapper.formatMultiplier(e.member.def_mult*t.def),"(x",s.numeralWrapper.formatMultiplier(e.member.def_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.def)," Asc)",r.default.createElement("br",null),"Dx: x",s.numeralWrapper.formatMultiplier(e.member.dex_mult*t.dex),"(x",s.numeralWrapper.formatMultiplier(e.member.dex_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.dex)," Asc)",r.default.createElement("br",null),"Ag: x",s.numeralWrapper.formatMultiplier(e.member.agi_mult*t.agi),"(x",s.numeralWrapper.formatMultiplier(e.member.agi_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.agi)," Asc)",r.default.createElement("br",null),"Ch: x",s.numeralWrapper.formatMultiplier(e.member.cha_mult*t.cha),"(x",s.numeralWrapper.formatMultiplier(e.member.cha_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.cha)," Asc)"),r.default.createElement("pre",null,"Hacking: ",o.formatNumber(e.member.hack,0)," (",s.numeralWrapper.formatExp(e.member.hack_exp)," exp)",r.default.createElement("br",null),"Strength: ",o.formatNumber(e.member.str,0)," (",s.numeralWrapper.formatExp(e.member.str_exp)," exp)",r.default.createElement("br",null),"Defense: ",o.formatNumber(e.member.def,0)," (",s.numeralWrapper.formatExp(e.member.def_exp)," exp)",r.default.createElement("br",null),"Dexterity: ",o.formatNumber(e.member.dex,0)," (",s.numeralWrapper.formatExp(e.member.dex_exp)," exp)",r.default.createElement("br",null),"Agility: ",o.formatNumber(e.member.agi,0)," (",s.numeralWrapper.formatExp(e.member.agi_exp)," exp)",r.default.createElement("br",null),"Charisma: ",o.formatNumber(e.member.cha,0)," (",s.numeralWrapper.formatExp(e.member.cha_exp)," exp)",r.default.createElement("br",null)),r.default.createElement("br",null),e.member.canAscend()&&r.default.createElement(r.default.Fragment,null,r.default.createElement("button",{className:"accordion-button noselect",onClick:function(){const t=`gang-management-ascend-member ${e.member.name}`;l.createPopup(t,c.AscensionPopup,{member:e.member,gang:e.gang,popupId:t,onAscend:e.onAscend})}},"Ascend"),r.default.createElement("div",{className:"help-tip noselect",style:{marginTop:"5px"},onClick:function(){i.dialogBoxCreate(r.default.createElement(r.default.Fragment,null,"Ascending a Gang Member resets the member's progress and stats in exchange for a permanent boost to their stat multipliers.",r.default.createElement("br",null),r.default.createElement("br",null),"The additional stat multiplier that the Gang Member gains upon ascension is based on the amount of exp they have.",r.default.createElement("br",null),r.default.createElement("br",null),"Upon ascension, the member will lose all of its non-Augmentation Equipment and your gang will lose respect equal to the total respect earned by the member."))}},"?")))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberAccordionContent=void 0;const o=i(n(0)),s=n(1029),l=n(1027),c=n(1026);t.GangMemberAccordionContent=function(e){const t=o.useState(!1)[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"gang-member-info-div tooltip"},o.default.createElement(s.GangMemberStats,{onAscend:()=>t(e=>!e),gang:e.gang,member:e.member})),o.default.createElement("div",{className:"gang-member-info-div"},o.default.createElement(l.TaskSelector,{onTaskChange:()=>t(e=>!e),gang:e.gang,member:e.member})),o.default.createElement("div",{className:"gang-member-info-div"},o.default.createElement(c.TaskDescription,{member:e.member})))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberAccordion=void 0;const r=a(n(0)),i=n(167),o=n(1030);t.GangMemberAccordion=function(e){return r.default.createElement(i.Accordion,{panelInitiallyOpened:!0,headerContent:r.default.createElement(r.default.Fragment,null,e.member.name),panelContent:r.default.createElement(o.GangMemberAccordionContent,{gang:e.gang,member:e.member})})}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberUpgradePopup=void 0;const o=i(n(0)),s=n(20),l=n(3),c=n(183),u=n(31),m=n(79),p=n(506);function d(e){const t=o.useState(!1)[1];function n(t,n){return Object.keys(c.GangMemberUpgrades).filter(a=>{const r=c.GangMemberUpgrades[a];return!e.player.money.lt(e.gang.getUpgradeCost(r))&&(r.type===n&&!t.includes(a))}).map(e=>c.GangMemberUpgrades[e])}const a=n(e.member.upgrades,p.UpgradeType.Weapon),r=n(e.member.upgrades,p.UpgradeType.Armor),i=n(e.member.upgrades,p.UpgradeType.Vehicle),l=n(e.member.upgrades,p.UpgradeType.Rootkit),m=n(e.member.augmentations,p.UpgradeType.Augmentation);function d(e){const t=c.GangMemberUpgrades[e];return o.default.createElement("div",{key:e,className:"gang-owned-upgrade tooltip"},t.name,o.default.createElement("span",{className:"tooltiptext",dangerouslySetInnerHTML:{__html:t.desc}}))}function h(n,a=!1){return o.default.createElement("a",{key:n.name,className:"a-link-button tooltip",style:{margin:"2px",padding:"2px",display:"block",fontSize:"11px"},onClick:function(){e.member.buyUpgrade(n,e.player,e.gang),t(e=>!e)}},n.name," - ",u.Money(e.gang.getUpgradeCost(n)),o.default.createElement("span",{className:a?"tooltiptextleft":"tooltiptext",dangerouslySetInnerHTML:{__html:n.desc}}))}const _=e.member.calculateAscensionMult(e.member.hack_asc_points),g=e.member.calculateAscensionMult(e.member.str_asc_points),f=e.member.calculateAscensionMult(e.member.def_asc_points),y=e.member.calculateAscensionMult(e.member.dex_asc_points),b=e.member.calculateAscensionMult(e.member.agi_asc_points),E=e.member.calculateAscensionMult(e.member.cha_asc_points);return o.default.createElement("div",{style:{border:"1px solid white"}},o.default.createElement("h1",null,e.member.name,"(",e.member.task,")"),o.default.createElement("pre",{style:{fontSize:"14px",display:"inline-block",width:"20%"}},"Hack: ",e.member.hack," (x",s.formatNumber(e.member.hack_mult*_,2),")",o.default.createElement("br",null),"Str: ",e.member.str," (x",s.formatNumber(e.member.str_mult*g,2),")",o.default.createElement("br",null),"Def: ",e.member.def," (x",s.formatNumber(e.member.def_mult*f,2),")",o.default.createElement("br",null),"Dex: ",e.member.dex," (x",s.formatNumber(e.member.dex_mult*y,2),")",o.default.createElement("br",null),"Agi: ",e.member.agi," (x",s.formatNumber(e.member.agi_mult*b,2),")",o.default.createElement("br",null),"Cha: ",e.member.cha," (x",s.formatNumber(e.member.cha_mult*E,2),")"),o.default.createElement("div",{className:"gang-owned-upgrades-div noselect"},"Purchased Upgrades: ",e.member.upgrades.map(e=>d(e)),e.member.augmentations.map(e=>d(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Weapons"),a.map(e=>h(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Armor"),r.map(e=>h(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Vehicles"),i.map(e=>h(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Rootkits"),l.map(e=>h(e,!0))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Augmentations"),m.map(e=>h(e,!0))))}t.GangMemberUpgradePopup=function(e){const t=o.useState(!1)[1],[n,a]=o.useState("");function r(t){27===t.keyCode&&m.removePopup(e.popupId)}return o.useEffect(()=>{window.addEventListener("keydown",r);const e=setInterval(()=>t(e=>!e),1e3);return()=>{clearInterval(e),window.removeEventListener("keydown",r)}},[]),o.default.createElement(o.default.Fragment,null,o.default.createElement("input",{className:"text-input noselect",value:n,placeholder:"Filter gang member",onChange:e=>a(e.target.value)}),o.default.createElement("p",{className:"tooltip",style:{marginLeft:"6px",display:"inline-block"}},"Discount: -",l.numeralWrapper.formatPercentage(1-1/e.gang.getDiscount()),o.default.createElement("span",{className:"tooltiptext noselect"},"You get a discount on equipment and upgrades based on your gang's respect and power. More respect and power leads to more discounts.")),e.gang.members.map(t=>o.default.createElement(d,{key:t.name,player:e.player,gang:e.gang,member:t})))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberList=void 0;const o=i(n(0)),s=n(1032),l=n(1031),c=n(79),u=n(1025);t.GangMemberList=function(e){const[t,n]=o.useState(""),a=o.useState(!1)[1],r=e.gang.members.filter(e=>e.name.indexOf(t)>-1||e.task.indexOf(t)>-1);return o.default.createElement(o.default.Fragment,null,o.default.createElement(u.RecruitButton,{onRecruit:()=>a(e=>!e),gang:e.gang}),o.default.createElement("br",null),o.default.createElement("input",{className:"text-input noselect",placeholder:"Filter gang member",style:{margin:"5px",padding:"5px"},value:t,onChange:function(e){n(e.target.value)}}),o.default.createElement("a",{className:"a-link-button",style:{display:"inline-block"},onClick:function(){c.createPopup("gang-upgrade-popup",s.GangMemberUpgradePopup,{gang:e.gang,player:e.player,popupId:"gang-upgrade-popup"})}},"Manage Equipment"),o.default.createElement("ul",null,r.map(t=>o.default.createElement("li",{key:t.name},o.default.createElement(l.GangMemberAccordion,{gang:e.gang,member:t})))))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BonusTime=void 0;const o=i(n(0)),s=n(11),l=n(20);t.BonusTime=function(e){const t=1e3/s.CONSTANTS._idleSpeed;if(e.gang.storedCycles/t*1e3<=5e3)return o.createElement(o.Fragment,null);const n=e.gang.storedCycles/t*1e3;return o.createElement(o.Fragment,null,o.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Bonus time: ",l.convertTimeMsToTimeElapsedString(n),o.createElement("span",{className:"tooltiptext noselect"},"You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by the browser). Bonus time makes the Gang mechanic progress faster, up to 5x the normal speed.")),o.createElement("br",null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GangStats=void 0;const r=a(n(0)),i=n(16),o=n(20),s=n(3),l=n(125),c=n(67),u=n(93),m=n(1034);t.GangStats=function(e){const t=100*u.AllGangs[e.gang.facName].territory;let n;return n=t<=0?o.formatNumber(0,2):t>=100?o.formatNumber(100,2):o.formatNumber(t,2),r.default.createElement(r.default.Fragment,null,r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Respect: ",s.numeralWrapper.formatRespect(e.gang.respect)," (",s.numeralWrapper.formatRespect(5*e.gang.respectGainRate)," / sec)",r.default.createElement("span",{className:"tooltiptext"},"Represents the amount of respect your gang has from other gangs and criminal organizations. Your respect affects the amount of money your gang members will earn, and also determines how much reputation you are earning with your gang's corresponding Faction.")),r.default.createElement("br",null),r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Wanted Level: ",s.numeralWrapper.formatWanted(e.gang.wanted)," (",s.numeralWrapper.formatWanted(5*e.gang.wantedGainRate)," / sec)",r.default.createElement("span",{className:"tooltiptext"},"Represents how much the gang is wanted by law enforcement. The higher your gang's wanted level, the harder it will be for your gang members to make money and earn respect. Note that the minimum wanted level is 1.")),r.default.createElement("br",null),r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Wanted Level Penalty: -",o.formatNumber(100*(1-e.gang.getWantedPenalty()),2),"%",r.default.createElement("span",{className:"tooltiptext"},"Penalty for respect and money gain rates due to Wanted Level")),r.default.createElement("br",null),r.default.createElement("div",null,r.default.createElement("p",{style:{display:"inline-block"}},"Money gain rate: ",l.MoneyRate(5*e.gang.moneyGainRate))),r.default.createElement("br",null),r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Territory: ",n,"%",r.default.createElement("span",{className:"tooltiptext"},"The percentage of total territory your Gang controls")),r.default.createElement("br",null),r.default.createElement("p",{style:{display:"inline-block"}},"Faction reputation: ",c.Reputation(i.Factions[e.gang.facName].playerReputation)),r.default.createElement("br",null),r.default.createElement(m.BonusTime,{gang:e.gang}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagementSubpage=void 0;const r=a(n(0)),i=n(1035),o=n(1033);t.ManagementSubpage=function(e){return r.default.createElement("div",{style:{display:"block"}},r.default.createElement("p",{className:"noselect",style:{width:"70%"}},"This page is used to manage your gang members and get an overview of your gang's stats.",r.default.createElement("br",null),r.default.createElement("br",null),"If a gang member is not earning much money or respect, the task that you have assigned to that member might be too difficult. Consider training that member's stats or choosing an easier task. The tasks closer to the top of the dropdown list are generally easier. Alternatively, the gang member's low production might be due to the fact that your wanted level is too high. Consider assigning a few members to the '",e.gang.isHackingGang?"Ethical Hacking":"Vigilante Justice","' task to lower your wanted level.",r.default.createElement("br",null),r.default.createElement("br",null),"Installing Augmentations does NOT reset your progress with your Gang. Furthermore, after installing Augmentations, you will automatically be a member of whatever Faction you created your gang with.",r.default.createElement("br",null),r.default.createElement("br",null),"You can also manage your gang programmatically through Netscript using the Gang API"),r.default.createElement("br",null),r.default.createElement(i.GangStats,{gang:e.gang}),r.default.createElement("br",null),r.default.createElement(o.GangMemberList,{gang:e.gang,player:e.player}))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Root=void 0;const o=i(n(0)),s=n(1036),l=n(1023),c=n(80);t.Root=function(e){const[t,n]=o.useState(!0),a=o.useState(!1)[1];return o.useEffect(()=>{const e=setInterval(()=>a(e=>!e),1e3);return()=>clearInterval(e)},[]),o.default.createElement(o.default.Fragment,null,o.default.createElement("a",{className:"a-link-button",style:{display:"inline-block"},onClick:function(){e.engine.loadFactionContent(),c.displayFactionContent(e.gang.facName)}},"Back"),o.default.createElement("a",{className:t?"a-link-button-inactive":"a-link-button",style:{display:"inline-block"},onClick:()=>n(!0)},"Gang Management"),o.default.createElement("a",{className:t?"a-link-button":"a-link-button-inactive",style:{display:"inline-block"},onClick:()=>n(!1)},"Gang Territory"),t?o.default.createElement(s.ManagementSubpage,{gang:e.gang,player:e.player}):o.default.createElement(l.TerritorySubpage,{gang:e.gang}))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PurchasedAugmentations=void 0;const o=i(n(0)),s=n(14),l=n(4),c=n(1),u=n(667);t.PurchasedAugmentations=function(){const e=[];let t=-1;for(let e=c.Player.queuedAugmentations.length-1;e>=0;e--)if(c.Player.queuedAugmentations[e].name===l.AugmentationNames.NeuroFluxGovernor){t=e;break}for(let n=0;n
Price Forecast indicates the probability the stock has of increasing or decreasing. A '+' forecast means the stock has a higher chance of increasing than decreasing, and a '-' means the opposite. The number of '+/-' symbols is used to illustrate the magnitude of these probabilities. For example, '+++' means that the stock has a significantly higher chance of increasing than decreasing, while '+' means that the stock only has a slightly higher chance of increasing than decreasing.
Volatility represents the maximum percentage by which a stock's price can change every tick (a tick occurs every few seconds while the game is running).
A stock's price forecast can change over time. This is also affected by volatility. The more volatile a stock is, the more its price forecast will change.")}purchaseWseAccount(){if(this.props.p.hasWseAccount)return;if(!this.props.p.canAfford(l.CONSTANTS.WSEAccountCost))return;this.props.p.hasWseAccount=!0,this.props.initStockMarket(),this.props.p.loseMoney(l.CONSTANTS.WSEAccountCost),this.props.rerender();const e=document.getElementById("world-menu-header");e instanceof HTMLElement&&(e.click(),e.click())}purchaseTixApiAccess(){this.props.p.hasTixApiAccess||this.props.p.canAfford(l.CONSTANTS.TIXAPICost)&&(this.props.p.hasTixApiAccess=!0,this.props.p.loseMoney(l.CONSTANTS.TIXAPICost),this.props.rerender())}purchase4SMarketData(){this.props.p.has4SData||this.props.p.canAfford(s.getStockMarket4SDataCost())&&(this.props.p.has4SData=!0,this.props.p.loseMoney(s.getStockMarket4SDataCost()),this.props.rerender())}purchase4SMarketDataTixApiAccess(){this.props.p.has4SDataTixApi||this.props.p.canAfford(s.getStockMarket4STixApiCost())&&(this.props.p.has4SDataTixApi=!0,this.props.p.loseMoney(s.getStockMarket4STixApiCost()),this.props.rerender())}renderPurchaseWseAccountButton(){if(this.props.p.hasWseAccount)return o.createElement(u.StdButtonPurchased,{text:"WSE Account - Purchased"});{const e=l.CONSTANTS.WSEAccountCost;return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e),onClick:this.purchaseWseAccount,text:o.createElement(o.Fragment,null,"Buy WSE Account - ",m.Money(e))})}}renderPurchaseTixApiAccessButton(){if(this.props.p.hasTixApiAccess)return o.createElement(u.StdButtonPurchased,{text:"TIX API Access - Purchased"});{const e=l.CONSTANTS.TIXAPICost;return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e)||!this.props.p.hasWseAccount,onClick:this.purchaseTixApiAccess,style:d,text:o.createElement(o.Fragment,null,"Buy Trade Information eXchange (TIX) API Access - ",m.Money(e))})}}renderPurchase4SMarketDataButton(){if(this.props.p.has4SData)return o.createElement(u.StdButtonPurchased,{text:"4S Market Data - Purchased",tooltip:"Lets you view additional pricing and volatility information about stocks"});{const e=s.getStockMarket4SDataCost();return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e)||!this.props.p.hasWseAccount,onClick:this.purchase4SMarketData,text:o.createElement(o.Fragment,null,"Buy 4S Market Data Access - ",m.Money(e)),tooltip:"Lets you view additional pricing and volatility information about stocks"})}}renderPurchase4SMarketDataTixApiAccessButton(){if(this.props.p.hasTixApiAccess){if(this.props.p.has4SDataTixApi)return o.createElement(u.StdButtonPurchased,{text:"4S Market Data TIX API - Purchased",tooltip:"Let you access 4S Market Data through Netscript"});{const e=s.getStockMarket4STixApiCost();return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e),onClick:this.purchase4SMarketDataTixApiAccess,text:o.createElement(o.Fragment,null,"Buy 4S Market Data TIX API Access - ",m.Money(e)),tooltip:"Let you access 4S Market Data through Netscript"})}}return o.createElement(c.StdButton,{disabled:!0,text:"Buy 4S Market Data TIX API Access",tooltip:"Requires TIX API Access"})}render(){return o.createElement("div",{className:"stock-market-info-and-purchases"},o.createElement("p",null,"Welcome to the World Stock Exchange (WSE)!"),o.createElement("button",{className:"std-button"},o.createElement("a",{href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/stockmarket.html",target:"_blank"},"Investopedia")),o.createElement("br",null),o.createElement("p",null,"To begin trading, you must first purchase an account:"),this.renderPurchaseWseAccountButton(),o.createElement("h2",null,"Trade Information eXchange (TIX) API"),o.createElement("p",null,"TIX, short for Trade Information eXchange, is the communications protocol used by the WSE. Purchasing access to the TIX API lets you write code to create your own algorithmic/automated trading strategies."),this.renderPurchaseTixApiAccessButton(),o.createElement("h2",null,"Four Sigma (4S) Market Data Feed"),o.createElement("p",null,"Four Sigma's (4S) Market Data Feed provides information about stocks that will help your trading strategies."),this.renderPurchase4SMarketDataButton(),o.createElement("button",{className:"help-tip-big",onClick:this.handleClick4SMarketDataHelpTip},"?"),this.renderPurchase4SMarketDataTixApiAccessButton(),o.createElement("p",null,"Commission Fees: Every transaction you make has a ",m.Money(l.CONSTANTS.StockMarketCommission)," commission fee."),o.createElement("br",null),o.createElement("p",null,"WARNING: When you reset after installing Augmentations, the Stock Market is reset. You will retain your WSE Account, access to the TIX API, and 4S Market Data access. However, all of your stock positions are lost, so make sure to sell your stocks before installing Augmentations!"))}}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.StockMarketRoot=void 0;const o=i(n(0)),s=n(1071),l=n(1070);t.StockMarketRoot=class extends o.Component{constructor(e){super(e),this.state={rerenderFlag:!1},this.rerender=this.rerender.bind(this)}rerender(){this.setState(e=>({rerenderFlag:!e.rerenderFlag}))}render(){return o.createElement("div",null,o.createElement(s.InfoAndPurchases,{initStockMarket:this.props.initStockMarket,p:this.props.p,rerender:this.rerender}),this.props.p.hasWseAccount&&o.createElement(l.StockTickers,{buyStockLong:this.props.buyStockLong,buyStockShort:this.props.buyStockShort,cancelOrder:this.props.cancelOrder,eventEmitterForReset:this.props.eventEmitterForReset,p:this.props.p,placeOrder:this.props.placeOrder,sellStockLong:this.props.sellStockLong,sellStockShort:this.props.sellStockShort,stockMarket:this.props.stockMarket}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitStockMetadata=void 0;const a=n(299),r=n(47);t.InitStockMetadata=[{b:!0,initPrice:{max:28e3,min:17e3},marketCap:24e11,mv:{divisor:100,max:50,min:40},name:r.LocationName.AevumECorp,otlkMag:19,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.AevumECorp]},{b:!0,initPrice:{max:34e3,min:24e3},marketCap:24e11,mv:{divisor:100,max:50,min:40},name:r.LocationName.Sector12MegaCorp,otlkMag:19,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12MegaCorp]},{b:!0,initPrice:{max:25e3,min:12e3},marketCap:16e11,mv:{divisor:100,max:80,min:70},name:r.LocationName.Sector12BladeIndustries,otlkMag:13,spreadPerc:{divisor:10,max:6,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12BladeIndustries]},{b:!0,initPrice:{max:25e3,min:1e4},marketCap:15e11,mv:{divisor:100,max:75,min:65},name:r.LocationName.AevumClarkeIncorporated,otlkMag:12,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.AevumClarkeIncorporated]},{b:!0,initPrice:{max:43e3,min:32e3},marketCap:18e11,mv:{divisor:100,max:70,min:60},name:r.LocationName.VolhavenOmniTekIncorporated,otlkMag:12,spreadPerc:{divisor:10,max:6,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.VolhavenOmniTekIncorporated]},{b:!0,initPrice:{max:8e4,min:5e4},marketCap:2e12,mv:{divisor:100,max:110,min:100},name:r.LocationName.Sector12FourSigma,otlkMag:17,spreadPerc:{divisor:10,max:10,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12FourSigma]},{b:!0,initPrice:{max:28e3,min:16e3},marketCap:19e11,mv:{divisor:100,max:85,min:75},name:r.LocationName.ChongqingKuaiGongInternational,otlkMag:10,spreadPerc:{divisor:10,max:7,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.ChongqingKuaiGongInternational]},{b:!0,initPrice:{max:36e3,min:29e3},marketCap:2e12,mv:{divisor:100,max:130,min:120},name:r.LocationName.AevumFulcrumTechnologies,otlkMag:16,spreadPerc:{divisor:10,max:10,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.AevumFulcrumTechnologies]},{b:!0,initPrice:{max:25e3,min:2e4},marketCap:12e11,mv:{divisor:100,max:90,min:80},name:r.LocationName.IshimaStormTechnologies,otlkMag:7,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.IshimaStormTechnologies]},{b:!0,initPrice:{max:19e3,min:6e3},marketCap:9e11,mv:{divisor:100,max:70,min:60},name:r.LocationName.NewTokyoDefComm,otlkMag:10,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.NewTokyoDefComm]},{b:!0,initPrice:{max:18e3,min:1e4},marketCap:825e9,mv:{divisor:100,max:65,min:55},name:r.LocationName.VolhavenHeliosLabs,otlkMag:9,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.VolhavenHeliosLabs]},{b:!0,initPrice:{max:14e3,min:8e3},marketCap:1e12,mv:{divisor:100,max:80,min:70},name:r.LocationName.NewTokyoVitaLife,otlkMag:7,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.NewTokyoVitaLife]},{b:!0,initPrice:{max:24e3,min:12e3},marketCap:8e11,mv:{divisor:100,max:70,min:60},name:r.LocationName.Sector12IcarusMicrosystems,otlkMag:7.5,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.Sector12IcarusMicrosystems]},{b:!0,initPrice:{max:29e3,min:16e3},marketCap:9e11,mv:{divisor:100,max:60,min:50},name:r.LocationName.Sector12UniversalEnergy,otlkMag:10,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.Sector12UniversalEnergy]},{b:!0,initPrice:{max:17e3,min:8e3},marketCap:64e10,mv:{divisor:100,max:65,min:55},name:r.LocationName.AevumAeroCorp,otlkMag:6,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.AevumAeroCorp]},{b:!0,initPrice:{max:15e3,min:6e3},marketCap:6e11,mv:{divisor:100,max:75,min:65},name:r.LocationName.VolhavenOmniaCybersystems,otlkMag:4.5,spreadPerc:{divisor:10,max:11,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.VolhavenOmniaCybersystems]},{b:!0,initPrice:{max:28e3,min:14e3},marketCap:705e9,mv:{divisor:100,max:80,min:70},name:r.LocationName.ChongqingSolarisSpaceSystems,otlkMag:8.5,spreadPerc:{divisor:10,max:12,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.ChongqingSolarisSpaceSystems]},{b:!0,initPrice:{max:3e4,min:12e3},marketCap:695e9,mv:{divisor:100,max:65,min:55},name:r.LocationName.NewTokyoGlobalPharmaceuticals,otlkMag:10.5,spreadPerc:{divisor:10,max:10,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.NewTokyoGlobalPharmaceuticals]},{b:!0,initPrice:{max:27e3,min:15e3},marketCap:6e11,mv:{divisor:100,max:80,min:70},name:r.LocationName.IshimaNovaMedical,otlkMag:5,spreadPerc:{divisor:10,max:11,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.IshimaNovaMedical]},{b:!0,initPrice:{max:8500,min:4e3},marketCap:45e10,mv:{divisor:100,max:260,min:240},name:r.LocationName.AevumWatchdogSecurity,otlkMag:1.5,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:54e3,min:12e3},symbol:a.StockSymbols[r.LocationName.AevumWatchdogSecurity]},{b:!0,initPrice:{max:8e3,min:4500},marketCap:3e11,mv:{divisor:100,max:135,min:115},name:r.LocationName.VolhavenLexoCorp,otlkMag:6,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.VolhavenLexoCorp]},{b:!0,initPrice:{max:7e3,min:2e3},marketCap:18e10,mv:{divisor:100,max:70,min:50},name:r.LocationName.AevumRhoConstruction,otlkMag:1,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:126e3,min:6e4},symbol:a.StockSymbols[r.LocationName.AevumRhoConstruction]},{b:!0,initPrice:{max:8500,min:4e3},marketCap:24e10,mv:{divisor:100,max:205,min:175},name:r.LocationName.Sector12AlphaEnterprises,otlkMag:10,spreadPerc:{divisor:10,max:16,min:5},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12AlphaEnterprises]},{b:!0,initPrice:{max:8e3,min:3e3},marketCap:2e11,mv:{divisor:100,max:170,min:150},name:r.LocationName.VolhavenSysCoreSecurities,otlkMag:3,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:9e4,min:15e3},symbol:a.StockSymbols[r.LocationName.VolhavenSysCoreSecurities]},{b:!0,initPrice:{max:6e3,min:1e3},marketCap:185e9,mv:{divisor:100,max:100,min:80},name:r.LocationName.VolhavenCompuTek,otlkMag:4,spreadPerc:{divisor:10,max:12,min:4},shareTxForMovement:{max:126e3,min:6e4},symbol:a.StockSymbols[r.LocationName.VolhavenCompuTek]},{b:!0,initPrice:{max:5e3,min:1e3},marketCap:58e9,mv:{divisor:100,max:400,min:200},name:r.LocationName.AevumNetLinkTechnologies,otlkMag:1,spreadPerc:{divisor:10,max:20,min:5},shareTxForMovement:{max:54e3,min:18e3},symbol:a.StockSymbols[r.LocationName.AevumNetLinkTechnologies]},{b:!0,initPrice:{max:8e3,min:1e3},marketCap:6e10,mv:{divisor:100,max:110,min:90},name:r.LocationName.IshimaOmegaSoftware,otlkMag:.5,spreadPerc:{divisor:10,max:13,min:4},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.IshimaOmegaSoftware]},{b:!1,initPrice:{max:4500,min:500},marketCap:45e9,mv:{divisor:100,max:80,min:70},name:r.LocationName.Sector12FoodNStuff,otlkMag:1,spreadPerc:{divisor:10,max:10,min:6},shareTxForMovement:{max:18e4,min:6e4},symbol:a.StockSymbols[r.LocationName.Sector12FoodNStuff]},{b:!0,initPrice:{max:3500,min:1500},marketCap:3e10,mv:{divisor:100,max:275,min:100},name:"Sigma Cosmetics",otlkMag:0,spreadPerc:{divisor:10,max:14,min:6},shareTxForMovement:{max:7e4,min:2e4},symbol:a.StockSymbols["Sigma Cosmetics"]},{b:!0,initPrice:{max:1500,min:250},marketCap:42e9,mv:{divisor:100,max:350,min:200},name:"Joes Guns",otlkMag:1,spreadPerc:{divisor:10,max:14,min:6},shareTxForMovement:{max:52e3,min:15e3},symbol:a.StockSymbols["Joes Guns"]},{b:!0,initPrice:{max:1500,min:250},marketCap:1e11,mv:{divisor:100,max:175,min:120},name:"Catalyst Ventures",otlkMag:13.5,spreadPerc:{divisor:10,max:14,min:5},shareTxForMovement:{max:72e3,min:24e3},symbol:a.StockSymbols["Catalyst Ventures"]},{b:!0,initPrice:{max:3e4,min:15e3},marketCap:36e10,mv:{divisor:100,max:80,min:70},name:"Microdyne Technologies",otlkMag:8,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:216e3,min:9e4},symbol:a.StockSymbols["Microdyne Technologies"]},{b:!0,initPrice:{max:24e3,min:12e3},marketCap:42e10,mv:{divisor:100,max:70,min:50},name:"Titan Laboratories",otlkMag:11,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:216e3,min:9e4},symbol:a.StockSymbols["Titan Laboratories"]}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TicksPerCycle=void 0,t.TicksPerCycle=75},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.processOrders=void 0;const o=n(182),s=n(199),l=n(115),c=n(103),u=n(3),m=n(31),p=n(12),d=i(n(0));function h(e,t){const n=t.symbolToStockMap[e.stockSymbol];if(!(n instanceof s.Stock))return void console.error(`Could not find stock for this order: ${e.stockSymbol}`);const a=t.stockMarket.Orders[n.symbol],r={rerenderFn:t.rerenderFn,suppressDialog:!0};let i=!0,h=!1;switch(e.type){case l.OrderTypes.LimitBuy:case l.OrderTypes.StopBuy:h=!0,e.pos===c.PositionTypes.Long?i=o.buyStock(n,e.shares,null,r)&&i:e.pos===c.PositionTypes.Short&&(i=o.shortStock(n,e.shares,null,r)&&i);break;case l.OrderTypes.LimitSell:case l.OrderTypes.StopSell:e.pos===c.PositionTypes.Long?i=o.sellStock(n,e.shares,null,r)&&i:e.pos===c.PositionTypes.Short&&(i=o.sellShort(n,e.shares,null,r)&&i);break;default:return void console.warn(`Invalid order type: ${e.type}`)}const _=e.pos===c.PositionTypes.Long?"Long":"Short";if(i){for(let r=0;r
")}getType(){switch(this.type){case a.UpgradeType.Weapon:return"Weapon";case a.UpgradeType.Armor:return"Armor";case a.UpgradeType.Vehicle:return"Vehicle";case a.UpgradeType.Rootkit:return"Rootkit";case a.UpgradeType.Augmentation:return"Augmentation";default:return""}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GangMember=void 0;const a=n(702),r=n(300),i=n(183),o=n(93),s=n(27);class l{constructor(e=""){this.task="Unassigned",this.earnedRespect=0,this.hack=1,this.str=1,this.def=1,this.dex=1,this.agi=1,this.cha=1,this.hack_exp=0,this.str_exp=0,this.def_exp=0,this.dex_exp=0,this.agi_exp=0,this.cha_exp=0,this.hack_mult=1,this.str_mult=1,this.def_mult=1,this.dex_mult=1,this.agi_mult=1,this.cha_mult=1,this.hack_asc_points=0,this.str_asc_points=0,this.def_asc_points=0,this.dex_asc_points=0,this.agi_asc_points=0,this.cha_asc_points=0,this.upgrades=[],this.augmentations=[],this.name=e}calculateSkill(e,t=1){return Math.max(Math.floor(t*(32*Math.log(e+534.5)-200)),1)}calculateAscensionMult(e){return Math.max(Math.pow(e/4e3,.7),1)}updateSkillLevels(){this.hack=this.calculateSkill(this.hack_exp,this.hack_mult*this.calculateAscensionMult(this.hack_asc_points)),this.str=this.calculateSkill(this.str_exp,this.str_mult*this.calculateAscensionMult(this.str_asc_points)),this.def=this.calculateSkill(this.def_exp,this.def_mult*this.calculateAscensionMult(this.def_asc_points)),this.dex=this.calculateSkill(this.dex_exp,this.dex_mult*this.calculateAscensionMult(this.dex_asc_points)),this.agi=this.calculateSkill(this.agi_exp,this.agi_mult*this.calculateAscensionMult(this.agi_asc_points)),this.cha=this.calculateSkill(this.cha_exp,this.cha_mult*this.calculateAscensionMult(this.cha_asc_points))}calculatePower(){return(this.hack+this.str+this.def+this.dex+this.agi+this.cha)/95}assignToTask(e){return r.GangMemberTasks.hasOwnProperty(e)?(this.task=e,!0):(this.task="Unassigned",!1)}unassignFromTask(){this.task="Unassigned"}getTask(){return this.task instanceof a.GangMemberTask&&(this.task=this.task.name),r.GangMemberTasks.hasOwnProperty(this.task)?r.GangMemberTasks[this.task]:r.GangMemberTasks.Unassigned}calculateRespectGain(e){const t=this.getTask();if(0===t.baseRespect)return 0;let n=t.hackWeight/100*this.hack+t.strWeight/100*this.str+t.defWeight/100*this.def+t.dexWeight/100*this.dex+t.agiWeight/100*this.agi+t.chaWeight/100*this.cha;if((n-=4*t.difficulty)<=0)return 0;const a=Math.max(.005,Math.pow(100*o.AllGangs[e.facName].territory,t.territory.respect)/100);if(isNaN(a)||a<=0)return 0;const r=e.getWantedPenalty();return 11*t.baseRespect*n*a*r}calculateWantedLevelGain(e){const t=this.getTask();if(0===t.baseWanted)return 0;let n=t.hackWeight/100*this.hack+t.strWeight/100*this.str+t.defWeight/100*this.def+t.dexWeight/100*this.dex+t.agiWeight/100*this.agi+t.chaWeight/100*this.cha;if((n-=3.5*t.difficulty)<=0)return 0;const a=Math.max(.005,Math.pow(100*o.AllGangs[e.facName].territory,t.territory.wanted)/100);if(isNaN(a)||a<=0)return 0;if(t.baseWanted<0)return.4*t.baseWanted*n*a;const r=7*t.baseWanted/Math.pow(3*n*a,.8);return Math.min(100,r)}calculateMoneyGain(e){const t=this.getTask();if(0===t.baseMoney)return 0;let n=t.hackWeight/100*this.hack+t.strWeight/100*this.str+t.defWeight/100*this.def+t.dexWeight/100*this.dex+t.agiWeight/100*this.agi+t.chaWeight/100*this.cha;if((n-=3.2*t.difficulty)<=0)return 0;const a=Math.max(.005,Math.pow(100*o.AllGangs[e.facName].territory,t.territory.money)/100);if(isNaN(a)||a<=0)return 0;const r=e.getWantedPenalty();return 5*t.baseMoney*n*a*r}expMult(){return{hack:(this.hack_mult-1)/4+1,str:(this.str_mult-1)/4+1,def:(this.def_mult-1)/4+1,dex:(this.dex_mult-1)/4+1,agi:(this.agi_mult-1)/4+1,cha:(this.cha_mult-1)/4+1}}gainExperience(e=1){const t=this.getTask();if(t===r.GangMemberTasks.Unassigned)return;const n=Math.pow(t.difficulty,.9)*e,a=this.expMult();this.hack_exp+=t.hackWeight/1500*n*a.hack,this.str_exp+=t.strWeight/1500*n*a.str,this.def_exp+=t.defWeight/1500*n*a.def,this.dex_exp+=t.dexWeight/1500*n*a.dex,this.agi_exp+=t.agiWeight/1500*n*a.agi,this.cha_exp+=t.chaWeight/1500*n*a.cha}recordEarnedRespect(e=1,t){this.earnedRespect+=this.calculateRespectGain(t)*e}getGainedAscensionPoints(){return{hack:Math.max(this.hack_exp-1e3,0),str:Math.max(this.str_exp-1e3,0),def:Math.max(this.def_exp-1e3,0),dex:Math.max(this.dex_exp-1e3,0),agi:Math.max(this.agi_exp-1e3,0),cha:Math.max(this.cha_exp-1e3,0)}}canAscend(){const e=this.getGainedAscensionPoints();return e.hack>0||e.str>0||e.def>0||e.dex>0||e.agi>0||e.cha>0}getAscensionResults(){const e=this.getGainedAscensionPoints();return{hack:this.calculateAscensionMult(this.hack_asc_points+e.hack)/this.calculateAscensionMult(this.hack_asc_points),str:this.calculateAscensionMult(this.str_asc_points+e.str)/this.calculateAscensionMult(this.str_asc_points),def:this.calculateAscensionMult(this.def_asc_points+e.def)/this.calculateAscensionMult(this.def_asc_points),dex:this.calculateAscensionMult(this.dex_asc_points+e.dex)/this.calculateAscensionMult(this.dex_asc_points),agi:this.calculateAscensionMult(this.agi_asc_points+e.agi)/this.calculateAscensionMult(this.agi_asc_points),cha:this.calculateAscensionMult(this.cha_asc_points+e.cha)/this.calculateAscensionMult(this.cha_asc_points)}}ascend(){const e=this.getAscensionResults(),t=this.getGainedAscensionPoints();this.hack_asc_points+=t.hack,this.str_asc_points+=t.str,this.def_asc_points+=t.def,this.dex_asc_points+=t.dex,this.agi_asc_points+=t.agi,this.cha_asc_points+=t.cha,this.upgrades.length=0,this.hack_mult=1,this.str_mult=1,this.def_mult=1,this.dex_mult=1,this.agi_mult=1,this.cha_mult=1;for(let e=0;e
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Ransomware",params:{baseRespect:5e-5,baseWanted:1e-4,baseMoney:1,hackWeight:100,difficulty:1}},{desc:"Assign this gang member to attempt phishing scams and attacks
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Phishing",params:{baseRespect:8e-5,baseWanted:.003,baseMoney:2.5,hackWeight:85,chaWeight:15,difficulty:3.5}},{desc:"Assign this gang member to attempt identity theft
Earns money - Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Identity Theft",params:{baseRespect:1e-4,baseWanted:.075,baseMoney:6,hackWeight:80,chaWeight:20,difficulty:5}},{desc:"Assign this gang member to carry out DDoS attacks
Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"DDoS Attacks",params:{baseRespect:4e-4,baseWanted:.2,hackWeight:100,difficulty:8}},{desc:"Assign this gang member to create and distribute malicious viruses
Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Plant Virus",params:{baseRespect:6e-4,baseWanted:.4,hackWeight:100,difficulty:12}},{desc:"Assign this gang member to commit financial fraud and digital counterfeiting
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Fraud & Counterfeiting",params:{baseRespect:4e-4,baseWanted:.3,baseMoney:15,hackWeight:80,chaWeight:20,difficulty:20}},{desc:"Assign this gang member to launder money
Earns money - Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Money Laundering",params:{baseRespect:.001,baseWanted:1.25,baseMoney:120,hackWeight:75,chaWeight:25,difficulty:25}},{desc:"Assign this gang member to commit acts of cyberterrorism
Greatly increases respect - Greatly increases wanted level",isCombat:!1,isHacking:!0,name:"Cyberterrorism",params:{baseRespect:.01,baseWanted:6,hackWeight:80,chaWeight:20,difficulty:36}},{desc:"Assign this gang member to be an ethical hacker for corporations
Earns money - Lowers wanted level",isCombat:!1,isHacking:!0,name:"Ethical Hacking",params:{baseWanted:-.001,baseMoney:1,hackWeight:90,chaWeight:10,difficulty:1}},{desc:"Assign this gang member to mug random people on the streets
Earns money - Slightly increases respect - Very slightly increases wanted level",isCombat:!0,isHacking:!1,name:"Mug People",params:{baseRespect:5e-5,baseWanted:5e-5,baseMoney:1.2,strWeight:25,defWeight:25,dexWeight:25,agiWeight:10,chaWeight:15,difficulty:1}},{desc:"Assign this gang member to sell drugs
Earns money - Slightly increases respect - Slightly increases wanted level - Scales slightly with territory",isCombat:!0,isHacking:!1,name:"Deal Drugs",params:{baseRespect:6e-5,baseWanted:.002,baseMoney:5,agiWeight:20,dexWeight:20,chaWeight:60,difficulty:3.5,territory:{money:1.2,respect:1,wanted:1.15}}},{desc:"Assign this gang member to extort civilians in your territory
Earns money - Slightly increases respect - Increases wanted - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Strongarm Civilians",params:{baseRespect:4e-5,baseWanted:.02,baseMoney:2.5,hackWeight:10,strWeight:25,defWeight:25,dexWeight:20,agiWeight:10,chaWeight:10,difficulty:5,territory:{money:1.6,respect:1.1,wanted:1.5}}},{desc:"Assign this gang member to run cons
Earns money - Increases respect - Increases wanted level",isCombat:!0,isHacking:!1,name:"Run a Con",params:{baseRespect:12e-5,baseWanted:.05,baseMoney:15,strWeight:5,defWeight:5,agiWeight:25,dexWeight:25,chaWeight:40,difficulty:14}},{desc:"Assign this gang member to commit armed robbery on stores, banks and armored cars
Earns money - Increases respect - Increases wanted level",isCombat:!0,isHacking:!1,name:"Armed Robbery",params:{baseRespect:14e-5,baseWanted:.1,baseMoney:38,hackWeight:20,strWeight:15,defWeight:15,agiWeight:10,dexWeight:20,chaWeight:20,difficulty:20}},{desc:"Assign this gang member to traffick illegal arms
Earns money - Increases respect - Increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Traffick Illegal Arms",params:{baseRespect:2e-4,baseWanted:.24,baseMoney:58,hackWeight:15,strWeight:20,defWeight:20,dexWeight:20,chaWeight:25,difficulty:32,territory:{money:1.4,respect:1.3,wanted:1.25}}},{desc:"Assign this gang member to threaten and black mail high-profile targets
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!0,isHacking:!1,name:"Threaten & Blackmail",params:{baseRespect:2e-4,baseWanted:.125,baseMoney:24,hackWeight:25,strWeight:25,dexWeight:25,chaWeight:25,difficulty:28}},{desc:"Assign this gang member to engage in human trafficking operations
Earns money - Increases respect - Increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Human Trafficking",params:{baseRespect:.004,baseWanted:1.25,baseMoney:120,hackWeight:30,strWeight:5,defWeight:5,dexWeight:30,chaWeight:30,difficulty:36,territory:{money:1.5,respect:1.5,wanted:1.6}}},{desc:"Assign this gang member to commit acts of terrorism
Greatly increases respect - Greatly increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Terrorism",params:{baseRespect:.01,baseWanted:6,hackWeight:20,strWeight:20,defWeight:20,dexWeight:20,chaWeight:20,difficulty:36,territory:{money:1,respect:2,wanted:2}}},{desc:"Assign this gang member to be a vigilante and protect the city from criminals
Decreases wanted level",isCombat:!0,isHacking:!0,name:"Vigilante Justice",params:{baseWanted:-.001,hackWeight:20,strWeight:20,defWeight:20,dexWeight:20,agiWeight:20,difficulty:1,territory:{money:1,respect:1,wanted:.9}}},{desc:"Assign this gang member to increase their combat stats (str, def, dex, agi)",isCombat:!0,isHacking:!0,name:"Train Combat",params:{strWeight:25,defWeight:25,dexWeight:25,agiWeight:25,difficulty:100}},{desc:"Assign this gang member to train their hacking skills",isCombat:!0,isHacking:!0,name:"Train Hacking",params:{hackWeight:100,difficulty:45}},{desc:"Assign this gang member to train their charisma",isCombat:!0,isHacking:!0,name:"Train Charisma",params:{chaWeight:100,difficulty:8}},{desc:"Assign this gang member to engage in territorial warfare with other gangs. Members assigned to this task will help increase your gang's territory and will defend your territory from being taken.",isCombat:!0,isHacking:!0,name:"Territory Warfare",params:{hackWeight:15,strWeight:20,defWeight:20,dexWeight:20,agiWeight:20,chaWeight:5,difficulty:5}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarkWebItem=void 0;t.DarkWebItem=class{constructor(e,t,n){this.program=e,this.price=t,this.description=n}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0;class a{constructor(e){this.parent=null,this.stopFlag=!1,this.vars={},e instanceof a&&(this.vars=Object.assign({},e.vars)),this.parent=e}lookup(e){let t=this;for(;t;){if(Object.prototype.hasOwnProperty.call(t.vars,e))return t;t=t.parent}return null}get(e){if(e in this.vars)return this.vars[e];throw new Error(`Undefined variable ${e}`)}set(e,t){const n=this.lookup(e);return null!==n?n.vars[e]=t:this.vars[e]=t}def(e,t){return this.vars[e]=t}}t.Environment=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidNumber=void 0,t.isValidNumber=function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serverMetadata=void 0;const a=n(47),r=n(139);t.serverMetadata=[{hackDifficulty:99,hostname:"ecorp",moneyAvailable:{max:7e10,min:3e10},networkLayer:15,numOpenPortsRequired:5,organizationName:a.LocationName.AevumECorp,requiredHackingSkill:{max:1400,min:1050},serverGrowth:99,specialName:a.LocationName.AevumECorp},{hackDifficulty:99,hostname:"megacorp",moneyAvailable:{max:6e10,min:4e10},networkLayer:15,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12MegaCorp,requiredHackingSkill:{max:1350,min:1100},serverGrowth:99,specialName:a.LocationName.Sector12MegaCorp},{hackDifficulty:{max:88,min:72},hostname:"b-and-a",moneyAvailable:{max:3e10,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.AevumBachmanAndAssociates,requiredHackingSkill:{max:1150,min:900},serverGrowth:{max:80,min:60},specialName:a.LocationName.AevumBachmanAndAssociates},{hackDifficulty:{max:97,min:88},hostname:"blade",literature:[r.LiteratureNames.BeyondMan],maxRamExponent:{max:9,min:5},moneyAvailable:{max:4e10,min:1e10},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12BladeIndustries,requiredHackingSkill:{max:1200,min:900},serverGrowth:{max:85,min:55},specialName:a.LocationName.Sector12BladeIndustries},{hackDifficulty:99,hostname:"nwo",literature:[r.LiteratureNames.TheHiddenWorld],moneyAvailable:{max:4e10,min:2e10},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenNWO,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:95,min:65},specialName:a.LocationName.VolhavenNWO},{hackDifficulty:{max:65,min:45},hostname:"clarkinc",literature:[r.LiteratureNames.BeyondMan,r.LiteratureNames.CostOfImmortality],moneyAvailable:{max:25e9,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.AevumClarkeIncorporated,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:75,min:45},specialName:a.LocationName.AevumClarkeIncorporated},{hackDifficulty:{max:99,min:90},hostname:"omnitek",literature:[r.LiteratureNames.CodedIntelligence,r.LiteratureNames.HistoryOfSynthoids],maxRamExponent:{max:9,min:7},moneyAvailable:{max:22e9,min:13e9},networkLayer:13,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenOmniTekIncorporated,requiredHackingSkill:{max:1100,min:900},serverGrowth:{max:99,min:95},specialName:a.LocationName.VolhavenOmniTekIncorporated},{hackDifficulty:{max:75,min:55},hostname:"4sigma",moneyAvailable:{max:25e9,min:15e9},networkLayer:13,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12FourSigma,requiredHackingSkill:{max:1250,min:900},serverGrowth:{max:99,min:75},specialName:a.LocationName.Sector12FourSigma},{hackDifficulty:{max:99,min:95},hostname:"kuai-gong",moneyAvailable:{max:3e10,min:2e10},networkLayer:13,numOpenPortsRequired:5,organizationName:a.LocationName.ChongqingKuaiGongInternational,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:99,min:90},specialName:a.LocationName.ChongqingKuaiGongInternational},{hackDifficulty:{max:97,min:83},hostname:"fulcrumtech",literature:[r.LiteratureNames.SimulatedReality],maxRamExponent:{max:11,min:7},moneyAvailable:{max:18e8,min:14e8},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.AevumFulcrumTechnologies,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:99,min:80},specialName:a.LocationName.AevumFulcrumTechnologies},{hackDifficulty:99,hostname:"fulcrumassets",moneyAvailable:1e6,networkLayer:15,numOpenPortsRequired:5,organizationName:a.LocationName.AevumFulcrumTechnologies,requiredHackingSkill:{max:1600,min:1100},serverGrowth:1,specialName:"Fulcrum Secret Technologies Server"},{hackDifficulty:{max:92,min:78},hostname:"stormtech",moneyAvailable:{max:12e8,min:1e9},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.IshimaStormTechnologies,requiredHackingSkill:{max:1075,min:875},serverGrowth:{max:92,min:68},specialName:a.LocationName.IshimaStormTechnologies},{hackDifficulty:{max:96,min:84},hostname:"defcomm",moneyAvailable:{max:95e7,min:8e8},networkLayer:9,numOpenPortsRequired:5,organizationName:a.LocationName.NewTokyoDefComm,requiredHackingSkill:{max:1050,min:850},serverGrowth:{max:73,min:47},specialName:a.LocationName.NewTokyoDefComm},{hackDifficulty:{max:90,min:70},hostname:"infocomm",moneyAvailable:{max:9e8,min:6e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"InfoComm",requiredHackingSkill:{max:950,min:875},serverGrowth:{max:75,min:35}},{hackDifficulty:{max:95,min:85},hostname:"helios",literature:[r.LiteratureNames.BeyondMan],maxRamExponent:{max:8,min:5},moneyAvailable:{max:75e7,min:55e7},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenHeliosLabs,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:80,min:70},specialName:a.LocationName.VolhavenHeliosLabs},{hackDifficulty:{max:90,min:80},hostname:"vitalife",literature:[r.LiteratureNames.AGreenTomorrow],maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.NewTokyoVitaLife,requiredHackingSkill:{max:900,min:775},serverGrowth:{max:80,min:60},specialName:a.LocationName.NewTokyoVitaLife},{hackDifficulty:{max:95,min:85},hostname:"icarus",moneyAvailable:{max:1e9,min:9e8},networkLayer:9,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12IcarusMicrosystems,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:95,min:85},specialName:a.LocationName.Sector12IcarusMicrosystems},{hackDifficulty:{max:90,min:80},hostname:"univ-energy",maxRamExponent:{max:7,min:4},moneyAvailable:{max:12e8,min:11e8},networkLayer:9,numOpenPortsRequired:4,organizationName:a.LocationName.Sector12UniversalEnergy,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:90,min:80},specialName:a.LocationName.Sector12UniversalEnergy},{hackDifficulty:{max:80,min:70},hostname:"titan-labs",literature:[r.LiteratureNames.CodedIntelligence],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:75e7},networkLayer:11,numOpenPortsRequired:5,organizationName:"Titan Laboratories",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:80,min:60}},{hackDifficulty:{max:75,min:65},hostname:"microdyne",literature:[r.LiteratureNames.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:11,numOpenPortsRequired:5,organizationName:"Microdyne Technologies",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:90,min:70}},{hackDifficulty:{max:80,min:70},hostname:"taiyang-digital",literature:[r.LiteratureNames.AGreenTomorrow,r.LiteratureNames.BrighterThanTheSun],moneyAvailable:{max:9e8,min:8e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"Taiyang Digital",requiredHackingSkill:{max:950,min:850},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:65,min:55},hostname:"galactic-cyber",moneyAvailable:{max:85e7,min:75e7},networkLayer:7,numOpenPortsRequired:5,organizationName:a.LocationName.AevumGalacticCybersystems,requiredHackingSkill:{max:875,min:825},serverGrowth:{max:90,min:70},specialName:a.LocationName.AevumGalacticCybersystems},{hackDifficulty:{max:90,min:80},hostname:"aerocorp",literature:[r.LiteratureNames.ManAndMachine],moneyAvailable:{max:12e8,min:1e9},networkLayer:7,numOpenPortsRequired:5,organizationName:a.LocationName.AevumAeroCorp,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:65,min:55},specialName:a.LocationName.AevumAeroCorp},{hackDifficulty:{max:95,min:85},hostname:"omnia",literature:[r.LiteratureNames.HistoryOfSynthoids],maxRamExponent:{max:6,min:4},moneyAvailable:{max:1e9,min:9e8},networkLayer:8,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenOmniaCybersystems,requiredHackingSkill:{max:950,min:850},serverGrowth:{max:70,min:60},specialName:a.LocationName.VolhavenOmniaCybersystems},{hackDifficulty:{max:65,min:55},hostname:"zb-def",literature:[r.LiteratureNames.SyntheticMuscles],moneyAvailable:{max:11e8,min:9e8},networkLayer:10,numOpenPortsRequired:4,organizationName:"ZB Defense Industries",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:75,min:65}},{hackDifficulty:{max:80,min:60},hostname:"applied-energetics",moneyAvailable:{max:1e9,min:7e8},networkLayer:11,numOpenPortsRequired:4,organizationName:"Applied Energetics",requiredHackingSkill:{max:850,min:775},serverGrowth:{max:75,min:70}},{hackDifficulty:{max:80,min:70},hostname:"solaris",literature:[r.LiteratureNames.AGreenTomorrow,r.LiteratureNames.TheFailedFrontier],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:7e8},networkLayer:9,numOpenPortsRequired:5,organizationName:a.LocationName.ChongqingSolarisSpaceSystems,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:80,min:70},specialName:a.LocationName.ChongqingSolarisSpaceSystems},{hackDifficulty:{max:85,min:75},hostname:"deltaone",moneyAvailable:{max:17e8,min:13e8},networkLayer:8,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12DeltaOne,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:70,min:50},specialName:a.LocationName.Sector12DeltaOne},{hackDifficulty:{max:85,min:75},hostname:"global-pharm",literature:[r.LiteratureNames.AGreenTomorrow],maxRamExponent:{max:6,min:3},moneyAvailable:{max:175e7,min:15e8},networkLayer:7,numOpenPortsRequired:4,organizationName:a.LocationName.NewTokyoGlobalPharmaceuticals,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:90,min:80},specialName:a.LocationName.NewTokyoGlobalPharmaceuticals},{hackDifficulty:{max:80,min:60},hostname:"nova-med",moneyAvailable:{max:125e7,min:11e8},networkLayer:10,numOpenPortsRequired:4,organizationName:a.LocationName.IshimaNovaMedical,requiredHackingSkill:{max:850,min:775},serverGrowth:{max:85,min:65},specialName:a.LocationName.IshimaNovaMedical},{hackDifficulty:{max:90,min:70},hostname:"zeus-med",moneyAvailable:{max:15e8,min:13e8},networkLayer:9,numOpenPortsRequired:5,organizationName:"Zeus Medical",requiredHackingSkill:{max:850,min:800},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:70},hostname:"unitalife",maxRamExponent:{max:6,min:4},moneyAvailable:{max:11e8,min:1e9},networkLayer:8,numOpenPortsRequired:4,organizationName:"UnitaLife Group",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:60},hostname:"lexo-corp",maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:6,numOpenPortsRequired:4,organizationName:a.LocationName.VolhavenLexoCorp,requiredHackingSkill:{max:750,min:650},serverGrowth:{max:65,min:55},specialName:a.LocationName.VolhavenLexoCorp},{hackDifficulty:{max:60,min:40},hostname:"rho-construction",maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:6,numOpenPortsRequired:3,organizationName:a.LocationName.AevumRhoConstruction,requiredHackingSkill:{max:525,min:475},serverGrowth:{max:60,min:40},specialName:a.LocationName.AevumRhoConstruction},{hackDifficulty:{max:70,min:50},hostname:"alpha-ent",literature:[r.LiteratureNames.Sector12Crime],maxRamExponent:{max:7,min:4},moneyAvailable:{max:75e7,min:6e8},networkLayer:6,numOpenPortsRequired:4,organizationName:a.LocationName.Sector12AlphaEnterprises,requiredHackingSkill:{max:600,min:500},serverGrowth:{max:60,min:50},specialName:a.LocationName.Sector12AlphaEnterprises},{hackDifficulty:{max:80,min:70},hostname:"aevum-police",maxRamExponent:{max:6,min:4},moneyAvailable:{max:4e8,min:2e8},networkLayer:6,numOpenPortsRequired:4,organizationName:a.LocationName.AevumPolice,requiredHackingSkill:{max:450,min:400},serverGrowth:{max:50,min:30},specialName:a.LocationName.AevumPolice},{hackDifficulty:{max:55,min:45},hostname:"rothman-uni",literature:[r.LiteratureNames.SecretSocieties,r.LiteratureNames.TheFailedFrontier,r.LiteratureNames.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:25e7,min:175e6},networkLayer:5,numOpenPortsRequired:3,organizationName:a.LocationName.Sector12RothmanUniversity,requiredHackingSkill:{max:430,min:370},serverGrowth:{max:45,min:35},specialName:a.LocationName.Sector12RothmanUniversity},{hackDifficulty:{max:85,min:65},hostname:"zb-institute",maxRamExponent:{max:7,min:4},moneyAvailable:{max:11e8,min:8e8},networkLayer:5,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenZBInstituteOfTechnology,requiredHackingSkill:{max:775,min:725},serverGrowth:{max:85,min:75},specialName:a.LocationName.VolhavenZBInstituteOfTechnology},{hackDifficulty:{max:65,min:45},hostname:"summit-uni",literature:[r.LiteratureNames.SecretSocieties,r.LiteratureNames.TheFailedFrontier,r.LiteratureNames.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:35e7,min:2e8},networkLayer:5,numOpenPortsRequired:3,organizationName:a.LocationName.AevumSummitUniversity,requiredHackingSkill:{max:475,min:425},serverGrowth:{max:60,min:40},specialName:a.LocationName.AevumSummitUniversity},{hackDifficulty:{max:80,min:60},hostname:"syscore",moneyAvailable:{max:6e8,min:4e8},networkLayer:5,numOpenPortsRequired:4,organizationName:a.LocationName.VolhavenSysCoreSecurities,requiredHackingSkill:{max:650,min:550},serverGrowth:{max:70,min:60},specialName:a.LocationName.VolhavenSysCoreSecurities},{hackDifficulty:{max:70,min:60},hostname:"catalyst",literature:[r.LiteratureNames.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:55e7,min:3e8},networkLayer:5,numOpenPortsRequired:3,organizationName:"Catalyst Ventures",requiredHackingSkill:{max:450,min:400},serverGrowth:{max:55,min:25}},{hackDifficulty:{max:45,min:35},hostname:"the-hub",maxRamExponent:{max:6,min:3},moneyAvailable:{max:2e8,min:15e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"The Hub",requiredHackingSkill:{max:325,min:275},serverGrowth:{max:55,min:45}},{hackDifficulty:{max:65,min:55},hostname:"comptek",literature:[r.LiteratureNames.ManAndMachine],moneyAvailable:{max:25e7,min:22e7},networkLayer:4,numOpenPortsRequired:3,organizationName:a.LocationName.VolhavenCompuTek,requiredHackingSkill:{max:400,min:300},serverGrowth:{max:65,min:45},specialName:a.LocationName.VolhavenCompuTek},{hackDifficulty:{max:80,min:60},hostname:"netlink",literature:[r.LiteratureNames.SimulatedReality],maxRamExponent:{max:7,min:4},moneyAvailable:275e6,networkLayer:4,numOpenPortsRequired:3,organizationName:a.LocationName.AevumNetLinkTechnologies,requiredHackingSkill:{max:425,min:375},serverGrowth:{max:75,min:45},specialName:a.LocationName.AevumNetLinkTechnologies},{hackDifficulty:{max:65,min:35},hostname:"johnson-ortho",moneyAvailable:{max:85e6,min:7e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Johnson Orthopedics",requiredHackingSkill:{max:300,min:250},serverGrowth:{max:65,min:35}},{hackDifficulty:1,hostname:"n00dles",literature:[],maxRamExponent:2,moneyAvailable:7e4,networkLayer:1,numOpenPortsRequired:0,organizationName:a.LocationName.NewTokyoNoodleBar,requiredHackingSkill:1,serverGrowth:3e3,specialName:a.LocationName.NewTokyoNoodleBar},{hackDifficulty:10,hostname:"foodnstuff",literature:[r.LiteratureNames.Sector12Crime],maxRamExponent:4,moneyAvailable:2e6,networkLayer:1,numOpenPortsRequired:0,organizationName:a.LocationName.Sector12FoodNStuff,requiredHackingSkill:1,serverGrowth:5,specialName:a.LocationName.Sector12FoodNStuff},{hackDifficulty:10,hostname:"sigma-cosmetics",maxRamExponent:4,moneyAvailable:23e5,networkLayer:1,numOpenPortsRequired:0,organizationName:"Sigma Cosmetics",requiredHackingSkill:5,serverGrowth:10},{hackDifficulty:15,hostname:"joesguns",maxRamExponent:4,moneyAvailable:25e5,networkLayer:1,numOpenPortsRequired:0,organizationName:a.LocationName.Sector12JoesGuns,requiredHackingSkill:10,serverGrowth:20,specialName:a.LocationName.Sector12JoesGuns},{hackDifficulty:25,hostname:"zer0",maxRamExponent:5,moneyAvailable:75e5,networkLayer:2,numOpenPortsRequired:1,organizationName:"ZER0 Nightclub",requiredHackingSkill:75,serverGrowth:40},{hackDifficulty:20,hostname:"nectar-net",maxRamExponent:4,moneyAvailable:275e4,networkLayer:2,numOpenPortsRequired:0,organizationName:"Nectar Nightclub Network",requiredHackingSkill:20,serverGrowth:25},{hackDifficulty:25,hostname:"neo-net",literature:[r.LiteratureNames.TheHiddenWorld],maxRamExponent:5,moneyAvailable:5e6,networkLayer:3,numOpenPortsRequired:1,organizationName:"Neo Nightclub Network",requiredHackingSkill:50,serverGrowth:25},{hackDifficulty:30,hostname:"silver-helix",literature:[r.LiteratureNames.NewTriads],maxRamExponent:6,moneyAvailable:45e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Silver Helix",requiredHackingSkill:150,serverGrowth:30},{hackDifficulty:15,hostname:"hong-fang-tea",literature:[r.LiteratureNames.BrighterThanTheSun],maxRamExponent:4,moneyAvailable:3e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HongFang Teahouse",requiredHackingSkill:30,serverGrowth:20},{hackDifficulty:15,hostname:"harakiri-sushi",maxRamExponent:4,moneyAvailable:4e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HaraKiri Sushi Bar Network",requiredHackingSkill:40,serverGrowth:40},{hackDifficulty:20,hostname:"phantasy",maxRamExponent:5,moneyAvailable:24e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Phantasy Club",requiredHackingSkill:100,serverGrowth:35},{hackDifficulty:15,hostname:"max-hardware",maxRamExponent:5,moneyAvailable:1e7,networkLayer:2,numOpenPortsRequired:1,organizationName:"Max Hardware Store",requiredHackingSkill:80,serverGrowth:30},{hackDifficulty:{max:35,min:25},hostname:"omega-net",literature:[r.LiteratureNames.TheNewGod],maxRamExponent:5,moneyAvailable:{max:7e7,min:6e7},networkLayer:3,numOpenPortsRequired:2,organizationName:a.LocationName.IshimaOmegaSoftware,requiredHackingSkill:{max:220,min:180},serverGrowth:{max:40,min:30},specialName:a.LocationName.IshimaOmegaSoftware},{hackDifficulty:{max:45,min:35},hostname:"crush-fitness",moneyAvailable:{max:6e7,min:4e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Crush Fitness",requiredHackingSkill:{max:275,min:225},serverGrowth:{max:33,min:27},specialName:a.LocationName.AevumCrushFitnessGym},{hackDifficulty:30,hostname:"iron-gym",maxRamExponent:5,moneyAvailable:2e7,networkLayer:1,numOpenPortsRequired:1,organizationName:"Iron Gym Network",requiredHackingSkill:100,serverGrowth:20,specialName:a.LocationName.Sector12IronGym},{hackDifficulty:{max:55,min:45},hostname:"millenium-fitness",maxRamExponent:{max:8,min:4},moneyAvailable:25e7,networkLayer:6,numOpenPortsRequired:3,organizationName:"Millenium Fitness Network",requiredHackingSkill:{max:525,min:475},serverGrowth:{max:45,min:25},specialName:a.LocationName.VolhavenMilleniumFitnessGym},{hackDifficulty:{max:65,min:55},hostname:"powerhouse-fitness",maxRamExponent:{max:6,min:4},moneyAvailable:9e8,networkLayer:14,numOpenPortsRequired:5,organizationName:"Powerhouse Fitness",requiredHackingSkill:{max:1100,min:950},serverGrowth:{max:60,min:50},specialName:a.LocationName.Sector12PowerhouseGym},{hackDifficulty:{max:60,min:40},hostname:"snap-fitness",moneyAvailable:45e7,networkLayer:7,numOpenPortsRequired:4,organizationName:"Snap Fitness",requiredHackingSkill:{max:800,min:675},serverGrowth:{max:60,min:40},specialName:a.LocationName.AevumSnapFitnessGym},{hackDifficulty:0,hostname:"run4theh111z",literature:[r.LiteratureNames.SimulatedReality,r.LiteratureNames.TheNewGod],maxRamExponent:{max:9,min:5},moneyAvailable:0,networkLayer:11,numOpenPortsRequired:4,organizationName:"The Runners",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:"BitRunners Server"},{hackDifficulty:0,hostname:"I.I.I.I",literature:[r.LiteratureNames.DemocracyIsDead],maxRamExponent:{max:8,min:4},moneyAvailable:0,networkLayer:5,numOpenPortsRequired:3,organizationName:"I.I.I.I",requiredHackingSkill:{max:365,min:340},serverGrowth:0,specialName:"The Black Hand Server"},{hackDifficulty:0,hostname:"avmnite-02h",literature:[r.LiteratureNames.DemocracyIsDead],maxRamExponent:{max:7,min:4},moneyAvailable:0,networkLayer:4,numOpenPortsRequired:2,organizationName:"NiteSec",requiredHackingSkill:{max:220,min:202},serverGrowth:0,specialName:"NiteSec Server"},{hackDifficulty:0,hostname:".",maxRamExponent:4,moneyAvailable:0,networkLayer:13,numOpenPortsRequired:4,organizationName:".",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:"The Dark Army Server"},{hackDifficulty:0,hostname:"CSEC",literature:[r.LiteratureNames.DemocracyIsDead],maxRamExponent:3,moneyAvailable:0,networkLayer:2,numOpenPortsRequired:1,organizationName:"CyberSec",requiredHackingSkill:{max:60,min:51},serverGrowth:0,specialName:"CyberSec Server"},{hackDifficulty:0,hostname:"The-Cave",literature:[r.LiteratureNames.AlphaOmega],moneyAvailable:0,networkLayer:15,numOpenPortsRequired:5,organizationName:"Helios",requiredHackingSkill:925,serverGrowth:0,specialName:"Daedalus Server"},{hackDifficulty:0,hostname:"w0r1d_d43m0n",moneyAvailable:0,numOpenPortsRequired:5,organizationName:"w0r1d_d43m0n",requiredHackingSkill:3e3,serverGrowth:0,specialName:"w0r1d_d43m0n"}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRandomString=void 0;const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";t.createRandomString=function(e){let t="";for(let n=0;n
"}}));return o.default.createElement("div",null,o.default.createElement(c.CopyableText,{value:e.c.type,tag:c.ClickableTag.Tag_h1}),o.default.createElement("br",null),o.default.createElement("br",null),o.default.createElement("p",null,"You are attempting to solve a Coding Contract. You have ",e.c.getMaxNumTries()-e.c.tries," tries remaining, after which the contract will self-destruct."),o.default.createElement("br",null),o.default.createElement("p",null,r),o.default.createElement("br",null),o.default.createElement("input",{className:"text-input",style:{width:"50%",marginTop:"8px"},autoFocus:!0,placeholder:"Enter Solution here",value:t,onChange:function(e){n(e.target.value)},onKeyDown:function(n){const a=n.target.value;n.keyCode===s.KEY.ENTER&&""!==a?(n.preventDefault(),e.onAttempt(t)):n.keyCode===s.KEY.ESC&&(n.preventDefault(),e.onClose())}}),o.default.createElement(u.PopupCloseButton,{popup:e.popupId,onClose:()=>e.onAttempt(t),text:"Solve"}),o.default.createElement(u.PopupCloseButton,{popup:e.popupId,onClose:e.onClose,text:"Close"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codingContractTypesMetadata=void 0;const a=n(36);function r(e){let t=e;return t.startsWith("[")&&(t=t.slice(1)),t.endsWith("]")&&(t=t.slice(0,-1)),t}function i(e){let t=e;return(t.startsWith('"')||t.startsWith("'"))&&(t=t.slice(1)),(t.endsWith('"')||t.endsWith("'"))&&(t=t.slice(0,-1)),t}function o(e){const t=[];return e.forEach(e=>{let n=e.toString();n=["[",n,"]"].join(""),t.push(n)}),t.join(",").replace(/\s/g,"")}t.codingContractTypesMetadata=[{desc:e=>["A prime factor is a factor that is a prime number.",`What is the largest prime factor of ${e}?`].join(" "),difficulty:1,gen:()=>a.getRandomInt(500,1e9),name:"Find Largest Prime Factor",numTries:10,solver:(e,t)=>{let n=2,a=e;for(;a>(n-1)*(n-1);){for(;a%n==0;)a=Math.round(a/n);++n}return(1===a?n-1:a)===parseInt(t,10)}},{desc:e=>["Given the following integer array, find the contiguous subarray","(containing at least one number) which has the largest sum and return that sum.","'Sum' refers to the sum of all the numbers in the subarray.\n",`${e.toString()}`].join(" "),difficulty:1,gen:()=>{const e=a.getRandomInt(5,40),t=[];t.length=e;for(let n=0;n
Learn to Program
For Experienced JavaScript Developers: NetscriptJS
Netscript Documentation
When starting out, hacking is the most profitable way to earn money and progress. This is a brief collection of tips/pointers on how to make the most out of your hacking scripts.
-hack() and grow() both work by percentages. hack() steals a certain percentage of the money on a server, and grow() increases the amount of money on a server by some percentage (multiplicatively)
-Because hack() and grow() work by percentages, they are more effective if the target server has a high amount of money. Therefore, you should try to increase the amount of money on a server (using grow()) to a certain amount before hacking it. Two import Netscript functions for this are getServerMoneyAvailable() and getServerMaxMoney()
-Keep security level low. Security level affects everything when hacking. Two important Netscript functions for this are getServerSecurityLevel() and getServerMinSecurityLevel()
-Purchase additional servers by visiting 'Alpha Enterprises' in the city. They are relatively cheap and give you valuable RAM to run more scripts early in the game
-Prioritize upgrading the RAM on your home computer. This can also be done at 'Alpha Enterprises'
-Many low level servers have free RAM. You can use this RAM to run your scripts. Use the scp Terminal or Netscript command to copy your scripts onto these servers and then run them.",t.Literatures[n]=new a.Literature(e,n,i),e="The Complete Handbook for Creating a Successful Corporation",n=r.LiteratureNames.CorporationManagementHandbook,i="Getting Started with Corporations
To get started, visit the City Hall in Sector-12 in order to create a Corporation. This requires $150b of your own money, but this $150b will get put into your Corporation's funds. After creating your Corporation, you will see it listed as one of the locations in the city. Click on your Corporation in order to manage it.
Your Corporation can have many different divisions, each in a different Industry. There are many different types of Industries, each with different properties. To create your first division, click the 'Expand into new Industry' button at the top of the management UI. The Agriculture and Software industries are recommended for your first division.
The first thing you'll need to do is hire some employees. Employees can be assigned to five different positions. Each position has a different effect on various aspects of your Corporation. It is recommended to have at least one employee at each position.
Each industry uses some combination of Materials in order to produce other Materials and/or create Products. Specific information about this is displayed in each of your divisions' UI.
Products are special, industry-specific objects. They are different than Materials because you must manually choose to develop them, and you can choose to develop any number of Products. Developing a Product takes time, but a Product typically generates significantly more revenue than any Material. Not all industries allow you to create Products. To create a Product, look for a button in the top-left panel of the division UI (e.g. For the Software Industry, the button says 'Develop Software').
To get your supply chain system started, purchase the Materials that your industry needs to produce other Materials/Products. This can be done by clicking the 'Buy' button next to the corresponding Material(s). After you have the required Materials, you will immediately start production. The amount of Materials/Products you produce is based on a variety of factors, one of which is your employees and their productivity.
Once you start producing Materials/Products, you can sell them in order to start earning revenue. This can be done by clicking the 'Sell' button next to the corresponding Material or Product. The amount of Material/Product you sell is dependent on a wide variety of different factors.
These are the basics of getting your Corporation up and running! Now, you can start purchasing upgrades to improve your bottom line. If you need money, consider looking for seed investors, who will give you money in exchange for stock shares. Otherwise, once you feel you are ready, take your Corporation public! Once your Corporation goes public, you can no longer find investors. Instead, your Corporation will be publicly traded and its stock price will change based on how well it's performing financially. You can then sell your stock shares in order to make money.
Tips/Pointers
-The 'Smart Supply' upgrade is extremely useful. Consider purchasing it as soon as possible.
-Purchasing Hardware, Robots, AI Cores, and Real Estate can potentially increase your production. The effects of these depend on what industry you are in.
-In order to optimize your production, you will need a good balance of Operators, Managers, and Engineers
-Different employees excel in different jobs. For example, the highly intelligent employees will probably do best if they are assigned to do Engineering work or Research & Development.
-If your employees have low morale, energy, or happiness, their production will greatly suffer.
-Tech is important, but don't neglect sales! Having several Businessmen can boost your sales and your bottom line.
-Don't forget to advertise your company. You won't have any business if nobody knows you.
-Having company awareness is great, but what's really important is your company's popularity. Try to keep your popularity as high as possible to see the biggest benefit for your sales
-Remember, you need to spend money to make money!
-Corporations do not reset when installing Augmentations, but they do reset when destroying a BitNode",t.Literatures[n]=new a.Literature(e,n,i),e="A Brief History of Synthoids",n=r.LiteratureNames.HistoryOfSynthoids,i="Synthetic androids, or Synthoids for short, are genetically engineered robots and, short of Augmentations, are composed entirely of organic substances. For this reason, Synthoids are virtually identical to humans in form, composition, and appearance.
Synthoids were first designed and manufactured by OmniTek Incorporated sometime around the middle of the century. Their original purpose was to be used for manual labor and as emergency responders for disasters. As such, they were initially programmed only for their specific tasks. Each iteration that followed improved upon the intelligence and capabilities of the Synthoids. By the 6th iteration, called MK-VI, the Synthoids were so smart and capable enough of making their own decisions that many argued OmniTek had created the first sentient AI. These MK-VI Synthoids were produced in mass quantities (estimates up to 50 billion) with the hopes of increasing society's productivity and bolstering the global economy. Stemming from humanity's desire for technological advancement, optimism and excitement about the future had never been higher.
All of that excitement and optimism quickly turned to fear, panic, and dread in 2070, when a terrorist group called Ascendis Totalis hacked into OmniTek and uploaded a rogue AI into severeal of their Synthoid manufacturing facilities. This hack went undetected and for months OmniTek unknowingly churned out legions of Synthoids embedded with this rogue AI. Then, on December 24th, 2070, Omnica activated dormant protocols in the rogue AI, causing all of the infected Synthoids to immediately launch a military campaign to seek and destroy all of humanity.
What ensued was the deadlist conflict in human history. This crisis, now commonly known as the Synthoid Uprising, resulted in almost ten billion deaths over the course of a year. Despite the nations of the world banding together to combat the threat, the MK-VI Synthoids were simply stronger, faster, more intelligent, and more adaptable than humans, outsmarting them at every turn.
It wasn't until the sacrifice of an elite international military taskforce, called the Bladeburners, that humanity was finally able to defeat the Synthoids. The Bladeburners' final act was a suicide bombing mission that destroyed a large portion of the MK-VI Synthoids, including many of its leaders. In the following weeks militaries from around the world were able to round up and shut down the remaining rogue MK-VI Synthoids, ending the Synthoid Uprising.
In the aftermath of the bloodshed, the Synthoid Accords were drawn up. These Accords banned OmniTek Incorporated from manufacturing any Synthoids beyond the MK-III series. They also banned any other corporation from constructing androids with advanced, near-sentient AI. MK-VI Synthoids that did not have the rogue Ascendis Totalis AI were allowed to continue their existence, but they were stripped of all rights and protections as they were not considered humans. They were also banned from doing anything that may pose a global security threat, such as working for any military/defense organization or conducting any bioengineering, computing, or robotics related research.
Unfortunately, many believe that not all of the rogue MK-VI Synthoids from the Uprising were found and destroyed, and that many of them are blending in as normal humans in society today. In response, many nations have created Bladeburner divisions, special military branches that are tasked with investigating and dealing with any Synthoid threads.
To this day, tensions still exist between the remaining Synthoids and humans as a result of the Uprising.
Nobody knows what happened to the terrorist group Ascendis Totalis.",t.Literatures[n]=new a.Literature(e,n,i),e="A Green Tomorrow",n=r.LiteratureNames.AGreenTomorrow,i="Starting a few decades ago, there was a massive global movement towards the generation of renewable energy in an effort to combat global warming and climate change. The shift towards renewable energy was a big success, or so it seemed. In 2045 a staggering 80% of the world's energy came from non-renewable fossil fuels. Now, about three decades later, that number is down to only 15%. Most of the world's energy now comes from nuclear power and renewable sources such as solar and geothermal energy. Unfortunately, these efforts were not the huge success that they seem to be.
Since 2045 primary energy use has soared almost tenfold. This was mainly due to growing urban populations and the rise of increasingly advanced (and power-hungry) technology that has become ubiquitous in our lives. So, despite the fact that the percentage of our energy that comes from fossil fuels has drastically decreased, the total amount of energy we are producing from fossil fuels has actually increased.
The grim effects of our species' irresponsible use of energy and neglect of our mother world have become increasingly apparent. Last year a temperature of 190F was recorded in the Death Valley desert, which is over 50% higher than the highest recorded temperature at the beginning of the century. In the last two decades numerous major cities such as Manhattan, Boston, and Los Angeles have been partially or fully submerged by rising sea levels. In the present day, over 75% of the world's agriculture is done in climate-controlled vertical farms, as most traditional farmland has become unusable due to severe climate conditions.
Despite all of this, the greedy and corrupt corporations that rule the world have done nothing to address these problems that threaten our species. And so it's up to us, the common people. Each and every one of us can make a difference by doing what these corporations won't: taking responsibility. If we don't, pretty soon there won't be an Earth left to save. We are the last hope for a green tomorrow.",t.Literatures[n]=new a.Literature(e,n,i),e="Alpha and Omega",n=r.LiteratureNames.AlphaOmega,i="Then we saw a new Heaven and a new Earth, for our first Heaven and Earth had gone away, and our sea was no more. And we saw a new holy city, new Aeria, coming down out of this new Heaven, prepared as a bride adorned for her husband. And we heard a loud voice saying, 'Behold, the new dwelling place of the Gods. We will dwell with them, and they will be our people, and we will be with them as their Gods. We will wipe away every tear from their eyes, and death shall be no more, neither shall there be mourning, nor crying, nor pain anymore, for the former things have passed away.'
And once we were seated on the throne we said 'Behold, I am making all things new.' Also we said, 'Write this down, for these words are trustworthy and true.' And we said to you, 'It is done! I am the Alpha and the Omega, the beginning and the end. To the thirsty I will give from the spring of the water of life without payment. The one who conquers will have this heritage, and we will be his God and he will be our son. But as for the cowardly, the faithless, the detestable, as for murderers, the sexually immoral, sorcerers, idolaters, and all liars, their portion will be in the lake that burns with fire and sulfur, for it is the second true death.'",t.Literatures[n]=new a.Literature(e,n,i),e="Are We Living in a Computer Simulation?",n=r.LiteratureNames.SimulatedReality,i="The idea that we are living in a virtual world is not new. It's a trope that has been explored constantly in literature and pop culture. However, it is also a legitimate scientific hypothesis that many notable physicists and philosophers have debated for years.
Proponents for this simulated reality theory often point to how advanced our technology has become, as well as the incredibly fast pace at which it has advanced over the past decades. The amount of computing power available to us has increased over 100-fold since 2060 due to the development of nanoprocessors and quantum computers. Artifical Intelligence has advanced to the point where our entire lives are controlled by robots and machines that handle our day-to-day activities such as autonomous transportation and scheduling. If we consider the pace at which this technology has advanced and assume that these developments continue, it's reasonable to assume that at some point in the future our technology would be advanced enough that we could create simulations that are indistinguishable from reality. However, if continued technological advancement is a reasonable outcome, then it is very likely that such a scenario has already happened.
Statistically speaking, somewhere out there in the infinite universe there is an advanced, intelligent species that already has such technology. Who's to say that they haven't already created such a virtual reality: our own?",t.Literatures[n]=new a.Literature(e,n,i),e="Beyond Man",n=r.LiteratureNames.BeyondMan,i="Humanity entered a 'transhuman' era a long time ago. And despite the protests and criticisms of many who cried out against human augmentation at the time, the transhuman movement continued and prospered. Proponents of the movement ignored the critics, arguing that it was in our inherent nature to better ourselves. To improve. To be more than we were. They claimed that not doing so would be to go against every living organism's biological purpose: evolution and survival of the fittest.
And here we are today, with technology that is advanced enough to augment humans to a state that can only be described as posthuman. But what do we have to show for it when this augmentation technology is only available to the so-called 'elite'? Are we really better off than before when only 5% of the world's population has access to this technology? When the powerful corporations and organizations of the world keep it all to themselves, have we really evolved?
Augmentation technology has only further increased the divide between the rich and the poor, between the powerful and the oppressed. We have not become 'more than human'. We have not evolved from nature's original design. We are still the greedy, corrupted, and evil men that we always were.",t.Literatures[n]=new a.Literature(e,n,i),e="Brighter than the Sun",n=r.LiteratureNames.BrighterThanTheSun,i="When people think about the corporations that dominate the East, they typically think of KuaiGong International, which holds a complete monopoly for manufacturing and commerce in Asia, or Global Pharmaceuticals, the world's largest drug company, or OmniTek Incorporated, the global leader in intelligent and autonomous robots. But there's one company that has seen a rapid rise in the last year and is poised to dominate not only the East, but the entire world: TaiYang Digital.
TaiYang Digital is a Chinese internet-technology corporation that provides services such as online advertising, search engines, gaming, media, entertainment, and cloud computing/storage. Its name TaiYang comes from the Chinese word for 'sun'. In Chinese culture, the sun is a 'yang' symbol associated with life, heat, masculinity, and heaven.
The company was founded less than 5 years ago and is already the third highest valued company in all of Asia. In 2076 it generated a total revenue of over 10 trillion yuan. It's services are used daily by over a billion people worldwide.
TaiYang Digital's meteoric rise is extremely surprising in modern society. This sort of growth is something you'd commonly see in the first half of the century, especially for tech companies. However in the last two decades the number of corporations has significantly declined as the largest entities quickly took over the economy. Corporations such as ECorp, MegaCorp, and KuaiGong have established such strong monopolies in their market sectors that they have effectively killed off all of the smaller and new corporations that have tried to start up over the years. This is what makes the rise of TaiYang Digital so impressive. And if TaiYang continues down this path, then they have a bright future ahead of them.",t.Literatures[n]=new a.Literature(e,n,i),e="Democracy is Dead: The Fall of an Empire",n=r.LiteratureNames.DemocracyIsDead,i="They rose from the shadows in the street.
From the places where the oppressed meet.
Their cries echoed loudly through the air.
As they once did in Tiananmen Square.
Loudness in the silence, Darkness in the light.
They came forth with power and might.
Once the beacon of democracy, America was first.
Its pillars of society destroyed and dispersed.
Soon the cries rose everywhere, with revolt and riot.
Until one day, finally, all was quiet.
From the ashes rose a new order, corporatocracy was its name.
Rome, Mongol, Byzantine, all of history is just the same.
For man will never change in a fundamental way.
And now democracy is dead, in the USA.",t.Literatures[n]=new a.Literature(e,n,i),e="Figures Show Rising Crime Rates in Sector-12",n=r.LiteratureNames.Sector12Crime,i="A recent study by analytics company Wilson Inc. shows a significant rise in criminal activity in Sector-12. Perhaps the most alarming part of the statistic is that most of the rise is in violent crime such as homicide and assault. According to the study, the city saw a total of 21,406 reported homicides in 2076, which is over a 20% increase compared to 2075.
CIA director David Glarow says its too early to know whether these figures indicate the beginning of a sustained increase in crime rates, or whether the year was just an unfortunate outlier. He states that many intelligence and law enforcement agents have noticed an increase in organized crime activites, and believes that these figures may be the result of an uprising from criminal organizations such as The Syndicate or the Slum Snakes.",t.Literatures[n]=new a.Literature(e,n,i),e="Man and the Machine",n=r.LiteratureNames.ManAndMachine,i="In 2005 Ray Kurzweil popularized his theory of the Singularity. He predicted that the rate of technological advancement would continue to accelerate faster and faster until one day machines would be become infinitely more intelligent than humans. This point, called the Singularity, would result in a drastic transformation of the world as we know it. He predicted that the Singularity would arrive by 2045. And yet here we are, more than three decades later, where most would agree that we have not yet reached a point where computers and machines are vastly more intelligent than we are. So what gives?
The answer is that we have reached the Singularity, just not in the way we expected. The artifical superintelligence that was predicted by Kurzweil and others exists in the world today - in the form of Augmentations. Yes, those Augmentations that the rich and powerful keep to themselves enable humans to become superintelligent beings. The Singularity did not lead to a world where our machines are infinitely more intelligent than us, it led to a world where man and machine can merge to become something greater. Most of the world just doesn't know it yet.",t.Literatures[n]=new a.Literature(e,n,i),e="Secret Societies",n=r.LiteratureNames.SecretSocieties,i="The idea of secret societies has long intrigued the general public by inspiring curiosity, fascination, and distrust. People have long wondered about who these secret society members are and what they do, with the most radical of conspiracy theorists claiming that they control everything in the entire world. And while the world may never know for sure, it is likely that many secret societies do actually exist, even today.
However, the secret societies of the modern world are nothing like those that (supposedly) existed decades and centuries ago. The Freemasons, Knights Templar, and Illuminati, while they may have been around at the turn of the 21st century, almost assuredly do not exist today. The dominance of the Web in our everyday lives and the fact that so much of the world is now digital has given rise to a new breed of secret societies: Internet-based ones.
Commonly called 'hacker groups', Internet-based secret societies have become well-known in today's world. Some of these, such as The Black Hand, are black hat groups that claim they are trying to help the oppressed by attacking the elite and powerful. Others, such as NiteSec, are hacktivist groups that try to push political and social agendas. Perhaps the most intriguing hacker group is the mysterious Bitrunners, whose purpose still remains unknown.",t.Literatures[n]=new a.Literature(e,n,i),e="Space: The Failed Frontier",n=r.LiteratureNames.TheFailedFrontier,i="Humans have long dreamed about spaceflight. With enduring interest, we were driven to explore the unknown and discover new worlds. We dreamed about conquering the stars. And in our quest, we pushed the boundaries of our scientific limits, and then pushed further. Space exploration lead to the development of many important technologies and new industries.
But sometime in the middle of the 21st century, all of that changed. Humanity lost its ambitions and aspirations of exploring the cosmos. The once-large funding for agencies like NASA and the European Space Agency gradually whittled away until their eventual disbanding in the 2060's. Not even militaries are fielding flights into space nowadays. The only remnants of the once great mission for cosmic conquest are the countless satellites in near-earth orbit, used for communications, espionage, and other corporate interests.
And as we continue to look at the state of space technology, it becomes more and more apparent that we will never return to that golden age of space exploration, that age where everyone dreamed of going beyond earth for the sake of discovery.",t.Literatures[n]=new a.Literature(e,n,i),e="Coded Intelligence: Myth or Reality?",n=r.LiteratureNames.CodedIntelligence,i="Tremendous progress has been made in the field of Artificial Intelligence over the past few decades. Our autonomous vehicles and transporation systems. The electronic personal assistants that control our everyday lives. Medical, service, and manufacturing robots. All of these are examples of how far AI has come and how much it has improved our daily lives. However, the question still remains of whether AI will ever be advanced enough to re-create human intelligence.
We've certainly come close to artificial intelligence that is similar to humans. For example OmniTek Incorporated's CompanionBot, a robot meant to act as a comforting friend for lonely and grieving people, is eerily human-like in its appearance, speech, mannerisms, and even movement. However its artificial intelligence isn't the same as that of humans. Not yet. It doesn't have sentience or self-awareness or consciousness.
Many neuroscientists believe that we won't ever reach the point of creating artificial human intelligence. 'At the end of the the day, AI comes down to 1's and 0's, while the human brain does not. We'll never see AI that is identical to that of humans.'",t.Literatures[n]=new a.Literature(e,n,i),e="Synthetic Muscles",n=r.LiteratureNames.SyntheticMuscles,i="Initial versions of synthetic muscles weren't made of anything organic but were actually crude devices made to mimic human muscle function. Some of the early iterations were actually made of common materials such as fishing lines and sewing threads due to their high strength for a cheap cost.
As technology progressed, however, advances in biomedical engineering paved the way for a new method of creating synthetic muscles. Instead of creating something that closely imitated the functionality of human muscle, scientists discovered a way of forcing the human body itself to augment its own muscle tissue using both synthetic and organic materials. This is typically done using gene therapy or chemical injections.",t.Literatures[n]=new a.Literature(e,n,i),e="Tensions rise in global tech race",n=r.LiteratureNames.TensionsInTechRace,i="Have we entered a new Cold War? Is WWIII just beyond the horizon?
After rumors came out that OmniTek Incorporated had begun developing advanced robotic supersoldiers, geopolitical tensions quickly flared between the USA, Russia, and several Asian superpowers. In a rare show of cooperation between corporations, MegaCorp and ECorp have reportedly launched hundreds of new surveillance and espionage satellites. Defense contractors such as DeltaOne and AeroCorp have been working with the CIA and NSA to prepare for conflict. Meanwhile, the rest of the world sits in earnest hoping that it never reaches full-scale war. With today's technology and firepower, a World War would assuredly mean the end of human civilization.",t.Literatures[n]=new a.Literature(e,n,i),e="The Cost of Immortality",n=r.LiteratureNames.CostOfImmortality,i="Evolution and advances in medical and augmentation technology has lead to drastic improvements in human mortality rates. Recent figures show that the life expectancy for humans that live in a first-world country is about 130 years of age, almost double of what it was at the turn of the century. However, this increase in average lifespan has had some significant effects on society and culture.
Due to longer lifespans and a better quality of life, many adults are holding off on having kids until much later. As a result, the percentage of youth in first-world countries has been decreasing, while the number of senior citizens is significantly increasing.
Perhaps the most alarming result of all of this is the rapidly shrinking workforce. Despite the increase in life expectancy, the typical retirement age for workers in America has remained about the same, meaning a larger and larger percentage of people in America are retirees. Furthermore, many young adults are holding off on joining the workforce because they feel that they have plenty of time left in their lives for employment, and want to 'enjoy life while they're young.' For most industries, this shrinking workforce is not a major issue as most things are handled by robots anyways. However, there are still several key industries such as engineering and education that have not been automated, and these remain in danger to this cultural phenomenon.",t.Literatures[n]=new a.Literature(e,n,i),e="The Hidden World",n=r.LiteratureNames.TheHiddenWorld,i="WAKE UP SHEEPLE
THE GOVERNMENT DOES NOT EXIST. CORPORATIONS DO NOT RUN SOCIETY
THE ILLUMINATI ARE THE SECRET RULERS OF THE WORLD!
Yes, the Illuminati of legends. The ancient secret society that controls the entire world from the shadows with their invisible hand. The group of the rich and wealthy that have penetrated every major government, financial agency, and corporation in the last three hundred years.
OPEN YOUR EYES
It was the Illuminati that brought an end to democracy in the world. They are the driving force behind everything that happens.
THEY ARE ALL AROUND YOU
After destabilizing the world's governments, they are now entering the final stage of their master plan. They will secretly initiate global crises. Terrorism. Pandemics. World War. And out of the chaos that ensues they will build their New World Order.",t.Literatures[n]=new a.Literature(e,n,i),e="The New God",n=r.LiteratureNames.TheNewGod,i="Everyone has a moment in their life when they wonder about the bigger questions.
What's the point of all this? What is my purpose?
Some people dare to think even bigger.
What will the fate of the human race be?
We live in an era vastly different from that of 15 or even 20 years ago. We have gone beyond the limits of humanity. We have stripped ourselves of the tyranny of flesh.
The Singularity is here. The merging of man and machine. This is where humanity evolves into ",t.Literatures[n]=new a.Literature(e,n,i),e="The New Triads",n=r.LiteratureNames.NewTriads,i="The Triads were an ancient transnational crime syndicate based in China, Hong Kong, and other Asian territories. They were often considered one of the first and biggest criminal secret societies. While most of the branches of the Triads have been destroyed over the past few decades, the crime faction has spawned and inspired a number of other Asian crime organizations over the past few years. The most notable of these is the Tetrads.
It is widely believed that the Tetrads are a rogue group that splintered off from the Triads sometime in the mid 21st century. The founders of the Tetrads, all of whom were ex-Triad members, believed that the Triads were losing their purpose and direction. The Tetrads started off as a small group that mainly engaged in fraud and extortion. They were largely unknown until just a few years ago when they took over the illegal drug trade in all of the major Asian cities. They quickly became the most powerful crime syndicate in the continent.
Not much else is known about the Tetrads, or about the efforts the Asian governments and corporations are making to take down this large new crime organization. Many believe that the Tetrads have infiltrated the governments and powerful corporations in Asia, which has helped faciliate their recent rapid rise.",t.Literatures[n]=new a.Literature(e,n,i),e="The Secret War",n=r.LiteratureNames.TheSecretWar,i="",t.Literatures[n]=new a.Literature(e,n,i)}()},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Popup=void 0;const o=i(n(0));t.Popup=function(e){function t(t){"Escape"===t.key&&e.removePopup(e.id)}return o.useEffect(()=>(document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)})),o.default.createElement("div",{className:"popup-box-content",id:`${e.id}-content`},o.default.createElement(e.content,e.props))}},,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCityMap=void 0;const a=n(173);t.createCityMap=function(e){const t={},n=Object.keys(a.Cities);for(let a=0;a
${r.numeralWrapper.format(this.cost,"0,0")} Scientific Research`+''+`${n.desc}`+"",text:{name:this.text}}}findNode(e){if(this.text===e)return this;let t=null;for(let n=0;n
+
{
this.state.torPurchased ? (
- This will upgrade your RAM from {numeralWrapper.formatRAM(ram)} to {numeralWrapper.formatRAM(ram*2)}.
- This will cost {Money(cost)}
- >);
-}
-
-
/**
* Attempt to purchase a TOR router
* @param {IPlayer} p - Player object
diff --git a/src/Locations/ui/CoresButton.tsx b/src/Locations/ui/CoresButton.tsx
new file mode 100644
index 000000000..10930a96f
--- /dev/null
+++ b/src/Locations/ui/CoresButton.tsx
@@ -0,0 +1,64 @@
+import React, { useState } from "react";
+
+import { Location } from "../Location";
+import { createPurchaseServerPopup,
+ createUpgradeHomeCoresPopup,
+ purchaseTorRouter } from "../LocationsHelpers";
+
+import { CONSTANTS } from "../../Constants";
+import { IPlayer } from "../../PersonObjects/IPlayer";
+import { purchaseRamForHomeComputer } from "../../Server/ServerPurchases";
+
+import { StdButtonPurchased } from "../../ui/React/StdButtonPurchased";
+import { StdButton } from "../../ui/React/StdButton";
+import { Money } from "../../ui/React/Money";
+
+type IProps = {
+ p: IPlayer;
+}
+
+export function CoresButton(props: IProps): React.ReactElement {
+ const setRerender = useState(false)[1];
+ function rerender(): void {
+ setRerender(old => !old);
+ }
+
+ const btnStyle = { display: "block" };
+
+ const homeComputer = props.p.getHomeComputer();
+ const maxCores = homeComputer.cpuCores >= 8;
+ if(maxCores) {
+ return (
-
- {
- this.state.torPurchased ? (
-
+
+
+{f(mults.bladeburner_success_chance_mult-1)} Bladeburner Contracts and Operations success chance>
if(startingMoney)
- desc = <>{desc}
Start with {Money(startingMoney)} after installing Augmentations.>
+ desc = <>{desc}
Start with
Start with {programs.join(' and ')} after installing Augmentations.>
diff --git a/src/Bladeburner/ui/Stats.tsx b/src/Bladeburner/ui/Stats.tsx
index f2393cb11..103f6240b 100644
--- a/src/Bladeburner/ui/Stats.tsx
+++ b/src/Bladeburner/ui/Stats.tsx
@@ -97,7 +97,7 @@ export function Stats(props: IProps): React.ReactElement {
+
Please enter the server hostname below:
>);
}
@@ -245,7 +245,7 @@ export function createUpgradeHomeCoresPopup(p: IPlayer): void {
yesNoBoxCreate(<>Would you like to purchase an additional CPU Core for your home computer? Each CPU Core
lets you start with an additional Core Node in Hacking Missions.
Purchasing an additional core (for a total of {p.getHomeComputer().cpuCores + 1}) will
-cost {Money(cost)}>);
+cost ${aug.name}
`,
- `Cost: ${renderToStaticMarkup(Money(aug.startingCost))}
`,
+ `Cost: ${renderToStaticMarkup(
`,
`${info}`,
].join(" "),
padding: "2px",
diff --git a/src/PersonObjects/Sleeve/SleeveUI.tsx b/src/PersonObjects/Sleeve/SleeveUI.tsx
index a1b0c9115..5b38fd4f1 100644
--- a/src/PersonObjects/Sleeve/SleeveUI.tsx
+++ b/src/PersonObjects/Sleeve/SleeveUI.tsx
@@ -1,6 +1,7 @@
/**
* Module for handling the Sleeve UI
*/
+import React from 'react';
import { createSleevePurchaseAugsPopup } from "./SleeveAugmentationsUI";
import { Sleeve } from "./Sleeve";
import { SleeveTaskType } from "./SleeveTaskTypesEnum";
@@ -202,6 +203,7 @@ function createSleeveUi(sleeve: Sleeve, allSleeves: Sleeve[]): ISleeveUIElems {
currentEarningsInfo: null,
totalEarningsButton: null,
}
+ if(playerRef === null) return elems;
if (!routing.isOn(Page.Sleeves)) { return elems; }
@@ -223,13 +225,14 @@ function createSleeveUi(sleeve: Sleeve, allSleeves: Sleeve[]): ISleeveUIElems {
class: "std-button",
innerText: "Travel",
clickListener: () => {
+ if(playerRef === null) return;
const popupId = "sleeve-travel-popup";
const popupArguments: HTMLElement[] = [];
popupArguments.push(createPopupCloseButton(popupId, { class: "std-button" }));
popupArguments.push(createElement("p", {
innerHTML: "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 ${renderToStaticMarkup(Money(CONSTANTS.TravelCost))}. ` +
+ `Traveling to a different city costs ${renderToStaticMarkup(
{StatsTable([
- ['Money: ', Money(sleeve.earningsForPlayer.money)],
+ ['Money: ',
{StatsTable([
- ['Money: ', Money(sleeve.earningsForSleeves.money)],
+ ['Money: ',
)
@@ -75,10 +75,10 @@ export class StockTickerPositionText extends React.Component
)
@@ -96,13 +96,13 @@ export class StockTickerPositionText extends React.Component
- Ask Price: {Money(stock.getAskPrice())}
+ Ask Price:
- Bid Price: {Money(stock.getBidPrice())}
+ Bid Price:
Total online production since last Aug installation:
- {Money(props.p.scriptProdSinceLastAug)}
+
Args: {arrayToString(props.workerScript.args)}
Online Time: {convertTimeMsToTimeElapsedString(scriptRef.onlineRunningTime * 1e3)}
Offline Time: {convertTimeMsToTimeElapsedString(scriptRef.offlineRunningTime * 1e3)}-
Total online production: {Money(scriptRef.onlineMoneyMade)}+
Total online production:
{(Array(26).join(" ") + numeralWrapper.formatExp(scriptRef.onlineExpGained) + " hacking exp")}-
Online production rate: {Money(onlineMps)} / second+
Online production rate:/ second
{(Array(25).join(" ") + numeralWrapper.formatExp(onlineEps) + " hacking exp / second")}-
Total offline production: {Money(scriptRef.offlineMoneyMade)}+
Total offline production:
{(Array(27).join(" ") + numeralWrapper.formatExp(scriptRef.offlineExpGained) + " hacking exp")}-
Offline production rate: {Money(offlineMps)} / second+
Offline production rate:/ second
{(Array(26).join(" ") + numeralWrapper.formatExp(offlineEps) + " hacking exp / second")}
Stats
tab on the main navigation menu (left-hand side of the screen)"),s.style.display="none",t.setAttribute("class","flashing-button"),t.addEventListener("click",function(){return a.Engine.loadCharacterContent(),y(),!1});break;case h.CharacterPage:a.Engine.loadCharacterContent(),v("The Stats
page shows a lot of important information about your progress, such as your skills, money, and bonuses. "),s.style.display="inline-block";break;case h.CharacterGoToTerminalPage:a.Engine.loadCharacterContent(),v("Let's head to your computer's terminal by clicking the Terminal
tab on the main navigation menu."),s.style.display="none",e.setAttribute("class","flashing-button"),e.addEventListener("click",function(){return a.Engine.loadTerminalContent(),y(),!1});break;case h.TerminalIntro:a.Engine.loadTerminalContent(),v("The Terminal
is used to interface with your home computer as well as all of the other machines around the world."),s.style.display="inline-block";break;case h.TerminalHelp:a.Engine.loadTerminalContent(),v("Let's try it out. Start by entering the help
command into the Terminal
(Don't forget to press Enter after typing the command)"),s.style.display="none";break;case h.TerminalLs:a.Engine.loadTerminalContent(),v("The help
command displays a list of all available Terminal
commands, how to use them, and a description of what they do. ls
command."),s.style.display="none";break;case h.TerminalScan:a.Engine.loadTerminalContent(),v(" ls
is a basic command that shows files on the computer. Right now, it shows that you have a program called NUKE.exe
on your computer. We'll get to what this does later. scan
command."),s.style.display="none";break;case h.TerminalScanAnalyze1:a.Engine.loadTerminalContent(),v("The scan
command shows all available network connections. In other words, it displays a list of all servers that can be connected to from your current machine. A server is identified by its hostname. scan-analyze
command gives some more detailed information about servers on the network. Try it now!"),s.style.display="none";break;case h.TerminalScanAnalyze2:a.Engine.loadTerminalContent(),v("You just ran scan-analyze
with a depth of one. This command shows more detailed information about each server that you can connect to (servers that are a distance of one node away). scan-analyze
with a higher depth. Let's try a depth of two with the following command: scan-analyze 2
."),s.style.display="none";break;case h.TerminalConnect:a.Engine.loadTerminalContent(),v("Now you can see information about all servers that are up to two nodes away, as well as figure out how to navigate to those servers through the network. You can only connect to a server that is one node away. To connect to a machine, use the connect [hostname]
command.scan-analyze
command, we can see that the n00dles
server is only one node away. Let's connect so it now using: connect n00dles
"),s.style.display="none";break;case h.TerminalAnalyze:a.Engine.loadTerminalContent(),v("You are now connected to another machine! What can you do now? You can hack it!analyze
command."),s.style.display="none";break;case h.TerminalNuke:a.Engine.loadTerminalContent(),v("When the analyze
command finishes running it will show useful information about hacking the server. NUKE.exe
program that we saw earlier on your home computer is a virus that will grant you root access to a machine if there are enough open ports.analyze
results shows that there do not need to be any open ports on this machine for the NUKE virus to work, so go ahead and run the virus using the run NUKE.exe
command."),s.style.display="none";break;case h.TerminalManualHack:a.Engine.loadTerminalContent(),v("You now have root access! You can hack the server using the hack
command. Try doing that now."),s.style.display="none";break;case h.TerminalHackingMechanics:a.Engine.loadTerminalContent(),v("You are now attempting to hack the server. Performing a hack takes time and only has a certain percentage chance of success. This time and success chance is determined by a variety of factors, including your hacking skill and the server's security level.nano
command. Scripts must end with the .script
extension. Let's make a script now by entering nano n00dles.script
after the hack command finishes running (Sidenote: Pressing ctrl + c will end a command like hack early)"),s.style.display="none";break;case h.TerminalTypeScript:a.Engine.loadScriptEditorContent("n00dles.script",""),v("This is the script editor. You can use it to program your scripts. Scripts are written in a simplified version of javascript. Copy and paste the following code into the script editor: while(true) {\n hack('n00dles');\n}For anyone with basic programming experience, this code should be straightforward. This script will continuously hack the
n00dles
server.free
command."),s.style.display="none";break;case h.TerminalRunScript:a.Engine.loadTerminalContent(),v("We have 4GB of free RAM on this machine, which is enough to run our script. Let's run our script using run n00dles.script
."),s.style.display="none";break;case h.TerminalGoToActiveScriptsPage:a.Engine.loadTerminalContent(),v("Your script is now running! It will continuously run in the background and will automatically stop if the code ever completes (the n00dles.script
will never complete because it runs an infinite loop). Active Scripts
link in the main navigation menu."),s.style.display="none",n.setAttribute("class","flashing-button"),n.addEventListener("click",function(){return a.Engine.loadActiveScriptsContent(),y(),!1});break;case h.ActiveScriptsPage:a.Engine.loadActiveScriptsContent(),v("This page displays information about all of your scripts that are running across every server. You can use this to gauge how well your scripts are doing. Let's go back to the Terminal
"),s.style.display="none",e.setAttribute("class","flashing-button"),e.addEventListener("click",function(){return a.Engine.loadTerminalContent(),y(),!1});break;case h.ActiveScriptsToTerminal:a.Engine.loadTerminalContent(),v("One last thing about scripts, each active script contains logs that detail what it's doing. We can check these logs using the tail
command. Do that now for the script we just ran by typing tail n00dles.script
"),s.style.display="none";break;case h.TerminalTailScript:a.Engine.loadTerminalContent(),v("The log for this script won't show much right now (it might show nothing at all) because it just started running...but check back again in a few minutes! Tutorial
link in the main navigation menu to look at the documentation. If you are an experienced JavaScript developer, I would highly suggest you check out the section on NetscriptJS/Netscript 2.0, it's faster and more powerful.Hacknet
page through the main navigation menu now."),s.style.display="none",r.setAttribute("class","flashing-button"),r.addEventListener("click",function(){return a.Engine.loadHacknetNodesContent(),y(),!1});break;case h.HacknetNodesIntroduction:a.Engine.loadHacknetNodesContent(),v("here you can purchase new Hacknet Nodes and upgrade your existing ones. Let's purchase a new one now."),s.style.display="none";break;case h.HacknetNodesGoToWorldPage:a.Engine.loadHacknetNodesContent(),v("You just purchased a Hacknet Node! This Hacknet Node will passively earn you money over time, both online and offline. When you get enough money, you can upgrade your newly-purchased Hacknet Node below.City
page through the main navigation menu."),s.style.display="none",i.setAttribute("class","flashing-button"),i.addEventListener("click",function(){return a.Engine.loadLocationContent(),y(),!1});break;case h.WorldDescription:a.Engine.loadLocationContent(),v("This page lists all of the different locations you can currently travel to. Each location has something that you can do. There's a lot of content out in the world, make sure you explore and discover!Tutorial
link in the main navigation menu."),s.style.display="none",o.setAttribute("class","flashing-button"),o.addEventListener("click",function(){return a.Engine.loadTutorialContent(),y(),!1});break;case h.TutorialPageInfo:a.Engine.loadTutorialContent(),v("This page contains a lot of different documentation about the game's content and mechanics. I know it's a lot, but I highly suggest you read (or at least skim) through this before you start playing. That's the end of the tutorial. Hope you enjoy the game!"),s.style.display="inline-block",s.innerHTML="Finish Tutorial";break;case h.End:b();break;default:throw new Error("Invalid tutorial step")}!0===_.stepIsDone[_.currStep]&&(s.style.display="inline-block")}function y(){_.currStep===h.GoToCharacterPage&&document.getElementById("stats-menu-link").removeAttribute("class"),_.currStep===h.CharacterGoToTerminalPage&&document.getElementById("terminal-menu-link").removeAttribute("class"),_.currStep===h.TerminalGoToActiveScriptsPage&&document.getElementById("active-scripts-menu-link").removeAttribute("class"),_.currStep===h.ActiveScriptsPage&&document.getElementById("terminal-menu-link").removeAttribute("class"),_.currStep===h.GoToHacknetNodesPage&&document.getElementById("hacknet-nodes-menu-link").removeAttribute("class"),_.currStep===h.HacknetNodesGoToWorldPage&&document.getElementById("city-menu-link").removeAttribute("class"),_.currStep===h.WorldDescription&&document.getElementById("tutorial-menu-link").removeAttribute("class"),_.stepIsDone[_.currStep]=!0,_.currStepFAILED
- Contract is now self-destructing"),t.removeContract(n)):Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_40__.post)(`ContractFAILED
- ${n.getMaxNumTries()-n.tries} tries remaining`);break;case _CodingContracts__WEBPACK_IMPORTED_MODULE_7__.CodingContractResult.Cancelled:default:Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_40__.post)("Contract cancelled")}Terminal.contractOpen=!1}}}).call(this,__webpack_require__(151))},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTimeoutRef=void 0,t.setTimeoutRef=window.setTimeout.bind(window)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HacknetServer=void 0;const a=n(11),r=n(705),i=n(37),o=n(147),s=n(416),l=n(27);class c extends r.BaseServer{constructor(e={hostname:"",ip:s.createRandomIp()}){super(e),this.cache=1,this.cores=1,this.hashCapacity=0,this.hashRate=0,this.level=1,this.onlineTimeSeconds=0,this.totalHashesGenerated=0,this.maxRam=1,this.updateHashCapacity()}calculateCacheUpgradeCost(e){return o.calculateCacheUpgradeCost(this.cache,e)}calculateCoreUpgradeCost(e,t){return o.calculateCoreUpgradeCost(this.cores,e,t)}calculateLevelUpgradeCost(e,t){return o.calculateLevelUpgradeCost(this.level,e,t)}calculateRamUpgradeCost(e,t){return o.calculateRamUpgradeCost(this.maxRam,e,t)}process(e=1){const t=e*a.CONSTANTS.MilliPerCycle/1e3;return this.hashRate*t}upgradeCache(e){this.cache=Math.min(i.HacknetServerConstants.MaxCache,Math.round(this.cache+e)),this.updateHashCapacity()}upgradeCore(e,t){this.cores=Math.min(i.HacknetServerConstants.MaxCores,Math.round(this.cores+e)),this.updateHashRate(t)}upgradeLevel(e,t){this.level=Math.min(i.HacknetServerConstants.MaxLevel,Math.round(this.level+e)),this.updateHashRate(t)}upgradeRam(e,t){for(let t=0;tStats
tab on the main navigation menu (left-hand side of the screen)"),s.style.display="none",t.setAttribute("class","flashing-button"),t.addEventListener("click",function(){return a.Engine.loadCharacterContent(),y(),!1});break;case h.CharacterPage:a.Engine.loadCharacterContent(),v("The Stats
page shows a lot of important information about your progress, such as your skills, money, and bonuses. "),s.style.display="inline-block";break;case h.CharacterGoToTerminalPage:a.Engine.loadCharacterContent(),v("Let's head to your computer's terminal by clicking the Terminal
tab on the main navigation menu."),s.style.display="none",e.setAttribute("class","flashing-button"),e.addEventListener("click",function(){return a.Engine.loadTerminalContent(),y(),!1});break;case h.TerminalIntro:a.Engine.loadTerminalContent(),v("The Terminal
is used to interface with your home computer as well as all of the other machines around the world."),s.style.display="inline-block";break;case h.TerminalHelp:a.Engine.loadTerminalContent(),v("Let's try it out. Start by entering the help
command into the Terminal
(Don't forget to press Enter after typing the command)"),s.style.display="none";break;case h.TerminalLs:a.Engine.loadTerminalContent(),v("The help
command displays a list of all available Terminal
commands, how to use them, and a description of what they do. ls
command."),s.style.display="none";break;case h.TerminalScan:a.Engine.loadTerminalContent(),v(" ls
is a basic command that shows files on the computer. Right now, it shows that you have a program called NUKE.exe
on your computer. We'll get to what this does later. scan
command."),s.style.display="none";break;case h.TerminalScanAnalyze1:a.Engine.loadTerminalContent(),v("The scan
command shows all available network connections. In other words, it displays a list of all servers that can be connected to from your current machine. A server is identified by its hostname. scan-analyze
command gives some more detailed information about servers on the network. Try it now!"),s.style.display="none";break;case h.TerminalScanAnalyze2:a.Engine.loadTerminalContent(),v("You just ran scan-analyze
with a depth of one. This command shows more detailed information about each server that you can connect to (servers that are a distance of one node away). scan-analyze
with a higher depth. Let's try a depth of two with the following command: scan-analyze 2
."),s.style.display="none";break;case h.TerminalConnect:a.Engine.loadTerminalContent(),v("Now you can see information about all servers that are up to two nodes away, as well as figure out how to navigate to those servers through the network. You can only connect to a server that is one node away. To connect to a machine, use the connect [hostname]
command.scan-analyze
command, we can see that the n00dles
server is only one node away. Let's connect so it now using: connect n00dles
"),s.style.display="none";break;case h.TerminalAnalyze:a.Engine.loadTerminalContent(),v("You are now connected to another machine! What can you do now? You can hack it!analyze
command."),s.style.display="none";break;case h.TerminalNuke:a.Engine.loadTerminalContent(),v("When the analyze
command finishes running it will show useful information about hacking the server. NUKE.exe
program that we saw earlier on your home computer is a virus that will grant you root access to a machine if there are enough open ports.analyze
results shows that there do not need to be any open ports on this machine for the NUKE virus to work, so go ahead and run the virus using the run NUKE.exe
command."),s.style.display="none";break;case h.TerminalManualHack:a.Engine.loadTerminalContent(),v("You now have root access! You can hack the server using the hack
command. Try doing that now."),s.style.display="none";break;case h.TerminalHackingMechanics:a.Engine.loadTerminalContent(),v("You are now attempting to hack the server. Performing a hack takes time and only has a certain percentage chance of success. This time and success chance is determined by a variety of factors, including your hacking skill and the server's security level.nano
command. Scripts must end with the .script
extension. Let's make a script now by entering nano n00dles.script
after the hack command finishes running (Sidenote: Pressing ctrl + c will end a command like hack early)"),s.style.display="none";break;case h.TerminalTypeScript:a.Engine.loadScriptEditorContent("n00dles.script",""),v("This is the script editor. You can use it to program your scripts. Scripts are written in a simplified version of javascript. Copy and paste the following code into the script editor: while(true) {\n hack('n00dles');\n}For anyone with basic programming experience, this code should be straightforward. This script will continuously hack the
n00dles
server.free
command."),s.style.display="none";break;case h.TerminalRunScript:a.Engine.loadTerminalContent(),v("We have 4GB of free RAM on this machine, which is enough to run our script. Let's run our script using run n00dles.script
."),s.style.display="none";break;case h.TerminalGoToActiveScriptsPage:a.Engine.loadTerminalContent(),v("Your script is now running! It will continuously run in the background and will automatically stop if the code ever completes (the n00dles.script
will never complete because it runs an infinite loop). Active Scripts
link in the main navigation menu."),s.style.display="none",n.setAttribute("class","flashing-button"),n.addEventListener("click",function(){return a.Engine.loadActiveScriptsContent(),y(),!1});break;case h.ActiveScriptsPage:a.Engine.loadActiveScriptsContent(),v("This page displays information about all of your scripts that are running across every server. You can use this to gauge how well your scripts are doing. Let's go back to the Terminal
"),s.style.display="none",e.setAttribute("class","flashing-button"),e.addEventListener("click",function(){return a.Engine.loadTerminalContent(),y(),!1});break;case h.ActiveScriptsToTerminal:a.Engine.loadTerminalContent(),v("One last thing about scripts, each active script contains logs that detail what it's doing. We can check these logs using the tail
command. Do that now for the script we just ran by typing tail n00dles.script
"),s.style.display="none";break;case h.TerminalTailScript:a.Engine.loadTerminalContent(),v("The log for this script won't show much right now (it might show nothing at all) because it just started running...but check back again in a few minutes! Tutorial
link in the main navigation menu to look at the documentation. If you are an experienced JavaScript developer, I would highly suggest you check out the section on NetscriptJS/Netscript 2.0, it's faster and more powerful.Hacknet
page through the main navigation menu now."),s.style.display="none",r.setAttribute("class","flashing-button"),r.addEventListener("click",function(){return a.Engine.loadHacknetNodesContent(),y(),!1});break;case h.HacknetNodesIntroduction:a.Engine.loadHacknetNodesContent(),v("here you can purchase new Hacknet Nodes and upgrade your existing ones. Let's purchase a new one now."),s.style.display="none";break;case h.HacknetNodesGoToWorldPage:a.Engine.loadHacknetNodesContent(),v("You just purchased a Hacknet Node! This Hacknet Node will passively earn you money over time, both online and offline. When you get enough money, you can upgrade your newly-purchased Hacknet Node below.City
page through the main navigation menu."),s.style.display="none",i.setAttribute("class","flashing-button"),i.addEventListener("click",function(){return a.Engine.loadLocationContent(),y(),!1});break;case h.WorldDescription:a.Engine.loadLocationContent(),v("This page lists all of the different locations you can currently travel to. Each location has something that you can do. There's a lot of content out in the world, make sure you explore and discover!Tutorial
link in the main navigation menu."),s.style.display="none",o.setAttribute("class","flashing-button"),o.addEventListener("click",function(){return a.Engine.loadTutorialContent(),y(),!1});break;case h.TutorialPageInfo:a.Engine.loadTutorialContent(),v("This page contains a lot of different documentation about the game's content and mechanics. I know it's a lot, but I highly suggest you read (or at least skim) through this before you start playing. That's the end of the tutorial. Hope you enjoy the game!"),s.style.display="inline-block",s.innerHTML="Finish Tutorial";break;case h.End:b();break;default:throw new Error("Invalid tutorial step")}!0===_.stepIsDone[_.currStep]&&(s.style.display="inline-block")}function y(){_.currStep===h.GoToCharacterPage&&document.getElementById("stats-menu-link").removeAttribute("class"),_.currStep===h.CharacterGoToTerminalPage&&document.getElementById("terminal-menu-link").removeAttribute("class"),_.currStep===h.TerminalGoToActiveScriptsPage&&document.getElementById("active-scripts-menu-link").removeAttribute("class"),_.currStep===h.ActiveScriptsPage&&document.getElementById("terminal-menu-link").removeAttribute("class"),_.currStep===h.GoToHacknetNodesPage&&document.getElementById("hacknet-nodes-menu-link").removeAttribute("class"),_.currStep===h.HacknetNodesGoToWorldPage&&document.getElementById("city-menu-link").removeAttribute("class"),_.currStep===h.WorldDescription&&document.getElementById("tutorial-menu-link").removeAttribute("class"),_.stepIsDone[_.currStep]=!0,_.currStepFAILED
- Contract is now self-destructing"),t.removeContract(n)):Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_40__.post)(`ContractFAILED
- ${n.getMaxNumTries()-n.tries} tries remaining`);break;case _CodingContracts__WEBPACK_IMPORTED_MODULE_7__.CodingContractResult.Cancelled:default:Object(_ui_postToTerminal__WEBPACK_IMPORTED_MODULE_40__.post)("Contract cancelled")}Terminal.contractOpen=!1}}}).call(this,__webpack_require__(151))},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTimeoutRef=void 0,t.setTimeoutRef=window.setTimeout.bind(window)},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HacknetServer=void 0;const a=n(11),r=n(705),i=n(37),o=n(147),s=n(418),l=n(27);class c extends r.BaseServer{constructor(e={hostname:"",ip:s.createRandomIp()}){super(e),this.cache=1,this.cores=1,this.hashCapacity=0,this.hashRate=0,this.level=1,this.onlineTimeSeconds=0,this.totalHashesGenerated=0,this.maxRam=1,this.updateHashCapacity()}calculateCacheUpgradeCost(e){return o.calculateCacheUpgradeCost(this.cache,e)}calculateCoreUpgradeCost(e,t){return o.calculateCoreUpgradeCost(this.cores,e,t)}calculateLevelUpgradeCost(e,t){return o.calculateLevelUpgradeCost(this.level,e,t)}calculateRamUpgradeCost(e,t){return o.calculateRamUpgradeCost(this.maxRam,e,t)}process(e=1){const t=e*a.CONSTANTS.MilliPerCycle/1e3;return this.hashRate*t}upgradeCache(e){this.cache=Math.min(i.HacknetServerConstants.MaxCache,Math.round(this.cache+e)),this.updateHashCapacity()}upgradeCore(e,t){this.cores=Math.min(i.HacknetServerConstants.MaxCores,Math.round(this.cores+e)),this.updateHashRate(t)}upgradeLevel(e,t){this.level=Math.min(i.HacknetServerConstants.MaxLevel,Math.round(this.level+e)),this.updateHashRate(t)}upgradeRam(e,t){for(let t=0;tTotal Stock Shares: "+p.numeralWrapper.format(this.corp().totalShares,"0.000a")+""+`Outstanding Shares: ${p.numeralWrapper.format(this.corp().issuedShares,"0.000a")}
`+`Private Shares: ${p.numeralWrapper.format(this.corp().totalShares-this.corp().issuedShares-this.corp().numShares,"0.000a")}`+"
{let e=Math.floor(37*this.rng.random()),t=o.createElement(o.Fragment,null),n=0,a=this.state.strategy.match(e);if(a&&Math.random()>.9)for(a=!1;this.state.strategy.match(e);)e++;a?(n=this.state.investment*this.state.strategy.payout,t=o.createElement(o.Fragment,null,"won ",l.Money(n))):(n=-this.state.investment,t=o.createElement(o.Fragment,null,"lost ",l.Money(-n))),this.win(this.props.p,n),this.setState({canPlay:!0,lock:!0,status:t,n:e}),this.reachedLimit(this.props.p)},1600))}render(){return o.createElement(o.Fragment,null,o.createElement("h1",null,this.currentNumber()),o.createElement("input",{type:"number",className:"text-input",onChange:this.updateInvestment,placeholder:"Amount to play",value:this.state.investment,disabled:!this.state.canPlay}),o.createElement("h1",null,this.state.status),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"3",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(3)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"6",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(6)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"9",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(9)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"12",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(12)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"15",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(15)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"18",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(18)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"21",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(21)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"24",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(24)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"27",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(27)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"30",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(30)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"33",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(33)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"36",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(36)))}))),o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"2",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(2)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"5",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(5)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"8",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(8)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"11",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(11)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"14",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(14)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"17",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(17)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"20",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(20)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"23",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(23)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"26",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(26)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"29",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(29)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"32",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(32)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"35",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(35)))}))),o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"1",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(1)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"4",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(4)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"7",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(7)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"10",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(10)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"13",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(13)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"16",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(16)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"19",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(19)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"22",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(22)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"25",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(25)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"28",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(28)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"31",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(31)))})),o.createElement("td",null,o.createElement(s.StdButton,{text:"34",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(34)))}))),o.createElement("tr",null,o.createElement("td",{colSpan:4},o.createElement(s.StdButton,{text:"1 to 12",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Third1))})),o.createElement("td",{colSpan:4},o.createElement(s.StdButton,{text:"13 to 24",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Third2))})),o.createElement("td",{colSpan:4},o.createElement(s.StdButton,{text:"25 to 36",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Third3))}))),o.createElement("tr",null,o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Red",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Red))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Black",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Black))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Odd",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Odd))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Even",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Even))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"High",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.High))})),o.createElement("td",{colSpan:2},o.createElement(s.StdButton,{text:"Low",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(_.Low))}))),o.createElement("tr",null,o.createElement("td",null,o.createElement(s.StdButton,{text:"0",disabled:!this.state.canPlay,onClick:m.trusted(()=>this.play(g(0)))}))))))}}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinFlip=void 0;const o=i(n(0)),s=n(63),l=n(298),c=n(405),u=n(485),m=0,p=1e4;t.CoinFlip=class extends c.Game{constructor(e){super(e),this.state={investment:1e3,result:o.createElement("span",null," "),status:"",playLock:!1},this.play=this.play.bind(this),this.updateInvestment=this.updateInvestment.bind(this)}updateInvestment(e){let t=parseInt(e.currentTarget.value);isNaN(t)&&(t=m),t>p&&(t=p),t
Your max stamina is determined primarily by your agility stat.
Your stamina gain rate is determined by both your agility and your max stamina. Higher max stamina leads to a higher gain rate.
Once your stamina falls below 50% of its max value, it begins to negatively affect the success rate of your contracts/operations. This penalty is shown in the overview panel. If the penalty is 15%, then this means your success rate would be multipled by 85% (100 - 15).
Your max stamina and stamina gain rate can also be increased by training, or through skills and Augmentation upgrades.")}},"?"),o.default.createElement("br",null),o.default.createElement("p",null,"Stamina Penalty: ",s.formatNumber(100*(1-e.bladeburner.calculateStaminaPenalty()),1),"%"),o.default.createElement("br",null),o.default.createElement("p",null,"Team Size: ",s.formatNumber(e.bladeburner.teamSize,0)),o.default.createElement("p",null,"Team Members Lost: ",s.formatNumber(e.bladeburner.teamLost,0)),o.default.createElement("br",null),o.default.createElement("p",null,"Num Times Hospitalized: ",e.bladeburner.numHosp),o.default.createElement("p",null,"Money Lost From Hospitalizations: ",c.Money(e.bladeburner.moneyLost)),o.default.createElement("br",null),o.default.createElement("p",null,"Current City: ",e.bladeburner.city),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Est. Synthoid Population: ",m.numeralWrapper.formatPopulation(e.bladeburner.getCurrentCity().popEst),o.default.createElement("span",{className:"tooltiptext"},"This is your Bladeburner division's estimate of how many Synthoids exist in your current city.")),o.default.createElement("div",{className:"help-tip",onClick:function(){p.dialogBoxCreate("The success rate of your contracts/operations depends on the population of Synthoids in your current city. The success rate that is shown to you is only an estimate, and it is based on your Synthoid population estimate.
Therefore, it is important that this Synthoid population estimate is accurate so that you have a better idea of your success rate for contracts/operations. Certain actions will increase the accuracy of your population estimate.
The Synthoid populations of cities can change due to your actions or random events. If random events occur, they will be logged in the Bladeburner Console.")}},"?"),o.default.createElement("br",null),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Est. Synthoid Communities: ",s.formatNumber(e.bladeburner.getCurrentCity().comms,0),o.default.createElement("span",{className:"tooltiptext"},"This is your Bladeburner divison's estimate of how many Synthoid communities exist in your current city.")),o.default.createElement("br",null),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"City Chaos: ",s.formatNumber(e.bladeburner.getCurrentCity().chaos),o.default.createElement("span",{className:"tooltiptext"},"The city's chaos level due to tensions and conflicts between humans and Synthoids. Having too high of a chaos level can make contracts and operations harder.")),o.default.createElement("br",null),o.default.createElement("br",null),o.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Bonus time: ",s.convertTimeMsToTimeElapsedString(e.bladeburner.storedCycles/l.BladeburnerConstants.CyclesPerSecond*1e3),o.default.createElement("br",null),o.default.createElement("span",{className:"tooltiptext"},"You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by browser). Bonus time makes the Bladeburner mechanic progress faster, up to 5x the normal speed.")),o.default.createElement("p",null,"Skill Points: ",s.formatNumber(e.bladeburner.skillPoints,0)),o.default.createElement("br",null),u.StatsTable([["Aug. Success Chance mult: ",s.formatNumber(100*e.player.bladeburner_success_chance_mult,1)+"%"],["Aug. Max Stamina mult: ",s.formatNumber(100*e.player.bladeburner_max_stamina_mult,1)+"%"],["Aug. Stamina Gain mult: ",s.formatNumber(100*e.player.bladeburner_stamina_gain_mult,1)+"%"],["Aug. Field Analysis mult: ",s.formatNumber(100*e.player.bladeburner_analysis_mult,1)+"%"]]),o.default.createElement("br",null),o.default.createElement("a",{onClick:function(){const t="bladeburner-travel-popup";d.createPopup(t,g.TravelPopup,{bladeburner:e.bladeburner,popupId:t})},className:"a-link-button",style:{display:"inline-block"}},"Travel"),o.default.createElement("a",{onClick:function(){const t=h.Factions.Bladeburners;t.isMember?(e.engine.loadFactionContent(),_.displayFactionContent("Bladeburners")):e.bladeburner.rank>=l.BladeburnerConstants.RankNeededForFaction?(_.joinFaction(t),p.dialogBoxCreate("Congratulations! You were accepted into the Bladeburners faction")):p.dialogBoxCreate("You need a rank of 25 to join the Bladeburners Faction!")},className:"a-link-button tooltip",style:{display:"inline-block"}},o.default.createElement("span",{className:"tooltiptext"},"Apply to the Bladeburner Faction, or go to the faction page if you are already a member"),"Faction"),o.default.createElement("br",null),o.default.createElement("br",null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TerritorySubpage=void 0;const r=a(n(0)),i=n(3),o=n(12),s=n(20),l=n(93);t.TerritorySubpage=function(e){function t(e){const t=100*e;return t<=0?s.formatNumber(0,2):t>=100?s.formatNumber(100,2):s.formatNumber(t,2)}const n=l.AllGangs[e.gang.facName].power,a=Object.keys(l.AllGangs).filter(t=>t!=e.gang.facName);return r.default.createElement("div",{style:{width:"70%"}},r.default.createElement("p",{className:"noselect"},"This page shows how much territory your Gang controls. This statistic is listed as a percentage, which represents how much of the total territory you control.",r.default.createElement("br",null),r.default.createElement("br",null),"Every ~20 seconds, your gang has a chance to 'clash' with other gangs. Your chance to win a clash depends on your gang's power, which is listed in the display below. Your gang's power slowly accumulates over time. The accumulation rate is determined by the stats of all Gang members you have assigned to the 'Territory Warfare' task. Gang members that are not assigned to this task do not contribute to your gang's power. Your gang also loses a small amount of power whenever you lose a clash.",r.default.createElement("br",null),r.default.createElement("br",null),"NOTE: Gang members assigned to 'Territory Warfare' can be killed during clashes. This can happen regardless of whether you win or lose the clash. A gang member being killed results in both respect and power loss for your gang.",r.default.createElement("br",null),r.default.createElement("br",null),"The amount of territory you have affects all aspects of your Gang members' production, including money, respect, and wanted level. It is very beneficial to have high territory control.",r.default.createElement("br",null),r.default.createElement("br",null)),r.default.createElement("input",{checked:e.gang.territoryWarfareEngaged,id:"warfare",type:"checkbox",style:{display:"inline-block",margin:"2px"},onChange:t=>e.gang.territoryWarfareEngaged=t.target.checked}),r.default.createElement("label",{htmlFor:"warfare",className:"tooltip noselect",style:{color:"white",display:"inline-block"}},"Engage in Territory Warfare",r.default.createElement("span",{className:"tooltiptext",style:{display:"inline-block"}},"Engaging in Territory Warfare sets your clash chance to 100%. Disengaging will cause your clash chance to gradually decrease until it reaches 0%.")),r.default.createElement("br",null),r.default.createElement("p",{style:{display:"inline-block"}},"Territory Clash Chance: ",i.numeralWrapper.formatPercentage(e.gang.territoryClashChance,3)),r.default.createElement("div",{className:"help-tip noselect",style:{display:"inline-block"},onClick:function(){o.dialogBoxCreate("This percentage represents the chance you have of 'clashing' with with another gang. If you do not wish to gain/lose territory, then keep this percentage at 0% by not engaging in territory warfare.")}},"?"),r.default.createElement("br",null),r.default.createElement("input",{checked:e.gang.notifyMemberDeath,id:"notify",type:"checkbox",style:{display:"inline-block",margin:"2px"},onChange:t=>e.gang.notifyMemberDeath=t.target.checked}),r.default.createElement("label",{htmlFor:"warfare",className:"tooltip noselect",style:{color:"white",display:"inline-block"}},"Notify about Gang Member Deaths",r.default.createElement("span",{className:"tooltiptext",style:{display:"inline-block"}},"If this is enabled, then you will receive a pop-up notifying you whenever one of your Gang Members dies in a territory clash.")),r.default.createElement("br",null),r.default.createElement("fieldset",{style:{display:"block",margin:"6px"}},r.default.createElement("p",null,r.default.createElement("b",null,r.default.createElement("u",null,e.gang.facName)),r.default.createElement("br",null),"Power: ",s.formatNumber(l.AllGangs[e.gang.facName].power,6),r.default.createElement("br",null),"Territory: ",t(l.AllGangs[e.gang.facName].territory),"%",r.default.createElement("br",null),r.default.createElement("br",null),a.map(e=>(function(e){const a=l.AllGangs[e].power,o=n/(a+n);return r.default.createElement("span",{key:e},r.default.createElement("u",null,e),r.default.createElement("br",null),"Power: ",s.formatNumber(a,6),r.default.createElement("br",null),"Territory: ",t(l.AllGangs[e].territory),"%",r.default.createElement("br",null),"Chance to win clash with this gang: ",i.numeralWrapper.formatPercentage(o,3),r.default.createElement("br",null),r.default.createElement("br",null))})(e)))))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.RecruitPopup=void 0;const o=i(n(0)),s=n(79),l=n(12);t.RecruitPopup=function(e){const[t,n]=o.useState("");function a(){""!==t?e.gang.canRecruitMember()?e.gang.recruitMember(t)?(e.onRecruit(),s.removePopup(e.popupId)):l.dialogBoxCreate("You already have a gang member with this name!"):l.dialogBoxCreate("You cannot recruit another Gang member!"):l.dialogBoxCreate("You must enter a name for your Gang member!")}function r(){s.removePopup(e.popupId)}return o.default.createElement(o.default.Fragment,null,o.default.createElement("p",{className:"noselect"},"Enter a name for your new Gang member:"),o.default.createElement("br",null),o.default.createElement("input",{autoFocus:!0,onKeyUp:function(e){13===e.keyCode&&a(),27===e.keyCode&&r()},onChange:function(e){n(e.target.value)},className:"text-input noselect",type:"text",placeholder:"unique name"}),o.default.createElement("a",{className:"std-button",onClick:a},"Recruit Gang Member"),o.default.createElement("a",{className:"std-button",onClick:r},"Cancel"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecruitButton=void 0;const r=a(n(0)),i=n(1024),o=n(703),s=n(20),l=n(79);t.RecruitButton=function(e){if(e.gang.members.length>=o.GangConstants.MaximumGangMembers)return r.default.createElement(r.default.Fragment,null);if(!e.gang.canRecruitMember()){const t=e.gang.getRespectNeededToRecruitMember();return r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{className:"a-link-button-inactive",style:{display:"inline-block",margin:"10px"}},"Recruit Gang Member"),r.default.createElement("p",{style:{margin:"10px",color:"red",display:"inline-block"}},s.formatNumber(t,2)," respect needed to recruit next member"))}return r.default.createElement(r.default.Fragment,null,r.default.createElement("a",{className:"a-link-button",onClick:function(){const t="recruit-gang-member-popup";l.createPopup(t,i.RecruitPopup,{gang:e.gang,popupId:t,onRecruit:e.onRecruit})},style:{display:"inline-block",margin:"10px"}},"Recruit Gang Member"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TaskDescription=void 0;const r=a(n(0)),i=n(300);t.TaskDescription=function(e){const t=i.GangMemberTasks[e.member.task],n=t?t.desc:i.GangMemberTasks.Unassigned.desc;return r.default.createElement("p",{className:"inline noselect",dangerouslySetInnerHTML:{__html:n}})}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TaskSelector=void 0;const o=i(n(0)),s=n(3),l=n(286),c=n(125);t.TaskSelector=function(e){const[t,n]=o.useState(e.member.task),a=e.gang.getAllTaskNames(),r=[["Money:",c.MoneyRate(5*e.member.calculateMoneyGain(e.gang))],["Respect:",`${s.numeralWrapper.formatRespect(5*e.member.calculateRespectGain(e.gang))} / sec`],["Wanted Level:",`${s.numeralWrapper.formatWanted(5*e.member.calculateWantedLevelGain(e.gang))} / sec`],["Total Respect:",`${s.numeralWrapper.formatRespect(e.member.earnedRespect)}`]];return o.default.createElement(o.default.Fragment,null,o.default.createElement("select",{onChange:function(t){const a=t.target.value;e.member.assignToTask(a),n(a),e.onTaskChange()},className:"dropdown noselect",value:t},o.default.createElement("option",{key:0,value:"---"},"---"),a.map((e,t)=>o.default.createElement("option",{key:t+1,value:e},e))),o.default.createElement("div",null,l.StatsTable(r)))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AscensionPopup=void 0;const o=i(n(0)),s=n(3),l=n(79),c=n(12);t.AscensionPopup=function(e){const t=o.useState(!1)[1];o.useEffect(()=>{const e=setInterval(()=>t(e=>!e),1e3);return()=>clearInterval(e)},[]);const n=e.member.getAscensionResults();return o.default.createElement(o.default.Fragment,null,o.default.createElement("pre",null,"Are you sure you want to ascend this member? They will lose all of",o.default.createElement("br",null),"their non-Augmentation upgrades and their stats will reset back to 1.",o.default.createElement("br",null),o.default.createElement("br",null),"Furthermore, your gang will lose ",s.numeralWrapper.formatRespect(e.member.earnedRespect)," respect",o.default.createElement("br",null),o.default.createElement("br",null),"In return, they will gain the following permanent boost to stat multipliers:",o.default.createElement("br",null),"Hacking: x",s.numeralWrapper.format(n.hack,"0.000"),o.default.createElement("br",null),"Strength: x",s.numeralWrapper.format(n.str,"0.000"),o.default.createElement("br",null),"Defense: x",s.numeralWrapper.format(n.def,"0.000"),o.default.createElement("br",null),"Dexterity: x",s.numeralWrapper.format(n.dex,"0.000"),o.default.createElement("br",null),"Agility: x",s.numeralWrapper.format(n.agi,"0.000"),o.default.createElement("br",null),"Charisma: x",s.numeralWrapper.format(n.cha,"0.000"),o.default.createElement("br",null)),o.default.createElement("button",{className:"std-button",onClick:function(){e.onAscend();const t=e.gang.ascendMember(e.member);c.dialogBoxCreate(o.default.createElement("p",null,"You ascended ",e.member.name,"!",o.default.createElement("br",null),o.default.createElement("br",null),"Your gang lost ",s.numeralWrapper.formatRespect(t.respect)," respect.",o.default.createElement("br",null),o.default.createElement("br",null),e.member.name," gained the following stat multipliers for ascending:",o.default.createElement("br",null),"Hacking: x",s.numeralWrapper.format(t.hack,"0.000"),o.default.createElement("br",null),"Strength: x",s.numeralWrapper.format(t.str,"0.000"),o.default.createElement("br",null),"Defense: x",s.numeralWrapper.format(t.def,"0.000"),o.default.createElement("br",null),"Dexterity: x",s.numeralWrapper.format(t.dex,"0.000"),o.default.createElement("br",null),"Agility: x",s.numeralWrapper.format(t.agi,"0.000"),o.default.createElement("br",null),"Charisma: x",s.numeralWrapper.format(t.cha,"0.000"),o.default.createElement("br",null))),l.removePopup(e.popupId)}},"Ascend"),o.default.createElement("button",{className:"std-button",onClick:function(){l.removePopup(e.popupId)}},"Cancel"))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberStats=void 0;const r=a(n(0)),i=n(12),o=n(20),s=n(3),l=n(79),c=n(1028);t.GangMemberStats=function(e){const t={hack:e.member.calculateAscensionMult(e.member.hack_asc_points),str:e.member.calculateAscensionMult(e.member.str_asc_points),def:e.member.calculateAscensionMult(e.member.def_asc_points),dex:e.member.calculateAscensionMult(e.member.dex_asc_points),agi:e.member.calculateAscensionMult(e.member.agi_asc_points),cha:e.member.calculateAscensionMult(e.member.cha_asc_points)};return r.default.createElement(r.default.Fragment,null,r.default.createElement("span",{className:"tooltiptext smallfont"},"Hk: x",s.numeralWrapper.formatMultiplier(e.member.hack_mult*t.hack),"(x",s.numeralWrapper.formatMultiplier(e.member.hack_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.hack)," Asc)",r.default.createElement("br",null),"St: x",s.numeralWrapper.formatMultiplier(e.member.str_mult*t.str),"(x",s.numeralWrapper.formatMultiplier(e.member.str_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.str)," Asc)",r.default.createElement("br",null),"Df: x",s.numeralWrapper.formatMultiplier(e.member.def_mult*t.def),"(x",s.numeralWrapper.formatMultiplier(e.member.def_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.def)," Asc)",r.default.createElement("br",null),"Dx: x",s.numeralWrapper.formatMultiplier(e.member.dex_mult*t.dex),"(x",s.numeralWrapper.formatMultiplier(e.member.dex_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.dex)," Asc)",r.default.createElement("br",null),"Ag: x",s.numeralWrapper.formatMultiplier(e.member.agi_mult*t.agi),"(x",s.numeralWrapper.formatMultiplier(e.member.agi_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.agi)," Asc)",r.default.createElement("br",null),"Ch: x",s.numeralWrapper.formatMultiplier(e.member.cha_mult*t.cha),"(x",s.numeralWrapper.formatMultiplier(e.member.cha_mult)," Eq, x",s.numeralWrapper.formatMultiplier(t.cha)," Asc)"),r.default.createElement("pre",null,"Hacking: ",o.formatNumber(e.member.hack,0)," (",s.numeralWrapper.formatExp(e.member.hack_exp)," exp)",r.default.createElement("br",null),"Strength: ",o.formatNumber(e.member.str,0)," (",s.numeralWrapper.formatExp(e.member.str_exp)," exp)",r.default.createElement("br",null),"Defense: ",o.formatNumber(e.member.def,0)," (",s.numeralWrapper.formatExp(e.member.def_exp)," exp)",r.default.createElement("br",null),"Dexterity: ",o.formatNumber(e.member.dex,0)," (",s.numeralWrapper.formatExp(e.member.dex_exp)," exp)",r.default.createElement("br",null),"Agility: ",o.formatNumber(e.member.agi,0)," (",s.numeralWrapper.formatExp(e.member.agi_exp)," exp)",r.default.createElement("br",null),"Charisma: ",o.formatNumber(e.member.cha,0)," (",s.numeralWrapper.formatExp(e.member.cha_exp)," exp)",r.default.createElement("br",null)),r.default.createElement("br",null),e.member.canAscend()&&r.default.createElement(r.default.Fragment,null,r.default.createElement("button",{className:"accordion-button noselect",onClick:function(){const t=`gang-management-ascend-member ${e.member.name}`;l.createPopup(t,c.AscensionPopup,{member:e.member,gang:e.gang,popupId:t,onAscend:e.onAscend})}},"Ascend"),r.default.createElement("div",{className:"help-tip noselect",style:{marginTop:"5px"},onClick:function(){i.dialogBoxCreate(r.default.createElement(r.default.Fragment,null,"Ascending a Gang Member resets the member's progress and stats in exchange for a permanent boost to their stat multipliers.",r.default.createElement("br",null),r.default.createElement("br",null),"The additional stat multiplier that the Gang Member gains upon ascension is based on the amount of exp they have.",r.default.createElement("br",null),r.default.createElement("br",null),"Upon ascension, the member will lose all of its non-Augmentation Equipment and your gang will lose respect equal to the total respect earned by the member."))}},"?")))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberAccordionContent=void 0;const o=i(n(0)),s=n(1029),l=n(1027),c=n(1026);t.GangMemberAccordionContent=function(e){const t=o.useState(!1)[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:"gang-member-info-div tooltip"},o.default.createElement(s.GangMemberStats,{onAscend:()=>t(e=>!e),gang:e.gang,member:e.member})),o.default.createElement("div",{className:"gang-member-info-div"},o.default.createElement(l.TaskSelector,{onTaskChange:()=>t(e=>!e),gang:e.gang,member:e.member})),o.default.createElement("div",{className:"gang-member-info-div"},o.default.createElement(c.TaskDescription,{member:e.member})))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberAccordion=void 0;const r=a(n(0)),i=n(167),o=n(1030);t.GangMemberAccordion=function(e){return r.default.createElement(i.Accordion,{panelInitiallyOpened:!0,headerContent:r.default.createElement(r.default.Fragment,null,e.member.name),panelContent:r.default.createElement(o.GangMemberAccordionContent,{gang:e.gang,member:e.member})})}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberUpgradePopup=void 0;const o=i(n(0)),s=n(20),l=n(3),c=n(183),u=n(31),m=n(79),p=n(506);function d(e){const t=o.useState(!1)[1];function n(t,n){return Object.keys(c.GangMemberUpgrades).filter(a=>{const r=c.GangMemberUpgrades[a];return!e.player.money.lt(e.gang.getUpgradeCost(r))&&(r.type===n&&!t.includes(a))}).map(e=>c.GangMemberUpgrades[e])}const a=n(e.member.upgrades,p.UpgradeType.Weapon),r=n(e.member.upgrades,p.UpgradeType.Armor),i=n(e.member.upgrades,p.UpgradeType.Vehicle),l=n(e.member.upgrades,p.UpgradeType.Rootkit),m=n(e.member.augmentations,p.UpgradeType.Augmentation);function d(e){const t=c.GangMemberUpgrades[e];return o.default.createElement("div",{key:e,className:"gang-owned-upgrade tooltip"},t.name,o.default.createElement("span",{className:"tooltiptext",dangerouslySetInnerHTML:{__html:t.desc}}))}function h(n,a=!1){return o.default.createElement("a",{key:n.name,className:"a-link-button tooltip",style:{margin:"2px",padding:"2px",display:"block",fontSize:"11px"},onClick:function(){e.member.buyUpgrade(n,e.player,e.gang),t(e=>!e)}},n.name," - ",u.Money(e.gang.getUpgradeCost(n)),o.default.createElement("span",{className:a?"tooltiptextleft":"tooltiptext",dangerouslySetInnerHTML:{__html:n.desc}}))}const _=e.member.calculateAscensionMult(e.member.hack_asc_points),g=e.member.calculateAscensionMult(e.member.str_asc_points),f=e.member.calculateAscensionMult(e.member.def_asc_points),y=e.member.calculateAscensionMult(e.member.dex_asc_points),b=e.member.calculateAscensionMult(e.member.agi_asc_points),E=e.member.calculateAscensionMult(e.member.cha_asc_points);return o.default.createElement("div",{style:{border:"1px solid white"}},o.default.createElement("h1",null,e.member.name,"(",e.member.task,")"),o.default.createElement("pre",{style:{fontSize:"14px",display:"inline-block",width:"20%"}},"Hack: ",e.member.hack," (x",s.formatNumber(e.member.hack_mult*_,2),")",o.default.createElement("br",null),"Str: ",e.member.str," (x",s.formatNumber(e.member.str_mult*g,2),")",o.default.createElement("br",null),"Def: ",e.member.def," (x",s.formatNumber(e.member.def_mult*f,2),")",o.default.createElement("br",null),"Dex: ",e.member.dex," (x",s.formatNumber(e.member.dex_mult*y,2),")",o.default.createElement("br",null),"Agi: ",e.member.agi," (x",s.formatNumber(e.member.agi_mult*b,2),")",o.default.createElement("br",null),"Cha: ",e.member.cha," (x",s.formatNumber(e.member.cha_mult*E,2),")"),o.default.createElement("div",{className:"gang-owned-upgrades-div noselect"},"Purchased Upgrades: ",e.member.upgrades.map(e=>d(e)),e.member.augmentations.map(e=>d(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Weapons"),a.map(e=>h(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Armor"),r.map(e=>h(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Vehicles"),i.map(e=>h(e))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Rootkits"),l.map(e=>h(e,!0))),o.default.createElement("div",{className:"noselect",style:{width:"20%",display:"inline-block"}},o.default.createElement("h2",null,"Augmentations"),m.map(e=>h(e,!0))))}t.GangMemberUpgradePopup=function(e){const t=o.useState(!1)[1],[n,a]=o.useState("");function r(t){27===t.keyCode&&m.removePopup(e.popupId)}return o.useEffect(()=>{window.addEventListener("keydown",r);const e=setInterval(()=>t(e=>!e),1e3);return()=>{clearInterval(e),window.removeEventListener("keydown",r)}},[]),o.default.createElement(o.default.Fragment,null,o.default.createElement("input",{className:"text-input noselect",value:n,placeholder:"Filter gang member",onChange:e=>a(e.target.value)}),o.default.createElement("p",{className:"tooltip",style:{marginLeft:"6px",display:"inline-block"}},"Discount: -",l.numeralWrapper.formatPercentage(1-1/e.gang.getDiscount()),o.default.createElement("span",{className:"tooltiptext noselect"},"You get a discount on equipment and upgrades based on your gang's respect and power. More respect and power leads to more discounts.")),e.gang.members.map(t=>o.default.createElement(d,{key:t.name,player:e.player,gang:e.gang,member:t})))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GangMemberList=void 0;const o=i(n(0)),s=n(1032),l=n(1031),c=n(79),u=n(1025);t.GangMemberList=function(e){const[t,n]=o.useState(""),a=o.useState(!1)[1],r=e.gang.members.filter(e=>e.name.indexOf(t)>-1||e.task.indexOf(t)>-1);return o.default.createElement(o.default.Fragment,null,o.default.createElement(u.RecruitButton,{onRecruit:()=>a(e=>!e),gang:e.gang}),o.default.createElement("br",null),o.default.createElement("input",{className:"text-input noselect",placeholder:"Filter gang member",style:{margin:"5px",padding:"5px"},value:t,onChange:function(e){n(e.target.value)}}),o.default.createElement("a",{className:"a-link-button",style:{display:"inline-block"},onClick:function(){c.createPopup("gang-upgrade-popup",s.GangMemberUpgradePopup,{gang:e.gang,player:e.player,popupId:"gang-upgrade-popup"})}},"Manage Equipment"),o.default.createElement("ul",null,r.map(t=>o.default.createElement("li",{key:t.name},o.default.createElement(l.GangMemberAccordion,{gang:e.gang,member:t})))))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.BonusTime=void 0;const o=i(n(0)),s=n(11),l=n(20);t.BonusTime=function(e){const t=1e3/s.CONSTANTS._idleSpeed;if(e.gang.storedCycles/t*1e3<=5e3)return o.createElement(o.Fragment,null);const n=e.gang.storedCycles/t*1e3;return o.createElement(o.Fragment,null,o.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Bonus time: ",l.convertTimeMsToTimeElapsedString(n),o.createElement("span",{className:"tooltiptext noselect"},"You gain bonus time while offline or when the game is inactive (e.g. when the tab is throttled by the browser). Bonus time makes the Gang mechanic progress faster, up to 5x the normal speed.")),o.createElement("br",null))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GangStats=void 0;const r=a(n(0)),i=n(16),o=n(20),s=n(3),l=n(125),c=n(67),u=n(93),m=n(1034);t.GangStats=function(e){const t=100*u.AllGangs[e.gang.facName].territory;let n;return n=t<=0?o.formatNumber(0,2):t>=100?o.formatNumber(100,2):o.formatNumber(t,2),r.default.createElement(r.default.Fragment,null,r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Respect: ",s.numeralWrapper.formatRespect(e.gang.respect)," (",s.numeralWrapper.formatRespect(5*e.gang.respectGainRate)," / sec)",r.default.createElement("span",{className:"tooltiptext"},"Represents the amount of respect your gang has from other gangs and criminal organizations. Your respect affects the amount of money your gang members will earn, and also determines how much reputation you are earning with your gang's corresponding Faction.")),r.default.createElement("br",null),r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Wanted Level: ",s.numeralWrapper.formatWanted(e.gang.wanted)," (",s.numeralWrapper.formatWanted(5*e.gang.wantedGainRate)," / sec)",r.default.createElement("span",{className:"tooltiptext"},"Represents how much the gang is wanted by law enforcement. The higher your gang's wanted level, the harder it will be for your gang members to make money and earn respect. Note that the minimum wanted level is 1.")),r.default.createElement("br",null),r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Wanted Level Penalty: -",o.formatNumber(100*(1-e.gang.getWantedPenalty()),2),"%",r.default.createElement("span",{className:"tooltiptext"},"Penalty for respect and money gain rates due to Wanted Level")),r.default.createElement("br",null),r.default.createElement("div",null,r.default.createElement("p",{style:{display:"inline-block"}},"Money gain rate: ",l.MoneyRate(5*e.gang.moneyGainRate))),r.default.createElement("br",null),r.default.createElement("p",{className:"tooltip",style:{display:"inline-block"}},"Territory: ",n,"%",r.default.createElement("span",{className:"tooltiptext"},"The percentage of total territory your Gang controls")),r.default.createElement("br",null),r.default.createElement("p",{style:{display:"inline-block"}},"Faction reputation: ",c.Reputation(i.Factions[e.gang.facName].playerReputation)),r.default.createElement("br",null),r.default.createElement(m.BonusTime,{gang:e.gang}))}},function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ManagementSubpage=void 0;const r=a(n(0)),i=n(1035),o=n(1033);t.ManagementSubpage=function(e){return r.default.createElement("div",{style:{display:"block"}},r.default.createElement("p",{className:"noselect",style:{width:"70%"}},"This page is used to manage your gang members and get an overview of your gang's stats.",r.default.createElement("br",null),r.default.createElement("br",null),"If a gang member is not earning much money or respect, the task that you have assigned to that member might be too difficult. Consider training that member's stats or choosing an easier task. The tasks closer to the top of the dropdown list are generally easier. Alternatively, the gang member's low production might be due to the fact that your wanted level is too high. Consider assigning a few members to the '",e.gang.isHackingGang?"Ethical Hacking":"Vigilante Justice","' task to lower your wanted level.",r.default.createElement("br",null),r.default.createElement("br",null),"Installing Augmentations does NOT reset your progress with your Gang. Furthermore, after installing Augmentations, you will automatically be a member of whatever Faction you created your gang with.",r.default.createElement("br",null),r.default.createElement("br",null),"You can also manage your gang programmatically through Netscript using the Gang API"),r.default.createElement("br",null),r.default.createElement(i.GangStats,{gang:e.gang}),r.default.createElement("br",null),r.default.createElement(o.GangMemberList,{gang:e.gang,player:e.player}))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Root=void 0;const o=i(n(0)),s=n(1036),l=n(1023),c=n(80);t.Root=function(e){const[t,n]=o.useState(!0),a=o.useState(!1)[1];return o.useEffect(()=>{const e=setInterval(()=>a(e=>!e),1e3);return()=>clearInterval(e)},[]),o.default.createElement(o.default.Fragment,null,o.default.createElement("a",{className:"a-link-button",style:{display:"inline-block"},onClick:function(){e.engine.loadFactionContent(),c.displayFactionContent(e.gang.facName)}},"Back"),o.default.createElement("a",{className:t?"a-link-button-inactive":"a-link-button",style:{display:"inline-block"},onClick:()=>n(!0)},"Gang Management"),o.default.createElement("a",{className:t?"a-link-button":"a-link-button-inactive",style:{display:"inline-block"},onClick:()=>n(!1)},"Gang Territory"),t?o.default.createElement(s.ManagementSubpage,{gang:e.gang,player:e.player}):o.default.createElement(l.TerritorySubpage,{gang:e.gang}))}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PurchasedAugmentations=void 0;const o=i(n(0)),s=n(14),l=n(4),c=n(1),u=n(667);t.PurchasedAugmentations=function(){const e=[];let t=-1;for(let e=c.Player.queuedAugmentations.length-1;e>=0;e--)if(c.Player.queuedAugmentations[e].name===l.AugmentationNames.NeuroFluxGovernor){t=e;break}for(let n=0;n
Price Forecast indicates the probability the stock has of increasing or decreasing. A '+' forecast means the stock has a higher chance of increasing than decreasing, and a '-' means the opposite. The number of '+/-' symbols is used to illustrate the magnitude of these probabilities. For example, '+++' means that the stock has a significantly higher chance of increasing than decreasing, while '+' means that the stock only has a slightly higher chance of increasing than decreasing.
Volatility represents the maximum percentage by which a stock's price can change every tick (a tick occurs every few seconds while the game is running).
A stock's price forecast can change over time. This is also affected by volatility. The more volatile a stock is, the more its price forecast will change.")}purchaseWseAccount(){if(this.props.p.hasWseAccount)return;if(!this.props.p.canAfford(l.CONSTANTS.WSEAccountCost))return;this.props.p.hasWseAccount=!0,this.props.initStockMarket(),this.props.p.loseMoney(l.CONSTANTS.WSEAccountCost),this.props.rerender();const e=document.getElementById("world-menu-header");e instanceof HTMLElement&&(e.click(),e.click())}purchaseTixApiAccess(){this.props.p.hasTixApiAccess||this.props.p.canAfford(l.CONSTANTS.TIXAPICost)&&(this.props.p.hasTixApiAccess=!0,this.props.p.loseMoney(l.CONSTANTS.TIXAPICost),this.props.rerender())}purchase4SMarketData(){this.props.p.has4SData||this.props.p.canAfford(s.getStockMarket4SDataCost())&&(this.props.p.has4SData=!0,this.props.p.loseMoney(s.getStockMarket4SDataCost()),this.props.rerender())}purchase4SMarketDataTixApiAccess(){this.props.p.has4SDataTixApi||this.props.p.canAfford(s.getStockMarket4STixApiCost())&&(this.props.p.has4SDataTixApi=!0,this.props.p.loseMoney(s.getStockMarket4STixApiCost()),this.props.rerender())}renderPurchaseWseAccountButton(){if(this.props.p.hasWseAccount)return o.createElement(u.StdButtonPurchased,{text:"WSE Account - Purchased"});{const e=l.CONSTANTS.WSEAccountCost;return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e),onClick:this.purchaseWseAccount,text:o.createElement(o.Fragment,null,"Buy WSE Account - ",m.Money(e))})}}renderPurchaseTixApiAccessButton(){if(this.props.p.hasTixApiAccess)return o.createElement(u.StdButtonPurchased,{text:"TIX API Access - Purchased"});{const e=l.CONSTANTS.TIXAPICost;return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e)||!this.props.p.hasWseAccount,onClick:this.purchaseTixApiAccess,style:d,text:o.createElement(o.Fragment,null,"Buy Trade Information eXchange (TIX) API Access - ",m.Money(e))})}}renderPurchase4SMarketDataButton(){if(this.props.p.has4SData)return o.createElement(u.StdButtonPurchased,{text:"4S Market Data - Purchased",tooltip:"Lets you view additional pricing and volatility information about stocks"});{const e=s.getStockMarket4SDataCost();return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e)||!this.props.p.hasWseAccount,onClick:this.purchase4SMarketData,text:o.createElement(o.Fragment,null,"Buy 4S Market Data Access - ",m.Money(e)),tooltip:"Lets you view additional pricing and volatility information about stocks"})}}renderPurchase4SMarketDataTixApiAccessButton(){if(this.props.p.hasTixApiAccess){if(this.props.p.has4SDataTixApi)return o.createElement(u.StdButtonPurchased,{text:"4S Market Data TIX API - Purchased",tooltip:"Let you access 4S Market Data through Netscript"});{const e=s.getStockMarket4STixApiCost();return o.createElement(c.StdButton,{disabled:!this.props.p.canAfford(e),onClick:this.purchase4SMarketDataTixApiAccess,text:o.createElement(o.Fragment,null,"Buy 4S Market Data TIX API Access - ",m.Money(e)),tooltip:"Let you access 4S Market Data through Netscript"})}}return o.createElement(c.StdButton,{disabled:!0,text:"Buy 4S Market Data TIX API Access",tooltip:"Requires TIX API Access"})}render(){return o.createElement("div",{className:"stock-market-info-and-purchases"},o.createElement("p",null,"Welcome to the World Stock Exchange (WSE)!"),o.createElement("button",{className:"std-button"},o.createElement("a",{href:"https://bitburner.readthedocs.io/en/latest/basicgameplay/stockmarket.html",target:"_blank"},"Investopedia")),o.createElement("br",null),o.createElement("p",null,"To begin trading, you must first purchase an account:"),this.renderPurchaseWseAccountButton(),o.createElement("h2",null,"Trade Information eXchange (TIX) API"),o.createElement("p",null,"TIX, short for Trade Information eXchange, is the communications protocol used by the WSE. Purchasing access to the TIX API lets you write code to create your own algorithmic/automated trading strategies."),this.renderPurchaseTixApiAccessButton(),o.createElement("h2",null,"Four Sigma (4S) Market Data Feed"),o.createElement("p",null,"Four Sigma's (4S) Market Data Feed provides information about stocks that will help your trading strategies."),this.renderPurchase4SMarketDataButton(),o.createElement("button",{className:"help-tip-big",onClick:this.handleClick4SMarketDataHelpTip},"?"),this.renderPurchase4SMarketDataTixApiAccessButton(),o.createElement("p",null,"Commission Fees: Every transaction you make has a ",m.Money(l.CONSTANTS.StockMarketCommission)," commission fee."),o.createElement("br",null),o.createElement("p",null,"WARNING: When you reset after installing Augmentations, the Stock Market is reset. You will retain your WSE Account, access to the TIX API, and 4S Market Data access. However, all of your stock positions are lost, so make sure to sell your stocks before installing Augmentations!"))}}},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.StockMarketRoot=void 0;const o=i(n(0)),s=n(1071),l=n(1070);t.StockMarketRoot=class extends o.Component{constructor(e){super(e),this.state={rerenderFlag:!1},this.rerender=this.rerender.bind(this)}rerender(){this.setState(e=>({rerenderFlag:!e.rerenderFlag}))}render(){return o.createElement("div",null,o.createElement(s.InfoAndPurchases,{initStockMarket:this.props.initStockMarket,p:this.props.p,rerender:this.rerender}),this.props.p.hasWseAccount&&o.createElement(l.StockTickers,{buyStockLong:this.props.buyStockLong,buyStockShort:this.props.buyStockShort,cancelOrder:this.props.cancelOrder,eventEmitterForReset:this.props.eventEmitterForReset,p:this.props.p,placeOrder:this.props.placeOrder,sellStockLong:this.props.sellStockLong,sellStockShort:this.props.sellStockShort,stockMarket:this.props.stockMarket}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitStockMetadata=void 0;const a=n(299),r=n(47);t.InitStockMetadata=[{b:!0,initPrice:{max:28e3,min:17e3},marketCap:24e11,mv:{divisor:100,max:50,min:40},name:r.LocationName.AevumECorp,otlkMag:19,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.AevumECorp]},{b:!0,initPrice:{max:34e3,min:24e3},marketCap:24e11,mv:{divisor:100,max:50,min:40},name:r.LocationName.Sector12MegaCorp,otlkMag:19,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12MegaCorp]},{b:!0,initPrice:{max:25e3,min:12e3},marketCap:16e11,mv:{divisor:100,max:80,min:70},name:r.LocationName.Sector12BladeIndustries,otlkMag:13,spreadPerc:{divisor:10,max:6,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12BladeIndustries]},{b:!0,initPrice:{max:25e3,min:1e4},marketCap:15e11,mv:{divisor:100,max:75,min:65},name:r.LocationName.AevumClarkeIncorporated,otlkMag:12,spreadPerc:{divisor:10,max:5,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.AevumClarkeIncorporated]},{b:!0,initPrice:{max:43e3,min:32e3},marketCap:18e11,mv:{divisor:100,max:70,min:60},name:r.LocationName.VolhavenOmniTekIncorporated,otlkMag:12,spreadPerc:{divisor:10,max:6,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.VolhavenOmniTekIncorporated]},{b:!0,initPrice:{max:8e4,min:5e4},marketCap:2e12,mv:{divisor:100,max:110,min:100},name:r.LocationName.Sector12FourSigma,otlkMag:17,spreadPerc:{divisor:10,max:10,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12FourSigma]},{b:!0,initPrice:{max:28e3,min:16e3},marketCap:19e11,mv:{divisor:100,max:85,min:75},name:r.LocationName.ChongqingKuaiGongInternational,otlkMag:10,spreadPerc:{divisor:10,max:7,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.ChongqingKuaiGongInternational]},{b:!0,initPrice:{max:36e3,min:29e3},marketCap:2e12,mv:{divisor:100,max:130,min:120},name:r.LocationName.AevumFulcrumTechnologies,otlkMag:16,spreadPerc:{divisor:10,max:10,min:1},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.AevumFulcrumTechnologies]},{b:!0,initPrice:{max:25e3,min:2e4},marketCap:12e11,mv:{divisor:100,max:90,min:80},name:r.LocationName.IshimaStormTechnologies,otlkMag:7,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.IshimaStormTechnologies]},{b:!0,initPrice:{max:19e3,min:6e3},marketCap:9e11,mv:{divisor:100,max:70,min:60},name:r.LocationName.NewTokyoDefComm,otlkMag:10,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.NewTokyoDefComm]},{b:!0,initPrice:{max:18e3,min:1e4},marketCap:825e9,mv:{divisor:100,max:65,min:55},name:r.LocationName.VolhavenHeliosLabs,otlkMag:9,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.VolhavenHeliosLabs]},{b:!0,initPrice:{max:14e3,min:8e3},marketCap:1e12,mv:{divisor:100,max:80,min:70},name:r.LocationName.NewTokyoVitaLife,otlkMag:7,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.NewTokyoVitaLife]},{b:!0,initPrice:{max:24e3,min:12e3},marketCap:8e11,mv:{divisor:100,max:70,min:60},name:r.LocationName.Sector12IcarusMicrosystems,otlkMag:7.5,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.Sector12IcarusMicrosystems]},{b:!0,initPrice:{max:29e3,min:16e3},marketCap:9e11,mv:{divisor:100,max:60,min:50},name:r.LocationName.Sector12UniversalEnergy,otlkMag:10,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.Sector12UniversalEnergy]},{b:!0,initPrice:{max:17e3,min:8e3},marketCap:64e10,mv:{divisor:100,max:65,min:55},name:r.LocationName.AevumAeroCorp,otlkMag:6,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.AevumAeroCorp]},{b:!0,initPrice:{max:15e3,min:6e3},marketCap:6e11,mv:{divisor:100,max:75,min:65},name:r.LocationName.VolhavenOmniaCybersystems,otlkMag:4.5,spreadPerc:{divisor:10,max:11,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.VolhavenOmniaCybersystems]},{b:!0,initPrice:{max:28e3,min:14e3},marketCap:705e9,mv:{divisor:100,max:80,min:70},name:r.LocationName.ChongqingSolarisSpaceSystems,otlkMag:8.5,spreadPerc:{divisor:10,max:12,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.ChongqingSolarisSpaceSystems]},{b:!0,initPrice:{max:3e4,min:12e3},marketCap:695e9,mv:{divisor:100,max:65,min:55},name:r.LocationName.NewTokyoGlobalPharmaceuticals,otlkMag:10.5,spreadPerc:{divisor:10,max:10,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.NewTokyoGlobalPharmaceuticals]},{b:!0,initPrice:{max:27e3,min:15e3},marketCap:6e11,mv:{divisor:100,max:80,min:70},name:r.LocationName.IshimaNovaMedical,otlkMag:5,spreadPerc:{divisor:10,max:11,min:4},shareTxForMovement:{max:126e3,min:42e3},symbol:a.StockSymbols[r.LocationName.IshimaNovaMedical]},{b:!0,initPrice:{max:8500,min:4e3},marketCap:45e10,mv:{divisor:100,max:260,min:240},name:r.LocationName.AevumWatchdogSecurity,otlkMag:1.5,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:54e3,min:12e3},symbol:a.StockSymbols[r.LocationName.AevumWatchdogSecurity]},{b:!0,initPrice:{max:8e3,min:4500},marketCap:3e11,mv:{divisor:100,max:135,min:115},name:r.LocationName.VolhavenLexoCorp,otlkMag:6,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:108e3,min:36e3},symbol:a.StockSymbols[r.LocationName.VolhavenLexoCorp]},{b:!0,initPrice:{max:7e3,min:2e3},marketCap:18e10,mv:{divisor:100,max:70,min:50},name:r.LocationName.AevumRhoConstruction,otlkMag:1,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:126e3,min:6e4},symbol:a.StockSymbols[r.LocationName.AevumRhoConstruction]},{b:!0,initPrice:{max:8500,min:4e3},marketCap:24e10,mv:{divisor:100,max:205,min:175},name:r.LocationName.Sector12AlphaEnterprises,otlkMag:10,spreadPerc:{divisor:10,max:16,min:5},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.Sector12AlphaEnterprises]},{b:!0,initPrice:{max:8e3,min:3e3},marketCap:2e11,mv:{divisor:100,max:170,min:150},name:r.LocationName.VolhavenSysCoreSecurities,otlkMag:3,spreadPerc:{divisor:10,max:12,min:5},shareTxForMovement:{max:9e4,min:15e3},symbol:a.StockSymbols[r.LocationName.VolhavenSysCoreSecurities]},{b:!0,initPrice:{max:6e3,min:1e3},marketCap:185e9,mv:{divisor:100,max:100,min:80},name:r.LocationName.VolhavenCompuTek,otlkMag:4,spreadPerc:{divisor:10,max:12,min:4},shareTxForMovement:{max:126e3,min:6e4},symbol:a.StockSymbols[r.LocationName.VolhavenCompuTek]},{b:!0,initPrice:{max:5e3,min:1e3},marketCap:58e9,mv:{divisor:100,max:400,min:200},name:r.LocationName.AevumNetLinkTechnologies,otlkMag:1,spreadPerc:{divisor:10,max:20,min:5},shareTxForMovement:{max:54e3,min:18e3},symbol:a.StockSymbols[r.LocationName.AevumNetLinkTechnologies]},{b:!0,initPrice:{max:8e3,min:1e3},marketCap:6e10,mv:{divisor:100,max:110,min:90},name:r.LocationName.IshimaOmegaSoftware,otlkMag:.5,spreadPerc:{divisor:10,max:13,min:4},shareTxForMovement:{max:9e4,min:3e4},symbol:a.StockSymbols[r.LocationName.IshimaOmegaSoftware]},{b:!1,initPrice:{max:4500,min:500},marketCap:45e9,mv:{divisor:100,max:80,min:70},name:r.LocationName.Sector12FoodNStuff,otlkMag:1,spreadPerc:{divisor:10,max:10,min:6},shareTxForMovement:{max:18e4,min:6e4},symbol:a.StockSymbols[r.LocationName.Sector12FoodNStuff]},{b:!0,initPrice:{max:3500,min:1500},marketCap:3e10,mv:{divisor:100,max:275,min:100},name:"Sigma Cosmetics",otlkMag:0,spreadPerc:{divisor:10,max:14,min:6},shareTxForMovement:{max:7e4,min:2e4},symbol:a.StockSymbols["Sigma Cosmetics"]},{b:!0,initPrice:{max:1500,min:250},marketCap:42e9,mv:{divisor:100,max:350,min:200},name:"Joes Guns",otlkMag:1,spreadPerc:{divisor:10,max:14,min:6},shareTxForMovement:{max:52e3,min:15e3},symbol:a.StockSymbols["Joes Guns"]},{b:!0,initPrice:{max:1500,min:250},marketCap:1e11,mv:{divisor:100,max:175,min:120},name:"Catalyst Ventures",otlkMag:13.5,spreadPerc:{divisor:10,max:14,min:5},shareTxForMovement:{max:72e3,min:24e3},symbol:a.StockSymbols["Catalyst Ventures"]},{b:!0,initPrice:{max:3e4,min:15e3},marketCap:36e10,mv:{divisor:100,max:80,min:70},name:"Microdyne Technologies",otlkMag:8,spreadPerc:{divisor:10,max:10,min:3},shareTxForMovement:{max:216e3,min:9e4},symbol:a.StockSymbols["Microdyne Technologies"]},{b:!0,initPrice:{max:24e3,min:12e3},marketCap:42e10,mv:{divisor:100,max:70,min:50},name:"Titan Laboratories",otlkMag:11,spreadPerc:{divisor:10,max:10,min:2},shareTxForMovement:{max:216e3,min:9e4},symbol:a.StockSymbols["Titan Laboratories"]}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TicksPerCycle=void 0,t.TicksPerCycle=75},function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.processOrders=void 0;const o=n(182),s=n(199),l=n(115),c=n(103),u=n(3),m=n(31),p=n(12),d=i(n(0));function h(e,t){const n=t.symbolToStockMap[e.stockSymbol];if(!(n instanceof s.Stock))return void console.error(`Could not find stock for this order: ${e.stockSymbol}`);const a=t.stockMarket.Orders[n.symbol],r={rerenderFn:t.rerenderFn,suppressDialog:!0};let i=!0,h=!1;switch(e.type){case l.OrderTypes.LimitBuy:case l.OrderTypes.StopBuy:h=!0,e.pos===c.PositionTypes.Long?i=o.buyStock(n,e.shares,null,r)&&i:e.pos===c.PositionTypes.Short&&(i=o.shortStock(n,e.shares,null,r)&&i);break;case l.OrderTypes.LimitSell:case l.OrderTypes.StopSell:e.pos===c.PositionTypes.Long?i=o.sellStock(n,e.shares,null,r)&&i:e.pos===c.PositionTypes.Short&&(i=o.sellShort(n,e.shares,null,r)&&i);break;default:return void console.warn(`Invalid order type: ${e.type}`)}const _=e.pos===c.PositionTypes.Long?"Long":"Short";if(i){for(let r=0;r
")}getType(){switch(this.type){case a.UpgradeType.Weapon:return"Weapon";case a.UpgradeType.Armor:return"Armor";case a.UpgradeType.Vehicle:return"Vehicle";case a.UpgradeType.Rootkit:return"Rootkit";case a.UpgradeType.Augmentation:return"Augmentation";default:return""}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GangMember=void 0;const a=n(702),r=n(300),i=n(183),o=n(93),s=n(27);class l{constructor(e=""){this.task="Unassigned",this.earnedRespect=0,this.hack=1,this.str=1,this.def=1,this.dex=1,this.agi=1,this.cha=1,this.hack_exp=0,this.str_exp=0,this.def_exp=0,this.dex_exp=0,this.agi_exp=0,this.cha_exp=0,this.hack_mult=1,this.str_mult=1,this.def_mult=1,this.dex_mult=1,this.agi_mult=1,this.cha_mult=1,this.hack_asc_points=0,this.str_asc_points=0,this.def_asc_points=0,this.dex_asc_points=0,this.agi_asc_points=0,this.cha_asc_points=0,this.upgrades=[],this.augmentations=[],this.name=e}calculateSkill(e,t=1){return Math.max(Math.floor(t*(32*Math.log(e+534.5)-200)),1)}calculateAscensionMult(e){return Math.max(Math.pow(e/4e3,.7),1)}updateSkillLevels(){this.hack=this.calculateSkill(this.hack_exp,this.hack_mult*this.calculateAscensionMult(this.hack_asc_points)),this.str=this.calculateSkill(this.str_exp,this.str_mult*this.calculateAscensionMult(this.str_asc_points)),this.def=this.calculateSkill(this.def_exp,this.def_mult*this.calculateAscensionMult(this.def_asc_points)),this.dex=this.calculateSkill(this.dex_exp,this.dex_mult*this.calculateAscensionMult(this.dex_asc_points)),this.agi=this.calculateSkill(this.agi_exp,this.agi_mult*this.calculateAscensionMult(this.agi_asc_points)),this.cha=this.calculateSkill(this.cha_exp,this.cha_mult*this.calculateAscensionMult(this.cha_asc_points))}calculatePower(){return(this.hack+this.str+this.def+this.dex+this.agi+this.cha)/95}assignToTask(e){return r.GangMemberTasks.hasOwnProperty(e)?(this.task=e,!0):(this.task="Unassigned",!1)}unassignFromTask(){this.task="Unassigned"}getTask(){return this.task instanceof a.GangMemberTask&&(this.task=this.task.name),r.GangMemberTasks.hasOwnProperty(this.task)?r.GangMemberTasks[this.task]:r.GangMemberTasks.Unassigned}calculateRespectGain(e){const t=this.getTask();if(0===t.baseRespect)return 0;let n=t.hackWeight/100*this.hack+t.strWeight/100*this.str+t.defWeight/100*this.def+t.dexWeight/100*this.dex+t.agiWeight/100*this.agi+t.chaWeight/100*this.cha;if((n-=4*t.difficulty)<=0)return 0;const a=Math.max(.005,Math.pow(100*o.AllGangs[e.facName].territory,t.territory.respect)/100);if(isNaN(a)||a<=0)return 0;const r=e.getWantedPenalty();return 11*t.baseRespect*n*a*r}calculateWantedLevelGain(e){const t=this.getTask();if(0===t.baseWanted)return 0;let n=t.hackWeight/100*this.hack+t.strWeight/100*this.str+t.defWeight/100*this.def+t.dexWeight/100*this.dex+t.agiWeight/100*this.agi+t.chaWeight/100*this.cha;if((n-=3.5*t.difficulty)<=0)return 0;const a=Math.max(.005,Math.pow(100*o.AllGangs[e.facName].territory,t.territory.wanted)/100);if(isNaN(a)||a<=0)return 0;if(t.baseWanted<0)return.4*t.baseWanted*n*a;const r=7*t.baseWanted/Math.pow(3*n*a,.8);return Math.min(100,r)}calculateMoneyGain(e){const t=this.getTask();if(0===t.baseMoney)return 0;let n=t.hackWeight/100*this.hack+t.strWeight/100*this.str+t.defWeight/100*this.def+t.dexWeight/100*this.dex+t.agiWeight/100*this.agi+t.chaWeight/100*this.cha;if((n-=3.2*t.difficulty)<=0)return 0;const a=Math.max(.005,Math.pow(100*o.AllGangs[e.facName].territory,t.territory.money)/100);if(isNaN(a)||a<=0)return 0;const r=e.getWantedPenalty();return 5*t.baseMoney*n*a*r}expMult(){return{hack:(this.hack_mult-1)/4+1,str:(this.str_mult-1)/4+1,def:(this.def_mult-1)/4+1,dex:(this.dex_mult-1)/4+1,agi:(this.agi_mult-1)/4+1,cha:(this.cha_mult-1)/4+1}}gainExperience(e=1){const t=this.getTask();if(t===r.GangMemberTasks.Unassigned)return;const n=Math.pow(t.difficulty,.9)*e,a=this.expMult();this.hack_exp+=t.hackWeight/1500*n*a.hack,this.str_exp+=t.strWeight/1500*n*a.str,this.def_exp+=t.defWeight/1500*n*a.def,this.dex_exp+=t.dexWeight/1500*n*a.dex,this.agi_exp+=t.agiWeight/1500*n*a.agi,this.cha_exp+=t.chaWeight/1500*n*a.cha}recordEarnedRespect(e=1,t){this.earnedRespect+=this.calculateRespectGain(t)*e}getGainedAscensionPoints(){return{hack:Math.max(this.hack_exp-1e3,0),str:Math.max(this.str_exp-1e3,0),def:Math.max(this.def_exp-1e3,0),dex:Math.max(this.dex_exp-1e3,0),agi:Math.max(this.agi_exp-1e3,0),cha:Math.max(this.cha_exp-1e3,0)}}canAscend(){const e=this.getGainedAscensionPoints();return e.hack>0||e.str>0||e.def>0||e.dex>0||e.agi>0||e.cha>0}getAscensionResults(){const e=this.getGainedAscensionPoints();return{hack:this.calculateAscensionMult(this.hack_asc_points+e.hack)/this.calculateAscensionMult(this.hack_asc_points),str:this.calculateAscensionMult(this.str_asc_points+e.str)/this.calculateAscensionMult(this.str_asc_points),def:this.calculateAscensionMult(this.def_asc_points+e.def)/this.calculateAscensionMult(this.def_asc_points),dex:this.calculateAscensionMult(this.dex_asc_points+e.dex)/this.calculateAscensionMult(this.dex_asc_points),agi:this.calculateAscensionMult(this.agi_asc_points+e.agi)/this.calculateAscensionMult(this.agi_asc_points),cha:this.calculateAscensionMult(this.cha_asc_points+e.cha)/this.calculateAscensionMult(this.cha_asc_points)}}ascend(){const e=this.getAscensionResults(),t=this.getGainedAscensionPoints();this.hack_asc_points+=t.hack,this.str_asc_points+=t.str,this.def_asc_points+=t.def,this.dex_asc_points+=t.dex,this.agi_asc_points+=t.agi,this.cha_asc_points+=t.cha,this.upgrades.length=0,this.hack_mult=1,this.str_mult=1,this.def_mult=1,this.dex_mult=1,this.agi_mult=1,this.cha_mult=1;for(let e=0;e
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Ransomware",params:{baseRespect:5e-5,baseWanted:1e-4,baseMoney:1,hackWeight:100,difficulty:1}},{desc:"Assign this gang member to attempt phishing scams and attacks
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Phishing",params:{baseRespect:8e-5,baseWanted:.003,baseMoney:2.5,hackWeight:85,chaWeight:15,difficulty:3.5}},{desc:"Assign this gang member to attempt identity theft
Earns money - Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Identity Theft",params:{baseRespect:1e-4,baseWanted:.075,baseMoney:6,hackWeight:80,chaWeight:20,difficulty:5}},{desc:"Assign this gang member to carry out DDoS attacks
Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"DDoS Attacks",params:{baseRespect:4e-4,baseWanted:.2,hackWeight:100,difficulty:8}},{desc:"Assign this gang member to create and distribute malicious viruses
Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Plant Virus",params:{baseRespect:6e-4,baseWanted:.4,hackWeight:100,difficulty:12}},{desc:"Assign this gang member to commit financial fraud and digital counterfeiting
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!1,isHacking:!0,name:"Fraud & Counterfeiting",params:{baseRespect:4e-4,baseWanted:.3,baseMoney:15,hackWeight:80,chaWeight:20,difficulty:20}},{desc:"Assign this gang member to launder money
Earns money - Increases respect - Increases wanted level",isCombat:!1,isHacking:!0,name:"Money Laundering",params:{baseRespect:.001,baseWanted:1.25,baseMoney:120,hackWeight:75,chaWeight:25,difficulty:25}},{desc:"Assign this gang member to commit acts of cyberterrorism
Greatly increases respect - Greatly increases wanted level",isCombat:!1,isHacking:!0,name:"Cyberterrorism",params:{baseRespect:.01,baseWanted:6,hackWeight:80,chaWeight:20,difficulty:36}},{desc:"Assign this gang member to be an ethical hacker for corporations
Earns money - Lowers wanted level",isCombat:!1,isHacking:!0,name:"Ethical Hacking",params:{baseWanted:-.001,baseMoney:1,hackWeight:90,chaWeight:10,difficulty:1}},{desc:"Assign this gang member to mug random people on the streets
Earns money - Slightly increases respect - Very slightly increases wanted level",isCombat:!0,isHacking:!1,name:"Mug People",params:{baseRespect:5e-5,baseWanted:5e-5,baseMoney:1.2,strWeight:25,defWeight:25,dexWeight:25,agiWeight:10,chaWeight:15,difficulty:1}},{desc:"Assign this gang member to sell drugs
Earns money - Slightly increases respect - Slightly increases wanted level - Scales slightly with territory",isCombat:!0,isHacking:!1,name:"Deal Drugs",params:{baseRespect:6e-5,baseWanted:.002,baseMoney:5,agiWeight:20,dexWeight:20,chaWeight:60,difficulty:3.5,territory:{money:1.2,respect:1,wanted:1.15}}},{desc:"Assign this gang member to extort civilians in your territory
Earns money - Slightly increases respect - Increases wanted - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Strongarm Civilians",params:{baseRespect:4e-5,baseWanted:.02,baseMoney:2.5,hackWeight:10,strWeight:25,defWeight:25,dexWeight:20,agiWeight:10,chaWeight:10,difficulty:5,territory:{money:1.6,respect:1.1,wanted:1.5}}},{desc:"Assign this gang member to run cons
Earns money - Increases respect - Increases wanted level",isCombat:!0,isHacking:!1,name:"Run a Con",params:{baseRespect:12e-5,baseWanted:.05,baseMoney:15,strWeight:5,defWeight:5,agiWeight:25,dexWeight:25,chaWeight:40,difficulty:14}},{desc:"Assign this gang member to commit armed robbery on stores, banks and armored cars
Earns money - Increases respect - Increases wanted level",isCombat:!0,isHacking:!1,name:"Armed Robbery",params:{baseRespect:14e-5,baseWanted:.1,baseMoney:38,hackWeight:20,strWeight:15,defWeight:15,agiWeight:10,dexWeight:20,chaWeight:20,difficulty:20}},{desc:"Assign this gang member to traffick illegal arms
Earns money - Increases respect - Increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Traffick Illegal Arms",params:{baseRespect:2e-4,baseWanted:.24,baseMoney:58,hackWeight:15,strWeight:20,defWeight:20,dexWeight:20,chaWeight:25,difficulty:32,territory:{money:1.4,respect:1.3,wanted:1.25}}},{desc:"Assign this gang member to threaten and black mail high-profile targets
Earns money - Slightly increases respect - Slightly increases wanted level",isCombat:!0,isHacking:!1,name:"Threaten & Blackmail",params:{baseRespect:2e-4,baseWanted:.125,baseMoney:24,hackWeight:25,strWeight:25,dexWeight:25,chaWeight:25,difficulty:28}},{desc:"Assign this gang member to engage in human trafficking operations
Earns money - Increases respect - Increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Human Trafficking",params:{baseRespect:.004,baseWanted:1.25,baseMoney:120,hackWeight:30,strWeight:5,defWeight:5,dexWeight:30,chaWeight:30,difficulty:36,territory:{money:1.5,respect:1.5,wanted:1.6}}},{desc:"Assign this gang member to commit acts of terrorism
Greatly increases respect - Greatly increases wanted level - Scales heavily with territory",isCombat:!0,isHacking:!1,name:"Terrorism",params:{baseRespect:.01,baseWanted:6,hackWeight:20,strWeight:20,defWeight:20,dexWeight:20,chaWeight:20,difficulty:36,territory:{money:1,respect:2,wanted:2}}},{desc:"Assign this gang member to be a vigilante and protect the city from criminals
Decreases wanted level",isCombat:!0,isHacking:!0,name:"Vigilante Justice",params:{baseWanted:-.001,hackWeight:20,strWeight:20,defWeight:20,dexWeight:20,agiWeight:20,difficulty:1,territory:{money:1,respect:1,wanted:.9}}},{desc:"Assign this gang member to increase their combat stats (str, def, dex, agi)",isCombat:!0,isHacking:!0,name:"Train Combat",params:{strWeight:25,defWeight:25,dexWeight:25,agiWeight:25,difficulty:100}},{desc:"Assign this gang member to train their hacking skills",isCombat:!0,isHacking:!0,name:"Train Hacking",params:{hackWeight:100,difficulty:45}},{desc:"Assign this gang member to train their charisma",isCombat:!0,isHacking:!0,name:"Train Charisma",params:{chaWeight:100,difficulty:8}},{desc:"Assign this gang member to engage in territorial warfare with other gangs. Members assigned to this task will help increase your gang's territory and will defend your territory from being taken.",isCombat:!0,isHacking:!0,name:"Territory Warfare",params:{hackWeight:15,strWeight:20,defWeight:20,dexWeight:20,agiWeight:20,chaWeight:5,difficulty:5}}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DarkWebItem=void 0;t.DarkWebItem=class{constructor(e,t,n){this.program=e,this.price=t,this.description=n}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0;class a{constructor(e){this.parent=null,this.stopFlag=!1,this.vars={},e instanceof a&&(this.vars=Object.assign({},e.vars)),this.parent=e}lookup(e){let t=this;for(;t;){if(Object.prototype.hasOwnProperty.call(t.vars,e))return t;t=t.parent}return null}get(e){if(e in this.vars)return this.vars[e];throw new Error(`Undefined variable ${e}`)}set(e,t){const n=this.lookup(e);return null!==n?n.vars[e]=t:this.vars[e]=t}def(e,t){return this.vars[e]=t}}t.Environment=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidNumber=void 0,t.isValidNumber=function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serverMetadata=void 0;const a=n(47),r=n(139);t.serverMetadata=[{hackDifficulty:99,hostname:"ecorp",moneyAvailable:{max:7e10,min:3e10},networkLayer:15,numOpenPortsRequired:5,organizationName:a.LocationName.AevumECorp,requiredHackingSkill:{max:1400,min:1050},serverGrowth:99,specialName:a.LocationName.AevumECorp},{hackDifficulty:99,hostname:"megacorp",moneyAvailable:{max:6e10,min:4e10},networkLayer:15,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12MegaCorp,requiredHackingSkill:{max:1350,min:1100},serverGrowth:99,specialName:a.LocationName.Sector12MegaCorp},{hackDifficulty:{max:88,min:72},hostname:"b-and-a",moneyAvailable:{max:3e10,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.AevumBachmanAndAssociates,requiredHackingSkill:{max:1150,min:900},serverGrowth:{max:80,min:60},specialName:a.LocationName.AevumBachmanAndAssociates},{hackDifficulty:{max:97,min:88},hostname:"blade",literature:[r.LiteratureNames.BeyondMan],maxRamExponent:{max:9,min:5},moneyAvailable:{max:4e10,min:1e10},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12BladeIndustries,requiredHackingSkill:{max:1200,min:900},serverGrowth:{max:85,min:55},specialName:a.LocationName.Sector12BladeIndustries},{hackDifficulty:99,hostname:"nwo",literature:[r.LiteratureNames.TheHiddenWorld],moneyAvailable:{max:4e10,min:2e10},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenNWO,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:95,min:65},specialName:a.LocationName.VolhavenNWO},{hackDifficulty:{max:65,min:45},hostname:"clarkinc",literature:[r.LiteratureNames.BeyondMan,r.LiteratureNames.CostOfImmortality],moneyAvailable:{max:25e9,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:a.LocationName.AevumClarkeIncorporated,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:75,min:45},specialName:a.LocationName.AevumClarkeIncorporated},{hackDifficulty:{max:99,min:90},hostname:"omnitek",literature:[r.LiteratureNames.CodedIntelligence,r.LiteratureNames.HistoryOfSynthoids],maxRamExponent:{max:9,min:7},moneyAvailable:{max:22e9,min:13e9},networkLayer:13,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenOmniTekIncorporated,requiredHackingSkill:{max:1100,min:900},serverGrowth:{max:99,min:95},specialName:a.LocationName.VolhavenOmniTekIncorporated},{hackDifficulty:{max:75,min:55},hostname:"4sigma",moneyAvailable:{max:25e9,min:15e9},networkLayer:13,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12FourSigma,requiredHackingSkill:{max:1250,min:900},serverGrowth:{max:99,min:75},specialName:a.LocationName.Sector12FourSigma},{hackDifficulty:{max:99,min:95},hostname:"kuai-gong",moneyAvailable:{max:3e10,min:2e10},networkLayer:13,numOpenPortsRequired:5,organizationName:a.LocationName.ChongqingKuaiGongInternational,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:99,min:90},specialName:a.LocationName.ChongqingKuaiGongInternational},{hackDifficulty:{max:97,min:83},hostname:"fulcrumtech",literature:[r.LiteratureNames.SimulatedReality],maxRamExponent:{max:11,min:7},moneyAvailable:{max:18e8,min:14e8},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.AevumFulcrumTechnologies,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:99,min:80},specialName:a.LocationName.AevumFulcrumTechnologies},{hackDifficulty:99,hostname:"fulcrumassets",moneyAvailable:1e6,networkLayer:15,numOpenPortsRequired:5,organizationName:a.LocationName.AevumFulcrumTechnologies,requiredHackingSkill:{max:1600,min:1100},serverGrowth:1,specialName:"Fulcrum Secret Technologies Server"},{hackDifficulty:{max:92,min:78},hostname:"stormtech",moneyAvailable:{max:12e8,min:1e9},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.IshimaStormTechnologies,requiredHackingSkill:{max:1075,min:875},serverGrowth:{max:92,min:68},specialName:a.LocationName.IshimaStormTechnologies},{hackDifficulty:{max:96,min:84},hostname:"defcomm",moneyAvailable:{max:95e7,min:8e8},networkLayer:9,numOpenPortsRequired:5,organizationName:a.LocationName.NewTokyoDefComm,requiredHackingSkill:{max:1050,min:850},serverGrowth:{max:73,min:47},specialName:a.LocationName.NewTokyoDefComm},{hackDifficulty:{max:90,min:70},hostname:"infocomm",moneyAvailable:{max:9e8,min:6e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"InfoComm",requiredHackingSkill:{max:950,min:875},serverGrowth:{max:75,min:35}},{hackDifficulty:{max:95,min:85},hostname:"helios",literature:[r.LiteratureNames.BeyondMan],maxRamExponent:{max:8,min:5},moneyAvailable:{max:75e7,min:55e7},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenHeliosLabs,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:80,min:70},specialName:a.LocationName.VolhavenHeliosLabs},{hackDifficulty:{max:90,min:80},hostname:"vitalife",literature:[r.LiteratureNames.AGreenTomorrow],maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:12,numOpenPortsRequired:5,organizationName:a.LocationName.NewTokyoVitaLife,requiredHackingSkill:{max:900,min:775},serverGrowth:{max:80,min:60},specialName:a.LocationName.NewTokyoVitaLife},{hackDifficulty:{max:95,min:85},hostname:"icarus",moneyAvailable:{max:1e9,min:9e8},networkLayer:9,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12IcarusMicrosystems,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:95,min:85},specialName:a.LocationName.Sector12IcarusMicrosystems},{hackDifficulty:{max:90,min:80},hostname:"univ-energy",maxRamExponent:{max:7,min:4},moneyAvailable:{max:12e8,min:11e8},networkLayer:9,numOpenPortsRequired:4,organizationName:a.LocationName.Sector12UniversalEnergy,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:90,min:80},specialName:a.LocationName.Sector12UniversalEnergy},{hackDifficulty:{max:80,min:70},hostname:"titan-labs",literature:[r.LiteratureNames.CodedIntelligence],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:75e7},networkLayer:11,numOpenPortsRequired:5,organizationName:"Titan Laboratories",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:80,min:60}},{hackDifficulty:{max:75,min:65},hostname:"microdyne",literature:[r.LiteratureNames.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:11,numOpenPortsRequired:5,organizationName:"Microdyne Technologies",requiredHackingSkill:{max:875,min:800},serverGrowth:{max:90,min:70}},{hackDifficulty:{max:80,min:70},hostname:"taiyang-digital",literature:[r.LiteratureNames.AGreenTomorrow,r.LiteratureNames.BrighterThanTheSun],moneyAvailable:{max:9e8,min:8e8},networkLayer:10,numOpenPortsRequired:5,organizationName:"Taiyang Digital",requiredHackingSkill:{max:950,min:850},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:65,min:55},hostname:"galactic-cyber",moneyAvailable:{max:85e7,min:75e7},networkLayer:7,numOpenPortsRequired:5,organizationName:a.LocationName.AevumGalacticCybersystems,requiredHackingSkill:{max:875,min:825},serverGrowth:{max:90,min:70},specialName:a.LocationName.AevumGalacticCybersystems},{hackDifficulty:{max:90,min:80},hostname:"aerocorp",literature:[r.LiteratureNames.ManAndMachine],moneyAvailable:{max:12e8,min:1e9},networkLayer:7,numOpenPortsRequired:5,organizationName:a.LocationName.AevumAeroCorp,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:65,min:55},specialName:a.LocationName.AevumAeroCorp},{hackDifficulty:{max:95,min:85},hostname:"omnia",literature:[r.LiteratureNames.HistoryOfSynthoids],maxRamExponent:{max:6,min:4},moneyAvailable:{max:1e9,min:9e8},networkLayer:8,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenOmniaCybersystems,requiredHackingSkill:{max:950,min:850},serverGrowth:{max:70,min:60},specialName:a.LocationName.VolhavenOmniaCybersystems},{hackDifficulty:{max:65,min:55},hostname:"zb-def",literature:[r.LiteratureNames.SyntheticMuscles],moneyAvailable:{max:11e8,min:9e8},networkLayer:10,numOpenPortsRequired:4,organizationName:"ZB Defense Industries",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:75,min:65}},{hackDifficulty:{max:80,min:60},hostname:"applied-energetics",moneyAvailable:{max:1e9,min:7e8},networkLayer:11,numOpenPortsRequired:4,organizationName:"Applied Energetics",requiredHackingSkill:{max:850,min:775},serverGrowth:{max:75,min:70}},{hackDifficulty:{max:80,min:70},hostname:"solaris",literature:[r.LiteratureNames.AGreenTomorrow,r.LiteratureNames.TheFailedFrontier],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:7e8},networkLayer:9,numOpenPortsRequired:5,organizationName:a.LocationName.ChongqingSolarisSpaceSystems,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:80,min:70},specialName:a.LocationName.ChongqingSolarisSpaceSystems},{hackDifficulty:{max:85,min:75},hostname:"deltaone",moneyAvailable:{max:17e8,min:13e8},networkLayer:8,numOpenPortsRequired:5,organizationName:a.LocationName.Sector12DeltaOne,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:70,min:50},specialName:a.LocationName.Sector12DeltaOne},{hackDifficulty:{max:85,min:75},hostname:"global-pharm",literature:[r.LiteratureNames.AGreenTomorrow],maxRamExponent:{max:6,min:3},moneyAvailable:{max:175e7,min:15e8},networkLayer:7,numOpenPortsRequired:4,organizationName:a.LocationName.NewTokyoGlobalPharmaceuticals,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:90,min:80},specialName:a.LocationName.NewTokyoGlobalPharmaceuticals},{hackDifficulty:{max:80,min:60},hostname:"nova-med",moneyAvailable:{max:125e7,min:11e8},networkLayer:10,numOpenPortsRequired:4,organizationName:a.LocationName.IshimaNovaMedical,requiredHackingSkill:{max:850,min:775},serverGrowth:{max:85,min:65},specialName:a.LocationName.IshimaNovaMedical},{hackDifficulty:{max:90,min:70},hostname:"zeus-med",moneyAvailable:{max:15e8,min:13e8},networkLayer:9,numOpenPortsRequired:5,organizationName:"Zeus Medical",requiredHackingSkill:{max:850,min:800},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:70},hostname:"unitalife",maxRamExponent:{max:6,min:4},moneyAvailable:{max:11e8,min:1e9},networkLayer:8,numOpenPortsRequired:4,organizationName:"UnitaLife Group",requiredHackingSkill:{max:825,min:775},serverGrowth:{max:80,min:70}},{hackDifficulty:{max:80,min:60},hostname:"lexo-corp",maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:6,numOpenPortsRequired:4,organizationName:a.LocationName.VolhavenLexoCorp,requiredHackingSkill:{max:750,min:650},serverGrowth:{max:65,min:55},specialName:a.LocationName.VolhavenLexoCorp},{hackDifficulty:{max:60,min:40},hostname:"rho-construction",maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:6,numOpenPortsRequired:3,organizationName:a.LocationName.AevumRhoConstruction,requiredHackingSkill:{max:525,min:475},serverGrowth:{max:60,min:40},specialName:a.LocationName.AevumRhoConstruction},{hackDifficulty:{max:70,min:50},hostname:"alpha-ent",literature:[r.LiteratureNames.Sector12Crime],maxRamExponent:{max:7,min:4},moneyAvailable:{max:75e7,min:6e8},networkLayer:6,numOpenPortsRequired:4,organizationName:a.LocationName.Sector12AlphaEnterprises,requiredHackingSkill:{max:600,min:500},serverGrowth:{max:60,min:50},specialName:a.LocationName.Sector12AlphaEnterprises},{hackDifficulty:{max:80,min:70},hostname:"aevum-police",maxRamExponent:{max:6,min:4},moneyAvailable:{max:4e8,min:2e8},networkLayer:6,numOpenPortsRequired:4,organizationName:a.LocationName.AevumPolice,requiredHackingSkill:{max:450,min:400},serverGrowth:{max:50,min:30},specialName:a.LocationName.AevumPolice},{hackDifficulty:{max:55,min:45},hostname:"rothman-uni",literature:[r.LiteratureNames.SecretSocieties,r.LiteratureNames.TheFailedFrontier,r.LiteratureNames.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:25e7,min:175e6},networkLayer:5,numOpenPortsRequired:3,organizationName:a.LocationName.Sector12RothmanUniversity,requiredHackingSkill:{max:430,min:370},serverGrowth:{max:45,min:35},specialName:a.LocationName.Sector12RothmanUniversity},{hackDifficulty:{max:85,min:65},hostname:"zb-institute",maxRamExponent:{max:7,min:4},moneyAvailable:{max:11e8,min:8e8},networkLayer:5,numOpenPortsRequired:5,organizationName:a.LocationName.VolhavenZBInstituteOfTechnology,requiredHackingSkill:{max:775,min:725},serverGrowth:{max:85,min:75},specialName:a.LocationName.VolhavenZBInstituteOfTechnology},{hackDifficulty:{max:65,min:45},hostname:"summit-uni",literature:[r.LiteratureNames.SecretSocieties,r.LiteratureNames.TheFailedFrontier,r.LiteratureNames.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:35e7,min:2e8},networkLayer:5,numOpenPortsRequired:3,organizationName:a.LocationName.AevumSummitUniversity,requiredHackingSkill:{max:475,min:425},serverGrowth:{max:60,min:40},specialName:a.LocationName.AevumSummitUniversity},{hackDifficulty:{max:80,min:60},hostname:"syscore",moneyAvailable:{max:6e8,min:4e8},networkLayer:5,numOpenPortsRequired:4,organizationName:a.LocationName.VolhavenSysCoreSecurities,requiredHackingSkill:{max:650,min:550},serverGrowth:{max:70,min:60},specialName:a.LocationName.VolhavenSysCoreSecurities},{hackDifficulty:{max:70,min:60},hostname:"catalyst",literature:[r.LiteratureNames.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:55e7,min:3e8},networkLayer:5,numOpenPortsRequired:3,organizationName:"Catalyst Ventures",requiredHackingSkill:{max:450,min:400},serverGrowth:{max:55,min:25}},{hackDifficulty:{max:45,min:35},hostname:"the-hub",maxRamExponent:{max:6,min:3},moneyAvailable:{max:2e8,min:15e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"The Hub",requiredHackingSkill:{max:325,min:275},serverGrowth:{max:55,min:45}},{hackDifficulty:{max:65,min:55},hostname:"comptek",literature:[r.LiteratureNames.ManAndMachine],moneyAvailable:{max:25e7,min:22e7},networkLayer:4,numOpenPortsRequired:3,organizationName:a.LocationName.VolhavenCompuTek,requiredHackingSkill:{max:400,min:300},serverGrowth:{max:65,min:45},specialName:a.LocationName.VolhavenCompuTek},{hackDifficulty:{max:80,min:60},hostname:"netlink",literature:[r.LiteratureNames.SimulatedReality],maxRamExponent:{max:7,min:4},moneyAvailable:275e6,networkLayer:4,numOpenPortsRequired:3,organizationName:a.LocationName.AevumNetLinkTechnologies,requiredHackingSkill:{max:425,min:375},serverGrowth:{max:75,min:45},specialName:a.LocationName.AevumNetLinkTechnologies},{hackDifficulty:{max:65,min:35},hostname:"johnson-ortho",moneyAvailable:{max:85e6,min:7e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Johnson Orthopedics",requiredHackingSkill:{max:300,min:250},serverGrowth:{max:65,min:35}},{hackDifficulty:1,hostname:"n00dles",literature:[],maxRamExponent:2,moneyAvailable:7e4,networkLayer:1,numOpenPortsRequired:0,organizationName:a.LocationName.NewTokyoNoodleBar,requiredHackingSkill:1,serverGrowth:3e3,specialName:a.LocationName.NewTokyoNoodleBar},{hackDifficulty:10,hostname:"foodnstuff",literature:[r.LiteratureNames.Sector12Crime],maxRamExponent:4,moneyAvailable:2e6,networkLayer:1,numOpenPortsRequired:0,organizationName:a.LocationName.Sector12FoodNStuff,requiredHackingSkill:1,serverGrowth:5,specialName:a.LocationName.Sector12FoodNStuff},{hackDifficulty:10,hostname:"sigma-cosmetics",maxRamExponent:4,moneyAvailable:23e5,networkLayer:1,numOpenPortsRequired:0,organizationName:"Sigma Cosmetics",requiredHackingSkill:5,serverGrowth:10},{hackDifficulty:15,hostname:"joesguns",maxRamExponent:4,moneyAvailable:25e5,networkLayer:1,numOpenPortsRequired:0,organizationName:a.LocationName.Sector12JoesGuns,requiredHackingSkill:10,serverGrowth:20,specialName:a.LocationName.Sector12JoesGuns},{hackDifficulty:25,hostname:"zer0",maxRamExponent:5,moneyAvailable:75e5,networkLayer:2,numOpenPortsRequired:1,organizationName:"ZER0 Nightclub",requiredHackingSkill:75,serverGrowth:40},{hackDifficulty:20,hostname:"nectar-net",maxRamExponent:4,moneyAvailable:275e4,networkLayer:2,numOpenPortsRequired:0,organizationName:"Nectar Nightclub Network",requiredHackingSkill:20,serverGrowth:25},{hackDifficulty:25,hostname:"neo-net",literature:[r.LiteratureNames.TheHiddenWorld],maxRamExponent:5,moneyAvailable:5e6,networkLayer:3,numOpenPortsRequired:1,organizationName:"Neo Nightclub Network",requiredHackingSkill:50,serverGrowth:25},{hackDifficulty:30,hostname:"silver-helix",literature:[r.LiteratureNames.NewTriads],maxRamExponent:6,moneyAvailable:45e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Silver Helix",requiredHackingSkill:150,serverGrowth:30},{hackDifficulty:15,hostname:"hong-fang-tea",literature:[r.LiteratureNames.BrighterThanTheSun],maxRamExponent:4,moneyAvailable:3e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HongFang Teahouse",requiredHackingSkill:30,serverGrowth:20},{hackDifficulty:15,hostname:"harakiri-sushi",maxRamExponent:4,moneyAvailable:4e6,networkLayer:1,numOpenPortsRequired:0,organizationName:"HaraKiri Sushi Bar Network",requiredHackingSkill:40,serverGrowth:40},{hackDifficulty:20,hostname:"phantasy",maxRamExponent:5,moneyAvailable:24e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Phantasy Club",requiredHackingSkill:100,serverGrowth:35},{hackDifficulty:15,hostname:"max-hardware",maxRamExponent:5,moneyAvailable:1e7,networkLayer:2,numOpenPortsRequired:1,organizationName:"Max Hardware Store",requiredHackingSkill:80,serverGrowth:30},{hackDifficulty:{max:35,min:25},hostname:"omega-net",literature:[r.LiteratureNames.TheNewGod],maxRamExponent:5,moneyAvailable:{max:7e7,min:6e7},networkLayer:3,numOpenPortsRequired:2,organizationName:a.LocationName.IshimaOmegaSoftware,requiredHackingSkill:{max:220,min:180},serverGrowth:{max:40,min:30},specialName:a.LocationName.IshimaOmegaSoftware},{hackDifficulty:{max:45,min:35},hostname:"crush-fitness",moneyAvailable:{max:6e7,min:4e7},networkLayer:4,numOpenPortsRequired:2,organizationName:"Crush Fitness",requiredHackingSkill:{max:275,min:225},serverGrowth:{max:33,min:27},specialName:a.LocationName.AevumCrushFitnessGym},{hackDifficulty:30,hostname:"iron-gym",maxRamExponent:5,moneyAvailable:2e7,networkLayer:1,numOpenPortsRequired:1,organizationName:"Iron Gym Network",requiredHackingSkill:100,serverGrowth:20,specialName:a.LocationName.Sector12IronGym},{hackDifficulty:{max:55,min:45},hostname:"millenium-fitness",maxRamExponent:{max:8,min:4},moneyAvailable:25e7,networkLayer:6,numOpenPortsRequired:3,organizationName:"Millenium Fitness Network",requiredHackingSkill:{max:525,min:475},serverGrowth:{max:45,min:25},specialName:a.LocationName.VolhavenMilleniumFitnessGym},{hackDifficulty:{max:65,min:55},hostname:"powerhouse-fitness",maxRamExponent:{max:6,min:4},moneyAvailable:9e8,networkLayer:14,numOpenPortsRequired:5,organizationName:"Powerhouse Fitness",requiredHackingSkill:{max:1100,min:950},serverGrowth:{max:60,min:50},specialName:a.LocationName.Sector12PowerhouseGym},{hackDifficulty:{max:60,min:40},hostname:"snap-fitness",moneyAvailable:45e7,networkLayer:7,numOpenPortsRequired:4,organizationName:"Snap Fitness",requiredHackingSkill:{max:800,min:675},serverGrowth:{max:60,min:40},specialName:a.LocationName.AevumSnapFitnessGym},{hackDifficulty:0,hostname:"run4theh111z",literature:[r.LiteratureNames.SimulatedReality,r.LiteratureNames.TheNewGod],maxRamExponent:{max:9,min:5},moneyAvailable:0,networkLayer:11,numOpenPortsRequired:4,organizationName:"The Runners",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:"BitRunners Server"},{hackDifficulty:0,hostname:"I.I.I.I",literature:[r.LiteratureNames.DemocracyIsDead],maxRamExponent:{max:8,min:4},moneyAvailable:0,networkLayer:5,numOpenPortsRequired:3,organizationName:"I.I.I.I",requiredHackingSkill:{max:365,min:340},serverGrowth:0,specialName:"The Black Hand Server"},{hackDifficulty:0,hostname:"avmnite-02h",literature:[r.LiteratureNames.DemocracyIsDead],maxRamExponent:{max:7,min:4},moneyAvailable:0,networkLayer:4,numOpenPortsRequired:2,organizationName:"NiteSec",requiredHackingSkill:{max:220,min:202},serverGrowth:0,specialName:"NiteSec Server"},{hackDifficulty:0,hostname:".",maxRamExponent:4,moneyAvailable:0,networkLayer:13,numOpenPortsRequired:4,organizationName:".",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:"The Dark Army Server"},{hackDifficulty:0,hostname:"CSEC",literature:[r.LiteratureNames.DemocracyIsDead],maxRamExponent:3,moneyAvailable:0,networkLayer:2,numOpenPortsRequired:1,organizationName:"CyberSec",requiredHackingSkill:{max:60,min:51},serverGrowth:0,specialName:"CyberSec Server"},{hackDifficulty:0,hostname:"The-Cave",literature:[r.LiteratureNames.AlphaOmega],moneyAvailable:0,networkLayer:15,numOpenPortsRequired:5,organizationName:"Helios",requiredHackingSkill:925,serverGrowth:0,specialName:"Daedalus Server"},{hackDifficulty:0,hostname:"w0r1d_d43m0n",moneyAvailable:0,numOpenPortsRequired:5,organizationName:"w0r1d_d43m0n",requiredHackingSkill:3e3,serverGrowth:0,specialName:"w0r1d_d43m0n"}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createRandomString=void 0;const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";t.createRandomString=function(e){let t="";for(let n=0;n
"}}));return o.default.createElement("div",null,o.default.createElement(c.CopyableText,{value:e.c.type,tag:c.ClickableTag.Tag_h1}),o.default.createElement("br",null),o.default.createElement("br",null),o.default.createElement("p",null,"You are attempting to solve a Coding Contract. You have ",e.c.getMaxNumTries()-e.c.tries," tries remaining, after which the contract will self-destruct."),o.default.createElement("br",null),o.default.createElement("p",null,r),o.default.createElement("br",null),o.default.createElement("input",{className:"text-input",style:{width:"50%",marginTop:"8px"},autoFocus:!0,placeholder:"Enter Solution here",value:t,onChange:function(e){n(e.target.value)},onKeyDown:function(n){const a=n.target.value;n.keyCode===s.KEY.ENTER&&""!==a?(n.preventDefault(),e.onAttempt(t)):n.keyCode===s.KEY.ESC&&(n.preventDefault(),e.onClose())}}),o.default.createElement(u.PopupCloseButton,{popup:e.popupId,onClose:()=>e.onAttempt(t),text:"Solve"}),o.default.createElement(u.PopupCloseButton,{popup:e.popupId,onClose:e.onClose,text:"Close"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codingContractTypesMetadata=void 0;const a=n(36);function r(e){let t=e;return t.startsWith("[")&&(t=t.slice(1)),t.endsWith("]")&&(t=t.slice(0,-1)),t}function i(e){let t=e;return(t.startsWith('"')||t.startsWith("'"))&&(t=t.slice(1)),(t.endsWith('"')||t.endsWith("'"))&&(t=t.slice(0,-1)),t}function o(e){const t=[];return e.forEach(e=>{let n=e.toString();n=["[",n,"]"].join(""),t.push(n)}),t.join(",").replace(/\s/g,"")}t.codingContractTypesMetadata=[{desc:e=>["A prime factor is a factor that is a prime number.",`What is the largest prime factor of ${e}?`].join(" "),difficulty:1,gen:()=>a.getRandomInt(500,1e9),name:"Find Largest Prime Factor",numTries:10,solver:(e,t)=>{let n=2,a=e;for(;a>(n-1)*(n-1);){for(;a%n==0;)a=Math.round(a/n);++n}return(1===a?n-1:a)===parseInt(t,10)}},{desc:e=>["Given the following integer array, find the contiguous subarray","(containing at least one number) which has the largest sum and return that sum.","'Sum' refers to the sum of all the numbers in the subarray.\n",`${e.toString()}`].join(" "),difficulty:1,gen:()=>{const e=a.getRandomInt(5,40),t=[];t.length=e;for(let n=0;n