diff --git a/dist/main.bundle.js b/dist/main.bundle.js index 149da7e01..db2d69a1e 100644 --- a/dist/main.bundle.js +++ b/dist/main.bundle.js @@ -1,4 +1,4 @@ -!function(e){function t(t){for(var a,o,s=t[0],l=t[1],c=t[2],u=0,m=[];uObject(o.a)({unbuyable:{color:e.palette.action.disabled},money:{color:e.colors.money}}));function l(e){const t=s();if(void 0!==e.player){if("number"!=typeof e.money)throw new Error("if player if provided, money should be number, contact dev");if(!e.player.canAfford(e.money))return a.createElement("span",{className:t.unbuyable},r.a.formatMoney(e.money))}return a.createElement("span",{className:t.money},"number"==typeof e.money?r.a.formatMoney(e.money):e.money)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(394);function r(e,t){if(null==t)return null;if("object"==typeof t&&"string"==typeof t.ctor&&void 0!==t.data){if("AllServersMap"===t.ctor)return console.warn("Converting AllServersMap for v0.43.1"),t.data;const e=r.constructors[t.ctor];if("function"==typeof e&&"function"==typeof e.fromJSON){const n=e.fromJSON(t);return void 0!==e.validationData&&Object(a.b)(n,e.validationData),n}}return t}function i(e,t,n){n||(n=Object.keys(t));const a={};for(let e=0;e"number"==typeof e?e:Object(o.a)(e.min,e.max);for(const e of r.a){const r={hostname:e.hostname,ip:g(),numOpenPortsRequired:e.numOpenPortsRequired,organizationName:e.organizationName};void 0!==e.maxRamExponent&&(r.maxRam=Math.pow(2,n(e.maxRamExponent))),e.hackDifficulty&&(r.hackDifficulty=n(e.hackDifficulty)),e.moneyAvailable&&(r.moneyAvailable=n(e.moneyAvailable)),e.requiredHackingSkill&&(r.requiredHackingSkill=n(e.requiredHackingSkill)),e.serverGrowth&&(r.serverGrowth=n(e.serverGrowth));const i=new a.a(r);for(const t of e.literature||[])i.messages.push(t);i.hostname===c.a.WorldDaemon&&(i.requiredHackingSkill*=f.a.WorldDaemonDifficulty),y(i),void 0!==e.networkLayer&&t[n(e.networkLayer)-1].push(i)}const i=(e,t)=>{for(const r of e)n=r,a=t(),n.serversOnNetwork.push(a.hostname),a.serversOnNetwork.push(n.hostname);var n,a};i(t[0],()=>e);for(let e=1;e{return(n=t[e-1])[Math.floor(Math.random()*n.length)];var n})}function E(){for(const e of Object.keys(u))delete u[e];u={}}function v(e){u=JSON.parse(e,s.c)}function k(e=!1){const t=JSON.parse(JSON.stringify(u),s.c);for(const n of Object.keys(t)){const a=t[n];if(e)a.runningScripts=[];else for(let e=0;e{let t=""+e%1e3;for(;t.length<3;)t="0"+t;return t})();let f="";return a>0&&(f+=a+" days "),i>0&&(f+=i+" hours "),s>0&&(f+=s+" minutes "),f+=(t?`${l}.${c}`:""+l)+" seconds",f}function i(e){if(!o(e))return"";if(0===e.length)return"";const t=e.concat().sort(),n=t[0],a=t[t.length-1],r=n.length;let i=0;for(;i>>16,2246822507)^Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507)^Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&a)+(n>>>0)).toString(16)}function f(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e){return e.split(" ").map(e=>f(e)).join(" ")}},function(e,t,n){"use strict";let a,r;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),function(e){e.ENTER="Enter",e.ESC="Escape",e.TAB="Tab",e.SPACE=" ",e.BACKSPACE="Backspace",e.UP_ARROW="ArrowUp",e.DOWN_ARROW="ArrowDown",e.LEFT_ARROW="ArrowLeft",e.RIGHT_ARROW="ArrowRight",e.QUOTE="'",e.DOUBLE_QUOTE='"',e.OPEN_BRACKET="[",e.CLOSE_BRACKET="]",e.LESS_THAN="<",e.GREATER_THAN=">",e.OPEN_PARENTHESIS="(",e.CLOSE_PARENTHESIS=")",e.OPEN_BRACE="{",e.CLOSE_BRACE="}",e.PIPE="|",e.DOT=".",e.FORWARD_SLASH="/",e.HYPHEN="-",e.HASH="#",e.k0="0",e.k1="1",e.k2="2",e.k3="3",e.k4="4",e.k5="5",e.k6="6",e.k7="7",e.k8="8",e.k9="9",e.A="a",e.B="b",e.C="c",e.D="d",e.E="e",e.F="f",e.G="g",e.H="h",e.I="i",e.J="j",e.K="k",e.L="l",e.M="m",e.N="n",e.O="o",e.P="p",e.Q="q",e.R="r",e.S="s",e.T="t",e.U="u",e.V="v",e.W="w",e.X="x",e.Y="y",e.Z="z"}(a||(a={})),function(e){e.ENTER="Enter",e.ESC="Escape",e.TAB="Tab",e.SPACE="Space",e.BACKSPACE="Backspace",e.UP_ARROW="ArrowUp",e.DOWN_ARROW="ArrowDown",e.LEFT_ARROW="ArrowLeft",e.RIGHT_ARROW="ArrowRight",e.BACKWARD_SLASH="Backslash",e.BACKQUOTE="Backquote",e.COMMA="Comma",e.DOT="Period",e.EQUAL="Equal",e.FORWARD_SLASH="Slash",e.HYPHEN="Minus",e.SEMICOLON="Semicolon",e.QUOTE="Quote",e.k0="Digit0",e.k1="Digit1",e.k2="Digit2",e.k3="Digit3",e.k4="Digit4",e.k5="Digit5",e.k6="Digit6",e.k7="Digit7",e.k8="Digit8",e.k9="Digit9",e.A="KeyA",e.B="KeyB",e.C="KeyC",e.D="KeyD",e.E="KeyE",e.F="KeyF",e.G="KeyG",e.H="KeyH",e.I="KeyI",e.J="KeyJ",e.K="KeyK",e.L="KeyL",e.M="KeyM",e.N="KeyN",e.O="KeyO",e.P="KeyP",e.Q="KeyQ",e.R="KeyR",e.S="KeyS",e.T="KeyT",e.U="KeyU",e.V="KeyV",e.W="KeyW",e.X="KeyX",e.Y="KeyY",e.Z="KeyZ"}(r||(r={}))},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e[e.ActiveScripts=0]="ActiveScripts",e[e.Augmentations=1]="Augmentations",e[e.BitVerse=2]="BitVerse",e[e.Bladeburner=3]="Bladeburner",e[e.City=4]="City",e[e.Corporation=5]="Corporation",e[e.CreateProgram=6]="CreateProgram",e[e.ScriptEditor=7]="ScriptEditor",e[e.DevMenu=8]="DevMenu",e[e.Faction=9]="Faction",e[e.Factions=10]="Factions",e[e.Gang=11]="Gang",e[e.Hacknet=12]="Hacknet",e[e.Infiltration=13]="Infiltration",e[e.Job=14]="Job",e[e.Milestones=15]="Milestones",e[e.Options=16]="Options",e[e.Grafting=17]="Grafting",e[e.Sleeves=18]="Sleeves",e[e.Stats=19]="Stats",e[e.StockMarket=20]="StockMarket",e[e.Terminal=21]="Terminal",e[e.Travel=22]="Travel",e[e.Tutorial=23]="Tutorial",e[e.Work=24]="Work",e[e.BladeburnerCinematic=25]="BladeburnerCinematic",e[e.Location=26]="Location",e[e.Loading=27]="Loading",e[e.StaneksGift=28]="StaneksGift",e[e.Recovery=29]="Recovery",e[e.Achievements=30]="Achievements",e[e.ThemeBrowser=31]="ThemeBrowser",e[e.ImportSave=32]="ImportSave"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(0),r=n.n(a);const i={Player:r.a.createContext({}),Router:r.a.createContext({})},o={Player:()=>Object(a.useContext)(i.Player),Router:()=>Object(a.useContext)(i.Router)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c}));var a=n(188),r=n(385),i=n(22);let o={};function s(e){o=JSON.parse(e,i.c);for(const e of Object.keys(o))try{o[e].getInfo()}catch(t){console.error("deleting "+e),delete o[e]}}function l(e){return o.hasOwnProperty(e)}function c(){for(const e of Object.keys(r.a))f(new a.a(e))}function f(e){if(!(e instanceof a.a))throw new Error("Invalid argument 'newFactionObject' passed into resetFaction()");const t=e.name;l(t)&&(e.favor=o[t].favor,delete o[t]),function(e){const t=e.name;o[t]=e}(e)}},,function(e,t,n){"use strict";n.d(t,"j",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"i",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return f})),n.d(t,"k",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"g",(function(){return h}));const a=["Software Engineering Intern","Junior Software Engineer","Senior Software Engineer","Lead Software Developer","Head of Software","Head of Engineering","Vice President of Technology","Chief Technology Officer"],r=["IT Intern","IT Analyst","IT Manager","Systems Administrator"],i=["Security Engineer"],o=["Network Engineer","Network Administrator"],s=["Business Intern","Business Analyst","Business Manager","Operations Manager","Chief Financial Officer","Chief Executive Officer"],l=["Police Officer","Police Chief","Security Guard","Security Officer","Security Supervisor","Head of Security"],c=["Field Agent","Secret Agent","Special Operative"],f=["Waiter","Employee"],u=["Software Consultant","Senior Software Consultant"],m=["Business Consultant","Senior Business Consultant"],h=["Part-time Waiter","Part-time Employee"]},,function(e,t,n){"use strict";function a(e,t){const n=Math.min(e,t),a=Math.max(e,t);return Math.floor(Math.random()*(a-n+1))+n}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var a=n(0),r=n(29),i=n(6),o=n(21),s=n(22),l=n(4),c=n(11),f=n(12),u=n(73),m=n(20),h=n(115),d=n(360),p=n(239);function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class y{constructor(e={info:"",moneyCost:0,name:"",repCost:0,factions:[]}){g(this,"baseCost",0),g(this,"baseRepRequirement",0),g(this,"isSpecial",!1),g(this,"name",""),g(this,"prereqs",[]),g(this,"mults",Object(p.a)()),g(this,"factions",[]),this.name=e.name,this.info=e.info,this.prereqs=e.prereqs?e.prereqs:[],this.baseRepRequirement=e.repCost,Object.freeze(this.baseRepRequirement),this.baseCost=e.moneyCost,Object.freeze(this.baseCost),this.factions=e.factions,e.isSpecial&&(this.isSpecial=!0),e.hacking&&(this.mults.hacking=e.hacking),e.strength&&(this.mults.strength=e.strength),e.defense&&(this.mults.defense=e.defense),e.dexterity&&(this.mults.dexterity=e.dexterity),e.agility&&(this.mults.agility=e.agility),e.charisma&&(this.mults.charisma=e.charisma),e.hacking_exp&&(this.mults.hacking_exp=e.hacking_exp),e.strength_exp&&(this.mults.strength_exp=e.strength_exp),e.defense_exp&&(this.mults.defense_exp=e.defense_exp),e.dexterity_exp&&(this.mults.dexterity_exp=e.dexterity_exp),e.agility_exp&&(this.mults.agility_exp=e.agility_exp),e.charisma_exp&&(this.mults.charisma_exp=e.charisma_exp),e.hacking_chance&&(this.mults.hacking_chance=e.hacking_chance),e.hacking_speed&&(this.mults.hacking_speed=e.hacking_speed),e.hacking_money&&(this.mults.hacking_money=e.hacking_money),e.hacking_grow&&(this.mults.hacking_grow=e.hacking_grow),e.company_rep&&(this.mults.company_rep=e.company_rep),e.faction_rep&&(this.mults.faction_rep=e.faction_rep),e.crime_money&&(this.mults.crime_money=e.crime_money),e.crime_success&&(this.mults.crime_success=e.crime_success),e.work_money&&(this.mults.work_money=e.work_money),e.hacknet_node_money&&(this.mults.hacknet_node_money=e.hacknet_node_money),e.hacknet_node_purchase_cost&&(this.mults.hacknet_node_purchase_cost=e.hacknet_node_purchase_cost),e.hacknet_node_ram_cost&&(this.mults.hacknet_node_ram_cost=e.hacknet_node_ram_cost),e.hacknet_node_core_cost&&(this.mults.hacknet_node_core_cost=e.hacknet_node_core_cost),e.hacknet_node_level_cost&&(this.mults.hacknet_node_level_cost=e.hacknet_node_level_cost),e.bladeburner_max_stamina&&(this.mults.bladeburner_max_stamina=e.bladeburner_max_stamina),e.bladeburner_stamina_gain&&(this.mults.bladeburner_stamina_gain=e.bladeburner_stamina_gain),e.bladeburner_analysis&&(this.mults.bladeburner_analysis=e.bladeburner_analysis),e.bladeburner_success_chance&&(this.mults.bladeburner_success_chance=e.bladeburner_success_chance),void 0===e.stats?this.stats=function(e,t,n){const r=(e,t=0)=>e===1.0777-1?"7.77%":e===1.777-1?"77.7%":i.a.formatPercentage(e,t);let s=a.createElement(a.Fragment,null,"Effects:");return 1!==e.hacking&&e.hacking==e.strength&&e.hacking==e.defense&&e.hacking==e.dexterity&&e.hacking==e.agility&&e.hacking==e.charisma?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking-1)," all skills"):(1!==e.hacking&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking-1)," hacking skill")),1!==e.strength&&e.strength==e.defense&&e.strength==e.dexterity&&e.strength==e.agility?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.strength-1)," combat skills"):(1!==e.strength&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.strength-1)," strength skill")),1!==e.defense&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.defense-1)," defense skill")),1!==e.dexterity&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.dexterity-1)," dexterity skill")),1!==e.agility&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.agility-1)," agility skill"))),1!==e.charisma&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.charisma-1)," charisma skill"))),1!==e.hacking_exp&&e.hacking_exp===e.strength_exp&&e.hacking_exp===e.defense_exp&&e.hacking_exp===e.dexterity_exp&&e.hacking_exp===e.agility_exp&&e.hacking_exp===e.charisma_exp?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_exp-1)," exp for all skills"):(1!==e.hacking_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_exp-1)," hacking exp")),1!==e.strength_exp&&e.strength_exp===e.defense_exp&&e.strength_exp===e.dexterity_exp&&e.strength_exp===e.agility_exp?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.strength_exp-1)," combat exp"):(1!==e.strength_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.strength_exp-1)," strength exp")),1!==e.defense_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.defense_exp-1)," defense exp")),1!==e.dexterity_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.dexterity_exp-1)," dexterity exp")),1!==e.agility_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.agility_exp-1)," agility exp"))),1!==e.charisma_exp&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.charisma_exp-1)," charisma exp"))),1!==e.hacking_speed&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_speed-1)," faster hack(), grow(), and weaken()")),1!==e.hacking_chance&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_chance-1)," hack() success chance")),1!==e.hacking_money&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_money-1)," hack() power")),1!==e.hacking_grow&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacking_grow-1)," grow() power")),1!==e.faction_rep&&e.faction_rep===e.company_rep?s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.faction_rep-1)," reputation from factions and companies"):(1!==e.faction_rep&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.faction_rep-1)," reputation from factions")),1!==e.company_rep&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.company_rep-1)," reputation from companies"))),1!==e.crime_money&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.crime_money-1)," crime money")),1!==e.crime_success&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.crime_success-1)," crime success rate")),1!==e.work_money&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.work_money-1)," work money")),1!==e.hacknet_node_money&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.hacknet_node_money-1)," hacknet production")),1!==e.hacknet_node_purchase_cost&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"-",r(-(e.hacknet_node_purchase_cost-1))," hacknet nodes cost")),1!==e.hacknet_node_level_cost&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"-",r(-(e.hacknet_node_level_cost-1))," hacknet nodes upgrade cost")),1!==e.bladeburner_max_stamina&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.bladeburner_max_stamina-1)," Bladeburner Max Stamina")),1!==e.bladeburner_stamina_gain&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.bladeburner_stamina_gain-1)," Bladeburner Stamina gain")),1!==e.bladeburner_analysis&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.bladeburner_analysis-1)," Bladeburner Field Analysis effectiveness")),1!==e.bladeburner_success_chance&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"+",r(e.bladeburner_success_chance-1)," Bladeburner Contracts and Operations success chance")),n&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"Start with ",a.createElement(o.a,{money:n})," after installing Augmentations.")),t&&(s=a.createElement(a.Fragment,null,s,a.createElement("br",null),"Start with ",t.join(" and ")," after installing Augmentations.")),s}(this.mults,e.programs,e.startingMoney):this.stats=e.stats}addToFactions(e){for(let t=0;te.name),i=Math.pow(f.a.SoACostMult,r.filter(t=>e.hasAugmentation(t)).length);n=t.baseCost*i,r.find(e=>e===t.name)&&(a=t.baseRepRequirement*i)}else n=t.baseCost*Object(h.d)()*m.a.AugmentationMoneyCost,a=t.baseRepRequirement*m.a.AugmentationRepCost;return{moneyCost:n,repCost:a}}getLevel(e){if(this.name===c.a.NeuroFluxGovernor){let t=0;for(let n=0;nObject(o.a)({modal:{display:"flex",alignItems:"center",justifyContent:"center"},paper:{backgroundColor:e.palette.background.default,border:"2px solid "+e.palette.primary.main,boxShadow:`0px 3px 5px -1px ${e.palette.primary.dark},0px 5px 8px 0px ${e.palette.primary.dark},0px 1px 14px 0px ${e.palette.primary.dark}`,padding:2,maxWidth:"80%",maxHeight:"80%",overflow:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"}})),u=e=>{const t=f();return c.a.createElement(i.a,{disableRestoreFocus:!0,disableScrollLock:!0,disableEnforceFocus:!0,disableAutoFocus:!0,open:e.open,onClose:e.onClose,closeAfterTransition:!0,className:t.modal,sx:e.sx},c.a.createElement(r.a,{in:e.open},c.a.createElement("div",{className:t.paper},c.a.createElement(a.a,{sx:{m:2}},e.children))))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(15);const r=["START","PURCHASE","PRODUCTION","SALE","EXPORT"],i={INITIALSHARES:1e9,SHARESPERPRICEUPDATE:1e6,IssueNewSharesCooldown:216e3,SellSharesCooldown:18e3,CyclesPerMarketCycle:50,CyclesPerIndustryStateCycle:50/r.length,SecsPerMarketCycle:10,Cities:[a.a.Aevum,a.a.Chongqing,a.a.Sector12,a.a.NewTokyo,a.a.Ishima,a.a.Volhaven],WarehouseInitialCost:5e9,WarehouseInitialSize:100,WarehouseUpgradeBaseCost:1e9,OfficeInitialCost:4e9,OfficeInitialSize:3,OfficeUpgradeBaseCost:1e9,BribeThreshold:1e14,BribeToRepRatio:1e9,ProductProductionCostRatio:5,DividendMaxPercentage:1,EmployeeSalaryMultiplier:3,CyclesPerEmployeeRaise:400,EmployeeRaiseAmount:50,BaseMaxProducts:3,AllCorporationStates:r,AllMaterials:["Water","Energy","Food","Plants","Metal","Hardware","Chemicals","Drugs","Robots","AI Cores","Real Estate"],FundingRoundShares:[.1,.35,.25,.2],FundingRoundMultiplier:[4,3,3,2.5],AvgProfitLength:1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i}));const a={MoneyGainPerLevel:1.5,BaseCost:1e3,LevelBaseCost:1,RamBaseCost:3e4,CoreBaseCost:5e5,PurchaseNextMult:1.85,UpgradeLevelMult:1.04,UpgradeRamMult:1.28,UpgradeCoreMult:1.48,MaxLevel:200,MaxRam:64,MaxCores:16},r={x1:1,x5:5,x10:10,MAX:"MAX"},i={HashesPerLevel:.001,BaseCost:5e4,RamBaseCost:2e5,CoreBaseCost:1e6,CacheBaseCost:1e7,PurchaseMult:3.2,UpgradeLevelMult:1.1,UpgradeRamMult:1.4,UpgradeCoreMult:1.55,UpgradeCacheMult:1.85,MaxServers:20,MaxLevel:300,MaxRam:8192,MaxCores:128,MaxCache:15}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={Idle:1,Contract:2,Operation:3,BlackOp:4,BlackOperation:4,Training:5,Recruitment:6,FieldAnalysis:7,"Field Analysis":7,Diplomacy:8,"Hyperbolic Regeneration Chamber":9,"Incite Violence":10}},function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return f}));var a,r=n(2),i=n(64),o=n(387);!function(e){e[e.Start=0]="Start",e[e.NSSelection=1]="NSSelection",e[e.GoToCharacterPage=2]="GoToCharacterPage",e[e.CharacterPage=3]="CharacterPage",e[e.CharacterGoToTerminalPage=4]="CharacterGoToTerminalPage",e[e.TerminalIntro=5]="TerminalIntro",e[e.TerminalHelp=6]="TerminalHelp",e[e.TerminalLs=7]="TerminalLs",e[e.TerminalScan=8]="TerminalScan",e[e.TerminalScanAnalyze1=9]="TerminalScanAnalyze1",e[e.TerminalScanAnalyze2=10]="TerminalScanAnalyze2",e[e.TerminalConnect=11]="TerminalConnect",e[e.TerminalAnalyze=12]="TerminalAnalyze",e[e.TerminalNuke=13]="TerminalNuke",e[e.TerminalManualHack=14]="TerminalManualHack",e[e.TerminalHackingMechanics=15]="TerminalHackingMechanics",e[e.TerminalGoHome=16]="TerminalGoHome",e[e.TerminalCreateScript=17]="TerminalCreateScript",e[e.TerminalTypeScript=18]="TerminalTypeScript",e[e.TerminalFree=19]="TerminalFree",e[e.TerminalRunScript=20]="TerminalRunScript",e[e.TerminalGoToActiveScriptsPage=21]="TerminalGoToActiveScriptsPage",e[e.ActiveScriptsPage=22]="ActiveScriptsPage",e[e.ActiveScriptsToTerminal=23]="ActiveScriptsToTerminal",e[e.TerminalTailScript=24]="TerminalTailScript",e[e.GoToHacknetNodesPage=25]="GoToHacknetNodesPage",e[e.HacknetNodesIntroduction=26]="HacknetNodesIntroduction",e[e.HacknetNodesGoToWorldPage=27]="HacknetNodesGoToWorldPage",e[e.WorldDescription=28]="WorldDescription",e[e.TutorialPageInfo=29]="TutorialPageInfo",e[e.End=30]="End"}(a||(a={}));const s={currStep:a.Start,isRunning:!1,stepIsDone:{[a.Start]:!1,[a.NSSelection]:!1,[a.GoToCharacterPage]:!1,[a.CharacterPage]:!1,[a.CharacterGoToTerminalPage]:!1,[a.TerminalIntro]:!1,[a.TerminalHelp]:!1,[a.TerminalLs]:!1,[a.TerminalScan]:!1,[a.TerminalScanAnalyze1]:!1,[a.TerminalScanAnalyze2]:!1,[a.TerminalConnect]:!1,[a.TerminalAnalyze]:!1,[a.TerminalNuke]:!1,[a.TerminalManualHack]:!1,[a.TerminalHackingMechanics]:!1,[a.TerminalGoHome]:!1,[a.TerminalCreateScript]:!1,[a.TerminalTypeScript]:!1,[a.TerminalFree]:!1,[a.TerminalRunScript]:!1,[a.TerminalGoToActiveScriptsPage]:!1,[a.ActiveScriptsPage]:!1,[a.ActiveScriptsToTerminal]:!1,[a.TerminalTailScript]:!1,[a.GoToHacknetNodesPage]:!1,[a.HacknetNodesIntroduction]:!1,[a.HacknetNodesGoToWorldPage]:!1,[a.WorldDescription]:!1,[a.TutorialPageInfo]:!1,[a.End]:!1}};function l(){s.isRunning=!0,s.currStep=a.Start}function c(){s.stepIsDone[s.currStep]=!0,s.currStepa.Start&&(s.currStep-=1),o.a.emit()}function u(){s.isRunning=!1,s.currStep=a.Start,r.a.getHomeComputer().messages.push(i.a.HackersStartingHandbook),o.a.emit()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(588),r=n(20),i=n(1031),o=n(349),s=n(22);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c extends a.a{constructor(e={hostname:"",ip:Object(o.a)()}){super(e),l(this,"backdoorInstalled",!1),l(this,"baseDifficulty",1),l(this,"hackDifficulty",1),l(this,"minDifficulty",1),l(this,"moneyAvailable",0),l(this,"moneyMax",0),l(this,"numOpenPortsRequired",5),l(this,"openPortCount",0),l(this,"requiredHackingSkill",1),l(this,"serverGrowth",1),this.hostname.startsWith("hacknet-node-")&&(this.hostname=Object(i.a)(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.a.ServerStartingMoney:0,this.moneyMax=25*this.moneyAvailable*r.a.ServerMaxMoney,this.hackDifficulty=null!=e.hackDifficulty?e.hackDifficulty*r.a.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.hackDifficulty100&&(this.hackDifficulty=100)}changeMinimumSecurity(e,t=!1){t?this.minDifficulty*=e:this.minDifficulty+=e,this.minDifficulty=Math.max(1,this.minDifficulty)}changeMaximumMoney(e){if(this.moneyMax>1e13){const t=this.moneyMax-1e13;e=1+(e-1)/Math.log(t)/Math.log(8)}this.moneyMax*=e}fortify(e){this.hackDifficulty+=e,this.capDifficulty()}weaken(e){this.hackDifficulty-=e*r.a.ServerWeakenRate,this.capDifficulty()}toJSON(){return Object(s.b)("Server",this)}static fromJSON(e){return Object(s.a)(c,e.data)}}s.c.constructors.Server=c},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={Operations:"Operations",Engineer:"Engineer",Business:"Business",Management:"Management",RandD:"Research & Development",Training:"Training",Unassigned:"Unassigned"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));var a=n(0),r=n.n(a);const i={Corporation:r.a.createContext({}),Division:r.a.createContext({})},o=()=>Object(a.useContext)(i.Corporation),s=()=>Object(a.useContext)(i.Division)},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return u}));var a=n(0),r=n.n(a),i=n(136),o=n(145);const s={Energy:"Energy",Utilities:"Water Utilities",Agriculture:"Agriculture",Fishing:"Fishing",Mining:"Mining",Food:"Food",Tobacco:"Tobacco",Chemical:"Chemical",Pharmaceutical:"Pharmaceutical",Computer:"Computer Hardware",Robotics:"Robotics",Software:"Software",Healthcare:"Healthcare",RealEstate:"RealEstate"},l={Energy:225e9,Utilities:15e10,Agriculture:4e10,Fishing:8e10,Mining:3e11,Food:1e10,Tobacco:2e10,Chemical:7e10,Pharmaceutical:2e11,Computer:5e11,Robotics:1e12,Software:25e9,Healthcare:75e10,RealEstate:6e11},c={Energy:e=>r.a.createElement(r.a.Fragment,null,"Engage in the production and distribution of energy.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Energy,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Utilities:e=>r.a.createElement(r.a.Fragment,null,"Distribute water and provide wastewater services.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Utilities,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Agriculture:e=>r.a.createElement(r.a.Fragment,null,"Cultivate crops and breed livestock to produce food.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Agriculture,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Fishing:e=>r.a.createElement(r.a.Fragment,null,"Produce food through the breeding and processing of fish and fish products.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Fishing,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Mining:e=>r.a.createElement(r.a.Fragment,null,"Extract and process metals from the earth.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Mining,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Food:e=>r.a.createElement(r.a.Fragment,null,"Create your own restaurants all around the world.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Food,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Tobacco:e=>r.a.createElement(r.a.Fragment,null,"Create and distribute tobacco and tobacco-related products.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Tobacco,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Chemical:e=>r.a.createElement(r.a.Fragment,null,"Produce industrial chemicals.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Chemical,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Pharmaceutical:e=>r.a.createElement(r.a.Fragment,null,"Discover, develop, and create new pharmaceutical drugs.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Pharmaceutical,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Computer:e=>r.a.createElement(r.a.Fragment,null,"Develop and manufacture new computer hardware and networking infrastructures.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Computer,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Robotics:e=>r.a.createElement(r.a.Fragment,null,"Develop and create robots.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Robotics,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),Software:e=>r.a.createElement(r.a.Fragment,null,"Develop computer software and create AI Cores.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Software,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: YES"),Healthcare:e=>r.a.createElement(r.a.Fragment,null,"Create and manage hospitals.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.Healthcare,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO"),RealEstate:e=>r.a.createElement(r.a.Fragment,null,"Develop and manage real estate properties.",r.a.createElement("br",null),r.a.createElement("br",null),"Starting cost: ",r.a.createElement(o.a,{money:l.RealEstate,corp:e}),r.a.createElement("br",null),"Recommended starting Industry: NO")},f={Energy:Object(i.a)(),Utilities:Object(i.a)(),Agriculture:Object(i.a)(),Fishing:Object(i.a)(),Mining:Object(i.a)(),Food:Object(i.b)(),Tobacco:Object(i.b)(),Chemical:Object(i.a)(),Pharmaceutical:Object(i.b)(),Computer:Object(i.b)(),Robotics:Object(i.b)(),Software:Object(i.b)(),Healthcare:Object(i.b)(),RealEstate:Object(i.b)()};function u(){f.Energy=Object(i.a)(),f.Utilities=Object(i.a)(),f.Agriculture=Object(i.a)(),f.Fishing=Object(i.a)(),f.Mining=Object(i.a)(),f.Food=Object(i.b)(),f.Tobacco=Object(i.b)(),f.Chemical=Object(i.a)(),f.Pharmaceutical=Object(i.b)(),f.Computer=Object(i.b)(),f.Robotics=Object(i.b)(),f.Software=Object(i.b)(),f.Healthcare=Object(i.b)(),f.RealEstate=Object(i.b)()}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),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"}(a||(a={}))},,,function(e,t,n){"use strict";n.d(t,"g",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"h",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b})),n.d(t,"e",(function(){return E})),n.d(t,"f",(function(){return v})),n.d(t,"d",(function(){return k})),n.d(t,"c",(function(){return w})),n.d(t,"n",(function(){return _})),n.d(t,"o",(function(){return S})),n.d(t,"k",(function(){return C})),n.d(t,"j",(function(){return x})),n.d(t,"i",(function(){return L})),n.d(t,"p",(function(){return M})),n.d(t,"m",(function(){return T}));var a=n(226),r=n(213),i=n(158),o=n(40),s=n(92),l=n(386),c=n(243),f=n(355),u=n(42),m=n(24),h=n(43);function d(e){return 9===e.bitNodeN||e.sourceFileLvl(9)>0}function p(e){if(u.a.isRunning){if(u.a.currStep!==u.f.HacknetNodesIntroduction)return-1;Object(u.c)()}const t=e.hacknetNodes.length;if(d(e)){const n=b(e);if(isNaN(n))throw new Error("Calculated cost of purchasing HacknetServer is NaN");return!e.canAfford(n)||t>=o.b.MaxServers?-1:(e.loseMoney(n,"hacknet_expenses"),e.createHacknetServer(),M(e),t)}{const n=y(e);if(isNaN(n))throw new Error("Calculated cost of purchasing HacknetNode is NaN");if(!e.canAfford(n))return-1;const r="hacknet-node-"+t,i=new a.a(r,e.mults.hacknet_node_money);return e.loseMoney(n,"hacknet_expenses"),e.hacknetNodes.push(i),t}}function g(e){return d(e)&&e.hacknetNodes.length>=o.b.MaxServers}function y(e){return Object(r.d)(e.hacknetNodes.length+1,e.mults.hacknet_node_purchase_cost)}function b(e){return Object(i.f)(e.hacknetNodes.length+1,e.mults.hacknet_node_purchase_cost)}function E(e,t,n){if(null==n)throw new Error("getMaxNumberLevelUpgrades() called without maxLevel arg");if(e.moneyt.calculateLevelUpgradeCost(i,e.mults.hacknet_node_level_cost))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!==n&&e.money>t.calculateLevelUpgradeCost(o,e.mults.hacknet_node_level_cost)&&e.moneyt.calculateLevelUpgradeCost(o,e.mults.hacknet_node_level_cost)))return Math.min(i,o);a=o+1}}return 0}function v(e,t,n){if(null==n)throw new Error("getMaxNumberRamUpgrades() called without maxLevel arg");if(e.moneyt.calculateRamUpgradeCost(a,e.mults.hacknet_node_ram_cost))return a;for(let n=a-1;n>=0;--n)if(e.money>t.calculateRamUpgradeCost(n,e.mults.hacknet_node_ram_cost))return n;return 0}function k(e,t,n){if(null==n)throw new Error("getMaxNumberCoreUpgrades() called without maxLevel arg");if(e.moneyt.calculateCoreUpgradeCost(i,e.mults.hacknet_node_core_cost))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!=n&&e.money>t.calculateCoreUpgradeCost(o,e.mults.hacknet_node_core_cost)&&e.moneyt.calculateCoreUpgradeCost(o,e.mults.hacknet_node_core_cost)))return Math.min(i,o);a=o+1}}return 0}function w(e,t,n){if(null==n)throw new Error("getMaxNumberCacheUpgrades() called without maxLevel arg");if(!e.canAfford(t.calculateCacheUpgradeCost(1)))return 0;let a=1,r=n-1;const i=n-t.cache;if(e.canAfford(t.calculateCacheUpgradeCost(i)))return i;for(;a<=r;){const o=(a+r)/2|0;if(o!=n&&e.canAfford(t.calculateCacheUpgradeCost(o))&&!e.canAfford(t.calculateCacheUpgradeCost(o+1)))return Math.min(i,o);if(e.canAfford(t.calculateCacheUpgradeCost(o))){if(!e.canAfford(t.calculateCacheUpgradeCost(o)))return Math.min(i,o);a=o+1}else r=o-1}return 0}function _(e,t,n=1){const a=Math.round(n),r=t.calculateLevelUpgradeCost(a,e.mults.hacknet_node_level_cost);if(isNaN(r)||r<=0||a<0)return!1;const i=t instanceof s.a;if(t.level>=(i?o.b.MaxLevel:o.a.MaxLevel))return!1;if(t.level+a>(i?o.b.MaxLevel:o.a.MaxLevel)){return _(e,t,Math.max(0,(i?o.b.MaxLevel:o.a.MaxLevel)-t.level))}return!!e.canAfford(r)&&(e.loseMoney(r,"hacknet_expenses"),t.upgradeLevel(a,e.mults.hacknet_node_money),!0)}function S(e,t,n=1){const r=Math.round(n),i=t.calculateRamUpgradeCost(r,e.mults.hacknet_node_ram_cost);if(isNaN(i)||i<=0||r<0)return!1;if(t instanceof s.a&&t.maxRam>=o.b.MaxRam)return!1;if(t instanceof a.a&&t.ram>=o.a.MaxRam)return!1;if(t instanceof s.a){if(t.maxRam*Math.pow(2,r)>o.b.MaxRam){return S(e,t,Math.max(0,Math.log2(Math.round(o.b.MaxRam/t.maxRam))))}}else if(t instanceof a.a&&t.ram*Math.pow(2,r)>o.a.MaxRam){return S(e,t,Math.max(0,Math.log2(Math.round(o.a.MaxRam/t.ram))))}return!!e.canAfford(i)&&(e.loseMoney(i,"hacknet_expenses"),t.upgradeRam(r,e.mults.hacknet_node_money),!0)}function C(e,t,n=1){const a=Math.round(n),r=t.calculateCoreUpgradeCost(a,e.mults.hacknet_node_core_cost);if(isNaN(r)||r<=0||a<0)return!1;const i=t instanceof s.a;if(t.cores>=(i?o.b.MaxCores:o.a.MaxCores))return!1;if(t.cores+a>(i?o.b.MaxCores:o.a.MaxCores)){return C(e,t,Math.max(0,(i?o.b.MaxCores:o.a.MaxCores)-t.cores))}return!!e.canAfford(r)&&(e.loseMoney(r,"hacknet_expenses"),t.upgradeCore(a,e.mults.hacknet_node_money),!0)}function x(e,t,n=1){const a=Math.round(n),r=t.calculateCacheUpgradeCost(a);if(isNaN(r)||r<=0||a<0)return!1;if(!(t instanceof s.a))return console.warn("purchaseCacheUpgrade() called for a non-HacknetNode"),!1;if(t.cache+a>o.b.MaxCache){return x(e,t,Math.max(0,o.b.MaxCache-t.cache))}return!!e.canAfford(r)&&(e.loseMoney(r,"hacknet_expenses"),t.upgradeCache(a),!0)}function L(e,t){return 0===e.hacknetNodes.length?0:d(e)?function(e,t){if(!(e.hashManager instanceof l.a))throw new Error("Player does not have a HashManager (should be in 'hashManager' prop)");let n=0;for(let r=0;r0){const t=c.a["Sell for Money"];if(null===t)throw new Error("Could not get the hash upgrade");if(!t.cost)throw new Error("Upgrade is not properly configured");const n=r/t.cost;n>0&&e.gainMoney(t.value*n,"hacknet")}return n}(e,t):e.hacknetNodes[0]instanceof a.a?function(e,t){let n=0;for(let a=0;ae&&(this.sleeves.length=e);for(let t=this.sleeves.length;t=100?this.sleeves[e].synchronize(this):this.sleeves[e].shockRecovery(this));this.lastUpdate=(new Date).getTime(),this.playtimeSinceLastAug=0,this.scriptProdSinceLastAug=0,this.moneySourceA.reset(),this.hacknetNodes.length=0,this.hashManager.prestige(),this.reapplyAllAugmentations(!0),this.hp=this.max_hp,this.finishWork(!0)}function z(){this.entropy=0,this.prestigeAugmentation(),this.karma=0;for(let e=0;e0?this.intelligence=Math.floor(this.calculateSkill(this.intelligence_exp)):this.intelligence=0;const e=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*e)}function Q(){this.mults=Object(U.a)()}function Z(e){const t=this.getHomeComputer();if(null==t)return!1;for(let n=0;n=e}function re(e,t){this.moneySourceA instanceof F.a||(console.warn("Player.moneySourceA was not properly initialized. Resetting"),this.moneySourceA=new F.a),this.moneySourceB instanceof F.a||(console.warn("Player.moneySourceB was not properly initialized. Resetting"),this.moneySourceB=new F.a),this.moneySourceA.record(e,t),this.moneySourceB.record(e,t)}function ie(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainHackingExp()"):(this.hacking_exp+=e,this.hacking_exp<0&&(this.hacking_exp=0),this.hacking=Object(S.b)(this.hacking_exp,this.mults.hacking*o.a.HackingLevelMultiplier))}function oe(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainStrengthExp()"):(this.strength_exp+=e,this.strength_exp<0&&(this.strength_exp=0),this.strength=Object(S.b)(this.strength_exp,this.mults.strength*o.a.StrengthLevelMultiplier))}function se(e){if(isNaN(e))return void console.error("ERR: NaN passed into player.gainDefenseExp()");this.defense_exp+=e,this.defense_exp<0&&(this.defense_exp=0),this.defense=Object(S.b)(this.defense_exp,this.mults.defense*o.a.DefenseLevelMultiplier);const t=this.hp/this.max_hp;this.max_hp=Math.floor(10+this.defense/10),this.hp=Math.round(this.max_hp*t)}function le(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainDexterityExp()"):(this.dexterity_exp+=e,this.dexterity_exp<0&&(this.dexterity_exp=0),this.dexterity=Object(S.b)(this.dexterity_exp,this.mults.dexterity*o.a.DexterityLevelMultiplier))}function ce(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainAgilityExp()"):(this.agility_exp+=e,this.agility_exp<0&&(this.agility_exp=0),this.agility=Object(S.b)(this.agility_exp,this.mults.agility*o.a.AgilityLevelMultiplier))}function fe(e){isNaN(e)?console.error("ERR: NaN passed into Player.gainCharismaExp()"):(this.charisma_exp+=e,this.charisma_exp<0&&(this.charisma_exp=0),this.charisma=Object(S.b)(this.charisma_exp,this.mults.charisma*o.a.CharismaLevelMultiplier))}function ue(e){isNaN(e)?console.error("ERROR: NaN passed into Player.gainIntelligenceExp()"):(W.a.sourceFileLvl(5)>0||this.intelligence>0)&&(this.intelligence_exp+=e,this.intelligence=Math.floor(this.calculateSkill(this.intelligence_exp,1)))}function me(e){this.gainHackingExp(e.hack*this.mults.hacking_exp),this.gainStrengthExp(e.str*this.mults.strength_exp),this.gainDefenseExp(e.def*this.mults.defense_exp),this.gainDexterityExp(e.dex*this.mults.dexterity_exp),this.gainAgilityExp(e.agi*this.mults.agility_exp),this.gainCharismaExp(e.cha*this.mults.charisma_exp),this.gainIntelligenceExp(e.int)}function he(e){const t=e.toLowerCase();return t.includes("hack")?this.hacking:t.includes("str")?this.strength:t.includes("def")?this.defense:t.includes("dex")?this.dexterity:t.includes("agi")?this.agility:t.includes("cha")?this.charisma:t.includes("int")?this.intelligence:0}function de(){this.focus=!0}function pe(){this.focus=!1}function ge(e){return"number"!=typeof e?(console.warn("Player.takeDamage() called without a numeric argument: "+e),!1):(this.hp-=e,this.hp<=0&&(this.hospitalize(),!0))}function ye(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 be(){const e=Object(N.b)(this);return j.b.emit("You've been Hospitalized for "+I.a.formatMoney(e),j.d.WARNING,2e3),this.loseMoney(e,"hospitalization"),this.hp=this.max_hp,e}function Ee(e,t=!1){const n=c.a[this.location];if(!(n instanceof l.a))return console.error(`Could not find company that matches the location: ${this.location}. Player.applyToCompany() failed`),!1;let a=e;if(!this.isQualified(n,a))return t||Object(D.a)("Unfortunately, you do not qualify for this position
"+Object(u.a)(n,a)),!1;if(!n.hasPosition(a))return console.error(`Company ${n.name} does not have position ${a}. Player.applyToCompany() failed`),!1;for(;;){const e=Object(f.a)(a);if(null==e)break;if(!n.hasPosition(e)||!this.isQualified(n,e))break;a=e}if(this.jobs[n.name]===a.name){if(!t){const e=Object(f.a)(a);if(null!=e&&n.hasPosition(e)){const t=Object(u.a)(n,e);Object(D.a)("Unfortunately, you do not qualify for a promotion
"+t)}else Object(D.a)("You are already at the highest position for your field! No promotion available")}return!1}return this.jobs[n.name]=a.name,t||Object(D.a)("Congratulations! You were offered a new job at "+n.name+" as a "+a.name+"!"),!0}function ve(e,t){const n=c.a[e.name];if(null==n||n.name!=e.name)return t;const a=this.jobs[e.name];if(!a)return t;const r=m.a[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(f.a)(r):t}function ke(e){Object(H.b)(this.currentWork)&&this.currentWork.companyName===e&&this.finishWork(!0),delete this.jobs[e]}function we(){return Boolean(Object.keys(this.jobs).length)}function _e(e=!1){return this.applyForJob(m.a[h.j[0]],e)}function Se(e=!1){return this.applyForJob(m.a[h.k[0]],e)}function Ce(e=!1){return this.applyForJob(m.a[h.d[0]],e)}function xe(e=!1){const t=c.a[this.location];return this.isQualified(t,m.a[h.i[0]])?this.applyForJob(m.a[h.i[0]],e):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1)}function Le(e=!1){const t=c.a[this.location];if(this.isQualified(t,m.a[h.f[0]])){const t=m.a[h.f[0]];return this.applyForJob(t,e)}return e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1}function Oe(e=!1){return this.applyForJob(m.a[h.b[0]],e)}function Me(e=!1){return this.applyForJob(m.a[h.c[0]],e)}function Te(e=!1){return this.applyForJob(m.a[h.h[2]],e)}function Ae(e=!1){const t=c.a[this.location];if(this.isQualified(t,m.a[h.a[0]])){const t=m.a[h.a[0]];return this.applyForJob(t,e)}return e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1}function Re(e=!1){const t=c.a[this.location],n=h.e[1];return!!t.hasPosition(n)&&(this.isQualified(t,m.a[n])?(this.jobs[t.name]=n,e||Object(D.a)("Congratulations, you are now employed at "+this.location),!0):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1))}function Ne(e=!1){const t=c.a[this.location],n=h.g[1];return!!t.hasPosition(n)&&(this.isQualified(t,m.a[n])?(this.jobs[t.name]=n,e||Object(D.a)("Congratulations, you are now employed part-time at "+this.location),!0):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1))}function Pe(e=!1){const t=c.a[this.location],n=h.e[0];return!!t.hasPosition(n)&&(this.isQualified(t,m.a[n])?(this.jobs[t.name]=n,e||Object(D.a)("Congratulations, you are now employed as a waiter at "+this.location),!0):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1))}function Ie(e=!1){const t=c.a[this.location],n=h.g[0];return!!t.hasPosition(n)&&(this.isQualified(t,m.a[n])?(this.jobs[t.name]=n,e||Object(D.a)("Congratulations, you are now employed as a part-time waiter at "+this.location),!0):(e||Object(D.a)("Unfortunately, you do not qualify for this position"),!1))}function Fe(e,t){const 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>=a&&this.strength>=r&&this.defense>=i&&this.dexterity>=o&&this.agility>=s&&this.charisma>=l&&e.playerReputation>=t.requiredReputation}function De(e=!0){e&&this.resetMultipliers();for(let e=0;et.specialName===e),a=Object(x.d)(t?t.hostname:"").backdoorInstalled?-1e5:0;return n.includes(e)&&function(e){const t=c.a[e];return null==t?0:t.playerReputation}(e)>d.a.CorpFactionRepRequirement+a}const i=y.a[G.a.Illuminati];!i.isBanned&&!i.isMember&&!i.alreadyInvited&&t>=30&&this.money>=15e10&&this.hacking>=1500&&this.strength>=1200&&this.defense>=1200&&this.dexterity>=1200&&this.agility>=1200&&e.push(i);const s=y.a[G.a.Daedalus];!s.isBanned&&!s.isMember&&!s.alreadyInvited&&t>=o.a.DaedalusAugsRequirement&&this.money>=1e11&&(this.hacking>=2500||this.strength>=1500&&this.defense>=1500&&this.dexterity>=1500&&this.agility>=1500)&&e.push(s);const l=y.a[G.a.TheCovenant];!l.isBanned&&!l.isMember&&!l.alreadyInvited&&t>=20&&this.money>=75e9&&this.hacking>=850&&this.strength>=850&&this.defense>=850&&this.dexterity>=850&&this.agility>=850&&e.push(l);const f=y.a[G.a.ECorp];f.isBanned||f.isMember||f.alreadyInvited||!r(w.a.AevumECorp)||e.push(f);const u=y.a[G.a.MegaCorp];u.isBanned||u.isMember||u.alreadyInvited||!r(w.a.Sector12MegaCorp)||e.push(u);const m=y.a[G.a.BachmanAssociates];m.isBanned||m.isMember||m.alreadyInvited||!r(w.a.AevumBachmanAndAssociates)||e.push(m);const h=y.a[G.a.BladeIndustries];h.isBanned||h.isMember||h.alreadyInvited||!r(w.a.Sector12BladeIndustries)||e.push(h);const p=y.a[G.a.NWO];p.isBanned||p.isMember||p.alreadyInvited||!r(w.a.VolhavenNWO)||e.push(p);const g=y.a[G.a.ClarkeIncorporated];g.isBanned||g.isMember||g.alreadyInvited||!r(w.a.AevumClarkeIncorporated)||e.push(g);const b=y.a[G.a.OmniTekIncorporated];b.isBanned||b.isMember||b.alreadyInvited||!r(w.a.VolhavenOmniTekIncorporated)||e.push(b);const E=y.a[G.a.FourSigma];E.isBanned||E.isMember||E.alreadyInvited||!r(w.a.Sector12FourSigma)||e.push(E);const v=y.a[G.a.KuaiGongInternational];v.isBanned||v.isMember||v.alreadyInvited||!r(w.a.ChongqingKuaiGongInternational)||e.push(v);const _=y.a[G.a.FulcrumSecretTechnologies],S=Object(x.d)(M.a.FulcrumSecretTechnologies);if(!(S instanceof L.a))throw new Error(G.a.FulcrumSecretTechnologies+" should be normal server");null==S?console.error(`Could not find ${G.a.FulcrumSecretTechnologies} Server`):_.isBanned||_.isMember||_.alreadyInvited||!S.backdoorInstalled||!r(w.a.AevumFulcrumTechnologies)||e.push(_);const C=y.a[G.a.BitRunners],O=Object(x.d)(M.a.BitRunnersServer);if(!(O instanceof L.a))throw new Error(G.a.BitRunners+" should be normal server");null==O?console.error(`Could not find ${G.a.BitRunners} Server`):C.isBanned||C.isMember||!O.backdoorInstalled||C.alreadyInvited||e.push(C);const T=y.a[G.a.TheBlackHand],A=Object(x.d)(M.a.TheBlackHandServer);if(!(A instanceof L.a))throw new Error(G.a.TheBlackHand+" should be normal server");null==A?console.error(`Could not find ${G.a.TheBlackHand} Server`):T.isBanned||T.isMember||!A.backdoorInstalled||T.alreadyInvited||e.push(T);const R=y.a[G.a.NiteSec],N=Object(x.d)(M.a.NiteSecServer);if(!(N instanceof L.a))throw new Error(G.a.NiteSec+" should be normal server");null==N?console.error(`Could not find ${G.a.NiteSec} Server`):R.isBanned||R.isMember||!N.backdoorInstalled||R.alreadyInvited||e.push(R);const I=y.a[G.a.Chongqing];!I.isBanned&&!I.isMember&&!I.alreadyInvited&&this.money>=2e7&&this.city==k.a.Chongqing&&e.push(I);const F=y.a[G.a.Sector12];!F.isBanned&&!F.isMember&&!F.alreadyInvited&&this.money>=15e6&&this.city==k.a.Sector12&&e.push(F);const D=y.a[G.a.NewTokyo];!D.isBanned&&!D.isMember&&!D.alreadyInvited&&this.money>=2e7&&this.city==k.a.NewTokyo&&e.push(D);const j=y.a[G.a.Aevum];!j.isBanned&&!j.isMember&&!j.alreadyInvited&&this.money>=4e7&&this.city==k.a.Aevum&&e.push(j);const B=y.a[G.a.Ishima];!B.isBanned&&!B.isMember&&!B.alreadyInvited&&this.money>=3e7&&this.city==k.a.Ishima&&e.push(B);const W=y.a[G.a.Volhaven];!W.isBanned&&!W.isMember&&!W.alreadyInvited&&this.money>=5e7&&this.city==k.a.Volhaven&&e.push(W);const H=y.a[G.a.SpeakersForTheDead];!H.isBanned&&!H.isMember&&!H.alreadyInvited&&this.hacking>=100&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.numPeopleKilled>=30&&this.karma<=-45&&!n.includes(w.a.Sector12CIA)&&!n.includes(w.a.Sector12NSA)&&e.push(H);const U=y.a[G.a.TheDarkArmy];!U.isBanned&&!U.isMember&&!U.alreadyInvited&&this.hacking>=300&&this.strength>=300&&this.defense>=300&&this.dexterity>=300&&this.agility>=300&&this.city==k.a.Chongqing&&this.numPeopleKilled>=5&&this.karma<=-45&&!n.includes(w.a.Sector12CIA)&&!n.includes(w.a.Sector12NSA)&&e.push(U);const $=y.a[G.a.TheSyndicate];!$.isBanned&&!$.isMember&&!$.alreadyInvited&&this.hacking>=200&&this.strength>=200&&this.defense>=200&&this.dexterity>=200&&this.agility>=200&&(this.city==k.a.Aevum||this.city==k.a.Sector12)&&this.money>=1e7&&this.karma<=-90&&!n.includes(w.a.Sector12CIA)&&!n.includes(w.a.Sector12NSA)&&e.push($);const K=y.a[G.a.Silhouette];!K.isBanned&&!K.isMember&&!K.alreadyInvited&&(a.includes("Chief Technology Officer")||a.includes("Chief Financial Officer")||a.includes("Chief Executive Officer"))&&this.money>=15e6&&this.karma<=-22&&e.push(K);const z=y.a[G.a.Tetrads];!z.isBanned&&!z.isMember&&!z.alreadyInvited&&(this.city==k.a.Chongqing||this.city==k.a.NewTokyo||this.city==k.a.Ishima)&&this.strength>=75&&this.defense>=75&&this.dexterity>=75&&this.agility>=75&&this.karma<=-18&&e.push(z);const V=y.a[G.a.SlumSnakes];!V.isBanned&&!V.isMember&&!V.alreadyInvited&&this.strength>=30&&this.defense>=30&&this.dexterity>=30&&this.agility>=30&&this.karma<=-9&&this.money>=1e6&&e.push(V);const Y=y.a[G.a.Netburners];let J=0,X=0,Q=0;for(let e=0;e=80&&J>=8&&X>=4&&Q>=100&&e.push(Y);const Z=y.a[G.a.TianDiHui];!Z.isBanned&&!Z.isMember&&!Z.alreadyInvited&&this.money>=1e6&&this.hacking>=50&&(this.city==k.a.Chongqing||this.city==k.a.NewTokyo||this.city==k.a.Ishima)&&e.push(Z);const ee=y.a[G.a.CyberSec],te=Object(x.d)(M.a.CyberSecServer);if(!(te instanceof L.a))throw new Error(G.a.CyberSec+" should be normal server");return null==te?console.error(`Could not find ${G.a.CyberSec} Server`):ee.isBanned||ee.isMember||!te.backdoorInstalled||ee.alreadyInvited||e.push(ee),e}function Ge(e){this.bitNodeN=e}function We(e){for(const t of this.queuedAugmentations)if(t.name==e)return void console.warn(`tried to queue ${e} twice, this may be a bug`);for(const t of this.augmentations)if(t.name==e)return void console.warn(`tried to queue ${e} twice, this may be a bug`);this.queuedAugmentations.push(new r.a(e))}function He(e,t=1){if(null==e||null==e.type)return"No reward for this contract";switch(e.type){case s.c.FactionReputation:if(null==e.name||!(y.a[e.name]instanceof g.a))return e.type=s.c.FactionReputationAll,this.gainCodingContractReward(e);const n=d.a.CodingContractBaseFactionRepGain*t;return y.a[e.name].playerReputation+=n,`Gained ${n} faction reputation for ${e.name}`;case s.c.FactionReputationAll:const a=d.a.CodingContractBaseFactionRepGain*t,r=[G.a.Bladeburners],i=this.factions.slice().filter(e=>!r.includes(e));if(0==i.length)return e.type=s.c.Money,this.gainCodingContractReward(e,t);const f=Math.floor(a/i.length);for(const e of i)y.a[e]instanceof g.a&&(y.a[e].playerReputation+=f);return`Gained ${f} reputation for each of the following factions: ${i.toString()}`;case s.c.CompanyReputation:{if(null==e.name||!(c.a[e.name]instanceof l.a))return e.type=s.c.FactionReputationAll,this.gainCodingContractReward(e);const n=d.a.CodingContractBaseCompanyRepGain*t;return c.a[e.name].playerReputation+=n,`Gained ${n} company reputation for ${e.name}`}case s.c.Money:default:{const e=d.a.CodingContractBaseMoneyGain*t*o.a.CodingContractMoney;return this.gainMoney(e,"codingcontract"),"Gained "+I.a.formatMoney(e)}}}function Ue(e){return null==E.a[e]?(console.warn("Player.travel() called with invalid city: "+e),!1):(this.city=e,!0)}function qe(e){return null==v.a[e]?(console.warn("Player.gotoLocation() called with invalid location: "+e),!1):(this.location=e,!0)}function $e(){return 10===this.bitNodeN||this.sourceFileLvl(10)>0}function Ke(e){this.exploits.includes(e)||(this.exploits.push(e),j.b.emit("SF -1 acquired!",j.d.SUCCESS,2e3))}function ze(e){const t=B.a[e];t&&(this.achievements.map(e=>e.ID).includes(e)||(this.achievements.push({ID:e,unlockedOn:(new Date).getTime()}),j.b.emit(`Unlocked Achievement: "${t.Name}"`,j.d.SUCCESS,2e3)))}function Ve(e){return Object(C.a)(this.intelligence,e)}function Ye(){return this.moneySourceA.casino}function Je(){return 13===this.bitNodeN||this.sourceFileLvl(13)>0}function Xe(e){const t=this.sourceFiles.find(t=>t.n===e);return t?t.lvl:0}function Qe(){let e=1;return this.hasAugmentation(i.a.NeuroreceptorManager)||(e=this.focus?1:d.a.BaseFocusBonus),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1032),r=n(1033);const i={};for(const e of r.a)i[e.key]=new a.a(e.name,e.create,e.run)},function(e,t,n){"use strict";let a;function r(e){switch(e){case a.HackingChance:return"+x% hack() success chance";case a.HackingSpeed:return"+x% faster hack(), grow(), and weaken()";case a.HackingMoney:return"+x% hack() power";case a.HackingGrow:return"+x% grow() power";case a.Hacking:return"+x% hacking skill";case a.Strength:return"+x% strength skill";case a.Defense:return"+x% defense skill";case a.Dexterity:return"+x% dexterity skill";case a.Agility:return"+x% agility skill";case a.Charisma:return"+x% charisma skill";case a.HacknetMoney:return"+x% hacknet production";case a.HacknetCost:return"-x% cheaper hacknet cost";case a.Rep:return"+x% reputation from factions and companies";case a.WorkMoney:return"+x% work money";case a.Crime:return"+x% crime money";case a.Bladeburner:return"+x% all bladeburner stats"}throw new Error("Calling effect for fragment type that doesn't have an effect "+e)}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),function(e){e[e.None=0]="None",e[e.Delete=1]="Delete",e[e.HackingChance=2]="HackingChance",e[e.HackingSpeed=3]="HackingSpeed",e[e.HackingMoney=4]="HackingMoney",e[e.HackingGrow=5]="HackingGrow",e[e.Hacking=6]="Hacking",e[e.Strength=7]="Strength",e[e.Defense=8]="Defense",e[e.Dexterity=9]="Dexterity",e[e.Agility=10]="Agility",e[e.Charisma=11]="Charisma",e[e.HacknetMoney=12]="HacknetMoney",e[e.HacknetCost=13]="HacknetCost",e[e.Rep=14]="Rep",e[e.WorkMoney=15]="WorkMoney",e[e.Crime=16]="Crime",e[e.Bladeburner=17]="Bladeburner",e[e.Booster=18]="Booster"}(a||(a={}))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"o",(function(){return NewIndustry})),__webpack_require__.d(__webpack_exports__,"n",(function(){return NewCity})),__webpack_require__.d(__webpack_exports__,"B",(function(){return UnlockUpgrade})),__webpack_require__.d(__webpack_exports__,"j",(function(){return LevelUpgrade})),__webpack_require__.d(__webpack_exports__,"i",(function(){return IssueDividends})),__webpack_require__.d(__webpack_exports__,"r",(function(){return SellMaterial})),__webpack_require__.d(__webpack_exports__,"s",(function(){return SellProduct})),__webpack_require__.d(__webpack_exports__,"y",(function(){return SetSmartSupply})),__webpack_require__.d(__webpack_exports__,"z",(function(){return SetSmartSupplyUseLeftovers})),__webpack_require__.d(__webpack_exports__,"e",(function(){return BuyMaterial})),__webpack_require__.d(__webpack_exports__,"b",(function(){return BulkPurchase})),__webpack_require__.d(__webpack_exports__,"t",(function(){return SellShares})),__webpack_require__.d(__webpack_exports__,"c",(function(){return BuyBackShares})),__webpack_require__.d(__webpack_exports__,"a",(function(){return AssignJob})),__webpack_require__.d(__webpack_exports__,"C",(function(){return UpgradeOfficeSize})),__webpack_require__.d(__webpack_exports__,"A",(function(){return ThrowParty})),__webpack_require__.d(__webpack_exports__,"p",(function(){return PurchaseWarehouse})),__webpack_require__.d(__webpack_exports__,"E",(function(){return UpgradeWarehouseCost})),__webpack_require__.d(__webpack_exports__,"D",(function(){return UpgradeWarehouse})),__webpack_require__.d(__webpack_exports__,"d",(function(){return BuyCoffee})),__webpack_require__.d(__webpack_exports__,"h",(function(){return HireAdVert})),__webpack_require__.d(__webpack_exports__,"m",(function(){return MakeProduct})),__webpack_require__.d(__webpack_exports__,"q",(function(){return Research})),__webpack_require__.d(__webpack_exports__,"g",(function(){return ExportMaterial})),__webpack_require__.d(__webpack_exports__,"f",(function(){return CancelExportMaterial})),__webpack_require__.d(__webpack_exports__,"l",(function(){return LimitProductProduction})),__webpack_require__.d(__webpack_exports__,"k",(function(){return LimitMaterialProduction})),__webpack_require__.d(__webpack_exports__,"u",(function(){return SetMaterialMarketTA1})),__webpack_require__.d(__webpack_exports__,"v",(function(){return SetMaterialMarketTA2})),__webpack_require__.d(__webpack_exports__,"w",(function(){return SetProductMarketTA1})),__webpack_require__.d(__webpack_exports__,"x",(function(){return SetProductMarketTA2}));var _MaterialSizes__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(183),_IndustryData__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(50),_Industry__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1063),_data_Constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(39),_OfficeSpace__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(389),_Product__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(419),_Warehouse__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(245),_Locations_Cities__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(156),_EmployeePositions__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(45),_IndustryUpgrades__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(330),_ResearchMap__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(301),_ui_Helpers__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(420);function NewIndustry(e,t,n){if(e.divisions.find(({type:e})=>t==e))throw new Error(`You have already expanded into the ${t} industry!`);for(let t=0;t_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.DividendMaxPercentage)throw new Error("Invalid value. Must be an integer between 0 and "+_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.DividendMaxPercentage);e.dividendPercentage=100*t}function SellMaterial(mat,amt,price){""===price&&(price="0"),""===amt&&(amt="0");let cost=price.replace(/\s+/g,"");cost=cost.replace(/[^-()\d/*+.MPe]/g,"");let temp=cost.replace(/MP/g,mat.bCost+"");try{temp=eval(temp)}catch(e){throw new Error("Invalid value or expression for sell price field: "+e)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell price field");if(cost.includes("MP")?mat.sCost=cost:mat.sCost=temp,amt=amt.toUpperCase(),amt.includes("MAX")||amt.includes("PROD")){let q=amt.replace(/\s+/g,"");q=q.replace(/[^-()\d/*+.MAXPROD]/g,"");let tempQty=q.replace(/MAX/g,mat.maxsll.toString());tempQty=tempQty.replace(/PROD/g,mat.prd.toString());try{tempQty=eval(tempQty)}catch(e){throw new Error("Invalid value or expression for sell quantity field: "+e)}if(null==tempQty||isNaN(parseFloat(tempQty))||parseFloat(tempQty)<0)throw new Error("Invalid value or expression for sell quantity field");mat.sllman[0]=!0,mat.sllman[1]=q}else{if(isNaN(parseFloat(amt))||parseFloat(amt)<0)throw new Error("Invalid value for sell quantity field! Must be numeric or 'PROD' or 'MAX'");{let e=parseFloat(amt);isNaN(e)&&(e=0),0===e?(mat.sllman[0]=!1,mat.sllman[1]=0):(mat.sllman[0]=!0,mat.sllman[1]=e)}}}function SellProduct(product,city,amt,price,all){if(price.includes("MP")){price=price.replace(/\s+/g,""),price=price.replace(/[^-()\d/*+.MP]/g,"");let temp=price.replace(/MP/g,"1");try{temp=eval(temp)}catch(e){throw new Error("Invalid value or expression for sell price field: "+e)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell price field.");product.sCost=price}else{const e=parseFloat(price);if(isNaN(e))throw new Error("Invalid value for sell price field");product.sCost=e}const cities=Object.keys(_Locations_Cities__WEBPACK_IMPORTED_MODULE_7__.a);if(amt=amt.toUpperCase(),amt.includes("MAX")||amt.includes("PROD")){let qty=amt.replace(/\s+/g,"");qty=qty.replace(/[^-()\d/*+.MAXPROD]/g,"");let temp=qty.replace(/MAX/g,product.maxsll.toString());temp=temp.replace(/PROD/g,product.data[city][1].toString());try{temp=eval(temp)}catch(e){throw new Error("Invalid value or expression for sell quantity field: "+e)}if(null==temp||isNaN(parseFloat(temp))||parseFloat(temp)<0)throw new Error("Invalid value or expression for sell quantity field");if(all)for(let e=0;ei)throw new Error("You do not have enough warehouse size to fit this purchase");const o=a*n.bCost;if(!(e.funds>=o))throw new Error("You cannot afford this purchase.");e.funds=e.funds-o,n.qty+=a}function SellShares(e,t,n){if(isNaN(n))throw new Error("Invalid value for number of shares");if(n<0)throw new Error("Invalid value for number of shares");if(n>e.numShares)throw new Error("You don't have that many shares to sell!");if(!e.public)throw new Error("You haven't gone public!");if(e.shareSaleCooldown)throw new Error("Share sale on cooldown!");const a=e.calculateShareSale(n),r=a[0],i=a[1],o=a[2];return e.numShares-=n,e.issuedShares+=n,e.sharePrice=i,e.shareSalesUntilPriceUpdate=o,e.shareSaleCooldown=_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.SellSharesCooldown,t.gainMoney(r,"corporation"),r}function BuyBackShares(e,t,n){if(isNaN(n))throw new Error("Invalid value for number of shares");if(n<0)throw new Error("Invalid value for number of shares");if(n>e.issuedShares)throw new Error("You don't have that many shares to buy!");if(!e.public)throw new Error("You haven't gone public!");const a=1.1*e.sharePrice;if(t.moneyt+_data_Constants__WEBPACK_IMPORTED_MODULE_3__.a.WarehouseUpgradeBaseCost*Math.pow(1.07,e.level+1+n),0)}function UpgradeWarehouse(e,t,n,a=1){const r=UpgradeWarehouseCost(n,a);e.funds=o)throw new Error(`You are already at the max products (${o}) for division: ${t.name}!`);const l=new _Product__WEBPACK_IMPORTED_MODULE_5__.a({name:a.replace(/[<>]/g,"").trim(),createCity:n,designCost:r,advCost:i});if(s[l.name]instanceof _Product__WEBPACK_IMPORTED_MODULE_5__.a)throw new Error("You already have a product with this name!");e.funds=e.funds-(r+i),s[l.name]=l}function Research(e,t){const n=_IndustryData__WEBPACK_IMPORTED_MODULE_1__.c[e.type];if(void 0===n)throw new Error(`No research tree for industry '${e.type}'`);if(!n.getAllNodes().includes(t))throw new Error(`No research named '${t}'`);const a=_ResearchMap__WEBPACK_IMPORTED_MODULE_10__.a[t];if(e.sciResearch.qty{var t;null!=o[(t=e).name]&&console.warn("Duplicate Company Position being defined: "+t.name),o[t.name]=new r.a(t)});for(const t of Object.keys(o)){const n=o[t];e[t]instanceof r.a?(n.favor=e[t].favor,isNaN(n.favor)&&(n.favor=0)):n.favor=0}}function l(e){o=JSON.parse(e,i.c)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(30),o=n(150),s=n(118);function l(){return(l=Object.assign||function(e){for(var t=1;tr.a.createElement(i.a,l({},e,{classes:{root:c().root,...e.classes}})),u=e=>r.a.createElement(o.a,l({},e,{classes:{root:c().small,...e.classes}}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s}));var a=n(4),r=n(22);let i={[a.a.SlumSnakes]:{power:1,territory:1/7},[a.a.Tetrads]:{power:1,territory:1/7},[a.a.TheSyndicate]:{power:1,territory:1/7},[a.a.TheDarkArmy]:{power:1,territory:1/7},[a.a.SpeakersForTheDead]:{power:1,territory:1/7},[a.a.NiteSec]:{power:1,territory:1/7},[a.a.TheBlackHand]:{power:1,territory:1/7}};function o(){i={[a.a.SlumSnakes]:{power:1,territory:1/7},[a.a.Tetrads]:{power:1,territory:1/7},[a.a.TheSyndicate]:{power:1,territory:1/7},[a.a.TheDarkArmy]:{power:1,territory:1/7},[a.a.SpeakersForTheDead]:{power:1,territory:1/7},[a.a.NiteSec]:{power:1,territory:1/7},[a.a.TheBlackHand]:{power:1,territory:1/7}}}function s(e){i=JSON.parse(e,r.c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(0),r=n.n(a),i=n(48),o=n(30),s=n(1),l=n(6),c=n(25),f=n(307);const u=({name:e,color:t,classes:n=Object(f.b)(),children:a,data:u})=>{let m="";return u&&(void 0!==u.content?m=u.content:void 0!==u.level&&void 0!==u.exp?m=`${Object(c.f)(u.level,0)} (${l.a.formatExp(u.exp)} exp)`:void 0!==u.level&&void 0===u.exp&&(m=""+Object(c.f)(u.level,0))),r.a.createElement(i.a,null,r.a.createElement(o.a,{classes:{root:n.cellNone}},r.a.createElement(s.a,{style:{color:t}},e)),r.a.createElement(o.a,{align:"right",classes:{root:n.cellNone}},m?r.a.createElement(s.a,{style:{color:t}},m):r.a.createElement(r.a.Fragment,null),a))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(278),r=n(12),i=n(249);const o={Shoplift:new a.a("Shoplift",i.a.Shoplift,2e3,15e3,.05,.1,{dexterity_success_weight:1,agility_success_weight:1,dexterity_exp:2,agility_exp:2}),RobStore:new a.a("Rob Store",i.a.RobStore,6e4,4e5,.2,.5,{hacking_exp:30,dexterity_exp:45,agility_exp:45,hacking_success_weight:.5,dexterity_success_weight:2,agility_success_weight:1,intelligence_exp:7.5*r.a.IntelligenceCrimeBaseExpGain}),Mug:new a.a("Mug",i.a.Mug,4e3,36e3,.2,.25,{strength_exp:3,defense_exp:3,dexterity_exp:3,agility_exp:3,strength_success_weight:1.5,defense_success_weight:.5,dexterity_success_weight:1.5,agility_success_weight:.5}),Larceny:new a.a("Larceny",i.a.Larceny,9e4,8e5,1/3,1.5,{hacking_exp:45,dexterity_exp:60,agility_exp:60,hacking_success_weight:.5,dexterity_success_weight:1,agility_success_weight:1,intelligence_exp:15*r.a.IntelligenceCrimeBaseExpGain}),DealDrugs:new a.a("Deal Drugs",i.a.Drugs,1e4,12e4,1,.5,{dexterity_exp:5,agility_exp:5,charisma_exp:10,charisma_success_weight:3,dexterity_success_weight:2,agility_success_weight:1}),BondForgery:new a.a("Bond Forgery",i.a.BondForgery,3e5,45e5,.5,.1,{hacking_exp:100,dexterity_exp:150,charisma_exp:15,hacking_success_weight:.05,dexterity_success_weight:1.25,intelligence_exp:60*r.a.IntelligenceCrimeBaseExpGain}),TraffickArms:new a.a("Traffick Arms",i.a.TraffickArms,4e4,6e5,2,1,{strength_exp:20,defense_exp:20,dexterity_exp:20,agility_exp:20,charisma_exp:40,charisma_success_weight:1,strength_success_weight:1,defense_success_weight:1,dexterity_success_weight:1,agility_success_weight:1}),Homicide:new a.a("Homicide",i.a.Homicide,3e3,45e3,1,3,{strength_exp:2,defense_exp:2,dexterity_exp:2,agility_exp:2,strength_success_weight:2,defense_success_weight:2,dexterity_success_weight:.5,agility_success_weight:.5,kills:1}),GrandTheftAuto:new a.a("Grand Theft Auto",i.a.GrandTheftAuto,8e4,16e5,8,5,{strength_exp:20,defense_exp:20,dexterity_exp:20,agility_exp:80,charisma_exp:40,hacking_success_weight:1,strength_success_weight:1,dexterity_success_weight:4,agility_success_weight:2,charisma_success_weight:2,intelligence_exp:16*r.a.IntelligenceCrimeBaseExpGain}),Kidnap:new a.a("Kidnap",i.a.Kidnap,12e4,36e5,5,6,{strength_exp:80,defense_exp:80,dexterity_exp:80,agility_exp:80,charisma_exp:80,charisma_success_weight:1,strength_success_weight:1,dexterity_success_weight:1,agility_success_weight:1,intelligence_exp:26*r.a.IntelligenceCrimeBaseExpGain}),Assassination:new a.a("Assassination",i.a.Assassination,3e5,12e6,8,10,{strength_exp:300,defense_exp:300,dexterity_exp:300,agility_exp:300,strength_success_weight:1,dexterity_success_weight:2,agility_success_weight:1,intelligence_exp:65*r.a.IntelligenceCrimeBaseExpGain,kills:1}),Heist:new a.a("Heist",i.a.Heist,6e5,12e7,18,15,{hacking_exp:450,strength_exp:450,defense_exp:450,dexterity_exp:450,agility_exp:450,charisma_exp:450,hacking_success_weight:1,strength_success_weight:1,defense_success_weight:1,dexterity_success_weight:1,agility_success_weight:1,charisma_success_weight:1,intelligence_exp:130*r.a.IntelligenceCrimeBaseExpGain})}},function(e,t,n){"use strict";function a(e){return e.startsWith("/")?e.slice(1):e}function r(e){return e.endsWith("/")?e.slice(0,-1):e}function i(e){return null!=e.match(/^[.a-zA-Z0-9_-]+[.][a-zA-Z0-9]+(?:-\d+(?:\.\d*)?%-INC)?$/)}function o(e){return null!=e.match(/^.?[a-zA-Z0-9_-]+$/)}function s(e){let t=e;if(0===t.length)return!1;if(1===t.length)return"/"===t;if(!t.startsWith("/"))return!1;t=t.slice(1),t=r(t);const n=t.split("/");for(const e of n)if("."!==e&&".."!==e&&!o(e))return!1;return!0}function l(e){if(null==e||"string"!=typeof e)return!1;const t=e;if(t.length<3)return!1;if(t.endsWith("/"))return!1;const n=t.lastIndexOf("/");if(-1===n)return i(t);const a=t.slice(n+1);return s(t.slice(0,n+1))&&i(a)}function c(e){let t=e;if(t=a(t),t=r(t),-1===t.lastIndexOf("/"))return"/";const n=t.split("/");return 0===n.length?"/":n[0]+"/"}function f(e){const t=e,n=t.lastIndexOf("/");return-1===n?"":t.slice(0,n+1)}function u(e,t,n){const a=h(e,n);if(null===a)return e;{const e=r(a),n=function(e){const t=e,n=t.lastIndexOf("/");if(-1===n)return t;return t.slice(n+1)}(t);return e+"/"+n}}function m(e){return!!l(e)&&(null!=e&&0!==e.length&&e.lastIndexOf("/")<=0)}function h(e,t){let n=e;if(!n.startsWith("/")&&t&&(n=t+(t.endsWith("/")?"":"/")+n),!s(n))return null;n=a(n),n=r(n);const i=n.split("/"),o=[];for(const e of i)if("."!==e)if(".."===e){if(null==o.pop())return null}else o.push(e);return"/"+o.join("/")}function d(e,t){let n=e;if(n.startsWith("/")||null==t||(n=t+(t.endsWith("/")?"":"/")+n),!l(n))return null;n=a(n);const r=n.split("/"),i=[];for(const e of r)if("."!==e)if(".."===e){if(null==i.pop())return null}else i.push(e);return"/"+i.join("/")}function p(e,t){return e.startsWith("/")||(e="/"+e),t.startsWith("/")||(t="/"+t),e===t}function g(e,t){return e.endsWith(".ns")||e.endsWith(".js")||(e+=".js"),t.endsWith(".ns")||t.endsWith(".js")||(t+=".js"),p(e,t)}n.d(t,"k",(function(){return a})),n.d(t,"l",(function(){return r})),n.d(t,"i",(function(){return s})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return g}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=new(n(962).a)},,function(e,t,n){"use strict";function a(e){return function(t){t.isTrusted&&e()}}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={Home:"home",FulcrumSecretTechnologies:"fulcrumassets",CyberSecServer:"CSEC",NiteSecServer:"avmnite-02h",TheBlackHandServer:"I.I.I.I",BitRunnersServer:"run4theh111z",TheDarkArmyServer:".",DaedalusServer:"The-Cave",WorldDaemon:"w0r1d_d43m0n",DarkWeb:"darkweb"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return y})),n.d(t,"b",(function(){return b}));var a=n(0),r=n.n(a),i=n(22),o=n(12),s=n(9),l=n(6),c=n(14),f=n(21),u=n(25),m=n(334),h=n(154),d=n(165);let p;!function(e){e.StudyComputerScience="StudyComputerScience",e.DataStructures="DataStructures",e.Networks="Networks",e.Algorithms="Algorithms",e.Management="Management",e.Leadership="Leadership",e.GymStrength="GymStrength",e.GymDefense="GymDefense",e.GymDexterity="GymDexterity",e.GymAgility="GymAgility"}(p||(p={}));const g={[p.StudyComputerScience]:{youAreCurrently:"studying Computer Science",type:p.StudyComputerScience,earnings:Object(d.b)({hackExp:.5,intExp:.01})},[p.DataStructures]:{youAreCurrently:"taking a Data Structures course",type:p.DataStructures,earnings:Object(d.b)({money:-40,hackExp:1,intExp:.01})},[p.Networks]:{youAreCurrently:"taking a Networks course",type:p.Networks,earnings:Object(d.b)({money:-80,hackExp:2,intExp:.01})},[p.Algorithms]:{youAreCurrently:"taking an Algorithms course",type:p.Algorithms,earnings:Object(d.b)({money:-320,hackExp:4,intExp:.01})},[p.Management]:{youAreCurrently:"taking a Management course",type:p.Management,earnings:Object(d.b)({money:-160,chaExp:2,intExp:.01})},[p.Leadership]:{youAreCurrently:"taking a Leadership course",type:p.Leadership,earnings:Object(d.b)({money:-320,chaExp:4,intExp:.01})},[p.GymStrength]:{youAreCurrently:"training your strength at a gym",type:p.GymStrength,earnings:Object(d.b)({money:-120,strExp:1})},[p.GymDefense]:{youAreCurrently:"training your defense at a gym",type:p.GymDefense,earnings:Object(d.b)({money:-120,defExp:1})},[p.GymDexterity]:{youAreCurrently:"training your dexterity at a gym",type:p.GymDexterity,earnings:Object(d.b)({money:-120,dexExp:1})},[p.GymAgility]:{youAreCurrently:"training your agility at a gym",type:p.GymAgility,earnings:Object(d.b)({money:-120,agiExp:1})}},y=e=>null!==e&&e.type===h.b.CLASS;class b extends h.a{constructor(e){var t,n,a,r,i,o;super(h.b.CLASS,null===(t=null==e?void 0:e.singularity)||void 0===t||t),r=this,i="earnings",o=Object(d.b)(),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,this.classType=null!==(n=null==e?void 0:e.classType)&&void 0!==n?n:p.StudyComputerScience,this.location=null!==(a=null==e?void 0:e.location)&&void 0!==a?a:s.a.Sector12RothmanUniversity}isGym(){return[p.GymAgility,p.GymDefense,p.GymDexterity,p.GymStrength].includes(this.classType)}getClass(){return g[this.classType]}calculateRates(e){return Object(m.a)(e,this)}process(e,t){this.cyclesWorked+=t;const n=this.calculateRates(e),a=Object(d.a)(e,n,t,"class");return this.earnings=Object(d.c)(this.earnings,a),!1}finish(){this.singularity||Object(c.a)(r.a.createElement(r.a.Fragment,null,"After ",this.getClass().youAreCurrently," for"," ",Object(u.d)(this.cyclesWorked*o.a._idleSpeed),", ",r.a.createElement("br",null),"you spent a total of ",r.a.createElement(f.a,{money:-this.earnings.money}),". ",r.a.createElement("br",null),r.a.createElement("br",null),"You earned a total of: ",r.a.createElement("br",null),l.a.formatExp(this.earnings.hackExp)," hacking exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.strExp)," strength exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.defExp)," defense exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.dexExp)," dexterity exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.agiExp)," agility exp ",r.a.createElement("br",null),l.a.formatExp(this.earnings.chaExp)," charisma exp",r.a.createElement("br",null)))}toJSON(){return Object(i.b)("ClassWork",this)}static fromJSON(e){return Object(i.a)(b,e.data)}}i.c.constructors.ClassWork=b},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return xe})),n.d(t,"a",(function(){return Le}));var a=n(0),r=n.n(a),i=n(115),o=n(111),s=n(356),l=n(9),c=n(42),f=n(1078),u=n(387),m=n(470),h=n(14),d=n(24),p=n(29),g=n(246),y=n(103),b=n(118),E=n(142),v=n(18),k=n(1),w=n(27),_=n(1097),S=n(1101),C=n(1123),x=n(1128),L=n(1157),O=n(1184),M=n(1207),T=n(1244),A=n(632),R=n(1257),N=n(1258),P=n(1300),I=n(1309),F=n(1318),D=n(1342),j=n(422),B=n(651),G=n(1355),W=n(1356),H=n(1361),U=n(1362),q=n(423),$=n(1373),K=n(1385),z=n(650),V=n(1386),Y=n(1395),J=n(1398),X=n(102),Q=n(307),Z=n(1405),ee=n(202),te=n(1406),ne=n(94),ae=n(182),re=n(348),ie=n(418),oe=n(605),se=n(306),le=n(427),ce=n(28),fe=n(428),ue=n(1408),me=n(1411),he=n(5),de=n(1412),pe=n(1417),ge=n(1422),ye=n(1423),be=n.n(ye),Ee=n(1424),ve=n.n(Ee),ke=n(475),we=n(223);const _e=location,Se=Object(b.a)(e=>Object(E.a)({root:{"-ms-overflow-style":"none","scrollbar-width":"none",margin:e.spacing(0),flexGrow:1,display:"block",padding:"8px",minHeight:"100vh",boxSizing:"border-box"}})),Ce=()=>{throw new Error("Router called before initialization")};let xe={isInitialized:!1,page:()=>{throw new Error("Router called before initialization")},allowRouting:Ce,toActiveScripts:Ce,toAugmentations:Ce,toBitVerse:Ce,toBladeburner:Ce,toStats:Ce,toCity:Ce,toCorporation:Ce,toCreateProgram:Ce,toDevMenu:Ce,toFaction:Ce,toFactions:Ce,toGameOptions:Ce,toGang:Ce,toHacknetNodes:Ce,toInfiltration:Ce,toJob:Ce,toMilestones:Ce,toGrafting:Ce,toScriptEditor:Ce,toSleeves:Ce,toStockMarket:Ce,toTerminal:Ce,toTravel:Ce,toTutorial:Ce,toWork:Ce,toBladeburnerCinematic:Ce,toLocation:Ce,toStaneksGift:Ce,toAchievements:Ce,toThemeBrowser:Ce,toImportSave:Ce};function Le({player:e,engine:t,terminal:n}){const b=Se(),[{files:E,vim:ye},Ee]=Object(a.useState)({files:{},vim:!1}),[Ce,Le]=Object(a.useState)(function(e){return fe.b?w.a.Recovery:null!==e.currentWork?w.a.Work:w.a.Terminal}(e)),Oe=Object(a.useState)(0)[1],[Me,Te]=Object(a.useState)(!1),[Ae,Re]=Object(a.useState)(Object(we.b)(e.currentWork)?p.a[e.currentWork.factionName]:void 0);if(void 0===Ae&&Ce===w.a.Faction)throw new Error("Trying to go to a page without the proper setup");const[Ne,Pe]=Object(a.useState)(!1),[Ie,Fe]=Object(a.useState)(!1),[De,je]=Object(a.useState)(void 0);if(void 0===De&&(Ce===w.a.Infiltration||Ce===w.a.Location||Ce===w.a.Job))throw new Error("Trying to go to a page without the proper setup");const[Be,Ge]=Object(a.useState)(""),[We,He]=Object(a.useState)(0),[Ue,qe]=Object(a.useState)(he.a.IsSidebarOpened),[$e,Ke]=Object(a.useState)(void 0),[ze,Ve]=Object(a.useState)(!1);if(void 0===$e&&Ce===w.a.ImportSave)throw new Error("Trying to go to a page without the proper setup");const[Ye,Je]=Object(a.useState)(!0);function Xe(){Oe(e=>e+1)}function Qe(){for(const e of Object(d.c)())e.runningScripts=[];o.c.saveGame(),setTimeout(()=>_e.reload(),2e3)}function Ze(){Object(h.a)("Soft Reset!"),Object(i.f)(!0),He(We+1),xe.toTerminal()}Object(a.useEffect)(()=>u.a.subscribe(Xe),[]),xe={isInitialized:!0,page:()=>Ce,allowRouting:e=>Je(e),toActiveScripts:()=>Le(w.a.ActiveScripts),toAugmentations:()=>Le(w.a.Augmentations),toBladeburner:()=>Le(w.a.Bladeburner),toStats:()=>Le(w.a.Stats),toCorporation:()=>Le(w.a.Corporation),toCreateProgram:()=>Le(w.a.CreateProgram),toDevMenu:()=>Le(w.a.DevMenu),toFaction:(e,t=!1)=>{Te(t),Le(w.a.Faction),e&&Re(e)},toFactions:()=>Le(w.a.Factions),toGameOptions:()=>Le(w.a.Options),toGang:()=>Le(w.a.Gang),toHacknetNodes:()=>Le(w.a.Hacknet),toMilestones:()=>Le(w.a.Milestones),toGrafting:()=>Le(w.a.Grafting),toScriptEditor:(e,t)=>{Ee({files:e,vim:!(null==t||!t.vim)}),Le(w.a.ScriptEditor)},toSleeves:()=>Le(w.a.Sleeves),toStockMarket:()=>Le(w.a.StockMarket),toTerminal:()=>Le(w.a.Terminal),toTutorial:()=>Le(w.a.Tutorial),toJob:e=>{je(e),Le(w.a.Job)},toCity:()=>{Le(w.a.City)},toTravel:()=>{e.gotoLocation(l.a.TravelAgency),Le(w.a.Travel)},toBitVerse:(e,t)=>{Pe(e),Fe(t),Object(se.b)(),Le(w.a.BitVerse)},toInfiltration:e=>{je(e),Le(w.a.Infiltration)},toWork:()=>Le(w.a.Work),toBladeburnerCinematic:()=>{Le(w.a.BladeburnerCinematic),Ge(Be)},toLocation:e=>{je(e),Le(w.a.Location)},toStaneksGift:()=>{Le(w.a.StaneksGift)},toAchievements:()=>{Le(w.a.Achievements)},toThemeBrowser:()=>{Le(w.a.ThemeBrowser)},toImportSave:(e,t=!1)=>{Ke(e),Ve(t),Le(w.a.ImportSave)}},Object(a.useEffect)(()=>{ve()(xe).filter(e=>e.startsWith("to")).forEach(e=>{xe[e]=be()(xe[e],(t,...n)=>{if(Ye)return t(...n);console.error(`Routing is currently disabled - Attempted router.${e}()`)})})}),Object(a.useEffect)(()=>{Ce!==w.a.Terminal&&window.scrollTo(0,0)});let et=r.a.createElement(k.a,null,"Cannot load"),tt=!0,nt=!0,at=!1;switch(Ce){case w.a.Recovery:et=r.a.createElement(fe.c,{router:xe,softReset:Ze}),tt=!1,nt=!1,at=!0;break;case w.a.BitVerse:et=r.a.createElement(Y.a,{flume:Ne,enter:le.a,quick:Ie}),tt=!1,nt=!1;break;case w.a.Infiltration:et=r.a.createElement(T.a,{location:De}),tt=!1,nt=!1;break;case w.a.BladeburnerCinematic:et=r.a.createElement(Z.a,null),tt=!1,nt=!1;break;case w.a.Work:et=r.a.createElement(R.a,null),tt=!1;break;case w.a.Terminal:et=r.a.createElement(W.a,{terminal:n,router:xe,player:e});break;case w.a.Sleeves:et=r.a.createElement(P.a,null);break;case w.a.StaneksGift:et=r.a.createElement(J.a,{staneksGift:X.c});break;case w.a.Stats:et=r.a.createElement(K.a,null);break;case w.a.ScriptEditor:et=r.a.createElement(B.a,{files:E,hostname:e.getCurrentServer().hostname,player:e,router:xe,vim:ye});break;case w.a.ActiveScripts:et=r.a.createElement(U.a,{workerScripts:ee.a});break;case w.a.Hacknet:et=r.a.createElement(I.a,{player:e});break;case w.a.CreateProgram:et=r.a.createElement(j.a,null);break;case w.a.Factions:et=r.a.createElement(q.a,{player:e,router:xe});break;case w.a.Faction:et=r.a.createElement($.a,{faction:Ae,augPage:Me});break;case w.a.Milestones:et=r.a.createElement(G.a,{player:e});break;case w.a.Tutorial:et=r.a.createElement(H.a,{reactivateTutorial:()=>{Object(m.a)(),xe.toTerminal(),Object(c.e)()}});break;case w.a.DevMenu:et=r.a.createElement(x.a,{player:e,engine:t,router:xe});break;case w.a.Gang:et=r.a.createElement(O.a,null);break;case w.a.Corporation:et=r.a.createElement(M.a,null);break;case w.a.Bladeburner:et=r.a.createElement(L.a,null);break;case w.a.Grafting:et=r.a.createElement(A.b,null);break;case w.a.Travel:et=r.a.createElement(z.a,{p:e,router:xe});break;case w.a.StockMarket:et=r.a.createElement(V.a,{buyStockLong:g.a,buyStockShort:g.d,cancelOrder:y.c,eventEmitterForReset:y.e,initStockMarket:y.g,p:e,placeOrder:y.j,sellStockLong:g.c,sellStockShort:g.b,stockMarket:y.a});break;case w.a.City:et=r.a.createElement(D.a,null);break;case w.a.Job:case w.a.Location:et=r.a.createElement(F.a,{loc:De});break;case w.a.Options:et=r.a.createElement(N.a,{player:e,router:xe,save:()=>o.c.saveGame(),export:()=>{Object(s.c)(e),o.c.exportGame()},forceKill:Qe,softReset:Ze});break;case w.a.Augmentations:et=r.a.createElement(C.a,{exportGameFn:()=>{Object(s.c)(e),o.c.exportGame()},installAugmentationsFn:()=>{Object(i.f)()}});break;case w.a.Achievements:et=r.a.createElement(ue.a,null);break;case w.a.ThemeBrowser:et=r.a.createElement(de.a,{router:xe});break;case w.a.ImportSave:et=r.a.createElement(pe.a,{importString:$e,automatic:ze,router:xe}),tt=!1,nt=!1,at=!0}return r.a.createElement(ce.a.Player.Provider,{value:e},r.a.createElement(ce.a.Router.Provider,{value:xe},r.a.createElement(me.a,{key:We,router:xe,softReset:Ze},r.a.createElement(ge.a,{content:at?et:null},r.a.createElement(ne.c,null,r.a.createElement(_.a,{mode:c.a.isRunning?"tutorial":"overview"},c.a.isRunning?r.a.createElement(f.a,null):r.a.createElement(Q.a,{save:()=>o.c.saveGame(),killScripts:Qe})),tt?r.a.createElement(v.a,{display:"flex",flexDirection:"row",width:"100%"},r.a.createElement(S.a,{player:e,router:xe,page:Ce,opened:Ue,onToggled:e=>{qe(e),he.a.IsSidebarOpened=e}}),r.a.createElement(v.a,{className:b.root},et)):r.a.createElement(v.a,{className:b.root},et),r.a.createElement(te.a,null),nt&&r.a.createElement(r.a.Fragment,null,r.a.createElement(ae.d,null),r.a.createElement(re.b,null),r.a.createElement(ie.b,null),r.a.createElement(oe.b,null),r.a.createElement(ne.a,null)),r.a.createElement(ke.a,null))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(12),r=n(588),i=n(40),o=n(158),s=n(349),l=n(22);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f extends r.a{constructor(e={hostname:"",ip:Object(s.a)()}){super(e),c(this,"cache",1),c(this,"cores",1),c(this,"hashCapacity",0),c(this,"hashRate",0),c(this,"level",1),c(this,"onlineTimeSeconds",0),c(this,"totalHashesGenerated",0),c(this,"purchasedByPlayer",!0),this.maxRam=1,this.updateHashCapacity()}calculateCacheUpgradeCost(e){return Object(o.a)(this.cache,e)}calculateCoreUpgradeCost(e,t){return Object(o.b)(this.cores,e,t)}calculateLevelUpgradeCost(e,t){return Object(o.d)(this.level,e,t)}calculateRamUpgradeCost(e,t){return Object(o.e)(this.maxRam,e,t)}process(e=1){const t=e*a.a.MilliPerCycle/1e3;this.onlineTimeSeconds+=t;const n=this.hashRate*t;return this.totalHashesGenerated+=n,n}upgradeCache(e){this.cache=Math.min(i.b.MaxCache,Math.round(this.cache+e)),this.updateHashCapacity()}upgradeCore(e,t){this.cores=Math.min(i.b.MaxCores,Math.round(this.cores+e)),this.updateHashRate(t),this.cpuCores=this.cores}upgradeLevel(e,t){this.level=Math.min(i.b.MaxLevel,Math.round(this.level+e)),this.updateHashRate(t)}upgradeRam(e,t){for(let t=0;t({snackbar:{zIndex:f.e+1e3+" !important","& .MuiAlert-icon":{alignSelf:"center"}}}));function h(e){const t=m();return r.a.createElement(i.a,{dense:!0,maxSnack:9,anchorOrigin:{horizontal:"right",vertical:"bottom"},autoHideDuration:2e3,classes:{containerRoot:t.snackbar}},e.children)}const d=new s.a;function p(){const{enqueueSnackbar:e,closeSnackbar:t}=Object(i.b)();return Object(a.useEffect)(()=>d.subscribe((n,a,i)=>{const o=e(r.a.createElement(l.a,{severity:a},n),{content:(e,t)=>r.a.createElement(c.a,{key:e},t),variant:a,autoHideDuration:i,onClick:()=>t(o)})})),r.a.createElement(r.a.Fragment,null)}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(9);const r={};r[a.a.AevumECorp]="ECP",r[a.a.Sector12MegaCorp]="MGCP",r[a.a.Sector12BladeIndustries]="BLD",r[a.a.AevumClarkeIncorporated]="CLRK",r[a.a.VolhavenOmniTekIncorporated]="OMTK",r[a.a.Sector12FourSigma]="FSIG",r[a.a.ChongqingKuaiGongInternational]="KGI",r[a.a.AevumFulcrumTechnologies]="FLCM",r[a.a.IshimaStormTechnologies]="STM",r[a.a.NewTokyoDefComm]="DCOMM",r[a.a.VolhavenHeliosLabs]="HLS",r[a.a.NewTokyoVitaLife]="VITA",r[a.a.Sector12IcarusMicrosystems]="ICRS",r[a.a.Sector12UniversalEnergy]="UNV",r[a.a.AevumAeroCorp]="AERO",r[a.a.VolhavenOmniaCybersystems]="OMN",r[a.a.ChongqingSolarisSpaceSystems]="SLRS",r[a.a.NewTokyoGlobalPharmaceuticals]="GPH",r[a.a.IshimaNovaMedical]="NVMD",r[a.a.AevumWatchdogSecurity]="WDS",r[a.a.VolhavenLexoCorp]="LXO",r[a.a.AevumRhoConstruction]="RHOC",r[a.a.Sector12AlphaEnterprises]="APHE",r[a.a.VolhavenSysCoreSecurities]="SYSC",r[a.a.VolhavenCompuTek]="CTK",r[a.a.AevumNetLinkTechnologies]="NTLK",r[a.a.IshimaOmegaSoftware]="OMGA",r[a.a.Sector12FoodNStuff]="FNS",r[a.a.Sector12JoesGuns]="JGN",r["Sigma Cosmetics"]="SGC",r["Catalyst Ventures"]="CTYS",r["Microdyne Technologies"]="MDYN",r["Titan Laboratories"]="TITN"},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));const a=[".js",".script",".ns"];function r(e){return a.some(t=>e.endsWith(t))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return f}));var a=n(20),r=n(287);function i(e,t){const n=(100-e.hackDifficulty)/100,a=1.75*t.hacking,i=(a-e.requiredHackingSkill)/a*n*t.mults.hacking_chance*Object(r.a)(t.intelligence,1);return i>1?1:i<0?0:i}function o(e,t){null==e.baseDifficulty&&(e.baseDifficulty=e.hackDifficulty);let n=3;return n+=.3*e.baseDifficulty,n*t.mults.hacking_exp*a.a.HackExpGain}function s(e,t){const n=(100-e.hackDifficulty)/100*((t.hacking-(e.requiredHackingSkill-1))/t.hacking)*t.mults.hacking_money*a.a.ScriptHackMoney/240;return n<0?0:n>1?1:n}function l(e,t){let n=2.5*(e.requiredHackingSkill*e.hackDifficulty)+500;n/=t.hacking+50;return 5*n/(t.mults.hacking_speed*Object(r.a)(t.intelligence,1))}function c(e,t){return 3.2*l(e,t)}function f(e,t){return 4*l(e,t)}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.HACKING="HACKING",e.FIELD="FIELD",e.SECURITY="SECURITY"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return l}));var a=n(22),r=n(785);let i=new r.a;function o(e){i=e?JSON.parse(e,a.c):new r.a}function s(e,t){const n=[];for(let a=0;a`Invalid stock: '${e}'`):Object(d.a)("ERROR: Invalid stock passed to placeOrder() function"),!1;if("number"!=typeof t||"number"!=typeof n)return l?l.log("stock.placeOrder",()=>`Invalid arguments: shares='${t}' price='${n}'`):Object(d.a)("ERROR: Invalid numeric value provided for either 'shares' or 'price' argument"),!1;const c=new a.a(e.symbol,t,n,o,s);if(null==g.Orders){const e={};for(const t of Object.keys(g)){const n=g[t];n instanceof i.a&&(e[n.symbol]=[])}g.Orders=e}g.Orders[e.symbol].push(c);const f={stockMarket:g,symbolToStockMap:y};return Object(r.a)(e,c.type,c.pos,f),!0}function E(e,t=null){if(null==g.Orders)return!1;if(e.order&&e.order instanceof a.a){const t=e.order,n=g.Orders[t.stockSymbol];for(let e=0;e=t.cap&&(o=.1,t.b=!1),isNaN(o)&&(o=.5);const s=Math.random(),f={stockMarket:g,symbolToStockMap:y};s{var t;null!=i[(t=e).name]&&console.warn("Duplicate Company Position being defined: "+t.name),i[t.name]=new r.a(t)})},function(e,t,n){"use strict";n.d(t,"c",(function(){return y})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return E})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return k})),n.d(t,"a",(function(){return w}));var a=n(73),r=n(320),i=n(11),o=n(20),s=n(188),l=n(29),c=n(2),f=n(5),u=n(290),m=n(14),h=n(605),d=n(4),p=n(321),g=n(223);function y(e){c.a.receiveInvite(e.name),e.alreadyInvited=!0,f.a.SuppressFactionInvites||h.a.emit(e)}function b(e){if(e.isMember)return;e.isMember=!0,c.a.factions.push(e.name);const t=Object.values(d.a).map(e=>e);c.a.factions.sort((e,n)=>t.indexOf(e)-t.indexOf(n));const n=e.getInfo();for(const e of n.enemies)l.a[e]instanceof s.a&&(l.a[e].isBanned=!0);for(let t=0;tc.a.hasAugmentation(e))}function v(e,t,n=!1){const a=E(e),o=e.getCost(c.a);if(a)if(0!==o.moneyCost&&c.a.money=o.moneyCost){const t=new r.a(e.name);if(e.name==i.a.NeuroFluxGovernor&&(t.level=e.getLevel(c.a)),c.a.queuedAugmentations.push(t),c.a.loseMoney(o.moneyCost,"augmentations"),n)return"You purchased "+e.name;f.a.SuppressBuyAugmentationConfirmation||Object(m.a)("You purchased "+e.name+". Its enhancements will not take effect until they are installed. To install your augmentations, go to the 'Augmentations' tab on the left-hand navigation menu. Purchasing additional augmentations will now be more expensive.")}else Object(m.a)("Hmm, something went wrong when trying to purchase an Augmentation. Please report this to the game developer with an explanation of how to reproduce this.");else{const t=`You must first purchase or install ${e.prereqs.filter(e=>!c.a.hasAugmentation(e)).join(",")} before you can purchase this one.`;if(n)return t;Object(m.a)(t)}return""}function k(e){for(const t of Object.keys(l.a)){if(Object(g.b)(c.a.currentWork)&&t===c.a.currentWork.factionName)continue;if(!l.a.hasOwnProperty(t))continue;const n=l.a[t];if(!n.isMember)continue;if(!n.getInfo().offersWork())continue;if(c.a.getGangName()===t)continue;const a=Math.min(.1,n.favor/1e3+.01),r=Object(u.c)(c.a,n),i=Object(u.b)(c.a,n),s=Object(u.a)(c.a,n),f=Math.max(r*a,i*a,s*a,1/120);n.playerReputation+=f*e*c.a.mults.faction_rep*o.a.FactionPassiveRepGain}}const w=(e,t)=>{if(e.hasGangWith(t.name)){let n=Object.values(a.a);n=n.filter(e=>!e.isSpecial&&e.name!==i.a.CongruityImplant),2===e.bitNodeN&&n.push(a.a[i.a.TheRedPill]);const r=Object(p.b)(`BN${e.bitNodeN}.${e.sourceFileLvl(e.bitNodeN)}`),s=e=>e.factions.length>1||(!!t.augmentations.includes(e.name)||r()>=1-o.a.GangUniqueAugs);return n=n.filter(s),n.map(e=>e.name)}return t.augmentations.slice()}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(148),r=n(24),i=n(190);function o(e,t){return t.delayReject&&t.delayReject(),new Promise((function(n,a){t.delay=window.setTimeout(()=>{t.delay=null,t.delayReject=void 0,t.env.stopFlag?a(new i.a(t)):n()},e),t.delayReject=a}))}function s(e,t){const n=Object(r.d)(e.hostname);if(null==n)throw new Error("WorkerScript constructed with invalid server ip: "+e.hostname);for(const n of e.scriptRef.dependencies){var a,i;t=null!==(a=null===(i=t)||void 0===i?void 0:i.replace(new RegExp(n.url,"g"),n.filename))&&void 0!==a?a:t}return"|DELIMITER|"+n.hostname+"|DELIMITER|"+e.name+"|DELIMITER|"+t}function l(e,t){const n=e.workerScript.scriptRef.threads;if(!t)return isNaN(n)||n<1?1:n;const a=0|t;if(isNaN(t)||a<1)throw s(e.workerScript,`Invalid thread count passed to ${e.function}: ${t}. Threads must be a positive number.`);if(a>n)throw s(e.workerScript,`Too many threads requested by ${e.function}. Requested: ${t}. Has: ${n}.`);return a}function c(e){if(!Object(a.a)(e))return!1;return 4==e.split("|DELIMITER|").length}},,,,function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),function(e){e.Bypass="Bypass",e.PrototypeTampering="PrototypeTampering",e.Unclickable="Unclickable",e.UndocumentedFunctionCall="UndocumentedFunctionCall",e.TimeCompression="TimeCompression",e.RealityAlteration="RealityAlteration",e.N00dles="N00dles",e.YoureNotMeantToAccessThis="YoureNotMeantToAccessThis",e.TrueRecursion="TrueRecursion",e.INeedARainbow="INeedARainbow",e.EditSaveFile="EditSaveFile"}(a||(a={}));const r={Bypass:"by circumventing the ram cost of document.",EditSaveFile:"by editing your save file.",PrototypeTampering:"by tampering with Numbers prototype.",TimeCompression:"by compressing time.",Unclickable:"by clicking the unclickable.",UndocumentedFunctionCall:"by looking beyond the documentation.",RealityAlteration:"by altering reality to suit your whims.",N00dles:"by harnessing the power of the n00dles.",YoureNotMeantToAccessThis:"by accessing the dev menu.",TrueRecursion:"by truly recursing.",INeedARainbow:"by using the power of the rainbow."};function i(e){return r[e]}function o(e){return e=e.filter(e=>Object.keys(a).includes(e)),[...new Set(e)]}},function(e,t,n){"use strict";n.d(t,"c",(function(){return I})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return P}));var a=n(162),r=n(75),i=n(12),o=n(29),s=n(80),l=n(2),c=n(24),f=n(5),u=n(103),m=n(102),h=n(94),d=n(356),p=n(14),g=n(22),y=n(350),b=n(680),E=n(11),v=n(320),k=n(9),w=n(604),_=n(303),S=n(125),C=n(4),x=n(188),L=n(138),O=n(87);function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class T{constructor(){M(this,"PlayerSave",""),M(this,"AllServersSave",""),M(this,"CompaniesSave",""),M(this,"FactionsSave",""),M(this,"AliasesSave",""),M(this,"GlobalAliasesSave",""),M(this,"StockMarketSave",""),M(this,"SettingsSave",""),M(this,"VersionSave",""),M(this,"AllGangsSave",""),M(this,"LastExportBonus",""),M(this,"StaneksGiftSave","")}getSaveString(e=!1){this.PlayerSave=JSON.stringify(l.a),this.AllServersSave=Object(c.j)(e),this.CompaniesSave=JSON.stringify(r.a),this.FactionsSave=JSON.stringify(o.a),this.AliasesSave=JSON.stringify(a.a),this.GlobalAliasesSave=JSON.stringify(a.b),this.StockMarketSave=JSON.stringify(u.a),this.SettingsSave=JSON.stringify(f.a),this.VersionSave=JSON.stringify(i.a.VersionNumber),this.LastExportBonus=JSON.stringify(d.a),this.StaneksGiftSave=JSON.stringify(m.c),l.a.inGang()&&(this.AllGangsSave=JSON.stringify(s.a));return btoa(unescape(encodeURIComponent(JSON.stringify(this))))}saveGame(e=!0){const t=(new Date).getTime();l.a.lastSave=t;const n=this.getSaveString(f.a.ExcludeRunningScriptsFromSave);return new Promise((a,r)=>{Object(y.c)(n).then(()=>{const r={playerIdentifier:l.a.identifier,fileName:this.getSaveFileName(),save:n,savedOn:t};return Object(_.d)(r),e&&h.b.emit("Game Saved!",h.d.INFO,2e3),a()}).catch(e=>(console.error(e),r()))})}getSaveFileName(e=!1){const t=Math.round(Date.now()/1e3),n=l.a.bitNodeN;let a=`bitburnerSave_${t}_BN${n}x${l.a.sourceFileLvl(n)+1}.json`;return e&&(a="RECOVERY"+a),a}exportGame(){const e=this.getSaveString(f.a.ExcludeRunningScriptsFromSave);P(this.getSaveFileName(),e)}importGame(e,t=!0){if(!e||""===e)throw new Error("Invalid import string");return Object(y.c)(e).then(()=>(t&&setTimeout(()=>location.reload(),1e3),Promise.resolve()))}getImportStringFromFile(e){if(null===e)return Promise.reject(new Error("No file selected"));const t=e[0];if(!t)return Promise.reject(new Error("Invalid file selected"));const n=new FileReader,a=new Promise((e,t)=>{n.onload=function(n){const a=n.target;if(null===a)return t(new Error("Error importing file"));const r=a.result;if("string"!=typeof r)return t(new Error("FileReader event was not type string"));e(r)}});return n.readAsText(t),a}async getImportDataFromString(e){var t,n,a,r,i,o,s,c;if(!e||""===e)throw new Error("Invalid import string");let f,u;try{f=window.atob(e),f=f.trim()}catch(e){console.error(e)}if(!f||""===f)return Promise.reject(new Error("Save game had not content or was not base64 encoded"));try{u=JSON.parse(f)}catch(e){console.error(e)}if(!u||"BitburnerSaveObject"!==u.ctor||!u.data)return Promise.reject(new Error("Save game did not seem valid"));const m={base64:e},h=w.a.fromJSON(JSON.parse(u.data.PlayerSave)),d={identifier:h.identifier,lastSave:h.lastSave,totalPlaytime:h.totalPlaytime,money:h.money,hacking:h.hacking,augmentations:null!==(t=null===(n=h.augmentations)||void 0===n?void 0:n.reduce((e,t)=>e+t.level,0))&&void 0!==t?t:0,factions:null!==(a=null===(r=h.factions)||void 0===r?void 0:r.length)&&void 0!==a?a:0,achievements:null!==(i=null===(o=h.achievements)||void 0===o?void 0:o.length)&&void 0!==i?i:0,bitNode:h.bitNodeN,bitNodeLevel:h.sourceFileLvl(l.a.bitNodeN)+1,sourceFiles:null!==(s=null===(c=h.sourceFiles)||void 0===c?void 0:c.reduce((e,t)=>e+t.lvl,0))&&void 0!==s?s:0};return m.playerData=d,Promise.resolve(m)}toJSON(){return Object(g.b)("BitburnerSaveObject",this)}static fromJSON(e){return Object(g.a)(T,e.data)}}function A(e){if(-1!==navigator.userAgent.indexOf("wv")&&-1!==navigator.userAgent.indexOf("Chrome/")&&setInterval(()=>{Object(p.a)("SCAM ALERT. This app is not official and you should uninstall it.")},1e3),!e)return!1;e=decodeURIComponent(escape(atob(e)));const t=JSON.parse(e,g.c);if(Object(l.b)(t.PlayerSave),Object(c.h)(t.AllServersSave),Object(r.c)(t.CompaniesSave),Object(o.d)(t.FactionsSave),t.hasOwnProperty("StaneksGiftSave")?Object(m.b)(t.StaneksGiftSave):(console.warn("Could not load Staneks Gift from save"),Object(m.b)("")),t.hasOwnProperty("AliasesSave"))try{Object(a.c)(t.AliasesSave)}catch(e){console.warn("Could not load Aliases from save"),Object(a.c)("")}else console.warn("Save file did not contain an Aliases property"),Object(a.c)("");if(t.hasOwnProperty("GlobalAliasesSave"))try{Object(a.d)(t.GlobalAliasesSave)}catch(e){console.warn("Could not load GlobalAliases from save"),Object(a.d)("")}else console.warn("Save file did not contain a GlobalAliases property"),Object(a.d)("");if(t.hasOwnProperty("StockMarketSave"))try{Object(u.i)(t.StockMarketSave)}catch(e){Object(u.i)("")}else Object(u.i)("");if(t.hasOwnProperty("SettingsSave"))try{f.a.load(t.SettingsSave)}catch(e){console.error("ERROR: Failed to parse Settings. Re-initing default values"),f.a.init()}else f.a.init();if(t.hasOwnProperty("LastExportBonus"))try{d.d(JSON.parse(t.LastExportBonus))}catch(e){d.d((new Date).getTime()),console.error("ERROR: Failed to parse last export bonus Settings "+e)}if(l.a.inGang()&&t.hasOwnProperty("AllGangsSave"))try{Object(s.b)(t.AllGangsSave)}catch(e){console.error("ERROR: Failed to parse AllGangsSave: "+e)}if(t.hasOwnProperty("VersionSave"))try{const e=JSON.parse(t.VersionSave,g.c);!function(e){const t=l.a;if("string"==typeof e){if(e<="0.41.2"){null!=t.companyPosition&&"string"!=typeof t.companyPosition&&(t.companyPosition=t.companyPosition.data.positionName,null==t.companyPosition&&(t.companyPosition=""));for(const e of Object.keys(r.a)){const t=r.a[e];if(0==t.name&&null!=t.companyName&&(t.name=t.companyName),t.companyPositions instanceof Array){const e={};for(let n=0;n0)for(const e of t.sleeves)if(e.augmentations&&0!==e.augmentations.length)for(const t of e.augmentations)"Graphene BranchiBlades Upgrade"===t.name&&(t.name="Graphene BrachiBlades Upgrade");if(e<12&&void 0!==t.resleeves&&delete t.resleeves,e<15&&(f.a.EditorTheme={...S.a}),e<16){o.a[C.a.ShadowsOfAnarchy]=new x.a(C.a.ShadowsOfAnarchy);for(const e of Object(c.c)())for(const t of e.contracts)"HammingCodes: Integer to encoded Binary"==t.type&&(t.type="HammingCodes: Integer to Encoded Binary")}if(e<17){let e=[...l.a.augmentations];e=e.filter(e=>e.name===E.a.NeuroFluxGovernor);const t=new v.a(E.a.NeuroFluxGovernor);t.level=0;for(const n of e)t.level+=n.level;l.a.augmentations=[...l.a.augmentations.filter(e=>e.name!==E.a.NeuroFluxGovernor),t],l.a.reapplyAllAugmentations(!0),l.a.reapplyAllSourceFiles()}if(e<20){if(!Object(c.d)(O.a.DarkWeb)){const e=Object(L.g)({ip:Object(c.e)(),hostname:O.a.DarkWeb,organizationName:"",isConnectedTo:!1,adminRights:!1,purchasedByPlayer:!1,maxRam:1});Object(c.a)(e)}}if(e<21){Object(b.a)(10);const e=t.createProgramName;e&&l.a.getHomeComputer().pushProgram(e);const n=t.graftAugmentationName;n&&l.a.augmentations.push({name:n,level:1})}}}(e),window.location.href.toLowerCase().includes("bitburner-beta")?Object(p.a)("You are playing on the beta environment! This branch of the game features the latest developments in the game. This version may be unstable.
Please report any bugs/issues through the github repository (https://github.com/danielyxie/bitburner/issues) or the Bitburner subreddit (reddit.com/r/bitburner).

"+i.a.LatestUpdate,R):e!==i.a.VersionNumber&&N()}catch(e){N()}else N();return!0}const R={"& h1, & h2, & h3, & h4, & p, & a, & ul":{margin:0,color:f.a.theme.primary,whiteSpace:"initial"},"& ul":{paddingLeft:"1.5em",lineHeight:1.5}};function N(){setTimeout(()=>Object(p.a)("New update!
Please report any bugs/issues through the GitHub repository or the Bitburner subreddit (reddit.com/r/bitburner).

"+i.a.LatestUpdate,R),1e3)}function P(e,t){const n=new Blob([t],{type:"text/plain"}),a=document.createElement("a"),r=URL.createObjectURL(n);a.href=r,a.download=e,document.body.appendChild(a),a.click(),setTimeout((function(){document.body.removeChild(a),window.URL.revokeObjectURL(r)}),0)}g.c.constructors.BitburnerSaveObject=T;const I=new T},,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return E})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return w})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return _}));var a=n(34),r=n(73),i=n(320),o=n(11),s=n(12),l=n(29),c=n(2),f=n(470),u=n(14),m=n(1428),h=n(4),d=n(360),p=n(91),g=n(239);function y(){!function(){for(const e of Object.keys(l.a))l.a.hasOwnProperty(e)&&(l.a[e].augmentations=[])}(),Object(m.a)(r.a),[Object(d.d)(),Object(d.f)(),...Object(d.c)(),...Object(d.e)(),...Object(l.b)(h.a.Bladeburners)?Object(d.a)():[],...Object(l.b)(h.a.ChurchOfTheMachineGod)?Object(d.b)():[]].map(v),c.a.reapplyAllAugmentations()}function b(){return s.a.MultipleAugMultiplier*[1,.96,.94,.93][c.a.sourceFileLvl(11)]}function E(){return Math.pow(b(),c.a.queuedAugmentations.length)}function v(e){e.addToFactions(e.factions);const t=e.name;_(t)&&delete r.a[t],function(e){const t=e.name;r.a[t]=e}(e)}function k(e,t=!1){const n=r.a[e.name];c.a.mults=Object(g.b)(c.a.mults,n.mults),e.name!==o.a.CongruityImplant||t||(c.a.entropy=0,c.a.applyEntropy(c.a.entropy));const a=c.a.augmentations.find(e=>e.name===o.a.NeuroFluxGovernor);if(e.name!==o.a.NeuroFluxGovernor||t||!a){if(!t){const t=new i.a(e.name);c.a.augmentations.push(t)}}else a.level=e.level}function w(e){if(0==c.a.queuedAugmentations.length&&!e)return Object(u.a)("You have not purchased any Augmentations to install!"),!1;let t="",n=-1;for(let e=c.a.queuedAugmentations.length-1;e>=0;e--)if(c.a.queuedAugmentations[e].name===o.a.NeuroFluxGovernor){n=e;break}for(let e=0;e"}return c.a.queuedAugmentations=[],e||Object(u.a)("You slowly drift to sleep as scientists put you under in order to install the following Augmentations:
"+t+"
You wake up in your home...you feel different..."),Object(f.a)(),p.b.toTerminal(),!0}function _(e){return r.a.hasOwnProperty(e)}function S(e){return(e instanceof a.a?e.name:e)===o.a.NeuroFluxGovernor}},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f}));var a=n(982),r=n(22),i=n(589);class o{constructor(e,t,n,a,r,i){this.name=e,this.desc=t,this.generate=n,this.solver=a,this.difficulty=r,this.numTries=i}}const s={};for(const e of a.a)s[e.name]=new o(e.name,e.desc,e.gen,e.solver,e.difficulty,e.numTries);let l,c;!function(e){e[e.FactionReputation=0]="FactionReputation",e[e.FactionReputationAll=1]="FactionReputationAll",e[e.CompanyReputation=2]="CompanyReputation",e[e.Money=3]="Money"}(l||(l={})),function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure",e[e.Cancelled=2]="Cancelled"}(c||(c={}));class f{constructor(e="",t="Find Largest Prime Factor",n=null){var a,r,i;if(i=0,(r="tries")in(a=this)?Object.defineProperty(a,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):a[r]=i,this.fn=e,this.fn.endsWith(".cct")||(this.fn+=".cct"),null==s[t])throw new Error(`Error: invalid contract type: ${t} please contact developer`);this.type=t,this.data=s[t].generate(),this.reward=n}getData(){return this.data}getDescription(){return s[this.type].desc(this.data)}getDifficulty(){return s[this.type].difficulty}getMaxNumTries(){return s[this.type].numTries}getType(){return s[this.type].name}isSolution(e){return s[this.type].solver(this.data,e)}async prompt(){return new Promise(e=>{const t={c:this,onClose:()=>{e(c.Cancelled)},onAttempt:t=>{this.isSolution(t)?e(c.Success):e(c.Failure)}};i.a.emit(t)})}toJSON(){return Object(r.b)("CodingContract",this)}static fromJSON(e){return Object(r.a)(f,e.data)}}r.c.constructors.CodingContract=f},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.LimitBuy="Limit Buy Order",e.LimitSell="Limit Sell Order",e.StopBuy="Stop Buy Order",e.StopSell="Stop Sell Order"}(a||(a={}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(6),o=n(21);function s({money:e}){return r.a.createElement(o.a,{money:i.a.formatMoney(e)+" / sec"})}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(61),r=n(216);const i=[];class o{constructor(e,t,n,a,r){this.id=e,this.shape=t,this.type=n,this.power=a,this.limit=r}fullAt(e,t,n){if(t<0)return!1;if(t>=this.height(n))return!1;if(e<0)return!1;if(e>=this.width(n))return!1;let[a,r,i,o]=[0,0,1,1];1===n?[a,r,i,o]=[this.width(n)-1,0,-1,1]:2===n?[a,r,i,o]=[this.width(n)-1,this.height(n)-1,-1,-1]:3===n&&([a,r,i,o]=[0,this.height(n)-1,1,-1]);let[s,l]=[a+i*e,r+o*t];return n%2==1&&([s,l]=[l,s]),this.shape[l][s]}width(e){return e%2==0?this.shape[0].length:this.shape.length}height(e){return e%2==0?this.shape.length:this.shape[0].length}neighboors(e){const t=[],n=(n,a)=>{this.fullAt(n,a,e)||t.some(e=>e[0]===n&&e[1]===a)||t.push([n,a])};for(let t=0;tt[0]===e[0]&&t[1]===e[1])||a.push(e);return a}copy(){return Object.assign({},this)}}function s(e){for(const t of i)if(t.id===e)return t;return null}!function(){const e=!1,t=!0;i.push(new o(0,r.a.S,a.b.Hacking,1,1)),i.push(new o(1,r.a.Z,a.b.Hacking,1,1)),i.push(new o(5,r.a.T,a.b.HackingSpeed,1.3,1)),i.push(new o(6,r.a.I,a.b.HackingMoney,2,1)),i.push(new o(7,r.a.J,a.b.HackingGrow,.5,1)),i.push(new o(10,r.a.T,a.b.Strength,2,1)),i.push(new o(12,r.a.L,a.b.Defense,2,1)),i.push(new o(14,r.a.L,a.b.Dexterity,2,1)),i.push(new o(16,r.a.S,a.b.Agility,2,1)),i.push(new o(18,r.a.S,a.b.Charisma,3,1)),i.push(new o(20,r.a.I,a.b.HacknetMoney,1,1)),i.push(new o(21,r.a.O,a.b.HacknetCost,2,1)),i.push(new o(25,r.a.J,a.b.Rep,.5,1)),i.push(new o(27,r.a.J,a.b.WorkMoney,10,1)),i.push(new o(28,r.a.L,a.b.Crime,2,1)),i.push(new o(30,r.a.S,a.b.Bladeburner,.4,1)),i.push(new o(100,[[e,t,t],[t,t,e],[e,t,e]],a.b.Booster,1.1,99)),i.push(new o(101,[[t,t,t,t],[t,e,e,e]],a.b.Booster,1.1,99)),i.push(new o(102,[[e,t,t,t],[t,t,e,e]],a.b.Booster,1.1,99)),i.push(new o(103,[[t,t,t,e],[e,e,t,t]],a.b.Booster,1.1,99)),i.push(new o(104,[[e,t,t],[e,t,e],[t,t,e]],a.b.Booster,1.1,99)),i.push(new o(105,[[e,e,t],[e,t,t],[t,t,e]],a.b.Booster,1.1,99)),i.push(new o(106,[[t,e,e],[t,t,t],[t,e,e]],a.b.Booster,1.1,99)),i.push(new o(107,[[e,t,e],[t,t,t],[e,t,e]],a.b.Booster,1.1,99))}();const l=new o(-2,[],a.b.None,0,1/0),c=new o(-2,[],a.b.Delete,0,1/0)},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s}));const a={base:"vs-dark",inherit:!0,common:{accent:"B5CEA8",bg:"1E1E1E",fg:"D4D4D4"},syntax:{tag:"569CD6",entity:"569CD6",string:"CE9178",regexp:"646695",markup:"569CD6",keyword:"569CD6",comment:"6A9955",constant:"569CD6",error:"F44747"},ui:{line:"1E1E1E",panel:{bg:"252526",selected:"252526",border:"1E1E1E"},selection:{bg:"ADD6FF26"}}},r=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/,i=e=>{for(const[t,n]of Object.entries(e)){switch(t){case"base":["vs-dark","vs"].includes(e.base)||(e.base="vs-dark");continue;case"inherit":"boolean"!=typeof e.inherit&&(e.inherit=!0);continue}const a=e=>{for(const[t,n]of Object.entries(e))"object"==typeof n?a(n):n.match(r)||(e[t]="FF0000")};a(n)}};function o(e){const t=[{token:"",background:e.ui.line,foreground:e.common.fg},{token:"identifier",foreground:e.common.accent},{token:"keyword",foreground:e.syntax.keyword},{token:"string",foreground:e.syntax.string},{token:"string.escape",foreground:e.syntax.regexp},{token:"comment",foreground:e.syntax.comment},{token:"constant",foreground:e.syntax.constant},{token:"entity",foreground:e.syntax.entity},{token:"type",foreground:e.syntax.tag},{token:"tag",foreground:e.syntax.tag},{token:"regexp",foreground:e.syntax.regexp},{token:"attribute",foreground:e.syntax.tag},{token:"constructor",foreground:e.syntax.markup},{token:"invalid",foreground:e.syntax.error},{token:"number",foreground:e.common.accent},{token:"delimiter",foreground:e.common.fg},{token:"ns",foreground:e.syntax.tag},{token:"netscriptfunction",foreground:e.syntax.markup},{token:"otherkeywords",foreground:e.syntax.keyword},{token:"otherkeyvars",foreground:e.common.accent},{token:"this",foreground:e.syntax.tag}],n=Object.fromEntries([["editor.background",e.common.bg],["editor.foreground",e.common.fg],["editor.lineHighlightBackground",e.ui.line],["editor.selectionBackground",e.ui.selection.bg],["editorSuggestWidget.background",e.ui.panel.bg],["editorSuggestWidget.border",e.ui.panel.border],["editorSuggestWidget.selectedBackground",e.ui.panel.selected],["editorHoverWidget.background",e.ui.panel.bg],["editorHoverWidget.border",e.ui.panel.border],["editorWidget.background",e.ui.panel.bg],["editorWidget.border",e.ui.panel.border],["input.background",e.ui.panel.bg],["input.border",e.ui.panel.border]].map(([e,t])=>[e,"#"+t]));return{base:e.base,inherit:e.inherit,rules:t,colors:n}}async function s(e){e.editor.defineTheme("monokai",{base:"vs-dark",inherit:!0,rules:[{background:"272822",token:""},{foreground:"75715e",token:"comment"},{foreground:"e6db74",token:"string"},{token:"number",foreground:"ae81ff"},{token:"otherkeyvars",foreground:"ae81ff"},{foreground:"ae81ff",token:"function"},{foreground:"f92672",token:"keyword"},{token:"storage.type.function.js",foreground:"ae81ff"},{token:"ns",foreground:"97d92b"},{token:"netscriptfunction",foreground:"53d3e4"},{token:"otherkeywords",foreground:"53d3e4"},{token:"this",foreground:"fd971f"}],colors:{"editor.foreground":"#F8F8F2","editor.background":"#272822","editor.selectionBackground":"#49483E","editor.lineHighlightBackground":"#3E3D32","editorCursor.foreground":"#F8F8F0","editorWhitespace.foreground":"#3B3A32","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}}),e.editor.defineTheme("solarized-dark",{base:"vs-dark",inherit:!0,rules:[{background:"002b36",token:""},{foreground:"586e75",token:"comment"},{foreground:"00afaf",token:"string"},{token:"number",foreground:"00afaf"},{token:"otherkeyvars",foreground:"268bd2"},{foreground:"268bd2",token:"function"},{foreground:"859900",token:"keyword"},{token:"storage.type.function.js",foreground:"cb4b16"},{token:"ns",foreground:"cb4b16"},{token:"netscriptfunction",foreground:"268bd2"},{token:"otherkeywords",foreground:"268bd2"},{token:"type.identifier.js",foreground:"b58900"},{token:"delimiter.square.js",foreground:"0087ff"},{token:"delimiter.bracket.js",foreground:"0087ff"},{token:"this",foreground:"cb4b16"}],colors:{"editor.foreground":"#839496","editor.background":"#002b36","editor.selectionBackground":"#073642","editor.lineHighlightBackground":"#073642","editorCursor.foreground":"#819090","editorWhitespace.foreground":"#073642","editorIndentGuide.activeBackground":"#9D550FB0","editor.selectionHighlightBorder":"#222218"}}),e.editor.defineTheme("solarized-light",{base:"vs",inherit:!0,rules:[{foreground:"657b83",background:"fdf6e3",token:""},{foreground:"586e75",token:"comment"},{foreground:"2aa198",token:"string"},{token:"number",foreground:"2aa198"},{token:"otherkeyvars",foreground:"268bd2"},{foreground:"268bd2",token:"function"},{foreground:"859900",token:"keyword"},{token:"storage.type.function.js",foreground:"bc4b16"},{token:"ns",foreground:"cb4b16"},{token:"netscriptfunction",foreground:"268bd2"},{token:"otherkeywords",foreground:"268bd2"},{token:"type.identifier.js",foreground:"b58900"},{token:"delimiter.square.js",foreground:"0087ff"},{token:"delimiter.bracket.js",foreground:"0087ff"},{token:"this",foreground:"cb4b16"}],colors:{"editor.foreground":"#657b83","editor.background":"#fdf6e3","editor.selectionBackground":"#eee8d5","editor.lineHighlightBackground":"#eee8d5","editorCursor.foreground":"#657b83","editorWhitespace.foreground":"#eee8d5","editorIndentGuide.activeBackground":"#eee8d5","editor.selectionHighlightBorder":"#073642"}}),e.editor.defineTheme("dracula",{base:"vs-dark",inherit:!0,rules:[{background:"282A36",foreground:"F8F8F2",token:""},{foreground:"6272A4",token:"comment"},{foreground:"F1FA8C",token:"string"},{token:"number",foreground:"BD93F9"},{token:"otherkeyvars",foreground:"BD93F9"},{foreground:"FF79C6",token:"function"},{foreground:"FF79C6",token:"keyword"},{token:"storage.type.function.js",foreground:"FF79C6"},{token:"ns",foreground:"FFB86C",fontStyle:"italic"},{token:"netscriptfunction",foreground:"FF79C6"},{token:"otherkeywords",foreground:"FF68A7"},{token:"type.identifier.js",foreground:"7EE9FD",fontStyle:"italic"},{token:"delimiter.square.js",foreground:"FFD709"},{token:"delimiter.parenthesis.js",foreground:"FFD709"},{token:"delimiter.bracket.js",foreground:"FFD709"},{token:"this",foreground:"BD93F9",fontStyle:"italic"}],colors:{"editor.foreground":"#F8F8F2","editor.background":"#282A36","editorLineNumber.foreground":"#6272A4","editor.selectionBackground":"#44475A","editor.selectionHighlightBackground":"#424450","editor.foldBackground":"#21222C","editor.wordHighlightBackground":"#8BE9FD50","editor.wordHighlightStrongBackground":"#50FA7B50","editor.findMatchBackground":"#FFB86C80","editor.findMatchHighlightBackground":"#FFFFFF40","editor.findRangeHighlightBackground":"#44475A75","editor.hoverHighlightBackground":"#8BE9FD50","editor.lineHighlightBorder":"#44475A","editor.rangeHighlightBackground":"#BD93F915","editor.snippetTabstopHighlightBackground":"#282A36","editor.snippetTabstopHighlightBorder":"#6272A4","editor.snippetFinalTabstopHighlightBackground":"#282A36","editor.snippetFinalTabstopHighlightBorder":"#50FA7B"}}),e.editor.defineTheme("one-dark",{base:"vs-dark",inherit:!0,rules:[{token:"",background:"333842",foreground:"ABB2BF"},{token:"comment",foreground:"5C6370"},{token:"string",foreground:"98C379"},{token:"number",foreground:"D19A66"},{token:"function",foreground:"C678DD"},{token:"keyword",foreground:"C678DD"},{token:"otherkeyvars",foreground:"D19A66"},{token:"otherkeywords",foreground:"C678DD"},{token:"ns",foreground:"E06C75"},{token:"netscriptfunction",foreground:"61AFEF"},{token:"type.identifier",foreground:"E5C07B"},{token:"delimiter",foreground:"ABB2BF"},{token:"this",foreground:"E06C75"}],colors:{"editor.background":"#282C34","editor.foreground":"#ABB2BF","editor.lineHighlightBackground":"#99BBFF0A","editor.selectionBackground":"#3E4451","editor.findMatchHighlightBackground":"#528BFF3D","editorCursor.foreground":"#528BFF","editorHoverWidget.background":"#21252B","editorHoverWidget.border":"#181A1F","editorIndentGuide.background":"#ABB2BF26","editorIndentGuide.activeBackground":"#626772","editorLineNumber.foreground":"#636D83","editorLineNumber.activeForeground":"#ABB2BF","editorSuggestWidget.background":"#21252B","editorSuggestWidget.border":"#181A1F","editorSuggestWidget.selectedBackground":"#2C313A","editorWhitespace.foreground":"#ABB2BF26","editorWidget.background":"#21252B","editorWidget.border":"#3A3F4B","input.background":"#1B1D23","input.border":"#181A1F","peekView.border":"#528BFF","peekViewResult.background":"#21252B","peekViewResult.selectionBackground":"#2C313A","peekViewTitle.background":"#1B1D23","peekViewEditor.background":"#1B1D23","scrollbarSlider.background":"#4E566680","scrollbarSlider.activeBackground":"#747D9180","scrollbarSlider.hoverBackground":"#5A637580"}})}},function(e,t,n){"use strict";function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}n.d(t,"a",(function(){return r}));class r{constructor(){var e,t,n;n={},(t="subscribers")in(e=this)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}subscribe(e){let t=a();for(;void 0!==this.subscribers[t];)t=a();return this.subscribers[t]=e,()=>{delete this.subscribers[t]}}emit(...e){for(const t in this.subscribers){const n=this.subscribers[t];void 0!==n&&n(...e)}}}},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(623),o=n.n(i),s=n(1132),l=n.n(s),c=n(112),f=n(1133),u=n.n(f),m=n(620),h=n.n(m),d=n(74),p=n(19);function g(e){const[t,n]=Object(a.useState)("");const{label:i,placeholder:s,add:f,subtract:m,reset:g,tons:y}=e;return r.a.createElement(r.a.Fragment,null,r.a.createElement(d.a,{label:i,value:t,onChange:function(e){""===e.target.value?n(""):n(parseFloat(e.target.value))},placeholder:s,type:"number",InputProps:{startAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{title:"Add a lot"},r.a.createElement(c.a,{onClick:y,size:"large"},r.a.createElement(h.a,{style:{transform:"rotate(-90deg)"}}))),r.a.createElement(p.a,{title:"Add"},r.a.createElement(c.a,{onClick:()=>f("string"!=typeof t?t:0),size:"large"},r.a.createElement(o.a,null)))),endAdornment:r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{title:"Remove"},r.a.createElement(c.a,{onClick:()=>m("string"!=typeof t?t:0),size:"large"},r.a.createElement(l.a,null))),r.a.createElement(p.a,{title:"Reset"},r.a.createElement(c.a,{onClick:g,size:"large"},r.a.createElement(u.a,null))))}}))}},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f}));var a=n(26);function r(e,t){return Math.random()*(t-e)+e}const i="↑",o="↓",s="←",l="→";function c(e){switch(e.key){case a.a.UP_ARROW:case a.a.W:return i;case a.a.LEFT_ARROW:case a.a.A:return s;case a.a.DOWN_ARROW:case a.a.S:return o;case a.a.RIGHT_ARROW:case a.a.D:return l}return""}function f(e){switch(e.key){case a.a.DOWN_ARROW:case a.a.S:return i;case a.a.RIGHT_ARROW:case a.a.D:return s;case a.a.UP_ARROW:case a.a.W:return o;case a.a.LEFT_ARROW:case a.a.A:return l}return""}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(359),r=n(22);class i extends a.a{constructor(e=null){super(e),this.count=1}getActionTimePenalty(){return 1.5}getChaosCompetencePenalty(){return 1}getChaosDifficultyBonus(){return 1}toJSON(){return Object(r.b)("BlackOperation",this)}static fromJSON(e){return Object(r.a)(i,e.data)}}r.c.constructors.BlackOperation=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var a=n(301),r=n(674);function i(e){const t=a.a[e];if(null==t)throw new Error("Invalid research name: "+e);return new r.a({text:t.name,cost:t.cost})}function o(){const e=i("Hi-Tech R&D Laboratory"),t=i("AutoBrew"),n=i("AutoPartyManager"),a=i("Automatic Drug Administration"),r=i("Bulk Purchasing"),o=i("CPH4 Injections"),s=i("Drones"),l=i("Drones - Assembly"),c=i("Drones - Transport"),f=i("Go-Juice"),u=i("HRBuddy-Recruitment"),m=i("HRBuddy-Training"),h=i("JoyWire"),d=i("Market-TA.I"),p=i("Market-TA.II"),g=i("Overclock"),y=i("Self-Correcting Assemblers"),b=i("Sti.mu");return a.addChild(f),a.addChild(o),s.addChild(l),s.addChild(c),u.addChild(m),d.addChild(p),g.addChild(b),e.addChild(t),e.addChild(n),e.addChild(a),e.addChild(r),e.addChild(s),e.addChild(u),e.addChild(h),e.addChild(d),e.addChild(g),e.addChild(y),e}function s(){const e=new r.b;return e.setRoot(o()),e}function l(){const e=new r.b,t=o(),n=i("uPgrade: Fulcrum"),a=i("uPgrade: Capacity.I"),s=i("uPgrade: Capacity.II"),l=i("uPgrade: Dashboard");return a.addChild(s),n.addChild(a),n.addChild(l),t.addChild(n),e.setRoot(t),e}},,function(e,t,n){"use strict";n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return y}));var a=n(24),r=n(43),i=n(608),o=n(20),s=n(12),l=n(60),c=n(64),f=n(783);function u(e){let t=e.hostname.replace(/ /g,"-");if(null!=e.ip&&Object(a.g)(e.ip)&&(e.ip=Object(a.e)()),null!=Object(a.d)(t)){t+="-0";for(let e=0;e<200&&(t=t.replace(/-[0-9]+$/,"-"+e),null!=Object(a.d)(t));++e);}return e.hostname=t,new r.a(e)}function m(e,t,n,a=1){let r=1+(s.a.ServerBaseGrowthRate-1)/e.hackDifficulty;r>s.a.ServerMaxGrowthRate&&(r=s.a.ServerMaxGrowthRate);const i=e.serverGrowth/100,l=1+(a-1)/16;return Math.log(t)/(Math.log(r)*n.mults.hacking_grow*i*o.a.ServerGrowthRate*l)}function h(e,t,n,a,r=1){if(n<0&&(n=0),t>e.moneyMax&&(t=e.moneyMax),t<=n)return 0;const i=1+(s.a.ServerBaseGrowthRate-1)/e.hackDifficulty,l=Math.min(i,s.a.ServerMaxGrowthRate),c=1+(r-1)/16,f=e.serverGrowth/100*a.mults.hacking_grow*c*o.a.ServerGrowthRate,u=f*Math.log(l),m=n*u+Math.log(t*u);let h;if(m0&&(h-=Math.log(m));let d=h/u-n;const p=l**f;let g=1/0;do{const e=p**d,a=n+d;g=(a*e-t)/(a*u+1)/e,d-=g}while(Math.abs(g)>=1);const y=Math.floor(d);if(t<=(n+y)*Math.pow(l,y*f))return y;const b=Math.ceil(d);return t<=(n+b)*Math.pow(l,b*f)?b:b+1}function d(e,t,n,a=1){let r=Object(i.a)(e,t,n,a);r<1&&(console.warn("serverGrowth calculated to be less than 1"),r=1);const o=e.moneyAvailable;if(e.moneyAvailable+=1*t,e.moneyAvailable*=r,Object(f.a)(e.moneyMax)&&isNaN(e.moneyAvailable)&&(e.moneyAvailable=e.moneyMax),Object(f.a)(e.moneyMax)&&e.moneyAvailable>e.moneyMax&&(e.moneyAvailable=e.moneyMax),o!==e.moneyAvailable){let r=h(e,e.moneyAvailable,o,n,a);r=Math.min(Math.max(0,Math.ceil(r)),t),e.fortify(2*s.a.ServerFortifyAmount*r)}return e.moneyAvailable/o}function p(e,t){const n=t.programs.includes(l.a.BitFlume.name);t.programs.length=0,t.runningScripts=[],t.serversOnNetwork=[],t.isConnectedTo=!0,t.ramUsed=0,t.programs.push(l.a.NukeProgram.name),n&&t.programs.push(l.a.BitFlume.name),t.scripts.forEach((function(n){n.updateRamUsage(e,t.scripts)})),t.messages.length=0,t.messages.push(c.a.HackersStartingHandbook)}function g(e,t){return t>e.serversOnNetwork.length?(console.error("Tried to get server on network that was out of range"),null):Object(a.d)(e.serversOnNetwork[t])}function y(e){return e instanceof r.a&&e.backdoorInstalled}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={BladesIntuition:"Blade's Intuition",Cloak:"Cloak",Marksman:"Marksman",WeaponProficiency:"Weapon Proficiency",ShortCircuit:"Short-Circuit",DigitalObserver:"Digital Observer",Tracer:"Tracer",Overclock:"Overclock",Reaper:"Reaper",EvasiveSystem:"Evasive System",Datamancer:"Datamancer",CybersEdge:"Cyber's Edge",HandsOfMidas:"Hands of Midas",Hyperdrive:"Hyperdrive"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(6),i=n(118),o=n(142);const s=Object(i.a)(e=>Object(o.a)({reputation:{color:e.colors.rep}}));function l({reputation:e}){const t=s();return a.createElement("span",{className:t.reputation},"number"==typeof e?r.a.formatReputation(e):e)}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var a=n(0);const r={Gang:n.n(a).a.createContext({})},i=()=>Object(a.useContext)(r.Gang)},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(190),r=n(432),i=n(202),o=n(302),s=n(24),l=n(329),c=n(14),f=n(472),u=n(2);function m(e){if(e instanceof r.a)return d(e),!0;if("number"==typeof e)return h(e);{const t=h(e.runningScript.pid);if(t)return t;for(const t of i.a.values())if(t.name==e.runningScript.filename&&t.hostname==e.hostname&&Object(l.a)(t.args,e.runningScript.args))return d(t),!0;return!1}}function h(e){const t=i.a.get(e);return t instanceof r.a&&(d(t),!0)}function d(e){if("function"==typeof e.atExit){try{e.atExit()}catch(t){Object(c.a)(`Error trying to call atExit for script ${e.name} on ${e.hostname} ${e.scriptRef.args} ${String(t)}`)}e.atExit=void 0}e.env.stopFlag=!0,function(e){e instanceof r.a&&e.delay&&(clearTimeout(e.delay),e.delayReject&&e.delayReject(new a.a(e)))}(e),function(e){const t=e.hostname,n=e.name,a=Object(s.d)(t);if(null==a)return void console.error("Could not find server on which this script is running: "+t);for(let t=0;tObject(o.a)({unbuyable:{color:e.palette.action.disabled},money:{color:e.colors.money}}));function l(e){const t=s();return e.corp.funds>e.money?a.createElement("span",{className:t.money},r.a.formatMoney(e.money)):a.createElement("span",{className:t.unbuyable},r.a.formatMoney(e.money))}},,,function(e,t,n){"use strict";function a(e){return"string"==typeof e||e instanceof String}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(342),r=n(280),i=n(19),o=n(1),s=n(0),l=n.n(s);function c({checked:e,onChange:t,text:n,tooltip:c}){const[f,u]=Object(s.useState)(e);return Object(s.useEffect)(()=>t(f),[f]),l.a.createElement(a.a,{control:l.a.createElement(r.a,{checked:f,onChange:function(e){u(e.target.checked)}}),label:l.a.createElement(i.a,{title:l.a.createElement(o.a,null,c)},l.a.createElement(o.a,null,n))})}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return m}));var a=n(0),r=n.n(a),i=n(20),o=n(4),s=n(15);class l{constructor(e,t,n,a="",i=r.a.createElement(r.a.Fragment,null)){this.number=e,this.difficulty=t,this.name=n,this.desc=a,this.info=i}}const c={};c.BitNode1=new l(1,0,"Source Genesis","The original BitNode",r.a.createElement(r.a.Fragment,null,"The first BitNode created by the Enders to imprison the minds of humans. It became the prototype and testing-grounds for all of the BitNodes that followed.",r.a.createElement("br",null),r.a.createElement("br",null),"This is the first BitNode that you play through. It has no special modifications or mechanics.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 1, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets the player start with 32GB of RAM on his/her home computer when entering a new BitNode, and also increases all of the player's multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 16%",r.a.createElement("br",null),"Level 2: 24%",r.a.createElement("br",null),"Level 3: 28%")),c.BitNode2=new l(2,0,"Rise of the Underworld","From the shadows, they rose",r.a.createElement(r.a.Fragment,null,"From the shadows, they rose.",r.a.createElement("br",null),r.a.createElement("br",null),"Organized crime groups quickly filled the void of power left behind from the collapse of Western government in the 2050s. As society and civilization broke down, people quickly succumbed to the innate human impulse of evil and savagery. The organized crime factions quickly rose to the top of the modern world.",r.a.createElement("br",null),r.a.createElement("br",null),"Certain Factions (",o.a.SlumSnakes,", ",o.a.Tetrads,", ",o.a.TheSyndicate,","," ",o.a.TheDarkArmy,", ",o.a.SpeakersForTheDead,", ",o.a.NiteSec,", ",o.a.TheBlackHand,") give the player the ability to form and manage their own gangs. These gangs will earn the player money and reputation with the corresponding Faction",r.a.createElement("br",null),"Every Augmentation in the game will be available through the Factions listed above",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 2, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to form gangs in other BitNodes once your karma decreases to a certain value. It also increases the player's crime success rate, crime money, and charisma multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 24%",r.a.createElement("br",null),"Level 2: 36%",r.a.createElement("br",null),"Level 3: 42%")),c.BitNode3=new l(3,0,"Corporatocracy","The Price of Civilization",r.a.createElement(r.a.Fragment,null,"Our greatest illusion is that a healthy society can revolve around a single-minded pursuit of wealth.",r.a.createElement("br",null),r.a.createElement("br",null),"Sometime in the early 21st century economic and political globalization turned the world into a corporatocracy, and it never looked back. Now, the privileged elite will happily bankrupt their own countrymen, decimate their own community, and evict their neighbors from houses in their desperate bid to increase their wealth.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you can create and manage your own corporation. Running a successful corporation has the potential of generating massive profits.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 3, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets you create corporations on other BitNodes (although some BitNodes will disable this mechanic). This Source-File also increases your charisma and company salary multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode4=new l(4,1,"The Singularity","The Man and the Machine",r.a.createElement(r.a.Fragment,null,"The Singularity has arrived. The human race is gone, replaced by artificially superintelligent beings that are more machine than man. ",r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will gain access to a new set of Netscript Functions known as Singularity Functions. These functions allow you to control most aspects of the game through scripts, including working for factions/companies, purchasing/installing Augmentations, and creating programs.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 4, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets you access and use the Singularity Functions in other BitNodes. Each level of this Source-File reduces the RAM cost of singularity functions.")),c.BitNode5=new l(5,1,"Artificial Intelligence","Posthuman",r.a.createElement(r.a.Fragment,null,"They said it couldn't be done. They said the human brain, along with its consciousness and intelligence, couldn't be replicated. They said the complexity of the brain results from unpredictable, nonlinear interactions that couldn't be modeled by 1's and 0's. They were wrong.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 5, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants you a special new stat called Intelligence. Intelligence is unique because it is permanent and persistent (it never gets reset back to 1). However gaining Intelligence experience is much slower than other stats. Higher Intelligence levels will boost your production for many actions in the game. ",r.a.createElement("br",null),r.a.createElement("br",null),"In addition, this Source-File will unlock the getBitNodeMultipliers() Netscript function and let you start with Formulas.exe, and will also raise all of your hacking-related multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode6=new l(6,1,o.a.Bladeburners,"Like Tears in Rain",r.a.createElement(r.a.Fragment,null,"In the middle of the 21st century, ",o.a.OmniTekIncorporated," began designing and manufacturing advanced synthetic androids, or Synthoids for short. They achieved a major technological breakthrough in the sixth generation of their Synthoid design, called MK-VI, by developing a hyperintelligent AI. Many argue that this was the first sentient AI ever created. This resulted in Synthoid models that were stronger, faster, and more intelligent than the humans that had created them.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will be able to access the ",o.a.Bladeburners," Division at the NSA, which provides a new mechanic for progression.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 6, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to access the NSA's ",o.a.Bladeburners," Division in other BitNodes. In addition, this Source-File will raise both the level and experience gain rate of all your combat stats by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode7=new l(7,2,o.a.Bladeburners+" 2079","More human than humans",r.a.createElement(r.a.Fragment,null,"In the middle of the 21st century, you were doing cutting-edge work at ",o.a.OmniTekIncorporated," as part of the AI design team for advanced synthetic androids, or Synthoids for short. You helped achieve a major technological breakthrough in the sixth generation of the company's Synthoid design, called MK-VI, by developing a hyperintelligent AI. Many argue that this was the first sentient AI ever created. This resulted in Synthoid models that were stronger, faster, and more intelligent than the humans that had created them.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode you will be able to access the ",o.a.Bladeburners," API, which allows you to access"," ",o.a.Bladeburners,"functionality through Netscript.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 7, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File allows you to access the ",o.a.Bladeburners," Netscript API in other BitNodes. In addition, this Source-File will increase all of your ",o.a.Bladeburners," multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode8=new l(8,2,"Ghost of Wall Street","Money never sleeps",r.a.createElement(r.a.Fragment,null,"You are trying to make a name for yourself as an up-and-coming hedge fund manager on Wall Street.",r.a.createElement("br",null),r.a.createElement("br",null),"In this BitNode:",r.a.createElement("br",null),r.a.createElement("br",null),"You start with $250 million",r.a.createElement("br",null),"You start with a WSE membership and access to the TIX API",r.a.createElement("br",null),"You are able to short stocks and place different types of orders (limit/stop)",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 8, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanent access to WSE and TIX API",r.a.createElement("br",null),"Level 2: Ability to short stocks in other BitNodes",r.a.createElement("br",null),"Level 3: Ability to use limit/stop orders in other BitNodes",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacking growth multipliers by:",r.a.createElement("br",null),"Level 1: 12%",r.a.createElement("br",null),"Level 2: 18%",r.a.createElement("br",null),"Level 3: 21%")),c.BitNode9=new l(9,2,"Hacktocracy","Hacknet Unleashed",r.a.createElement(r.a.Fragment,null,"When ",o.a.FulcrumSecretTechnologies," released their open-source Linux distro Chapeau, it quickly became the OS of choice for the underground hacking community. Chapeau became especially notorious for powering the Hacknet, a global, decentralized network used for nefarious purposes. ",o.a.FulcrumSecretTechnologies," ","quickly abandoned the project and dissociated themselves from it.",r.a.createElement("br",null),r.a.createElement("br",null),"This BitNode unlocks the Hacknet Server, an upgraded version of the Hacknet Node. Hacknet Servers generate hashes, which can be spent on a variety of different upgrades.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 9, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanently unlocks the Hacknet Server in other BitNodes",r.a.createElement("br",null),"Level 2: You start with 128GB of RAM on your home computer when entering a new BitNode",r.a.createElement("br",null),"Level 3: Grants a highly-upgraded Hacknet Server when entering a new BitNode",r.a.createElement("br",null),r.a.createElement("br",null),"(Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing Augmentations)",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacknet multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),c.BitNode10=new l(10,2,"Digital Carbon","Your body is not who you are",r.a.createElement(r.a.Fragment,null,"In 2084, VitaLife unveiled to the world the Persona Core, a technology that allowed people to digitize their consciousness. Their consciousness could then be transferred into Synthoids or other bodies by trasmitting the digitized data. Human bodies became nothing more than 'sleeves' for the human consciousness. Mankind had finally achieved immortality - at least for those that could afford it.",r.a.createElement("br",null),r.a.createElement("br",null),"This BitNode unlocks Sleeve technology. Sleeve technology allows you to:",r.a.createElement("br",null),r.a.createElement("br",null),"1. Grafting: Visit VitaLife in New Tokyo to be able to obtain Augmentations without needing to install",r.a.createElement("br",null),"2. Duplicate Sleeves: Duplicate your consciousness into Synthoids, allowing you to perform different tasks synchronously.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 10, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File unlocks Sleeve technology in other BitNodes. Each level of this Source-File also grants you a Duplicate Sleeve")),c.BitNode11=new l(11,1,"The Big Crash","Okay. Sell it all.",r.a.createElement(r.a.Fragment,null,"The 2050s was defined by the massive amounts of violent civil unrest and anarchic rebellion that rose all around the world. It was this period of disorder that eventually lead to the governmental reformation of many global superpowers, most notably the USA and China. But just as the world was slowly beginning to recover from these dark times, financial catastrophe hit.",r.a.createElement("br",null),r.a.createElement("br",null),"In many countries, the high cost of trying to deal with the civil disorder bankrupted the governments. In all of this chaos and confusion, hackers were able to steal billions of dollars from the world's largest electronic banks, prompting an international banking crisis as governments were unable to bail out insolvent banks. Now, the world is slowly crumbling in the middle of the biggest economic crisis of all time.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 11, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File makes it so that company favor increases BOTH the player's salary and reputation gain rate at that company by 1% per favor (rather than just the reputation gain). This Source-File also increases the player's company salary and reputation gain multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 32%",r.a.createElement("br",null),"Level 2: 48%",r.a.createElement("br",null),"Level 3: 56%",r.a.createElement("br",null),r.a.createElement("br",null),"It also reduces the price increase for every aug bought by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 4%",r.a.createElement("br",null),"Level 2: 6%",r.a.createElement("br",null),"Level 3: 7%")),c.BitNode12=new l(12,0,"The Recursion","Repeat.",r.a.createElement(r.a.Fragment,null,"To iterate is human, to recurse divine.",r.a.createElement("br",null),r.a.createElement("br",null),"Every time this BitNode is destroyed, it becomes slightly harder. Destroying this BitNode will give you Source-File 12, or if you already have this Source-File it will upgrade its level. There is no maximum level for Source-File 12. Each level of Source-File 12 lets you start any BitNodes with NeuroFlux Governor equal to the level of this source file.")),c.BitNode13=new l(13,2,"They're lunatics","1 step back, 2 steps forward",r.a.createElement(r.a.Fragment,null,"With the invention of Augmentations in the 2040s a religious group known as the"," ",o.a.ChurchOfTheMachineGod," has rallied far more support than anyone would have hoped.",r.a.createElement("br",null),r.a.createElement("br",null),'Their leader, Allison "Mother" Stanek is said to have created her own Augmentation whose power goes beyond any other. Find her in ',s.a.Chongqing," and gain her trust.",r.a.createElement("br",null),r.a.createElement("br",null),"Destroying this BitNode will give you Source-File 13, or if you already have this Source-File it will upgrade its level up to a maximum of 3. This Source-File lets the ",o.a.ChurchOfTheMachineGod," appear in other BitNodes.",r.a.createElement("br",null),r.a.createElement("br",null),"Each level of this Source-File increases the size of Stanek's Gift."));const f={HackingLevelMultiplier:1,StrengthLevelMultiplier:1,DefenseLevelMultiplier:1,DexterityLevelMultiplier:1,AgilityLevelMultiplier:1,CharismaLevelMultiplier:1,ServerGrowthRate:1,ServerMaxMoney:1,ServerStartingMoney:1,ServerStartingSecurity:1,ServerWeakenRate:1,HomeComputerRamCost:1,PurchasedServerCost:1,PurchasedServerSoftcap:1,PurchasedServerLimit:1,PurchasedServerMaxRam:1,CompanyWorkMoney:1,CrimeMoney:1,HacknetNodeMoney:1,ManualHackMoney:1,ScriptHackMoney:1,ScriptHackMoneyGain:1,CodingContractMoney:1,ClassGymExpGain:1,CompanyWorkExpGain:1,CrimeExpGain:1,FactionWorkExpGain:1,HackExpGain:1,FactionPassiveRepGain:1,FactionWorkRepGain:1,RepToDonateToFaction:1,AugmentationMoneyCost:1,AugmentationRepCost:1,InfiltrationMoney:1,InfiltrationRep:1,FourSigmaMarketDataCost:1,FourSigmaMarketDataApiCost:1,CorporationValuation:1,CorporationSoftcap:1,BladeburnerRank:1,BladeburnerSkillCost:1,GangSoftcap:1,GangUniqueAugs:1,DaedalusAugsRequirement:30,StaneksGiftPowerMultiplier:1,StaneksGiftExtraSize:0,WorldDaemonDifficulty:1};function u(e,t){const n=Object.assign({},f);switch(e){case 1:return n;case 2:return Object.assign(n,{HackingLevelMultiplier:.8,ServerGrowthRate:.8,ServerMaxMoney:.2,ServerStartingMoney:.4,CrimeMoney:3,InfiltrationMoney:3,FactionWorkRepGain:.5,FactionPassiveRepGain:0,StaneksGiftPowerMultiplier:2,StaneksGiftExtraSize:-6,PurchasedServerSoftcap:1.3,CorporationSoftcap:.9,WorldDaemonDifficulty:5});case 3:return Object.assign(n,{HackingLevelMultiplier:.8,RepToDonateToFaction:.5,AugmentationRepCost:3,AugmentationMoneyCost:3,ServerMaxMoney:.2,ServerStartingMoney:.2,ServerGrowthRate:.2,ScriptHackMoney:.2,CompanyWorkMoney:.25,CrimeMoney:.25,HacknetNodeMoney:.25,HomeComputerRamCost:1.5,PurchasedServerCost:2,StaneksGiftPowerMultiplier:.75,StaneksGiftExtraSize:-2,PurchasedServerSoftcap:1.3,GangSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.5});case 4:return Object.assign(n,{ServerMaxMoney:.15,ServerStartingMoney:.75,ScriptHackMoney:.2,CompanyWorkMoney:.1,CrimeMoney:.2,HacknetNodeMoney:.05,CompanyWorkExpGain:.5,ClassGymExpGain:.5,FactionWorkExpGain:.5,HackExpGain:.4,CrimeExpGain:.5,FactionWorkRepGain:.75,StaneksGiftPowerMultiplier:1.5,StaneksGiftExtraSize:0,PurchasedServerSoftcap:1.2,WorldDaemonDifficulty:3,GangUniqueAugs:.5});case 5:return Object.assign(n,{ServerMaxMoney:2,ServerStartingSecurity:2,ServerStartingMoney:.5,ScriptHackMoney:.15,HacknetNodeMoney:.2,CrimeMoney:.5,InfiltrationRep:1.5,InfiltrationMoney:1.5,AugmentationMoneyCost:2,HackExpGain:.5,CorporationValuation:.5,StaneksGiftPowerMultiplier:1.3,StaneksGiftExtraSize:0,PurchasedServerSoftcap:1.2,WorldDaemonDifficulty:1.5,GangUniqueAugs:.5});case 6:return Object.assign(n,{HackingLevelMultiplier:.35,ServerMaxMoney:.4,ServerStartingMoney:.5,ServerStartingSecurity:1.5,ScriptHackMoney:.75,CompanyWorkMoney:.5,CrimeMoney:.75,InfiltrationMoney:.75,CorporationValuation:.2,HacknetNodeMoney:.2,HackExpGain:.25,DaedalusAugsRequirement:35,PurchasedServerSoftcap:2,StaneksGiftPowerMultiplier:.5,StaneksGiftExtraSize:2,GangSoftcap:.7,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.2});case 7:return Object.assign(n,{BladeburnerRank:.6,BladeburnerSkillCost:2,AugmentationMoneyCost:3,HackingLevelMultiplier:.35,ServerMaxMoney:.4,ServerStartingMoney:.5,ServerStartingSecurity:1.5,ScriptHackMoney:.5,CompanyWorkMoney:.5,CrimeMoney:.75,InfiltrationMoney:.75,CorporationValuation:.2,HacknetNodeMoney:.2,HackExpGain:.25,FourSigmaMarketDataCost:2,FourSigmaMarketDataApiCost:2,DaedalusAugsRequirement:35,PurchasedServerSoftcap:2,StaneksGiftPowerMultiplier:.9,StaneksGiftExtraSize:-1,GangSoftcap:.7,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.2});case 8:return Object.assign(n,{ScriptHackMoney:.3,ScriptHackMoneyGain:0,ManualHackMoney:0,CompanyWorkMoney:0,CrimeMoney:0,HacknetNodeMoney:0,InfiltrationMoney:0,RepToDonateToFaction:0,CorporationValuation:0,CodingContractMoney:0,StaneksGiftExtraSize:-99,PurchasedServerSoftcap:4,GangSoftcap:0,CorporationSoftcap:0,GangUniqueAugs:0});case 9:return Object.assign(n,{HackingLevelMultiplier:.5,StrengthLevelMultiplier:.45,DefenseLevelMultiplier:.45,DexterityLevelMultiplier:.45,AgilityLevelMultiplier:.45,CharismaLevelMultiplier:.45,PurchasedServerLimit:0,HomeComputerRamCost:5,CrimeMoney:.5,ScriptHackMoney:.1,HackExpGain:.05,ServerStartingMoney:.1,ServerMaxMoney:.1,ServerStartingSecurity:2.5,CorporationValuation:.5,FourSigmaMarketDataCost:5,FourSigmaMarketDataApiCost:4,BladeburnerRank:.9,BladeburnerSkillCost:1.2,StaneksGiftPowerMultiplier:.5,StaneksGiftExtraSize:2,GangSoftcap:.8,CorporationSoftcap:.7,WorldDaemonDifficulty:2,GangUniqueAugs:.25});case 10:return Object.assign(n,{HackingLevelMultiplier:.35,StrengthLevelMultiplier:.4,DefenseLevelMultiplier:.4,DexterityLevelMultiplier:.4,AgilityLevelMultiplier:.4,CharismaLevelMultiplier:.4,CompanyWorkMoney:.5,CrimeMoney:.5,HacknetNodeMoney:.5,ManualHackMoney:.5,ScriptHackMoney:.5,CodingContractMoney:.5,InfiltrationMoney:.5,CorporationValuation:.5,AugmentationMoneyCost:5,AugmentationRepCost:2,HomeComputerRamCost:1.5,PurchasedServerCost:5,PurchasedServerLimit:.6,PurchasedServerMaxRam:.5,BladeburnerRank:.8,StaneksGiftPowerMultiplier:.75,StaneksGiftExtraSize:-3,PurchasedServerSoftcap:1.1,GangSoftcap:.9,CorporationSoftcap:.9,WorldDaemonDifficulty:2,GangUniqueAugs:.25});case 11:return Object.assign(n,{HackingLevelMultiplier:.6,HackExpGain:.5,ServerMaxMoney:.1,ServerStartingMoney:.1,ServerGrowthRate:.2,ServerWeakenRate:2,CrimeMoney:3,CompanyWorkMoney:.5,HacknetNodeMoney:.1,AugmentationMoneyCost:2,InfiltrationMoney:2.5,InfiltrationRep:2.5,CorporationValuation:.1,CodingContractMoney:.25,FourSigmaMarketDataCost:4,FourSigmaMarketDataApiCost:4,PurchasedServerSoftcap:2,CorporationSoftcap:.9,WorldDaemonDifficulty:1.5,GangUniqueAugs:.75});case 12:{const e=Math.pow(1.02,t),a=1/e;return Object.assign(n,{DaedalusAugsRequirement:Math.floor(Math.min(n.DaedalusAugsRequirement+e,40)),HackingLevelMultiplier:a,StrengthLevelMultiplier:a,DefenseLevelMultiplier:a,DexterityLevelMultiplier:a,AgilityLevelMultiplier:a,CharismaLevelMultiplier:a,ServerMaxMoney:a,ServerStartingMoney:a,ServerGrowthRate:a,ServerWeakenRate:a,ServerStartingSecurity:1.5,HomeComputerRamCost:e,PurchasedServerCost:e,PurchasedServerLimit:a,PurchasedServerMaxRam:a,PurchasedServerSoftcap:e,ManualHackMoney:a,ScriptHackMoney:a,CompanyWorkMoney:a,CrimeMoney:a,HacknetNodeMoney:a,CodingContractMoney:a,CompanyWorkExpGain:a,ClassGymExpGain:a,FactionWorkExpGain:a,HackExpGain:a,CrimeExpGain:a,FactionWorkRepGain:a,FactionPassiveRepGain:a,RepToDonateToFaction:e,AugmentationRepCost:e,AugmentationMoneyCost:e,InfiltrationMoney:a,InfiltrationRep:a,FourSigmaMarketDataCost:e,FourSigmaMarketDataApiCost:e,CorporationValuation:a,BladeburnerRank:a,BladeburnerSkillCost:e,StaneksGiftPowerMultiplier:e,StaneksGiftExtraSize:e,GangSoftcap:.8,CorporationSoftcap:.8,WorldDaemonDifficulty:e,GangUniqueAugs:a})}case 13:return Object.assign(n,{PurchasedServerSoftcap:1.6,HackingLevelMultiplier:.25,StrengthLevelMultiplier:.7,DefenseLevelMultiplier:.7,DexterityLevelMultiplier:.7,AgilityLevelMultiplier:.7,ServerMaxMoney:.45,ServerStartingMoney:.75,ServerStartingSecurity:3,ScriptHackMoney:.2,CompanyWorkMoney:.4,CrimeMoney:.4,HacknetNodeMoney:.4,CodingContractMoney:.4,CompanyWorkExpGain:.5,ClassGymExpGain:.5,FactionWorkExpGain:.5,HackExpGain:.1,CrimeExpGain:.5,FactionWorkRepGain:.6,FourSigmaMarketDataCost:10,FourSigmaMarketDataApiCost:10,CorporationValuation:.001,BladeburnerRank:.45,BladeburnerSkillCost:2,StaneksGiftPowerMultiplier:2,StaneksGiftExtraSize:1,GangSoftcap:.3,CorporationSoftcap:.3,WorldDaemonDifficulty:3,GangUniqueAugs:.1});default:throw new Error("Invalid BitNodeN")}}function m(e){Object.assign(i.a,u(e.bitNodeN,e.sourceFileLvl(e.bitNodeN)))}Object.freeze(f)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));class a{constructor(e,t){this.type=e,this.singularity=t,this.cyclesWorked=0}}let r;!function(e){e.CRIME="CRIME",e.CLASS="CLASS",e.CREATE_PROGRAM="CREATE_PROGRAM",e.GRAFTING="GRAFTING",e.FACTION="FACTION",e.COMPANY="COMPANY"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(22),r=n(33);const i={b:!0,initPrice:1e4,marketCap:1e12,mv:1,name:"",otlkMag:0,spreadPerc:0,shareTxForMovement:1e6,symbol:""};function o(e){let t;switch(typeof e){case"number":return e;case"object":{const n=e;t=Object(r.a)(n.min,n.max);break}default:throw Error(`Do not know how to convert the type '${typeof e}' to a number`)}return"object"==typeof e&&"number"==typeof e.divisor?t/e.divisor:t}class s{constructor(e=i){this.name=e.name,this.symbol=e.symbol,this.price=o(e.initPrice),this.lastPrice=this.price,this.playerShares=0,this.playerAvgPx=0,this.playerShortShares=0,this.playerAvgShortPx=0,this.mv=o(e.mv),this.b=e.b,this.otlkMag=e.otlkMag,this.otlkMagForecast=this.getAbsoluteForecast(),this.cap=Object(r.a)(1e3*this.price,25e3*this.price),this.spreadPerc=o(e.spreadPerc),this.shareTxForMovement=o(e.shareTxForMovement),this.shareTxUntilMovement=this.shareTxForMovement;const t=e.marketCap/this.price;this.totalShares=1e5*Math.round(t/1e5);this.maxShares=1e5*Math.round(.2*this.totalShares/1e5)}changeForecastForecast(e){this.otlkMagForecast=e,this.otlkMagForecast>100?this.otlkMagForecast=100:this.otlkMagForecast<0&&(this.otlkMagForecast=0)}changePrice(e){this.lastPrice=this.price,this.price=e}cycleForecast(e=.1){const t=this.getForecastIncreaseChance();Math.random()5&&(this.otlkMag=Math.max(5,this.otlkMag-e))}influenceForecastForecast(e){this.otlkMagForecast>50?(this.otlkMagForecast-=e,this.otlkMagForecast=Math.max(50,this.otlkMagForecast)):this.otlkMagForecast<50&&(this.otlkMagForecast+=e,this.otlkMagForecast=Math.min(50,this.otlkMagForecast))}toJSON(){return Object(a.b)("Stock",this)}static fromJSON(e){return Object(a.a)(s,e.data)}}a.c.constructors.Stock=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return f}));var a=n(20),r=n(40);function i(e,t,n,i,o){return r.b.HashesPerLevel*e*Math.pow(1.07,Math.log2(n))*(1+(i-1)/5)*(1-t/n)*o*a.a.HacknetNodeMoney}function o(e,t=1,n=1){const a=Math.round(t);if(isNaN(a)||a<1)return 0;if(e>=r.b.MaxLevel)return 1/0;const i=r.b.UpgradeLevelMult;let o=0,s=e;for(let e=0;e=r.b.MaxRam)return 1/0;let i=0,o=Math.round(Math.log2(e)),s=e;for(let e=0;e=r.b.MaxCores)return 1/0;const i=r.b.UpgradeCoreMult;let o=0,s=e;for(let e=0;e=r.b.MaxCache)return 1/0;const a=r.b.UpgradeCacheMult;let i=0,o=e;for(let e=0;e=r.b.MaxServers?1/0:r.b.BaseCost*Math.pow(r.b.PurchaseMult,e-1)*t}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return h}));var a=n(84);let r={},i={};function o(e){r=""===e?{}:JSON.parse(e)}function s(e){i=""===e?{}:JSON.parse(e)}function l(){for(const e of Object.keys(r))r.hasOwnProperty(e)&&a.a.print("alias "+e+"="+r[e]);for(const e of Object.keys(i))i.hasOwnProperty(e)&&a.a.print("global alias "+e+"="+i[e])}function c(e,t=!1){const n=e.match(/^([\w|!%,@-]+)=(("(.+)")|('(.+)'))$/);return null!=n&&7==n.length&&(t?function(e,t){e in r&&delete r[e];i[e]=t.trim()}(n[1],n[4]||n[6]):function(e,t){e in i&&delete i[e];r[e]=t.trim()}(n[1],n[4]||n[6]),!0)}function f(e){return r.hasOwnProperty(e)?r[e]:null}function u(e){return i.hasOwnProperty(e)?i[e]:null}function m(e){return r.hasOwnProperty(e)?(delete r[e],!0):!!i.hasOwnProperty(e)&&(delete i[e],!0)}function h(e){const t=e.split(" ");if(t.length>0){if("unalias"===t[0]||"alias"===t[0])return t.join(" ");let e=!0,r=0;for(;e&&r<10;){var n;r++,e=!1;const i=null===(n=f(t[0]))||void 0===n?void 0:n.split(" ");null!=i&&(e=!0,t.splice(0,1,...i));for(let n=0;n{var t,n,a,r,i,o,s,l,c;return{money:null!==(t=null==e?void 0:e.money)&&void 0!==t?t:0,reputation:null!==(n=null==e?void 0:e.reputation)&&void 0!==n?n:0,hackExp:null!==(a=null==e?void 0:e.hackExp)&&void 0!==a?a:0,strExp:null!==(r=null==e?void 0:e.strExp)&&void 0!==r?r:0,defExp:null!==(i=null==e?void 0:e.defExp)&&void 0!==i?i:0,dexExp:null!==(o=null==e?void 0:e.dexExp)&&void 0!==o?o:0,agiExp:null!==(s=null==e?void 0:e.agiExp)&&void 0!==s?s:0,chaExp:null!==(l=null==e?void 0:e.chaExp)&&void 0!==l?l:0,intExp:null!==(c=null==e?void 0:e.intExp)&&void 0!==c?c:0}},r=(e,t)=>({money:e.money+t.money,reputation:e.reputation+t.reputation,hackExp:e.hackExp+t.hackExp,strExp:e.strExp+t.strExp,defExp:e.defExp+t.defExp,dexExp:e.dexExp+t.dexExp,agiExp:e.agiExp+t.agiExp,chaExp:e.chaExp+t.chaExp,intExp:e.intExp+t.intExp}),i=(e,t,n,a)=>{const r={money:t.money*n,reputation:0,hackExp:t.hackExp*n,strExp:t.strExp*n,defExp:t.defExp*n,dexExp:t.dexExp*n,agiExp:t.agiExp*n,chaExp:t.chaExp*n,intExp:t.intExp*n};return e.gainHackingExp(r.hackExp),e.gainStrengthExp(r.strExp),e.gainDefenseExp(r.defExp),e.gainDexterityExp(r.dexExp),e.gainAgilityExp(r.agiExp),e.gainCharismaExp(r.chaExp),e.gainIntelligenceExp(r.intExp),e.gainMoney(r.money,a),r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t,n){this.title=e,this.fn=t,this.txt=n}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(1),o=n(19);function s(e){const[t,n]=Object(a.useState)(!1);return r.a.createElement(o.a,{open:t,title:r.a.createElement(i.a,null,"Copied!")},r.a.createElement(i.a,{variant:e.variant,color:e.color,onClick:function(){const t=document.createElement("textarea");t.value=e.value,document.body.appendChild(t),t.select(),t.setSelectionRange(0,1e10),document.execCommand("copy"),document.body.removeChild(t),n(!0),setTimeout(()=>n(!1),1e3)}},e.value))}},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return m})),n.d(t,"a",(function(){return h}));var a=n(0),r=n.n(a),i=n(666),o=n(959),s=n(1762),l=n(126),c=n(5);const f=new l.a;let u;function m(){var e,t;u=Object(i.a)({colors:{hp:c.a.theme.hp,money:c.a.theme.money,hack:c.a.theme.hack,combat:c.a.theme.combat,cha:c.a.theme.cha,int:c.a.theme.int,rep:c.a.theme.rep,backgroundprimary:c.a.theme.backgroundprimary,backgroundsecondary:c.a.theme.backgroundsecondary,button:c.a.theme.button,successlight:c.a.theme.successlight,success:c.a.theme.success,successdark:c.a.theme.successdark,white:c.a.theme.white,black:c.a.theme.black},palette:{primary:{light:c.a.theme.primarylight,main:c.a.theme.primary,dark:c.a.theme.primarydark},secondary:{light:c.a.theme.secondarylight,main:c.a.theme.secondary,dark:c.a.theme.secondarydark},error:{light:c.a.theme.errorlight,main:c.a.theme.error,dark:c.a.theme.errordark},info:{light:c.a.theme.infolight,main:c.a.theme.info,dark:c.a.theme.infodark},warning:{light:c.a.theme.warninglight,main:c.a.theme.warning,dark:c.a.theme.warningdark},success:{light:c.a.theme.successlight,main:c.a.theme.success,dark:c.a.theme.successdark},background:{default:c.a.theme.backgroundprimary,paper:c.a.theme.well},action:{disabled:c.a.theme.disabled}},typography:{fontFamily:c.a.styles.fontFamily,button:{textTransform:"none"}},components:{MuiInputBase:{styleOverrides:{root:{backgroundColor:c.a.theme.well,color:c.a.theme.primary},input:{"&::placeholder":{userSelect:"none",color:c.a.theme.primarydark}}}},MuiInput:{styleOverrides:{root:{backgroundColor:c.a.theme.well,borderBottomColor:"#fff"},underline:{"&:hover":{borderBottomColor:c.a.theme.primarydark},"&:before":{borderBottomColor:c.a.theme.primary},"&:after":{borderBottomColor:c.a.theme.primarylight}}}},MuiInputLabel:{styleOverrides:{root:{color:c.a.theme.primarydark,userSelect:"none","&:before":{color:c.a.theme.primarylight}}}},MuiButtonGroup:{styleOverrides:{root:{"& .MuiButton-root:not(:last-of-type)":{marginRight:"1px"}}}},MuiButton:{styleOverrides:{root:{backgroundColor:c.a.theme.button,border:"1px solid "+c.a.theme.well,"&:hover":{backgroundColor:c.a.theme.backgroundsecondary},borderRadius:0}}},MuiSelect:{styleOverrides:{icon:{color:c.a.theme.primary}},defaultProps:{variant:"standard"}},MuiTextField:{defaultProps:{variant:"standard"}},MuiTypography:{defaultProps:{color:"primary"},styleOverrides:{root:{lineHeight:c.a.styles.lineHeight}}},MuiMenu:{styleOverrides:{list:{backgroundColor:c.a.theme.well}}},MuiMenuItem:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiAccordionSummary:{styleOverrides:{root:{backgroundColor:"#111"}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:c.a.theme.backgroundsecondary}}},MuiIconButton:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:"1em",color:c.a.theme.primary,backgroundColor:c.a.theme.well,borderRadius:0,border:"2px solid white",maxWidth:"100vh"}},defaultProps:{disableInteractive:!0}},MuiSlider:{styleOverrides:{valueLabel:{color:c.a.theme.primary,backgroundColor:c.a.theme.well}}},MuiDrawer:{styleOverrides:{paper:{"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",backgroundColor:c.a.theme.backgroundsecondary},paperAnchorDockedLeft:{borderRight:"1px solid "+c.a.theme.welllight}}},MuiDivider:{styleOverrides:{root:{backgroundColor:c.a.theme.welllight}}},MuiFormControlLabel:{styleOverrides:{root:{color:c.a.theme.primary}}},MuiSwitch:{styleOverrides:{switchBase:{color:c.a.theme.primarydark},track:{backgroundColor:c.a.theme.welllight}}},MuiPaper:{styleOverrides:{root:{borderRadius:0,backgroundColor:c.a.theme.backgroundsecondary,border:"1px solid "+c.a.theme.welllight}}},MuiTablePagination:{styleOverrides:{select:{color:c.a.theme.primary},selectLabel:{color:c.a.theme.primary},displayedRows:{color:c.a.theme.primary}}},MuiTab:{styleOverrides:{textColorPrimary:{color:c.a.theme.secondary,"&.Mui-selected":{color:c.a.theme.primary}},root:{backgroundColor:c.a.theme.backgroundsecondary,border:"1px solid "+c.a.theme.well,margin:"3px","&.Mui-selected":{backgroundColor:c.a.theme.button}}}},MuiTabs:{styleOverrides:{scrollButtons:{backgroundColor:c.a.theme.backgroundsecondary,color:c.a.theme.secondary,margin:"3px",opacity:1,width:"fit-content","&.Mui-disabled":{opacity:.5}}},defaultProps:{TabIndicatorProps:{style:{display:"none"}}}},MuiAlert:{styleOverrides:{root:{backgroundColor:c.a.theme.black,borderRadius:0,border:"1px solid "+c.a.theme.well},standardSuccess:{color:c.a.theme.successlight},standardError:{color:c.a.theme.errorlight},standardWarning:{color:c.a.theme.warninglight},standardInfo:{color:c.a.theme.infolight}}}}}),document.body.style.backgroundColor=null!==(e=null===(t=u.colors.backgroundprimary)||void 0===t?void 0:t.toString())&&void 0!==e?e:"black"}m();const h=({children:e})=>r.a.createElement(o.a,{injectFirst:!0},r.a.createElement(s.a,{theme:u},e))},,function(e,t,n){"use strict";let a,r;n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),function(e){e[e.Cost=0]="Cost",e[e.Default=1]="Default",e[e.Reputation=2]="Reputation",e[e.Purchasable=3]="Purchasable"}(a||(a={})),function(e){e[e.Alphabetically=0]="Alphabetically",e[e.AcquirementTime=1]="AcquirementTime"}(r||(r={}))},,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return L})),n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return M})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return N}));var a=n(0),r=n.n(a),i=n(126),o=n(144),s=n(1),l=n(18),c=n(8),f=n(44),u=n(463),m=n.n(u),h=n(1046),d=n(118),p=n(142),g=n(610),y=n.n(g),b=n(202),E=n(201),v=n(24),k=n(267),w=n(2),_=n(113),S=n(5),C=n(609);let x=0;const L=new i.a,O=new i.a,M=new i.a;let T=[];function A(){const e=Object(a.useState)(!0)[1];function t(){e(e=>!e)}return Object(a.useEffect)(()=>L.subscribe(e=>{const n=e.server+"-"+e.filename+e.args.map(e=>""+e).join("-");T.find(e=>e.id===n)||(T.push({id:n,script:e}),t())}),[]),Object(a.useEffect)(()=>O.subscribe(e=>{!function(e){T=T.filter(t=>t.script.pid!=e),t()}(e)}),[]),Object(a.useEffect)(()=>M.subscribe(()=>{T=[],t()})),r.a.createElement(r.a.Fragment,null,T.map(e=>r.a.createElement(P,{key:e.id,script:e.script,id:e.id,onClose:()=>{return n=e.id,T=T.filter(e=>e.id!==n),void t();var n}})))}const R=Object(d.a)(()=>Object(p.a)({logs:{overflowY:"scroll",overflowX:"hidden",scrollbarWidth:"auto",flexDirection:"column-reverse",whiteSpace:"pre-wrap",wordWrap:"break-word"},titleButton:{padding:"1px 0",height:"100%"}})),N=1500;function P(e){const t=Object(a.useRef)(null),n=Object(a.useRef)(null),[i,u]=Object(a.useState)(e.script),d=R(),p=Object(a.useRef)(null),g=Object(a.useState)(!1)[1],[L,O]=Object(a.useState)(!1);function M(){g(e=>!e)}function T(){Object(o.a)({runningScript:i,hostname:i.server})}function A(){const e=Object(v.d)(i.server);if(null===e)return;const t=Object(k.a)(i.filename,i.args,e);null===t?Object(E.e)(w.a,i,e):u(t)}function P(){const e=p.current;null!==e&&(e.style.zIndex=N+x+"",x++,M())}function I(e=!1){const t=`${i.filename} ${i.args.map(e=>""+e).join(" ")}`;return e||t.length<=30?t:t.slice(0,27)+"..."}function F(){O(!L)}Object(a.useEffect)(()=>{P();const e=setInterval(M,1e3);return()=>clearInterval(e)},[]),Object(a.useEffect)(()=>(window.addEventListener("resize",D),()=>{window.removeEventListener("resize",D)}),[]);const D=Object(_.debounce)(()=>{const e=null==t?void 0:t.current;e&&(j(e)||B())},100),j=e=>{const t=e.getBoundingClientRect();return!(t.right<0||t.bottom<0||t.left>innerWidth||t.top>outerWidth)},B=()=>{const e=null==n?void 0:n.current;if(!e)return;const t=e.state;t.x=0,t.y=0,e.setState(t)},G=[250,33];return r.a.createElement(m.a,{handle:".drag",onDrag:e=>{if(e instanceof MouseEvent&&(e.clientX<0||e.clientY<0||e.clientX>innerWidth||e.clientY>innerHeight))return!1},ref:n,onMouseDown:P},r.a.createElement(l.a,{display:"flex",sx:{flexFlow:"column",position:"fixed",left:"40%",top:"30%",zIndex:1400,minWidth:G[0]+"px",minHeight:G[1]+"px",...L?{border:"none",margin:0,maxHeight:0,padding:0}:{border:"1px solid "+S.a.theme.welllight}},ref:p},r.a.createElement(h.ResizableBox,{height:500,width:500,minConstraints:G,handle:r.a.createElement("span",{style:{position:"absolute",right:"-10px",bottom:"-16px",cursor:"nw-resize",display:L?"none":"inline-block"}},r.a.createElement(y.a,{color:"primary",style:{transform:"rotate(45deg)",fontSize:"1.75rem"}}))},r.a.createElement(r.a.Fragment,null,r.a.createElement(f.a,{className:"drag",sx:{display:"flex",alignItems:"center",cursor:"grab"},ref:t},r.a.createElement(s.a,{variant:"h6",sx:{marginRight:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},title:I(!0)},I(!0)),r.a.createElement("span",{style:{minWidth:"fit-content",height:G[1]+"px"}},b.a.has(i.pid)?r.a.createElement(c.a,{className:d.titleButton,onClick:T,onTouchEnd:T},"Kill"):r.a.createElement(c.a,{className:d.titleButton,onClick:A,onTouchEnd:A},"Run"),r.a.createElement(c.a,{className:d.titleButton,onClick:F,onTouchEnd:F},L?"🗖":"🗕"),r.a.createElement(c.a,{className:d.titleButton,onClick:e.onClose,onTouchEnd:e.onClose},"Close"))),r.a.createElement(f.a,{className:d.logs,sx:{height:`calc(100% - ${G[1]}px)`,display:L?"none":"flex"}},r.a.createElement("span",{style:{display:"flex",flexDirection:"column"}},i.logs.map((e,t)=>{return r.a.createElement(r.a.Fragment,{key:t},r.a.createElement(C.a,{text:e,color:(n=e,n.match(/(^\[[^\]]+\] )?ERROR/)||n.match(/(^\[[^\]]+\] )?FAIL/)?"error":n.match(/(^\[[^\]]+\] )?SUCCESS/)?"success":n.match(/(^\[[^\]]+\] )?WARN/)?"warn":n.match(/(^\[[^\]]+\] )?INFO/)?"info":"primary")}));var n})))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={Water:.05,Energy:.01,Food:.03,Plants:.05,Metal:.1,Hardware:.06,Chemicals:.05,Drugs:.02,Robots:.5,AICores:.1,RealEstate:.005,"Real Estate":.005,"AI Cores":.1}},function(e,t,n){"use strict";function a(e,t=1){return Math.max(Math.floor(t*(32*Math.log(e+534.5)-200)),1)}function r(e,t=1){return Math.exp((e/t+200)/32)-534.6}function i(e,t=1){const n=a(e,t),i=n+1;let o=r(n,t);o<0&&(o=0);let s=r(i,t);s<0&&(s=0);let l=s-o!=0?100*(e-o)/(s-o):99.99;l<0&&(l=0),l>100&&(l=100);let c=e-o,f=s-e;return c<0&&(c=0),f<0&&(f=0),{currentSkill:n,nextSkill:i,baseExperience:o,experience:e,nextExperience:s,currentExperience:c,remainingExperience:f,progress:l}}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}))},,function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),function(e){e.Weapon="w",e.Armor="a",e.Vehicle="v",e.Rootkit="r",e.Augmentation="g"}(a||(a={}));const r=[{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";n.d(t,"a",(function(){return s}));var a=n(385),r=n(354),i=n(22);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s{constructor(e=""){o(this,"alreadyInvited",!1),o(this,"augmentations",[]),o(this,"favor",0),o(this,"isBanned",!1),o(this,"isMember",!1),o(this,"name",""),o(this,"playerReputation",0),this.name=e}getInfo(){const e=a.a[this.name];if(null==e)throw new Error(`Missing faction from FactionInfos: ${this.name} this probably means the faction got corrupted somehow`);return e}gainFavor(){null==this.favor&&(this.favor=0),this.favor+=this.getFavorGain()}getFavorGain(){null==this.favor&&(this.favor=0);const e=Math.max(0,Object(r.a)(this.favor))+this.playerReputation;return Object(r.b)(e)-this.favor}toJSON(){return Object(i.b)("Faction",this)}static fromJSON(e){return Object(i.a)(s,e.data)}}i.c.constructors.Faction=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(4);const r={GangRespectToReputationRatio:75,MaximumGangMembers:12,CyclesPerTerritoryAndPowerUpdate:100,AscensionMultiplierRatio:.15,Names:[a.a.SlumSnakes,a.a.Tetrads,a.a.TheSyndicate,a.a.TheDarkArmy,a.a.SpeakersForTheDead,a.a.NiteSec,a.a.TheBlackHand],GangKarmaRequirement:-54e3}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e){var t,n,a;a="",(n="errorMessage")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,this.pid=e.pid,this.name=e.name,this.hostname=e.hostname,this.errorMessage=e.errorMessage,Object.freeze(this)}}Object.freeze(a),Object.freeze(a.prototype)},,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"c",(function(){return R})),n.d(t,"e",(function(){return P})),n.d(t,"f",(function(){return F})),n.d(t,"b",(function(){return D})),n.d(t,"d",(function(){return j}));var a=n(144),r=n(190),i=n(432),o=n(202),s=n(302),l=n(538),c=n(12),f=n(606),u=n(106),m=n(539),h=n(656),d=n(1427),p=n(486),g=n(664),y=n(267),b=n(24),E=n(5),v=n(698),k=n(14),w=n(289),_=n(537),S=n(148),C=n(433),x=n(259),L=n(309),O=n(83),M=n(2),T=n(84);const A=[];for(let e=0;e{i=!0;let t=e.source.value;t.startsWith("./")&&(t=t.slice(2));const n=function(e){for(let t=0;t{n.push(e.id.name),a.push(e)}}),r+=`var ${t};\n(function (namespace) {\n`,a.forEach(e=>{r+=Object(v.generate)(e),r+="\n"}),n.forEach(e=>{r+="namespace."+e+" = "+e,r+="\n"}),r+=`})(${t} || (" + namespace + " = {}));\n`}else{const t=[];e.specifiers.forEach(e=>{t.push(e.local.name)});const n=[];Object(L.b)(o,{FunctionDeclaration:e=>{t.includes(e.id.name)&&n.push(e)}}),n.forEach(e=>{r+=Object(v.generate)(e),r+="\n"})}}}),!i)return{code:e,lineOffset:0};let o=0;if("Program"!==n.type||null==n.body)throw new Error("Code could not be properly parsed");for(let e=n.body.length-1;e>=0;--e)"ImportDeclaration"===n.body[e].type&&(n.body.splice(e,1),++o);const s=(r.match(/\n/g)||[]).length-o;e=Object(v.generate)(n);return{code:e=r+e,lineOffset:s}}(t,e);n=a.code,i=a.lineOffset}catch(t){return Object(k.a)("Error processing Imports in "+e.name+":
"+String(t)),e.env.stopFlag=!0,e.running=!1,Object(a.a)(e),Promise.resolve()}const o=function(t,n){const r=Object(m.a)(e);for(const i of Object.keys(r)){const o=r[i];if("function"==typeof o){if(["hack","grow","weaken","sleep","prompt","manualHack","scp","write","share","wget"].includes(i)){const r=function(...n){const r=[];for(let e=0;e`;return s+="
",s+=o,Object(k.a)(s),e.env.stopFlag=!0,e.running=!1,Object(a.a)(e),Promise.resolve()}}))};t.setProperty(n,i,t.createAsyncFunction(r))}else if("sprintf"===i||"vsprintf"===i||"scp"===i||"write"==i||"tryWrite"===i||"run"===i||"exec"===i){const e=function(...e){const n=[];for(let a=0;a"+String(t)),e.env.stopFlag=!0,e.running=!1,Object(a.a)(e),Promise.resolve()}return new Promise((function(t,n){try{!function a(){try{if(e.env.stopFlag)return n(new r.a(e));let i=!0,o=0;for(;o<3&&i;)i=i&&s.step(),o++;i?setTimeout(a,E.a.CodeInstructionRunTime):t()}catch(t){let a=String(t);return Object(u.a)(a)||(a=Object(u.b)(e,a)),e.errorMessage=a,n(new r.a(e))}}()}catch(t){return Object(S.a)(t)?(e.errorMessage=t,n(new r.a(e))):t instanceof r.a?n(t):(console.error(t),n(new r.a(e)))}}))}function P(e,t,n,a){return I(e,t,n,a)?(n.runScript(t),t.pid):0}function I(e,t,n,c){let f=1;t.threads&&!isNaN(t.threads)?f=t.threads:t.threads=1;const d=Object(g.a)(t),p=Object(_.a)(d*f);if(p>n.maxRam-n.ramUsed+.001)return Object(k.a)(`Not enough RAM to run script ${t.filename} with args `+Object(w.a)(t.args)+". This likely occurred because you re-loaded the game and the script's RAM usage increased (either because of an update to the game or your changes to the script.)"),!1;n.updateRamUsed(Object(_.a)(n.ramUsed+p),M.a);const y=Object(l.a)();if(-1===y)throw new Error("Failed to start script because could not find available PID. This is most because you have too many scripts running.");const b=new i.a(t,y,m.a);b.ramUsage=d,o.a.set(y,b),s.a.emit();let E=null;if(b.name.endsWith(".js")||b.name.endsWith(".ns"))E=function(e,t){t.running=!0;let n=null;function a(e,a){return function(...i){if(t.env.stopFlag)throw new r.a(t);if("asleep"===e)return a(...i);if(n)throw t.errorMessage=Object(u.b)(t,Object(C.sprintf)("Concurrent calls to Netscript functions are not allowed! Did you forget to await hack(), grow(), or some other promise-returning function? (Currently running: %s tried to run: %s)",n,e)),new r.a(t);let o;n=e;try{o=a(...i)}catch(e){throw n=null,e}return o&&void 0!==o.finally?o.finally((function(){n=null})):(n=null,o)}}return function e(t,...n){if("object"!=typeof t)throw new Error("wrong argument sent to wrapObject");for(const r of Object.keys(t)){let i=t[r];switch(typeof i){case"function":i=a([...n,r].join("."),i);break;case"object":if(Array.isArray(i))continue;e(i,...n,r)}}}(t.env.vars),new Promise((n,a)=>{Object(h.b)(e,t.getServer().scripts,t).then(()=>{n()}).catch(e=>a(e))}).catch(e=>{if(e instanceof Error)throw e instanceof SyntaxError?t.errorMessage=Object(u.b)(t,e.message+" (sorry we can't be more helpful)"):t.errorMessage=Object(u.b)(t,e.message+(e.stack&&"\nstack:\n"+e.stack.toString()||"")),new r.a(t);if(Object(u.a)(e))throw t.errorMessage=e,new r.a(t);if(e instanceof r.a)throw e;throw t.errorMessage=Object(u.b)(t,""+e),new r.a(t)})}(e,b);else if(E=N(b),!(E instanceof Promise))return!1;return E.then((function(){b.running=!1,b.env.stopFlag=!0,void 0!==c&&c.running&&(c.scriptRef.onlineExpGained+=t.onlineExpGained,c.scriptRef.onlineMoneyMade+=t.onlineMoneyMade),Object(a.a)(b),b.log("",()=>"Script finished running")})).catch((function(e){if(e instanceof Error)return Object(k.a)("Script runtime unknown error. This is a bug please contact game developer"),void console.error("Evaluating workerscript returns an Error. THIS SHOULDN'T HAPPEN: "+e.toString());if(e instanceof r.a){if(!Object(u.a)(b.errorMessage))return void b.log("",()=>"Script killed");{const e=b.errorMessage.split("|DELIMITER|");if(4!=e.length)return console.error("ERROR: Something wrong with Error text in evaluator..."),void console.error("Error text: "+b.errorMessage);const t=e[1],n=e[2],a=e[3];let r=`RUNTIME ERROR
${n}@${t} (PID - ${b.pid})
`;b.args.length>0&&(r+=`Args: ${Object(w.a)(b.args)}
`),r+="
",r+=a,Object(k.a)(r),b.log("",()=>"Script crashed with runtime error")}}else{if(Object(u.a)(e))return Object(k.a)("Script runtime unknown error. This is a bug please contact game developer"),void console.error("ERROR: Evaluating workerscript returns only error message rather than WorkerScript object. THIS SHOULDN'T HAPPEN: "+e.toString());Object(k.a)("An unknown script died for an unknown reason. This is a bug please contact game dev"),console.error(e)}Object(a.a)(b)})),!0}function F(e=1){const t=e*c.a._idleSpeed/1e3;for(const e of o.a.values())e.scriptRef.onlineRunningTime+=t}function D(e){const t=-1!==window.location.href.toLowerCase().indexOf("?noscripts");t&&(T.a.warn("Skipped loading player scripts during startup"),console.info("Skipping the load of any scripts during startup"));for(const n of Object(b.c)()){n.ramUsed=0;for(let e=0;e`Invalid arguments: scriptname='${a} args='${r}'`),console.error("runScriptFromScript() failed due to invalid arguments"),0;r.forEach((e,t)=>{if("string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e)throw new Error(`Only strings, numbers, and booleans can be passed as arguments to other scripts.\n${a} argument index ${t} is of type ${typeof e} and value ${JSON.stringify(e)}`)});if(null!=n.getRunningScript(a,r))return o.log(t,()=>`'${a}' is already running on '${n.hostname}'`),0;for(let e=0;e"Cannot execute a script with null/undefined as an argument"),0;for(let i=0;i`You do not have root access on '${n.hostname}'`),0;if(c>f+.001)return o.log(t,()=>`Cannot run script '${a}' (t=${s}) on '${n.hostname}' because there is not enough available RAM!`),0;o.log(t,()=>`'${a}' on '${n.hostname}' with ${s} threads and args: ${Object(w.a)(r)}.`);const u=new p.a(l,r);return u.threads=s,u.server=n.hostname,P(e,u,n,o)}return o.log(t,()=>`Could not find script '${a}' on '${n.hostname}'`),0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a=new Map},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(76),o=n(151),s=n(150),l=n(48),c=n(1);function f({rows:e,title:t,wide:n}){const a=n?s.a:i.a;return r.a.createElement(r.a.Fragment,null,t&&r.a.createElement(c.a,null,t),r.a.createElement(a,{size:"small",padding:"none"},r.a.createElement(o.a,null,e.map((e,t)=>r.a.createElement(l.a,{key:t},e.map((e,t)=>r.a.createElement(i.b,{key:t,align:0!==t?"right":"left"},r.a.createElement(c.a,{noWrap:!0},e))))))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(22);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(e={}){r(this,"name","InitName"),r(this,"qty",0),r(this,"qlt",0),r(this,"dmd",0),r(this,"dmdR",[0,0]),r(this,"cmp",0),r(this,"cmpR",[0,0]),r(this,"mv",0),r(this,"mku",0),r(this,"buy",0),r(this,"sll",0),r(this,"prd",0),r(this,"imp",0),r(this,"exp",[]),r(this,"totalExp",0),r(this,"bCost",0),r(this,"sCost",0),r(this,"prdman",[!1,0]),r(this,"sllman",[!1,0]),r(this,"marketTa1",!1),r(this,"marketTa2",!1),r(this,"marketTa2Price",0),r(this,"maxsll",0),e.name&&(this.name=e.name),this.init()}getMarkupLimit(){return this.qlt/this.mku}init(){switch(this.name){case"Water":this.dmd=75,this.dmdR=[65,85],this.cmp=50,this.cmpR=[40,60],this.bCost=1500,this.mv=.2,this.mku=6;break;case"Energy":this.dmd=90,this.dmdR=[80,99],this.cmp=80,this.cmpR=[65,95],this.bCost=2e3,this.mv=.2,this.mku=6;break;case"Food":this.dmd=80,this.dmdR=[70,90],this.cmp=60,this.cmpR=[35,85],this.bCost=5e3,this.mv=1,this.mku=3;break;case"Plants":this.dmd=70,this.dmdR=[20,90],this.cmp=50,this.cmpR=[30,70],this.bCost=3e3,this.mv=.6,this.mku=3.75;break;case"Metal":this.dmd=80,this.dmdR=[75,85],this.cmp=70,this.cmpR=[60,80],this.bCost=2650,this.mv=1,this.mku=6;break;case"Hardware":this.dmd=85,this.dmdR=[80,90],this.cmp=80,this.cmpR=[65,95],this.bCost=8e3,this.mv=.5,this.mku=1;break;case"Chemicals":this.dmd=55,this.dmdR=[40,70],this.cmp=60,this.cmpR=[40,80],this.bCost=9e3,this.mv=1.2,this.mku=2;break;case"Real Estate":this.dmd=50,this.dmdR=[5,99],this.cmp=50,this.cmpR=[25,75],this.bCost=8e4,this.mv=1.5,this.mku=1.5;break;case"Drugs":this.dmd=60,this.dmdR=[45,75],this.cmp=70,this.cmpR=[40,99],this.bCost=4e4,this.mv=1.6,this.mku=1;break;case"Robots":this.dmd=90,this.dmdR=[80,99],this.cmp=90,this.cmpR=[80,99],this.bCost=75e3,this.mv=.5,this.mku=1;break;case"AI Cores":this.dmd=90,this.dmdR=[80,99],this.cmp=90,this.cmpR=[80,99],this.bCost=15e3,this.mv=.8,this.mku=.5;break;case"Scientific Research":case"InitName":break;default:console.error("Invalid material type in init(): "+this.name)}}processMarket(){const e=1+Math.random()*this.mv/300,t=1+Math.random()*this.mv/100;Math.random()<.5?(this.cmp*=t,this.cmp>this.cmpR[1]&&(this.cmp=this.cmpR[1]),this.bCost*=1/e):(this.cmp*=1/t,this.cmpthis.dmdR[1]&&(this.dmd=this.dmdR[1]),this.bCost*=e):(this.dmd*=1/n,this.dmd{const t=setInterval(()=>{c(t=>(t<=0&&e.onExpire(),t-200/f*100))},200);return()=>{clearInterval(t)}},[]),e.noPaper?i.a.createElement(l.a,{variant:"determinate",value:n,color:"primary"}):i.a.createElement(a.a,{sx:{p:1,mb:1}},i.a.createElement(l.a,{variant:"determinate",value:n,color:"primary"}))}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var a=n(22),r=n(263),i=n(41),o=n(556),s=n(273),l=n(135),c=n(359),f=n(672),u=n(261),m=n(25),h=n(230),d=n(248),p=n(443),g=n(233),y=n(673),b=n(270),E=n(33),v=n(56),k=n(6),w=n(20),_=n(310),S=n(188),C=n(29),x=n(417),L=n(14),O=n(5),M=n(11),T=n(1035),A=n(105),R=n(4),N=n(26);function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class I{constructor(e){P(this,"numHosp",0),P(this,"moneyLost",0),P(this,"rank",0),P(this,"maxRank",0),P(this,"skillPoints",0),P(this,"totalSkillPoints",0),P(this,"teamSize",0),P(this,"sleeveSize",0),P(this,"teamLost",0),P(this,"hpLost",0),P(this,"storedCycles",0),P(this,"randomEventCounter",Object(E.a)(240,600)),P(this,"actionTimeToComplete",0),P(this,"actionTimeCurrent",0),P(this,"actionTimeOverflow",0),P(this,"action",new r.a({type:i.a.Idle})),P(this,"cities",{}),P(this,"city",v.a.CityNames[2]),P(this,"skills",{}),P(this,"skillMultipliers",{}),P(this,"staminaBonus",0),P(this,"maxStamina",0),P(this,"stamina",0),P(this,"contracts",{}),P(this,"operations",{}),P(this,"blackops",{}),P(this,"logging",{general:!0,contracts:!0,ops:!0,blackops:!0,events:!0}),P(this,"automateEnabled",!1),P(this,"automateActionHigh",new r.a({type:i.a.Idle})),P(this,"automateThreshHigh",0),P(this,"automateActionLow",new r.a({type:i.a.Idle})),P(this,"automateThreshLow",0),P(this,"consoleHistory",[]),P(this,"consoleLogs",["Bladeburner Console","Type 'help' to see console commands"]);for(let e=0;ethis.rank)return{error:"Tried to start a Black Operation without the rank requirement"};const n=[];for(const e of Object.keys(s.a))s.a.hasOwnProperty(e)&&n.push(e);n.sort((function(e,t){return s.a[e].reqdRank-s.a[t].reqdRank}));const a=n.indexOf(e.name);return-1===a?{error:`Invalid Black Op: '${name}'`}:a>0&&null==this.blackops[n[a-1]]?{error:`Preceding Black Op must be completed before starting '${e.name}'.`}:{isAvailable:!0,action:t}}startAction(e,t){if(null!=t)switch(this.action=t,this.actionTimeCurrent=0,t.type){case i.a.Idle:this.actionTimeToComplete=0;break;case i.a.Contract:try{const n=this.getActionObject(t);if(null==n)throw new Error("Failed to get Contract Object for: "+t.name);if(n.count<1)return this.resetAction();this.actionTimeToComplete=n.getActionTime(this,e)}catch(e){Object(b.a)(e)}break;case i.a.Operation:try{const n=this.getActionObject(t);if(null==n)throw new Error("Failed to get Operation Object for: "+t.name);if(n.count<1)return this.resetAction();if("Raid"===t.name&&0===this.getCurrentCity().comms)return this.resetAction();this.actionTimeToComplete=n.getActionTime(this,e)}catch(e){Object(b.a)(e)}break;case i.a.BlackOp:case i.a.BlackOperation:try{const n=this.canAttemptBlackOp(t);if(!n.isAvailable){this.resetAction(),this.log("Error: "+n.error);break}if(void 0===n.action)throw new Error("action should not be null");this.actionTimeToComplete=n.action.getActionTime(this,e)}catch(e){Object(b.a)(e)}break;case i.a.Recruitment:this.actionTimeToComplete=this.getRecruitmentTime(e);break;case i.a.Training:case i.a.FieldAnalysis:case i.a["Field Analysis"]:this.actionTimeToComplete=30;break;case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:this.actionTimeToComplete=60;break;default:throw new Error("Invalid Action Type in startAction(Bladeburner,player, ): "+t.type)}}upgradeSkill(e,t=1){const n=e.name;if(this.skills[n]?this.skills[n]+=t:this.skills[n]=t,isNaN(this.skills[n])||this.skills[n]<0)throw new Error("Level of Skill "+n+" is invalid: "+this.skills[n]);this.updateSkillMultipliers()}executeConsoleCommands(e,t){try{this.consoleHistory[this.consoleHistory.length-1]!=t&&(this.consoleHistory.push(t),this.consoleHistory.length>50&&this.consoleHistory.splice(0,1));const n=t.split(";");for(let t=0;t100&&this.consoleLogs.shift())}log(e){this.postToConsole(`[${Object(T.a)()}] ${e}`)}resetAction(){this.action=new r.a({type:i.a.Idle}),this.actionTimeCurrent=0,this.actionTimeToComplete=0}clearConsole(){this.consoleLogs.length=0}prestige(){this.resetAction();const e=C.a[R.a.Bladeburners];this.rank>=v.a.RankNeededForFaction&&Object(A.d)(e)}storeCycles(e=0){this.storedCycles+=e}getActionIdFromTypeAndName(e="",t=""){if(""===e||""===t)return null;const n=new r.a,a=e.toLowerCase().trim(),o=t.toLowerCase().trim();switch(a){case"contract":case"contracts":case"contr":return n.type=i.a.Contract,this.contracts.hasOwnProperty(t)?(n.name=t,n):null;case"operation":case"operations":case"op":case"ops":return n.type=i.a.Operation,this.operations.hasOwnProperty(t)?(n.name=t,n):null;case"blackoperation":case"black operation":case"black operations":case"black op":case"black ops":case"blackop":case"blackops":return n.type=i.a.BlackOp,s.a.hasOwnProperty(t)?(n.name=t,n):null;case"general":case"general action":case"gen":break;default:return null}if(a.startsWith("gen")){switch(o){case"training":n.type=i.a.Training,n.name="Training";break;case"recruitment":case"recruit":n.type=i.a.Recruitment,n.name="Recruitment";break;case"field analysis":case"fieldanalysis":n.type=i.a["Field Analysis"],n.name="Field Analysis";break;case"diplomacy":n.type=i.a.Diplomacy,n.name="Diplomacy";break;case"hyperbolic regeneration chamber":n.type=i.a["Hyperbolic Regeneration Chamber"],n.name="Hyperbolic Regeneration Chamber";break;case"incite violence":n.type=i.a["Incite Violence"],n.name="Incite Violence";break;default:return null}return n}return null}executeStartConsoleCommand(e,t){if(3!==t.length)return this.postToConsole("Invalid usage of 'start' console command: start [type] [name]"),void this.postToConsole("Use 'help start' for more info");const n=t[2];switch(t[1].toLowerCase()){case"general":case"gen":null!=u.a[n]?(this.action.type=i.a[n],this.action.name=n,this.startAction(e,this.action)):this.postToConsole("Invalid action name specified: "+t[2]);break;case"contract":case"contracts":null!=this.contracts[n]?(this.action.type=i.a.Contract,this.action.name=n,this.startAction(e,this.action)):this.postToConsole("Invalid contract name specified: "+t[2]);break;case"ops":case"op":case"operations":case"operation":null!=this.operations[n]?(this.action.type=i.a.Operation,this.action.name=n,this.startAction(e,this.action)):this.postToConsole("Invalid Operation name specified: "+t[2]);break;case"blackops":case"blackop":case"black operations":case"black operation":null!=s.a[n]?(this.action.type=i.a.BlackOperation,this.action.name=n,this.startAction(e,this.action)):this.postToConsole("Invalid BlackOp name specified: "+t[2]);break;default:this.postToConsole("Invalid action/event type specified: "+t[1]),this.postToConsole("Examples of valid action/event identifiers are: [general, contract, op, blackop]")}}executeSkillConsoleCommand(e){switch(e.length){case 1:this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info");break;case 2:if("list"===e[1].toLowerCase()){this.postToConsole("Skills: ");const e=Object.keys(h.a);for(let t=0;t=n.maxLvl?this.postToConsole(`This skill ${n.name} is already at max level (${e}/${n.maxLvl}).`):this.skillPoints>=a?(this.skillPoints-=a,this.upgradeSkill(n),this.log(n.name+" upgraded to Level "+this.skills[t])):this.postToConsole("You do not have enough Skill Points to upgrade this. You need "+Object(m.f)(a,0))}else this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info");break}default:this.postToConsole("Invalid usage of 'skill' console command: skill [action] [name]"),this.postToConsole("Use 'help skill' for more info")}}executeLogConsoleCommand(e){if(e.length<3)return this.postToConsole("Invalid usage of log command: log [enable/disable] [action/event]"),void this.postToConsole("Use 'help log' for more details and examples");let t=!0;switch(e[1].toLowerCase().includes("d")&&(t=!1),e[2].toLowerCase()){case"general":case"gen":this.logging.general=t,this.log("Logging "+(t?"enabled":"disabled")+" for general actions");break;case"contract":case"contracts":this.logging.contracts=t,this.log("Logging "+(t?"enabled":"disabled")+" for Contracts");break;case"ops":case"op":case"operations":case"operation":this.logging.ops=t,this.log("Logging "+(t?"enabled":"disabled")+" for Operations");break;case"blackops":case"blackop":case"black operations":case"black operation":this.logging.blackops=t,this.log("Logging "+(t?"enabled":"disabled")+" for BlackOps");break;case"event":case"events":this.logging.events=t,this.log("Logging "+(t?"enabled":"disabled")+" for events");break;case"all":this.logging.general=t,this.logging.contracts=t,this.logging.ops=t,this.logging.blackops=t,this.logging.events=t,this.log("Logging "+(t?"enabled":"disabled")+" for everything");break;default:this.postToConsole("Invalid action/event type specified: "+e[2]),this.postToConsole("Examples of valid action/event identifiers are: [general, contracts, ops, blackops, events]")}}executeHelpConsoleCommand(e){if(1===e.length)for(const e of y.a.helpList)this.postToConsole(e);else for(let t=1;t0&&(i*=Object(E.a)(2,4),--a.comms,++n.comms);const o=Math.round(a.pop*i);a.pop-=o,n.pop+=o}triggerPotentialMigration(e,t){(null==t||isNaN(t))&&console.error("Invalid 'chance' parameter passed into Bladeburner.triggerPotentialMigration()"),t>1&&(t/=100),Math.random()=1){let r;r=e?Math.ceil(a/2):Math.floor(a);const i=Object(E.a)(0,r);if(this.teamSize-=i,this.teamSize"Support main sleeve"==e.bbAction);for(let t=0;t>this.teamSize-this.sleeveSize;t--){const t=Math.floor(Math.random()*e.length);e[t].takeDamage(e[t].max_hp),e.splice(t,1)}this.teamSize+=this.sleeveSize}this.teamLost+=i,this.logging.ops&&i>0&&this.log("Lost "+Object(m.f)(i,0)+" team members during this "+n.name)}const r=this.getCurrentCity();switch(n.name){case"Investigation":e?r.improvePopulationEstimateByPercentage(.4*this.skillMultipliers.successChanceEstimate):this.triggerPotentialMigration(this.city,.1);break;case"Undercover Operation":e?r.improvePopulationEstimateByPercentage(.8*this.skillMultipliers.successChanceEstimate):this.triggerPotentialMigration(this.city,.15);break;case"Sting Operation":e&&r.changePopulationByPercentage(-.1,{changeEstEqually:!0,nonZero:!0}),r.changeChaosByCount(.1);break;case"Raid":if(e)r.changePopulationByPercentage(-1,{changeEstEqually:!0,nonZero:!0}),--r.comms;else{const e=Object(E.a)(-10,-5)/10;r.changePopulationByPercentage(e,{nonZero:!0,changeEstEqually:!1})}r.changeChaosByPercentage(Object(E.a)(1,5));break;case"Stealth Retirement Operation":e&&r.changePopulationByPercentage(-.5,{changeEstEqually:!0,nonZero:!0}),r.changeChaosByPercentage(Object(E.a)(-3,-1));break;case"Assassination":e&&r.changePopulationByCount(-1,{estChange:-1,estOffset:0}),r.changeChaosByPercentage(Object(E.a)(-5,5));break;default:throw new Error("Invalid Action name in completeOperation: "+this.action.name)}}getActionObject(e){switch(e.type){case i.a.Contract:return this.contracts[e.name];case i.a.Operation:return this.operations[e.name];case i.a.BlackOp:case i.a.BlackOperation:return s.a[e.name];case i.a.Training:return u.a.Training;case i.a["Field Analysis"]:return u.a["Field Analysis"];case i.a.Recruitment:return u.a.Recruitment;case i.a.Diplomacy:return u.a.Diplomacy;case i.a["Hyperbolic Regeneration Chamber"]:return u.a["Hyperbolic Regeneration Chamber"];case i.a["Incite Violence"]:return u.a["Incite Violence"];default:return null}}completeContract(e,t){if(t.type!==i.a.Contract)throw new Error("completeContract() called even though current action is not a Contract");const n=this.getCurrentCity();if(e)switch(t.name){case"Tracking":n.improvePopulationEstimateByCount(Object(E.a)(100,1e3));break;case"Bounty Hunter":n.changePopulationByCount(-1,{estChange:-1,estOffset:0}),n.changeChaosByCount(.02);break;case"Retirement":n.changePopulationByCount(-1,{estChange:-1,estOffset:0}),n.changeChaosByCount(.04);break;default:throw new Error("Invalid Action name in completeContract: "+t.name)}}completeAction(e,t,n,a=!0){let r=Object(g.a)();switch(n.type){case i.a.Contract:case i.a.Operation:try{const o=n.type===i.a.Operation,s=this.getActionObject(n);if(null==s)throw new Error("Failed to get Contract/Operation Object for: "+n.name);const l=s.getDifficulty(),c=Math.pow(l,v.a.DiffMultExponentialFactor)+l/v.a.DiffMultLinearFactor,f=Math.pow(s.rewardFac,s.level-1);if(a&&(this.stamina-=v.a.BaseStaminaLoss*c,this.stamina<0&&(this.stamina=0)),s.attempt(this,t)){r=this.getActionStats(s,!0),++s.successes,--s.count;let a=0;if(o||(a=v.a.ContractBaseMoneyGain*f*this.skillMultipliers.money,r.money=a),o?s.setMaxLevel(v.a.OperationSuccessesPerLevel):s.setMaxLevel(v.a.ContractSuccessesPerLevel),s.rankGain){const e=Object(_.a)(s.rankGain*f*w.a.BladeburnerRank,10);this.changeRank(t,e),o&&this.logging.ops?this.log(t.whoAmI()+": "+s.name+" successfully completed! Gained "+Object(m.f)(e,3)+" rank"):!o&&this.logging.contracts&&this.log(t.whoAmI()+": "+s.name+" contract successfully completed! Gained "+Object(m.f)(e,3)+" rank and "+k.a.formatMoney(a))}o?this.completeOperation(!0,e):this.completeContract(!0,n)}else{r=this.getActionStats(s,!1),++s.failures;let a=0,i=0;if(s.rankLoss&&(a=Object(_.a)(s.rankLoss*f,10),this.changeRank(t,-1*a)),s.hpLoss){i=s.hpLoss*c,i=Math.ceil(Object(_.a)(i,10)),this.hpLost+=i;const n=Object(x.a)(e,i);t.takeDamage(i)&&(++this.numHosp,this.moneyLost+=n)}let l="";a>0&&(l+="Lost "+Object(m.f)(a,3)+" rank. "),i>0&&(l+="Took "+Object(m.f)(i,0)+" damage."),o&&this.logging.ops?this.log(t.whoAmI()+": "+s.name+" failed! "+l):!o&&this.logging.contracts&&this.log(t.whoAmI()+": "+s.name+" contract failed! "+l),o?this.completeOperation(!1,e):this.completeContract(!1,n)}s.autoLevel&&(s.level=s.maxLevel)}catch(e){Object(b.a)(e)}break;case i.a.BlackOp:case i.a.BlackOperation:try{const a=this.getActionObject(n);if(null==a||!(a instanceof l.a))throw new Error("Failed to get BlackOperation Object for: "+n.name);const i=a.getDifficulty(),o=Math.pow(i,v.a.DiffMultExponentialFactor)+i/v.a.DiffMultLinearFactor;this.stamina-=v.a.BaseStaminaLoss*o,this.stamina<0&&(this.stamina=0);const s=a.teamCount;let c;if(a.attempt(this,t)){r=this.getActionStats(a,!0),a.count=0,this.blackops[a.name]=!0;let e=0;a.rankGain&&(e=Object(_.a)(a.rankGain*w.a.BladeburnerRank,10),this.changeRank(t,e)),c=Math.ceil(s/2),this.logging.blackops&&this.log(t.whoAmI()+": "+a.name+" successful! Gained "+Object(m.f)(e,1)+" rank")}else{r=this.getActionStats(a,!1);let n=0,i=0;if(a.rankLoss&&(n=Object(_.a)(a.rankLoss,10),this.changeRank(t,-1*n)),a.hpLoss){i=a.hpLoss*o,i=Math.ceil(Object(_.a)(i,10));const n=Object(x.a)(e,i);t.takeDamage(i)&&(++this.numHosp,this.moneyLost+=n)}c=Math.floor(s),this.logging.blackops&&this.log(t.whoAmI()+": "+a.name+" failed! Lost "+Object(m.f)(n,1)+" rank and took "+Object(m.f)(i,0)+" damage")}if(this.resetAction(),s>=1){const n=Object(E.a)(1,c);if(this.teamSize-=n,this.teamSize"Support main sleeve"==e.bbAction);for(let e=0;e>this.teamSize-this.sleeveSize;e--){const e=Math.floor(Math.random()*t.length);t[e].takeDamage(t[e].max_hp),t.splice(e,1)}this.teamSize+=this.sleeveSize}this.teamLost+=n,this.logging.blackops&&this.log(`${t.whoAmI()}: You lost ${Object(m.f)(n,0)} team members during ${a.name}`)}}catch(e){Object(b.a)(e)}break;case i.a.Training:{this.stamina-=.5*v.a.BaseStaminaLoss;const e=30*t.mults.strength_exp,n=30*t.mults.defense_exp,a=30*t.mults.dexterity_exp,i=30*t.mults.agility_exp,o=.04*this.skillMultipliers.stamina;r.str=e,r.def=n,r.dex=a,r.agi=i,this.staminaBonus+=o,this.logging.general&&this.log(t.whoAmI()+": Training completed. Gained: "+Object(m.f)(e,1)+" str exp, "+Object(m.f)(n,1)+" def exp, "+Object(m.f)(a,1)+" dex exp, "+Object(m.f)(i,1)+" agi exp, "+Object(m.f)(o,3)+" max stamina");break}case i.a.FieldAnalysis:case i.a["Field Analysis"]:{let e=.04*Math.pow(t.hacking,.3)+.04*Math.pow(t.intelligence,.9)+.02*Math.pow(t.charisma,.3);if(e*=t.mults.bladeburner_analysis,isNaN(e)||e<0)throw new Error("Field Analysis Effectiveness calculated to be NaN or negative");const n=20*t.mults.hacking_exp,a=20*t.mults.charisma_exp,i=.1*w.a.BladeburnerRank;r.hack=n,r.cha=a,r.int=v.a.BaseIntGain,this.changeRank(t,i),this.getCurrentCity().improvePopulationEstimateByPercentage(e*this.skillMultipliers.successChanceEstimate),this.logging.general&&this.log(t.whoAmI()+": "+`Field analysis completed. Gained ${Object(m.f)(i,2)} rank, `+Object(m.f)(n,1)+" hacking exp, and "+Object(m.f)(a,1)+" charisma exp");break}case i.a.Recruitment:{const e=this.getRecruitmentSuccessChance(t),n=1e3*this.getRecruitmentTime(t);if(Math.random()"Infiltrate synthoids"===e.bbAction).length,n=Math.pow(t,-.5)/2;for(const e of Object.keys(this.contracts))this.contracts[e].count+=n;for(const e of Object.keys(this.operations))this.operations[e].count+=n;this.logging.general&&this.log("Sleeve: Infiltrate the synthoid communities.")}changeRank(e,t){if(isNaN(t))throw new Error("NaN passed into Bladeburner.changeRank()");this.rank+=t,this.rank<0&&(this.rank=0),this.maxRank=Math.max(this.rank,this.maxRank);const n=R.a.Bladeburners;if(Object(C.b)(n)){const a=C.a[n];if(!(a instanceof S.a))throw new Error(`Could not properly get ${R.a.Bladeburners} Faction object in ${R.a.Bladeburners} UI Overview Faction button`);if(a.isMember){const n=1+a.favor/100;a.playerReputation+=v.a.RankToFactionRepFactor*t*e.mults.faction_rep*n}}const a=(this.totalSkillPoints+1)*v.a.RanksPerSkillPoint;if(this.maxRank>=a){const e=Math.floor((this.maxRank-a)/v.a.RanksPerSkillPoint+1);this.skillPoints+=e,this.totalSkillPoints+=e}}processAction(e,t,n){if(this.action.type!==i.a.Idle){if(this.actionTimeToComplete<=0)throw new Error(`Invalid actionTimeToComplete value: ${this.actionTimeToComplete}, type; ${this.action.type}`);if(!(this.action instanceof r.a))throw new Error("Bladeburner.action is not an ActionIdentifier Object");if(this.actionTimeCurrent+=n+this.actionTimeOverflow,this.actionTimeOverflow=0,this.actionTimeCurrent>=this.actionTimeToComplete){this.actionTimeOverflow=this.actionTimeCurrent-this.actionTimeToComplete;const e=this.getActionObject(this.action),n=this.completeAction(t,t,this.action);if(t.gainMoney(n.money,"bladeburner"),t.gainStats(n),null==e)throw new Error("Failed to get BlackOperation Object for: "+this.action.name);this.action.type!=i.a.BlackOperation&&this.action.type!=i.a.BlackOp&&this.startAction(t,this.action)}}}calculateStaminaGainPerSecond(e){const t=e.agility*this.skillMultipliers.effAgi,n=this.maxStamina/v.a.MaxStaminaToGainFactor;return(v.a.StaminaGainPerSecond+n)*Math.pow(t,.17)*(this.skillMultipliers.stamina*e.mults.bladeburner_stamina_gain)}calculateMaxStamina(e){const t=e.agility*this.skillMultipliers.effAgi,n=(Math.pow(t,.8)+this.staminaBonus)*this.skillMultipliers.stamina*e.mults.bladeburner_max_stamina;if(this.maxStamina!==n){const e=this.maxStamina;this.maxStamina=n,this.stamina=this.maxStamina*this.stamina/e}if(isNaN(n))throw new Error("Max Stamina calculated to be NaN in Bladeburner.calculateMaxStamina()")}create(){this.contracts.Tracking=new f.a({name:"Tracking",baseDifficulty:125,difficultyFac:1.02,rewardFac:1.041,rankGain:.3,hpLoss:.5,count:Object(E.a)(25,150),weights:{hack:0,str:.05,def:.05,dex:.35,agi:.35,cha:.1,int:.05},decays:{hack:0,str:.91,def:.91,dex:.91,agi:.91,cha:.9,int:1},isStealth:!0}),this.contracts["Bounty Hunter"]=new f.a({name:"Bounty Hunter",baseDifficulty:250,difficultyFac:1.04,rewardFac:1.085,rankGain:.9,hpLoss:1,count:Object(E.a)(5,150),weights:{hack:0,str:.15,def:.15,dex:.25,agi:.25,cha:.1,int:.1},decays:{hack:0,str:.91,def:.91,dex:.91,agi:.91,cha:.8,int:.9},isKill:!0}),this.contracts.Retirement=new f.a({name:"Retirement",baseDifficulty:200,difficultyFac:1.03,rewardFac:1.065,rankGain:.6,hpLoss:1,count:Object(E.a)(5,150),weights:{hack:0,str:.2,def:.2,dex:.2,agi:.2,cha:.1,int:.1},decays:{hack:0,str:.91,def:.91,dex:.91,agi:.91,cha:.8,int:.9},isKill:!0}),this.operations.Investigation=new c.a({name:"Investigation",baseDifficulty:400,difficultyFac:1.03,rewardFac:1.07,reqdRank:25,rankGain:2.2,rankLoss:.2,count:Object(E.a)(1,100),weights:{hack:.25,str:.05,def:.05,dex:.2,agi:.1,cha:.25,int:.1},decays:{hack:.85,str:.9,def:.9,dex:.9,agi:.9,cha:.7,int:.9},isStealth:!0}),this.operations["Undercover Operation"]=new c.a({name:"Undercover Operation",baseDifficulty:500,difficultyFac:1.04,rewardFac:1.09,reqdRank:100,rankGain:4.4,rankLoss:.4,hpLoss:2,count:Object(E.a)(1,100),weights:{hack:.2,str:.05,def:.05,dex:.2,agi:.2,cha:.2,int:.1},decays:{hack:.8,str:.9,def:.9,dex:.9,agi:.9,cha:.7,int:.9},isStealth:!0}),this.operations["Sting Operation"]=new c.a({name:"Sting Operation",baseDifficulty:650,difficultyFac:1.04,rewardFac:1.095,reqdRank:500,rankGain:5.5,rankLoss:.5,hpLoss:2.5,count:Object(E.a)(1,150),weights:{hack:.25,str:.05,def:.05,dex:.25,agi:.1,cha:.2,int:.1},decays:{hack:.8,str:.85,def:.85,dex:.85,agi:.85,cha:.7,int:.9},isStealth:!0}),this.operations.Raid=new c.a({name:"Raid",baseDifficulty:800,difficultyFac:1.045,rewardFac:1.1,reqdRank:3e3,rankGain:55,rankLoss:2.5,hpLoss:50,count:Object(E.a)(1,150),weights:{hack:.1,str:.2,def:.2,dex:.2,agi:.2,cha:0,int:.1},decays:{hack:.7,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.9},isKill:!0}),this.operations["Stealth Retirement Operation"]=new c.a({name:"Stealth Retirement Operation",baseDifficulty:1e3,difficultyFac:1.05,rewardFac:1.11,reqdRank:2e4,rankGain:22,rankLoss:2,hpLoss:10,count:Object(E.a)(1,150),weights:{hack:.1,str:.1,def:.1,dex:.3,agi:.3,cha:0,int:.1},decays:{hack:.7,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.9},isStealth:!0,isKill:!0}),this.operations.Assassination=new c.a({name:"Assassination",baseDifficulty:1500,difficultyFac:1.06,rewardFac:1.14,reqdRank:5e4,rankGain:44,rankLoss:4,hpLoss:5,count:Object(E.a)(1,150),weights:{hack:.1,str:.1,def:.1,dex:.3,agi:.3,cha:0,int:.1},decays:{hack:.6,str:.8,def:.8,dex:.8,agi:.8,cha:0,int:.8},isStealth:!0,isKill:!0})}process(e,t){if(e.isInitialized){if(!t.hasAugmentation(M.a.BladesSimulacrum,!0)&&t.currentWork){if(this.action.type!==i.a.Idle){let e="Your Bladeburner action was cancelled because you started doing something else.";this.automateEnabled&&(e+="

Your automation was disabled as well. You will have to re-enable it through the Bladeburner console",this.automateEnabled=!1),O.a.SuppressBladeburnerPopup||Object(L.a)(e)}this.resetAction()}if(this.stamina<=0&&(this.log("Your Bladeburner action was cancelled because your stamina hit 0"),this.resetAction()),this.storedCycles>=v.a.CyclesPerSecond){let n=Math.floor(this.storedCycles/v.a.CyclesPerSecond);n=Math.min(n,5),this.storedCycles-=n*v.a.CyclesPerSecond,this.calculateMaxStamina(t),this.stamina+=this.calculateStaminaGainPerSecond(t)*n,this.stamina=Math.min(this.maxStamina,this.stamina);for(const e of Object.values(this.contracts)){const t=o.a[e.name];if(void 0===t)throw new Error(`growth formula for action '${e.name}' is undefined`);e.count+=n*t()/v.a.ActionCountGrowthPeriod}for(const e of Object.values(this.operations)){const t=o.a[e.name];if(void 0===t)throw new Error(`growth formula for action '${e.name}' is undefined`);void 0!==t&&(e.count+=n*t()/v.a.ActionCountGrowthPeriod)}for(const e of v.a.CityNames){const t=this.cities[e];if(!(t instanceof p.a))throw new Error("Invalid City object when processing passive chaos reduction in Bladeburner.process");t.chaos-=1e-4*n,t.chaos=Math.max(0,t.chaos)}this.randomEventCounter-=n,this.randomEventCounter<=0&&(this.randomEvent(),this.randomEventCounter+=Object(E.a)(240,600)),this.processAction(e,t,n),this.automateEnabled&&(this.stamina<=this.automateThreshLow?this.action.name===this.automateActionLow.name&&this.action.type===this.automateActionLow.type||(this.action=new r.a({type:this.automateActionLow.type,name:this.automateActionLow.name}),this.startAction(t,this.action)):this.stamina>=this.automateThreshHigh&&(this.action.name===this.automateActionHigh.name&&this.action.type===this.automateActionHigh.type||(this.action=new r.a({type:this.automateActionHigh.type,name:this.automateActionHigh.name}),this.startAction(t,this.action))))}}}getTypeAndNameFromActionId(e){const t={type:"",name:""},n=Object.keys(i.a);for(let a=0;ar),!1;if(o.type===i.a.BlackOp){const e=this.canAttemptBlackOp(o);if(!e.isAvailable)return a.log("bladeburner.startAction",()=>e.error+""),!1}try{return this.startAction(e,o),a.log("bladeburner.startAction",()=>`Starting bladeburner action with type '${t}' and name '${n}'`),!0}catch(e){return console.error(e),this.resetAction(),a.log("bladeburner.startAction",()=>r),!1}}getActionTimeNetscriptFn(e,t,n){const a=this.getActionIdFromTypeAndName(t,n);if(null==a)return"bladeburner.getActionTime";const r=this.getActionObject(a);if(null==r)return"bladeburner.getActionTime";switch(a.type){case i.a.Contract:case i.a.Operation:case i.a.BlackOp:case i.a.BlackOperation:return 1e3*r.getActionTime(this,e);case i.a.Training:case i.a["Field Analysis"]:case i.a.FieldAnalysis:return 3e4;case i.a.Recruitment:return 1e3*this.getRecruitmentTime(e);case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return 6e4;default:return"bladeburner.getActionTime"}}getActionEstimatedSuccessChanceNetscriptFn(e,t,n){const a=this.getActionIdFromTypeAndName(t,n);if(null==a)return"bladeburner.getActionEstimatedSuccessChance";const r=this.getActionObject(a);if(null==r)return"bladeburner.getActionEstimatedSuccessChance";switch(a.type){case i.a.Contract:case i.a.Operation:case i.a.BlackOp:case i.a.BlackOperation:return r.getEstSuccessChance(this,e);case i.a.Training:case i.a["Field Analysis"]:case i.a.FieldAnalysis:case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return[1,1];case i.a.Recruitment:{const t=this.getRecruitmentSuccessChance(e);return[t,t]}default:return"bladeburner.getActionEstimatedSuccessChance"}}getActionCountRemainingNetscriptFn(e,t,n){const a=`Invalid action: type='${e}' name='${t}'`,r=this.getActionIdFromTypeAndName(e,t);if(null==r)return n.log("bladeburner.getActionCountRemaining",()=>a),-1;const o=this.getActionObject(r);if(null==o)return n.log("bladeburner.getActionCountRemaining",()=>a),-1;switch(r.type){case i.a.Contract:case i.a.Operation:return Math.floor(o.count);case i.a.BlackOp:case i.a.BlackOperation:return null!=this.blackops[t]?0:1;case i.a.Training:case i.a.Recruitment:case i.a["Field Analysis"]:case i.a.FieldAnalysis:case i.a.Diplomacy:case i.a["Hyperbolic Regeneration Chamber"]:case i.a["Incite Violence"]:return 1/0;default:return n.log("bladeburner.getActionCountRemaining",()=>a),-1}}getSkillLevelNetscriptFn(e,t){return""!==e&&h.a.hasOwnProperty(e)?null==this.skills[e]?0:this.skills[e]:(t.log("bladeburner.getSkillLevel",()=>`Invalid skill: '${e}'`),-1)}getSkillUpgradeCostNetscriptFn(e,t,n){if(""===e||!h.a.hasOwnProperty(e))return n.log("bladeburner.getSkillUpgradeCost",()=>`Invalid skill: '${e}'`),-1;const a=h.a[e];return null==this.skills[e]?a.calculateCost(0,t):a.calculateCost(this.skills[e],t)}upgradeSkillNetscriptFn(e,t,n){const a=`Invalid skill: '${e}'`;if(!h.a.hasOwnProperty(e))return n.log("bladeburner.upgradeSkill",()=>a),!1;const r=h.a[e];let i=0;this.skills[e]&&!isNaN(this.skills[e])&&(i=this.skills[e]);const o=r.calculateCost(i,t);return r.maxLvl&&i+t>r.maxLvl?(n.log("bladeburner.upgradeSkill",()=>`Skill '${e}' cannot be upgraded ${t} time(s).`),!1):this.skillPoints`You do not have enough skill points to upgrade ${e} ${t} time(s). (You have ${this.skillPoints}, you need ${o})`),!1):(this.skillPoints-=o,this.upgradeSkill(r,t),n.log("bladeburner.upgradeSkill",()=>`'${e}' upgraded to level ${this.skills[e]}`),!0)}getTeamSizeNetscriptFn(e,t,n){if(""===e&&""===t)return this.teamSize;const a=`Invalid action: type='${e}' name='${t}'`,r=this.getActionIdFromTypeAndName(e,t);if(null==r)return n.log("bladeburner.getTeamSize",()=>a),-1;const o=this.getActionObject(r);return null==o?(n.log("bladeburner.getTeamSize",()=>a),-1):r.type===i.a.Operation||r.type===i.a.BlackOp||r.type===i.a.BlackOperation?o.teamCount:0}setTeamSizeNetscriptFn(e,t,n,a){const r=`Invalid action: type='${e}' name='${t}'`,o=this.getActionIdFromTypeAndName(e,t);if(null==o)return a.log("bladeburner.setTeamSize",()=>r),-1;if(o.type!==i.a.Operation&&o.type!==i.a.BlackOp&&o.type!==i.a.BlackOperation)return a.log("bladeburner.setTeamSize",()=>"Only valid for 'Operations' and 'BlackOps'"),-1;const s=this.getActionObject(o);if(null==s)return a.log("bladeburner.setTeamSize",()=>r),-1;let l=Math.round(n);return isNaN(l)||l<0?(a.log("bladeburner.setTeamSize",()=>"Invalid size: "+n),-1):(this.teamSize`Team size for '${t}' set to ${l}.`),l)}joinBladeburnerFactionNetscriptFn(e){const t=C.a[R.a.Bladeburners];return!!t.isMember||(this.rank>=v.a.RankNeededForFaction?(Object(A.d)(t),e.log("bladeburner.joinBladeburnerFaction",()=>`Joined ${R.a.Bladeburners} faction.`),!0):(e.log("bladeburner.joinBladeburnerFaction",()=>`You do not have the required rank (${this.rank}/${v.a.RankNeededForFaction}).`),!1))}toJSON(){return Object(a.b)("Bladeburner",this)}static fromJSON(e){return Object(a.a)(I,e.data)}}a.c.constructors.Bladeburner=I},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c}));var a=n(20),r=n(40);function i(e,t,n,i){return e*r.a.MoneyGainPerLevel*Math.pow(1.035,t-1)*((n+5)/6)*i*a.a.HacknetNodeMoney}function o(e,t=1,n=1){const a=Math.round(t);if(isNaN(a)||a<1)return 0;if(e>=r.a.MaxLevel)return 1/0;const i=r.a.UpgradeLevelMult;let o=0,s=e;for(let e=0;e=r.a.MaxRam)return 1/0;let i=0,o=Math.round(Math.log2(e)),s=e;for(let e=0;e=r.a.MaxCores)return 1/0;const i=r.a.CoreBaseCost,o=r.a.UpgradeCoreMult;let s=0,l=e;for(let e=0;e1e10;return t&&Object(r.a)(a.createElement(a.Fragment,null,"Alright cheater get out of here. You're not allowed here anymore.")),t}class s extends a.Component{win(e,t){e.gainMoney(t,"casino")}reachedLimit(e){const t=e.getCasinoWinnings()>1e10;return t&&Object(r.a)(a.createElement(a.Fragment,null,"Alright cheater get out of here. You're not allowed here anymore.")),t}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const a=!1,r=!0,i={O:[[r,r],[r,r]],I:[[r,r,r,r]],L:[[a,a,r],[r,r,r]],J:[[r,a,a],[r,r,r]],S:[[a,r,r],[r,r,a]],Z:[[r,r,a],[a,r,r]],T:[[r,r,r],[a,r,a]]}},,,,,function(e,t,n){"use strict";function a(e,t,n){function a(e,t,a){function r(e,t,n){return(1-n)*e+n*t}for(const i of Object.keys(e))n[i]=r(e[i],t[i],a);return e}return t<0?a(e.Trivial,e.Trivial,0):t>=0&&t<1?a(e.Trivial,e.Normal,t):t>=1&&t<2?a(e.Normal,e.Hard,t-1):t>=2&&t<3?a(e.Hard,e.Impossible,t-2):a(e.Impossible,e.Impossible,0)}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(0),r=n.n(a);function i(e){return Object(a.useEffect)(()=>{function t(t){if(!t.isTrusted)return;e.onKeyDown.bind(this)(t)}return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)}),r.a.createElement(r.a.Fragment,null)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return b}));var a=n(0),r=n.n(a),i=n(154),o=n(22),s=n(4),l=n(29),c=n(165),f=n(14),u=n(140),m=n(290),h=n(12),d=n(11),p=n(1037),g=n(101);const y=e=>null!==e&&e.type===i.b.FACTION;class b extends i.a{constructor(e){var t,n,a;super(i.b.FACTION,null===(t=null==e?void 0:e.singularity)||void 0===t||t),this.factionWorkType=null!==(n=null==e?void 0:e.factionWorkType)&&void 0!==n?n:g.a.HACKING,this.factionName=null!==(a=null==e?void 0:e.faction)&&void 0!==a?a:s.a.Sector12}getFaction(){const e=l.a[this.factionName];if(!e)throw new Error(`Faction work started with invalid / unknown faction: '${this.factionName}'`);return e}getReputationRate(e){const t=this.getFaction(),n={[g.a.HACKING]:m.c,[g.a.FIELD]:m.a,[g.a.SECURITY]:m.b}[this.factionWorkType](e,t);let a=1;return e.hasAugmentation(d.a.NeuroreceptorManager)||(a=e.focus?1:h.a.BaseFocusBonus),n*a}getExpRates(e){return Object(p.a)(e,this.factionWorkType)}process(e,t){this.cyclesWorked+=t,this.getFaction().playerReputation+=this.getReputationRate(e)*t;const n=this.getExpRates(e);return Object(c.a)(e,n,t,"class"),!1}finish(){this.singularity||Object(f.a)(r.a.createElement(r.a.Fragment,null,"You worked for ",this.getFaction().name,".",r.a.createElement("br",null),"They now have a total of ",r.a.createElement(u.a,{reputation:this.getFaction().playerReputation})," reputation."))}toJSON(){return Object(o.b)("FactionWork",this)}static fromJSON(e){return Object(o.a)(b,e.data)}}o.c.constructors.FactionWork=b},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(6),i=n(118),o=n(142);const s=Object(i.a)(e=>Object(o.a)({money:{color:e.colors.money}}));function l({hashes:e}){const t=s();return a.createElement("span",{className:t.money},"number"==typeof e?r.a.formatHashes(e):e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(12),r=n(213),i=n(40),o=n(14),s=n(22),l=n(394);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(e="",t=1){c(this,"cores",1),c(this,"level",1),c(this,"moneyGainRatePerSecond",0),c(this,"onlineTimeSeconds",0),c(this,"ram",1),c(this,"totalMoneyGenerated",0),this.name=e,this.updateMoneyGainRate(t)}calculateCoreUpgradeCost(e=1,t){return Object(r.a)(this.cores,e,t)}calculateLevelUpgradeCost(e=1,t){return Object(r.b)(this.level,e,t)}calculateRamUpgradeCost(e=1,t){return Object(r.e)(this.ram,e,t)}process(e=1){const t=e*a.a.MilliPerCycle/1e3;let n=this.moneyGainRatePerSecond*t;return isNaN(n)&&(console.error(`Hacknet Node ${this.name} calculated earnings of NaN`),n=0),this.totalMoneyGenerated+=n,this.onlineTimeSeconds+=t,n}upgradeCore(e=1,t){this.cores=Math.min(i.a.MaxCores,Math.round(this.cores+e)),this.updateMoneyGainRate(t)}upgradeLevel(e=1,t){this.level=Math.min(i.a.MaxLevel,Math.round(this.level+e)),this.updateMoneyGainRate(t)}upgradeRam(e=1,t){for(let t=0;tu())return 1/0;const n=Math.max(0,Math.log(t)/Math.log(2)-6);return t*o.a.BaseCostFor1GBOfRamServer*i.a.PurchasedServerCost*Math.pow(i.a.PurchasedServerSoftcap,n)}function f(){return Math.round(o.a.PurchasedServerLimit*i.a.PurchasedServerLimit)}function u(){const e=Math.round(o.a.PurchasedServerMaxRam*i.a.PurchasedServerMaxRam);return 1<<31-Math.clz32(e)}function m(e,t,n,i){if(!i.canAfford(n))return void Object(s.a)("You don't have enough money to purchase this server!");if(i.purchasedServers.length>=f())return void Object(s.a)("You have reached the maximum limit of "+f()+" servers. You cannot purchase any more. You can delete some of your purchased servers using the deleteServer() Netscript function in a script");if(""==e)return void Object(s.a)("You must enter a hostname for your new server!");const o=Object(r.g)({adminRights:!0,hostname:e,ip:Object(a.e)(),isConnectedTo:!1,maxRam:t,organizationName:"",purchasedByPlayer:!0});Object(a.a)(o),i.purchasedServers.push(o.hostname);const l=i.getHomeComputer();l.serversOnNetwork.push(o.hostname),o.serversOnNetwork.push(l.hostname),i.loseMoney(n,"servers"),Object(s.a)("Server successfully purchased with hostname "+o.hostname)}function h(e){const t=e.getUpgradeHomeRamCost();if(!e.canAfford(t))return void Object(s.a)("You do not have enough money to purchase additional RAM for your home computer");const n=e.getHomeComputer();n.maxRam>=o.a.HomeComputerMaxRam?Object(s.a)("You cannot upgrade your home computer RAM because it is at its maximum possible value"):(n.maxRam*=2,e.loseMoney(t,"servers"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l}));var a=n(14),r=n(22),i=n(83);class o{get filename(){return this.fn}set filename(e){this.fn=e}constructor(e="",t=""){this.fn=(e.endsWith(".txt")?e:e+".txt").replace(/\s+/g,""),this.text=t}append(e){this.text+=e}download(){const e=new Blob([this.text],{type:"text/plain"}),t=document.createElement("a"),n=URL.createObjectURL(e);t.href=n,t.download=this.fn,document.body.appendChild(t),t.click(),setTimeout(()=>{document.body.removeChild(t),window.URL.revokeObjectURL(n)},0)}read(){return this.text}show(){Object(a.a)(`${this.fn}

${this.text}`)}toJSON(){return Object(r.b)("TextFile",this)}write(e){this.text=e}static fromJSON(e){return Object(r.a)(o,e.data)}}function s(e,t){let n=e.endsWith(".txt")?e:e+".txt";Object(i.h)(n)&&(n=Object(i.k)(n));for(const e of t.textFiles)if(e.fn===n)return e;return null}function l(e,t,n){if(null!==s(e,n))return void console.error(`A file named "${e}" already exists on server ${n.hostname}.`);const a=new o(e,t);return n.textFiles.push(a),a}r.c.constructors.TextFile=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));const a={ScriptBaseRamCost:1.6,ScriptDomRamCost:25,ScriptCorporationRamCost:1022.4,ScriptHackRamCost:.1,ScriptHackAnalyzeRamCost:1,ScriptGrowRamCost:.15,ScriptGrowthAnalyzeRamCost:1,ScriptWeakenRamCost:.15,ScriptWeakenAnalyzeRamCost:1,ScriptScanRamCost:.2,ScriptRecentScriptsRamCost:.2,ScriptPortProgramRamCost:.05,ScriptRunRamCost:1,ScriptExecRamCost:1.3,ScriptSpawnRamCost:2,ScriptScpRamCost:.6,ScriptKillRamCost:.5,ScriptHasRootAccessRamCost:.05,ScriptGetHostnameRamCost:.05,ScriptGetHackingLevelRamCost:.05,ScriptGetMultipliersRamCost:4,ScriptGetServerRamCost:.1,ScriptGetServerMaxRam:.05,ScriptGetServerUsedRam:.05,ScriptFileExistsRamCost:.1,ScriptIsRunningRamCost:.1,ScriptHacknetNodesRamCost:4,ScriptHNUpgLevelRamCost:.4,ScriptHNUpgRamRamCost:.6,ScriptHNUpgCoreRamCost:.8,ScriptGetStockRamCost:2,ScriptBuySellStockRamCost:2.5,ScriptGetPurchaseServerRamCost:.25,ScriptPurchaseServerRamCost:2.25,ScriptGetPurchasedServerLimit:.05,ScriptGetPurchasedServerMaxRam:.05,ScriptRoundRamCost:.05,ScriptReadWriteRamCost:1,ScriptArbScriptRamCost:1,ScriptGetScriptRamCost:.1,ScriptGetRunningScriptRamCost:.3,ScriptGetHackTimeRamCost:.05,ScriptGetFavorToDonate:.1,ScriptCodingContractBaseRamCost:10,ScriptSleeveBaseRamCost:4,ScriptGetOwnedSourceFiles:5,ScriptClearTerminalCost:.2,ScriptSingularityFn1RamCost:2,ScriptSingularityFn2RamCost:3,ScriptSingularityFn3RamCost:5,ScriptGangApiBaseRamCost:4,ScriptBladeburnerApiBaseRamCost:4,ScriptStanekWidth:.4,ScriptStanekHeight:.4,ScriptStanekCharge:.4,ScriptStanekFragmentDefinitions:0,ScriptStanekPlacedFragments:5,ScriptStanekClear:0,ScriptStanekCanPlace:.5,ScriptStanekPlace:5,ScriptStanekFragmentAt:2,ScriptStanekDeleteAt:.15,ScriptInfiltrationCalculateDifficulty:2.5,ScriptInfiltrationCalculateRewards:2.5,ScriptInfiltrationGetLocations:5,ScriptInfiltrationGetInfiltrations:15,ScriptStanekAcceptGift:2};function r(e){return t=>{if(4===t.bitNodeN)return e;const n=t.sourceFileLvl(4);return n<=1?16*e:2===n?4*e:e}}const i={getSymbols:a.ScriptGetStockRamCost,getPrice:a.ScriptGetStockRamCost,getAskPrice:a.ScriptGetStockRamCost,getBidPrice:a.ScriptGetStockRamCost,getPosition:a.ScriptGetStockRamCost,getMaxShares:a.ScriptGetStockRamCost,getPurchaseCost:a.ScriptGetStockRamCost,getSaleGain:a.ScriptGetStockRamCost,buy:a.ScriptBuySellStockRamCost,sell:a.ScriptBuySellStockRamCost,short:a.ScriptBuySellStockRamCost,sellShort:a.ScriptBuySellStockRamCost,placeOrder:a.ScriptBuySellStockRamCost,cancelOrder:a.ScriptBuySellStockRamCost,getOrders:a.ScriptBuySellStockRamCost,getVolatility:a.ScriptBuySellStockRamCost,getForecast:a.ScriptBuySellStockRamCost,purchase4SMarketData:a.ScriptBuySellStockRamCost,purchase4SMarketDataTixApi:a.ScriptBuySellStockRamCost,purchaseWseAccount:a.ScriptBuySellStockRamCost,purchaseTixApi:a.ScriptBuySellStockRamCost},o={universityCourse:r(a.ScriptSingularityFn1RamCost),gymWorkout:r(a.ScriptSingularityFn1RamCost),travelToCity:r(a.ScriptSingularityFn1RamCost),goToLocation:r(a.ScriptSingularityFn3RamCost),purchaseTor:r(a.ScriptSingularityFn1RamCost),purchaseProgram:r(a.ScriptSingularityFn1RamCost),getCurrentServer:r(a.ScriptSingularityFn1RamCost),connect:r(a.ScriptSingularityFn1RamCost),manualHack:r(a.ScriptSingularityFn1RamCost),installBackdoor:r(a.ScriptSingularityFn1RamCost),getDarkwebProgramCost:r(a.ScriptSingularityFn1RamCost/4),getDarkwebPrograms:r(a.ScriptSingularityFn1RamCost/4),getStats:r(a.ScriptSingularityFn1RamCost/4),getCharacterInformation:r(a.ScriptSingularityFn1RamCost/4),hospitalize:r(a.ScriptSingularityFn1RamCost/4),isBusy:r(a.ScriptSingularityFn1RamCost/4),stopAction:r(a.ScriptSingularityFn1RamCost/2),upgradeHomeRam:r(a.ScriptSingularityFn2RamCost),upgradeHomeCores:r(a.ScriptSingularityFn2RamCost),getUpgradeHomeRamCost:r(a.ScriptSingularityFn2RamCost/2),getUpgradeHomeCoresCost:r(a.ScriptSingularityFn2RamCost/2),workForCompany:r(a.ScriptSingularityFn2RamCost),applyToCompany:r(a.ScriptSingularityFn2RamCost),quitJob:r(a.ScriptSingularityFn2RamCost),getCompanyRep:r(a.ScriptSingularityFn2RamCost/3),getCompanyFavor:r(a.ScriptSingularityFn2RamCost/3),getCompanyFavorGain:r(a.ScriptSingularityFn2RamCost/4),checkFactionInvitations:r(a.ScriptSingularityFn2RamCost),joinFaction:r(a.ScriptSingularityFn2RamCost),workForFaction:r(a.ScriptSingularityFn2RamCost),getFactionRep:r(a.ScriptSingularityFn2RamCost/3),getFactionFavor:r(a.ScriptSingularityFn2RamCost/3),getFactionFavorGain:r(a.ScriptSingularityFn2RamCost/4),donateToFaction:r(a.ScriptSingularityFn3RamCost),createProgram:r(a.ScriptSingularityFn3RamCost),commitCrime:r(a.ScriptSingularityFn3RamCost),getCrimeChance:r(a.ScriptSingularityFn3RamCost),getCrimeStats:r(a.ScriptSingularityFn3RamCost),getOwnedAugmentations:r(a.ScriptSingularityFn3RamCost),getAugmentationsFromFaction:r(a.ScriptSingularityFn3RamCost),getAugmentationCost:r(a.ScriptSingularityFn3RamCost),getAugmentationPrereq:r(a.ScriptSingularityFn3RamCost),getAugmentationPrice:r(a.ScriptSingularityFn3RamCost/2),getAugmentationBasePrice:r(a.ScriptSingularityFn3RamCost/2),getAugmentationRepReq:r(a.ScriptSingularityFn3RamCost/2),getAugmentationStats:r(a.ScriptSingularityFn3RamCost),purchaseAugmentation:r(a.ScriptSingularityFn3RamCost),softReset:r(a.ScriptSingularityFn3RamCost),installAugmentations:r(a.ScriptSingularityFn3RamCost),isFocused:r(.1),setFocus:r(.1),b1tflum3:r(16),destroyW0r1dD43m0n:r(32)},s={createGang:a.ScriptGangApiBaseRamCost/4,inGang:a.ScriptGangApiBaseRamCost/4,getMemberNames:a.ScriptGangApiBaseRamCost/4,getGangInformation:a.ScriptGangApiBaseRamCost/2,getOtherGangInformation:a.ScriptGangApiBaseRamCost/2,getMemberInformation:a.ScriptGangApiBaseRamCost/2,canRecruitMember:a.ScriptGangApiBaseRamCost/4,recruitMember:a.ScriptGangApiBaseRamCost/2,getTaskNames:a.ScriptGangApiBaseRamCost/4,getTaskStats:a.ScriptGangApiBaseRamCost/4,setMemberTask:a.ScriptGangApiBaseRamCost/2,getEquipmentNames:a.ScriptGangApiBaseRamCost/4,getEquipmentCost:a.ScriptGangApiBaseRamCost/2,getEquipmentType:a.ScriptGangApiBaseRamCost/2,getEquipmentStats:a.ScriptGangApiBaseRamCost/2,purchaseEquipment:a.ScriptGangApiBaseRamCost,ascendMember:a.ScriptGangApiBaseRamCost,getAscensionResult:a.ScriptGangApiBaseRamCost/2,setTerritoryWarfare:a.ScriptGangApiBaseRamCost/2,getChanceToWinClash:a.ScriptGangApiBaseRamCost,getBonusTime:0},l={getContractNames:a.ScriptBladeburnerApiBaseRamCost/10,getOperationNames:a.ScriptBladeburnerApiBaseRamCost/10,getBlackOpNames:a.ScriptBladeburnerApiBaseRamCost/10,getBlackOpRank:a.ScriptBladeburnerApiBaseRamCost/2,getGeneralActionNames:a.ScriptBladeburnerApiBaseRamCost/10,getSkillNames:a.ScriptBladeburnerApiBaseRamCost/10,startAction:a.ScriptBladeburnerApiBaseRamCost,stopBladeburnerAction:a.ScriptBladeburnerApiBaseRamCost/2,getCurrentAction:a.ScriptBladeburnerApiBaseRamCost/4,getActionTime:a.ScriptBladeburnerApiBaseRamCost,getActionCurrentTime:a.ScriptBladeburnerApiBaseRamCost,getActionEstimatedSuccessChance:a.ScriptBladeburnerApiBaseRamCost,getActionRepGain:a.ScriptBladeburnerApiBaseRamCost,getActionCountRemaining:a.ScriptBladeburnerApiBaseRamCost,getActionMaxLevel:a.ScriptBladeburnerApiBaseRamCost,getActionCurrentLevel:a.ScriptBladeburnerApiBaseRamCost,getActionAutolevel:a.ScriptBladeburnerApiBaseRamCost,setActionAutolevel:a.ScriptBladeburnerApiBaseRamCost,setActionLevel:a.ScriptBladeburnerApiBaseRamCost,getRank:a.ScriptBladeburnerApiBaseRamCost,getSkillPoints:a.ScriptBladeburnerApiBaseRamCost,getSkillLevel:a.ScriptBladeburnerApiBaseRamCost,getSkillUpgradeCost:a.ScriptBladeburnerApiBaseRamCost,upgradeSkill:a.ScriptBladeburnerApiBaseRamCost,getTeamSize:a.ScriptBladeburnerApiBaseRamCost,setTeamSize:a.ScriptBladeburnerApiBaseRamCost,getCityEstimatedPopulation:a.ScriptBladeburnerApiBaseRamCost,getCityCommunities:a.ScriptBladeburnerApiBaseRamCost,getCityChaos:a.ScriptBladeburnerApiBaseRamCost,getCity:a.ScriptBladeburnerApiBaseRamCost,switchCity:a.ScriptBladeburnerApiBaseRamCost,getStamina:a.ScriptBladeburnerApiBaseRamCost,joinBladeburnerFaction:a.ScriptBladeburnerApiBaseRamCost,joinBladeburnerDivision:a.ScriptBladeburnerApiBaseRamCost,getBonusTime:0},c={getPossibleLocations:a.ScriptInfiltrationGetLocations,getInfiltration:a.ScriptInfiltrationGetInfiltrations},f={attempt:a.ScriptCodingContractBaseRamCost,getContractType:a.ScriptCodingContractBaseRamCost/2,getData:a.ScriptCodingContractBaseRamCost/2,getDescription:a.ScriptCodingContractBaseRamCost/2,getNumTriesRemaining:a.ScriptCodingContractBaseRamCost/5},u={getNumSleeves:a.ScriptSleeveBaseRamCost,setToShockRecovery:a.ScriptSleeveBaseRamCost,setToSynchronize:a.ScriptSleeveBaseRamCost,setToCommitCrime:a.ScriptSleeveBaseRamCost,setToUniversityCourse:a.ScriptSleeveBaseRamCost,travel:a.ScriptSleeveBaseRamCost,setToCompanyWork:a.ScriptSleeveBaseRamCost,setToFactionWork:a.ScriptSleeveBaseRamCost,setToGymWorkout:a.ScriptSleeveBaseRamCost,getSleeveStats:a.ScriptSleeveBaseRamCost,getTask:a.ScriptSleeveBaseRamCost,getInformation:a.ScriptSleeveBaseRamCost,getSleeveAugmentations:a.ScriptSleeveBaseRamCost,getSleevePurchasableAugs:a.ScriptSleeveBaseRamCost,purchaseSleeveAug:a.ScriptSleeveBaseRamCost,setToBladeburnerAction:a.ScriptSleeveBaseRamCost},m={giftWidth:a.ScriptStanekWidth,giftHeight:a.ScriptStanekHeight,chargeFragment:a.ScriptStanekCharge,fragmentDefinitions:a.ScriptStanekFragmentDefinitions,activeFragments:a.ScriptStanekPlacedFragments,clearGift:a.ScriptStanekClear,canPlaceFragment:a.ScriptStanekCanPlace,placeFragment:a.ScriptStanekPlace,getFragment:a.ScriptStanekFragmentAt,removeFragment:a.ScriptStanekDeleteAt,acceptGift:a.ScriptStanekAcceptGift},h={args:void 0,enums:void 0,corporation:{createCorporation:0,hasUnlockUpgrade:0,getUnlockUpgradeCost:0,getUpgradeLevel:0,getUpgradeLevelCost:0,getExpandIndustryCost:0,getExpandCityCost:0,getInvestmentOffer:0,acceptInvestmentOffer:0,goPublic:0,bribe:0,getCorporation:0,getDivision:0,expandIndustry:0,expandCity:0,unlockUpgrade:0,levelUpgrade:0,issueDividends:0,buyBackShares:0,sellShares:0,getBonusTime:0,sellMaterial:0,sellProduct:0,discontinueProduct:0,setSmartSupply:0,setSmartSupplyUseLeftovers:0,buyMaterial:0,bulkPurchase:0,getWarehouse:0,getProduct:0,getMaterial:0,setMaterialMarketTA1:0,setMaterialMarketTA2:0,setProductMarketTA1:0,setProductMarketTA2:0,exportMaterial:0,cancelExportMaterial:0,purchaseWarehouse:0,upgradeWarehouse:0,makeProduct:0,limitMaterialProduction:0,limitProductProduction:0,getPurchaseWarehouseCost:0,getUpgradeWarehouseCost:0,hasWarehouse:0,assignJob:0,hireEmployee:0,upgradeOfficeSize:0,throwParty:0,buyCoffee:0,hireAdVert:0,research:0,getOffice:0,getEmployee:0,getHireAdVertCost:0,getHireAdVertCount:0,getResearchCost:0,hasResearched:0,setAutoJobAssignment:0,getOfficeSizeUpgradeCost:0},hacknet:{numNodes:0,purchaseNode:0,getPurchaseNodeCost:0,getNodeStats:0,upgradeLevel:0,upgradeRam:0,upgradeCore:0,upgradeCache:0,getLevelUpgradeCost:0,getRamUpgradeCost:0,getCoreUpgradeCost:0,getCacheUpgradeCost:0,numHashes:0,hashCost:0,spendHashes:0,maxNumNodes:0,hashCapacity:0,getHashUpgrades:0,getHashUpgradeLevel:0,getStudyMult:0,getTrainingMult:0},stock:i,singularity:o,...o,gang:s,bladeburner:l,infiltration:c,codingcontract:f,sleeve:u,stanek:m,ui:{getTheme:0,setTheme:0,resetTheme:0,getStyles:0,setStyles:0,resetStyles:0,getGameInfo:0,clearTerminal:0},grafting:{getAugmentationGraftPrice:3.75,getAugmentationGraftTime:3.75,getGraftableAugmentations:5,graftAugmentation:7.5},sprintf:0,vsprintf:0,scan:a.ScriptScanRamCost,hack:a.ScriptHackRamCost,hackAnalyzeThreads:a.ScriptHackAnalyzeRamCost,hackAnalyze:a.ScriptHackAnalyzeRamCost,hackAnalyzeSecurity:a.ScriptHackAnalyzeRamCost,hackAnalyzeChance:a.ScriptHackAnalyzeRamCost,sleep:0,asleep:0,share:2.4,getSharePower:.2,grow:a.ScriptGrowRamCost,growthAnalyze:a.ScriptGrowthAnalyzeRamCost,growthAnalyzeSecurity:a.ScriptGrowthAnalyzeRamCost,weaken:a.ScriptWeakenRamCost,weakenAnalyze:a.ScriptWeakenAnalyzeRamCost,print:0,printf:0,tprint:0,tprintf:0,clearLog:0,disableLog:0,enableLog:0,isLogEnabled:0,getScriptLogs:0,nuke:a.ScriptPortProgramRamCost,brutessh:a.ScriptPortProgramRamCost,ftpcrack:a.ScriptPortProgramRamCost,relaysmtp:a.ScriptPortProgramRamCost,httpworm:a.ScriptPortProgramRamCost,sqlinject:a.ScriptPortProgramRamCost,run:a.ScriptRunRamCost,exec:a.ScriptExecRamCost,spawn:a.ScriptSpawnRamCost,kill:a.ScriptKillRamCost,killall:a.ScriptKillRamCost,exit:0,atExit:0,scp:a.ScriptScpRamCost,ls:a.ScriptScanRamCost,ps:a.ScriptScanRamCost,getRecentScripts:a.ScriptRecentScriptsRamCost,hasRootAccess:a.ScriptHasRootAccessRamCost,getHostname:a.ScriptGetHostnameRamCost,getHackingLevel:a.ScriptGetHackingLevelRamCost,getHackingMultipliers:a.ScriptGetMultipliersRamCost,getHacknetMultipliers:a.ScriptGetMultipliersRamCost,getBitNodeMultipliers:a.ScriptGetMultipliersRamCost,getServer:a.ScriptGetMultipliersRamCost/2,getServerMoneyAvailable:a.ScriptGetServerRamCost,getServerSecurityLevel:a.ScriptGetServerRamCost,getServerBaseSecurityLevel:a.ScriptGetServerRamCost,getServerMinSecurityLevel:a.ScriptGetServerRamCost,getServerRequiredHackingLevel:a.ScriptGetServerRamCost,getServerMaxMoney:a.ScriptGetServerRamCost,getServerGrowth:a.ScriptGetServerRamCost,getServerNumPortsRequired:a.ScriptGetServerRamCost,getServerRam:a.ScriptGetServerRamCost,getServerMaxRam:a.ScriptGetServerMaxRam,getServerUsedRam:a.ScriptGetServerUsedRam,serverExists:a.ScriptGetServerRamCost,fileExists:a.ScriptFileExistsRamCost,isRunning:a.ScriptIsRunningRamCost,getPurchasedServerLimit:a.ScriptGetPurchasedServerLimit,getPurchasedServerMaxRam:a.ScriptGetPurchasedServerMaxRam,getPurchasedServerCost:a.ScriptGetPurchaseServerRamCost,purchaseServer:a.ScriptPurchaseServerRamCost,deleteServer:a.ScriptPurchaseServerRamCost,getPurchasedServers:a.ScriptPurchaseServerRamCost,write:0,tryWritePort:0,read:0,peek:0,clear:0,writePort:0,readPort:0,getPortHandle:0,rm:a.ScriptReadWriteRamCost,scriptRunning:a.ScriptArbScriptRamCost,scriptKill:a.ScriptArbScriptRamCost,getScriptName:0,getScriptRam:a.ScriptGetScriptRamCost,getHackTime:a.ScriptGetHackTimeRamCost,getGrowTime:a.ScriptGetHackTimeRamCost,getWeakenTime:a.ScriptGetHackTimeRamCost,getTotalScriptIncome:a.ScriptGetScriptRamCost,getScriptIncome:a.ScriptGetScriptRamCost,getTotalScriptExpGain:a.ScriptGetScriptRamCost,getScriptExpGain:a.ScriptGetScriptRamCost,getRunningScript:a.ScriptGetRunningScriptRamCost,nFormat:0,tFormat:0,getTimeSinceLastAug:a.ScriptGetHackTimeRamCost,prompt:0,wget:0,getFavorToDonate:a.ScriptGetFavorToDonate,getPlayer:a.ScriptSingularityFn1RamCost/4,mv:0,getOwnedSourceFiles:a.ScriptGetOwnedSourceFiles,tail:0,toast:0,closeTail:0,clearPort:0,openDevMenu:0,alert:0,flags:0,exploit:0,bypass:0,alterReality:0,rainbow:0,heart:{break:0},formulas:{reputation:{calculateFavorToRep:0,calculateRepToFavor:0,repFromDonation:0},skills:{calculateSkill:0,calculateExp:0},hacking:{hackChance:0,hackExp:0,hackPercent:0,growPercent:0,hackTime:0,growTime:0,weakenTime:0},hacknetNodes:{moneyGainRate:0,levelUpgradeCost:0,ramUpgradeCost:0,coreUpgradeCost:0,hacknetNodeCost:0,constants:0},hacknetServers:{hashGainRate:0,levelUpgradeCost:0,ramUpgradeCost:0,coreUpgradeCost:0,cacheUpgradeCost:0,hashUpgradeCost:0,hacknetServerCost:0,constants:0},gang:{wantedPenalty:0,respectGain:0,wantedLevelGain:0,moneyGain:0,ascensionPointsGain:0,ascensionMultiplier:0}}},d=h;function p(e,...t){if(0===t.length)return console.warn("No arguments passed to getRamCost()"),0;let n=d[t[0]];for(let e=1;e{i[e.name]=new r.a(e.name,e.cost,e.upgType,e.mults)})},function(e,t,n){"use strict";function a(){return{hack:0,str:0,def:0,dex:0,agi:0,cha:0,int:0,money:0}}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l}));var a=n(20),r=n(12);function i(){return r.a.MarketData4SCost*a.a.FourSigmaMarketDataCost}function o(){return r.a.MarketDataTixApi4SCost*a.a.FourSigmaMarketDataApiCost}function s(){return r.a.WSEAccountCost}function l(){return r.a.TIXAPICost}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}));const a=()=>({hacking_chance:1,hacking_speed:1,hacking_money:1,hacking_grow:1,hacking:1,hacking_exp:1,strength:1,strength_exp:1,defense:1,defense_exp:1,dexterity:1,dexterity_exp:1,agility:1,agility_exp:1,charisma:1,charisma_exp:1,hacknet_node_money:1,hacknet_node_purchase_cost:1,hacknet_node_ram_cost:1,hacknet_node_core_cost:1,hacknet_node_level_cost:1,company_rep:1,faction_rep:1,work_money:1,crime_success:1,crime_money:1,bladeburner_max_stamina:1,bladeburner_stamina_gain:1,bladeburner_analysis:1,bladeburner_success_chance:1}),r=(e,t)=>{var n,a,r,i,o,s,l,c,f,u,m,h,d,p,g,y,b,E,v,k,w,_,S,C,x,L,O,M,T,A;return{hacking_chance:e.hacking_chance*(null!==(n=t.hacking_chance)&&void 0!==n?n:1),hacking_speed:e.hacking_speed*(null!==(a=t.hacking_speed)&&void 0!==a?a:1),hacking_money:e.hacking_money*(null!==(r=t.hacking_money)&&void 0!==r?r:1),hacking_grow:e.hacking_grow*(null!==(i=t.hacking_grow)&&void 0!==i?i:1),hacking:e.hacking*(null!==(o=t.hacking)&&void 0!==o?o:1),hacking_exp:e.hacking_exp*(null!==(s=t.hacking_exp)&&void 0!==s?s:1),strength:e.strength*(null!==(l=t.strength)&&void 0!==l?l:1),strength_exp:e.strength_exp*(null!==(c=t.strength_exp)&&void 0!==c?c:1),defense:e.defense*(null!==(f=t.defense)&&void 0!==f?f:1),defense_exp:e.defense_exp*(null!==(u=t.defense_exp)&&void 0!==u?u:1),dexterity:e.dexterity*(null!==(m=t.dexterity)&&void 0!==m?m:1),dexterity_exp:e.dexterity_exp*(null!==(h=t.dexterity_exp)&&void 0!==h?h:1),agility:e.agility*(null!==(d=t.agility)&&void 0!==d?d:1),agility_exp:e.agility_exp*(null!==(p=t.agility_exp)&&void 0!==p?p:1),charisma:e.charisma*(null!==(g=t.charisma)&&void 0!==g?g:1),charisma_exp:e.charisma_exp*(null!==(y=t.charisma_exp)&&void 0!==y?y:1),hacknet_node_money:e.hacknet_node_money*(null!==(b=t.hacknet_node_money)&&void 0!==b?b:1),hacknet_node_purchase_cost:e.hacknet_node_purchase_cost*(null!==(E=t.hacknet_node_purchase_cost)&&void 0!==E?E:1),hacknet_node_ram_cost:e.hacknet_node_ram_cost*(null!==(v=t.hacknet_node_ram_cost)&&void 0!==v?v:1),hacknet_node_core_cost:e.hacknet_node_core_cost*(null!==(k=t.hacknet_node_core_cost)&&void 0!==k?k:1),hacknet_node_level_cost:e.hacknet_node_level_cost*(null!==(w=t.hacknet_node_level_cost)&&void 0!==w?w:1),company_rep:e.company_rep*(null!==(_=t.company_rep)&&void 0!==_?_:1),faction_rep:e.faction_rep*(null!==(S=t.faction_rep)&&void 0!==S?S:1),work_money:e.work_money*(null!==(C=t.work_money)&&void 0!==C?C:1),crime_success:e.crime_success*(null!==(x=t.crime_success)&&void 0!==x?x:1),crime_money:e.crime_money*(null!==(L=t.crime_money)&&void 0!==L?L:1),bladeburner_max_stamina:e.bladeburner_max_stamina*(null!==(O=t.bladeburner_max_stamina)&&void 0!==O?O:1),bladeburner_stamina_gain:e.bladeburner_stamina_gain*(null!==(M=t.bladeburner_stamina_gain)&&void 0!==M?M:1),bladeburner_analysis:e.bladeburner_analysis*(null!==(T=t.bladeburner_analysis)&&void 0!==T?T:1),bladeburner_success_chance:e.bladeburner_success_chance*(null!==(A=t.bladeburner_success_chance)&&void 0!==A?A:1)}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1041),r=n(1042);const i={};for(const e of r.a)i[(o=e).name]=new a.a(o);var o},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1048),r=n(473);const i={};a.a.forEach(e=>{i[e.name]=new r.a(e.name,e.desc,e.isHacking,e.isCombat,e.params)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(204),r=n(183),i=n(22),o=n(270);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l{constructor(e={}){var t;s(this,"level",1),s(this,"sizeUsed",0),s(this,"smartSupplyEnabled",!1),s(this,"smartSupplyUseLeftovers",{}),s(this,"smartSupplyStore",0),this.loc=e.loc?e.loc:"",this.size=e.size?e.size:0,this.materials={Water:new a.a({name:"Water"}),Energy:new a.a({name:"Energy"}),Food:new a.a({name:"Food"}),Plants:new a.a({name:"Plants"}),Metal:new a.a({name:"Metal"}),Hardware:new a.a({name:"Hardware"}),Chemicals:new a.a({name:"Chemicals"}),Drugs:new a.a({name:"Drugs"}),Robots:new a.a({name:"Robots"}),AICores:new a.a({name:"AI Cores"}),RealEstate:new a.a({name:"Real Estate"})},this.smartSupplyUseLeftovers={Water:!0,Energy:!0,Food:!0,Plants:!0,Metal:!0,Hardware:!0,Chemicals:!0,Drugs:!0,Robots:!0,AICores:!0,RealEstate:!0},e.corp&&e.industry&&this.updateSize(e.corp,e.industry),null!==(t=e.corp)&&void 0!==t&&t.unlockUpgrades[1]&&(this.smartSupplyEnabled=!0)}updateMaterialSizeUsed(){this.sizeUsed=0;for(const e of Object.keys(this.materials)){const t=this.materials[e];r.a.hasOwnProperty(e)&&(this.sizeUsed+=t.qty*r.a[e])}this.sizeUsed>this.size&&console.warn("Warehouse size used greater than capacity, something went wrong")}updateSize(e,t){try{this.size=100*this.level*e.getStorageMultiplier()*t.getStorageMultiplier()}catch(e){Object(o.a)(e)}}toJSON(){return Object(i.b)("Warehouse",this)}static fromJSON(e){return Object(i.a)(l,e.data)}}i.c.constructors.Warehouse=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return d}));var a=n(231),r=n(72),i=n(12),o=n(2),s=n(6),l=n(21),c=n(14),f=n(0);function u(e,t,n=null,u={}){if((t=Math.round(t))<=0)return!1;if(null==e||isNaN(t))return n?n.log("stock.buy",()=>`Invalid arguments: stock='${e}' shares='${t}'`):!0!==u.suppressDialog&&Object(c.a)("Failed to buy stock. This may be a bug, contact developer"),!1;const m=Object(a.b)(e,t,r.a.Long);if(null==m)return!1;if(o.a.money`You do not have enough money to purchase this position. You need ${s.a.formatMoney(m)}.`):!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"You do not have enough money to purchase this. You need ",f.createElement(l.a,{money:m}))),!1;if(t+e.playerShares+e.playerShortShares>e.maxShares)return n?n.log("stock.buy",()=>`Purchasing '${t+e.playerShares+e.playerShortShares}' shares would exceed ${e.symbol}'s maximum (${e.maxShares}) number of shares`):!0!==u.suppressDialog&&Object(c.a)(`You cannot purchase this many shares. ${e.symbol} has a maximum of ${s.a.formatShares(e.maxShares)} shares.`),!1;const h=e.playerShares*e.playerAvgPx;o.a.loseMoney(m,"stock");const d=h+m-i.a.StockMarketCommission;if(e.playerShares=Math.round(e.playerShares+t),e.playerAvgPx=d/e.playerShares,Object(a.d)(e,t),null!=u.rerenderFn&&"function"==typeof u.rerenderFn&&u.rerenderFn(),n){const a=`Bought ${s.a.formatShares(t)} shares of ${e.symbol} for ${s.a.formatMoney(m)}. Paid ${s.a.formatMoney(i.a.StockMarketCommission)} in commission fees.`;n.log("stock.buy",()=>a)}else!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"Bought ",s.a.formatShares(t)," shares of ",e.symbol," for ",f.createElement(l.a,{money:m}),". Paid"," ",f.createElement(l.a,{money:i.a.StockMarketCommission})," in commission fees."));return!0}function m(e,t,n=null,i={}){if(null==e||t<0||isNaN(t))return n?n.log("stock.sell",()=>`Invalid arguments: stock='${e}' shares='${t}'`):!0!==i.suppressDialog&&Object(c.a)("Failed to sell stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, contact developer"),!1;if((t=Math.round(t))>e.playerShares&&(t=e.playerShares),0===t)return!1;const u=Object(a.c)(e,t,r.a.Long);if(null==u)return!1;let m=u-e.playerAvgPx*t;if(isNaN(m)&&(m=0),o.a.gainMoney(u,"stock"),n&&(n.scriptRef.onlineMoneyMade+=m,o.a.scriptProdSinceLastAug+=m),e.playerShares=Math.round(e.playerShares-t),0===e.playerShares&&(e.playerAvgPx=0),Object(a.d)(e,t),null!=i.rerenderFn&&"function"==typeof i.rerenderFn&&i.rerenderFn(),n){const a=`Sold ${s.a.formatShares(t)} shares of ${e.symbol}. After commissions, you gained a total of ${s.a.formatMoney(u)}.`;n.log("stock.sell",()=>a)}else!0!==i.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"Sold ",s.a.formatShares(t)," shares of ",e.symbol,". After commissions, you gained a total of"," ",f.createElement(l.a,{money:u}),"."));return!0}function h(e,t,n=null,u={}){if((t=Math.round(t))<=0)return!1;if(null==e||isNaN(t))return n?n.log("stock.short",()=>`Invalid arguments: stock='${e}' shares='${t}'`):!0!==u.suppressDialog&&Object(c.a)("Failed to initiate a short position in a stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, so contact developer"),!1;const m=Object(a.b)(e,t,r.a.Short);if(null==m)return!1;if(o.a.money"You do not have enough money to purchase this short position. You need "+s.a.formatMoney(m)):!0!==u.suppressDialog&&Object(c.a)(f.createElement(f.Fragment,null,"You do not have enough money to purchase this short position. You need ",f.createElement(l.a,{money:m}))),!1;if(t+e.playerShares+e.playerShortShares>e.maxShares)return n?n.log("stock.short",()=>`This '${t+e.playerShares+e.playerShortShares}' short shares would exceed ${e.symbol}'s maximum (${e.maxShares}) number of shares.`):!0!==u.suppressDialog&&Object(c.a)(`You cannot purchase this many shares. ${e.symbol} has a maximum of ${e.maxShares} shares.`),!1;const h=e.playerShortShares*e.playerAvgShortPx;o.a.loseMoney(m,"stock");const d=h+m-i.a.StockMarketCommission;if(e.playerShortShares=Math.round(e.playerShortShares+t),e.playerAvgShortPx=d/e.playerShortShares,Object(a.d)(e,t),null!=u.rerenderFn&&"function"==typeof u.rerenderFn&&u.rerenderFn(),n){const a=`Bought a short position of ${s.a.formatShares(t)} shares of ${e.symbol} for ${s.a.formatMoney(m)}. Paid ${s.a.formatMoney(i.a.StockMarketCommission)} in commission fees.`;n.log("stock.short",()=>a)}else u.suppressDialog||Object(c.a)(f.createElement(f.Fragment,null,"Bought a short position of ",s.a.formatShares(t)," shares of ",e.symbol," for"," ",f.createElement(l.a,{money:m}),". Paid ",f.createElement(l.a,{money:i.a.StockMarketCommission})," in commission fees."));return!0}function d(e,t,n=null,i={}){if(null==e||isNaN(t)||t<0)return n?n.log("stock.sellShort",()=>`Invalid arguments: stock='${e}' shares='${t}'`):i.suppressDialog||Object(c.a)("Failed to sell a short position in a stock. This is probably due to an invalid quantity. Otherwise, this may be a bug, so contact developer"),!1;if((t=Math.round(t))>e.playerShortShares&&(t=e.playerShortShares),0===t)return!1;const u=t*e.playerAvgShortPx,m=Object(a.c)(e,t,r.a.Short);if(null==m||isNaN(m)||null==u)return n?n.log("stock.sellShort",()=>"Failed to sell short position in a stock. This is probably either due to invalid arguments, or a bug"):i.suppressDialog||Object(c.a)("Failed to sell short position in a stock. This is probably either due to invalid arguments, or a bug"),!1;let h=m-u;if(isNaN(h)&&(h=0),o.a.gainMoney(m,"stock"),n&&(n.scriptRef.onlineMoneyMade+=h,o.a.scriptProdSinceLastAug+=h),e.playerShortShares=Math.round(e.playerShortShares-t),0===e.playerShortShares&&(e.playerAvgShortPx=0),Object(a.d)(e,t),null!=i.rerenderFn&&"function"==typeof i.rerenderFn&&i.rerenderFn(),n){const a=`Sold your short position of ${s.a.formatShares(t)} shares of ${e.symbol}. After commissions, you gained a total of `+s.a.formatMoney(m);n.log("stock.sellShort",()=>a)}else i.suppressDialog||Object(c.a)(f.createElement(f.Fragment,null,"Sold your short position of ",s.a.formatShares(t)," shares of ",e.symbol,". After commissions, you gained a total of ",f.createElement(l.a,{money:m})));return!0}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return f}));var a=n(0),r=n.n(a),i=n(5),o=n(384);class s{constructor(e,t){i.a.TimestampsFormat&&(e="["+Object(o.a)(i.a.TimestampsFormat)+"] "+e),this.text=e,this.color=t}}class l{constructor(e){i.a.TimestampsFormat&&(e=r.a.createElement(r.a.Fragment,null,"[",Object(o.a)(i.a.TimestampsFormat),"] ",e)),this.raw=e}}class c{constructor(e,t){i.a.TimestampsFormat&&(e="["+Object(o.a)(i.a.TimestampsFormat)+"] "+e),this.hostname=t,this.dashes=e}}class f{constructor(e,t,n){this.time=e,this.timeLeft=e,this.action=t,this.server=n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(20);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(e={name:"foo",desc:"foo"}){if(r(this,"baseCost",1),r(this,"costInc",1),r(this,"maxLvl",0),r(this,"successChanceAll",0),r(this,"successChanceStealth",0),r(this,"successChanceKill",0),r(this,"successChanceContract",0),r(this,"successChanceOperation",0),r(this,"successChanceEstimate",0),r(this,"actionTime",0),r(this,"effHack",0),r(this,"effStr",0),r(this,"effDef",0),r(this,"effDex",0),r(this,"effAgi",0),r(this,"effCha",0),r(this,"stamina",0),r(this,"money",0),r(this,"expGain",0),!e.name)throw new Error("Failed to initialize Bladeburner Skill. No name was specified in ctor");if(!e.desc)throw new Error("Failed to initialize Bladeburner Skills. No desc was specified in ctor");this.name=e.name,this.desc=e.desc,this.baseCost=e.baseCost?e.baseCost:1,this.costInc=e.costInc?e.costInc:1,e.maxLvl&&(this.maxLvl=e.maxLvl),e.successChanceAll&&(this.successChanceAll=e.successChanceAll),e.successChanceStealth&&(this.successChanceStealth=e.successChanceStealth),e.successChanceKill&&(this.successChanceKill=e.successChanceKill),e.successChanceContract&&(this.successChanceContract=e.successChanceContract),e.successChanceOperation&&(this.successChanceOperation=e.successChanceOperation),e.successChanceEstimate&&(this.successChanceEstimate=e.successChanceEstimate),e.actionTime&&(this.actionTime=e.actionTime),e.effHack&&(this.effHack=e.effHack),e.effStr&&(this.effStr=e.effStr),e.effDef&&(this.effDef=e.effDef),e.effDex&&(this.effDex=e.effDex),e.effAgi&&(this.effAgi=e.effAgi),e.effCha&&(this.effCha=e.effCha),e.stamina&&(this.stamina=e.stamina),e.money&&(this.money=e.money),e.expGain&&(this.expGain=e.expGain)}calculateCost(e,t=1){const n=(e,t)=>{if(t<=1)return Math.floor((this.baseCost+e*this.costInc)*a.a.BladeburnerSkillCost);{const n=Math.floor((this.baseCost+e*this.costInc)*a.a.BladeburnerSkillCost);return this.calculateCost(e+1,t-1)+n}};if(t<0||t%1!=0)throw new Error(t+" is an invalid number of upgrades");if(t<=100)return n(e,t);{const n=t*(2*this.baseCost+this.costInc*(2*e+t+1))/2*a.a.BladeburnerSkillCost-t/2;return Math.floor(n)}}getMultiplier(e){return"successChanceAll"===e?this.successChanceAll:"successChanceStealth"===e?this.successChanceStealth:"successChanceKill"===e?this.successChanceKill:"successChanceContract"===e?this.successChanceContract:"successChanceOperation"===e?this.successChanceOperation:"successChanceEstimate"===e?this.successChanceEstimate:"actionTime"===e?this.actionTime:"effHack"===e?this.effHack:"effStr"===e?this.effStr:"effDef"===e?this.effDef:"effDex"===e?this.effDex:"effAgi"===e?this.effAgi:"effCha"===e?this.effCha:"stamina"===e?this.stamina:"money"===e?this.money:"expGain"===e?this.expGain:0}}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e.None="",e.Shoplift="shoplift",e.RobStore="rob a store",e.Mug="mug someone",e.Larceny="commit larceny",e.Drugs="deal drugs",e.BondForgery="forge corporate bonds",e.TraffickArms="traffick illegal arms",e.Homicide="commit homicide",e.GrandTheftAuto="commit grand theft auto",e.Kidnap="kidnap someone for ransom",e.Assassination="assassinate a high-profile target",e.Heist="pull off the ultimate heist"}(a||(a={}))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(37),o=n(8),s=n(1);function l(e){return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},r.a.createElement(r.a.Fragment,null,r.a.createElement(s.a,null,e.confirmationText),r.a.createElement(o.a,{onClick:()=>{e.onConfirm()}},"Confirm"),e.additionalButton&&r.a.createElement(r.a.Fragment,null,e.additionalButton)))}},function(e,t,n){"use strict";function a(e){const t=Object.assign({},{progress:0,totalTicks:20},e);t.progress=Math.max(Math.min(t.progress,1),0);const n=Math.max(Math.floor(t.progress/(1/t.totalTicks)),1),a=Math.max(t.totalTicks-n,0);return`[${"|".repeat(n)}${"-".repeat(a)}]`}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function a(){try{return"c9b9c2c5"}catch(e){}return"DEV"}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(376),r=n(31),i=n(354),o=n(22);const s={name:"",info:"",companyPositions:{},expMultiplier:1,salaryMultiplier:1,jobStatReqOffset:0};class l{constructor(e=s){this.name=e.name,this.info=e.info,this.companyPositions=e.companyPositions,this.expMultiplier=e.expMultiplier,this.salaryMultiplier=e.salaryMultiplier,this.jobStatReqOffset=e.jobStatReqOffset,this.isPlayerEmployed=!1,this.playerReputation=1,this.favor=0,this.isMegacorp=!1,e.isMegacorp&&(this.isMegacorp=!0)}hasPosition(e){return e instanceof a.a?null!=this.companyPositions[e.name]:null!=this.companyPositions[e]}hasAgentPositions(){return null!=this.companyPositions[r.a[0]]}hasBusinessConsultantPositions(){return null!=this.companyPositions[r.c[0]]}hasBusinessPositions(){return null!=this.companyPositions[r.b[0]]}hasEmployeePositions(){return null!=this.companyPositions[r.e[1]]}hasITPositions(){return null!=this.companyPositions[r.d[0]]}hasSecurityPositions(){return null!=this.companyPositions[r.h[2]]}hasSoftwareConsultantPositions(){return null!=this.companyPositions[r.k[0]]}hasSoftwarePositions(){return null!=this.companyPositions[r.j[0]]}hasWaiterPositions(){return null!=this.companyPositions[r.e[0]]}gainFavor(){null==this.favor&&(this.favor=0),this.favor+=this.getFavorGain()}getFavorGain(){null==this.favor&&(this.favor=0);const e=Math.max(0,Object(i.a)(this.favor))+this.playerReputation;return Object(i.b)(e)-this.favor}toJSON(){return Object(o.b)("Company",this)}static fromJSON(e){return Object(o.a)(l,e.data)}}o.c.constructors.Company=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(536),r=n(22),i=n(537);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let s=0;class l{constructor(e=null,t="",n="",a="",r=[]){o(this,"code",""),o(this,"filename",""),o(this,"url",""),o(this,"module",null),o(this,"dependencies",[]),o(this,"dependents",[]),o(this,"ramUsage",0),o(this,"server",""),this.filename=t,this.code=n,this.ramUsage=0,this.server=a,this.module=null,this.moduleSequenceNumber=++s,""!==this.code&&null!==e&&this.updateRamUsage(e,r)}download(){const e=this.filename,t=new Blob([this.code],{type:"text/plain"}),n=document.createElement("a"),a=URL.createObjectURL(t);n.href=a,n.download=e,document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(a)}),0)}markUpdated(){this.module=null,this.moduleSequenceNumber=++s}saveScript(e,t,n,a,r){this.code=l.formatCode(n),this.filename=t,this.server=a,this.updateRamUsage(e,r),this.markUpdated();for(const e of this.dependents){const[t]=r.filter(t=>t.filename===e.filename&&t.server==e.server);null!==t&&t.markUpdated()}}async updateRamUsage(e,t){const n=await Object(a.a)(e,this.code,t);n.cost>0&&(this.ramUsage=Object(i.a)(n.cost),this.ramUsageEntries=n.entries),this.markUpdated()}imports(){return[]}toJSON(){return Object(r.b)("Script",this)}static fromJSON(e){const t=Object(r.a)(l,e.data);return t.url="",t.dependents=[],t}static formatCode(e){return e.replace(/^\s+|\s+$/g,"")}}r.c.constructors.Script=l},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(312),r=n(60);const i={BruteSSHProgram:new a.a(r.a.BruteSSHProgram.name,5e5,"Opens up SSH Ports."),FTPCrackProgram:new a.a(r.a.FTPCrackProgram.name,15e5,"Opens up FTP Ports."),RelaySMTPProgram:new a.a(r.a.RelaySMTPProgram.name,5e6,"Opens up SMTP Ports."),HTTPWormProgram:new a.a(r.a.HTTPWormProgram.name,3e7,"Opens up HTTP Ports."),SQLInjectProgram:new a.a(r.a.SQLInjectProgram.name,25e7,"Opens up SQL Ports."),ServerProfiler:new a.a(r.a.ServerProfiler.name,5e5,"Displays detailed information about a server."),DeepscanV1:new a.a(r.a.DeepscanV1.name,5e5,"Enables 'scan-analyze' with a depth up to 5."),DeepscanV2:new a.a(r.a.DeepscanV2.name,25e6,"Enables 'scan-analyze' with a depth up to 10."),AutolinkProgram:new a.a(r.a.AutoLink.name,1e6,"Enables direct connect via 'scan-analyze'."),FormulasProgram:new a.a(r.a.Formulas.name,5e9,"Unlock access to the formulas API.")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(471);const r={},i=["Training","Field Analysis","Recruitment","Diplomacy","Hyperbolic Regeneration Chamber","Incite Violence"];for(const e of i)r[e]=new a.a({name:e})},function(e,t,n){"use strict";let a;n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r})),function(e){e.Clubs="clubs",e.Diamonds="diamonds",e.Hearts="hearts",e.Spades="spades"}(a||(a={}));class r{constructor(e,t){if(this.value=e,this.suit=t,e<1||e>13)throw new Error("Card instantiated with improper value: "+e)}formatValue(){switch(this.value){case 1:return"A";case 11:return"J";case 12:return"Q";case 13:return"K";default:return""+this.value}}isRedSuit(){return this.suit===a.Hearts||this.suit===a.Diamonds}getStringRepresentation(){return`${this.formatValue()} of ${this.suit}`}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(22);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(e={}){r(this,"name",""),r(this,"type",-1),e.name&&(this.name=e.name),e.type&&(this.type=e.type)}toJSON(){return Object(a.b)("ActionIdentifier",this)}static fromJSON(e){return Object(a.a)(i,e.data)}}a.c.constructors.ActionIdentifier=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(153);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(e,t){r(this,"lvl",1),r(this,"owned",!1);const n="BitNode"+e,i=a.a[n];if(null==i)throw new Error("Invalid Bit Node for this Source File");this.n=e,this.name=`Source-File ${e}: ${i.name}`,this.info=t}}},,,function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return m}));var a=n(12),r=n(2),i=n(43),o=n(138),s=n(24),l=n(6),c=n(329);function f(e){const t=((new Date).getTime()-r.a.lastUpdate)/1e3;let n=e.onlineRunningTime/14400;n>=1&&(n=1);for(const n of Object.keys(e.dataMap))if(e.dataMap.hasOwnProperty(n)){if(0==e.dataMap[n][2]||null==e.dataMap[n][2])continue;const a=Object(s.d)(n);if(null==a)continue;const c=Math.round(.5*e.dataMap[n][2]/e.onlineRunningTime*t);e.log(`Called on ${a.hostname} ${c} times while offline`);const f=Object(s.d)(e.server);if(null===f)throw new Error("getServer of null key?");if(!(a instanceof i.a))throw new Error("trying to grow a non-normal server");const u=Object(o.f)(a,c,r.a,f.cpuCores);e.log(`'${a.hostname}' grown by ${l.a.format(100*u-100,"0.000000%")} while offline`)}const c=n*(e.onlineExpGained/e.onlineRunningTime)*t;r.a.gainHackingExp(c),e.offlineRunningTime+=t,e.offlineExpGained+=c;for(const n of Object.keys(e.dataMap))if(e.dataMap.hasOwnProperty(n)){if(0==e.dataMap[n][3]||null==e.dataMap[n][3])continue;const r=Object(s.d)(n);if(null==r)continue;if(!(r instanceof i.a))throw new Error("trying to weaken a non-normal server");const o=Object(s.d)(e.server);if(null===o)throw new Error("getServer of null key?");const l=Math.round(.5*e.dataMap[n][3]/e.onlineRunningTime*t);e.log(`Called weaken() on ${r.hostname} ${l} times while offline`);const c=1+(o.cpuCores-1)/16;r.weaken(a.a.ServerWeakenAmount*l*c)}}function u(e,t,n){for(let a=0;a
Filename: "+n+"

Line Number: "+r+"

This is a bug, please report to game developer with this message as well as details about how to reproduce the bug.

If you want to be safe, I suggest refreshing the game WITHOUT saving so that your save doesn't get corrupted")}},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),function(e){e[e.Export=0]="Export",e[e.SmartSupply=1]="SmartSupply",e[e.MarketResearchDemand=2]="MarketResearchDemand",e[e.MarketDataCompetition=3]="MarketDataCompetition",e[e.VeChain=4]="VeChain",e[e.ShadyAccounting=5]="ShadyAccounting",e[e.GovernmentPartnership=6]="GovernmentPartnership",e[e.WarehouseAPI=7]="WarehouseAPI",e[e.OfficeAPI=8]="OfficeAPI"}(a||(a={}));const r={[a.Export]:{index:0,price:2e10,name:"Export",desc:"Develop infrastructure to export your materials to your other facilities. This allows you to move materials around between different divisions and cities."},[a.SmartSupply]:{index:1,price:25e9,name:"Smart Supply",desc:"Use advanced AI to anticipate your supply needs. This allows you to purchase exactly however many materials you need for production."},[a.MarketResearchDemand]:{index:2,price:5e9,name:"Market Research - Demand",desc:"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."},[a.MarketDataCompetition]:{index:3,price:5e9,name:"Market Data - Competition",desc:"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."},[a.VeChain]:{index:4,price:1e10,name:"VeChain",desc:"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."},[a.ShadyAccounting]:{index:5,price:5e14,name:"Shady Accounting",desc:"Utilize unscrupulous accounting practices and pay off government officials to save money on taxes. This reduces the dividend tax rate by 5%."},[a.GovernmentPartnership]:{index:6,price:2e15,name:"Government Partnership",desc:"Help national governments further their agendas in exchange for lowered taxes. This reduces the dividend tax rate by 10%"},[a.WarehouseAPI]:{index:7,price:5e10,name:"Warehouse API",desc:"Enables the warehouse API."},[a.OfficeAPI]:{index:8,price:5e10,name:"Office API",desc:"Enables the office API."}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(73);const r=e=>{const t=[];for(const[e,n]of Object.entries(a.a))n.isSpecial||t.push(e);return t.filter(t=>!e.hasAugmentation(t))},i=e=>1+(e.getIntelligenceBonus(3)-1)/3,o=(e,t)=>t.time/i(e)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(135),r=n(57);const i={};i[r.a.OperationTyphoon]=new a.a({name:r.a.OperationTyphoon,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}),i[r.a.OperationZero]=new a.a({name:r.a.OperationZero,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}),i[r.a.OperationX]=new a.a({name:r.a.OperationX,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}),i[r.a.OperationTitan]=new a.a({name:r.a.OperationTitan,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}),i[r.a.OperationAres]=new a.a({name:r.a.OperationAres,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}),i[r.a.OperationArchangel]=new a.a({name:r.a.OperationArchangel,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}),i[r.a.OperationJuggernaut]=new a.a({name:r.a.OperationJuggernaut,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}),i[r.a.OperationRedDragon]=new a.a({name:r.a.OperationRedDragon,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}),i[r.a.OperationK]=new a.a({name:r.a.OperationK,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}),i[r.a.OperationDeckard]=new a.a({name:r.a.OperationDeckard,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}),i[r.a.OperationTyrell]=new a.a({name:r.a.OperationTyrell,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}),i[r.a.OperationWallace]=new a.a({name:r.a.OperationWallace,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}),i[r.a.OperationShoulderOfOrion]=new a.a({name:r.a.OperationShoulderOfOrion,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}),i[r.a.OperationHyron]=new a.a({name:r.a.OperationHyron,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}),i[r.a.OperationMorpheus]=new a.a({name:r.a.OperationMorpheus,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}),i[r.a.OperationIonStorm]=new a.a({name:r.a.OperationIonStorm,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}),i[r.a.OperationAnnihilus]=new a.a({name:r.a.OperationAnnihilus,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}),i[r.a.OperationUltron]=new a.a({name:r.a.OperationUltron,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}),i[r.a.OperationCenturion]=new a.a({name:r.a.OperationCenturion,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}}),i[r.a.OperationVindictus]=new a.a({name:r.a.OperationVindictus,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}}),i[r.a.OperationDaedalus]=new a.a({name:r.a.OperationDaedalus,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";n.d(t,"a",(function(){return i}));var a=n(122),r=n(22);class i{constructor(e){e?(this.id=e.fragment.id,this.x=e.x,this.y=e.y,this.highestCharge=0,this.numCharge=0,this.rotation=e.rotation):(this.id=-1,this.x=-1,this.y=-1,this.highestCharge=0,this.numCharge=0,this.rotation=0)}collide(e){const t=this.fragment(),n=e.fragment(),a=e.x-this.x,r=e.y-this.y,i=Math.max(t.shape.length,t.shape[0].length);for(let o=0;o[this.x+e[0],this.y+e[1]])}copy(){return Object.assign({},this)}toJSON(){return Object(r.b)("ActiveFragment",this)}static fromJSON(e){return Object(r.a)(i,e.data)}}r.c.constructors.ActiveFragment=i},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(12),r=n(474);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o{constructor(e="",t,n=0,a=0,r=0,o=0,s={}){i(this,"difficulty",0),i(this,"karma",0),i(this,"kills",0),i(this,"money",0),i(this,"name",""),i(this,"time",0),i(this,"hacking_success_weight",0),i(this,"strength_success_weight",0),i(this,"defense_success_weight",0),i(this,"dexterity_success_weight",0),i(this,"agility_success_weight",0),i(this,"charisma_success_weight",0),i(this,"hacking_exp",0),i(this,"strength_exp",0),i(this,"defense_exp",0),i(this,"dexterity_exp",0),i(this,"agility_exp",0),i(this,"charisma_exp",0),i(this,"intelligence_exp",0),this.name=e,this.type=t,this.time=n,this.money=a,this.difficulty=r,this.karma=o,this.hacking_success_weight=s.hacking_success_weight?s.hacking_success_weight:0,this.strength_success_weight=s.strength_success_weight?s.strength_success_weight:0,this.defense_success_weight=s.defense_success_weight?s.defense_success_weight:0,this.dexterity_success_weight=s.dexterity_success_weight?s.dexterity_success_weight:0,this.agility_success_weight=s.agility_success_weight?s.agility_success_weight:0,this.charisma_success_weight=s.charisma_success_weight?s.charisma_success_weight:0,this.hacking_exp=s.hacking_exp?s.hacking_exp:0,this.strength_exp=s.strength_exp?s.strength_exp:0,this.defense_exp=s.defense_exp?s.defense_exp:0,this.dexterity_exp=s.dexterity_exp?s.dexterity_exp:0,this.agility_exp=s.agility_exp?s.agility_exp:0,this.charisma_exp=s.charisma_exp?s.charisma_exp:0,this.intelligence_exp=s.intelligence_exp?s.intelligence_exp:0,this.kills=s.kills?s.kills:0}commit(e,t=1,n=null){return t<=0&&(t=1),e.startWork(new r.a({crimeType:this.type,singularity:null!==n})),this.time}successRate(e){let t=this.hacking_success_weight*e.hacking+this.strength_success_weight*e.strength+this.defense_success_weight*e.defense+this.dexterity_success_weight*e.dexterity+this.agility_success_weight*e.agility+this.charisma_success_weight*e.charisma+a.a.IntelligenceCrimeWeight*e.intelligence;return t/=a.a.MaxSkillLevel,t/=this.difficulty,t*=e.mults.crime_success,t*=e.getIntelligenceBonus(1),Math.min(t,1)}}},,,,,,,,,function(e,t,n){"use strict";function a(e,t=1){return 1+t*Math.pow(e,.8)/600}n.d(t,"a",(function(){return a}))},,function(e,t,n){"use strict";function a(e){const t=[];for(let n=0;n-1&&(document.achievements=[],function(){function t(e){return e=e.replace(/\/\/+/g,"/"),(e=Object(i.k)(e)).includes("/")&&(e="/"+Object(i.k)(e)),e}document.getFiles=function(){const e=Object(l.d)("home");return null===e?{res:!1,msg:"Home server does not exist."}:{res:!0,data:{files:e.scripts.map(e=>({filename:e.filename,code:e.code,ramUsage:e.ramUsage}))}}},document.deleteFile=function(e){e=t(e);const n=Object(l.d)("home");return null===n?{res:!1,msg:"Home server does not exist."}:n.removeFile(e)},document.saveFile=function(n,r){var i;n=t(n),r=e.from(r,"base64").toString();const o=Object(l.d)("home");if(null===o)return{res:!1,msg:"Home server does not exist."};const{success:s,overwritten:c}=o.writeToScriptFile(a.a,n,r);let f;return s&&(f=o.getScript(n)),{res:s,data:{overwritten:c,ramUsage:null===(i=f)||void 0===i?void 0:i.ramUsage}}}}(),function(){const e={terminal:(e,t)=>{const n={info:o.a.info,warn:o.a.warn,error:o.a.error,success:o.a.success};let a;t&&(a=n[t]),a||(a=o.a.print),a.bind(o.a)(e)},toast:(e,t,n=2e3)=>s.b.emit(e,t,n)};window.appNotifier=e}(),function(){const e={triggerSave:()=>c.c.saveGame(!0),triggerGameExport:()=>{try{c.c.exportGame()}catch(e){console.error(e),s.b.emit("Could not export game.",s.d.ERROR,2e3)}},triggerScriptsExport:()=>Object(u.b)("*",a.a.getHomeComputer()),getSaveData:()=>({save:c.c.getSaveString(f.a.ExcludeRunningScriptsFromSave),fileName:c.c.getSaveFileName()}),getSaveInfo:async e=>{try{return(await c.c.getImportDataFromString(e)).playerData}catch(e){return void console.error(e)}},pushSaveData:(e,t=!1)=>r.b.toImportSave(e,t)};window.appSaveFns=e}(),function(){const e=window.electronBridge;if(!e)return;e.receive("get-save-data-request",()=>{const t=window.appSaveFns.getSaveData();e.send("get-save-data-response",t)}),e.receive("get-save-info-request",async t=>{if("string"!=typeof t)throw new Error("Error while trying to get save info");const n=await window.appSaveFns.getSaveInfo(t);e.send("get-save-info-response",n)}),e.receive("push-save-request",e=>{if("object"!=typeof e)throw new Error("Error trying to push save request");const{save:t,automatic:n=!1}=e;window.appSaveFns.pushSaveData(t,n)}),e.receive("trigger-save",()=>window.appSaveFns.triggerSave().then(()=>{e.send("save-completed")}).catch(e=>{console.error(e),s.b.emit("Could not save game.",s.d.ERROR,2e3)})),e.receive("trigger-game-export",()=>{try{window.appSaveFns.triggerGameExport()}catch(e){console.error(e),s.b.emit("Could not export game.",s.d.ERROR,2e3)}}),e.receive("trigger-scripts-export",()=>{try{window.appSaveFns.triggerScriptsExport()}catch(e){console.error(e),s.b.emit("Could not export scripts.",s.d.ERROR,2e3)}})}())}function p(e){const t=window.electronBridge;t&&t.send("push-game-saved",e)}function g(){const e=window.electronBridge;e&&e.send("push-game-ready",{player:{identifier:a.a.identifier,playtime:a.a.totalPlaytime,lastSave:a.a.lastSave},game:{version:m.a.VersionString,hash:Object(h.a)()}})}function y(e){const t=window.electronBridge;t&&(t.send("push-import-result",{wasImported:e}),b())}function b(){const e=window.electronBridge;e&&e.send("push-disable-restore",{duration:6e4})}}).call(this,n(168).Buffer)},,function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f}));var a=n(14),r=n(22),i=n(11),o=n(12),s=n(60),l=n(154);const c=e=>null!==e&&e.type===l.b.CREATE_PROGRAM;class f extends l.a{constructor(e){var t,n;if(super(l.b.CREATE_PROGRAM,null===(t=null==e?void 0:e.singularity)||void 0===t||t),this.unitCompleted=0,this.programName=null!==(n=null==e?void 0:e.programName)&&void 0!==n?n:"",null!=e&&e.player){const t=e.player;for(let e=0;e=100)break;this.unitCompleted=r/100*this.unitNeeded(),t.getHomeComputer().programs.splice(e,1)}}}}unitNeeded(){var e,t;return null!==(e=null===(t=this.getProgram().create)||void 0===t?void 0:t.time)&&void 0!==e?e:0}getProgram(){const e=Object.values(s.a).find(e=>e.name.toLowerCase()===this.programName.toLowerCase());if(!e)throw new Error("Create program work started with invalid program "+this.programName);return e}process(e,t){var n,a;let r=1;e.hasAugmentation(i.a.NeuroreceptorManager)||(r=e.focus?1:o.a.BaseFocusBonus);const s=null!==(n=null===(a=this.getProgram().create)||void 0===a?void 0:a.level)&&void 0!==n?n:0;let l=e.hacking/s*e.getIntelligenceBonus(3);return l=1+(l-1)/5,l*=r,this.cyclesWorked+=t,this.unitCompleted+=o.a._idleSpeed*t*l,this.unitCompleted>=this.unitNeeded()}finish(e,t){const n=this.programName;if(t){if(!e.getHomeComputer().programs.includes(n)){const t=n+"-"+(100*this.unitCompleted/this.unitNeeded()).toFixed(2)+"%-INC";e.getHomeComputer().programs.push(t)}}else{if(e.gainIntelligenceExp(o.a.IntelligenceProgramBaseExpGain*this.cyclesWorked*o.a._idleSpeed/1e3),!this.singularity){const e=[`You've finished creating ${n}!`,"The new program can be found on your home computer."];Object(a.a)(e.join("
"))}e.getHomeComputer().programs.includes(n)||e.getHomeComputer().programs.push(n)}}toJSON(){return Object(r.b)("CreateProgramWork",this)}static fromJSON(e){return Object(r.a)(f,e.data)}}r.c.constructors.CreateProgramWork=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return N}));var a=n(11),r=n(139),i=n(230),o=n(12),s=n(50),l=n(110),c=n(29),f=n(80),u=n(189),m=n(40),h=n(54),d=n(226),p=n(92),g=n(15),y=n(2),b=n(60),E=n(24),v=n(87),k=n(43),w=n(91),_=n(27),S=n(1153),C=n(4),x=n(57),L=n(88);const O=S.a;function M(){const e=Object(E.d)(v.a.WorldDaemon);return e instanceof k.a&&(!!e.backdoorInstalled||null!==y.a.bladeburner&&y.a.bladeburner.blackops.hasOwnProperty(x.a.OperationDaedalus))}function T(e,t){return e.bitNodeN===t||e.sourceFiles.some(e=>e.n===t)}function A(e){return e.sourceFiles.some(e=>1===e.n)}const R={[C.a.CyberSec.toUpperCase()]:{...O[C.a.CyberSec.toUpperCase()],Icon:"CSEC",Condition:()=>y.a.factions.includes(C.a.CyberSec)},[C.a.NiteSec.toUpperCase()]:{...O[C.a.NiteSec.toUpperCase()],Icon:C.a.NiteSec,Condition:()=>y.a.factions.includes(C.a.NiteSec)},THE_BLACK_HAND:{...O.THE_BLACK_HAND,Icon:"TBH",Condition:()=>y.a.factions.includes(C.a.TheBlackHand)},[C.a.BitRunners.toUpperCase()]:{...O[C.a.BitRunners.toUpperCase()],Icon:C.a.BitRunners.toLowerCase(),Condition:()=>y.a.factions.includes(C.a.BitRunners)},[C.a.Daedalus.toUpperCase()]:{...O[C.a.Daedalus.toUpperCase()],Icon:C.a.Daedalus.toLowerCase(),Condition:()=>y.a.factions.includes(C.a.Daedalus)},THE_COVENANT:{...O.THE_COVENANT,Icon:C.a.TheCovenant.toLowerCase().replace(/ /g,""),Condition:()=>y.a.factions.includes(C.a.TheCovenant)},[C.a.Illuminati.toUpperCase()]:{...O[C.a.Illuminati.toUpperCase()],Icon:C.a.Illuminati.toLowerCase(),Condition:()=>y.a.factions.includes(C.a.Illuminati)},"BRUTESSH.EXE":{...O["BRUTESSH.EXE"],Icon:"p0",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.BruteSSHProgram.name)},"FTPCRACK.EXE":{...O["FTPCRACK.EXE"],Icon:"p1",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.FTPCrackProgram.name)},"RELAYSMTP.EXE":{...O["RELAYSMTP.EXE"],Icon:"p2",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.RelaySMTPProgram.name)},"HTTPWORM.EXE":{...O["HTTPWORM.EXE"],Icon:"p3",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.HTTPWormProgram.name)},"SQLINJECT.EXE":{...O["SQLINJECT.EXE"],Icon:"p4",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.SQLInjectProgram.name)},"FORMULAS.EXE":{...O["FORMULAS.EXE"],Icon:"formulas",Condition:()=>y.a.getHomeComputer().programs.includes(b.a.Formulas.name)},"SF1.1":{...O["SF1.1"],Icon:"SF1.1",Visible:()=>T(y.a,1),Condition:()=>y.a.sourceFileLvl(1)>=1},"SF2.1":{...O["SF2.1"],Icon:"SF2.1",Visible:()=>T(y.a,2),Condition:()=>y.a.sourceFileLvl(2)>=1},"SF3.1":{...O["SF3.1"],Icon:"SF3.1",Visible:()=>T(y.a,3),Condition:()=>y.a.sourceFileLvl(3)>=1},"SF4.1":{...O["SF4.1"],Icon:"SF4.1",Visible:()=>T(y.a,4),Condition:()=>y.a.sourceFileLvl(4)>=1},"SF5.1":{...O["SF5.1"],Icon:"SF5.1",Visible:()=>T(y.a,5),Condition:()=>y.a.sourceFileLvl(5)>=1},"SF6.1":{...O["SF6.1"],Icon:"SF6.1",Visible:()=>T(y.a,6),Condition:()=>y.a.sourceFileLvl(6)>=1},"SF7.1":{...O["SF7.1"],Icon:"SF7.1",Visible:()=>T(y.a,7),Condition:()=>y.a.sourceFileLvl(7)>=1},"SF8.1":{...O["SF8.1"],Icon:"SF8.1",Visible:()=>T(y.a,8),Condition:()=>y.a.sourceFileLvl(8)>=1},"SF9.1":{...O["SF9.1"],Icon:"SF9.1",Visible:()=>T(y.a,9),Condition:()=>y.a.sourceFileLvl(9)>=1},"SF10.1":{...O["SF10.1"],Icon:"SF10.1",Visible:()=>T(y.a,10),Condition:()=>y.a.sourceFileLvl(10)>=1},"SF11.1":{...O["SF11.1"],Icon:"SF11.1",Visible:()=>T(y.a,11),Condition:()=>y.a.sourceFileLvl(11)>=1},"SF12.1":{...O["SF12.1"],Icon:"SF12.1",Visible:()=>T(y.a,12),Condition:()=>y.a.sourceFileLvl(12)>=1},MONEY_1Q:{...O.MONEY_1Q,Icon:"$1Q",Condition:()=>y.a.money>=1e18},MONEY_M1B:{...O.MONEY_M1B,Icon:"-1b",Secret:!0,Condition:()=>y.a.money<=-1e9},INSTALL_1:{...O.INSTALL_1,Icon:"install",Condition:()=>y.a.augmentations.length>=1},INSTALL_100:{...O.INSTALL_100,Icon:"install_100",Condition:()=>y.a.augmentations.length>=100},QUEUE_40:{...O.QUEUE_40,Icon:"queue40",Condition:()=>y.a.queuedAugmentations.length>=40},HACKING_100000:{...O.HACKING_100000,Icon:"hack100000",Condition:()=>y.a.hacking>=1e5},COMBAT_3000:{...O.COMBAT_3000,Icon:"combat3000",Condition:()=>y.a.strength>=3e3&&y.a.defense>=3e3&&y.a.dexterity>=3e3&&y.a.agility>=3e3},NEUROFLUX_255:{...O.NEUROFLUX_255,Icon:"nf255",Condition:()=>y.a.augmentations.some(e=>e.name===a.a.NeuroFluxGovernor&&e.level>=255)},NS2:{...O.NS2,Icon:"ns2",Condition:()=>y.a.getHomeComputer().scripts.some(e=>e.filename.endsWith(".js")||e.filename.endsWith(".ns"))},FROZE:{...O.FROZE,Icon:"forze",Condition:()=>location.href.includes("noScripts")},RUNNING_SCRIPTS_1000:{...O.RUNNING_SCRIPTS_1000,Icon:"run1000",Condition:()=>{let e=0;for(const t of Object(E.c)())e+=t.runningScripts.length;return e>=1e3}},DRAIN_SERVER:{...O.DRAIN_SERVER,Icon:"drain",Condition:()=>{for(const e of Object(E.c)())if(e instanceof k.a&&e.moneyMax>0&&0===e.moneyAvailable)return!0;return!1}},MAX_RAM:{...O.MAX_RAM,Icon:"maxram",Condition:()=>y.a.getHomeComputer().maxRam===o.a.HomeComputerMaxRam},MAX_CORES:{...O.MAX_CORES,Icon:"maxcores",Condition:()=>8===y.a.getHomeComputer().cpuCores},SCRIPTS_30:{...O.SCRIPTS_30,Icon:"folders",Condition:()=>y.a.getHomeComputer().scripts.length>=30},KARMA_1000000:{...O.KARMA_1000000,Icon:"karma",Secret:!0,Condition:()=>y.a.karma<=-1e6},STOCK_1q:{...O.STOCK_1q,Icon:"$1Q",Condition:()=>y.a.moneySourceB.stock>=1e15},DISCOUNT:{...O.DISCOUNT,Icon:"discount",Condition:()=>{const e=Object(E.d)("powerhouse-fitness");return e instanceof k.a&&e.backdoorInstalled}},SCRIPT_32GB:{...O.SCRIPT_32GB,Icon:"bigcost",Condition:()=>y.a.getHomeComputer().scripts.some(e=>e.ramUsage>=32)},FIRST_HACKNET_NODE:{...O.FIRST_HACKNET_NODE,Icon:"node",Condition:()=>!Object(h.g)(y.a)&&y.a.hacknetNodes.length>0},"30_HACKNET_NODE":{...O["30_HACKNET_NODE"],Icon:"hacknet-all",Condition:()=>!Object(h.g)(y.a)&&y.a.hacknetNodes.length>=30},MAX_HACKNET_NODE:{...O.MAX_HACKNET_NODE,Icon:"hacknet-max",Condition:()=>{if(Object(h.g)(y.a))return!1;for(const e of y.a.hacknetNodes){if(!(e instanceof d.a))return!1;if(e.ram===m.a.MaxRam&&e.cores===m.a.MaxCores&&e.level===m.a.MaxLevel)return!0}return!1}},HACKNET_NODE_10M:{...O.HACKNET_NODE_10M,Icon:"hacknet-10m",Condition:()=>!Object(h.g)(y.a)&&y.a.moneySourceB.hacknet>=1e7},REPUTATION_10M:{...O.REPUTATION_10M,Icon:"reputation",Condition:()=>Object.values(c.a).some(e=>e.playerReputation>=1e7)},DONATION:{...O.DONATION,Icon:"donation",Condition:()=>Object.values(c.a).some(e=>e.favor>=150)},TRAVEL:{...O.TRAVEL,Icon:"TRAVEL",Condition:()=>y.a.city!==g.a.Sector12},WORKOUT:{...O.WORKOUT,Icon:"WORKOUT",Condition:()=>Object(L.d)(y.a.currentWork)},TOR:{...O.TOR,Icon:"TOR",Condition:()=>y.a.hasTorRouter()},HOSPITALIZED:{...O.HOSPITALIZED,Icon:"OUCH",Condition:()=>0!==y.a.moneySourceB.hospitalization},GANG:{...O.GANG,Icon:"GANG",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang},FULL_GANG:{...O.FULL_GANG,Icon:"GANGMAX",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&y.a.gang.members.length===u.a.MaximumGangMembers},GANG_TERRITORY:{...O.GANG_TERRITORY,Icon:"GANG100%",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&f.a[y.a.gang.facName].territory>=.999},GANG_MEMBER_POWER:{...O.GANG_MEMBER_POWER,Icon:"GANG10000",Visible:()=>T(y.a,2),Condition:()=>null!==y.a.gang&&y.a.gang.members.some(e=>e.hack>=1e4||e.str>=1e4||e.def>=1e4||e.dex>=1e4||e.agi>=1e4||e.cha>=1e4)},CORPORATION:{...O.CORPORATION,Icon:"CORP",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation},CORPORATION_BRIBE:{...O.CORPORATION_BRIBE,Icon:"CORPLOBBY",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&1===y.a.corporation.unlockUpgrades[6]},CORPORATION_PROD_1000:{...O.CORPORATION_PROD_1000,Icon:"CORP1000",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&y.a.corporation.divisions.some(e=>e.prodMult>=1e3)},CORPORATION_EMPLOYEE_3000:{...O.CORPORATION_EMPLOYEE_3000,Icon:"CORPCITY",Visible:()=>T(y.a,3),Condition:()=>{if(null===y.a.corporation)return!1;for(const e of y.a.corporation.divisions)for(const t of Object.values(e.offices))if(0!==t&&t.employees.length>=3e3)return!0;return!1}},CORPORATION_REAL_ESTATE:{...O.CORPORATION_REAL_ESTATE,Icon:"CORPRE",Name:"Own the land",Description:"Expand to the Real Estate division.",Visible:()=>T(y.a,3),Condition:()=>null!==y.a.corporation&&y.a.corporation.divisions.some(e=>e.type===s.a.RealEstate)},INTELLIGENCE_255:{...O.INTELLIGENCE_255,Icon:"INT255",Visible:()=>T(y.a,5),Condition:()=>y.a.intelligence>=255},BLADEBURNER_DIVISION:{...O.BLADEBURNER_DIVISION,Icon:"BLADE",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner},BLADEBURNER_OVERCLOCK:{...O.BLADEBURNER_OVERCLOCK,Icon:"BLADEOVERCLOCK",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner&&y.a.bladeburner.skills[r.a.Overclock]===i.a[r.a.Overclock].maxLvl},BLADEBURNER_UNSPENT_100000:{...O.BLADEBURNER_UNSPENT_100000,Icon:"BLADE100K",Visible:()=>T(y.a,6),Condition:()=>null!==y.a.bladeburner&&y.a.bladeburner.skillPoints>=1e5},"4S":{...O["4S"],Icon:"4S",Condition:()=>y.a.has4SData},FIRST_HACKNET_SERVER:{...O.FIRST_HACKNET_SERVER,Icon:"HASHNET",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hacknetNodes.length>0,AdditionalUnlock:[O.FIRST_HACKNET_NODE.ID]},ALL_HACKNET_SERVER:{...O.ALL_HACKNET_SERVER,Icon:"HASHNETALL",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hacknetNodes.length===m.b.MaxServers,AdditionalUnlock:[O["30_HACKNET_NODE"].ID]},MAX_HACKNET_SERVER:{...O.MAX_HACKNET_SERVER,Icon:"HASHNETALL",Visible:()=>T(y.a,9),Condition:()=>{if(!Object(h.g)(y.a))return!1;for(const e of y.a.hacknetNodes){if("string"!=typeof e)return!1;const t=Object(E.d)(e);if(!(t instanceof p.a))return!1;if(t.maxRam===m.b.MaxRam&&t.cores===m.b.MaxCores&&t.level===m.b.MaxLevel&&t.cache===m.b.MaxCache)return!0}return!1},AdditionalUnlock:[O.MAX_HACKNET_NODE.ID]},HACKNET_SERVER_1B:{...O.HACKNET_SERVER_1B,Icon:"HASHNETMONEY",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.moneySourceB.hacknet>=1e9,AdditionalUnlock:[O.HACKNET_NODE_10M.ID]},MAX_CACHE:{...O.MAX_CACHE,Icon:"HASHNETCAP",Visible:()=>T(y.a,9),Condition:()=>Object(h.g)(y.a)&&y.a.hashManager.hashes===y.a.hashManager.capacity&&y.a.hashManager.capacity>0},SLEEVE_8:{...O.SLEEVE_8,Icon:"SLEEVE8",Visible:()=>T(y.a,10),Condition:()=>8===y.a.sleeves.length&&3===y.a.sourceFileLvl(10)},INDECISIVE:{...O.INDECISIVE,Icon:"1H",Visible:()=>A(y.a),Condition:function(){let e=0;return setInterval(()=>{w.b.page()===_.a.BitVerse?e++:e=0},6e4),()=>e>60}()},FAST_BN:{...O.FAST_BN,Icon:"2DAYS",Visible:()=>A(y.a),Condition:()=>M()&&y.a.playtimeSinceLastBitnode<1728e5},CHALLENGE_BN1:{...O.CHALLENGE_BN1,Icon:"BN1+",Visible:()=>A(y.a),Condition:()=>1===y.a.bitNodeN&&M()&&y.a.getHomeComputer().maxRam<=128&&1===y.a.getHomeComputer().cpuCores},CHALLENGE_BN2:{...O.CHALLENGE_BN2,Icon:"BN2+",Visible:()=>T(y.a,2),Condition:()=>2===y.a.bitNodeN&&M()&&null===y.a.gang},CHALLENGE_BN3:{...O.CHALLENGE_BN3,Icon:"BN3+",Visible:()=>T(y.a,3),Condition:()=>3===y.a.bitNodeN&&M()&&null===y.a.corporation},CHALLENGE_BN6:{...O.CHALLENGE_BN6,Icon:"BN6+",Visible:()=>T(y.a,6),Condition:()=>6===y.a.bitNodeN&&M()&&null===y.a.bladeburner},CHALLENGE_BN7:{...O.CHALLENGE_BN7,Icon:"BN7+",Visible:()=>T(y.a,7),Condition:()=>7===y.a.bitNodeN&&M()&&null===y.a.bladeburner},CHALLENGE_BN8:{...O.CHALLENGE_BN8,Icon:"BN8+",Visible:()=>T(y.a,8),Condition:()=>8===y.a.bitNodeN&&M()&&!y.a.has4SData&&!y.a.has4SDataTixApi},CHALLENGE_BN9:{...O.CHALLENGE_BN9,Icon:"BN9+",Visible:()=>T(y.a,9),Condition:()=>9===y.a.bitNodeN&&M()&&0===y.a.moneySourceB.hacknet&&0===y.a.moneySourceB.hacknet_expenses},CHALLENGE_BN10:{...O.CHALLENGE_BN10,Icon:"BN10+",Visible:()=>T(y.a,10),Condition:()=>10===y.a.bitNodeN&&M()&&!y.a.sleeves.some(e=>e.augmentations.length>0||e.hacking_exp>0||e.strength_exp>0||e.defense_exp>0||e.agility_exp>0||e.dexterity_exp>0||e.charisma_exp>0)},CHALLENGE_BN12:{...O.CHALLENGE_BN12,Icon:"BN12+",Visible:()=>T(y.a,12),Condition:()=>y.a.sourceFileLvl(12)>=50},BYPASS:{...O.BYPASS,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.Bypass)},PROTOTYPETAMPERING:{...O.PROTOTYPETAMPERING,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.PrototypeTampering)},UNCLICKABLE:{...O.UNCLICKABLE,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.Unclickable)},UNDOCUMENTEDFUNCTIONCALL:{...O.UNDOCUMENTEDFUNCTIONCALL,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.UndocumentedFunctionCall)},TIMECOMPRESSION:{...O.TIMECOMPRESSION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.TimeCompression)},REALITYALTERATION:{...O.REALITYALTERATION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.RealityAlteration)},N00DLES:{...O.N00DLES,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.N00dles)},EDITSAVEFILE:{...O.EDITSAVEFILE,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.EditSaveFile)},UNACHIEVABLE:{...O.UNACHIEVABLE,Icon:"SF-1",Secret:!0,Condition:()=>!1},CHALLENGE_BN13:{...O.CHALLENGE_BN13,Icon:"BN13+",Visible:()=>T(y.a,13),Condition:()=>13===y.a.bitNodeN&&M()&&!y.a.augmentations.some(e=>e.name===a.a.StaneksGift1)},DEVMENU:{...O.DEVMENU,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.YoureNotMeantToAccessThis)},RAINBOW:{...O.RAINBOW,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.INeedARainbow)},TRUE_RECURSION:{...O.TRUE_RECURSION,Icon:"SF-1",Secret:!0,Condition:()=>y.a.exploits.includes(l.a.TrueRecursion)}};function N(){const e=y.a.achievements.map(e=>e.ID),t=Object.values(R).filter(t=>!e.includes(t.ID)&&t.Condition()).flatMap(e=>[e.ID,...e.AdditionalUnlock||[]]);for(const e of t)y.a.giveAchievement(e);document.achievements=[...y.a.achievements.map(e=>e.ID)]}},function(e,t,n){"use strict";n.d(t,"b",(function(){return W})),n.d(t,"a",(function(){return H}));var a=n(0),r=n.n(a),i=n(127),o=n(118),s=n(142),l=n(6),c=n(140),f=n(1192),u=n(25),m=n(150),h=n(151),d=n(30),p=n(48),g=n(1),y=n(8),b=n(112),E=n(480),v=n.n(E),k=n(1198),w=n.n(k),_=n(5),S=n(28),C=n(404),x=n(20),L=n(19),O=n(18),M=n(88),T=n(12),A=n(305),R=n(382),N=n(223),P=n(392),I=n(322),F=n(474);function D(){const e=Object(i.a)(),t=S.b.Player(),n=W();if(0===t.intelligence)return r.a.createElement(r.a.Fragment,null);const a=t.calculateSkillProgress(t.intelligence_exp);return r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:n.cell}},r.a.createElement(g.a,{classes:{root:n.int}},"Int ")),r.a.createElement(d.a,{align:"right",classes:{root:n.cell}},r.a.createElement(g.a,{classes:{root:n.int}},l.a.formatSkill(t.intelligence))),r.a.createElement(d.a,{align:"right",classes:{root:n.cell}},r.a.createElement(g.a,{id:"overview-int-hook",classes:{root:n.int}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:a,color:e.colors.int})))}function j(){const e=S.b.Player(),t=W(),n=e.bladeburner;if(null===n)return r.a.createElement(r.a.Fragment,null);const a=n.getTypeAndNameFromActionId(n.action);return"Idle"===a.type?r.a.createElement(r.a.Fragment,null):r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:t.cellNone}},r.a.createElement(g.a,null,"Bladeburner:"))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:t.cellNone}},r.a.createElement(g.a,null,a.type,": ",a.name))))}function B({tooltip:e,children:t,onClickFocus:n,header:a}){const i=W();return r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:i.workCell}},r.a.createElement(L.a,{title:r.a.createElement(r.a.Fragment,null,e)},r.a.createElement(g.a,{className:i.workHeader,sx:{pt:1,pb:.5}},a)))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",colSpan:2,classes:{root:i.workCell}},r.a.createElement(g.a,{className:i.workSubtitles},t))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",align:"center",colSpan:2,classes:{root:i.cellNone}},r.a.createElement(y.a,{sx:{mt:1},onClick:n},"Focus"))))}function G(){const e=S.b.Player(),t=S.b.Router();if(null===e.currentWork||e.focus)return r.a.createElement(r.a.Fragment,null);let n=r.a.createElement(r.a.Fragment,null),a=r.a.createElement(r.a.Fragment,null),i=r.a.createElement(r.a.Fragment,null);if(Object(F.b)(e.currentWork)){const t=e.currentWork.getCrime(),o=e.currentWork.unitCompleted/t.time*100;n=r.a.createElement(r.a.Fragment,null,e.currentWork.crimeType),a=r.a.createElement(r.a.Fragment,null,"You are attempting to ",e.currentWork.crimeType),i=r.a.createElement(r.a.Fragment,null,o.toFixed(2),"%")}if(Object(M.d)(e.currentWork)&&(n=r.a.createElement(r.a.Fragment,null,e.currentWork.getClass().youAreCurrently),a=r.a.createElement(r.a.Fragment,null,"You are ",e.currentWork.getClass().youAreCurrently),i=r.a.createElement(r.a.Fragment,null,Object(u.d)(e.currentWork.cyclesWorked*T.a._idleSpeed))),Object(A.b)(e.currentWork)){const t=e.currentWork;n=r.a.createElement(r.a.Fragment,null,"Coding ",t.programName),a=r.a.createElement(r.a.Fragment,null,"Creating a program"),i=r.a.createElement(r.a.Fragment,null,t.programName," ",(t.unitCompleted/t.unitNeeded()*100).toFixed(2),"%")}if(Object(R.b)(e.currentWork)){const t=e.currentWork;n=r.a.createElement(r.a.Fragment,null,"Grafting ",t.augmentation),a=r.a.createElement(r.a.Fragment,null,"Grafting an Augmentation"),i=r.a.createElement(r.a.Fragment,null,r.a.createElement("strong",null,(t.unitCompleted/t.unitNeeded()*100).toFixed(2),"%")," done")}if(Object(N.b)(e.currentWork)){const t=e.currentWork;a=r.a.createElement(r.a.Fragment,null,"Working for ",r.a.createElement("strong",null,t.factionName)),i=r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{reputation:t.getFaction().playerReputation})," rep",r.a.createElement("br",null),"(",r.a.createElement(P.a,{reputation:t.getReputationRate(e)*(1e3/T.a._idleSpeed)}),")")}if(Object(I.b)(e.currentWork)){const t=e.currentWork;n=r.a.createElement(r.a.Fragment,null,e.jobs[t.companyName]," at ",r.a.createElement("strong",null,t.companyName)),a=r.a.createElement(r.a.Fragment,null,"Working at ",r.a.createElement("strong",null,t.companyName)),i=r.a.createElement(r.a.Fragment,null,r.a.createElement(c.a,{reputation:t.getCompany().playerReputation})," rep",r.a.createElement("br",null),"(",r.a.createElement(P.a,{reputation:t.getGainRates(e).reputation*(1e3/T.a._idleSpeed)}),")")}return r.a.createElement(B,{tooltip:n,header:a,onClickFocus:()=>{e.startFocusing(),t.toWork()}},i)}const W=Object(o.a)(e=>Object(s.a)({workCell:{textAlign:"center",maxWidth:"200px",borderBottom:"none",padding:0,margin:0},workHeader:{fontSize:"0.9rem"},workSubtitles:{fontSize:"0.8rem"},cellNone:{borderBottom:"none",padding:0,margin:0},cell:{padding:0,margin:0},hp:{color:e.colors.hp},money:{color:e.colors.money},hack:{color:e.colors.hack},combat:{color:e.colors.combat},cha:{color:e.colors.cha},int:{color:e.colors.int}}));function H({save:e,killScripts:t}){const[n,o]=Object(a.useState)(!1),s=S.b.Player(),c=Object(a.useState)(!1)[1];Object(a.useEffect)(()=>{const e=setInterval(()=>c(e=>!e),600);return()=>clearInterval(e)},[]);const u=W(),y=Object(i.a)(),E=s.calculateSkillProgress(s.hacking_exp,s.mults.hacking*x.a.HackingLevelMultiplier),k=s.calculateSkillProgress(s.strength_exp,s.mults.strength*x.a.StrengthLevelMultiplier),M=s.calculateSkillProgress(s.defense_exp,s.mults.defense*x.a.DefenseLevelMultiplier),T=s.calculateSkillProgress(s.dexterity_exp,s.mults.dexterity*x.a.DexterityLevelMultiplier),A=s.calculateSkillProgress(s.agility_exp,s.mults.agility*x.a.AgilityLevelMultiplier),R=s.calculateSkillProgress(s.charisma_exp,s.mults.charisma*x.a.CharismaLevelMultiplier);return r.a.createElement(r.a.Fragment,null,r.a.createElement(m.a,{sx:{display:"block",m:1}},r.a.createElement(h.a,null,r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hp}},"HP ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hp}},l.a.formatHp(s.hp)," / ",l.a.formatHp(s.max_hp))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-hp-hook",classes:{root:u.hp}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.money}},"Money ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.money}},l.a.formatMoney(s.money))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-money-hook",classes:{root:u.money}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hack}},"Hack ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.hack}},l.a.formatSkill(s.hacking)))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:E,color:y.colors.hack})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.hack}})),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-hack-hook",classes:{root:u.hack}}))),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Str ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.strength))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-str-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:k,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Def ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.defense))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-def-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:M,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},"Dex ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.dexterity))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-dex-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:T,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.combat}},"Agi ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{classes:{root:u.combat}},l.a.formatSkill(s.agility))),r.a.createElement(d.a,{align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-agi-hook",classes:{root:u.combat}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:A,color:y.colors.combat})),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.cha}},"Cha ")),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{classes:{root:u.cha}},l.a.formatSkill(s.charisma))),r.a.createElement(d.a,{align:"right",classes:{root:u.cellNone}},r.a.createElement(g.a,{id:"overview-cha-hook",classes:{root:u.cha}}))),r.a.createElement(p.a,null,!_.a.DisableOverviewProgressBars&&r.a.createElement(C.a,{progress:R,color:y.colors.cha})),r.a.createElement(D,null),r.a.createElement(p.a,null,r.a.createElement(d.a,{component:"th",scope:"row",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-0",classes:{root:u.hack}})),r.a.createElement(d.a,{component:"th",scope:"row",align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-1",classes:{root:u.hack}})),r.a.createElement(d.a,{component:"th",scope:"row",align:"right",classes:{root:u.cell}},r.a.createElement(g.a,{id:"overview-extra-hook-2",classes:{root:u.hack}}))),r.a.createElement(G,null),r.a.createElement(j,null))),r.a.createElement(O.a,{sx:{display:"flex",borderTop:"1px solid "+_.a.theme.welllight}},r.a.createElement(O.a,{sx:{display:"flex",flex:1,justifyContent:"flex-start",alignItems:"center"}},r.a.createElement(b.a,{"aria-label":"save game",onClick:e},r.a.createElement(L.a,{title:0!==_.a.AutosaveInterval?"Save game":"Save game (auto-saves are disabled!)"},r.a.createElement(v.a,{color:0!==_.a.AutosaveInterval?"primary":"error"})))),r.a.createElement(O.a,{sx:{display:"flex",flex:1,justifyContent:"flex-end",alignItems:"center"}},r.a.createElement(b.a,{"aria-label":"kill all scripts",onClick:()=>o(!0)},r.a.createElement(L.a,{title:"Kill all running scripts"},r.a.createElement(w.a,{color:"error"}))))),r.a.createElement(f.a,{open:n,onClose:()=>o(!1),killScripts:t}))}},,,function(e,t,n){"use strict";function a(e,t){if(t<0||t>100)return e;const n=e*(t/100);return e+(Math.random()*(2*n)-n)}n.d(t,"a",(function(){return a}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t,n){this.program=e,this.price=t,this.description=n}}},,,,,,,,function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}));class r{constructor(e=""){a(this,"level",1),a(this,"name",""),this.name=e}}},function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}));const r=new class{constructor(){a(this,"m",1024),a(this,"a",341),a(this,"c",1),this.x=0,this.reset()}step(){this.x=(this.a*this.x+this.c)%this.m}random(){return this.step(),this.x/this.m}reset(){this.x=(new Date).getTime()%this.m}};class i{constructor(e){a(this,"s1",0),a(this,"s2",0),a(this,"s3",0);const t=e/1e3%3e4;this.s1=t,this.s2=t,this.s3=t}step(){this.s1=171*this.s1%30269,this.s2=172*this.s2%30307,this.s3=170*this.s3%30323}random(){return this.step(),(this.s1/30269+this.s2/30307+this.s3/30323)%1}}function o(e){let t=1779033703^e.length;for(let n=0;n>>19;const n=()=>(t=Math.imul(t^t>>>16,2246822507),t=Math.imul(t^t>>>13,3266489909),(t^=t>>>16)>>>0);let a=n(),r=n(),i=n(),o=n();return()=>{a>>>=0,r>>>=0,i>>>=0,o>>>=0;let e=a+r|0;return a=r^r>>>9,r=i+(i<<3)|0,i=i<<21|i>>>11,o=o+1|0,e=e+o|0,i=i+e|0,(e>>>0)/4294967296}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(22),o=n(154),s=n(540),l=n(9),c=n(1194),f=n(75),u=n(165),m=n(14),h=n(140);const d=e=>null!==e&&e.type===o.b.COMPANY;class p extends o.a{constructor(e){var t,n;super(o.b.COMPANY,null!==(t=null==e?void 0:e.singularity)&&void 0!==t&&t),this.companyName=null!==(n=null==e?void 0:e.companyName)&&void 0!==n?n:l.a.NewTokyoNoodleBar}getCompany(){const e=f.a[this.companyName];if(!e)throw new Error(`Company not found: '${this.companyName}'`);return e}getGainRates(e){return Object(c.a)(e,this.getCompany())}process(e,t){this.cyclesWorked+=t;const n=this.getCompany(),a=this.getGainRates(e);return Object(u.a)(e,a,t,"work"),n.playerReputation+=a.reputation*t,Object(s.a)(n,a.reputation,t),!1}finish(){Object(m.a)(r.a.createElement(r.a.Fragment,null,"You finished working for ",this.companyName,r.a.createElement("br",null),"You have ",r.a.createElement(h.a,{reputation:this.getCompany().playerReputation})," reputation with them."))}toJSON(){return Object(i.b)("CompanyWork",this)}static fromJSON(e){return Object(i.a)(p,e.data)}}i.c.constructors.CompanyWork=p},,,,,,,function(e,t,n){"use strict";function a(e,t){if(e.length!==t.length)return!1;for(let n=0;nObject(o.a)({favor:{color:e.colors.rep}}));function l({favor:e}){const t=s();return a.createElement("span",{className:t.favor},"number"==typeof e?r.a.formatFavor(e):e)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return u}));var a=n(163),r=n(20),i=n(12),o=n(88),s=n(24),l=n(375);const c=1e3/i.a._idleSpeed;function f(e,t){const n=l.a.find(e=>e.specialName===t.name),a=Object(s.d)(n?n.hostname:"").backdoorInstalled?.9:1;return e.earnings.money*t.costMult*a}function u(e,t){const n=e.hashManager,i=o.c[t.classType],s=a.a[t.location],l=t.isGym()?n.getTrainingMult():n.getStudyMult(),u=f(i,s)/c,m=i.earnings.hackExp*s.expMult/c*l,h=i.earnings.strExp*s.expMult/c*l,d=i.earnings.defExp*s.expMult/c*l,p=i.earnings.dexExp*s.expMult/c*l,g=i.earnings.agiExp*s.expMult/c*l,y=i.earnings.chaExp*s.expMult/c*l;return{money:u,reputation:0,hackExp:m*e.mults.hacking_exp*r.a.ClassGymExpGain,strExp:h*e.mults.strength_exp*r.a.ClassGymExpGain,defExp:d*e.mults.defense_exp*r.a.ClassGymExpGain,dexExp:p*e.mults.dexterity_exp*r.a.ClassGymExpGain,agiExp:g*e.mults.agility_exp*r.a.ClassGymExpGain,chaExp:y*e.mults.charisma_exp*r.a.ClassGymExpGain,intExp:0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var a=n(65),r=n(1380),i=n(233),o=n(20),s=n(82),l=n(75),c=n(257),f=n(104),u=n(12),m=n(188),h=n(29),d=n(15),p=n(9),g=n(22),y=n(56),b=n(6),E=n(25),v=n(101);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class w extends r.a{constructor(e=null){super(),k(this,"className",""),k(this,"crimeType",""),k(this,"currentTask",a.a.Idle),k(this,"currentTaskLocation",""),k(this,"currentTaskMaxTime",0),k(this,"currentTaskTime",0),k(this,"earningsForSleeves",Object(i.a)()),k(this,"earningsForPlayer",Object(i.a)()),k(this,"earningsForTask",Object(i.a)()),k(this,"factionWorkType",v.a.HACKING),k(this,"gainRatesForTask",Object(i.a)()),k(this,"gymStatType",""),k(this,"bbAction",""),k(this,"bbContract",""),k(this,"logs",[]),k(this,"memory",1),k(this,"shock",1),k(this,"storedCycles",0),k(this,"sync",1),null!=e&&this.shockRecovery(e)}commitCrime(e,t){const n=s.a[t]||Object.values(s.a).find(e=>e.name===t);return!!n&&(this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e),this.gainRatesForTask.hack=n.hacking_exp*this.mults.hacking_exp*o.a.CrimeExpGain,this.gainRatesForTask.str=n.strength_exp*this.mults.strength_exp*o.a.CrimeExpGain,this.gainRatesForTask.def=n.defense_exp*this.mults.defense_exp*o.a.CrimeExpGain,this.gainRatesForTask.dex=n.dexterity_exp*this.mults.dexterity_exp*o.a.CrimeExpGain,this.gainRatesForTask.agi=n.agility_exp*this.mults.agility_exp*o.a.CrimeExpGain,this.gainRatesForTask.cha=n.charisma_exp*this.mults.charisma_exp*o.a.CrimeExpGain,this.gainRatesForTask.int=n.intelligence_exp,this.gainRatesForTask.money=n.money*this.mults.crime_money*o.a.CrimeMoney,this.currentTaskLocation=String(this.gainRatesForTask.money),this.crimeType=n.name,this.currentTaskMaxTime=n.time,this.currentTask=a.a.Crime,!0)}finishTask(e){let t=Object(i.a)();if(this.currentTask===a.a.Crime){if(this.currentTaskTime>=this.currentTaskMaxTime){const n=Object.values(s.a).find(e=>e.name===this.crimeType);if(!n)return console.error("Invalid data stored in sleeve.crimeType: "+this.crimeType),this.resetTaskStatus(e),t;if(Math.random()=this.currentTaskMaxTime){var n;if("Infiltrate synthoids"===this.bbAction)return a.infiltrateSynthoidCommunities(e),this.currentTaskTime=0,t;let r,i;"Take on contracts"===this.bbAction?(r="Contracts",i=this.bbContract):(r="General",i=this.bbAction);const o=a.getActionIdFromTypeAndName(r,i);if(null===o){const n=`Invalid action: type='${r}' name='${i}'`;return console.error(`Function: sleeves.finishTask; Message: '${n}'`),this.resetTaskStatus(e),t}const s=a.getActionObject(o);if((null!==(n=null==s?void 0:s.count)&&void 0!==n?n:0)>0){const n=a.completeAction(e,this,o,!1);if(n)return t=this.gainExperience(e,n),this.gainMoney(e,n),this.currentTaskTime=0,t}}}return this.resetTaskStatus(e),t}gainExperience(e,t,n=1,a=!1){if(a)return t.hack>0&&(this.hacking_exp+=t.hack),t.str>0&&(this.strength_exp+=t.str),t.def>0&&(this.defense_exp+=t.def),t.dex>0&&(this.dexterity_exp+=t.dex),t.agi>0&&(this.agility_exp+=t.agi),t.cha>0&&(this.charisma_exp+=t.cha),Object(i.a)();const r=this.shock/100*(this.sync/100)*n,o=t.hack*r,s=t.str*r,l=t.def*r,c=t.dex*r,f=t.agi*r,u=t.cha*r,m=t.int*r;return o>0&&(this.gainHackingExp(o),e.gainHackingExp(o),this.earningsForPlayer.hack+=o,this.earningsForTask.hack+=o),s>0&&(this.gainStrengthExp(s),e.gainStrengthExp(s),this.earningsForPlayer.str+=s,this.earningsForTask.str+=s),l>0&&(this.gainDefenseExp(l),e.gainDefenseExp(l),this.earningsForPlayer.def+=l,this.earningsForTask.def+=l),c>0&&(this.gainDexterityExp(c),e.gainDexterityExp(c),this.earningsForPlayer.dex+=c,this.earningsForTask.dex+=c),f>0&&(this.gainAgilityExp(f),e.gainAgilityExp(f),this.earningsForPlayer.agi+=f,this.earningsForTask.agi+=f),u>0&&(this.gainCharismaExp(u),e.gainCharismaExp(u),this.earningsForPlayer.cha+=u,this.earningsForTask.cha+=u),m>0&&(this.gainIntelligenceExp(m),e.gainIntelligenceExp(m)),this.earningsForSleeves.hack+=o*(this.sync/100),this.earningsForSleeves.str+=s*(this.sync/100),this.earningsForSleeves.def+=l*(this.sync/100),this.earningsForSleeves.dex+=c*(this.sync/100),this.earningsForSleeves.agi+=f*(this.sync/100),this.earningsForSleeves.cha+=u*(this.sync/100),{hack:o*(this.sync/100),str:s*(this.sync/100),def:l*(this.sync/100),dex:c*(this.sync/100),agi:f*(this.sync/100),cha:u*(this.sync/100),int:m*(this.sync/100),money:t.money}}gainMoney(e,t,n=1){const a=t.money*n;this.earningsForTask.money+=a,this.earningsForPlayer.money+=a,e.gainMoney(a,"sleeves")}getMemoryUpgradeCost(e){const t=Math.round(e);if(t<0)return 0;if(this.memory+t>100)return this.getMemoryUpgradeCost(100-this.memory);let n=0,a=this.memory-1;for(let t=0;t50&&this.logs.shift()}prestige(e){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.resetTaskStatus(e),this.earningsForSleeves=Object(i.a)(),this.earningsForPlayer=Object(i.a)(),this.shockRecovery(e),this.augmentations=[],this.resetMultipliers(),this.city=d.a.Sector12,this.shock=1,this.storedCycles=0,this.sync=Math.max(this.memory,1),this.logs=[]}process(e,t=1){const n=1e3/u.a.MilliPerCycle;if(this.storedCycles+=t,this.storedCyclesthis.currentTaskMaxTime&&(o=this.currentTaskMaxTime-this.currentTaskTime,r=Math.floor(o/u.a.MilliPerCycle),(o<0||r<0)&&(console.warn("Sleeve.process() calculated negative cycle usage"),o=0,r=0)),this.currentTaskTime+=o,this.shock=Math.min(100,this.shock+1e-4*r);let s=Object(i.a)();switch(this.currentTask){case a.a.Idle:break;case a.a.Class:case a.a.Gym:this.updateTaskGainRates(e),s=this.gainExperience(e,this.gainRatesForTask,r),this.gainMoney(e,this.gainRatesForTask,r);break;case a.a.Faction:{s=this.gainExperience(e,this.gainRatesForTask,r),this.gainMoney(e,this.gainRatesForTask,r);const t=h.a[this.currentTaskLocation];if(!(t instanceof m.a)){console.error("Invalid faction for Sleeve task: "+this.currentTaskLocation);break}e.gang&&t.name===e.gang.facName&&this.resetTaskStatus(e),t.playerReputation+=this.getRepGain(e)*r;break}case a.a.Company:{s=this.gainExperience(e,this.gainRatesForTask,r),this.gainMoney(e,this.gainRatesForTask,r);const t=l.a[this.currentTaskLocation];if(!(t instanceof c.a)){console.error("Invalid company for Sleeve task: "+this.currentTaskLocation);break}t.playerReputation+=this.getRepGain(e)*r;break}case a.a.Recovery:this.shock=Math.min(100,this.shock+2e-4*r),this.shock>=100&&this.resetTaskStatus(e);break;case a.a.Synchro:this.sync=Math.min(100,this.sync+2e-4*e.getIntelligenceBonus(.5)*r),this.sync>=100&&this.resetTaskStatus(e)}return 0!==this.currentTaskMaxTime&&this.currentTaskTime>=this.currentTaskMaxTime&&(this.currentTask===a.a.Crime||this.currentTask===a.a.Bladeburner?s=this.finishTask(e):this.finishTask(e)),this.updateStatLevels(),this.storedCycles-=r,s}resetTaskStatus(e){var t;"Support main sleeve"==this.bbAction&&(null===(t=e.bladeburner)||void 0===t||t.sleeveSupport(!1));if(this.currentTask==a.a.Class){const t=Object(i.a)();t.int=u.a.IntelligenceClassBaseExpGain*Math.round(this.currentTaskTime/1e3);const n=this.gainExperience(e,t);e.sleeves.filter(e=>e!=this).forEach(t=>t.gainExperience(e,n,1,!0))}this.earningsForTask=Object(i.a)(),this.gainRatesForTask=Object(i.a)(),this.currentTask=a.a.Idle,this.currentTaskTime=0,this.currentTaskMaxTime=0,this.factionWorkType=v.a.HACKING,this.crimeType="",this.currentTaskLocation="",this.gymStatType="",this.className="",this.bbAction="",this.bbContract="------"}shockRecovery(e){return this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e),this.currentTask=a.a.Recovery,!0}synchronize(e){return this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e),this.currentTask=a.a.Synchro,!0}takeUniversityCourse(e,t,n){this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e);let r=1;switch(t.toLowerCase()){case p.a.AevumSummitUniversity.toLowerCase():if(this.city!==d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumSummitUniversity,r=4;break;case p.a.Sector12RothmanUniversity.toLowerCase():if(this.city!==d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12RothmanUniversity,r=3;break;case p.a.VolhavenZBInstituteOfTechnology.toLowerCase():if(this.city!==d.a.Volhaven)return!1;this.currentTaskLocation=p.a.VolhavenZBInstituteOfTechnology,r=5;break;default:return!1}switch(n.toLowerCase()){case"study computer science":break;case"data structures":this.gainRatesForTask.money=u.a.ClassDataStructuresBaseCost*r*-1;break;case"networks":this.gainRatesForTask.money=u.a.ClassNetworksBaseCost*r*-1;break;case"algorithms":this.gainRatesForTask.money=u.a.ClassAlgorithmsBaseCost*r*-1;break;case"management":this.gainRatesForTask.money=u.a.ClassManagementBaseCost*r*-1;break;case"leadership":this.gainRatesForTask.money=u.a.ClassLeadershipBaseCost*r*-1;break;default:return!1}return this.className=n,this.currentTask=a.a.Class,!0}travel(e,t){return e.loseMoney(u.a.TravelCost,"sleeves"),this.city=t,!0}tryBuyAugmentation(e,t){return!!e.canAfford(t.baseCost)&&(!this.augmentations.some(e=>e.name===t.name)&&(e.loseMoney(t.baseCost,"sleeves"),this.installAugmentation(t),!0))}updateTaskGainRates(e){if(this.currentTask!==a.a.Class)if(this.currentTask!==a.a.Gym)console.warn("Sleeve.updateTaskGainRates() called for unexpected task type "+this.currentTask);else{let t=1;switch(this.currentTaskLocation.toLowerCase()){case p.a.AevumCrushFitnessGym.toLowerCase():t=2;break;case p.a.AevumSnapFitnessGym.toLowerCase():t=5;break;case p.a.Sector12IronGym.toLowerCase():t=1;break;case p.a.Sector12PowerhouseGym.toLowerCase():t=10;break;case p.a.VolhavenMilleniumFitnessGym.toLowerCase():t=4;break;default:return}const n=1,a=e.hashManager.getTrainingMult()*t,r=this.gymStatType.toLowerCase();r.includes("str")?this.gainRatesForTask.str=n*a*this.mults.strength_exp:r.includes("def")?this.gainRatesForTask.def=n*a*this.mults.defense_exp:r.includes("dex")?this.gainRatesForTask.dex=n*a*this.mults.dexterity_exp:r.includes("agi")&&(this.gainRatesForTask.agi=n*a*this.mults.agility_exp)}else{let t=1;switch(this.currentTaskLocation.toLowerCase()){case p.a.AevumSummitUniversity.toLowerCase():t=3;break;case p.a.Sector12RothmanUniversity.toLowerCase():t=2;break;case p.a.VolhavenZBInstituteOfTechnology.toLowerCase():t=4;break;default:return}const n=t*e.hashManager.getStudyMult();switch(this.className.toLowerCase()){case"study computer science":this.gainRatesForTask.hack=u.a.ClassStudyComputerScienceBaseExp*n*this.mults.hacking_exp;break;case"data structures":this.gainRatesForTask.hack=u.a.ClassDataStructuresBaseExp*n*this.mults.hacking_exp;break;case"networks":this.gainRatesForTask.hack=u.a.ClassNetworksBaseExp*n*this.mults.hacking_exp;break;case"algorithms":this.gainRatesForTask.hack=u.a.ClassAlgorithmsBaseExp*n*this.mults.hacking_exp;break;case"management":this.gainRatesForTask.cha=u.a.ClassManagementBaseExp*n*this.mults.charisma_exp;break;case"leadership":this.gainRatesForTask.cha=u.a.ClassLeadershipBaseExp*n*this.mults.charisma_exp}}}upgradeMemory(e){e<0?console.warn("Sleeve.upgradeMemory() called with negative value: "+e):this.memory=Math.min(100,Math.round(this.memory+e))}workForCompany(e,t){if(!(l.a[t]instanceof c.a)||null==e.jobs[t])return!1;this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e);const n=l.a[t],r=f.a[e.jobs[t]];return null!=n&&(null!=r&&(this.gainRatesForTask.money=r.baseSalary*n.salaryMultiplier*this.mults.work_money*o.a.CompanyWorkMoney,this.gainRatesForTask.hack=r.hackingExpGain*n.expMultiplier*this.mults.hacking_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.str=r.strengthExpGain*n.expMultiplier*this.mults.strength_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.def=r.defenseExpGain*n.expMultiplier*this.mults.defense_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.dex=r.dexterityExpGain*n.expMultiplier*this.mults.dexterity_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.agi=r.agilityExpGain*n.expMultiplier*this.mults.agility_exp*o.a.CompanyWorkExpGain,this.gainRatesForTask.cha=r.charismaExpGain*n.expMultiplier*this.mults.charisma_exp*o.a.CompanyWorkExpGain,this.currentTaskLocation=t,this.currentTask=a.a.Company,!0))}workForFaction(e,t,n){const r=h.a[t];if(!(""!==t&&r&&r instanceof m.a&&e.factions.includes(t)))return!1;this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e);const i=r.getInfo(),s=n.toLowerCase();if(s.includes("hack")){if(!i.offerHackingWork)return!1;this.factionWorkType=v.a.HACKING,this.gainRatesForTask.hack=.15*this.mults.hacking_exp*o.a.FactionWorkExpGain}else if(s.includes("field")){if(!i.offerFieldWork)return!1;this.factionWorkType=v.a.FIELD,this.gainRatesForTask.hack=.1*this.mults.hacking_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.str=.1*this.mults.strength_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.def=.1*this.mults.defense_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.dex=.1*this.mults.dexterity_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.agi=.1*this.mults.agility_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.cha=.1*this.mults.charisma_exp*o.a.FactionWorkExpGain}else{if(!s.includes("security"))return!1;if(!i.offerSecurityWork)return!1;this.factionWorkType=v.a.SECURITY,this.gainRatesForTask.hack=.1*this.mults.hacking_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.str=.15*this.mults.strength_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.def=.15*this.mults.defense_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.dex=.15*this.mults.dexterity_exp*o.a.FactionWorkExpGain,this.gainRatesForTask.agi=.15*this.mults.agility_exp*o.a.FactionWorkExpGain}return this.currentTaskLocation=t,this.currentTask=a.a.Faction,!0}workoutAtGym(e,t,n){this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e);let r=1;switch(t.toLowerCase()){case p.a.AevumCrushFitnessGym.toLowerCase():if(this.city!=d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumCrushFitnessGym,r=3;break;case p.a.AevumSnapFitnessGym.toLowerCase():if(this.city!=d.a.Aevum)return!1;this.currentTaskLocation=p.a.AevumSnapFitnessGym,r=10;break;case p.a.Sector12IronGym.toLowerCase():if(this.city!=d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12IronGym,r=1;break;case p.a.Sector12PowerhouseGym.toLowerCase():if(this.city!=d.a.Sector12)return!1;this.currentTaskLocation=p.a.Sector12PowerhouseGym,r=20;break;case p.a.VolhavenMilleniumFitnessGym.toLowerCase():if(this.city!=d.a.Volhaven)return!1;this.currentTaskLocation=p.a.VolhavenMilleniumFitnessGym,r=7;break;default:return!1}const i=n.toLowerCase();return this.gainRatesForTask.money=u.a.ClassGymBaseCost*r*-1,!!(i.includes("str")||i.includes("def")||i.includes("dex")||i.includes("agi"))&&(this.gymStatType=n,this.currentTask=a.a.Gym,!0)}bladeburner(e,t,n){var r,i,o;this.currentTask!==a.a.Idle?this.finishTask(e):this.resetTaskStatus(e),this.gainRatesForTask.hack=0,this.gainRatesForTask.str=0,this.gainRatesForTask.def=0,this.gainRatesForTask.dex=0,this.gainRatesForTask.agi=0,this.gainRatesForTask.cha=0,this.gainRatesForTask.money=0,this.currentTaskLocation="";let s=0;switch(this.bbContract="------",t){case"Field analysis":s=this.getBladeburnerActionTime(e,"General",t),this.gainRatesForTask.hack=20*this.mults.hacking_exp,this.gainRatesForTask.cha=20*this.mults.charisma_exp;break;case"Recruitment":s=this.getBladeburnerActionTime(e,"General",t),this.gainRatesForTask.cha=2*y.a.BaseStatGain*(null!==(r=null===(i=e.bladeburner)||void 0===i?void 0:i.getRecruitmentTime(this))&&void 0!==r?r:0)*1e3,this.currentTaskLocation=`(Success Rate: ${b.a.formatPercentage(this.recruitmentSuccessChance(e))})`;break;case"Diplomacy":s=this.getBladeburnerActionTime(e,"General",t);break;case"Infiltrate synthoids":s=6e4,this.currentTaskLocation="This will generate additional contracts and operations";break;case"Support main sleeve":null===(o=e.bladeburner)||void 0===o||o.sleeveSupport(!0),s=0;break;case"Take on contracts":s=this.getBladeburnerActionTime(e,"Contracts",n),this.contractGainRates(e,"Contracts",n),this.currentTaskLocation=this.contractSuccessChance(e,"Contracts",n),this.bbContract=Object(E.a)(n.toLowerCase())}return this.bbAction=Object(E.b)(t.toLowerCase()),this.currentTaskMaxTime=s,this.currentTask=a.a.Bladeburner,!0}recruitmentSuccessChance(e){var t,n;return Math.max(0,Math.min(1,null!==(t=null===(n=e.bladeburner)||void 0===n?void 0:n.getRecruitmentSuccessChance(this))&&void 0!==t?t:0))}contractSuccessChance(e,t,n){const a=e.bladeburner;if(null===a){const e="bladeburner is null";return console.error(`Function: sleeves.contractSuccessChance; Message: '${e}'`),"0%"}const r=a.getActionEstimatedSuccessChanceNetscriptFn(this,t,n);return"string"==typeof r?(console.error(`Function: sleeves.contractSuccessChance; Message: '${r}'`),"0%"):r[0]>=1?"100%":`${b.a.formatPercentage(r[0])} - ${b.a.formatPercentage(r[1])}`}contractGainRates(e,t,n){const a=e.bladeburner;if(null===a){const e="bladeburner is null";return void console.error(`Function: sleeves.contractGainRates; Message: '${e}'`)}const r=a.getActionIdFromTypeAndName(t,n);if(null===r){const a=`Invalid action: type='${t}' name='${n}'`;return console.error(`Function: sleeves.contractGainRates; Message: '${a}'`),void this.resetTaskStatus(e)}const i=a.getActionObject(r);if(null===i){const a=`Invalid action: type='${t}' name='${n}'`;return console.error(`Function: sleeves.contractGainRates; Message: '${a}'`),void this.resetTaskStatus(e)}const o=a.getActionStats(i,!0);this.gainRatesForTask.hack=o.hack,this.gainRatesForTask.str=o.str,this.gainRatesForTask.def=o.def,this.gainRatesForTask.dex=o.dex,this.gainRatesForTask.agi=o.agi,this.gainRatesForTask.cha=o.cha;const s=Math.pow(i.rewardFac,i.level-1);this.gainRatesForTask.money=y.a.ContractBaseMoneyGain*s*a.skillMultipliers.money}getBladeburnerActionTime(e,t,n){const a=e.bladeburner;if(null===a){const e="bladeburner is null";return console.error(`Function: sleeves.getBladeburnerActionTime; Message: '${e}'`),-1}const r=a.getActionTimeNetscriptFn(this,t,n);if("string"==typeof r){const e=`Invalid action: type='${t}' name='${n}'`;return console.error(`Function: sleeves.getBladeburnerActionTime; Message: '${e}'`),-1}return r}takeDamage(e){return"number"!=typeof e?(console.warn("Player.takeDamage() called without a numeric argument: "+e),!1):(this.hp-=e,this.hp<=0&&(this.shock+=.5,this.hp=this.max_hp,!0))}whoAmI(){return"Sleeve"}toJSON(){return Object(g.b)("Sleeve",this)}static fromJSON(e){return Object(g.a)(w,e.data)}}g.c.constructors.Sleeve=w},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return a})),function(e){e[e.SyntaxError=-1]="SyntaxError",e[e.ImportError=-2]="ImportError",e[e.URLImportError=-3]="URLImportError"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(126);const r=new a.a,i=new a.a},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(246),r=n(155),i=n(117),o=n(72),s=n(6),l=n(21),c=n(14),f=n(5),u=n(0);function m(e,t,n,a){const s=a.stockMarket.Orders;if(null==s){const e={};for(const t of Object.keys(a.stockMarket)){const n=a.stockMarket[t];n instanceof r.a&&(e[n.symbol]=[])}return void(a.stockMarket.Orders=e)}let l=s[e.symbol];if(null==l||l.constructor!==Array)return console.error(`Invalid Order book for ${e.symbol} in processOrders(): ${l}`),void(l=[]);for(const r of l)if(r.type===t&&r.pos===n)switch(r.type){case i.a.LimitBuy:(r.pos===o.a.Long&&e.price<=r.price||r.pos===o.a.Short&&e.price>=r.price)&&h(r,a);break;case i.a.LimitSell:case i.a.StopBuy:(r.pos===o.a.Long&&e.price>=r.price||r.pos===o.a.Short&&e.price<=r.price)&&h(r,a);break;case i.a.StopSell:(r.pos===o.a.Long&&e.price<=r.price||r.pos===o.a.Short&&e.price>=r.price)&&h(r,a);break;default:return void console.warn("Invalid order type: "+r.type)}}function h(e,t){const n=t.symbolToStockMap[e.stockSymbol];if(!(n instanceof r.a))return void console.error("Could not find stock for this order: "+e.stockSymbol);const m=t.stockMarket.Orders[n.symbol],h={suppressDialog:!0};let d=!0,p=!1;switch(e.type){case i.a.LimitBuy:case i.a.StopBuy:p=!0,e.pos===o.a.Long?d=Object(a.a)(n,e.shares,null,h)&&d:e.pos===o.a.Short&&(d=Object(a.d)(n,e.shares,null,h)&&d);break;case i.a.LimitSell:case i.a.StopSell:e.pos===o.a.Long?d=Object(a.c)(n,e.shares,null,h)&&d:e.pos===o.a.Short&&(d=Object(a.b)(n,e.shares,null,h)&&d);break;default:return void console.warn("Invalid order type: "+e.type)}const g=e.pos===o.a.Long?"Long":"Short";if(d){for(let t=0;t({...a})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m}));var a=n(0),r=n.n(a),i=n(126),o=n(37),s=n(1),l=n(18),c=n(781);const f=new i.a;let u=0;function m(){const[e,t]=Object(a.useState)([]);return Object(a.useEffect)(()=>f.subscribe(e=>{const n=u+"";u++,t(t=>{const a=function(e){return"string"==typeof e?Object(c.sha256)(e):Object(c.sha256)(JSON.stringify(e.props))}(e);return t.some(e=>e.hash===a)?t:[...t,{id:n,text:e,hash:a}]})}),[]),Object(a.useEffect)(()=>{function e(e){"Escape"===e.code&&t([])}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),r.a.createElement(r.a.Fragment,null,e.length>0&&r.a.createElement(o.a,{open:!0,onClose:function(){t(e=>e.slice(1,1e99))}},r.a.createElement(l.a,{overflow:"scroll",sx:{overflowWrap:"break-word",whiteSpace:"pre-line"}},r.a.createElement(s.a,{component:"span"},e[0].text))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(555);const r=()=>`${Object(a.a)(99)}.${Object(a.a)(9)}.${Object(a.a)(9)}.${Object(a.a)(9)}`},function(e,t,n){"use strict";function a(){return new Promise((e,t)=>{window.indexedDB||t("Indexed DB does not exists");const n=window.indexedDB.open("bitburnerSave",1);n.onupgradeneeded=function(){this.result.createObjectStore("savestring")},n.onerror=function(e){t("Failed to get IDB "+e)},n.onsuccess=function(){const n=this.result;n?e(n.transaction(["savestring"],"readwrite").objectStore("savestring")):t("database loading result was undefined")}})}function r(){return new Promise((e,t)=>{a().then(t=>new Promise((e,n)=>{const a=t.get("save");a.onerror=function(e){n("Error in Database request to get savestring: "+e)},a.onsuccess=function(){e(this.result)}}).then(t=>e(t))).catch(e=>t(e))})}function i(e){return a().then(t=>new Promise((n,a)=>{const r=t.put(e,"save");r.onerror=function(e){a("Error saving game to IndexedDB: "+e)},r.onsuccess=()=>n()}))}function o(){return a().then(e=>{e.delete("save")})}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return g}));var a=n(294),r=n(11),i=n(91),o=n(60),s=n(2),l=n(27),c=n(24),f=n(87),u=n(5),m=n(14),h=n(4),d=n(43);function p(e,t=!1){!t&&u.a.SuppressMessages||g(e.filename),function(e){if(y(e))return;const t=Object(c.d)("home");if(null==t)throw new Error("The home server doesn't exist. You done goofed.");t.messages.push(e.filename)}(e)}function g(e){const t=v[e];if(!(t instanceof a.a))throw new Error("trying to display unexistent message");const n="Message received from unknown sender:

"+t.msg+"

This message was saved as "+t.filename+" onto your home computer.";Object(m.a)(n)}function y(e){const t=Object(c.d)("home");if(null==t)throw new Error("The home server doesn't exist. You done goofed.");return t.messages.includes(e.filename)}function b(){if(i.b.page()===l.a.BitVerse)return;const e=v[E.Jumper0],t=v[E.Jumper1],n=v[E.Jumper2],a=v[E.Jumper3],u=v[E.Jumper4],m=v[E.CyberSecTest],h=v[E.NiteSecTest],g=v[E.BitRunnersTest],b=v[E.TruthGazer],k=v[E.RedPill];if(s.a.hasAugmentation(r.a.TheRedPill)){const e=Object(c.d)(f.a.WorldDaemon);if(!(e instanceof d.a))throw new Error("The world daemon is not a server???? Please un-break reality");s.a.hacking>=e.requiredHackingSkill?p(k,0===s.a.sourceFiles.length):y(b)||p(b)}else if(!y(e)&&s.a.hacking>=25){p(e);const t=o.a.Flight.name,n=s.a.getHomeComputer();n.programs.includes(t)||n.programs.push(t)}else!y(t)&&s.a.hacking>=40?p(t):!y(m)&&s.a.hacking>=50?p(m):!y(n)&&s.a.hacking>=175?p(n):!y(h)&&s.a.hacking>=200?p(h):!y(a)&&s.a.hacking>=350?p(a):!y(u)&&s.a.hacking>=490?p(u):!y(g)&&s.a.hacking>=500&&p(g)}let E;!function(e){e.Jumper0="j0.msg",e.Jumper1="j1.msg",e.Jumper2="j2.msg",e.Jumper3="j3.msg",e.Jumper4="j4.msg",e.CyberSecTest="csec-test.msg",e.NiteSecTest="nitesec-test.msg",e.BitRunnersTest="19dfj3l1nd.msg",e.TruthGazer="truthgazer.msg",e.RedPill="icarus.msg"}(E||(E={}));const v={[E.Jumper0]:new a.a(E.Jumper0,"I know you can sense it. I know you're searching for it. It's why you spend night after night at your computer.

It's real, I've seen it. And I can help you find it. But not right now. You're not ready yet.

Use this program to track your progress

The fl1ght.exe program was added to your home computer

-jump3R"),[E.Jumper1]:new a.a(E.Jumper1,`Soon you will be contacted by a hacking group known as ${h.a.NiteSec}. They can help you with your search.

You should join them, garner their favor, and exploit them for their Augmentations. But do not trust them. They are not what they seem. No one is.

-jump3R`),[E.Jumper2]:new a.a(E.Jumper2,`Do not try to save the world. There is no world to save. If you want to find the truth, worry only about yourself. Ethics and morals will get you killed.

Watch out for a hacking group known as ${h.a.NiteSec}.

-jump3R`),[E.Jumper3]:new a.a(E.Jumper3,`You must learn to walk before you can run. And you must run before you can fly. Look for ${h.a.TheBlackHand}.

I.I.I.I

-jump3R`),[E.Jumper4]:new a.a(E.Jumper4,"To find what you are searching for, you must understand the bits. The bits are all around us. The runners will help you.

-jump3R"),[E.CyberSecTest]:new a.a(E.CyberSecTest,"We've been watching you. Your skills are very impressive. But you're wasting your talents. If you join us, you can put your skills to good use and change the world for the better. If you join us, we can unlock your full potential.

But first, you must pass our test. Find and install the backdoor on our server.

-"+h.a.CyberSec),[E.NiteSecTest]:new a.a(E.NiteSecTest,"People say that the corrupted governments and corporations rule the world. Yes, maybe they do. But do you know who everyone really fears? People like us. Because they can't hide from us. Because they can't fight shadows and ideas with bullets.

Join us, and people will fear you, too.

Find and install the backdoor on our server, avmnite-02h. Then, we will contact you again.

-"+h.a.NiteSec),[E.BitRunnersTest]:new a.a(E.BitRunnersTest,"We know what you are doing. We know what drives you. We know what you are looking for.

We can help you find the answers.

run4theh111z"),[E.TruthGazer]:new a.a(E.TruthGazer,"@&*($#@&__TH3__#@A&#@*)__TRU1H__(*)&*)($#@&()E&R)W&
%@*$^$()@&$)$*@__CAN__()(@^#)@&@)#__N0__(#@&#)@&@&(
*(__LON6ER__^#)@)(()*#@)@__ESCAP3__)#(@(#@*@()@(#*$
()@)#$*%)$#()$#__Y0UR__(*)$#()%(&(%)*!)($__GAZ3__#("),[E.RedPill]:new a.a(E.RedPill,"@)(#V%*N)@(#*)*C)@#%*)*V)@#(*%V@)(#VN%*)@#(*%
)@B(*#%)@)M#B*%V)____FIND___#$@)#%(B*)@#(*%B)
@_#(%_@#M(BDSPOMB__THE-CAVE_#)$(*@#$)@#BNBEGB
DFLSMFVMV)#@($*)@#*$MV)@#(*$V)M#(*$)M@(#*VM$)")}},,,function(e,t,n){"use strict";function a(e){const t=25e3*(Math.pow(1.02,e)-1);return Math.round(1e4*t)/1e4}function r(e){const t=Math.log(e/25e3+1)/Math.log(1.02);return Math.round(1e4*t)/1e4}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return m}));var a=n(116),r=n(29),i=n(2),o=n(24),s=n(87),l=n(43),c=n(33);function f(){const e=h(),t=d(),n=p(),r=g(n,t),i=new a.a(r,e,t);n.addContract(i)}function u(){const e=h(),t=d(),n=i.a.getHomeComputer(),r=g(n,t),o=new a.a(r,e,t);n.addContract(o)}function m(e){let t;const n=Object.keys(a.d);t=null!=e.problemType&&n.includes(e.problemType)?e.problemType:h();const r=d();let i,s;null!=e.server?(i=Object(o.d)(e.server),null==i&&(i=p())):i=p(),s=null!=e.fn?e.fn:g(i,r);const l=new a.a(s,t,r);i.addContract(l)}function h(){const e=Object.keys(a.d);return e[Object(c.a)(0,e.length-1)]}function d(){const e={name:"",type:Object(c.a)(0,a.c.Money)};e.type=function(e){let t=e;const n=i.a.factions.filter(e=>{try{return r.a[e].getInfo().offerHackingWork}catch(e){return console.error("Error when trying to filter Hacking Factions for Coding Contract Generation: "+e),!1}});return t===a.c.FactionReputation&&0===n.length&&(t=a.c.CompanyReputation),t===a.c.FactionReputationAll&&0===n.length&&(t=a.c.CompanyReputation),t===a.c.CompanyReputation&&0===Object.keys(i.a.jobs).length&&(t=a.c.Money),t}(e.type);const t=i.a.factions.filter(e=>r.a[e].getInfo().offerHackingWork);switch(e.type){case a.c.FactionReputation:{const n=t.length,a=t[Object(c.a)(0,n-1)];e.name=a;break}case a.c.CompanyReputation:{const t=Object.keys(i.a.jobs);t.length>0?e.name=t[Object(c.a)(0,t.length-1)]:e.type=a.c.Money;break}}return e}function p(){const e=Object(o.c)().filter(e=>0!==e.serversOnNetwork.length);let t=Object(c.a)(0,e.length-1),n=e[t];for(let a=0;a<200&&(!(n instanceof l.a)||n.purchasedByPlayer||n.hostname===s.a.WorldDaemon);++a)t=Object(c.a)(0,e.length-1),n=e[t];return n}function g(e,t){let n="contract-"+Object(c.a)(0,1e6);for(let t=0;t<1e3&&!(e.contracts.filter(e=>e.fn===n).length<=0);++t)n="contract-"+Object(c.a)(0,1e6);return t.name&&(n+="-"+t.name.replace(/\s/g,"")),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s}));var a=n(29);let r=0;function i(){return(new Date).getTime()-r>864e5}function o(e){if(i()){for(const t of e.factions)a.a[t].favor++;r=(new Date).getTime()}}function s(e){r=e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n(1),i=n(8),o=n(44),s=n(18);function l(e){return a.createElement(s.a,null,a.createElement(o.a,{sx:{my:1,p:1}},a.createElement(i.a,{onClick:e.onClick},e.buttonText),a.createElement(r.a,null,e.infoText)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(56),r=n(471),i=n(22);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s extends r.a{constructor(e=null){super(e),o(this,"reqdRank",100),o(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){this.teamCount=Math.min(this.teamCount,e.teamSize);return Math.pow(this.teamCount,.05)}return 1}getActionTypeSkillSuccessBonus(e){return e.skillMultipliers.successChanceOperation}getChaosDifficultyBonus(e){const t=e.getCurrentCity();if(t.chaos>a.a.ChaosThreshold){const e=t.chaos-a.a.ChaosThreshold+1;return Math.pow(e,.5)}return 1}toJSON(){return Object(i.b)("Operation",this)}static fromJSON(e){return Object(i.a)(s,e.data)}}i.c.constructors.Operation=s},function(e,t,n){"use strict";n.d(t,"e",(function(){return m})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"f",(function(){return y}));var a=n(34),r=n(11),i=n(2),o=n(60),s=n(321),l=n(0),c=n.n(l),f=n(4),u=n(12);const m=()=>[new a.a({name:r.a.WKSharmonizer,repCost:1e4,moneyCost:1e6,info:`A copy of the WKS harmonizer from the MIA leader of the ${f.a.ShadowsOfAnarchy} injects *Γ-based cells that provides general enhancement to the body.`,stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes many aspects of infiltration easier and more productive. Such as increased timer, rewards, reduced damage taken, etc."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.MightOfAres,repCost:1e4,moneyCost:1e6,info:"Extra-occular neurons taken from old martial art master. Injecting them gives the user the ability to predict the enemy's attack before they even know it themself.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Slash minigame easier by showing you via an indicator when the slash in coming."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.WisdomOfAthena,repCost:1e4,moneyCost:1e6,info:"A connective brain implant to SASHA that focuses on pattern recognition and predictive templating.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Bracket minigame easier by removing all '[' ']'."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.ChaosOfDionysus,repCost:1e4,moneyCost:1e6,info:"Opto-occipito implant to process visual signals before brain interpretation.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Backwards minigame easier by flipping the words."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.BeautyOfAphrodite,repCost:1e4,moneyCost:1e6,info:"Pheromone extruder injected in the thoracodorsal nerve. Emits pleasing scent guaranteed to make conversational partners more agreeable.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Bribe minigame easier by indicating the incorrect paths."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.TrickeryOfHermes,repCost:1e4,moneyCost:1e6,info:"Penta-dynamo-neurovascular-valve inserted in the carpal ligament, enhances dexterity.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Cheat Code minigame easier by allowing the opposite character."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.FloodOfPoseidon,repCost:1e4,moneyCost:1e6,info:"Transtinatium VVD reticulator used in optico-sterbing recognition.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Symbol matching minigame easier by indicating the correct choice."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.HuntOfArtemis,repCost:1e4,moneyCost:1e6,info:"magneto-turboencabulator based on technology by Micha Eike Siemon, increases the user's electro-magnetic sensitivity.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Minesweeper minigame easier by showing the location of all mines and keeping their position."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]}),new a.a({name:r.a.KnowledgeOfApollo,repCost:1e4,moneyCost:1e6,info:"Neodynic retention fjengeln spoofer using -φ karmions, net positive effect on implantee's delta wave.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation makes the Wire Cutting minigame easier by indicating the incorrect wires."),isSpecial:!0,factions:[f.a.ShadowsOfAnarchy]})],h=()=>[new a.a({name:r.a.HemoRecirculator,moneyCost:45e6,repCost:1e4,info:"A heart implant that greatly increases the body's ability to effectively use and pump blood.",strength:1.08,defense:1.08,agility:1.08,dexterity:1.08,factions:[f.a.Tetrads,f.a.TheDarkArmy,f.a.TheSyndicate]}),new a.a({name:r.a.Targeting1,moneyCost:15e6,repCost:5e3,info:"A cranial implant that is embedded within the inner ear structures and optic nerves. It regulates and enhances balance and hand-eye coordination.",dexterity:1.1,factions:[f.a.SlumSnakes,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Sector12,f.a.Ishima,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.Targeting2,moneyCost:425e5,repCost:8750,info:"This upgraded version of the 'Augmented Targeting' implant is capable of augmenting reality by digitally displaying weaknesses and vital signs of threats.",prereqs:[r.a.Targeting1],dexterity:1.2,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Sector12,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.Targeting3,moneyCost:115e6,repCost:27500,info:"The latest version of the 'Augmented Targeting' implant adds the ability to lock-on and track threats.",prereqs:[r.a.Targeting2,r.a.Targeting1],dexterity:1.3,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries,f.a.TheCovenant]}),new a.a({name:r.a.SyntheticHeart,moneyCost:2875e6,repCost:75e4,info:"This advanced artificial heart, created from plasteel and graphene, is capable of pumping blood more efficiently than an organic heart.",agility:1.5,strength:1.5,factions:[f.a.KuaiGongInternational,f.a.FulcrumSecretTechnologies,f.a.SpeakersForTheDead,f.a.NWO,f.a.TheCovenant,f.a.Daedalus,f.a.Illuminati]}),new a.a({name:r.a.SynfibrilMuscle,repCost:437500,moneyCost:1125e6,info:"The myofibrils in human muscles are injected with special chemicals that react with the proteins inside the myofibrils, altering their underlying structure. The end result is muscles that are stronger and more elastic. Scientists have named these artificially enhanced units 'synfibrils'.",strength:1.3,defense:1.3,factions:[f.a.KuaiGongInternational,f.a.FulcrumSecretTechnologies,f.a.SpeakersForTheDead,f.a.NWO,f.a.TheCovenant,f.a.Daedalus,f.a.Illuminati,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib1,repCost:7500,moneyCost:2375e4,info:"The rib cage is augmented to continuously release boosters into the bloodstream which increase the oxygen-carrying capacity of blood.",strength:1.1,defense:1.1,factions:[f.a.SlumSnakes,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Volhaven,f.a.Ishima,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib2,repCost:18750,moneyCost:65e6,info:"An upgraded version of the 'Combat Rib' augmentation that adds potent stimulants which improve focus and endurance while decreasing reaction time and fatigue.",prereqs:[r.a.CombatRib1],strength:1.14,defense:1.14,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.Volhaven,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries]}),new a.a({name:r.a.CombatRib3,repCost:35e3,moneyCost:12e7,info:"The latest version of the 'Combat Rib' augmentation releases advanced anabolic steroids that improve muscle mass and physical performance while being safe and free of side effects.",prereqs:[r.a.CombatRib2,r.a.CombatRib1],strength:1.18,defense:1.18,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.KuaiGongInternational,f.a.BladeIndustries,f.a.TheCovenant]}),new a.a({name:r.a.NanofiberWeave,repCost:37500,moneyCost:125e6,info:"Synthetic nanofibers are woven into the skin's extracellular matrix using electrospinning, which improves its regenerative and extracellular homeostasis abilities.",strength:1.2,defense:1.2,factions:[f.a.TheDarkArmy,f.a.TheSyndicate,f.a.OmniTekIncorporated,f.a.BladeIndustries,f.a.TianDiHui,f.a.SpeakersForTheDead,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.SubdermalArmor,repCost:875e3,moneyCost:325e7,info:"The NEMEAN Subdermal Weave is a thin, light-weight, graphene plating that houses a dilatant fluid. The material is implanted underneath the skin, and is the most advanced form of defensive enhancement that has ever been created. The dilatant fluid, despite being thin and light, is extremely effective at stopping piercing blows and reducing blunt trauma. The properties of graphene allow the plating to mitigate damage from any fire or electrical traumas.",defense:2.2,factions:[f.a.TheSyndicate,f.a.FulcrumSecretTechnologies,f.a.Illuminati,f.a.Daedalus,f.a.TheCovenant]}),new a.a({name:r.a.WiredReflexes,repCost:1250,moneyCost:25e5,info:"Synthetic nerve-enhancements are injected into all major parts of the somatic nervous system, supercharging the spread of neural signals and increasing reflex speed.",agility:1.05,dexterity:1.05,factions:[f.a.TianDiHui,f.a.SlumSnakes,f.a.Sector12,f.a.Volhaven,f.a.Aevum,f.a.Ishima,f.a.TheSyndicate,f.a.TheDarkArmy,f.a.SpeakersForTheDead]}),new a.a({name:r.a.GrapheneBoneLacings,repCost:1125e3,moneyCost:425e7,info:"Graphene is grafted and fused into the skeletal structure, enhancing bone density and tensile strength.",strength:1.7,defense:1.7,factions:[f.a.FulcrumSecretTechnologies,f.a.TheCovenant]}),new a.a({name:r.a.BionicSpine,repCost:45e3,moneyCost:125e6,info:"The spine is reconstructed using plasteel and carbon fibers. It is now capable of stimulating and regulating neural signals passing through the spinal cord, improving senses and reaction speed. The 'Bionic Spine' also interfaces with all other 'Bionic' implants.",strength:1.15,defense:1.15,agility:1.15,dexterity:1.15,factions:[f.a.SpeakersForTheDead,f.a.TheSyndicate,f.a.KuaiGongInternational,f.a.OmniTekIncorporated,f.a.BladeIndustries]}),new a.a({name:r.a.GrapheneBionicSpine,repCost:1625e3,moneyCost:6e9,info:"An upgrade to the 'Bionic Spine' augmentation. The spine is fused with graphene which enhances durability and supercharges all body functions.",prereqs:[r.a.BionicSpine],strength:1.6,defense:1.6,agility:1.6,dexterity:1.6,factions:[f.a.FulcrumSecretTechnologies,f.a.ECorp]}),new a.a({name:r.a.BionicLegs,repCost:15e4,moneyCost:375e6,info:"Cybernetic legs, created from plasteel and carbon fibers, enhance running speed.",agility:1.6,factions:[f.a.SpeakersForTheDead,f.a.TheSyndicate,f.a.KuaiGongInternational,f.a.OmniTekIncorporated,f.a.BladeIndustries]}),new a.a({name:r.a.GrapheneBionicLegs,repCost:75e4,moneyCost:45e8,info:"An upgrade to the 'Bionic Legs' augmentation. The legs are fused with graphene, greatly enhancing jumping ability.",prereqs:[r.a.BionicLegs],agility:2.5,factions:[f.a.MegaCorp,f.a.ECorp,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.SpeechProcessor,repCost:7500,moneyCost:5e7,info:"A cochlear implant with an embedded computer that analyzes incoming speech. The embedded computer processes characteristics of incoming speech, such as tone and inflection, to pick up on subtle cues and aid in social interactions.",charisma:1.2,factions:[f.a.TianDiHui,f.a.Chongqing,f.a.Sector12,f.a.NewTokyo,f.a.Aevum,f.a.Ishima,f.a.Volhaven,f.a.Silhouette]}),new a.a({name:r.a.TITN41Injection,repCost:25e3,moneyCost:19e7,info:"TITN is a series of viruses that targets and alters the sequences of human DNA in genes that control personality. The TITN-41 strain alters these genes so that the subject becomes more outgoing and sociable.",charisma:1.15,charisma_exp:1.15,factions:[f.a.Silhouette]}),new a.a({name:r.a.EnhancedSocialInteractionImplant,repCost:375e3,moneyCost:1375e6,info:"A cranial implant that greatly assists in the user's ability to analyze social situations and interactions. The system uses a wide variety of factors such as facial expression, body language, voice tone, and inflection to determine the best course of action during social situations. The implant also uses deep learning software to continuously learn new behavior patterns and how to best respond.",charisma:1.6,charisma_exp:1.6,factions:[f.a.BachmanAssociates,f.a.NWO,f.a.ClarkeIncorporated,f.a.OmniTekIncorporated,f.a.FourSigma]}),new a.a({name:r.a.BitWire,repCost:3750,moneyCost:1e7,info:"A small brain implant embedded in the cerebrum. This regulates and improves the brain's computing capabilities.",hacking:1.05,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.ArtificialBioNeuralNetwork,repCost:275e3,moneyCost:3e9,info:"A network consisting of millions of nanoprocessors is embedded into the brain. The network is meant to mimic the way a biological brain solves a problem, with each nanoprocessor acting similar to the way a neuron would in a neural network. However, these nanoprocessors are programmed to perform computations much faster than organic neurons, allowing the user to solve much more complex problems at a much faster rate.",hacking_speed:1.03,hacking_money:1.15,hacking:1.12,factions:[f.a.BitRunners,f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.ArtificialSynapticPotentiation,repCost:6250,moneyCost:8e7,info:"The body is injected with a chemical that artificially induces synaptic potentiation, otherwise known as the strengthening of synapses. This results in enhanced cognitive abilities.",hacking_speed:1.02,hacking_chance:1.05,hacking_exp:1.05,factions:[f.a.TheBlackHand,f.a.NiteSec]}),new a.a({name:r.a.EnhancedMyelinSheathing,repCost:1e5,moneyCost:1375e6,info:"Electrical signals are used to induce a new, artificial form of myelinogenesis in the human body. This process results in the proliferation of new, synthetic myelin sheaths in the nervous system. These myelin sheaths can propogate neuro-signals much faster than their organic counterparts, leading to greater processing speeds and better brain function.",hacking_speed:1.03,hacking_exp:1.1,hacking:1.08,factions:[f.a.FulcrumSecretTechnologies,f.a.BitRunners,f.a.TheBlackHand]}),new a.a({name:r.a.SynapticEnhancement,repCost:2e3,moneyCost:75e5,info:"A small cranial implant that continuously uses weak electrical signals to stimulate the brain and induce stronger synaptic activity. This improves the user's cognitive abilities.",hacking_speed:1.03,factions:[f.a.CyberSec,f.a.Aevum]}),new a.a({name:r.a.NeuralRetentionEnhancement,repCost:2e4,moneyCost:25e7,info:"Chemical injections are used to permanently alter and strengthen the brain's neuronal circuits, strengthening the ability to retain information.",hacking_exp:1.25,factions:[f.a.NiteSec]}),new a.a({name:r.a.DataJack,repCost:112500,moneyCost:45e7,info:"A brain implant that provides an interface for direct, wireless communication between a computer's main memory and the mind. This implant allows the user to not only access a computer's memory, but also alter and delete it.",hacking_money:1.25,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.NiteSec,f.a.Chongqing,f.a.NewTokyo]}),new a.a({name:r.a.ENM,repCost:15e3,moneyCost:25e7,info:"A thin device embedded inside the arm containing a wireless module capable of connecting to nearby networks. Once connected, the Netburner Module is capable of capturing and processing all of the traffic on that network. By itself, the Embedded Netburner Module does not do much, but a variety of very powerful upgrades can be installed that allow you to fully control the traffic on a network.",hacking:1.08,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.NiteSec,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries]}),new a.a({name:r.a.ENMCore,repCost:175e3,moneyCost:25e8,info:"The Core library is an implant that upgrades the firmware of the Embedded Netburner Module. This upgrade allows the Embedded Netburner Module to generate its own data on a network.",prereqs:[r.a.ENM],hacking_speed:1.03,hacking_money:1.1,hacking_chance:1.03,hacking_exp:1.07,hacking:1.07,factions:[f.a.BitRunners,f.a.TheBlackHand,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries]}),new a.a({name:r.a.ENMCoreV2,repCost:1e6,moneyCost:45e8,info:"The Core V2 library is an implant that upgrades the firmware of the Embedded Netburner Module. This upgraded firmware allows the Embedded Netburner Module to control information on a network by re-routing traffic, spoofing IP addresses, and altering the data inside network packets.",prereqs:[r.a.ENMCore,r.a.ENM],hacking_speed:1.05,hacking_money:1.3,hacking_chance:1.05,hacking_exp:1.15,hacking:1.08,factions:[f.a.BitRunners,f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.BladeIndustries,f.a.OmniTekIncorporated,f.a.KuaiGongInternational]}),new a.a({name:r.a.ENMCoreV3,repCost:175e4,moneyCost:75e8,info:"The Core V3 library is an implant that upgrades the firmware of the Embedded Netburner Module. This upgraded firmware allows the Embedded Netburner Module to seamlessly inject code into any device on a network.",prereqs:[r.a.ENMCoreV2,r.a.ENMCore,r.a.ENM],hacking_speed:1.05,hacking_money:1.4,hacking_chance:1.1,hacking_exp:1.25,hacking:1.1,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.ENMAnalyzeEngine,repCost:625e3,moneyCost:6e9,info:"Installs the Analyze Engine for the Embedded Netburner Module, which is a CPU cluster that vastly outperforms the Netburner Module's native single-core processor.",prereqs:[r.a.ENM],hacking_speed:1.1,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.ENMDMA,repCost:1e6,moneyCost:7e9,info:"This implant installs a Direct Memory Access (DMA) controller into the Embedded Netburner Module. This allows the Module to send and receive data directly to and from the main memory of devices on a network.",prereqs:[r.a.ENM],hacking_money:1.4,hacking_chance:1.2,factions:[f.a.ECorp,f.a.MegaCorp,f.a.FulcrumSecretTechnologies,f.a.NWO,f.a.Daedalus,f.a.TheCovenant,f.a.Illuminati]}),new a.a({name:r.a.Neuralstimulator,repCost:5e4,moneyCost:3e9,info:"A cranial implant that intelligently stimulates certain areas of the brain in order to improve cognitive functions.",hacking_speed:1.02,hacking_chance:1.1,hacking_exp:1.12,factions:[f.a.TheBlackHand,f.a.Chongqing,f.a.Sector12,f.a.NewTokyo,f.a.Aevum,f.a.Ishima,f.a.Volhaven,f.a.BachmanAssociates,f.a.ClarkeIncorporated,f.a.FourSigma]}),new a.a({name:r.a.NeuralAccelerator,repCost:2e5,moneyCost:175e7,info:"A microprocessor that accelerates the processing speed of biological neural networks. This is a cranial implant that is embedded inside the brain.",hacking:1.1,hacking_exp:1.15,hacking_money:1.2,factions:[f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG1,repCost:1e4,moneyCost:7e7,info:"The first generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",hacking_speed:1.01,hacking:1.05,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.CranialSignalProcessorsG2,repCost:18750,moneyCost:125e6,info:"The second generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",prereqs:[r.a.CranialSignalProcessorsG1],hacking_speed:1.02,hacking_chance:1.05,hacking:1.07,factions:[f.a.CyberSec,f.a.NiteSec]}),new a.a({name:r.a.CranialSignalProcessorsG3,repCost:5e4,moneyCost:55e7,info:"The third generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",prereqs:[r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_speed:1.02,hacking_money:1.15,hacking:1.09,factions:[f.a.NiteSec,f.a.TheBlackHand,f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG4,repCost:125e3,moneyCost:11e8,info:"The fourth generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",prereqs:[r.a.CranialSignalProcessorsG3,r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking_speed:1.02,hacking_money:1.2,hacking_grow:1.25,factions:[f.a.TheBlackHand,f.a.BitRunners]}),new a.a({name:r.a.CranialSignalProcessorsG5,repCost:25e4,moneyCost:225e7,info:"The fifth generation of Cranial Signal Processors. Cranial Signal Processors are a set of specialized microprocessors that are attached to neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations so that the brain doesn't have to.",prereqs:[r.a.CranialSignalProcessorsG4,r.a.CranialSignalProcessorsG3,r.a.CranialSignalProcessorsG2,r.a.CranialSignalProcessorsG1],hacking:1.3,hacking_money:1.25,hacking_grow:1.75,factions:[f.a.BitRunners]}),new a.a({name:r.a.NeuronalDensification,repCost:187500,moneyCost:1375e6,info:"The brain is surgically re-engineered to have increased neuronal density by decreasing the neuron gap junction. Then, the body is genetically modified to enhance the production and capabilities of its neural stem cells.",hacking:1.15,hacking_exp:1.1,hacking_speed:1.03,factions:[f.a.ClarkeIncorporated]}),new a.a({name:r.a.NuoptimalInjectorImplant,repCost:5e3,moneyCost:2e7,info:"This torso implant automatically injects nootropic supplements into the bloodstream to improve memory, increase focus, and provide other cognitive enhancements.",company_rep:1.2,factions:[f.a.TianDiHui,f.a.Volhaven,f.a.NewTokyo,f.a.Chongqing,f.a.ClarkeIncorporated,f.a.FourSigma,f.a.BachmanAssociates]}),new a.a({name:r.a.SpeechEnhancement,repCost:2500,moneyCost:125e5,info:"An advanced neural implant that improves your speaking abilities, making you more convincing and likable in conversations and overall improving your social interactions.",company_rep:1.1,charisma:1.1,factions:[f.a.TianDiHui,f.a.SpeakersForTheDead,f.a.FourSigma,f.a.KuaiGongInternational,f.a.ClarkeIncorporated,f.a.BachmanAssociates]}),new a.a({name:r.a.FocusWire,repCost:75e3,moneyCost:9e8,info:"A cranial implant that stops procrastination by blocking specific neural pathways in the brain.",hacking_exp:1.05,strength_exp:1.05,defense_exp:1.05,dexterity_exp:1.05,agility_exp:1.05,charisma_exp:1.05,company_rep:1.1,work_money:1.2,factions:[f.a.BachmanAssociates,f.a.ClarkeIncorporated,f.a.FourSigma,f.a.KuaiGongInternational]}),new a.a({name:r.a.PCDNI,repCost:375e3,moneyCost:375e7,info:"Installs a Direct-Neural Interface jack into your arm that is compatible with most computers. Connecting to a computer through this jack allows you to interface with it using the brain's electrochemical signals.",company_rep:1.3,hacking:1.08,factions:[f.a.FourSigma,f.a.OmniTekIncorporated,f.a.ECorp,f.a.BladeIndustries]}),new a.a({name:r.a.PCDNIOptimizer,repCost:5e5,moneyCost:45e8,info:"This is a submodule upgrade to the PC Direct-Neural Interface augmentation. It improves the performance of the interface and gives the user more control options to a connected computer.",prereqs:[r.a.PCDNI],company_rep:1.75,hacking:1.1,factions:[f.a.FulcrumSecretTechnologies,f.a.ECorp,f.a.BladeIndustries]}),new a.a({name:r.a.PCDNINeuralNetwork,repCost:15e5,moneyCost:75e8,info:"This is an additional installation that upgrades the functionality of the PC Direct-Neural Interface augmentation. When connected to a computer, the Neural Network upgrade allows the user to use their own brain's processing power to aid the computer in computational tasks.",prereqs:[r.a.PCDNI],company_rep:2,hacking:1.1,hacking_speed:1.05,factions:[f.a.FulcrumSecretTechnologies]}),new a.a({name:r.a.ADRPheromone1,repCost:3750,moneyCost:175e5,info:"The body is genetically re-engineered so that it produces the ADR-V1 pheromone, an artificial pheromone discovered by scientists. The ADR-V1 pheromone, when excreted, triggers feelings of admiration and approval in other people.",company_rep:1.1,faction_rep:1.1,factions:[f.a.TianDiHui,f.a.TheSyndicate,f.a.NWO,f.a.MegaCorp,f.a.FourSigma]}),new a.a({name:r.a.ADRPheromone2,repCost:62500,moneyCost:55e7,info:"The body is genetically re-engineered so that it produces the ADR-V2 pheromone, which is similar to but more potent than ADR-V1. This pheromone, when excreted, triggers feelings of admiration, approval, and respect in others.",company_rep:1.2,faction_rep:1.2,factions:[f.a.Silhouette,f.a.FourSigma,f.a.BachmanAssociates,f.a.ClarkeIncorporated]}),new a.a({name:r.a.ShadowsSimulacrum,repCost:37500,moneyCost:4e8,info:"A crude but functional matter phase-shifter module that is embedded in the brainstem and cerebellum. This augmentation was developed by criminal organizations and allows the user to project and control holographic simulacrums within a large radius. These simulacrums are commonly used for espionage and surveillance work.",company_rep:1.15,faction_rep:1.15,factions:[f.a.TheSyndicate,f.a.TheDarkArmy,f.a.SpeakersForTheDead]}),new a.a({name:r.a.HacknetNodeCPUUpload,repCost:3750,moneyCost:11e6,info:"Uploads the architecture and design details of a Hacknet Node's CPU into the brain. This allows the user to engineer custom hardware and software for the Hacknet Node that provides better performance.",hacknet_node_money:1.15,hacknet_node_purchase_cost:.85,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeCacheUpload,repCost:2500,moneyCost:55e5,info:"Uploads the architecture and design details of a Hacknet Node's main-memory cache into the brain. This allows the user to engineer custom cache hardware for the Hacknet Node that offers better performance.",hacknet_node_money:1.1,hacknet_node_level_cost:.85,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeNICUpload,repCost:1875,moneyCost:45e5,info:"Uploads the architecture and design details of a Hacknet Node's Network Interface Card (NIC) into the brain. This allows the user to engineer a custom NIC for the Hacknet Node that offers better performance.",hacknet_node_money:1.1,hacknet_node_purchase_cost:.9,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeKernelDNI,repCost:7500,moneyCost:4e7,info:"Installs a Direct-Neural Interface jack into the arm that is capable of connecting to a Hacknet Node. This lets the user access and manipulate the Node's kernel using electrochemical signals.",hacknet_node_money:1.25,factions:[f.a.Netburners]}),new a.a({name:r.a.HacknetNodeCoreDNI,repCost:12500,moneyCost:6e7,info:"Installs a Direct-Neural Interface jack into the arm that is capable of connecting to a Hacknet Node. This lets the user access and manipulate the Node's processing logic using electrochemical signals.",hacknet_node_money:1.45,factions:[f.a.Netburners]}),new a.a({name:r.a.Neurotrainer1,repCost:1e3,moneyCost:4e6,info:"A decentralized cranial implant that improves the brain's ability to learn. It is installed by releasing millions of nanobots into the human brain, each of which attaches to a different neural pathway to enhance the brain's ability to retain and retrieve information.",hacking_exp:1.1,strength_exp:1.1,defense_exp:1.1,dexterity_exp:1.1,agility_exp:1.1,charisma_exp:1.1,factions:[f.a.CyberSec,f.a.Aevum]}),new a.a({name:r.a.Neurotrainer2,repCost:1e4,moneyCost:45e6,info:"A decentralized cranial implant that improves the brain's ability to learn. This is a more powerful version of the Neurotrainer I augmentation, but it does not require Neurotrainer I to be installed as a prerequisite.",hacking_exp:1.15,strength_exp:1.15,defense_exp:1.15,dexterity_exp:1.15,agility_exp:1.15,charisma_exp:1.15,factions:[f.a.BitRunners,f.a.NiteSec]}),new a.a({name:r.a.Neurotrainer3,repCost:25e3,moneyCost:13e7,info:"A decentralized cranial implant that improves the brain's ability to learn. This is a more powerful version of the Neurotrainer I and Neurotrainer II augmentation, but it does not require either of them to be installed as a prerequisite.",hacking_exp:1.2,strength_exp:1.2,defense_exp:1.2,dexterity_exp:1.2,agility_exp:1.2,charisma_exp:1.2,factions:[f.a.NWO,f.a.FourSigma]}),new a.a({name:r.a.Hypersight,repCost:15e4,moneyCost:275e7,info:"A bionic eye implant that grants sight capabilities far beyond those of a natural human. Embedded circuitry within the implant provides the ability to detect heat and movement through solid objects such as walls, thus providing 'x-ray vision'-like capabilities.",dexterity:1.4,hacking_speed:1.03,hacking_money:1.1,factions:[f.a.BladeIndustries,f.a.KuaiGongInternational]}),new a.a({name:r.a.LuminCloaking1,repCost:1500,moneyCost:5e6,info:"A skin implant that reinforces the skin with highly-advanced synthetic cells. These cells, when powered, have a negative refractive index. As a result, they bend light around the skin, making the user much harder to see with the naked eye.",agility:1.05,crime_money:1.1,factions:[f.a.SlumSnakes,f.a.Tetrads]}),new a.a({name:r.a.LuminCloaking2,repCost:5e3,moneyCost:3e7,info:"This is a more advanced version of the LuminCloaking-V1 augmentation. This skin implant reinforces the skin with highly-advanced synthetic cells. These cells, when powered, are capable of not only bending light but also of bending heat, making the user more resilient as well as stealthy.",prereqs:[r.a.LuminCloaking1],agility:1.1,defense:1.1,crime_money:1.25,factions:[f.a.SlumSnakes,f.a.Tetrads]}),new a.a({name:r.a.SmartSonar,repCost:22500,moneyCost:75e6,info:"A cochlear implant that helps the player detect and locate enemies using sound propagation.",dexterity:1.1,dexterity_exp:1.15,crime_money:1.25,factions:[f.a.SlumSnakes]}),new a.a({name:r.a.PowerRecirculator,repCost:25e3,moneyCost:18e7,info:"The body's nerves are attached with polypyrrole nanocircuits that are capable of capturing wasted energy, in the form of heat, and converting it back into usable power.",hacking:1.05,strength:1.05,defense:1.05,dexterity:1.05,agility:1.05,charisma:1.05,hacking_exp:1.1,strength_exp:1.1,defense_exp:1.1,dexterity_exp:1.1,agility_exp:1.1,charisma_exp:1.1,factions:[f.a.Tetrads,f.a.TheDarkArmy,f.a.TheSyndicate,f.a.NWO]}),new a.a({name:r.a.QLink,repCost:1875e3,moneyCost:25e12,info:`A brain implant that wirelessly connects you to the ${f.a.Illuminati}'s quantum supercomputer, allowing you to access and use its incredible computing power.`,hacking:1.75,hacking_speed:2,hacking_chance:2.5,hacking_money:4,factions:[f.a.Illuminati]}),new a.a({name:r.a.SPTN97,repCost:125e4,moneyCost:4875e6,info:"The SPTN-97 gene is injected into the genome. The SPTN-97 gene is an artificially-synthesized gene that was developed by DARPA to create super-soldiers through genetic modification. The gene was outlawed in 2056.",strength:1.75,defense:1.75,dexterity:1.75,agility:1.75,hacking:1.15,factions:[f.a.TheCovenant]}),new a.a({name:r.a.HiveMind,repCost:15e5,moneyCost:55e8,info:`A brain implant developed by ${f.a.ECorp}. They do not reveal what exactly the implant does, but they promise that it will greatly enhance your abilities.`,hacking_grow:3,stats:null,factions:[f.a.ECorp]}),new a.a({name:r.a.TheRedPill,repCost:25e5,moneyCost:0,info:"It's time to leave the cave.",stats:null,isSpecial:!0,factions:[f.a.Daedalus]}),new a.a({name:r.a.CordiARCReactor,repCost:1125e3,moneyCost:5e9,info:"The thoracic cavity is equipped with a small chamber designed to hold and sustain hydrogen plasma. The plasma is used to generate fusion power through nuclear fusion, providing limitless amounts of clean energy for the body.",strength:1.35,defense:1.35,dexterity:1.35,agility:1.35,strength_exp:1.35,defense_exp:1.35,dexterity_exp:1.35,agility_exp:1.35,factions:[f.a.MegaCorp]}),new a.a({name:r.a.SmartJaw,repCost:375e3,moneyCost:275e7,info:"A bionic jaw that contains advanced hardware and software capable of psychoanalyzing and profiling the personality of others using optical imaging software.",charisma:1.5,charisma_exp:1.5,company_rep:1.25,faction_rep:1.25,factions:[f.a.BachmanAssociates]}),new a.a({name:r.a.Neotra,repCost:562500,moneyCost:2875e6,info:"A highly-advanced techno-organic drug that is injected into the skeletal and integumentary system. The drug permanently modifies the DNA of the body's skin and bone cells, granting them the ability to repair and restructure themselves.",strength:1.55,defense:1.55,factions:[f.a.BladeIndustries]}),new a.a({name:r.a.Xanipher,repCost:875e3,moneyCost:425e7,info:"A concoction of advanced nanobots that is orally ingested into the body. These nanobots induce physiological changes and significantly improve the body's functioning in all aspects.",hacking:1.2,strength:1.2,defense:1.2,dexterity:1.2,agility:1.2,charisma:1.2,hacking_exp:1.15,strength_exp:1.15,defense_exp:1.15,dexterity_exp:1.15,agility_exp:1.15,charisma_exp:1.15,factions:[f.a.NWO]}),new a.a({name:r.a.HydroflameLeftArm,repCost:125e4,moneyCost:25e11,info:"The left arm of a legendary BitRunner who ascended beyond this world. It projects a light blue energy shield that protects the exposed inner parts. Even though it contains no weapons, the advanced tungsten titanium alloy increases the user's strength to unbelievable levels. The augmentation gets more powerful over time for seemingly no reason.",strength:2.7,factions:[f.a.NWO]}),new a.a({name:r.a.nextSENS,repCost:437500,moneyCost:1925e6,info:"The body is genetically re-engineered to maintain a state of negligible senescence, preventing the body from deteriorating with age.",hacking:1.2,strength:1.2,defense:1.2,dexterity:1.2,agility:1.2,charisma:1.2,factions:[f.a.ClarkeIncorporated]}),new a.a({name:r.a.OmniTekInfoLoad,repCost:625e3,moneyCost:2875e6,info:"OmniTek's data and information repository is uploaded into your brain, enhancing your programming and hacking abilities.",hacking:1.2,hacking_exp:1.25,factions:[f.a.OmniTekIncorporated]}),new a.a({name:r.a.PhotosyntheticCells,repCost:562500,moneyCost:275e7,info:"Chloroplasts are added to epidermal stem cells and are applied to the body using a skin graft. The result is photosynthetic skin cells, allowing users to generate their own energy and nutrition using solar power.",strength:1.4,defense:1.4,agility:1.4,factions:[f.a.KuaiGongInternational]}),new a.a({name:r.a.Neurolink,repCost:875e3,moneyCost:4375e6,info:`A brain implant that provides a high-bandwidth, direct neural link between your mind and the ${f.a.BitRunners}' data servers, which reportedly contain the largest database of hacking tools and information in the world.`,hacking:1.15,hacking_exp:1.2,hacking_chance:1.1,hacking_speed:1.05,programs:[o.a.FTPCrackProgram.name,o.a.RelaySMTPProgram.name],factions:[f.a.BitRunners]}),new a.a({name:r.a.TheBlackHand,repCost:1e5,moneyCost:55e7,info:"A highly advanced bionic hand. This prosthetic not only enhances strength and dexterity but it is also embedded with hardware and firmware that lets the user connect to, access, and hack devices and machines by just touching them.",strength:1.15,dexterity:1.15,hacking:1.1,hacking_speed:1.02,hacking_money:1.1,factions:[f.a.TheBlackHand]}),new a.a({name:r.a.CRTX42AA,repCost:45e3,moneyCost:225e6,info:"The CRTX42-AA gene is injected into the genome. The CRTX42-AA is an artificially-synthesized gene that targets the visual and prefrontal cortex and improves cognitive abilities.",hacking:1.08,hacking_exp:1.15,factions:[f.a.NiteSec]}),new a.a({name:r.a.Neuregen,repCost:37500,moneyCost:375e6,info:"A drug that genetically modifies the neurons in the brain resulting in neurons that never die, continuously regenerate, and strengthen themselves.",hacking_exp:1.4,factions:[f.a.Chongqing]}),new a.a({name:r.a.CashRoot,repCost:12500,moneyCost:125e6,info:c.a.createElement(c.a.Fragment,null,"A collection of digital assets saved on a small chip. The chip is implanted into your wrist. A small jack in the chip allows you to connect it to a computer and upload the assets."),startingMoney:1e6,programs:[o.a.BruteSSHProgram.name],factions:[f.a.Sector12]}),new a.a({name:r.a.NutriGen,repCost:6250,moneyCost:25e5,info:"A thermo-powered artificial nutrition generator. Endogenously synthesizes glucose, amino acids, and vitamins and redistributes them across the body. The device is powered by the body's naturally wasted energy in the form of heat.",strength_exp:1.2,defense_exp:1.2,dexterity_exp:1.2,agility_exp:1.2,factions:[f.a.NewTokyo]}),new a.a({name:r.a.PCMatrix,repCost:1e5,moneyCost:2e9,info:"A 'Probability Computation Matrix' is installed in the frontal cortex. This implant uses advanced mathematical algorithims to rapidly identify and compute statistical outcomes of nearly every situation.",charisma:1.0777,charisma_exp:1.0777,work_money:1.777,faction_rep:1.0777,company_rep:1.0777,crime_success:1.0777,crime_money:1.0777,programs:[o.a.DeepscanV1.name,o.a.AutoLink.name],factions:[f.a.Aevum]}),new a.a({name:r.a.INFRARet,repCost:7500,moneyCost:3e7,info:"A tiny chip that sits behind the retinae. This implant lets the user visually detect infrared radiation.",crime_success:1.25,crime_money:1.1,dexterity:1.1,factions:[f.a.Ishima]}),new a.a({name:r.a.DermaForce,repCost:15e3,moneyCost:5e7,info:"Synthetic skin that is grafted onto the body. This skin consists of millions of nanobots capable of projecting high-density muon beams, creating an energy barrier around the user.",defense:1.4,factions:[f.a.Volhaven]}),new a.a({name:r.a.GrapheneBrachiBlades,repCost:225e3,moneyCost:25e8,info:"An upgrade to the BrachiBlades augmentation. It infuses the retractable blades with an advanced graphene material making them stronger and lighter.",prereqs:[r.a.BrachiBlades],strength:1.4,defense:1.4,crime_success:1.1,crime_money:1.3,factions:[f.a.SpeakersForTheDead]}),new a.a({name:r.a.GrapheneBionicArms,repCost:5e5,moneyCost:375e7,info:"An upgrade to the Bionic Arms augmentation. It infuses the prosthetic arms with an advanced graphene material to make them stronger and lighter.",prereqs:[r.a.BionicArms],strength:1.85,dexterity:1.85,factions:[f.a.TheDarkArmy]}),new a.a({name:r.a.BrachiBlades,repCost:12500,moneyCost:9e7,info:"A set of retractable plasteel blades that are implanted in the arm, underneath the skin.",strength:1.15,defense:1.15,crime_success:1.1,crime_money:1.15,factions:[f.a.TheSyndicate]}),new a.a({name:r.a.BionicArms,repCost:62500,moneyCost:275e6,info:"Cybernetic arms created from plasteel and carbon fibers that completely replace the user's organic arms.",strength:1.3,dexterity:1.3,factions:[f.a.Tetrads]}),new a.a({name:r.a.SNA,repCost:6250,moneyCost:3e7,info:"A cranial implant that affects the user's personality, making them better at negotiation in social situations.",work_money:1.1,company_rep:1.15,faction_rep:1.15,factions:[f.a.TianDiHui]}),new a.a({name:r.a.NeuroreceptorManager,repCost:75e3,moneyCost:55e7,info:"A brain implant carefully assembled around the synapses, which micromanages the activity and levels of various neuroreceptor chemicals and modulates electrical activity to optimize concentration, allowing the user to multitask much more effectively.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation removes the penalty for not focusing on actions such as working in a job or working for a faction."),factions:[f.a.TianDiHui]}),new a.a({name:r.a.CongruityImplant,repCost:1/0,moneyCost:5e13,info:c.a.createElement(c.a.Fragment,null,"Developed by a pioneer in Grafting research, this implant generates pulses of stability which seem to have a nullifying effect versus the Entropy virus.",c.a.createElement("br",null),c.a.createElement("br",null),c.a.createElement("b",null,"Note:")," For unknown reasons, the lowercase ",c.a.createElement("code",null,"n")," appears to be an integral component to its functionality."),stats:c.a.createElement(c.a.Fragment,null,"This Augmentation removes the Entropy virus, and prevents it from affecting you again."),factions:[]})],d=()=>[new a.a({name:r.a.EsperEyewear,repCost:1250,moneyCost:165e6,info:"Ballistic-grade protective and retractable eyewear that was designed specifically for Bladeburner units. This is implanted by installing a mechanical frame in the skull's orbit. This frame interfaces with the brain and allows the user to automatically extrude and extract the eyewear. The eyewear protects against debris, shrapnel, lasers, blinding flashes, and gas. It is also embedded with a data processing chip that can be programmed to display an AR HUD to assist the user in field missions.",bladeburner_success_chance:1.03,dexterity:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.EMS4Recombination,repCost:2500,moneyCost:275e6,info:"A DNA recombination of the EMS-4 Gene. This genetic engineering technique was originally used on Bladeburners during the Synthoid uprising to induce wakefulness and concentration, suppress fear, reduce empathy, improve reflexes, and improve memory among other things.",bladeburner_success_chance:1.03,bladeburner_analysis:1.05,bladeburner_stamina_gain:1.02,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.OrionShoulder,repCost:6250,moneyCost:55e7,info:"A bionic shoulder augmentation for the right shoulder. Using cybernetics, the ORION-MKIV shoulder enhances the strength and dexterity of the user's right arm. It also provides protection due to its crystallized graphene plating.",defense:1.05,strength:1.05,dexterity:1.05,bladeburner_success_chance:1.04,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.HyperionV1,repCost:12500,moneyCost:275e7,info:"A pair of mini plasma cannons embedded into the hands. The Hyperion is capable of rapidly firing bolts of high-density plasma. The weapon is meant to be used against augmented enemies as the ionized nature of the plasma disrupts the electrical systems of Augmentations. However, it can also be effective against non-augmented enemies due to its high temperature and concussive force.",bladeburner_success_chance:1.06,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.HyperionV2,repCost:25e3,moneyCost:55e8,info:"A pair of mini plasma cannons embedded into the hands. This augmentation is more advanced and powerful than the original V1 model. This V2 model is more power-efficient, more accurate, and can fire plasma bolts at a much higher velocity than the V1 model.",prereqs:[r.a.HyperionV1],bladeburner_success_chance:1.08,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.GolemSerum,repCost:31250,moneyCost:11e9,info:"A serum that permanently enhances many aspects of human capabilities, including strength, speed, immune system enhancements, and mitochondrial efficiency. The serum was originally developed by the Chinese military in an attempt to create super soldiers.",strength:1.07,defense:1.07,dexterity:1.07,agility:1.07,bladeburner_stamina_gain:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.VangelisVirus,repCost:18750,moneyCost:275e7,info:"A synthetic symbiotic virus that is injected into human brain tissue. The Vangelis virus heightens the senses and focus of its host, and also enhances its intuition.",dexterity_exp:1.1,bladeburner_analysis:1.1,bladeburner_success_chance:1.04,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.VangelisVirus3,repCost:37500,moneyCost:11e9,info:"An improved version of Vangelis, a synthetic symbiotic virus that is injected into human brain tissue. On top of the benefits of the original virus, this also grants accelerated healing and enhanced reflexes.",prereqs:[r.a.VangelisVirus],defense_exp:1.1,dexterity_exp:1.1,bladeburner_analysis:1.15,bladeburner_success_chance:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.INTERLINKED,repCost:25e3,moneyCost:55e8,info:"The DNA is genetically modified to enhance the human's body extracellular matrix (ECM). This improves the ECM's ability to structurally support the body and grants heightened strength and durability.",strength_exp:1.05,defense_exp:1.05,dexterity_exp:1.05,agility_exp:1.05,bladeburner_max_stamina:1.1,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeRunner,repCost:2e4,moneyCost:825e7,info:`A cybernetic foot augmentation that was specifically created for ${f.a.Bladeburners} during the Synthoid Uprising. The organic musculature of the human foot is enhanced with flexible carbon nanotube matrices that are controlled by intelligent servo-motors.`,agility:1.05,bladeburner_max_stamina:1.05,bladeburner_stamina_gain:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmor,repCost:12500,moneyCost:1375e6,info:`A powered exoskeleton suit designed as armor for ${f.a.Bladeburners} units. This exoskeleton is incredibly adaptable and can protect the wearer from blunt, piercing, concussive, thermal, chemical, and electric trauma. It also enhances the user's physical abilities.`,strength:1.04,defense:1.04,dexterity:1.04,agility:1.04,bladeburner_stamina_gain:1.02,bladeburner_success_chance:1.03,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorPowerCells,repCost:18750,moneyCost:275e7,info:"Upgrades the BLADE-51b Tesla Armor with Ion Power Cells, which are capable of more efficiently storing and using power.",prereqs:[r.a.BladeArmor],bladeburner_success_chance:1.05,bladeburner_stamina_gain:1.02,bladeburner_max_stamina:1.05,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorEnergyShielding,repCost:21250,moneyCost:55e8,info:"Upgrades the BLADE-51b Tesla Armor with a plasma energy propulsion system that is capable of projecting an energy shielding force field.",prereqs:[r.a.BladeArmor],defense:1.05,bladeburner_success_chance:1.06,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorUnibeam,repCost:31250,moneyCost:165e8,info:"Upgrades the BLADE-51b Tesla Armor with a concentrated deuterium-fluoride laser weapon. It's precision and accuracy makes it useful for quickly neutralizing threats while keeping casualties to a minimum.",prereqs:[r.a.BladeArmor],bladeburner_success_chance:1.08,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorOmnibeam,repCost:62500,moneyCost:275e8,info:"Upgrades the BLADE-51b Tesla Armor Unibeam augmentation to use a multiple-fiber system. This upgraded weapon uses multiple fiber laser modules that combine together to form a single, more powerful beam of up to 2000MW.",prereqs:[r.a.BladeArmorUnibeam],bladeburner_success_chance:1.1,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladeArmorIPU,repCost:15e3,moneyCost:11e8,info:"Upgrades the BLADE-51b Tesla Armor with an AI Information Processing Unit that was specially designed to analyze Synthoid related data and information.",prereqs:[r.a.BladeArmor],bladeburner_analysis:1.15,bladeburner_success_chance:1.02,isSpecial:!0,factions:[f.a.Bladeburners]}),new a.a({name:r.a.BladesSimulacrum,repCost:1250,moneyCost:15e10,info:"A highly-advanced matter phase-shifter module that is embedded in the brainstem and cerebellum. This augmentation allows the user to project and control a holographic simulacrum within an extremely large radius. These specially-modified holograms were specifically weaponized by Bladeburner units to be used against Synthoids.",stats:c.a.createElement(c.a.Fragment,null,"This augmentation allows you to perform Bladeburner actions and other actions (such as working, commiting crimes, etc.) at the same time."),isSpecial:!0,factions:[f.a.Bladeburners]})],p=()=>[new a.a({name:r.a.StaneksGift1,repCost:0,moneyCost:0,info:'Allison "Mother" Stanek imparts you with her gift. An experimental Augmentation implanted at the base of the neck. It allows you to overclock your entire system by carefully changing the configuration.',isSpecial:!0,hacking_chance:.9,hacking_speed:.9,hacking_money:.9,hacking_grow:.9,hacking:.9,strength:.9,defense:.9,dexterity:.9,agility:.9,charisma:.9,hacking_exp:.9,strength_exp:.9,defense_exp:.9,dexterity_exp:.9,agility_exp:.9,charisma_exp:.9,company_rep:.9,faction_rep:.9,crime_money:.9,crime_success:.9,hacknet_node_money:.9,hacknet_node_purchase_cost:1.1,hacknet_node_ram_cost:1.1,hacknet_node_core_cost:1.1,hacknet_node_level_cost:1.1,work_money:.9,stats:c.a.createElement(c.a.Fragment,null,"Its unstable nature decreases all your stats by 10%"),factions:[f.a.ChurchOfTheMachineGod]}),new a.a({name:r.a.StaneksGift2,repCost:1e6,moneyCost:0,info:"The next evolution is near, a coming together of man and machine. A synthesis greater than the birth of the human organism. Time spent with the gift has allowed for acclimatization of the invasive augment and the toll it takes upon your frame granting a 5% reduced penalty to all stats.",prereqs:[r.a.StaneksGift1],isSpecial:!0,hacking_chance:.95/.9,hacking_speed:.95/.9,hacking_money:.95/.9,hacking_grow:.95/.9,hacking:.95/.9,strength:.95/.9,defense:.95/.9,dexterity:.95/.9,agility:.95/.9,charisma:.95/.9,hacking_exp:.95/.9,strength_exp:.95/.9,defense_exp:.95/.9,dexterity_exp:.95/.9,agility_exp:.95/.9,charisma_exp:.95/.9,company_rep:.95/.9,faction_rep:.95/.9,crime_money:.95/.9,crime_success:.95/.9,hacknet_node_money:.95/.9,hacknet_node_purchase_cost:1.05/1.1,hacknet_node_ram_cost:1.05/1.1,hacknet_node_core_cost:1.05/1.1,hacknet_node_level_cost:1.05/1.1,work_money:.95/.9,stats:c.a.createElement(c.a.Fragment,null,"The penalty for the gift is reduced to 5%"),factions:[f.a.ChurchOfTheMachineGod]}),new a.a({name:r.a.StaneksGift3,repCost:1e8,moneyCost:0,info:"The synthesis of human and machine is nothing to fear. It is our destiny. You will become greater than the sum of our parts. As One. Embrace your gift fully and wholly free of it's accursed toll. Serenity brings tranquility in the form of no longer suffering a stat penalty. ",prereqs:[r.a.StaneksGift2,r.a.StaneksGift1],isSpecial:!0,hacking_chance:1/.95,hacking_speed:1/.95,hacking_money:1/.95,hacking_grow:1/.95,hacking:1/.95,strength:1/.95,defense:1/.95,dexterity:1/.95,agility:1/.95,charisma:1/.95,hacking_exp:1/.95,strength_exp:1/.95,defense_exp:1/.95,dexterity_exp:1/.95,agility_exp:1/.95,charisma_exp:1/.95,company_rep:1/.95,faction_rep:1/.95,crime_money:1/.95,crime_success:1/.95,hacknet_node_money:1/.95,hacknet_node_purchase_cost:1/1.05,hacknet_node_ram_cost:1/1.05,hacknet_node_core_cost:1/1.05,hacknet_node_level_cost:1/1.05,work_money:1/.95,stats:c.a.createElement(c.a.Fragment,null,"Stanek's Gift has no penalty."),factions:[f.a.ChurchOfTheMachineGod]})];function g(){const e=u.a.Donations/1e6/100;return new a.a({name:r.a.NeuroFluxGovernor,repCost:500,moneyCost:75e4,info:"A device that is embedded in the back of the neck. The NeuroFlux Governor monitors and regulates nervous impulses coming to and from the spinal column, essentially 'governing' the body. By doing so, it improves the functionality of the body's nervous system.",stats:c.a.createElement(c.a.Fragment,null,"This special augmentation can be leveled up infinitely. Each level of this augmentation increases MOST multipliers by 1% (+",(100*e).toFixed(6),"% boosted by real life blood donations), stacking multiplicatively."),isSpecial:!0,hacking_chance:1.01+e,hacking_speed:1.01+e,hacking_money:1.01+e,hacking_grow:1.01+e,hacking:1.01+e,strength:1.01+e,defense:1.01+e,dexterity:1.01+e,agility:1.01+e,charisma:1.01+e,hacking_exp:1.01+e,strength_exp:1.01+e,defense_exp:1.01+e,dexterity_exp:1.01+e,agility_exp:1.01+e,charisma_exp:1.01+e,company_rep:1.01+e,faction_rep:1.01+e,crime_money:1.01+e,crime_success:1.01+e,hacknet_node_money:1.01+e,hacknet_node_purchase_cost:1/(1.01+e),hacknet_node_ram_cost:1/(1.01+e),hacknet_node_core_cost:1/(1.01+e),hacknet_node_level_cost:1/(1.01+e),work_money:1.01+e,factions:Object.values(f.a).filter(e=>![f.a.ShadowsOfAnarchy,f.a.Bladeburners,f.a.ChurchOfTheMachineGod].includes(e))})}function y(){const e=function(){const e=[{bonuses:{hacking_chance:1.25,hacking_speed:1.1,hacking_money:1.25,hacking_grow:1.1},description:"Increases the player's hacking chance by 25%.
Increases the player's hacking speed by 10%.
Increases the amount of money the player's gains from hacking by 25%.
Improves grow() by 10%."},{bonuses:{hacking:1.15,hacking_exp:2},description:"Increases the player's hacking skill by 15%.
Increases the player's hacking experience gain rate by 100%."},{bonuses:{strength:1.25,strength_exp:2,defense:1.25,defense_exp:2,dexterity:1.25,dexterity_exp:2,agility:1.25,agility_exp:2},description:"Increases all of the player's combat stats by 25%.
Increases all of the player's combat stat experience gain rate by 100%."},{bonuses:{charisma:1.5,charisma_exp:2},description:"This augmentation increases the player's charisma by 50%.
Increases the player's charisma experience gain rate by 100%."},{bonuses:{hacknet_node_money:1.2,hacknet_node_purchase_cost:.85,hacknet_node_ram_cost:.85,hacknet_node_core_cost:.85,hacknet_node_level_cost:.85},description:"Increases the amount of money produced by Hacknet Nodes by 20%.
Decreases all costs related to Hacknet Node by 15%."},{bonuses:{company_rep:1.25,faction_rep:1.15,work_money:1.7},description:"Increases the amount of money the player gains from working by 70%.
Increases the amount of reputation the player gains when working for a company by 25%.
Increases the amount of reputation the player gains for a faction by 15%."},{bonuses:{crime_success:2,crime_money:2},description:"Increases the player's crime success rate by 100%.
Increases the amount of money the player gains from crimes by 100%."}],t=new s.c(Math.floor(i.a.lastUpdate/36e5));for(let e=0;e<5;e++)t.step();return e[Math.floor(e.length*t.random())]}(),t={name:r.a.UnstableCircadianModulator,moneyCost:5e9,repCost:362500,info:"An experimental nanobot injection. Its unstable nature leads to unpredictable results based on your circadian rhythm.",factions:[f.a.SpeakersForTheDead]};return Object.keys(e.bonuses).forEach(n=>t[n]=e.bonuses[n]),new a.a(t)}},,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(4),r=n(9),i=n(64),o=n(87);const s=[{hackDifficulty:99,hostname:r.a.AevumECorp.toLowerCase(),moneyAvailable:{max:7e10,min:3e10},networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.AevumECorp,requiredHackingSkill:{max:1400,min:1050},serverGrowth:99,specialName:r.a.AevumECorp},{hackDifficulty:99,hostname:r.a.Sector12MegaCorp.toLowerCase(),moneyAvailable:{max:6e10,min:4e10},networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.Sector12MegaCorp,requiredHackingSkill:{max:1350,min:1100},serverGrowth:99,specialName:r.a.Sector12MegaCorp},{hackDifficulty:{max:88,min:72},hostname:"b-and-a",moneyAvailable:{max:3e10,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.AevumBachmanAndAssociates,requiredHackingSkill:{max:1150,min:900},serverGrowth:{max:80,min:60},specialName:r.a.AevumBachmanAndAssociates},{hackDifficulty:{max:97,min:88},hostname:"blade",literature:[i.a.BeyondMan],maxRamExponent:{max:9,min:5},moneyAvailable:{max:4e10,min:1e10},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.Sector12BladeIndustries,requiredHackingSkill:{max:1200,min:900},serverGrowth:{max:85,min:55},specialName:r.a.Sector12BladeIndustries},{hackDifficulty:99,hostname:r.a.VolhavenNWO.toLowerCase(),literature:[i.a.TheHiddenWorld],moneyAvailable:{max:4e10,min:2e10},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.VolhavenNWO,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:95,min:65},specialName:r.a.VolhavenNWO},{hackDifficulty:{max:65,min:45},hostname:"clarkinc",literature:[i.a.BeyondMan,i.a.CostOfImmortality],moneyAvailable:{max:25e9,min:15e9},networkLayer:14,numOpenPortsRequired:5,organizationName:r.a.AevumClarkeIncorporated,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:75,min:45},specialName:r.a.AevumClarkeIncorporated},{hackDifficulty:{max:99,min:90},hostname:"omnitek",literature:[i.a.CodedIntelligence,i.a.HistoryOfSynthoids],maxRamExponent:{max:9,min:7},moneyAvailable:{max:22e9,min:13e9},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.VolhavenOmniTekIncorporated,requiredHackingSkill:{max:1100,min:900},serverGrowth:{max:99,min:95},specialName:r.a.VolhavenOmniTekIncorporated},{hackDifficulty:{max:75,min:55},hostname:"4sigma",moneyAvailable:{max:25e9,min:15e9},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.Sector12FourSigma,requiredHackingSkill:{max:1250,min:900},serverGrowth:{max:99,min:75},specialName:r.a.Sector12FourSigma},{hackDifficulty:{max:99,min:95},hostname:"kuai-gong",moneyAvailable:{max:3e10,min:2e10},networkLayer:13,numOpenPortsRequired:5,organizationName:r.a.ChongqingKuaiGongInternational,requiredHackingSkill:{max:1300,min:950},serverGrowth:{max:99,min:90},specialName:r.a.ChongqingKuaiGongInternational},{hackDifficulty:{max:97,min:83},hostname:"fulcrumtech",literature:[i.a.SimulatedReality],maxRamExponent:{max:11,min:7},moneyAvailable:{max:18e8,min:14e8},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.AevumFulcrumTechnologies,requiredHackingSkill:{max:1250,min:950},serverGrowth:{max:99,min:80},specialName:r.a.AevumFulcrumTechnologies},{hackDifficulty:99,hostname:"fulcrumassets",moneyAvailable:1e6,networkLayer:15,numOpenPortsRequired:5,organizationName:r.a.AevumFulcrumTechnologies,requiredHackingSkill:{max:1600,min:1100},serverGrowth:1,specialName:o.a.FulcrumSecretTechnologies},{hackDifficulty:{max:92,min:78},hostname:"stormtech",moneyAvailable:{max:12e8,min:1e9},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.IshimaStormTechnologies,requiredHackingSkill:{max:1075,min:875},serverGrowth:{max:92,min:68},specialName:r.a.IshimaStormTechnologies},{hackDifficulty:{max:96,min:84},hostname:"defcomm",moneyAvailable:{max:95e7,min:8e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.NewTokyoDefComm,requiredHackingSkill:{max:1050,min:850},serverGrowth:{max:73,min:47},specialName:r.a.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:[i.a.BeyondMan],maxRamExponent:{max:8,min:5},moneyAvailable:{max:75e7,min:55e7},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.VolhavenHeliosLabs,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:80,min:70},specialName:r.a.VolhavenHeliosLabs},{hackDifficulty:{max:90,min:80},hostname:r.a.NewTokyoVitaLife.toLowerCase(),literature:[i.a.AGreenTomorrow],maxRamExponent:{max:7,min:4},moneyAvailable:{max:8e8,min:7e8},networkLayer:12,numOpenPortsRequired:5,organizationName:r.a.NewTokyoVitaLife,requiredHackingSkill:{max:900,min:775},serverGrowth:{max:80,min:60},specialName:r.a.NewTokyoVitaLife},{hackDifficulty:{max:95,min:85},hostname:"icarus",moneyAvailable:{max:1e9,min:9e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.Sector12IcarusMicrosystems,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:95,min:85},specialName:r.a.Sector12IcarusMicrosystems},{hackDifficulty:{max:90,min:80},hostname:"univ-energy",maxRamExponent:{max:7,min:4},moneyAvailable:{max:12e8,min:11e8},networkLayer:9,numOpenPortsRequired:4,organizationName:r.a.Sector12UniversalEnergy,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:90,min:80},specialName:r.a.Sector12UniversalEnergy},{hackDifficulty:{max:80,min:70},hostname:"titan-labs",literature:[i.a.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:[i.a.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:[i.a.AGreenTomorrow,i.a.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:r.a.AevumGalacticCybersystems,requiredHackingSkill:{max:875,min:825},serverGrowth:{max:90,min:70},specialName:r.a.AevumGalacticCybersystems},{hackDifficulty:{max:90,min:80},hostname:r.a.AevumAeroCorp.toLowerCase(),literature:[i.a.ManAndMachine],moneyAvailable:{max:12e8,min:1e9},networkLayer:7,numOpenPortsRequired:5,organizationName:r.a.AevumAeroCorp,requiredHackingSkill:{max:925,min:850},serverGrowth:{max:65,min:55},specialName:r.a.AevumAeroCorp},{hackDifficulty:{max:95,min:85},hostname:"omnia",literature:[i.a.HistoryOfSynthoids],maxRamExponent:{max:6,min:4},moneyAvailable:{max:1e9,min:9e8},networkLayer:8,numOpenPortsRequired:5,organizationName:r.a.VolhavenOmniaCybersystems,requiredHackingSkill:{max:950,min:850},serverGrowth:{max:70,min:60},specialName:r.a.VolhavenOmniaCybersystems},{hackDifficulty:{max:65,min:55},hostname:"zb-def",literature:[i.a.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:[i.a.AGreenTomorrow,i.a.TheFailedFrontier],maxRamExponent:{max:7,min:4},moneyAvailable:{max:9e8,min:7e8},networkLayer:9,numOpenPortsRequired:5,organizationName:r.a.ChongqingSolarisSpaceSystems,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:80,min:70},specialName:r.a.ChongqingSolarisSpaceSystems},{hackDifficulty:{max:85,min:75},hostname:r.a.Sector12DeltaOne.toLowerCase(),moneyAvailable:{max:17e8,min:13e8},networkLayer:8,numOpenPortsRequired:5,organizationName:r.a.Sector12DeltaOne,requiredHackingSkill:{max:900,min:800},serverGrowth:{max:70,min:50},specialName:r.a.Sector12DeltaOne},{hackDifficulty:{max:85,min:75},hostname:"global-pharm",literature:[i.a.AGreenTomorrow],maxRamExponent:{max:6,min:3},moneyAvailable:{max:175e7,min:15e8},networkLayer:7,numOpenPortsRequired:4,organizationName:r.a.NewTokyoGlobalPharmaceuticals,requiredHackingSkill:{max:850,min:750},serverGrowth:{max:90,min:80},specialName:r.a.NewTokyoGlobalPharmaceuticals},{hackDifficulty:{max:80,min:60},hostname:"nova-med",moneyAvailable:{max:125e7,min:11e8},networkLayer:10,numOpenPortsRequired:4,organizationName:r.a.IshimaNovaMedical,requiredHackingSkill:{max:850,min:775},serverGrowth:{max:85,min:65},specialName:r.a.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:r.a.VolhavenLexoCorp,requiredHackingSkill:{max:750,min:650},serverGrowth:{max:65,min:55},specialName:r.a.VolhavenLexoCorp},{hackDifficulty:{max:60,min:40},hostname:"rho-construction",maxRamExponent:{max:6,min:4},moneyAvailable:{max:7e8,min:5e8},networkLayer:6,numOpenPortsRequired:3,organizationName:r.a.AevumRhoConstruction,requiredHackingSkill:{max:525,min:475},serverGrowth:{max:60,min:40},specialName:r.a.AevumRhoConstruction},{hackDifficulty:{max:70,min:50},hostname:"alpha-ent",literature:[i.a.Sector12Crime],maxRamExponent:{max:7,min:4},moneyAvailable:{max:75e7,min:6e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.Sector12AlphaEnterprises,requiredHackingSkill:{max:600,min:500},serverGrowth:{max:60,min:50},specialName:r.a.Sector12AlphaEnterprises},{hackDifficulty:{max:80,min:70},hostname:"aevum-police",maxRamExponent:{max:6,min:4},moneyAvailable:{max:4e8,min:2e8},networkLayer:6,numOpenPortsRequired:4,organizationName:r.a.AevumPolice,requiredHackingSkill:{max:450,min:400},serverGrowth:{max:50,min:30},specialName:r.a.AevumPolice},{hackDifficulty:{max:55,min:45},hostname:"rothman-uni",literature:[i.a.SecretSocieties,i.a.TheFailedFrontier,i.a.TensionsInTechRace],maxRamExponent:{max:7,min:4},moneyAvailable:{max:25e7,min:175e6},networkLayer:5,numOpenPortsRequired:3,organizationName:r.a.Sector12RothmanUniversity,requiredHackingSkill:{max:430,min:370},serverGrowth:{max:45,min:35},specialName:r.a.Sector12RothmanUniversity},{hackDifficulty:{max:85,min:65},hostname:"zb-institute",maxRamExponent:{max:7,min:4},moneyAvailable:{max:11e8,min:8e8},networkLayer:5,numOpenPortsRequired:5,organizationName:r.a.VolhavenZBInstituteOfTechnology,requiredHackingSkill:{max:775,min:725},serverGrowth:{max:85,min:75},specialName:r.a.VolhavenZBInstituteOfTechnology},{hackDifficulty:{max:65,min:45},hostname:"summit-uni",literature:[i.a.SecretSocieties,i.a.TheFailedFrontier,i.a.SyntheticMuscles],maxRamExponent:{max:6,min:4},moneyAvailable:{max:35e7,min:2e8},networkLayer:5,numOpenPortsRequired:3,organizationName:r.a.AevumSummitUniversity,requiredHackingSkill:{max:475,min:425},serverGrowth:{max:60,min:40},specialName:r.a.AevumSummitUniversity},{hackDifficulty:{max:80,min:60},hostname:"syscore",moneyAvailable:{max:6e8,min:4e8},networkLayer:5,numOpenPortsRequired:4,organizationName:r.a.VolhavenSysCoreSecurities,requiredHackingSkill:{max:650,min:550},serverGrowth:{max:70,min:60},specialName:r.a.VolhavenSysCoreSecurities},{hackDifficulty:{max:70,min:60},hostname:"catalyst",literature:[i.a.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:r.a.VolhavenCompuTek.toLowerCase(),literature:[i.a.ManAndMachine],moneyAvailable:{max:25e7,min:22e7},networkLayer:4,numOpenPortsRequired:3,organizationName:r.a.VolhavenCompuTek,requiredHackingSkill:{max:400,min:300},serverGrowth:{max:65,min:45},specialName:r.a.VolhavenCompuTek},{hackDifficulty:{max:80,min:60},hostname:"netlink",literature:[i.a.SimulatedReality],maxRamExponent:{max:7,min:4},moneyAvailable:275e6,networkLayer:4,numOpenPortsRequired:3,organizationName:r.a.AevumNetLinkTechnologies,requiredHackingSkill:{max:425,min:375},serverGrowth:{max:75,min:45},specialName:r.a.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:r.a.NewTokyoNoodleBar,requiredHackingSkill:1,serverGrowth:3e3,specialName:r.a.NewTokyoNoodleBar},{hackDifficulty:10,hostname:r.a.Sector12FoodNStuff.toLowerCase(),literature:[i.a.Sector12Crime],maxRamExponent:4,moneyAvailable:2e6,networkLayer:1,numOpenPortsRequired:0,organizationName:r.a.Sector12FoodNStuff,requiredHackingSkill:1,serverGrowth:5,specialName:r.a.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:r.a.Sector12JoesGuns,requiredHackingSkill:10,serverGrowth:20,specialName:r.a.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:[i.a.TheHiddenWorld],maxRamExponent:5,moneyAvailable:5e6,networkLayer:3,numOpenPortsRequired:1,organizationName:"Neo Nightclub Network",requiredHackingSkill:50,serverGrowth:25},{hackDifficulty:30,hostname:"silver-helix",literature:[i.a.NewTriads],maxRamExponent:6,moneyAvailable:45e6,networkLayer:3,numOpenPortsRequired:2,organizationName:"Silver Helix",requiredHackingSkill:150,serverGrowth:30},{hackDifficulty:15,hostname:"hong-fang-tea",literature:[i.a.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:[i.a.TheNewGod],maxRamExponent:5,moneyAvailable:{max:7e7,min:6e7},networkLayer:3,numOpenPortsRequired:2,organizationName:r.a.IshimaOmegaSoftware,requiredHackingSkill:{max:220,min:180},serverGrowth:{max:40,min:30},specialName:r.a.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:r.a.AevumCrushFitnessGym},{hackDifficulty:30,hostname:"iron-gym",maxRamExponent:5,moneyAvailable:2e7,networkLayer:1,numOpenPortsRequired:1,organizationName:r.a.Sector12IronGym+" Network",requiredHackingSkill:100,serverGrowth:20,specialName:r.a.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:r.a.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:r.a.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:r.a.AevumSnapFitnessGym},{hackDifficulty:0,hostname:"run4theh111z",literature:[i.a.SimulatedReality,i.a.TheNewGod],maxRamExponent:{max:9,min:5},moneyAvailable:0,networkLayer:11,numOpenPortsRequired:4,organizationName:"The Runners",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:o.a.BitRunnersServer},{hackDifficulty:0,hostname:"I.I.I.I",literature:[i.a.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:o.a.TheBlackHandServer},{hackDifficulty:0,hostname:"avmnite-02h",literature:[i.a.DemocracyIsDead],maxRamExponent:{max:7,min:4},moneyAvailable:0,networkLayer:4,numOpenPortsRequired:2,organizationName:a.a.NiteSec,requiredHackingSkill:{max:220,min:202},serverGrowth:0,specialName:o.a.NiteSecServer},{hackDifficulty:0,hostname:".",maxRamExponent:4,moneyAvailable:0,networkLayer:13,numOpenPortsRequired:4,organizationName:".",requiredHackingSkill:{max:550,min:505},serverGrowth:0,specialName:o.a.TheDarkArmyServer},{hackDifficulty:0,hostname:"CSEC",literature:[i.a.DemocracyIsDead],maxRamExponent:3,moneyAvailable:0,networkLayer:2,numOpenPortsRequired:1,organizationName:a.a.CyberSec,requiredHackingSkill:{max:60,min:51},serverGrowth:0,specialName:o.a.CyberSecServer},{hackDifficulty:0,hostname:"The-Cave",literature:[i.a.AlphaOmega],moneyAvailable:0,networkLayer:15,numOpenPortsRequired:5,organizationName:"Helios",requiredHackingSkill:925,serverGrowth:0,specialName:o.a.DaedalusServer},{hackDifficulty:0,hostname:"w0r1d_d43m0n",moneyAvailable:0,numOpenPortsRequired:5,organizationName:"w0r1d_d43m0n",requiredHackingSkill:3e3,serverGrowth:0,specialName:o.a.WorldDaemon},{hostname:o.a.DarkWeb,moneyAvailable:0,numOpenPortsRequired:5,organizationName:o.a.DarkWeb,requiredHackingSkill:1,specialName:o.a.DarkWeb}]},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(12),r=n(31);class i{constructor(e){this.name=e.name,this.nextPosition=e.nextPosition,this.baseSalary=e.baseSalary,this.repMultiplier=e.repMultiplier,this.requiredHacking=null!=e.reqdHacking?e.reqdHacking:0,this.requiredStrength=null!=e.reqdStrength?e.reqdStrength:0,this.requiredDefense=null!=e.reqdDefense?e.reqdDefense:0,this.requiredDexterity=null!=e.reqdDexterity?e.reqdDexterity:0,this.requiredAgility=null!=e.reqdAgility?e.reqdAgility:0,this.requiredCharisma=null!=e.reqdCharisma?e.reqdCharisma:0,this.requiredReputation=null!=e.reqdReputation?e.reqdReputation:0,this.hackingEffectiveness=null!=e.hackingEffectiveness?e.hackingEffectiveness:0,this.strengthEffectiveness=null!=e.strengthEffectiveness?e.strengthEffectiveness:0,this.defenseEffectiveness=null!=e.defenseEffectiveness?e.defenseEffectiveness:0,this.dexterityEffectiveness=null!=e.dexterityEffectiveness?e.dexterityEffectiveness:0,this.agilityEffectiveness=null!=e.agilityEffectiveness?e.agilityEffectiveness:0,this.charismaEffectiveness=null!=e.charismaEffectiveness?e.charismaEffectiveness:0,100!==Math.round(this.hackingEffectiveness+this.strengthEffectiveness+this.defenseEffectiveness+this.dexterityEffectiveness+this.agilityEffectiveness+this.charismaEffectiveness)&&console.error(`CompanyPosition ${this.name} parameters do not sum to 100`),this.hackingExpGain=null!=e.hackingExpGain?e.hackingExpGain:0,this.strengthExpGain=null!=e.strengthExpGain?e.strengthExpGain:0,this.defenseExpGain=null!=e.defenseExpGain?e.defenseExpGain:0,this.dexterityExpGain=null!=e.dexterityExpGain?e.dexterityExpGain:0,this.agilityExpGain=null!=e.agilityExpGain?e.agilityExpGain:0,this.charismaExpGain=null!=e.charismaExpGain?e.charismaExpGain:0}calculateJobPerformance(e,t,n,r,i,o){const s=this.hackingEffectiveness*e/a.a.MaxSkillLevel,l=this.strengthEffectiveness*t/a.a.MaxSkillLevel,c=this.defenseEffectiveness*n/a.a.MaxSkillLevel,f=this.dexterityEffectiveness*r/a.a.MaxSkillLevel,u=this.agilityEffectiveness*i/a.a.MaxSkillLevel,m=this.charismaEffectiveness*o/a.a.MaxSkillLevel;let h=this.repMultiplier*(s+l+c+f+u+m)/100;return isNaN(h)&&(console.error("Company reputation gain calculated to be NaN"),h=0),h}isSoftwareJob(){return r.j.includes(this.name)}isITJob(){return r.d.includes(this.name)}isSecurityEngineerJob(){return r.i.includes(this.name)}isNetworkEngineerJob(){return r.f.includes(this.name)}isBusinessJob(){return r.b.includes(this.name)}isSecurityJob(){return r.h.includes(this.name)}isAgentJob(){return r.a.includes(this.name)}isSoftwareConsultantJob(){return r.k.includes(this.name)}isBusinessConsultantJob(){return r.c.includes(this.name)}isPartTimeJob(){return r.g.includes(this.name)}}},function(e,t,n){"use strict";function a(e,t){return Object.values(e).includes(t)}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(264);const o={};o.SourceFile1=new i.a(1,r.a.createElement(r.a.Fragment,null,"This Source-File lets the player start with 32GB of RAM on his/her home computer. It also increases all of the player's multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 16%",r.a.createElement("br",null),"Level 2: 24%",r.a.createElement("br",null),"Level 3: 28%")),o.SourceFile2=new i.a(2,r.a.createElement(r.a.Fragment,null,"This Source-File allows you to form gangs in other BitNodes once your karma decreases to a certain value. It also increases the player's crime success rate, crime money, and charisma multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 24%",r.a.createElement("br",null),"Level 2: 36%",r.a.createElement("br",null),"Level 3: 42%")),o.SourceFile3=new i.a(3,r.a.createElement(r.a.Fragment,null,"This Source-File lets you create corporations on other BitNodes (although some BitNodes will disable this mechanic). This Source-File also increases your charisma and company salary multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile4=new i.a(4,r.a.createElement(r.a.Fragment,null,"This Source-File lets you access and use the Singularity Functions in every BitNode. Every level of this Source-File reduces the RAM cost of Singularity functions.")),o.SourceFile5=new i.a(5,r.a.createElement(r.a.Fragment,null,"This Source-File grants a special new stat called Intelligence. Intelligence is unique because it is permanent and persistent (it never gets reset back to 1). However, gaining Intelligence experience is much slower than other stats. Higher Intelligence levels will boost your production for many actions in the game. In addition, this Source-File will unlock:",r.a.createElement("br",null),r.a.createElement("ul",null,r.a.createElement("li",null,"The ",r.a.createElement("code",null,"getBitNodeMultipliers()")," Netscript function"),r.a.createElement("li",null,"Permanent access to Formulas.exe"),r.a.createElement("li",null,"Access to BitNode multiplier information on the ",r.a.createElement("b",null,"Stats")," page")),"It will also raise all of your hacking-related multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile6=new i.a(6,r.a.createElement(r.a.Fragment,null,"This Source-File allows you to access the NSA's Bladeburner Division in other BitNodes. In addition, this Source-File will raise both the level and experience gain rate of all your combat stats by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile7=new i.a(7,r.a.createElement(r.a.Fragment,null,"This Source-File allows you to access the Bladeburner Netscript API in other BitNodes. In addition, this Source-File will increase all of your Bladeburner multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile8=new i.a(8,r.a.createElement(r.a.Fragment,null,"This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanent access to WSE and TIX API",r.a.createElement("br",null),"Level 2: Ability to short stocks in other BitNodes",r.a.createElement("br",null),"Level 3: Ability to use limit/stop orders in other BitNodes",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacking growth multipliers by:",r.a.createElement("br",null),"Level 1: 12%",r.a.createElement("br",null),"Level 2: 18%",r.a.createElement("br",null),"Level 3: 21%")),o.SourceFile9=new i.a(9,r.a.createElement(r.a.Fragment,null,"This Source-File grants the following benefits:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: Permanently unlocks the Hacknet Server in other BitNodes",r.a.createElement("br",null),"Level 2: You start with 128GB of RAM on your home computer when entering a new BitNode",r.a.createElement("br",null),"Level 3: Grants a highly-upgraded Hacknet Server when entering a new BitNode",r.a.createElement("br",null),r.a.createElement("br",null),"(Note that the Level 3 effect of this Source-File only applies when entering a new BitNode, NOT when installing Augmentations)",r.a.createElement("br",null),r.a.createElement("br",null),"This Source-File also increases your hacknet multipliers by:",r.a.createElement("br",null),"Level 1: 8%",r.a.createElement("br",null),"Level 2: 12%",r.a.createElement("br",null),"Level 3: 14%")),o.SourceFile10=new i.a(10,r.a.createElement(r.a.Fragment,null,"This Source-File unlocks Sleeve technology, and the Grafting API in other BitNodes. Each level of this Source-File also grants you a Duplicate Sleeve")),o.SourceFile11=new i.a(11,r.a.createElement(r.a.Fragment,null,"This Source-File makes it so that company favor increases BOTH the player's salary and reputation gain rate at that company by 1% per favor (rather than just the reputation gain). This Source-File also increases the player's company salary and reputation gain multipliers by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 32%",r.a.createElement("br",null),"Level 2: 48%",r.a.createElement("br",null),"Level 3: 56%",r.a.createElement("br",null),r.a.createElement("br",null),"It also reduces the price increase for every aug bought by:",r.a.createElement("br",null),r.a.createElement("br",null),"Level 1: 4%",r.a.createElement("br",null),"Level 2: 6%",r.a.createElement("br",null),"Level 3: 7%")),o.SourceFile12=new i.a(12,r.a.createElement(r.a.Fragment,null,"This Source-File lets the player start with Neuroflux Governor equal to the level of this Source-File.")),o.SourceFile13=new i.a(13,r.a.createElement(r.a.Fragment,null,"Each level of this Source-File increases the size of Stanek's Gift."))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(135),o=n(28),s=n(8),l=n(11);function c(e){const t=o.b.Player(),n=e.bladeburner.getActionObject({name:e.name,type:e.type});if(null==n)throw new Error("Failed to get Operation Object for: "+e.name);let a=!1;return n.count<1&&(a=!0),"Raid"===e.name&&0===e.bladeburner.getCurrentCity().comms&&(a=!0),n instanceof i.a&&e.bladeburner.rank{let e=5;const a=[],r=setInterval(()=>{if(e--,e>0)return;e=5*Math.random();const r=Math.random()*t.length,o=t.charAt(r);n(e=>i(e,r,function(e){const t=e=>e[Math.floor(Math.random()*e.length)],n=["abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ","1234567890"," _","()[]{}<>"];for(const a of n)if(a.includes(e))return t(a);return t("!@#$%^&*()_+|\\';\"/.,?`~")}(o))),a.push(window.setTimeout(()=>{n(e=>i(e,r,o))},500))},20);return()=>{clearInterval(r),a.forEach(e=>clearTimeout(e))}},[]),r.a.createElement("span",null,t)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g}));var a=n(0),r=n.n(a),i=n(12),o=n(11),s=n(632),l=n(154),c=n(272),f=n(115),u=n(14),m=n(22),h=n(391),d=n(73);const p=e=>null!==e&&e.type===l.b.GRAFTING;class g extends l.a{constructor(e){var t,n;super(l.b.GRAFTING,null===(t=null==e?void 0:e.singularity)||void 0===t||t),this.unitCompleted=0,this.augmentation=null!==(n=null==e?void 0:e.augmentation)&&void 0!==n?n:o.a.Targeting1,null!=e&&e.player&&e.player.loseMoney(s.a[this.augmentation].cost,"augmentations")}unitNeeded(){return new h.a(d.a[this.augmentation]).time}process(e,t){let n=1;return e.hasAugmentation(o.a.NeuroreceptorManager)||(n=e.focus?1:i.a.BaseFocusBonus),this.cyclesWorked+=t,this.unitCompleted+=i.a._idleSpeed*t*Object(c.c)(e)*n,this.unitCompleted>=this.unitNeeded()}finish(e,t){const n=this.augmentation;t?t&&!this.singularity&&Object(u.a)(r.a.createElement(r.a.Fragment,null,"You cancelled the grafting of ",n,".",r.a.createElement("br",null),"Your money was not returned to you.")):(Object(f.a)({name:n,level:1}),e.hasAugmentation(o.a.CongruityImplant)||(e.entropy+=1,e.applyEntropy(e.entropy)),this.singularity||Object(u.a)(r.a.createElement(r.a.Fragment,null,"You've finished grafting ",n,".",r.a.createElement("br",null),"The augmentation has been applied to your body"," ",e.hasAugmentation(o.a.CongruityImplant)?".":", but you feel a bit off."))),t||e.gainIntelligenceExp(i.a.IntelligenceGraftBaseExpGain*this.cyclesWorked*i.a._idleSpeed/1e4)}toJSON(){return Object(m.b)("GraftingWork",this)}static fromJSON(e){return Object(m.a)(g,e.data)}}m.c.constructors.GraftingWork=g},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(1764);function r(e){try{return Object(a.a)(new Date,e)}catch(e){return"format error"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(4),o=n(28),s=n(358),l=n(1);class c{constructor(e){var t,n,a,i,o,s,l;this.infoText=null!==(t=e.infoText)&&void 0!==t?t:r.a.createElement(r.a.Fragment,null),this.enemies=null!==(n=e.enemies)&&void 0!==n?n:[],this.offerHackingWork=null!==(a=e.offerHackingWork)&&void 0!==a&&a,this.offerFieldWork=null!==(i=e.offerFieldWork)&&void 0!==i&&i,this.offerSecurityWork=null!==(o=e.offerSecurityWork)&&void 0!==o&&o,this.keep=null!==(s=e.keepOnInstall)&&void 0!==s&&s,this.special=null!==(l=e.special)&&void 0!==l&&l,this.assignment=e.assignment}offersWork(){return this.offerFieldWork||this.offerHackingWork||this.offerSecurityWork}}const f={[i.a.Illuminati]:new c({infoText:r.a.createElement(r.a.Fragment,null,"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."," "),offerHackingWork:!0,offerFieldWork:!0}),[i.a.Daedalus]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Yesterday we obeyed kings and bent our necks to emperors. Today we kneel only to truth."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.TheCovenant]:new c({infoText:r.a.createElement(r.a.Fragment,null,"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.",r.a.createElement("br",null),r.a.createElement("br",null),"Only then can you discover immortality."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.ECorp]:new c({infoText:r.a.createElement(r.a.Fragment,null,i.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, ",i.a.ECorp," makes the world's information universally accessible."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.MegaCorp]:new c({infoText:r.a.createElement(r.a.Fragment,null,i.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 transportation on an unprecedented scale, in ways that no other company can.",r.a.createElement("br",null),r.a.createElement("br",null),"In our labs and factories and on the ground with customers, ",i.a.MegaCorp," is ushering in a new era for the world."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.BachmanAssociates]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Where Law and Business meet - that's where we are.",r.a.createElement("br",null),r.a.createElement("br",null),"Legal Insight - Business Instinct - Innovative Experience."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.BladeIndustries]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Augmentation is Salvation."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.NWO]:new c({infoText:r.a.createElement(r.a.Fragment,null,"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."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.ClarkeIncorporated]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The Power of the Genome - Unlocked."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.OmniTekIncorporated]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Simply put, our mission is to design and build robots that make a difference."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.FourSigma]:new c({infoText:r.a.createElement(r.a.Fragment,null,"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 ",i.a.FourSigma,"."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.KuaiGongInternational]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Dream big. Work hard. Make history."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.FulcrumSecretTechnologies]:new c({infoText:r.a.createElement(r.a.Fragment,null,"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."),offerHackingWork:!0,offerSecurityWork:!0,keepOnInstall:!0}),[i.a.BitRunners]:new c({infoText:r.a.createElement(r.a.Fragment,null,"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.",r.a.createElement("br",null),r.a.createElement("br",null),"Those who run the bits, run the world."),offerHackingWork:!0}),[i.a.TheBlackHand]:new c({infoText:r.a.createElement(r.a.Fragment,null,"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.",r.a.createElement("br",null),r.a.createElement("br",null),"So much pain. So many lives. Their darkness must end."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.NiteSec]:new c({infoText:r.a.createElement(r.a.Fragment,null," __..__ ",r.a.createElement("br",null)," _.nITESECNIt. ",r.a.createElement("br",null)," .-'NITESECNITESEc. ",r.a.createElement("br",null)," .' NITESECNITESECn ",r.a.createElement("br",null)," / NITESECNITESEC; ",r.a.createElement("br",null)," : :NITESECNITESEC; ",r.a.createElement("br",null)," ; $ NITESECNITESECN ",r.a.createElement("br",null)," : _, ,N'ITESECNITESEC ",r.a.createElement("br",null)," : .+^^`, : `NITESECNIT ",r.a.createElement("br",null)," ) /), `-,-=,NITESECNI ",r.a.createElement("br",null)," / ^ ,-;|NITESECN; ",r.a.createElement("br",null)," / _.' '-';NITESECN ",r.a.createElement("br",null)," ( , ,-''`^NITE' ",r.a.createElement("br",null)," )` :`. .' ",r.a.createElement("br",null)," )-- ; `- / ",r.a.createElement("br",null)," ' _.-' : ",r.a.createElement("br",null)," ( _.-' . ",r.a.createElement("br",null)," ------. ",r.a.createElement("br",null)," . ",r.a.createElement("br",null)," _.nIt ",r.a.createElement("br",null)," _.nITESECNi ",r.a.createElement("br",null)," nITESECNIT^' ",r.a.createElement("br",null)," NITE^' ___ ",r.a.createElement("br",null)," / .gP''''Tp. ",r.a.createElement("br",null)," : d' . `b ",r.a.createElement("br",null)," ; d' o `b ; ",r.a.createElement("br",null)," / d; `b| ",r.a.createElement("br",null)," /, $; @ `: ",r.a.createElement("br",null)," /' $/ ; ",r.a.createElement("br",null)," .' $/b o | ",r.a.createElement("br",null)," .' d$/$; : ",r.a.createElement("br",null)," / .d/$/$; , ; ",r.a.createElement("br",null)," d .dNITESEC $ | ",r.a.createElement("br",null)," :bp.__.gNITESEC/$ :$ ; ",r.a.createElement("br",null)," NITESECNITESECNIT /$b : ",r.a.createElement("br",null)),offerHackingWork:!0,offerFieldWork:!1,offerSecurityWork:!1,special:!1,keepOnInstall:!1}),[i.a.Aevum]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The Silicon City."),enemies:[i.a.Chongqing,i.a.NewTokyo,i.a.Ishima,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Chongqing]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Serve the People."),enemies:[i.a.Sector12,i.a.Aevum,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Ishima]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The East Asian Order of the Future."),enemies:[i.a.Sector12,i.a.Aevum,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.NewTokyo]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Asia's World City."),enemies:[i.a.Sector12,i.a.Aevum,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Sector12]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The City of the Future."),enemies:[i.a.Chongqing,i.a.NewTokyo,i.a.Ishima,i.a.Volhaven],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Volhaven]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Benefit, Honor, and Glory."),enemies:[i.a.Chongqing,i.a.Sector12,i.a.NewTokyo,i.a.Aevum,i.a.Ishima],offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.SpeakersForTheDead]:new c({infoText:r.a.createElement(r.a.Fragment,null,"It is better to reign in Hell than to serve in Heaven."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.TheDarkArmy]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The World doesn't care about right or wrong. It only cares about power."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.TheSyndicate]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Honor holds you back."),offerHackingWork:!0,offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Silhouette]:new c({infoText:r.a.createElement(r.a.Fragment,null,"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.",r.a.createElement("br",null),r.a.createElement("br",null),"That's terror. Terror, fear, and corruption. All born into the system, all propagated by the system."),offerHackingWork:!0,offerFieldWork:!0}),[i.a.Tetrads]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Following the mandate of Heaven and carrying out the way."),offerFieldWork:!0,offerSecurityWork:!0}),[i.a.SlumSnakes]:new c({infoText:r.a.createElement(r.a.Fragment,null,i.a.SlumSnakes," rule!"),offerFieldWork:!0,offerSecurityWork:!0}),[i.a.Netburners]:new c({infoText:r.a.createElement(r.a.Fragment,null,"~~//*>H4CK||3T 8URN3R5**>?>\\~~"),offerHackingWork:!0}),[i.a.TianDiHui]:new c({infoText:r.a.createElement(r.a.Fragment,null,"Obey Heaven and work righteously."),offerHackingWork:!0,offerSecurityWork:!0}),[i.a.CyberSec]:new c({infoText:r.a.createElement(r.a.Fragment,null,"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."),offerHackingWork:!0}),[i.a.Bladeburners]:new c({infoText:r.a.createElement(r.a.Fragment,null,"It's too bad they won't live. But then again, who does?",r.a.createElement("br",null),r.a.createElement("br",null),"Note that for this faction, reputation can only be gained through ",i.a.Bladeburners," actions."," ","Completing ",i.a.Bladeburners," contracts/operations will increase your reputation."),special:!0,assignment:()=>{const e=o.b.Router();return r.a.createElement(s.a,{buttonText:"Open Bladeburner headquarters",infoText:"You can gain reputation with bladeburner by completing contracts and operations.",onClick:()=>e.toBladeburner()})}}),[i.a.ChurchOfTheMachineGod]:new c({infoText:r.a.createElement(r.a.Fragment,null," `` ",r.a.createElement("br",null)," -odmmNmds: ",r.a.createElement("br",null)," `hNmo:..-omNh. ",r.a.createElement("br",null)," yMd` `hNh ",r.a.createElement("br",null)," mMd oNm ",r.a.createElement("br",null)," oMNo .mM/ ",r.a.createElement("br",null)," `dMN+ -mM+ ",r.a.createElement("br",null)," -mMNo -mN+ ",r.a.createElement("br",null)," .+- :mMNo/mN/ ",r.a.createElement("br",null),":yNMd. :NMNNN/ ",r.a.createElement("br",null),"-mMMMh. /NMMh` ",r.a.createElement("br",null)," .dMMMd. /NMMMy` ",r.a.createElement("br",null)," `yMMMd. /NNyNMMh` ",r.a.createElement("br",null)," `sMMMd. +Nm: +NMMh. ",r.a.createElement("br",null)," oMMMm- oNm: /NMMd. ",r.a.createElement("br",null)," +NMMmsMm- :mMMd. ",r.a.createElement("br",null)," /NMMMm- -mMMd. ",r.a.createElement("br",null)," /MMMm- -mMMd. ",r.a.createElement("br",null)," `sMNMMm- .mMmo ",r.a.createElement("br",null)," `sMd:hMMm. ./. ",r.a.createElement("br",null)," `yMy` `yNMd` ",r.a.createElement("br",null)," `hMs` oMMy ",r.a.createElement("br",null)," `hMh sMN- ",r.a.createElement("br",null)," /MM- .NMo ",r.a.createElement("br",null)," +MM: :MM+ ",r.a.createElement("br",null)," sNNo-.`.-omNy` ",r.a.createElement("br",null)," -smNNNNmdo- ",r.a.createElement("br",null)," `..` ",r.a.createElement("br",null),r.a.createElement("br",null),"Many cultures predict an end to humanity in the near future, a final Armageddon that will end the world; but we disagree."),offerHackingWork:!1,offerFieldWork:!1,offerSecurityWork:!1,special:!0,keepOnInstall:!0,assignment:()=>{const e=o.b.Router();return r.a.createElement(s.a,{buttonText:"Open Staneks Gift",infoText:"Stanek's Gift is a powerful augmentation that powers up the stat you chose to boost.Gaining reputation with the Church of the Machine God can only be done by charging the gift.",onClick:()=>e.toStaneksGift()})}}),[i.a.ShadowsOfAnarchy]:new c({infoText:r.a.createElement(r.a.Fragment,null,"The government is ruled by the corporations that we have allowed to consume it. To release the world from its shackles, the gods grant us their strength."),special:!0,keepOnInstall:!0,assignment:()=>r.a.createElement(l.a,null,i.a.ShadowsOfAnarchy," can only gain reputation by infiltrating.")})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(243),r=n(22);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class o{constructor(){i(this,"capacity",0),i(this,"hashes",0),i(this,"upgrades",{});for(const e of Object.keys(a.a))this.upgrades[e]=0}getMult(e){const t=a.a[e],n=this.upgrades[e];return null==t||null==n?(console.error("Could not find Hash Study upgrade"),1):1+t.value*n/100}getStudyMult(){return this.getMult("Improve Studying")}getTrainingMult(){return this.getMult("Improve Gym Training")}getUpgrade(e){const t=a.a[e];return t||(console.error("Invalid Upgrade Name given to HashManager.getUpgrade(): "+e),null)}getUpgradeCost(e){const t=this.getUpgrade(e),n=this.upgrades[e];return null==t||null==n?(console.error("Invalid Upgrade Name given to HashManager.getUpgradeCost(): "+e),1/0):t.getCost(n)}prestige(){for(const e of Object.keys(a.a))this.upgrades[e]=0;this.hashes=0,this.updateCapacity(0)}refundUpgrade(e){const t=a.a[e];--this.upgrades[e];const n=this.upgrades[e];if(null==t||null==n||n<0)return void console.error("Invalid Upgrade Name given to HashManager.upgrade(): "+e);const r=t.getCost(n);this.hashes+=r}storeHashes(e){this.hashes+=e;let t=this.hashes;return this.hashes=Math.min(this.hashes,this.capacity),t-=this.hashes,t}updateCapacity(e){e<0&&(this.capacity=0),this.capacity=Math.max(e,0)}upgrade(e){if(null==a.a[e])return console.error("Invalid Upgrade Name given to HashManager.upgrade(): "+e),!1;const t=this.getUpgradeCost(e);return!(this.hashes=this.size}process(e=1,t,n){if(n.hasResearch("HRBuddy-Recruitment")&&!this.atCapacity()){const e=this.hireRandomEmployee();n.hasResearch("HRBuddy-Training")&&void 0!==e&&(e.pos=a.a.Training)}this.calculateTotalEmployees(),this.maxEne=100,this.maxHap=100,this.maxMor=100,n.hasResearch("Go-Juice")&&(this.maxEne+=10),n.hasResearch("JoyWire")&&(this.maxHap+=10),n.hasResearch("Sti.mu")&&(this.maxMor+=10);let r=1;t.funds<0&&n.lastCycleRevenue<0?r=Math.pow(.99,e):t.funds>0&&n.lastCycleRevenue>0&&(r=Math.pow(1.01,e));const i=n.hasResearch("AutoBrew"),o=n.hasResearch("AutoPartyManager");let s=0;for(let t=0;tn.pos===e?t+1:t,0);for(const r of this.employees){if(n==t)return!0;r.pos===a.a.Unassigned&&n<=t?(r.pos=e,n++):r.pos===e&&n>=t&&(r.pos=a.a.Unassigned,n--)}return n===t}toJSON(){return Object(s.b)("OfficeSpace",this)}static fromJSON(e){return Object(s.a)(f,e.data)}}s.c.constructors.OfficeSpace=f},function(e,t,n){"use strict";let a;n.d(t,"a",(function(){return r})),function(e){e[e.SmartFactories=0]="SmartFactories",e[e.SmartStorage=1]="SmartStorage",e[e.DreamSense=2]="DreamSense",e[e.WilsonAnalytics=3]="WilsonAnalytics",e[e.NuoptimalNootropicInjectorImplants=4]="NuoptimalNootropicInjectorImplants",e[e.SpeechProcessorImplants=5]="SpeechProcessorImplants",e[e.NeuralAccelerators=6]="NeuralAccelerators",e[e.FocusWires=7]="FocusWires",e[e.ABCSalesBots=8]="ABCSalesBots",e[e.ProjectInsight=9]="ProjectInsight"}(a||(a={}));const r={[a.SmartFactories]:{index:a.SmartFactories,basePrice:2e9,priceMult:1.06,benefit:.03,name:"Smart Factories",desc:"Advanced AI automatically optimizes the operation and productivity of factories. Each level of this upgrade increases your global production by 3% (additive)."},[a.SmartStorage]:{index:a.SmartStorage,basePrice:2e9,priceMult:1.06,benefit:.1,name:"Smart Storage",desc:"Advanced AI automatically optimizes your warehouse storage methods. Each level of this upgrade increases your global warehouse storage size by 10% (additive)."},[a.DreamSense]:{index:a.DreamSense,basePrice:4e9,priceMult:1.1,benefit:.001,name:"DreamSense",desc:"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."},[a.WilsonAnalytics]:{index:a.WilsonAnalytics,basePrice:4e9,priceMult:1.5,benefit:.005,name:"Wilson Analytics",desc:"Purchase data and analysis from Wilson, a marketing research firm. Each level of this upgrade increases the effectiveness of your advertising by 0.5% (additive)."},[a.NuoptimalNootropicInjectorImplants]:{index:a.NuoptimalNootropicInjectorImplants,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Nuoptimal Nootropic Injector Implants",desc:"Purchase the Nuoptimal Nootropic Injector augmentation for your employees. Each level of this upgrade globally increases the creativity of your employees by 10% (additive)."},[a.SpeechProcessorImplants]:{index:a.SpeechProcessorImplants,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Speech Processor Implants",desc:"Purchase the Speech Processor augmentation for your employees. Each level of this upgrade globally increases the charisma of your employees by 10% (additive)."},[a.NeuralAccelerators]:{index:a.NeuralAccelerators,basePrice:1e9,priceMult:1.06,benefit:.1,name:"Neural Accelerators",desc:"Purchase the Neural Accelerator augmentation for your employees. Each level of this upgrade globally increases the intelligence of your employees by 10% (additive)."},[a.FocusWires]:{index:a.FocusWires,basePrice:1e9,priceMult:1.06,benefit:.1,name:"FocusWires",desc:"Purchase the FocusWire augmentation for your employees. Each level of this upgrade globally increases the efficiency of your employees by 10% (additive)."},[a.ABCSalesBots]:{index:a.ABCSalesBots,basePrice:1e9,priceMult:1.07,benefit:.01,name:"ABC SalesBots",desc:"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)."},[a.ProjectInsight]:{index:a.ProjectInsight,basePrice:5e9,priceMult:1.07,benefit:.05,name:"Project Insight",desc:"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";n.d(t,"a",(function(){return i}));var a=n(113),r=n(12);class i{constructor(e){this.augmentation=e}get cost(){return this.augmentation.baseCost*r.a.AugmentationGraftingCostMult}get time(){const e=Math.max(Object(a.sum)(Object.values(this.augmentation.mults)),1),t=Math.log2(e);return(r.a.AugmentationGraftingTimeBase*t+r.a.MillisecondsPerHalfHour)/2}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n.n(a),i=n(6),o=n(140);function s({reputation:e}){return r.a.createElement(o.a,{reputation:i.a.formatReputation(e)+" / sec"})}},,function(e,t,n){"use strict";function a(e,t){for(const n of Object.keys(t)){const a=t[n];void 0!==a&&("function"==typeof a?a(e,n):void 0!==a.func?a.func(e,t,n):(typeof e[n]!=typeof a.default&&(e[n]=a.default),"number"==typeof e[n]&&void 0!==a.min&&e[n]a.max&&(e[n]=a.max)))}}function r(e,t,n){return(a,r)=>{"number"==typeof a[r]?(a[r]n&&(a[r]=n)):a[r]=e}}n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l}));var a=n(20),r=n(614),i=n(11);function o(e,t,n,r){const o=n*Math.pow(1.01,n);return Math.pow(t+1,2)*Math.pow(r,3)*3e3*o*(e.hasAugmentation(i.a.WKSharmonizer,!0)?1.5:1)*a.a.InfiltrationMoney}function s(e,t,n,r){const o=n*Math.pow(1.01,n);return Math.pow(t+1,1.1)*Math.pow(r,1.2)*30*o*(e.hasAugmentation(i.a.WKSharmonizer,!0)?1.5:1)*a.a.InfiltrationRep}function l(e,t,n){return n/r.a.reduce((e,t)=>{var n;const a=(null===(n=t.infiltrationData)||void 0===n?void 0:n.startingSecurityLevel)||0;return e>a?e:a},0)*5e3*(e.hasAugmentation(i.a.WKSharmonizer,!0)?2:1)*(1+t.favor/100)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(22);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class i{constructor(){r(this,"bladeburner",0),r(this,"casino",0),r(this,"class",0),r(this,"codingcontract",0),r(this,"corporation",0),r(this,"crime",0),r(this,"gang",0),r(this,"hacking",0),r(this,"hacknet",0),r(this,"hacknet_expenses",0),r(this,"hospitalization",0),r(this,"infiltration",0),r(this,"sleeves",0),r(this,"stock",0),r(this,"total",0),r(this,"work",0),r(this,"servers",0),r(this,"other",0),r(this,"augmentations",0)}record(e,t){const n=t.toLowerCase();"number"==typeof this[n]?(this[n]+=e,this.total+=e):console.warn("MoneySourceTracker.record() called with invalid source: "+t)}reset(){for(const e in this)"number"==typeof this[e]&&(this[e]=0)}toJSON(){return Object(a.b)("MoneySourceTracker",this)}static fromJSON(e){return Object(a.a)(i,e.data)}}a.c.constructors.MoneySourceTracker=i},,function(e,t,n){"use strict";function a(){const e=Math.random();return e<.4?"ABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(26*Math.random())]:e<.8?"abcdefghijklmnopqrstuvwxyz"[Math.floor(26*Math.random())]:"01234567689"[Math.floor(10*Math.random())]}function r(){const e=50+Math.floor(25*(Math.random()+Math.random()));let t="";for(;t.lengtht.length)continue;for(let a=0;aArray(10).fill(null)),a=Array.from(Array(10),()=>Array(10));function r(e,t,n,a){const r=e[t][n];(null==r||a.length9||n+1+a>e.length)return null;if(t+=e.substring(n+1,n+1+a),n+=1+a,n>=e.length)break;const r=e.charCodeAt(n)-48;if(r<0||r>9)return null;if(0===r)++n;else{if(n+1>=e.length)return null;const a=e.charCodeAt(n+1)-48;if(r>0&&(a<1||a>9)||a>t.length)return null;for(let e=0;e=1}function l(){const e=this.gang;if(null===e)throw new Error("Cannot get gang faction because player is not in a gang.");const t=a.a[e.facName];if(null==t)throw new Error("Gang has invalid faction name: "+e.facName);return t}function c(){if(!this.inGang())return"";const e=this.gang;if(null===e)throw new Error("Cannot get gang faction because player is not in a gang.");return e.facName}function f(e){if(!this.inGang())return!1;const t=this.gang;if(null===t)throw new Error("Cannot get gang faction because player is not in a gang.");return t.facName===e}function u(){return null!=this.gang&&null!=this.gang&&this.gang instanceof r.a}function m(e,t){this.gang=new r.a(e,t);const n=a.a[e];if(null==n)throw new Error("Invalid faction name when creating gang: "+e);n.playerReputation=0}},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const a={lineHeight:1.5,fontFamily:"Lucida Console, Lucida Sans Unicode, Fira Mono, Consolas, Courier New, Courier, monospace, Times New Roman"}},,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(12);function r(e){return e.money<0?0:Math.min(.1*e.money,(e.max_hp-e.hp)*a.a.HospitalCostPerHp)}function i(e,t){const n=e.hp;e.hp-=t;const a=r(e);return e.hp=n,a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var a=n(0),r=n.n(a),i=n(126),o=n(37),s=n(1),l=n(8),c=n(130),f=n(74),u=n(71),m=n(26);const h=new i.a;function d(){var e,t,n;const[i,l]=Object(a.useState)(null);if(Object(a.useEffect)(()=>h.subscribe(e=>{l(e)}),[]),null===i)return r.a.createElement(r.a.Fragment,null);const c={text:g,select:y};let f=p;null!=i&&null!==(e=i.options)&&void 0!==e&&e.type&&["text","select"].includes(null==i||null===(t=i.options)||void 0===t?void 0:t.type)&&(f=c[null==i||null===(n=i.options)||void 0===n?void 0:n.type]);return r.a.createElement(o.a,{open:!0,onClose:function(){var e,t;null!==i&&(["text","select"].includes(null!==(e=null==i||null===(t=i.options)||void 0===t?void 0:t.type)&&void 0!==e?e:"")?i.resolve(""):i.resolve(!1),l(null))}},r.a.createElement("pre",null,r.a.createElement(s.a,null,i.txt)),r.a.createElement(f,{prompt:i,resolve:e=>{i.resolve(e),l(null)}}))}function p({resolve:e}){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",paddingTop:"10px"}},r.a.createElement(l.a,{style:{marginRight:"auto"},onClick:()=>e(!0)},"Yes"),r.a.createElement(l.a,{onClick:()=>e(!1)},"No")))}function g({resolve:e}){const[t,n]=Object(a.useState)(""),i=()=>e(t);return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"}},r.a.createElement(f.a,{autoFocus:!0,value:t,onInput:e=>{n(e.target.value)},onKeyDown:e=>{e.stopPropagation(),e.key===m.a.ENTER&&(e.preventDefault(),i())},style:{flex:"1 0 auto"},InputProps:{endAdornment:r.a.createElement(l.a,{onClick:i},"Confirm")}})))}function y({prompt:e,resolve:t}){var n;const[i,o]=Object(a.useState)("");return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"}},r.a.createElement(c.a,{onChange:e=>{o(e.target.value)},value:i,style:{flex:"1 0 auto"}},(e=>{const t=[];for(const n of e)t.push(r.a.createElement(u.a,{key:n,value:n},n));return t})((null==e||null===(n=e.options)||void 0===n?void 0:n.choices)||[])),r.a.createElement(l.a,{onClick:()=>t(i),disabled:""===i},"Confirm")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(45),r=n(183),i=n(1066),o=n(557),s=n(22),l=n(33);function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class f{constructor(e={}){c(this,"name",""),c(this,"dmd",0),c(this,"cmp",0),c(this,"mku",0),c(this,"pCost",0),c(this,"sCost",0),c(this,"fin",!1),c(this,"prog",0),c(this,"createCity",""),c(this,"designCost",0),c(this,"advCost",0),c(this,"rat",0),c(this,"qlt",0),c(this,"per",0),c(this,"dur",0),c(this,"rel",0),c(this,"aes",0),c(this,"fea",0),c(this,"data",Object(o.a)([0,0,0])),c(this,"loc",""),c(this,"siz",0),c(this,"reqMats",{}),c(this,"prdman",Object(o.a)([!1,0])),c(this,"sllman",Object(o.a)([!1,0])),c(this,"marketTa1",!1),c(this,"marketTa2",!1),c(this,"marketTa2Price",Object(o.a)(0)),c(this,"maxsll",0),this.name=e.name?e.name:"",this.dmd=e.demand?e.demand:0,this.cmp=e.competition?e.competition:0,this.mku=e.markup?e.markup:0,this.createCity=e.createCity?e.createCity:"",this.designCost=e.designCost?e.designCost:0,this.advCost=e.advCost?e.advCost:0,this.qlt=e.quality?e.quality:0,this.per=e.performance?e.performance:0,this.dur=e.durability?e.durability:0,this.rel=e.reliability?e.reliability:0,this.aes=e.aesthetics?e.aesthetics:0,this.fea=e.features?e.features:0,this.loc=e.loc?e.loc:"",this.siz=e.size?e.size:0,this.reqMats=e.req?e.req:{}}createProduct(e=1,t=1){this.fin||(this.prog+=.01*e*t)}finishProduct(e,t){this.fin=!0;const n=e[a.a.Engineer]/e.total,i=e[a.a.Management]/e.total,o=e[a.a.RandD]/e.total,s=e[a.a.Operations]/e.total,c=e[a.a.Business]/e.total,f=(1.2*n+.9*i+1.3*o+1.5*s+c)*(1+Math.pow(this.designCost,.1)/100)*(1+Math.pow(t.sciResearch.qty,t.sciFac)/800);this.qlt=f*(.1*e[a.a.Engineer]+.05*e[a.a.Management]+.05*e[a.a.RandD]+.02*e[a.a.Operations]+.02*e[a.a.Business]),this.per=f*(.15*e[a.a.Engineer]+.02*e[a.a.Management]+.02*e[a.a.RandD]+.02*e[a.a.Operations]+.02*e[a.a.Business]),this.dur=f*(.05*e[a.a.Engineer]+.02*e[a.a.Management]+.08*e[a.a.RandD]+.05*e[a.a.Operations]+.05*e[a.a.Business]),this.rel=f*(.02*e[a.a.Engineer]+.08*e[a.a.Management]+.02*e[a.a.RandD]+.05*e[a.a.Operations]+.08*e[a.a.Business]),this.aes=f*(0*e[a.a.Engineer]+.08*e[a.a.Management]+.05*e[a.a.RandD]+.02*e[a.a.Operations]+.1*e[a.a.Business]),this.fea=f*(.08*e[a.a.Engineer]+.05*e[a.a.Management]+.02*e[a.a.RandD]+.05*e[a.a.Operations]+.05*e[a.a.Business]),this.calculateRating(t);const u=1+Math.pow(this.advCost,.1)/100,m=Math.max(c+i,1/e.total);this.mku=100/(u*Math.pow(this.qlt+.001,.65)*m),0!==this.mku&&isFinite(this.mku)||(this.mku=1),this.dmd=0===t.awareness?20:Math.min(100,u*(t.popularity/t.awareness*100)),this.cmp=Object(l.a)(0,70);for(const e of Object.keys(t.reqMats))if(t.reqMats.hasOwnProperty(e)){const n=t.reqMats[e];if(void 0===n)continue;this.reqMats[e]=n}this.siz=0;for(const e of Object.keys(t.reqMats)){const n=t.reqMats[e];void 0!==n&&(this.siz+=r.a[e]*n)}}calculateRating(e){const t=i.a[e.type];null!=t?(this.rat=0,this.rat+=t.Quality?this.qlt*t.Quality:0,this.rat+=t.Performance?this.per*t.Performance:0,this.rat+=t.Durability?this.dur*t.Durability:0,this.rat+=t.Reliability?this.rel*t.Reliability:0,this.rat+=t.Aesthetics?this.aes*t.Aesthetics:0,this.rat+=t.Features?this.fea*t.Features:0):console.error("Could not find product rating weights for: "+e)}toJSON(){return Object(s.b)("Product",this)}static fromJSON(e){return Object(s.a)(f,e.data)}}s.c.constructors.Product=f},function(e,t,n){"use strict";function a(e,t){return!!Object.keys(t.reqMats).includes(e)||(!!t.prodMats.includes(e)||!!["Hardware","Robots","AICores","RealEstate","AI Cores","Real Estate"].includes(e))}n.d(t,"a",(function(){return a}))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return E}));var a=n(0),r=n.n(a),i=n(113),o=n(251),s=n(1),l=n(18),c=n(44),f=n(8),u=n(1791),m=n(1792),h=n(1793),d=n(28),p=n(5),g=n(60),y=n(305);const b=[];function E(){const e=d.b.Player(),t=d.b.Router(),n=Object(a.useState)(!1)[1];function E(){n(e=>!e)}const v=[...Object.values(g.a)].filter(t=>{const n=t.create;return null!==n&&("b1t_flum3.exe"!==t.name||n.req(e))}).sort((t,n)=>{var a,r,i,o;return e.hasProgram(t.name)?1:e.hasProgram(n.name)?-1:(null!==(a=null===(r=t.create)||void 0===r?void 0:r.level)&&void 0!==a?a:0)-(null!==(i=null===(o=n.create)||void 0===o?void 0:o.level)&&void 0!==i?i:0)});Object(a.useEffect)(()=>{v.forEach(e=>{b.includes(e.name)||b.push(e.name)})},[]),Object(a.useEffect)(()=>{const e=setInterval(E,200);return()=>clearInterval(e)},[]);const k=t=>Math.ceil(Math.max(t-(e.hacking+e.intelligence/2),0));return r.a.createElement(o.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0,mb:10}},r.a.createElement(s.a,{variant:"h4"},"Create program"),r.a.createElement(s.a,null,"This page displays any programs that you are able to create. Writing the code for a program takes time, which can vary based on how complex the program is. If you are working on creating a program you can cancel at any time. Your progress will be saved and you can continue later."),r.a.createElement(l.a,{sx:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",my:1}},v.map(n=>{const a=n.create;if(null===a)return r.a.createElement(r.a.Fragment,null);const o=(t=>{const n=Object(i.find)(e.getHomeComputer().programs,e=>e.startsWith(t)&&e.endsWith("%-INC"));if(!n)return-1;const a=n.split("-");if(3!=a.length)return-1;const r=Number(a[1].slice(0,-1));return isNaN(r)||r<0||r>=100?-1:r})(n.name);return r.a.createElement(l.a,{component:c.a,sx:{p:1,opacity:e.hasProgram(n.name)?.75:1},key:n.name},r.a.createElement(s.a,{variant:"h6",sx:{display:"flex",alignItems:"center",flexWrap:"wrap"}},e.hasProgram(n.name)&&r.a.createElement(u.a,{sx:{mr:1}})||a.req(e)&&r.a.createElement(m.a,{sx:{mr:1}})||r.a.createElement(h.a,{sx:{mr:1}}),n.name),!e.hasProgram(n.name)&&a.req(e)&&r.a.createElement(f.a,{sx:{my:1,width:"100%"},onClick:a=>{a.isTrusted&&(e.startWork(new y.a({player:e,singularity:!1,programName:n.name})),e.startFocusing(),t.toWork())}},"Create program"),e.hasProgram(n.name)||0===k(a.level)||r.a.createElement(s.a,{color:p.a.theme.hack},r.a.createElement("b",null,"Unlocks in:")," ",k(a.level)," hacking levels"),-1!==o&&r.a.createElement(s.a,{color:p.a.theme.infolight},r.a.createElement("b",null,"Current completion:")," ",o,"%"),r.a.createElement(s.a,null,a.tooltip))})))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return L}));var a=n(1794),r=n(1795),i=n(1796),o=n(1797),s=n(1491),l=n(706),c=n(707),f=n(19),u=n(44),m=n(18),h=n(8),d=n(1),p=n(127),g=n(251),y=n(0),b=n.n(y),E=n(5),v=n(6),k=n(4),w=n(105),_=n(29);const S=[],C=e=>{const t=e.faction.getInfo();return b.a.createElement(b.a.Fragment,null,t.offerFieldWork&&b.a.createElement(f.a,{title:"This Faction offers field work"},b.a.createElement(a.a,{sx:{color:E.a.theme.info,mr:.5},fontSize:"small"})),t.offerHackingWork&&b.a.createElement(f.a,{title:"This Faction offers hacking work"},b.a.createElement(r.a,{sx:{color:E.a.theme.hack,mr:.5},fontSize:"small"})),t.offerSecurityWork&&b.a.createElement(f.a,{title:"This Faction offers security work"},b.a.createElement(i.a,{sx:{color:E.a.theme.combat,mr:.5},fontSize:"small"})))},x=e=>{const t=e.faction.getInfo();return b.a.createElement(u.a,{sx:{display:"grid",p:1,alignItems:"center",gridTemplateColumns:"minmax(0, 4fr)"+(e.joined?" 1fr":"")}},b.a.createElement(m.a,{display:"flex",sx:{alignItems:"center"}},e.joined?b.a.createElement(m.a,{display:"grid",sx:{mr:1,gridTemplateColumns:"1fr 1fr",minWidth:"fit-content",gap:.5,"& .MuiButton-root":{height:"48px"}}},b.a.createElement(h.a,{onClick:()=>{return t=e.faction,void e.router.toFaction(t);var t}},"Details"),b.a.createElement(h.a,{onClick:()=>{return t=e.faction,void e.router.toFaction(t,!0);var t}},"Augments")):b.a.createElement(h.a,{sx:{height:"48px",mr:1},onClick:t=>{return n=t,a=e.faction.name,void(n.isTrusted&&(Object(w.d)(_.a[a]),e.rerender()));var n,a}},"Join!"),b.a.createElement("span",{style:{maxWidth:e.joined?"70%":"95%"}},b.a.createElement(d.a,{variant:"h6",sx:{mr:1,display:"grid",gridTemplateColumns:"fit-content(100vw) max-content",alignItems:"center"}},b.a.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},title:e.faction.name},e.faction.name),b.a.createElement("span",{style:{display:"flex",alignItems:"center"}},e.player.hasGangWith(e.faction.name)&&b.a.createElement(f.a,{title:"You have a gang with this Faction"},b.a.createElement(o.a,{sx:{color:E.a.theme.hp,ml:1}})),t.special&&b.a.createElement(f.a,{title:"This is a special Faction"},b.a.createElement(s.a,{sx:{ml:1,color:E.a.theme.money,transform:"rotate(180deg)"}})),!e.joined&&t.enemies.length>0&&b.a.createElement(f.a,{title:b.a.createElement(d.a,null,"This Faction is enemies with:",b.a.createElement("ul",null,t.enemies.map(e=>b.a.createElement("li",{key:e},e))),"Joining this Faction will prevent you from joining its enemies")},b.a.createElement(l.a,{sx:{ml:1,color:E.a.theme.error}})))),b.a.createElement("span",{style:{display:"flex",alignItems:"center"}},!e.player.hasGangWith(e.faction.name)&&b.a.createElement(C,{faction:e.faction}),e.joined&&b.a.createElement(d.a,{variant:"body2",sx:{display:"flex"}},(n=e.faction,a=e.player,Object(w.a)(a,n).filter(e=>!a.hasAugmentation(e)).length)," Augmentations left")))),e.joined&&b.a.createElement(m.a,{display:"grid",sx:{alignItems:"center",justifyItems:"left",gridAutoFlow:"row"}},b.a.createElement(d.a,{sx:{color:E.a.theme.rep}},v.a.formatFavor(e.faction.favor)," favor"),b.a.createElement(d.a,{sx:{color:E.a.theme.rep}},v.a.formatReputation(e.faction.playerReputation)," rep")));var n,a};function L(e){const t=Object(p.a)(),n=Object(y.useState)(!1)[1];function a(){n(e=>!e)}Object(y.useEffect)(()=>{const e=setInterval(a,200);return()=>clearInterval(e)},[]),Object(y.useEffect)(()=>{e.player.factionInvitations.forEach(e=>{S.includes(e)||S.push(e)})},[]);const r=Object.values(k.a).map(e=>e),i=[...e.player.factions];i.sort((e,t)=>r.indexOf(e)-r.indexOf(t));const o=e.player.factionInvitations;return b.a.createElement(g.a,{disableGutters:!0,maxWidth:"lg",sx:{mx:0,mb:10}},b.a.createElement(d.a,{variant:"h4"},"Factions",b.a.createElement(f.a,{title:b.a.createElement(d.a,null,"Throughout the game you may receive invitations from factions. There are many different factions, and each faction has different criteria for determining its potential members. Joining a faction and furthering its cause is crucial to progressing in the game and unlocking endgame content.")},b.a.createElement(c.a,{sx:{ml:1,mb:0},color:"info"}))),b.a.createElement(m.a,{display:"grid",sx:{gap:1,gridTemplateColumns:(o.length>0?"1fr ":"")+"2fr",[t.breakpoints.down("lg")]:{gridTemplateColumns:"1fr","& > span:nth-child(1)":{order:1}},gridTemplateRows:"minmax(0, 1fr)","& > span > .MuiBox-root":{display:"grid",gridAutoRows:"70px",gap:1}}},o.length>0&&b.a.createElement("span",null,b.a.createElement(d.a,{variant:"h5",color:"primary"},"Faction Invitations"),b.a.createElement(m.a,null,o.map(t=>_.a.hasOwnProperty(t)?b.a.createElement(x,{key:t,faction:_.a[t],player:e.player,router:e.router,joined:!1,rerender:a}):null))),b.a.createElement("span",null,b.a.createElement(d.a,{variant:"h5",color:"primary"},"Your Factions"),b.a.createElement(m.a,null,i.length>0?i.map(t=>_.a.hasOwnProperty(t)?b.a.createElement(x,{key:t,faction:_.a[t],player:e.player,router:e.router,joined:!0,rerender:a}):null):b.a.createElement(d.a,null,"You have not yet joined any Factions.")))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(1495),r=n(1806);const i=Object(r.a)(e=>({root:{backgroundColor:e.palette.background.paper},bar:{transition:"none",backgroundColor:e.palette.primary.main}}))(a.a)},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a=n(0),r=n.n(a),i=n(2),o=n(470),s=n(624),l=n(378),c=n(14);function f(e,t,n,a){t?0===i.a.sourceFileLvl(5)&&5!==a&&(i.a.intelligence=0,i.a.intelligence_exp=0):function(e){const t="SourceFile"+e.toString(),n=l.a[t];if(null==n)return void console.error("Could not find source file for Bit node: "+e);let a=!1,o=null;for(let t=0;t=3&&12!==o.n?Object(c.a)(`The Source-File for the BitNode you just destroyed, ${n.name}, is already at max level!`):(++o.lvl,Object(c.a)(n.name+" was upgraded to level "+o.lvl+" for destroying its corresponding BitNode!"));else{const t=new s.a(e,1);i.a.sourceFiles.push(t),5===e&&0===i.a.intelligence&&(i.a.intelligence=1),Object(c.a)(r.a.createElement(r.a.Fragment,null,"You received a Source-File for destroying a BitNode!",r.a.createElement("br",null),r.a.createElement("br",null),n.name,r.a.createElement("br",null),r.a.createElement("br",null),n.info))}}(n),5===a&&0===i.a.intelligence&&(i.a.intelligence=1),i.a.bitNodeN=a,6===a?e.toBladeburnerCinematic():e.toTerminal(),Object(o.b)(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return S})),n.d(t,"c",(function(){return C}));var a=n(0),r=n.n(a),i=n(18),o=n(1),s=n(152),l=n(364),c=n(19),f=n(8),u=n(44),m=n(74),h=n(5),d=n(350),p=n(111),g=n(550),y=n(646),b=n(648),E=n(663),v=n.n(E),k=n(1407),w=n.n(k);let _=!1;function S(){_=!0}function C({router:e,softReset:t,errorData:n,resetError:E}){var k,S;return h.a.AutosaveInterval=0,Object(a.useEffect)(()=>{Object(d.b)().then(e=>{const t=`RECOVERY_BITBURNER_${Math.round(Date.now()/1e3)}.json`;Object(p.a)(t,e)}).catch(e=>console.error(e))},[]),r.a.createElement(i.a,{sx:{padding:"8px 16px",minHeight:"100vh",maxWidth:"1200px",boxSizing:"border-box"}},r.a.createElement(o.a,{variant:"h3"},"RECOVERY MODE ACTIVATED"),r.a.createElement(o.a,null,"There was an error with your save file and the game went into recovery mode. In this mode saving is disabled and the game will automatically export your save file (to prevent corruption)."),r.a.createElement(o.a,null,"At this point it is recommended to alert a developer."),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:null!==(k=null==n?void 0:n.issueUrl)&&void 0!==k?k:g.b,target:"_blank"},"File an issue on github")),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:"https://www.reddit.com/r/Bitburner/",target:"_blank"},"Make a reddit post")),r.a.createElement(o.a,null,r.a.createElement(s.a,{href:"https://discord.gg/TFc3hKD",target:"_blank"},"Post in the #bug-report channel on Discord.")),r.a.createElement(o.a,null,"Please include your save file."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(o.a,null,"You can disable recovery mode now. But chances are the game will not work correctly."),r.a.createElement(l.a,{sx:{my:2}},r.a.createElement(c.a,{title:"Disables the recovery mode & attempt to head back to the terminal page. This may or may not work. Ensure you have saved the recovery file."},r.a.createElement(f.a,{onClick:function(){E&&E(),_=!1,e.toTerminal()},startIcon:r.a.createElement(v.a,null)},"Disable Recovery Mode")),r.a.createElement(b.a,{color:"warning",onTriggered:t}),r.a.createElement(y.a,{color:"error"})),n&&r.a.createElement(u.a,{sx:{px:2,pt:1,pb:2,mt:2}},r.a.createElement(o.a,{variant:"h5"},n.title),r.a.createElement(i.a,{sx:{my:2}},r.a.createElement(m.a,{label:"Bug Report Text",value:n.body,variant:"outlined",color:"secondary",multiline:!0,fullWidth:!0,rows:12,sx:{"& .MuiOutlinedInput-root":{color:h.a.theme.secondary}}})),r.a.createElement(c.a,{title:"Submitting an issue to GitHub really help us improve the game!"},r.a.createElement(f.a,{component:s.a,startIcon:r.a.createElement(w.a,null),color:"info",sx:{px:2},href:null!==(S=n.issueUrl)&&void 0!==S?S:g.b,target:"_blank"},"Submit Issue to GitHub"))))}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var a=n(1036);let r=1;function i(e){return r+=e,()=>r-=e}function o(){return Object(a.a)(r)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(1043),r=n(229),i=n(24);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class s{constructor(e,t,n){o(this,"code",""),o(this,"delay",null),o(this,"disableLogs",{}),o(this,"dynamicLoadedFns",{}),o(this,"dynamicRamUsage",r.a.ScriptBaseRamCost),o(this,"errorMessage",""),o(this,"loadedFns",{}),o(this,"output",""),o(this,"ramUsage",0),o(this,"running",!1),this.name=e.filename,this.hostname=e.server;const s=Math.round(t);if("number"!=typeof s||isNaN(s))throw new Error("Invalid PID when constructing WorkerScript: "+t);this.pid=s,e.pid=s;const l=Object(i.d)(this.hostname);if(null==l)throw new Error("WorkerScript constructed with invalid server ip: "+this.hostname);let c=!1;for(let e=0;e=s.a.CyclesPerIndustryStateCycle){const t=this.getState(),n=1,a=n*s.a.CyclesPerIndustryStateCycle;if(this.storedCycles-=a,this.divisions.forEach(e=>{e.process(n,t,this)}),this.shareSaleCooldown>0&&(this.shareSaleCooldown-=a),this.issueNewSharesCooldown>0&&(this.issueNewSharesCooldown-=a),"START"===t){this.revenue=0,this.expenses=0,this.divisions.forEach(e=>{e.lastCycleRevenue!==-1/0&&e.lastCycleRevenue!==1/0&&e.lastCycleExpenses!==-1/0&&e.lastCycleExpenses!==1/0&&(this.revenue=this.revenue+e.lastCycleRevenue,this.expenses=this.expenses+e.lastCycleExpenses)});const t=this.revenue-this.expenses;this.avgProfit=(this.avgProfit*(s.a.AvgProfitLength-1)+t)/s.a.AvgProfitLength;const a=t*(n*s.a.SecsPerMarketCycle);if((isNaN(this.funds)||this.funds===1/0||this.funds===-1/0)&&(Object(u.a)("There was an error calculating your Corporations funds and they got reset to 0. This is a bug. Please report to game developer.

(Your funds have been set to $150b for the inconvenience)"),this.funds=15e10),this.dividendPercentage>0&&a>0)if(isNaN(this.dividendPercentage)||this.dividendPercentage<0||this.dividendPercentage>100*s.a.DividendMaxPercentage)console.error("Invalid Corporation dividend percentage: "+this.dividendPercentage);else{const t=a-this.dividendPercentage/100*a;e.gainMoney(this.getDividends(),"corporation"),this.addFunds(t)}else this.addFunds(a);this.updateSharePrice()}this.state.nextState()}}getDividends(){const e=(this.revenue-this.expenses)*s.a.SecsPerMarketCycle,t=this.dividendPercentage/100*e/this.totalShares,n=this.numShares*t;let a=-.15;return 1===this.unlockUpgrades[5]&&(a+=.05),1===this.unlockUpgrades[6]&&(a+=.1),Math.pow(n,l.a.CorporationSoftcap+a)}determineValuation(){let e,t=this.avgProfit;return this.public?(this.dividendPercentage>0&&(t*=(100-this.dividendPercentage)/100),e=this.funds+85e3*t,e*=Math.pow(1.1,this.divisions.length),e=Math.max(e,0)):(e=1e10+Math.max(this.funds,0)/3,t>0?(e+=315e3*t,e*=Math.pow(1.1,this.divisions.length)):e=1e10*Math.pow(1.1,this.divisions.length),e-=e%1e6),e*l.a.CorporationValuation}getTargetSharePrice(){return this.determineValuation()/(2*(this.totalShares-this.numShares)+1)}updateSharePrice(){const e=this.getTargetSharePrice();this.sharePrice<=e?this.sharePrice*=1+.01*Math.random():this.sharePrice*=1-.01*Math.random(),this.sharePrice<=.01&&(this.sharePrice=.01)}immediatelyUpdateSharePrice(){this.sharePrice=this.getTargetSharePrice()}calculateShareSale(e){let t=e,n=this.shareSalesUntilPriceUpdate,a=this.sharePrice,r=0,i=0;const o=Math.ceil(e/s.a.SHARESPERPRICEUPDATE);if(isNaN(o)||o>1e7)return console.error("Something went wrong or unexpected when calculating share sale. Maxiterations calculated to be "+o),[0,0,0];for(let e=0;e3600?Math.floor(t/3600)+" hour(s)":t>60?Math.floor(t/60)+" minute(s)":Math.floor(t)+" second(s)"}unlock(e){const t=e.index,n=e.price;for(;this.unlockUpgrades.length<=t;)this.unlockUpgrades.push(0);this.fundsthis.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst-=e,this.popEstthis.pop&&(this.popEst=this.pop)):this.popEst>this.pop&&(this.popEst*=1-e/100,this.popEst0?1:-1),this.pop+=n,t.changeEstEqually&&(this.popEst+=n,this.popEst<0&&(this.popEst=0)),n}changeChaosByCount(e){if(isNaN(e))throw new Error("NaN passed into City.changeChaosByCount()");0!==e&&(this.chaos+=e,this.chaos<0&&(this.chaos=0))}toJSON(){return Object(i.b)("City",this)}static fromJSON(e){return Object(i.a)(l,e.data)}}i.c.constructors.City=l},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t=[],n=""){this.name=e,this.locations=t,this.asciiArt=n}addLocation(e){this.locations.push(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(18),r=n(19),i=n(1),o=n(1810),s=n(0),l=n.n(s);const c=e=>{const[t,n]=Object(s.useState)(e.initialValue);return l.a.createElement(a.a,null,l.a.createElement(r.a,{title:l.a.createElement(i.a,null,e.tooltip)},l.a.createElement(i.a,null,e.label)),l.a.createElement(o.a,{value:t,onChange:(e,t)=>{"number"==typeof t&&n(t)},onChangeCommitted:e.callback,step:e.step,min:e.min,max:e.max,valueLabelDisplay:"auto",sx:{"& .MuiSlider-thumb":{height:"12px",width:"12px"}},marks:e.marks}))}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}));var a=n(0),r=n(1),i=n(19),o=n(8),s=n(74);let l;function c(e){let t="",n="";return e.tickerDisplayMode===l.Portfolio?(t="Switch to 'All Stocks' Mode",n="Displays all stocks on the WSE"):(t="Switch to 'Portfolio' Mode",n="Displays only the stocks for which you have shares or orders"),a.createElement(i.a,{title:a.createElement(r.a,null,n)},a.createElement(o.a,{onClick:e.changeDisplayMode},t))}function f(e){return a.createElement(a.Fragment,null,a.createElement(c,e),a.createElement("br",null),a.createElement(s.a,{sx:{width:"100%"},onChange:e.changeWatchlistFilter,placeholder:"Filter Stocks by symbol (comma-separated list)",type:"text"}))}!function(e){e[e.AllStocks=0]="AllStocks",e[e.Portfolio=1]="Portfolio"}(l||(l={}))},function(e,t,n){"use strict";n.d(t,"f",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return d}));var a=n(12),r=n(20),i=n(43),o=n(92),s=n(24),l=n(87);function c(){return this.getHomeComputer().serversOnNetwork.includes(l.a.DarkWeb)}function f(){const e=Object(s.d)(this.currentServer);if(null===e)throw new Error("somehow connected to a server that does not exist. "+this.currentServer);return e}function u(){const e=Object(s.d)("home");if(e instanceof i.a)return e;throw new Error("home computer was not a normal server")}function m(){const e=this.getHomeComputer().maxRam,t=Math.log2(e),n=Math.pow(1.58,t);return e*a.a.BaseCostFor1GBOfRamHome*n*r.a.HomeComputerRamCost}function h(){return 1e9*Math.pow(7.5,this.getHomeComputer().cpuCores)}function d(){const e="hacknet-node-"+this.hacknetNodes.length,t=new o.a({adminRights:!0,hostname:e,ip:Object(s.e)()});this.hacknetNodes.push(t.hostname),Object(s.a)(t);return this.getHomeComputer().serversOnNetwork.push(t.hostname),t.serversOnNetwork.push(l.a.Home),t}},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return P}));var a=n(4),r=n(15),i=n(73),o=n(115),s=n(11),l=n(153),c=n(212),f=n(75),u=n(50),m=n(60),h=n(188),d=n(29),p=n(105),g=n(54),y=n(201),b=n(2),E=n(91),v=n(538),k=n(64),w=n(24),_=n(138),S=n(87),C=n(103),x=n(84),L=n(14),O=n(102),M=n(422),T=n(423),A=n(12),R=n(182);function N(){Object(l.d)(b.a);const e=b.a.factions.concat(b.a.factionInvitations).filter((function(e){return d.a[e].getInfo().keep}));b.a.prestigeAugmentation(),Object(y.c)();const t=b.a.getHomeComputer();Object(w.i)(),Object(w.a)(t),Object(_.e)(b.a,t),Object(o.b)(s.a.Neurolink)&&b.a.hasAugmentation(s.a.Neurolink)&&(t.programs.push(m.a.FTPCrackProgram.name),t.programs.push(m.a.RelaySMTPProgram.name)),Object(o.b)(s.a.CashRoot)&&b.a.hasAugmentation(s.a.CashRoot)&&(b.a.setMoney(1e6),t.programs.push(m.a.BruteSSHProgram.name)),Object(o.b)(s.a.PCMatrix)&&b.a.hasAugmentation(s.a.PCMatrix)&&(t.programs.push(m.a.DeepscanV1.name),t.programs.push(m.a.AutoLink.name)),(b.a.sourceFileLvl(5)>0||5===b.a.bitNodeN)&&t.programs.push(m.a.Formulas.name),Object(w.f)(b.a.getHomeComputer());for(const e of Object.keys(f.a))f.a.hasOwnProperty(e)&&f.a[e].gainFavor();for(const e of Object.keys(d.a))d.a.hasOwnProperty(e)&&d.a[e].gainFavor();null!==x.a.action&&x.a.finishAction(E.b,b.a,!0),x.a.clear(),R.a.emit(),Object(d.c)(),b.a.factionInvitations=b.a.factionInvitations.concat(e),Object(o.e)(),b.a.reapplyAllSourceFiles(),Object(f.b)(),b.a.applyEntropy(b.a.entropy);const n=b.a.gang;if(b.a.inGang()&&null!==n){const e=d.a[n.facName];e instanceof h.a&&Object(p.d)(e);const t=.95;for(const e of n.members)e.hack_asc_points*=t,e.str_asc_points*=t,e.def_asc_points*=t,e.dex_asc_points*=t,e.agi_asc_points*=t,e.cha_asc_points*=t}if(3===b.a.bitNodeN&&t.messages.push(k.a.CorporationManagementHandbook),b.a.bladeburner instanceof c.a&&b.a.bladeburner.prestige(),8===b.a.bitNodeN&&(b.a.money=25e7),(8===b.a.bitNodeN||b.a.sourceFileLvl(8)>0)&&(b.a.hasWseAccount=!0,b.a.hasTixApiAccess=!0),b.a.hasWseAccount&&(Object(C.f)(),Object(C.h)()),Object(o.b)(s.a.TheRedPill)&&b.a.hasAugmentation(s.a.TheRedPill)){const e=Object(w.d)(S.a.WorldDaemon),t=Object(w.d)(S.a.DaedalusServer);e&&t&&(e.serversOnNetwork.push(t.hostname),t.serversOnNetwork.push(e.hostname))}Object(o.b)(s.a.StaneksGift1)&&b.a.hasAugmentation(s.a.StaneksGift1)&&Object(p.d)(d.a[a.a.ChurchOfTheMachineGod]),O.c.prestigeAugmentation(),Object(v.b)(),M.b.splice(0,M.b.length),T.b.splice(0,T.b.length)}function P(e){Object(l.d)(b.a),b.a.prestigeSourceFile(),Object(y.c)();const t=b.a.getHomeComputer();null!==x.a.action&&x.a.finishAction(E.b,b.a,!0),x.a.clear(),R.a.emit(),Object(w.i)(),Object(w.a)(t),Object(_.e)(b.a,t),Object(w.f)(b.a.getHomeComputer()),b.a.sourceFileLvl(9)>=2?t.setMaxRam(128):b.a.sourceFileLvl(1)>0?t.setMaxRam(32):t.setMaxRam(8),t.cpuCores=1;for(const e of Object.keys(f.a))f.a.hasOwnProperty(e)&&(f.a[e].favor=0);for(const e of Object.keys(d.a))d.a.hasOwnProperty(e)&&(d.a[e].favor=0);null!==x.a.action&&x.a.finishAction(E.b,b.a,!0);for(const e of Object.keys(i.a))i.a.hasOwnProperty(e)&&delete i.a[e];if(b.a.sourceFileLvl(12)>0&&b.a.augmentations.push({name:s.a.NeuroFluxGovernor,level:b.a.sourceFileLvl(12)}),Object(d.c)(),Object(o.e)(),b.a.reapplyAllSourceFiles(),Object(f.b)(),(b.a.sourceFileLvl(5)>0||5===b.a.bitNodeN)&&t.programs.push(m.a.Formulas.name),3===b.a.bitNodeN&&(t.messages.push(k.a.CorporationManagementHandbook),Object(L.a)("You received a copy of the Corporation Management Handbook on your home computer. Read it if you need help getting started with Corporations!")),8===b.a.bitNodeN&&(b.a.money=25e7),(8===b.a.bitNodeN||b.a.sourceFileLvl(8)>0)&&(b.a.hasWseAccount=!0,b.a.hasTixApiAccess=!0),10===b.a.bitNodeN&&Object(L.a)("Visit VitaLife in New Tokyo if you'd like to purchase a new sleeve!"),13===b.a.bitNodeN&&Object(L.a)("Trouble is brewing in "+r.a.Chongqing),b.a.hasWseAccount?(Object(C.f)(),Object(C.h)()):Object(C.d)(),b.a.gang=null,b.a.corporation=null,Object(u.e)(),b.a.bladeburner=null,b.a.sourceFileLvl(9)>=3){const e=b.a.createHacknetServer();e.level=100,e.cores=10,e.cache=5,e.updateHashRate(b.a.mults.hacknet_node_money),e.updateHashCapacity(),Object(g.p)(b.a)}13===b.a.bitNodeN&&(b.a.money=A.a.TravelCost),O.c.prestigeSourceFile(),0===b.a.sourceFileLvl(5)||e||b.a.gainIntelligenceExp(300),Object(v.b)()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(2),r=n(33),i=n(310),o=n(22),s=n(56);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class c{constructor(e=null){l(this,"name",""),l(this,"level",1),l(this,"maxLevel",1),l(this,"autoLevel",!0),l(this,"baseDifficulty",100),l(this,"difficultyFac",1.01),l(this,"rewardFac",1.02),l(this,"successes",0),l(this,"failures",0),l(this,"rankGain",0),l(this,"rankLoss",0),l(this,"hpLoss",0),l(this,"hpLost",0),l(this,"isStealth",!1),l(this,"isKill",!1),l(this,"count",Object(r.a)(1e3,25e3)),l(this,"weights",{hack:1/7,str:1/7,def:1/7,dex:1/7,agi:1/7,cha:1/7,int:1/7}),l(this,"decays",{hack:.9,str:.9,def:.9,dex:.9,agi:.9,cha:.9,int:.9}),l(this,"teamCount",0),e&&e.name&&(this.name=e.name),e&&e.baseDifficulty&&(this.baseDifficulty=Object(i.a)(e.baseDifficulty,10)),e&&e.difficultyFac&&(this.difficultyFac=e.difficultyFac),e&&e.rewardFac&&(this.rewardFac=e.rewardFac),e&&e.rankGain&&(this.rankGain=e.rankGain),e&&e.rankLoss&&(this.rankLoss=e.rankLoss),e&&e.hpLoss&&(this.hpLoss=e.hpLoss),e&&e.isStealth&&(this.isStealth=e.isStealth),e&&e.isKill&&(this.isKill=e.isKill),e&&e.count&&(this.count=e.count),e&&e.weights&&(this.weights=e.weights),e&&e.decays&&(this.decays=e.decays);let t=0;for(const e of Object.keys(this.weights))this.weights.hasOwnProperty(e)&&(t+=this.weights[e]);if(t-1>=10*Number.EPSILON)throw new Error("Invalid weights when constructing Action "+this.name+". The weights should sum up to 1. They sum up to :1");for(const e of Object.keys(this.decays))if(this.decays.hasOwnProperty(e)&&this.decays[e]>1)throw new Error(`Invalid decays when constructing Action ${this.name}. Decay value cannot be greater than 1`)}getDifficulty(){const e=this.baseDifficulty*Math.pow(this.difficultyFac,this.level-1);if(isNaN(e))throw new Error("Calculated NaN in Action.getDifficulty()");return e}attempt(e,t){return Math.random()s.a.ChaosThreshold){const e=t.chaos-s.a.ChaosThreshold+1;return Math.pow(e,.5)}return 1}getEstSuccessChance(e,t){function n(e){return Math.max(0,Math.min(e,1))}const a=this.getSuccessChance(e,t,{est:!0}),r=this.getSuccessChance(e,t),i=Math.abs(r-a);let o=r-i,s=r+i;const l=e.getCurrentCity(),c=l.pop/l.popEst;return c<1?o*=c:s*=c,[n(o),n(s)]}getSuccessChance(e,t,n={est:!1}){if(null==e)throw new Error("Invalid Bladeburner instance passed into Action.getSuccessChance");let r=this.getDifficulty(),i=0;for(const n of Object.keys(this.weights))if(this.weights.hasOwnProperty(n)){const a=t.queryStatFromString(n),r="eff"+n.charAt(0).toUpperCase()+n.slice(1);let o=e.skillMultipliers[r];null==o&&(console.error("Failed to find Bladeburner Skill multiplier for: "+n),o=1),i+=this.weights[n]*Math.pow(o*a,this.decays[n])}if(i*=a.a.getIntelligenceBonus(.75),i*=e.calculateStaminaPenalty(),i*=this.getTeamSuccessBonus(e),i*=this.getChaosCompetencePenalty(e,n),r*=this.getChaosDifficultyBonus(e),"Raid"==this.name&&e.getCurrentCity().comms<=0)return 0;if(i*=e.skillMultipliers.successChanceAll,i*=this.getActionTypeSkillSuccessBonus(e),this.isStealth&&(i*=e.skillMultipliers.successChanceStealth),this.isKill&&(i*=e.skillMultipliers.successChanceKill),i*=a.a.mults.bladeburner_success_chance,isNaN(i))throw new Error("Competence calculated as NaN in Action.getSuccessChance()");return Math.min(1,i/r)}getSuccessesNeededForNextLevel(e){return Math.ceil(.5*this.maxLevel*(2*e+(this.maxLevel-1)))}setMaxLevel(e){this.successes>=this.getSuccessesNeededForNextLevel(e)&&++this.maxLevel}toJSON(){return Object(o.b)("Action",this)}static fromJSON(e){return Object(o.a)(c,e.data)}}o.c.constructors.Action=c},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n(5);const r=[];function i(e){if(r.find(t=>t.runningScript.pid===e.pid))return;const t=new Date;for(r.unshift({timeOfDeath:t,runningScript:e.scriptRef});r.length>a.a.MaxRecentScriptsCapacity;)r.pop()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e,t,n,a,r){this.name=e,this.desc=t,this.isHacking=n,this.isCombat=a,this.baseRespect=r.baseRespect?r.baseRespect:0,this.baseWanted=r.baseWanted?r.baseWanted:0,this.baseMoney=r.baseMoney?r.baseMoney:0,this.hackWeight=r.hackWeight?r.hackWeight:0,this.strWeight=r.strWeight?r.strWeight:0,this.defWeight=r.defWeight?r.defWeight:0,this.dexWeight=r.dexWeight?r.dexWeight:0,this.agiWeight=r.agiWeight?r.agiWeight:0,this.chaWeight=r.chaWeight?r.chaWeight:0,100!=Math.round(this.hackWeight+this.strWeight+this.defWeight+this.dexWeight+this.agiWeight+this.chaWeight)&&console.error(`GangMemberTask ${this.name} weights do not add up to 100`),this.difficulty=r.difficulty?r.difficulty:1,this.territory=r.territory?r.territory:{money:1,respect:1,wanted:1}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return u}));var a=n(22),r=n(12),i=n(388),o=n(82),s=n(14),l=n(249),c=n(154);const f=e=>null!==e&&e.type===c.b.CRIME;class u extends c.a{constructor(e){var t,n;super(c.b.CRIME,null===(t=null==e?void 0:e.singularity)||void 0===t||t),this.crimeType=null!==(n=null==e?void 0:e.crimeType)&&void 0!==n?n:l.a.Shoplift,this.unitCompleted=0}getCrime(){const e=Object.values(o.a).find(e=>e.type===this.crimeType);if(!e)throw new Error("CrimeWork object constructed with invalid crime type");return e}process(e,t=1){var n,a;this.cyclesWorked+=t;const i=null!==(n=null===(a=Object.values(o.a).find(e=>e.type===this.crimeType))||void 0===a?void 0:a.time)&&void 0!==n?n:0;return this.unitCompleted+=r.a._idleSpeed*t,this.unitCompleted>=i&&(this.commit(e),this.unitCompleted-=i),!1}commit(e){let t=null;for(const e of Object.keys(o.a))if(o.a[e].type==this.crimeType){t=o.a[e];break}if(null==t)return void Object(s.a)(`ERR: Unrecognized crime type (${this.crimeType}). This is probably a bug please contact the developer`);const n=e.focusPenalty();let a=2*t.hacking_exp,r=2*t.strength_exp,l=2*t.defense_exp,c=2*t.dexterity_exp,f=2*t.agility_exp,u=2*t.charisma_exp,m=t.karma;Object(i.a)(e,t.type)?(e.gainMoney(t.money*n,"crime"),e.numPeopleKilled+=t.kills,e.gainIntelligenceExp(t.intelligence_exp*n)):(a/=4,r/=4,l/=4,c/=4,f/=4,u/=4,m/=4),e.gainHackingExp(a*n),e.gainStrengthExp(r*n),e.gainDefenseExp(l*n),e.gainDexterityExp(c*n),e.gainAgilityExp(f*n),e.gainCharismaExp(u*n),e.karma-=m*n}finish(e,t){}toJSON(){return Object(a.b)("CrimeWork",this)}static fromJSON(e){return Object(a.a)(u,e.data)}}a.c.constructors.CrimeWork=u},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(126),o=n(37);const s=["ttftfffttttttttttfffffffttftt1ttttttt111tttt1111111tttt1tt111tttt111111tttt1ttttttttttttttt111111111\nttfttttttttttttttttfLLLftfffffffffftttt111tt11111ttffffftttt1111111111111111ttttttfttttttttt111111t1\nttttttttttttttttffffLfftffffffffLLffttttttftt111ttfffffftttttttt111111ttttttffffttfffttttttt111111tt\nttttttttttttttttfffLfttffffffLLffffttttttttttt1tfffffffffftttttt111111tffffffffftttfffftttt11111ttt1\nttttttttttttffLfttfffttfffffffffttfftttttt1t1tt11tfffffftttttt111t111111ttffffLLffttfffftt111111tttt\nttttttttttffLLLLfttttffLLLfttttftfLftttttttffffttttffffttttfftt11t111tt111ttfffLffttfftttttt1111tttt\nttttttttffLLLLLLLffttfLLffttfffftfLfttttttffttt11111ttttffffffftt1111tft11111ttffffttt11tfftt11ttttt\ntttttttfffLLLLLLLLfftffttttffLffftfftttttft1i;;::::;iitffffffffftt111tft1tttt1ttffLfttttfffffttttttt\ntttttttfffLLLLLLLLfttttffftffffftfttttttff1:,,,,,,,,::itfffffffft11111111ttttttttttt1tfffffffffffttt\ntttffttffLLLLLLLLLfttfftffffffffLLLftttttt;::,:::;;;;::1tfffftfft11111ttt1ttt1tfttt11ttffffffffLfttt\ntffffffffLLLLLLLffftfLfffttfLLffLLLfttttti;;;iii11111;:i11ttffft111111tfft11t11tt1tttttfffLLLLLLfttf\ntfffffttttfLLLffttttfffffttLLLLfLLLftttfti:;;;iiiiiiii;it111tt111t1111tffttfftt11ttftttfffLLLLLLffff\nttttfttttffffftttttttttttttfLLLffLLfttttt1;;;;;;iiiiii;1tft11tt1111111tfftfffftttttttttttfLLfffttfff\ntfffffffffftttfffffffffttffttLLfffLfttttt11i;;;;iiiiiii1tt11tfftt11111ttt1fffttt1tttttttttfffftttttt\nttffffffffftttfffffffffttffftffttftttttff1ii;;;;iii1iii111tt1ttttt1111t111ffttffttfffffLffttttffffff\nttffffffffttttffffffffttttttttttffftttttft1ii;;;ii1iii111tfft11ttt111111t1tt1tfft1ttffffLLftttLLLLLL\ntttffffffffttfffffffftttttttt11fffftttt1t111iiii;iiiii11ttffft11111111ttttttt1tt11ttffffLfftttfLLLLf\ntttttttffffttfffttttttttffttt11tffttttttt11ttii;;;iiii11i1ffftt1111111tttt111tttt11ttttffffftffLLLff\ntfttttttttttttttttttttfffftttt11tfftttttt111t1i;;;iiii1i,,:;i1111t1111ttt111t1tfftt11111ttfftffffftt\nttttfffftttttttfffftttffffttffttttft111tt11111i;;;iiii1;,,....,:::;i11tt111tt11tffftttttttt1tttttttt\nt11ttffffftttffffffttttfffttffttttft1111111111;;;;;;;it;,...........,:it111ttt1tffftttttfft11ttfffff\ntt1ttfffftt1ttfffft111tffttfttttttt1111t1i;:;11i1i;;1t1:,,............,itt11tt1tfftt1tfffffft1tffLLf\ntfttttfttttt11tttt1ttt11ttttttftt111111i:,..:1111iii11;,...............;tt111t11ttttttttffttt11ffLLf\ntfftttttttfftttttttffftt111ttffftt11i;,.,...,iiii;;;;:,,...............:1ttt1111ttfffttttft1tt1ttfft\nttttttttttttttt11ttttttttttfffffft1:,..........::::::,,,...............,1ttttt11ttfffffttttffftttttt\ntfffttttffffftt11ttttttttttfffffft1:...........:;::;:..................,1tttttt1ttfffffttttttttftttf\ntfffttttfffffft1ttftttfftttttffft11:...........,:::::..................,1tttft11tfffffffttfffffffttf\ntfffttttffffff11tttttttttttttttttt1;...........,::::,...................;t1t1111tfffffLfttfffffffttf\ntfffttttfftttt11tttttttt1tfftttttt1:...........,::::,...... ............,1111tt11fffffLftttffttffttf\ntttttttttttttt11tttttttt1tffftttft1:...........,:::,,....................it1ttt11tfffffftttffttffttt\nttttt1tttttttt11ttttttttttffttttttt:...........,::,,.....................:111tt11tttttttt1tttttttttt\nttttt1tttttttt11tftttttftttttttttt1;,:;:.......,:,,,....................,,1111t11ttttttt11ttttttfttt\n1tttt1ttfffttt11ttffffffttttfffft11ii1i:.......,:,,,.....................,1tt1111ttttttt111tttttfttt\n1ttt11tttttttt11tttttttttttttttttti;;;;:.......,:,,,....... .............,itt1111tttt11t111ttttttt1t\n111111tttttttt11111111ttttttttttt1i;;;;:.......,:,,,......................itt11111111111111111111111\n1111111111111111111111ttttttttttt1;;;;;:...... ,:,,,,.....................itt11t11111111111111111111\n1111111111111111111111tttttttttt1;:,::;,...... ,:...,.....................ittttt11111111111111111111\n111111111111111111111111tttttttt1i,..... .... .:........................,i1tttt11111111111111111111\n1111111111111111111111111t11t11111;,....,,.... ,:::,,,...................,11ttttt11t1111111t11111111\n11111111111111111111111111111111111iiiiii. ... .::::::,..................,11t1ttt111t11111tttttt1111\n1111111111111111111111111111111111111111:.,.....::::::,..................:111tttttt1tttt11tttttt1111\n1111111111111111111111111111111111111111:::,...,::::;::,..,,.............:11tt1ttttttttttttttttt1111\n","ttftfffttttttttttffffffftfftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftfLLLftfffffffffftt11111tt11111ttffffttttt1111111111111111ttttttfttttttttt111111tt\nttftttttttttttttffffLftttfffffffLLLfttttttftt111ttfffffftttttttt111111tttttffffftfffftttttt1111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1tffffffffffttttttt11111tffffffffftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt1tttt1ttftfffftt1ttt111t111111ttffffLLffttfffft1111111tttt\nttttttttttffLLLLfttttffLLLfttttttfLftttttttfft11i;;:;;i11ttfftt11t111tt111tttffffftttttttttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLttttttfff1;,,,,,,,,:;tffffft11111tft11111ttffffttt11tffftt1ttttt\ntttttttfffLLLLLLLLfftffttttffLffftfftttttfft1;:,,,,,::::,;tffftttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffffftfftttttfffti:;;;iiii11i;:tffffft11111111ttftttttttt1ttffffffffffttt\ntttffttffLLLLLLLLLftffftfLftfftfLLLftttttfft::i;iiiiii11i:1ffftft11111ttt1ttt1ttttt11ttfffffLLfLfttt\nttfLfffffLLLLLLLLfftfLLfffffLfffLLLfttttt1tt;:;;;;;iiiiiii1tffft11111tffft11t11tt1tttttfffLLLLLLffff\ntffftfttttfLLLffttttfffffttLLLLfLLLftttft111i;;;;;;iiiiii111tt111t1111tffttfftt11tfft1tfffLLLLLLLffL\ntttfftttttffLftttttttttttttfLfLffLLfttttttt1iii;;;;;ii11i1t11t11111111tffttfffttttttt11ttfLLLLffftff\nttfLffffffftttfffffffffttfftfLLfffLftttttfft1ii;;;;iii1i1tt1tfftt11111ttt1tffttt1ttt1tttttffffttffft\nttffffffffftttffffffffttfffftffffftttttfffft111;;;;iiii1111t1ttttt1111tt11ffttfftttfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttttt11ttii;iiiiii11tft11ttt111111t11t1tfft1tfffffLLftttLLLLLL\n1ttffffffffttfffffffftttttttt11ffffttttt1111tftiii;;iiii1;,;1111111111tttt11111111ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11tffftttttt11ttf1;;;i;iiii1:,,.,,::;ii11tttt111tttt11ttffffffftffLLLff\ntfttttttttttttttttttttfffftttt11tfftttttt111tt1;;;i;;ii1t:,,........,:;1t111t1tfftt11111ttfftffffftt\ntftttffffttttttfftftttffffttffttttftt11tt111i;;;;;;;;;it1,,............,;11tt11tffffttttttt1tttttttt\ntttttffffftttfffffft1ttffftfffttttft111111;:,.;iii;;;i11,.,.............,1tttt1tffftttttfft111tfffff\n1tttffffftt1ttfffftt11tffttfttttttt1111i;,....,1iii;ii;,................,111tt1tfft11tffffftt1tLffLf\ntftttfftt1ttt1tttt1tttt1ttttttttt1111;:,.......i1;;;:::.................,it11t11ttttttttffftt11fffLf\ntfftttttttfftt1111ttfftt11ttfffftt1ti..........:i;::;:,..................ittt111t1tffttttft1tt1tffft\nttttttttttttttt11tttttttt1tffffffftti,.........,::::::,..................itttt11ttffffftttttfftttttt\ntfffttttfffffft11ttttttttttffffffft1i,.........,:,:::,...................,1tttt11tfffffttttttttffttf\ntfffttttfffffft11tftttfftttttffft1111:.........,:,:::,....................;tt111tfffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt111;.........,:,::,,....................,111111fffffLfttfffffffttf\ntffftttttttffft11tttttttttffttttfft11i.........,:.:,,......................:1tt11fffffLftttffttffttf\ntttttttttttttt111ttttttt1tffftttfft111:....... ,:.:,,.......................1tt11tfffffftttffftffttt\nttttt1tttttttt11ttttttttttfttttttft111i,...... ,:,,,,......................,itt11ttttttt11ttttttfttt\nttttt1tttttttt11tfttttfftttttffttt1111i,...... ,:.,,,......................:11111ttttttt11ttttttfttt\n1tttt1ttftfttt11tfffffffttttfffft11111,....... ,,.,,....... ...............it1111ttttttt111tttttfttt\n1tttt1tttttttt11ttttttttttttttttt1111;,....... ,,.,,......................:tt11111ttt11t111ttttttt1t\n11t111tttttttt111t1111tttttttttt1iiii:,,...... ,,.........................;t111111111111111111111111\n111111111tt11111111111ttttttttt1;;iiii:....... ,,............ ...........;tttt1111111111111111111111\n1111111111111111111111ttttttttt1;;;iii;... ....,::::,....,:::,,.........;1ttttt111111111111111111111\n111111111111111111111111tttttttt1i;;ii: .,....,:::::... .;;;;;:,.....,;1ttttttttt111111111111111111\n1111111111111111111111111tt1111111i,,.,:;i: ...,:::::.....:;;;;;:.....,1ttttttttt11t1111111t11111111\n11111111111111111111111111111111111:.:1tti,....,:::::.... ,;;;;;;,.....ittttttttt111t11111ttttt11111\n1111111111111111111111111111111111111ttt;,,....,:::::,... .,;;;;:,.,,..:ttttttttttt1tttt11tttttt1111\n11111111111111111111111111111111111111t1,,,....:;;::::,.....:;;;:......,1ttttttttttttttttttttttt1111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt1tt111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttt11111tt11111ttfffft1ttt1111111111111111tttttffttttttttt111111tt\nttftttttttttttttffffLffttfffffffLLLfttttttfttt11tffffffftttttttt111111tttttffffftfffftttttt1111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1ttt1iiiii1tttttttt11111tffffffffftttfffffttt1111t1tt1\nttttttttttttffffttffftffffffffffttffttttt11tttt1i::,,,,,,:;111111t111111ttffffLLffttfLfftt11111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfft1i;,,,,,,,,,:;ttt11t111tt111tttffffftttftttttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLtttttffffti;::;;;;;iii::1ftt11111tft11111ttffffttt11tffftt1ttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttffffft;:;iiii11111i:iftttt111ttt1tttt11tffLfttttfffffttttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttffffft;:;;;;;iiiiii;1fftt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttffffti;;;;;;;ii;iiitffft11111ttt1ttt1tfttt11ttfffffLLfLfttt\nttfLfffffLLLLLLLLffffLLfffffLfffLLLLtttttttff1iii;;i;;iii111tfft111111ffft11t11tt1tttttfffLLLLLLffff\ntffftftttffLLLffttttfffffttLLLLfLLLffttftt11t1iii;;;;;iiiii1tt111t1111tffttfftt11tfft1tfffLLLLLLLfff\nttffftttttffLftttttttttttttfLLLffLLftttttttft111i;;;;iiii1111111111111tffttfffttttttt11ttfLLffffftff\nttfLffffffftttfffffffffttfttfLLfffLftttttfffft11i;;;;iiii1t1ttttt11111ttt1tffttt11ttttttttfffftfttft\nttffffffffftttffffffffttfffftffffftttttfffft11t1i;;;;;iii1ii1ttttt1111t111ffttfft1tfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttttt11tft1i;;;;iii1i,:;i1ttt11111t11t1tfft1ttffffLLfttfLLLLLL\ntttffffffffttfffffffftttttttt11ffffttttt1111tfti;ii;;iiii1;,,...,:;ii1tttt1111tt11ttffffffftttffLLLf\nttttttttfffttfffttttttttffttt11tffftttttt11t1iii;;ii;;;i1t:,.........,:;1t111ttt111ttffffffftffLLLLf\ntfttttttttttttttttttttfffftttt11tfftt11tt1i:,.:;;;i;;;itti,,............,;1111ttttt11111ttfftffffftt\ntfttfffftttttttfffftttffffttffttttft1111i:....,;;;ii;i11;.,,.............:1tt1ttffffttttttt1ttttttft\ntttttffffftttffftffttttffftfffttttft1i:,.......:;;;;;;;:,................:tttt1tffftttttfft11ttfffff\n1t1tffffftt1ttfffftt11tffttftttttttt1,.........,ii;;;;;,.................:11tt1tfft11tfffffft1fLLfLf\ntftttfftt1ttt1tftt1ttt11ttttttttt111i,.........,11;:;;:,.................,1t1t11ttttttttfftt111fffLf\ntfftttttttffttt111ttfftt11ttffffftt11,.........,i;::::,..................,1tt11111ffft1ttt11tt1tffft\nttttttttttttttt11tttttttt1tffffffft11;..........::::::,...................;tt1111tfffftttttffftttttt\ntfffttttfffffft11ttttttttttffffffft11:..........:::::,..,;:,...............ittt1tttttffttttttttffttf\ntfffttttfffffft11tftttffttttfffft1111:..........:::::,..;1i;:,..............1t11tfffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt111;..........::,:,...;ii;;;,.............:1111tffffLfttfffffffttf\ntffftttttttfft11ttttttttttfftttttft11i,.........::,,,...;;;;;i:..............;111tffffLfttfffttffttf\ntttttttttttttt111tttttttttffftttfft11i,.........::,,,...;;;;;i:..............:111tfffffftttffttffttt\ntttttttttttttt11ttttttttttfftttttft111:.........:,,,....::;;;;:.............,1t11ttttttt11tttttffttt\nttttt1tttttttt11tfttttfftttttfftttt111:.........:,,,......,::::..,.........,i1111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttfffft1111i:,........:,,,..... .......,,...... .it1111ttttttt111tttttft1t\n1tttt1tttttttt11ttttttttttttttttt1iiii;,........:........... ...........:itt11111ttt1t1111ttttttt1t\n111111tttttttt111tt111tttttttttti;;;iii:... ....:,,...................:i1tttt11111111111111111111111\n111111111tt11111111111tttttttttt1;;;;;;;. .,....::::..................:1tttttt1111111111111111111111\n1111111111111111111111ttttttttttt1i;;::..:;1,...::::...................;ttttttt111111111111111111111\n1111111111111111111111111tttttttt111i,.,it1;....::::,..................,1ttttttttt111111111111111111\n1111111111111111111111111tttt11111111ii1t1i:...,::::,........,..........itttttttt11t1111111tt1t11111\n11111111111111111111111111111111111111tt1;:....::::;:.......,...........:1ttttttt111t11111ttttt11111\n111111111111111111111111111111111111111ti,,....:;:;::,..................,ittttttttt1tttt11tttttt1111\n111111111111111111111111111111111111111t:,:.,.:;;;;:::,..................;111t1ttttttttttttttttt1111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt11t111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttttt1111t11111ttffffftttt1111111111111111tttttfftttttttt1111111tt\nttftttttttttttttffffLffttffffffffLLfttttttfttt11ttt1iiii;i11tttt111111tttttffffftffffttttttt111111tt\nttttttttttttttttfffLLttffffffLLffffttttttttttt1tt1::,,,,,,:;1ttt111111tfftfffffftttfffffttt1111t1tt1\nttttttttttttffffttffftffffffffffttfftttttt1ttt11i;:,,,,,,,,,:1111t1111111tffffLLffttfLfftt11111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1;:::;;;;;;;::it11t111tt111tttffffftttfttttt1111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLtttttfffffti:;;ii111111i:itt11111tft11111ttffffttt1ttffftt1ttttt\ntttttttfffLLLLLLLLLftffftttffLffftffttttfffffft;:;;;;;iiiiii;ittt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttffffffti;;;;;;;ii;iiitttt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttfffff1iii;;i;;i1i1i1tttt11111ttt1ttt1tfttt111tfffffLLfLfttt\nttfLffffffLLLLLLLffffLLfffffLfffLLLftttttttfft1i;;;;;;;iiiiitfft111111ffft11t11tt1tttttffffLLLLLffft\ntffftfttttfLLLffttttffffftfLLLLfLLLftttftt1111111i;;;;iiii111t111t1111tffttfftt11tfft1tffLLLLLLLLfff\nttffftttttffLftttttttttttttfLLLffLLftttt1tttt11tti;;;iiiii111111111111tffttffftttttttt1ttfLLLfffffff\nttfLffffffftttfffffffffttfttfLLfffLftttttffft1111i;;;;;ii111tfttt11111ttt1tffttt11ttttttttfLfftfttft\nttffffffffftttfffffffffttffftffffftttttfffft11t11i;;;;iii1i:;1ttft11111111ffttfftttfffffLfttttfffffL\nttffffffffttttffffffffttttttttttffftttttft111tttiii;;iiii1;,,,:;i1111111111t1tfft1ttffffLLftttfLLLLL\ntttffffffffttffffffffttttttttttfffftttt1111i;:;iiii;;;i;11:,,.....,:;i1tft1111tt111tffffLfftttffLLLf\nttttttttfffttfffttttttttfftt111tfffttt11i;,,..:i;;;i;ii1t1,,..........,:i1111ttt1111tffffffftffLLLLf\ntfttttttttttttttttttttffffttttt1tffti;:,,.....,;;;iiii1ti,,,.............;1111ttttt11111ttfftffffftt\ntttttffffttttttfffftttffffttffttttf1:.........,;:;;;;;;;,.,,,............:1tt1ttffff11ttttt1ttttttft\ntttttffffftttffftfft1ttffftfffttttf1,..........,;;;;;;;:.:ii;;:,.........:tttt1tfffttttffft111tfffff\n1tttffffftt1ttfffftt11tffttfttttt1t1,...........ii;;;::,,;i;;ii:.........:tttt1tfft11tfffffft1fLLfLf\ntftttffttttt11tftt1tttt1ttttttttt11i,..........,1i;;::,.:i;;;;i:.........,1t1t11ttttttttfftt111fffLf\ntfftttttttffttt11tttffttt1tttffft11i,..........,ii;:::,.,:;;iii:..........it111111tfft1ttt11tt1tffft\nttttttttttttttt11tttttttt1tfffffftti,...........:::::,....:;;ii:..........:tt111ttfffftttttffftttttt\ntfffttttfffffft11ttttttttttfffffft1i,...........:::::,.....,:;;:.... ......,1t111ttttffttttttttffttf\ntfffttttfffffft11tftttffttttfffft111:...........:::::,........,..,..........,1111tffffffttfffffffttf\ntfffttttfffffft1tttttttftttttttttt11:...........::,:,........ ...:;,.........:111tffffLfttfffttffttf\ntffftttttttfft11ttttttttttffttttttti,...........:::,,.............,...........,i1tffffLfttfffttffttf\ntttttttttttttt111tttttttttffftttfft;,:;:........:::,.............. ...........:11tfffffftttffttffttt\ntttttttttttttt11ttttttttttfftttttftii1i;:.......:::,.......... ..............:t111tttttt11tttttffttt\nttttt1tttttttt11tfttttfftttttffttt1ii;ii;,......::,,........................:1111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttfffft11i;;ii;,......:,,,..........:........ .;t1111ttttttt111tttttft1t\n1tttt1tttttttt11tttttttttttttttttt11;:;i:,,.....:,.................. .;i;;1tt1111tttt1t1111ttttttt1t\n111111tttttttt111t111ttttttttttttt11i:,,:1;....,::....................:1ttttt11111111111111111111111\n111111111tt1111111111tttttttttttttt11i;;1t:....:::::...................;tttttttt11111111111111111111\n1111111111111111111111ttttttttttttt111ttt1,,,.,:::::,..................,1ttttttt11111111111111111111\n111111111111111111111111tttttttttt1111111i,::.,;::;:,...................;ttttttttt111111111111111111\n1111111111111111111111111ttttttt11111111t;.,,.,;;;;;,...................,1ttttttt11t1111111tttt11111\n111111111111111111111111111111111111111t1:..,,:;;;;;:,...................;ttttttt111t11111ttttt11111\n111111111111111111111111111111111111111ti,,,::;;;;;;;:,..................,1tttttttt1tttt11tttttt1111\n111111111111111111111111111111111111111t;,,::,;;;ii;;::,..................it1tttttttttttttttttt11111\n","ttftffftttttttttffffffLftfftttttttttt111tttt1111111tttt111111tttt1111111ttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftfffffffffttttt111tt11111ttffffftttt1111111111111111tttttfftttttttt1111111tt\nttftttttttttttttffffLffttfffffffLLLftttttttttt11ttt1iiii;i11tttt111111ttttttfffftffffttttttt111111t1\nttttttttttttttttfffLLttffffffLLffffttttttttttt1ttt;:,,,,,,,:itttt11111tfftfffffftttfffffttt1111t1ttt\nttttttttttttffffttffftffffffffffttfftttttt1tttt11i:,,,,,,,,,:i111t1111111tffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1;::;;;;;;;;;,;t111111tt111tttffffftttftt1tt1111ttttt\nttttttttffLLLLLLLffttfLLffttfffftfLLtttttffffff1,:iiii111111;:tt11111tft11111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLffftffttttfffffffi:;;;;;iiiii1;;ttt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLLftfftttttfffffff1;;;;;;;ii;;ii1ttt11111111ttftttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLffffftfLftffffLLLftttttfffff1iiiiii;;iiii1itttt11111ttt1ttt11tttt11ttfffffLLfLfttt\ntffLLffffLLLLLLLLffffLLftffLLLffLLLftttttttffftiii;;;;;ii1ii1tft111111ffft11t11tt1tttttffffLLLLLffft\ntfffffttftfLLLffttttfffffttLLLLfLLLftttft111tt111i;;;;iiiii1tt111t1111tffttfftt11tfft1tffLLLLLLLLfff\nttttfttfffffLftttttttttttttfLLLffLLftttt1tttt11tti;;;iiiii111t11111111tffttffftttttttt1ttfLLLfffffff\nttffffffffftttfffffffffttfftfLLfffLftttttffft11t1i;;;;;iii11ttttt11111ttt1tffttt11ttttttttfLfftftttt\nttffffffffftttfffffffffttffftffftftttttffft111t11i;;;;iii1ii11tttt1111tt11ffttfftttfffffLfttttffffff\nttffffffffttttffffffffttttttttttffftttttttt11111iii;;iiii1;,:;1tttt11111t11t1tfft1ttffffLLftttfLLLLL\ntttffffffffttffffffffttttttttt1tffftttt11i;:,:i;;i;;;;;i11,,..,,:;i111tttt1111tt11ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11ttff1ii;:,....,;::;i;;i11ti,,.......,:;ittt111ttt1111ttffffffttfLLLLf\ntfttttttttttttttttttttfffftttt11tff;,,........;;;;iii1tti,,,,:;;::,....,i11111ttttt11111ttfftffffftt\ntfttfffffttttttfffft1tffffttfft1ttt:..........:;;;;;;;i;...,;i;iii:.....,i1tt1ttffff11ttt1t1ttttttft\nttttfffffftttfffffft11tffftffftttti,..........,:;;;;;;;,...,;;iiii,......;tttt1tffftttttftt111tfffff\n1tttffffftt1ttfffftt111ffttft11tt1;,...........;i;;;;;:,.....:;iii,......;tttt1tfft11tffffftt1fLLfLf\ntttttffttttt11tftt1tttt1tttt1tttti,............;1;::;;,......,;iii,......;t11t11ttttttttfftt111fffLf\ntfftttttttffttt111ttfftt111ttfffti.............;i;::::,.......,;;;,......;ttt11111tfft1tttt1tt1tffft\nttttttttttttttt11ttttttt11tffffffi,............,::;:::,..........,.......:ttt1111tfffftt1tttfftttttt\ntfffttttfffffft11tttttttttttffffti,............,:::::,..............,....,ittt11ttttttft1ttttttffttf\ntfffttttfffffft11tffttff11t1tfff1;...... ....,.,:::::,.....................;11111tffffffttfffffffttf\ntfffttttfffffft1tttttttfttttttti:,......:iiii;,,:::,:.......................,;111tffffffttfffttffttf\ntffftttttttfft11ttftttttttfftti,,::,.,:;1i;;;;.,::::,.........................,i1tffffLfttfffttffttf\ntttttttttttttt111ttttttt1ttfft1:::,,,:,:;;;;i:.,:::,,..........................;1tfffffftttffttffttt\nttttt1tttttttt11ttttttttttfttt1;,...,...:;;;:, ,:::,..........................;11ttttttt11ttttttfttt\nttttt1tttttttt11tfttttfftttttfti,..,....,,,....,:::,.........................:111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfffffffttttffft1;::::,,.......,:,:,.................. .:1111ttttttt111tttttfttt\n1tttt1tttttttt11ttttttttttttttttttt11111:......,:,,,..................,::,:1tt1111ttt1t1111ttttttt1t\n111111tttttttt111t1111tttttttttttt111111:......,,.....................,1tttttt1111111111111111111111\n1111111111t11111111111ttttttttttttt11111:......,:,,....................:1t1ttttt11111111111111111111\n1111111111111111111111ttttttttttttt1111t:......,;;::....................:1ttttttt1111111111111111111\n111111111111111111111111ttttttttt1111111:......,::::,...................,itttttt11111111111111111111\n111111111111111111111111111tttt111111111:......,;;::,....................:1ttttttt1tt11111ttttt11111\n1111111111111111111111111111111111111111:......:;;;::,...................,ittttttt11t11111ttttt11111\n11111111111111111111111111111111111111t1:......:;i;;::,...................:11tttttt1tttt11ttttt11111\n1111111111111111111111111111111111111111,......:;;;;;::,..................,1tttttttttttttttttttt1111\n","ttftfffttttttttttfffffLftfftttttttttt111tttt1111111tttt111111ttttt11111tttttttttttttttttttt11111111t\nttfttttttttttttttfffLLLftffffffffftttttt111111111ttfffftt1tt1111111111111111ttttttftttttttt1111111tt\nttftttttttttttttffffLftttfffffffLLLft1tttttft111tfftttfttttttttt111111ttttttfffftffffttttttt11111tt1\nttttttttttttttttfffLfttffffffLLffffttttttttttt1ttti;;;;::;i1tttt111111tffffffffftttfffffttt11111ttt1\ntttttttttttfffffttffftffffffffffttfftttttt1ttt111i,,,,,,,,,;11111t1111111tffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttffft1i::,,,,,,,,,:1t11t111tt1111ttffffftttftt1tt1111ttttt\nttttttttffLLLLLLLffttfLLLfttfLfftfLLtttttfffffti:;;iiiiiiii::1tt11111tftt1111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLffftfftttttffffft::;;iii1i111i:1ttt1111ttt1tttt11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttttfffffft;;;;;;;iiiiii;tttt11111111ttftttttttt11tffffffffffttt\ntttfftfffLLLLLLLLLfttfftfLfffffffLLftttttfffft1ii;;;;;iiiiiitfttt11111ttt1ttt11tttt11ttfffffLLfLfttt\nttfLLfffffLLLLLLLfftfLLftfffLLffLLLftttttttfftiii;;i;;ii111itfft111111tfft11t11tt1tttttfffLLLLLLLfff\ntfffffttftfLLLffttttffffftfLLLLfLLLftttft111tt1iii;;;;iiiii1tt111tt111tffttfftt11tfftttffLLLLLLLLfff\nttttfttffttffftttttttttttttfLLLffLLftttt1tttt11t1i;;;iiii1111t11111111tffttffftttttttt1ttfLLLfffffff\nttfLffffffftttfffffffffttftttfLfffLftttttfffft11i;;;;iiii111tfttt11111ttt1fffttt1ttt1tttttfLLffftttt\nttffffffffftttfffffffffttfftttfttttttttffft11111i;;;;;iii1tt11tttt1111t111ffttffttfffffLLfttttfLffff\nttffffffffttttffffffffttttttttttffftt11ttt1111t1i;;;iii1i1itt11ttt111111t11t1ttft1ttffffLLftttfLLLLL\ntttffffffffttfffffffftttttt1111tffftttt11i;::i1iii;;;iii1i,:;i11t11111tttt1111tt11ttffffLfftttffLLLf\nttttttttfffttfffttttttttffttt11ttft1ii;:,....;i;;;ii;;i1t:,...,:;i1111tttt111ttt1111tttffffftfLLLLLf\ntfttttttttttttttttttttfffftttt11t1:,,........ii:;;iii1tt1,,,......,,;i1tt11111ttttt11111ttfftffffftt\ntfttfffffttttttfffft1tffffttfft11;,..........:;::;ii11t1:,,,...,,:,...,it11tt11tffffttttttt1ttttffft\nttttfffffftttfffffft11tfffttfttt1,....,,......,:;;;;;;i,.......:iii;;,.,1t1ttt1tffftttttfftt11tfffff\n1tttffffftt1ttfffft1111tfttft11ti,.............;i;;;;;:........:iiiii:..it11tt1tfftt1tfffffft1fLffLf\ntttttffttttt11tttt1tttt1tttt1tt;,..............i1;;;;;,........,;iii;,..it111t11ttttttttfftt111fffLf\ntfftttttttfftt1111ttfft11111tft:...............;i;;;;:,.........:;ii:..,ittt111111tfftttttt1tt1tffft\nttttttttttttttt11ttttttt11ttff1,...............,::::::......... ,;ii:...itttt111ttffffft1tttfttttttt\ntfffttttffftttt11ttttttt111tft;,........... ..,:;:::,...........,:;:...;ttttt11ttfffffttttttttffttf\ntfffttttfffffft11ttttttf11111;:,..... .....,:::::::::...............,...:1ttt1111fffffffttfffffffttf\ntfffttttfffffft11ttttttt11ti,,...........,:;i;;;:::::..................,.:tt11111tffffffttfffffffttf\ntffftttttttfff111ttttttt111,.,,,,...,,..,;;;;;i;:,::,....................,;i1t111tffffLfttfffftffttt\ntttttttttttttt111ttttttt11t:.......,....,:;;;;;:::,:,.......................:1t11tfffffftttffttffttt\nttttt11ttttttt11tttttttt11t1,............,,,...,::::.........................:111ttttttt11ttttttfttt\nttttt1tttttttt11ttttttfft1t1:,............ .. ,:::,........................,i111ttttttt11ttttttfttt\n1tttt1ttfttttt11tfftttfftttttt1;::,,::.........,:,,,........................i1111ttttttt111tttttfttt\n1ttt11tttttttt11tttttttttttttttttt111i.........,::,,................. . .;t11111ttt1tt111ttttttt1t\n11t111tttt1tt111111111tttttttttttt111i,........,:,,...................,..,itttt111111111111111111111\n1111111111111111111111tttttttttttt111i,....... ,:....................i111ttttttt11111111111111111111\n1111111111111111111111ttttttttttt1111i,....... ,:,::,................,i1t11tttttt1t11111111111111111\n111111111111111111111111tttttttt11111i,........,::;:,..................;1ttttttt11111111111111111111\n1111111111111111111111111tttt11111111i........ ,,:::,..................,1ttttttttttt1111111tt1t11111\n1111111111111111111111111111111111111i,........,,:::,...................it111ttttt11t11111ttttt11111\n111111111111111111111111111111111111t1,........,,,:::,..................,1t1ttttttt1tttt11ttttt11111\n11111111111111111111111111111111111111,........,,,;;::,..................i111ttttttttttttttttttt1111\n","ttftffftttttttffffffffLfttftttttttttt111tttt1111111tttt111111tttt1111111ttttttttttttttttttt11111111t\nttfttttttttttttttftfLLLftffftffffftttttt111111111ttfffftt1tt1111111111111111ttftttftttttttt1111111tt\nttftttttttttttttffffLftttfffffffLLLft11tttfft111tfffffffttt1ttttt11111ttttttfffftffffttttttt11111tt1\nttttttttttttttttfffffttffffffLLffffttt1ttttttt1tt111ii11tft1ttttt11111tfftfffffftttfffffttt11111ttt1\nttttttttttttffffttfffttfffffffffttffftttt111ttt1:,,,,,,,:i1111111t111111ttffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLLfttttttftt1;:,,,,,,,,,;1tt111t1111t111tttffffftttftt1ttt111ttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLfttttffft1i;;;;;;;;;;::1tttt11111ttt11111ttffffttt11tffft11ttttt\ntttttttfffLLLLLLLLLftffftttffLLfftfftttttffffi:;iii111111i:ittttt1111ttt1tttt11tfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttttfffff;:;;;;iiiiiii:ittttt11111111ttttttttttt11tffffffffffttt\ntttffftffLLLLLLLLLfttfftfLftfffffLLftttttffff1i;;;;;ii;iiiittttft11111ttt1ttt1ttttt11ttfffffLLfLfttt\nttfLLfffffLLLLLLLfftfLLftfffLfffLLLftttttttf1i1i;i;;iiii1i1tffft111111tfft11t11tt1tttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft1111iii;;;;ii1i1i11tt111t1111tffttfftt11tfftttfffLLLLLLLfff\ntttffttfftffLftttttttttttttfLLLffLLfttttttttt11i;;;;iiii11t11111111111tffttfffttttttt11ttfLLLfffffff\nttfLffffffftttfffffffffttftttfLfffLftttttffft11i;;;iiiii1t11ttttt11111ttt1fffttt1tttttttttfLLftftttt\nttffffffffftttfffffffffttffttfffttttttttfft1111i;;;;iii1111111tttt1111tt11ffttffttfffffLffttftffffff\nttffffffffttttffffffffttttttttttffftt11tttt11t1ii;;;iii11tfft11ttt111111t11tttfft1ttffffLLfttffLLLLL\ntttffffffffttfffffffftt1ttt1111fffft1tt11iiii1iiii;iiii1i:1tft11111111tttt111ttt11ttffffLfftttffLLLf\nttttttttfffttfffttttt1ttfft11111tft11i;:,..,;ti;;;i;iii1;,,,:;i1111111tttt111ttt1111tffffffftfLLLLLf\ntfttttttttttttttttttttfffftttt11i;::,,......iti::;i;iitt:,,....,:;i111ttt111t1ttttt11111ttfftffffftt\ntfttfffffttttttfffftttffffttft11:...........;ii::;i11tti,,,,.......,:itt111tt1ttffff11ttt111ttttttft\nttttfffffftttffftfft11tfffttftt;,............,:;;;;;11;,..............;1111ttt1tffftttttfftt1ttfffLf\n1t1tffffft11ttfffft1111tfttft11:.............,:ii;;;;;,...............:11t11tt1tfft11tfffffft1ffffLf\ntttttfftt1tt11tttt1ttt11t1111t;,..............:i1;;;;:,...............,111111t11ftttttttfftt11tfffLf\ntfftttttttfftt1111tttft11111t1,...............:ii;;;;,............,,,.,1tttt11111ttfftttttt1tt1tffft\nttttttttttttttt11ttttttt11ttfi................:;::;::,...........,;i;;:1tttttt11ttffffftttttfftttttf\ntfffttttftttttt11ttttttt11ttfi................,;;:::,............,;iiii1tttttft1ttffftfttttttttftttf\ntfffttttfffffft11ttttttt11111;........ .......:;:::,............:iiiii11ttftt11tfffffffttfffffffttf\ntfffttttftffff111ttttttt11ti:,....... ,:::;;:,.,;:::,............:;;ii:i11tt1111tfffffffttfffffffttf\ntffftttttfffft111ttttttt11i,.........,iii;;;,..,:::,.............::;;,.it1111tt11tffffffttfffftffttf\ntttttttttttttt111ttttttt11,.,,,,..,,,:;;;;;;,..,:::,.............,::;..:i111ttt11tfffffftttffttffttt\nttttt1tttttttt111ttttttt11;,,,...... .:;;;;:...,:,,,.....................:111tt11ttttttt11tttttffttt\nttttt1tttttttt11tttttttt111,..........,,,,.....,:,,.......................:111111ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft11i:,.....,.... .....,::,......................,1t11111ttttttt111tttttft1t\n1tttt1tttttttt11ttttttttttttt1ii;;;:...........,:,,.....................,it111111ttttttt111ttttttt1t\n11t1111tttttt111111111tt1tttttttt11:...........,:,,.............. .;t11111111111111111111111111\n1111111111111111111111ttttttttttt11,.......... ,,................,:,,,:i1tttt1t111111111111111111111\n1111111111111111111111tttttttttt11i,...........,,,,..............:1t11ttttttttttt1111111111111111111\n111111111111111111111111tttttt1111;........... ,,:;,..............:11ttttttttttttt111111111111111111\n11111111111111111111111111tttt1111;........... ,,:;:...............:111tttttttttt11t1111111tttt11111\n1111111111111111111111111111111111;....,,......,,,::................i1ttttttttttttt1t11111ttttt11111\n1111111111111111111111111111111111;............:,,;:,...............;1tttttttttttttttttt11ttttt11111\n1111111111111111111111111111111111:............,,:;;:...............,1t1tttttttttttttttttttttttt1111\n","ttftffftttttttfffffttfLfttftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftffLLftffffffffttttttt111111111ttfffft1ttt1111111111111111ttttttftttttttt111111ttt\nttftttttttttttttffffLftttfffffffLLLftt1tttttt111ttfffffftttttttt111111tttttffffftffffttttttt111tttt1\nttttttttttttttttfffLfttffffffLLffffttt1tttttt11tffffffffffttttttt11111tffffffffftttfffffttt11111tttt\nttttttttttttffffttfffttfffffffffttffftttt11111111i;i11ttt11tt1111t111111ttffffLLffttfLfft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLLfttttttfti:::,,,,:;i1ttfttt11t111tt111tttffffftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLftttttft1;,,,,,,,,,,;tffffft11111tft11111ttffLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLfLftffttttfffti;:;;;;iii;::1fffffttt111ttt1tttt1ttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLfftfftttttfffi;;iiiii1111i:iffffftt11111111ttttttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttttffi:;;;;iiiiiii:1ftttfftt1111ttt1ttt1ttttt111tffffffLfLfttt\ntffLLfffffLLLLLLLfftfLLftftfLfffLLLLttttt1t1i;;;;;ii;iiii1ttffft111111tfft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft11i1i;;;;i111iii111tt111t1111fffttfftt11tfftttfffLLLLLLLffL\ntttffttfftffLftttttttttttttfLLLffLLftttt1tti1i;;;;ii1iii1tt11111111111tffttffftttttttttttfLLLLfffffL\nttfLfffffffttffffffffffttftttfLfffLftttttfftt1;;;;iiii11ttt1ttftt11111tfttffftt111ttttttttfLLftftttt\nttffffffffftttfffffffffttffttfftttttttttfft111i;;;iiii1t111t1ttttt1111tt11ffttffttfffffLLfttffffffff\nttffffffffttttffffffffttttttttttfffttt1tft1111i;;;iiii111tfft11ttt111111t11tttfft1tfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt1111tffft11t111111iiii;;iii111fffft11111111ttft111ttt11tfffffLfftttfLLLLf\ntttttttttffttfffttttt1ttfft1t11ttfftttt1iiii1i;;;iii1i1i,;i1ttt1111111tttt111tttt111tffffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tff11i;:,,,:11i;;iii;it;....,:;i111111ttt111t1ttftt11111ttfftffffftt\ntfttfffffttttttfffftttffffttfft1ii;:,,.....:11;:;;;;1tt;,,,.....,,;i11tt111tt1ttfffftttttt11ttttttft\nttttfffffftttffftfft11tfffttft1;,..........:1ii;;ii1tti,,,..........,it1111ttt1tfffttttffftt1ttfffLf\n1tttffffftt1ttfffft1111tfttft1i,............,:;ii;;i1i,..............:111111tt1tfft11tfffffft1ffffLf\ntftttffttttt11tttt1ttt11t1111t;..............,;1i;;;;,...............,1111111t11ftttttttfftt11tfffLf\ntfftttttttfftt1111ttttt11111tt:............. ,;ii;;;:,...............,i111tt11111tffftttttt1tttttfft\nttttttttttttttt11ttttttt11ttft,...............;;;;;:,.................ittttttt11ttffffftttttfffttttt\ntfffftttftttttt11ttttttt11ttf1,...............:;;;::,.......,,,.......;tttttfftttfffftfttttttttffttf\ntfffttttfffffft11ttttttt1111t1,...............:;;;::........,;i;:,....;t1ttfttt1tfffffffttfffffffttf\ntfffttttftffft111ttttttt11t111,...............,::::,........:iiiii:...;t11tt1111tffffLffttfffffffttf\ntffft1tttfffft111ttttttt11ttt1,..... ..........::::,.......,;iiii;,...it11111tt1tfffLfLfttfffftffttf\ntttttttttttttt111ttttttt11tt1:... .,..........,:::.........:;;i;,...,1t1t11tft11tfffffftttffttffttt\nttttt1tttttttt111ttttttt1tt1:,...:;ii:.........,::,.........,:;;:.....,it1111tt11ttttttt11tttttffttt\nttttt1tttttttt11ttttttttt1t;::,;iiii;,.........,:,,...........,,,......,;11111111ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft1ti:,,;;;:;;,.........,:,,.......... ..........:tttt1111ttttttt111tttttfttt\n11ttt1tttttttt11ttttttttttt1,.,::::;;:.........,:,,...............,....;ttttt1111ttttttt111ttttttt1t\n11tt11tttt1tt111111111111ttti:,,,::;:..........,:,,............ ......;ttttt11111111111111111111t111\n1111111111111111111111tttttttt1:,,,............,:,.............,. .,;11tttttt1111111111111111111111\n1111111111111111111111tttttttttt1:.............,,............ .11ii1ttttttt1111111111111111111111111\n111111111111111111111111tttttt111,.............,::,,...........ittttttttttttt11111111111111111111111\n11111111111111111111111111111111;..............,;;;:,..........:11tttttttttttttt11111111111111t11111\n11111111111111111111111111111111;..............,;;;:,...........:11tttttttttttttttt1111111ttttt11111\n11111111111111111111111111111111:..............,;;;;:...........:1ttttttttttttttttttttttt1ttttt11111\n11111111111111111111111111111111:..............,;i;::,..........,1tttttttttttttttttttttttttttttt1111\n","ttftffftttttttfffffttfffttftttttttttt111tttt1111111ttttt11111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttftffLLftffffffffttttttt111111111ttfffffttttt111111111111111ttffttftttttttt11111tttt\ntfttttttttttttttffffLffttfffffffLLLft11tttttt111tfffffffttttttttt11111ttttfffffftfLLfttttttt1111ttt1\nttttttttttttttttfffLfttffffffLLffffttt1ttttttt1ttfffffffffttttttt1111ttfftffffLftttfffffttt11111tttt\nttttttttttttffffttfffttffffffffftttfttttt111ttt1ttffffffttttt1111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttfLLLfftttttffLftttttttt11ii11fffft1ttfftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLLfttttt1i:;:,,::;i1tttffffftt11111tft11111ttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttfti:,,,,,,,,,:;tfffffttttt111tftttttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftffttttttti:::::;;;;;,,1ffttffttt11111111ttttttttttt1ttffffffffffttt\ntttfftfffLLLLLLLLLfftfftffftffffLLLfttttti;iiiii11111;:1ttfffffftt1111ttt1ttt1tftttt11tfffffLLfLfttt\nttfLLffffLLLLLLLLfftfLLftttfffffLLLLttttt;;i;;iiiiii1;:i11tfffft111111ffft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttft1ii;;;ii;;iii;tt11ttt111t1111tffttfftt11tfftttffLLLLLLLLffL\ntttffttfftffLftttttttttttttfLLLffLLftttt11ti;;;iiii1iii1ttt1ttt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttftttfLfffLfttttt11i;;;iii1iii1tttt1tfftt11111tfttffftt11tttttttttfLLffftttt\nttffffffffftttfffffffffttfftttfftffttttfft11;;;iiiii11tt111ttttttt1111tt1tffttffttfffffLLfttftfLffff\nttffffffffttttffffffffttttttttttfffttt1tft11i;iii11i11111tfft11ttt11111tt11tttfft1tffffLLLfttfLLLLLL\nttfffffffffttfffffffftt1ttt111tfffftttt11111i;i;iiii111ttfffft11111111tttt11tttt11tffffLLfftttfLLLLf\nttttttttfffttfffttttt1ttfftt111tfffttt111111;;i;;iii11i1ttffft11111111tttt111tttt11ttfffffLftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tffttt1t1ii1;;i;;iiii1;,::i11tt1tt1111ttt11tt1tfftt11111ttfftfLffftt\ntfttfffffttttttfffft1tffffttfft11tft11i::,,1ii;:;ii;it:,,...,,:;i11111tt111tt1ttfffftttttt11tttttfft\nttttfffffftttffftfft11tfffttfttttt1i:,....,it1i;;;;i1t;,,,,.......,;111t111ttt1tfffttttffftt11tffLLf\n1tttffffftt1ttfffft111ttfttft11i;:,........i1tt1ii1tt1:,,...........:1111111tt1tfftt1tfffffft1ffffLf\ntftttffttttt11tttt1ttt11t1111t;,...........,;;;11;;;;:..............,1t111111t1tftttttttfftt11tfffLf\ntfftttttttfftt1111ttttt11111tt:..............:;ii;;:,................it111tt11111tffftttttt1tttttfft\nttttttttttttttt11ttttttt11ttf1,..............,;;;;::,................it1tttttt1ttfffffftttttfffttttt\ntfffttttffttttt11ttttttt11ttfi................;;;:::,,:;:,...........;tttttttftttffffffttttttttffttf\ntfffttttfffffft11ttttttt1111ti................:;:::,.:;iii;,.........:111ttfftt1tfffffffttfffffffttf\ntfffttttftffff111ttttttt11t11;................,;:::,.;iiiii:.........:tt11ttt111tfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt1tttt;................,::::,.:;;ii;,.........;ttt1111tt1tfffLLLfttfffftffttf\ntttttttttttttt111tttt1tt11ttti.................:::,...,;;i;,.........itttt11ttt11ffffffftttfftfffttt\ntttttttttttttt111ttttttt11tt1;.................:::,....,:;:,.........,1tt1111tt11ttttttt11tttttffttt\nttttt1tttttttt11ttttttttt1t11:.................:::,.... ..............:1111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfft11ti;,................,::,.........,......... :ttttt1111ttttttt111tttttfttt\n11tt11tttttttt11tttttttt1tt1iiii:..............::,,...................:1tttt111111tttttt111ttttttt1t\n11t1111tttttt1111111111t111iiiiii:.............,:,,,.................:1ttttt11111111111111111111t111\n11111111111111111111111t11i;;iiii;.............,:,,,........... .,;ttttttttt1111111111111111111111\n1111111111111111111111tt1t1i;;ii;,.............,,........... :i;;i1tttttttt1111111111111111111111111\n1111111111111111111111111ttti:,,...............,,,.......... :ttttttttttttttt1t111111111111111111111\n11111111111111111111111111111;::...............:;;::,........,i11ttttttttttttttt1111111111111tt11111\n111111111111111111111111111111t;...............:ii;;:,........;t1tttttttttttttttt1t1111111ttttt11111\n1111111111111111111111111111111:...............:;i;:::........:tttttttttttttttttttt1ttttt1ttttt11111\n1111111111111111111111111111111:............. ,;ii;;;:,..,,...:ttttttttttttttttttttttttttttttttt1111\n","ttfttfftttttttffffftfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt11111111t\nttfttttttttttttttttffLLttffffffftttttt1t111111111tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt11111tfffffffLftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttffttttt1111tt1ttffffffttttt1111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffttttffffftttffftt11t111tt111ttfffLLftttftt1tt111tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLftttttt11i;;;;i1tftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLLfftffttttti:::,,,,::;i1tffffffffttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffLfftfftttt11;,,,,,,,:,,,;tffffffffttt1111t11ttttttttttt1ttffffffLfffttt\ntttfftfffLLLLLLLLLftffftfLftffffLLLftttt1i;;;;iiiii:,:1tttfffffftt1111ttt1ttt1tfttt111tfffffLLfLfttt\nttfLfffffLLLLLLLLfftfLLftttfLfffLLLLttt1i1iiiii1111i::1111ttffft111111ffft1tt11tt1tt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt11;;;iiiiiii:;ttt111tt111tt111tffttfftt11tfftttffLLLLLLLLffL\ntttffttffttfLftttttttttttttfLLLffLLftttt1i;;;iii;iii;ittfft11tt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttfttfLLfffLfttt111;;;i111111iitfttt1tfftt11111tfttfffttt1tttttttttfLLftfttft\nttffffffffftttfffffffffttffttffftfftttttt1i;;iiiii1i1tft11tttttttt1111tt1tffttffttfffffLLfttftffffff\nttffffffffftttffffffffttttttttttfffttt1ttti;;;i111iitt111tfft11ttt111111t1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111tfffftttt111ii;iii;ii11111tfffft11111111tfft11tttt11tffffLLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111tffftttt1111;;;i;;;i111ttttffftt1111111tttt111tttt11ttfffffLftfLLLLLf\ntfttttttttttttttttt1ttfffftttt11tfft111tt1i;;;i;;i1i1;i11tffftt11t1111ttt11tt1tfftt11111ttfftfLffftt\ntfttffffftt11ttfffftttffffttfft11tft11ii;ii;;;;:;iii1,.,,,:;iii1ttt111tt111tt1ttfffftttttt11ttttfftt\nttttfffffftttffftfft11tfffttftttttt1;:,..:11;;i;;;;11:,,,.....,,:i1111tt111ttt1tffftttttfftt1ttffLLf\ntt1tffffftt1ttfffft1111tfttft1111i:,.....,i11iiiii1tt:.,..........:111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11tttt1ttt11t11111;:,.........;i11i1111t;..............;t11111111t1tfttttttfffftt1tfffLf\ntfftttttttfftt1111ttfft111111:.............,::;ii;;:...............:111111ttt111ttffftttfft1tttttfft\nttttttttttttttt11ttttttt11tt1,..............::;;;;;,...............,1111tttttt11tffLffftttttfftttttt\ntfffftttffttttt11ttttttt11tfi,..............,::;;::,,...............i111ttttfftttffffffttttttttffttf\ntfffttttfffffft11ttttttt111ti................::::::,:;;::,..........it111ttffttttfffLfLfttfffffffttf\ntfffttttftffff111ttttttt1tt1;................,;::::.:iiiii,.........;11111ttt11ttfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt11tti,................::::,.:ii;ii:.........;tttt1111ttttfffLLLfttfffftffttf\ntttttttttttttt111ttttttt1ttf1.................,:::,.,:;iii:.. ......:ttttt11tft11tfffffftttfftfffttt\ntttttttttttttt111ttttttt1ttt;::...............,:::,. .:;ii:..........;ttt1111tt11tttttft11tttttffttt\nttttt1tttttttt11ttttttttt1t111i;,..............:::,....,::,...........;1111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttfftt1iiiiii:.............:::,.... ............. :ttttt1111ttttttt111ttttffttt\nt1ttt1tttttttt111ttttttttt1i;iiii;,............,:,,,................. ,1tttt111111tttttt111ttttttt1t\n11t1111tt1ttt11111111111111i;iii1i,............,::,,.................:1tttt11111111111111111111tt111\n11111111111111111111111111t1;;;;;,.............,:,,,.......... .:1tttttt111111111111111111111111\n1111111111111111111111111t11;,.................,:,,..........,;:::;1ttttttt1111111111111111111111111\n11111111111111111111111111111:..,..............,,............:ttttttttttttttttt111111111111111111111\n111111111111111111111111111111ii;..............,::,...........i111ttttttttttt11111t11111111111111111\n111111111111111111111111111111t;...............,;ii;::,.......:1ttttttttttttt11t1tt1111111ttttt11111\n111111111111111111111111111111i,...............:;ii;;;:,......,1ttttttttttttttttttt111111tttttt11111\n11111111111111111111111111111ti,...............:;ii;;;;:,..:..,1ttttttttttttttttttttttttttttttt11111\n","ttfttfffttttttffffttfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLttffffffffftttttt111111111tfffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt1111ttfffffffLftttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttffftttt1111tt1ttffffffttttt1111t111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1ttfffftttffftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffftfLftttttfttttttttttftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttffLffftffttttt1ii::::;111tttffffffffttt111tft1tttt1ttffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLfftffttttt1:,,,,,,,,:;ittffffffffttt1111t11ttttttttttt1ttffffffffffttt\ntttffttffLLLLLLLLLftffftfLftffffLLLftttti::,::::::,,,;ttttfffffftt1111tft1ttt1tffttt11tfffffLLfLfttt\nttfLffffffLLLLLLLfftfLLftttfLfffLLLfftt11iiiii111i;,,;t111tfffft111111ffft1tt11ttttt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt1iiiii1111i:,iftt111ttt11tt111tffttfftt11tfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLftttti;;;ii;iiii::1ttttt11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLfffffffttffffffffffttfttfLLfffLfttt1i;;i1i;iiii:;tftttt1tfftt11111tfttfffttt1tttttttttfLLftftttt\nttffffffffftttffffffffftfffttffftffttttti;;iii111i1iitft11tttttttt1111tt11ffttffttfffffLLfttftfffffL\nttffffffffftttffffffffttttttttttfffttttti;;;ii1111ii1t111tfft11ttt111111t11tttfft1tfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111tfffftttt1i;;;iiiiii11111ttfffft11111111tfftt1tttt11tfffffLfftttfLLLLf\nttttttttfffttfffttttt1ttfft1111ttffttt111i;;ii;;;itt11ttttfffft1111111tttt111tttt11tttfffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfft1t1t1i;;;ii;;it111ttttffftt11t1111ttt111t1tfftt11111ttfftfLffftt\ntfttffffftt11ttfffftttffffttfft1ttft11ii1;;;;i;:;i1;;i11tttft111tt1111tt111tt1tffffftttttt11ttttfftt\nttttfffffftttffftfft11tfffttftttt1i;:,,:1i;;;;i;;;1;.,,,;;i11111111111tt111ttt1tffftttttfftt1ttffLLf\n1tttffffftt1ttfffft111tffttft1ii:,.....,11iiiiiii1t:,,,.....,:;i111111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11tttt1ttt11t11i;:,........,i1tt1ii11tt:,,,,........:t11111111111t1tfftttttfffftt1tfffLf\ntfftttttttfftt1111ttfftt11i,............::;;iiiii1;,,............it1111111ttt111ttffftttfft1tttttfft\nttttttttttttttt11ttttttt11;...............:;;;;:;;...............:111111tttttttttffLffftttttfftttttt\ntfffftttffttttt11ttttttt11:...............,;;;;;;:,..............,111111ttttfftttffffffttttttttffttf\ntfffttttfffffft11ttttttt11,...............,:;;;;:,...............,1111111ttffttttfffLfLfttfffffffttf\ntfffttttftffff111ttttttt11:...... ........:;;;;:,...............,11111111ttt1tttfffLfLfttfffffffttf\ntffft1tttfffft111ttttttt11:.......:;;;:....,;;::::.......,::,....,1tt11tt1111tt1tfffLLLfttfffftffttf\ntttttttttttttt111ttttttt11:.....:;;;;;:.....:;:::,.......,:iii;,.,1t1t11tt11tft1tffffffftttfftfffttt\ntttttttttttttt111ttttttt1i,.....:;:;;;:.....,::::,........;;iii;..;t1111t1111tt11tttttftt1tttttffttt\nttttt1tttttttt11tttttttt1i,.....:::;;;,......::::,.......,;;ii;:..,;1t11111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttttttti....,,,,:;;,.......,:::,,.......,;;;;,....,it11tttt1111ttttttt111ttttffttt\n11tt11tttttttt111ttttttt1:,,.,,,..,,,.........::::,........,:;,..... ,1tttttt11111ttttt1111ttttttt1t\n1111111tttttt11111111111i,,..,,,.... .........::::,..................itttt111111111111111111111tt111\n1111111111111111111111111,...,,...............,::,,,...........,,...;tttttt1111111111111111111111111\n11111111111111111111111111,..... .............,::,,,......... . .:1tttttt1111111111111111111111111\n1111111111111111111111111ti,,,.,,..............::,,..........,,,::i1tttttttttt1111111111111111111111\n11111111111111111111111111111i11;..............:,............,1tttttttttttttt11111111111111111111111\n1111111111111111111111111111111i...............:;:::::,.......;tttttttttttttt11t1ttt111111ttttt11111\n1111111111111111111111111111111:...............:iiii;;::,......ittttttttttttttttttttt1111tttttt11111\n1111111111111111111111111111111,...............:iiiii;;:,......,1tttttttttttttttttttttttttttttt11111\n","tttttfftttttttffffftfffftfftttttttttt111tttt1111111tttt111111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffffttt1tt111111111tfffffftttt1111111111111111ttftttftttttttt11111tttt\nttttttttttttttttfffffftttfffffffLLLftt1tttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttffffffLLffffttttttttttt1tffffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1tffffftttffftt11t111tt111ttfffLLffttfft1tt111tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffttttftttffffffftt1111tftt1111tffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLftffttttfLLffftfftttttftttttttffttttffffffffftt111tftttttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftffttttttiii;::::i1ttttffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffttffLLLLLLLLLftffftfLfttfffLLLfttt11:,,,,,,,:::itttttfffffft11111tft1ttt1tffttt11tfffffLLfLfttt\ntffLffffffLLLLLLLfftfLLftttfLfffLLLLfttt1i::::,,::,,,itt11tfffft111111ffft1tt11tt1tt1ttffLLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttttiiiiii1i;:,,:ttt111ttt11tt111tffttfftt1ttfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLftttti;iiii111i;:,iftftt11ttt11111tffftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttfttfLLfffLfttt1;;;ii;iiii;::1ffttt1tffft11111ffttfffttt11ttttttttfLfftftttt\nttffffffffftttffffffffftfffttffftfftttt1;;i1i;;iii;:itft11tttttfttt111tt1tffttffttfffffLLftfftfffffL\nttffffffffftttffffffffttttttttttffftttt1;;iiii111iii1t111tfft1tttt111111t1ttttfftttfffffLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttffftttti;;iiiiiiiii1111ttfffft11111111tffttttttt11tfffffLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111ttfftttt1;;;iiii;;itt11tffffffft1111111tttt111tftt11tttfffffftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfftttt1i;;;;ii;;it1111tftfffft11t1111ttt111t1tfftt11111ttfftfLffftt\ntfttfffffttt1ttfffftttffftttfft11tft111i;;;;;ii;;i111111tttft111tt1111ttt11tt1tffffftttttt11ttttffft\nttttfffffftttffftfft11tfffttfttt11i;;:ii;;;;iiiii1;11tt111t11111tt1111tt111tft1tffffttfffftt11tffLLf\n1tttffffft11ttfffft1111tfttftii;:,....;1i;;;;ii111,,:;i1tt11tt11111111111t11tt1tffft1tfffffft1fLffLf\ntftttffttttt11ttt11ttt1111i;:,.......,i1tiiii;;11i,,,..,:;i1t1t111t1111111111t1tfftttttfffftt1tfffLf\ntfftttttttffttt111ttttt1i:...........,ii111iii11i:.,,......,:;1t111111111tttt111ttfLftttfftttttttfft\nttttttttttttttt11tttt11t;..............,::;;i1ti:,............,1t1111111tttffttttffLfffttttffffttttt\ntfffttttfftfttt11tttttt1,...............:;:;;;;;:..............;tt111111tttffftttffffffftttttttffttf\ntfffttttfffffft11tttttt1................,;;;;;;;:..............:t11111111ttffttttffLLfLfttfffffffttf\ntfffttttfttftt111tttttti............... .:;;;;;:,..............:1111111111tttttttffLLfLfttfffffffttf\ntffft1ttttttft111tttttt;............. .:;;;;;;:::..............:111tt11tt111ttt1tfffLLLfttfffftffttf\ntttttttttttttt111ttttt1,..............:;i;;i;::::..............:1ttt1111tt11tff1tffffffftttfftfffttt\nttttttttttt1tt111ttttt;..............:;;;;;i:::::..............;1111111111111tt11tttttftt1tttttffttt\nttttt1tttttttt11tttttt:..............:;;;::;:::::..............;t1111111111111t11ttttttt11tttttffttt\n1tttt1tttttttt11ttttt1,........... .,,:,...,:::::..............,11i;;i111tttt1111ttttttt111ttttffttt\n11tt11ttttttt1111tttt;............,..... ...,::::...............:i;:;;i1ttttt11111tttttt111ttttttt1t\n11111111t1tt111111111,............,.........,::::,..............,:::;ii1tt111111111111111111111tt111\n111111111111111111111,............ .........,,,::,..............::::;i11tt11111111111111111111111111\n1111111111111111111111:....... .............,,:,,..............,::::i111t11111111111111111111111111\n11111111111111111111111:....,,,,.............,:::,,..................,1t1111111111111111111111111111\n111111111111111111111111iiii11t; .............,:,..,........ ..:1tttttt11111111111111111111111\n111111111111111111111111111111t:...............:,,,:,,......,,,,,:;;1tttttttt1t111tt1111111tttt11111\n111111111111111111111111111111t: .............::;ii;::,.....,i111ttttttttttttttt11ttt111111tttt11111\n111111111111111111111111111111t:..............:;;iiii;:,.....,i1ttttttttttttttttttttttttttttttt11111\n","tttttfttttttttffffffffffffftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffffttt1tt111111t11tfffffftttt1111111111111111ttftttftttttttt111111ttt\nttttttttttttttttffffLftttfffffffLLLfttttttttt111tfffffffftttttttt11111tttttffffftffLfttttttt11111ttt\nttttttttttttttttfffffttffffffLLffffttt1ttttttt1tffffffffffttttttt11111tfffffffLffttfffffttt1111ttttt\nttttttttttttffffttfffttfffffffffttfftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfLftttttttfffft1ttfffffttffftt11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffttttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftfftttttfftffffffftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftttttt1iii::;i1ttttfffffffffftt1111t11ttttttttttttttffffffffffttt\nttttfttfLLLLLLLLLLfftfftfLfttfffLLLfttt11:,::,,,,,:;1tttttfffffftt1111tft1ttt1tffttt11tfffffLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLffttt1;:,,,,,,,,,;ttt11tfffft111111ffft1tt11ttttt1ttffLLLLLLLLfff\ntfffffttttfLLLffttttfffffttLLLLfLLLftttt1iiiiiiii;:,,iftt111ttt11tt111tffttfftt11tfftttffLLLLLLLLffL\nttttftttttffLftttttttttttttfLLLffLLfttt1i;iii1111i:,:1ftfft11ttt111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLfffLfttt1;;;i;iii1i:,;tffttt1tffft11111tfttfffttt11ttttttttfLLftfttft\nttffffffffftttffffffffftffftttfffffttt11;;;ii;;iii::1fft11tttttfttt111tt1tffttffttfffffLLffffffffffL\nttffffffffftttffffffffttttttttttfffttt1i;;iiiii11i;itt111tfft1tttt111111t1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttfffttt1i;;iiiiiiiii1111ttfffft11t11111tffttttttt11ttffffLfftttfLLLLL\nttttttttfffttfffttttt1ttfft1111ttffttt1i;;;iiii;;;1t11tffffffft1111111ttttt1ttfft11ttffffLfftfLLLLLf\ntfttttttttttttttttt11tfffftttt11tfftt111;;iiiii;;;1111ttftfffft11t1111tttt1tt1tffttt1111ttfftfLffftt\ntfttfffffttt1ttftfftttffftttfft11tft1i1i;;;;iii;;;111111tttft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfftttfttt11i;;;1;;;;;iiii;i1t11t111t11111tt1111tt111tft1fffffttfffftt11tffLLf\n1t1tffffft11ttffttt1111tftttti;:,,...:1i;;;;iiii1i:;i1ttt111tt11111111111t11tt1tffft1tffffffttfLffLf\ntftttfftt11t11ttt11ttt111i;:,,.......:11ii;;ii;11i,.,,:;11tt11tt11t1111111111t1tffttttffffftt1tfffLf\ntffttttttttftt1111ttttt1:............:1111iiii1ti;,,....,,;i1tttt11111111tttt111ttfLffttfftttttttfft\nttttttttttttttt111ttt1t;...............,:;;i1tt1;,..........,itttt111111tttttttttffLfffttttffffttttf\ntfffttttfftfttt11ttttt1,................:::::;i;:,...........,1ttt111111ttttfftttffffffftttttttffttf\ntffft1ttffffff111ttttti.................,;;;;;;;:,...........,1t111111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttttti................,,;;;;;;::,............it1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt;.............:;iii;;:;;:::,............it1111111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttti,............,;;iiii::;::::,...........,1ttttt111ttt11tft1tfffffLftttfftfffttt\nttttt1tttt11tt111ttt1:.............:;;;iii;::::::............,1tttt1111111111tt1tttfttftt1tttttffttt\nttttt1tttttttt11tttti..............,;;;;:,,:::,,:............:tt11t11111111111t11ttttttt11tttttffttt\n1tttt1tttttttt11tttt:............. ,::,. .::,,,:........... :t1111111t111ttt1111ttttttt111ttttffttt\n11tt11tttttt111111ti.......................,:::::.............it111t11111tttt1111tttttt1111ttttttt1t\n1111111111111111111,.............,.........,:::::.............:1t11ii;:;11111111111111111111111tt111\n1111111111111111111:........................,,:::..............;ii;:;:;ii111111111111111111111111111\n11111111111111111111:....... ..............,,,:,...............,:::::;i1111111111111111111111111111\n111111111111111111111:......,,..............,,,:,...............:::;::;i11t1111111111111111111111111\n1111111111111111111111iiiiii1;...............,,,,.,..............,::::;11111111111111111111111111111\n11111111111111111111111111111;................,,:,,,...... .it1111111111111111111111111111\n1111111111111111111111111111t;...............;i;;;::,.....,,.....,,,;i1ttttttttt11tt111111ttttt11111\n1111111111111111111111111111t;...............:i;;i;::,....:i111111tttttttttttttttttttttttttttttt1111\n","tttttfttttttttffffftfffftfftttttttttt111tttt1111111ttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfttttttttttttttttffLLftfffffffftttt1t1111111t11tfffffftttt1111111111111111ttftttftttttttt111111ttt\nttttttttttttttttffffLftttfffffffLLfftt1tttttt111tfffffffftttttttt11111tttttffffftffLfttttttt11111ttt\nttttttttttttttttfffffttffffffLLLfffttt1ttttttt1tffffffffffttttttt11111tfffffffLffttfffffttt1111ttttt\nttttttttttttffffttfffttffffffffftttftttttt11ttt1ttfffffftttttt11tt111111ttffffLLLfttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttfffttttt1tfffft1ttfffffttfffft11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLftttttttfffffftttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftffttttt111i;iitfftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftttt1;:,::,,,:;ittttffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttfffLLLftt1i:,,,,,,,,,,:1tttttfffffftt1111tft1ttt1tffttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLftt1i;;;;;;;i;:,:tftt11tfffft11111tffft1tt11ttttt1ttfffLLLLLLLfff\ntfffffttttfLLLffttttfffffttLLLLfLLLft1;iiiii11111i::tffft11tttt11t111tfffttfftt1ttfftttffLLLLLLLLffL\ntttfftttttffLftttttttttttttfLLLffLLftt11;;;iiiiiii:;tffffft11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttLLfffLft11i;;;;i;;iii;tffffttt1tffft11111tfttfffttt1tttttttttfLLftffttt\nttffffffffftttffffffffftffffttfftfttt11i;;;i1iii1iitffft11tttttfft1111tt1tffttffttfffffLLfffftfLffLL\nttffffffffftttffffffffttttttttttffftt11i;;;iii111ii1tt111tfft1ttft111111t1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt111ttffftttti;;;;iiiiii11111ttfffft11t11111tfftttttttt1tfffffLLftttfLLLLf\nttttttttfffttfffttttt1ttfft1111ttffttt1i;;;iiii;;itt11tffffffft1111111ttttt1ttfft11ttffffLfftfLLLLLf\ntftttttttttttt1tttt11tfffft1tt11tfft111;;;;;iii;;it111ttfffffft11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttffffftt11ttftfftttffftttfft11tti;;1;;;:;iii::i111111ttfft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfftttft1i;:,..,1i;;;;iii;i;:;;1t111t11111tt1111tt111tft1fffffttfffftt11tffLLf\n1tttffffft11ttffftt1111tt1ii:,,......,i1i;;;ii;11;...,:;i111tt11111111111t11tf1tfffttfffffffttfLffLf\ntfttttftt11t11ttt11ttt11;,,..........,11t1iiii1t1:,,.....,:i111111t1111111111t1tffttttffffttt1tfffLf\ntffttttttttfttt111ttttti,.............:;;iii11t1i,,.........,ittt11111111tttt11tttfLffttffttttttffft\nttttttttttttttt111tttt1:................:;;;;;i;:,...........:ttt1111111tttffttttffLLffttttffftttttf\ntfffttttftttttt11ttttti.................,;;;ii;;:............,1ttt11111ttttffftttffffffttttttttffttf\ntffft1ttfffftf111ttttti..................:;;;i;;:,...........,1tt11111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttttt;..................,;;;;;::,...........,1t1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt;...........,,.....,;;:;:::............,111111111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttti,........,;ii:......:;:::::............,ittttt111ttt11tft1tfffffLftttfftfffttt\nttttt1tttt111t111tttt;........:;;;;:,.....,;:::::.............ittttt1111t1111tt1ttfttttttttttttffttt\nttttt1tttttttt11tttt1,.......,:::;;;,......::::::.............;tt1t1111111ttt1tttfttttttt1tttttffttt\n1tttt1tttttttt11tttti.........,:::;:.......,:::::..........,,:;1t11111111ttff1111ttttttt111ttttffttt\n111111tttttt111111t1,..........,:::........,:::::..........,:;;i1111t111ttttt11111ttttt1111ttttttt1t\n1111111111111111111;............,,.........,::::,.........,:;;;i1111111111111111111111111111111tt111\n11111111111111111111:.......................,:::,.. ......,:;;ii111111111111111111111111111111111111\n111111111111111111111:.......,..............,:::,..........,::i11t1111111111111111111111111111111111\n1111111111111111111111:,,..,, ..............,,,::,............,1111111111111111111111111111111111111\n1111111111111111111111111i11:...............,..,:,,..... ..:1t11111111111111111111111111111111111\n111111111111111111111111111;................,::::,,.....::::;i11tttt111111t1111111111111111111111111\n111111111111111111111111111,.................ii;;::,....:1tttt1ttttttttttttttttt11tt111111ttttt11111\n1111111111111111111111111ti..................;i;;;:,.....;t1ttttttttttttttttttttt1ttttttttttttt11111\n","ttffftfffttttttttftttfffttftttttttttt111tttt111111tttttttt111tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLLftfffffffftttt1t111t111t11tfffffftttt111111111111111tttftttfttttttttt1111tttt\nttttttttttttttttffffLftttfffffffLLffttttttttt111tfffffffftttttttt11111ttttfffffftfLLfttttttt111tttt1\nttttttttttttttftfffffttffffffLLffffttttttttttt1tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttffffttfffttffffffffftttfttttt1111tt1ttffffffttttt1111tt11111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttffftttt11tttffttttfffffttfffft11t111tt111ttfffLLftttftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLftt11ii;i;;ii1tttffttffffffftt1111tftt111ttffLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfLLffftfftt1:,,,,,,,,:iftttfffffffffftt111tft1tttttttfLLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftff1i;;:,,,,,,,,:;ttttfffffffffftt1111t11ttttttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttfffLLLt;,,:;;;;;iiii:ittttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLLffLLLfi,:iiii111111;1ffftt11tfffft11111tffftt1t1tttttt1ttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttLLLLfffffi:;;;;;iiiiiiitffffft11tttt11t111tfffttffft1ttfftttffLLLLLLLLffL\ntttfftttttfffftttttttttttttfLLLffLLti;;;;;i;;iiii1ftffffftt11tt1111111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLfffLtii;;;ii;;i1111tfffffttt1tffft11111tfttffftttttttttttttfLLfffffft\nttffffffffftttffffffffftffffttfftftt1ii;;;;;;iii11ttffft11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffftttffffffffttttttttttffftt11i;;;;;i111111tt111tfft1ttft11111tt1ttttfftttffffLLLfttfLLLLLL\ntttffffffffttfffffffftt1ttt1111tfffttti;;;;;;iiiii11111ttfffft11t11111tfftttttttt1ttfffLLLftttfLLLLf\nttttttttfffttfffttttt1ttfft11111tfft11i;;;:;;ii;;itt11ttfffffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntftttttttttttt1tttt11ttffft1tt11ttti::i;;;:;iii;;;i;i1ttftfffft1tt1111tttt1tt1tffftt1111tffftfLffftt\ntfttffffftt11ttftfft1tffftttff1i;:,...;1;;;;;i;:;i,..,:;i1tft111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffftttt11tfft11i;:,......,11;iii;;iii,,,....,:;i1111t1111tt111tft1fffffttfffftt11tffLLf\n1tttffffft11ttffftt1111t1;;,..........,i1t11ii11i:.,........,111111111111t11tt1tfffttfffffffttfLffLf\ntfttttftt11t11ttt11ttt11:..............;iiiiiii11,,,......,,,itt11t1111111111t1tffttttffffftt1tfffLf\ntffttttttttfttt111ttttt;................,;;;i;;ii,...........;ttt11111111ttt111tttfLffttfft1ttttffft\nttttttttttttttt111ttt11:.................:;;;i;::............;ttt1111111tttftttttffLLffttttffffttttf\ntfffttttftttttt11ttttt1,.................,;;;;;;:............:ttttt11111tttffftttffffffftttttttffttf\ntffft1ttfffftf111ttttt1,..................:;;;:::............:1tt11111111ttffttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttti...................,;;::::............,111111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttttt:...................,::::::,:::,.......,1t1t11111tt111tttttfffLLLfttfffftffttf\nttttt1tttttttt111tttt1,....................,::::::;;;ii:......ittt11111ttt1ttff1tfffffLftttfftfffttt\nttttt1ttttt11t111tttti.....................,:::::,;;;ii;,.....itttt1111tt111tttttttttttttttttttffttt\nttttt1tttttttt11ttttt;........ .............:::::,;;;ii;,.....:1t1t1111111tttttttfttttttt1tttttffttt\n1tttt1tttttttt11ttttt:.... :i;:.............:::::..,;;i:.......it11111111ttff1111tfttttt11tttttffttt\n11tt11tttttt1111111t1,...,;iiii;, ..........::::,. .,:,......;111111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111i..,.,;;;iii;...........:::::.......,....itt1111111111111111111111111111111tt111\n11t111111111111111111;....::;;ii;...........::::,..........,;111111111111111111111111111111111111111\n1111111111111111111111, ...,:;;;,............,,:,.....,,:;11tt11111111111111111111111111111111111111\n1111111111111111111111i:,....... ............,,:,.....:1tttttt11111111111111111111111111111111111111\n1111111111111111111111111;.,. ..............;;;:,,....,it11ttt11111111111t11111111111111111111111111\n111111111111111111111111i,..................;ii;:,.....,1t1ttttt1111111111t1111111111111111111111111\n111111111111111111111111:...................;ii;;:......;ttttttttttt11tttt1t111111tt11111111ttt11111\n111111111111111111111111:...................:i;:;;,.....:t1tttttttttttttttttttttt1tttttttttttttt1111\n","ttffftfffttttttttttttfffttftt111ttttt111tttt111111ttttttttt11tttt111111ttttttttttttttttttttt111111tt\nttfftttttttttttttttffLLftfffffffftttt111111111t11tffffffttttt11111111111111tttftttfttttttttt1111tttt\nttttttttttttttttffffLftttfffffffLLfft111ttttt111tfffffffftttttttt11111ttttfffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttffffffLLLfffttt1ttttttt1tffffffffffttttttt1111ttffffffLffttffffffttt1111tttt1\nttttttttttttfffftttffttffffffffftttftt1t1iii11111tfffffftttttt11tt111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttffft11i:,,,::::;1tfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffftfft1;:,,,,,,,,,:tttttttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfftt1::,,,,,:::::;itfttttffffffffftt111tft1ttfttttfLLfttttfffffftttttt\ntttttttfLLLLLLLLLLfttttffftffffttf1,,,,:;iii1111itftttfffffffffftt1111t11ttffttttttttttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttffffft:,,,:;iii111ii1tttttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfLLftttfLfffLft:,,:;;;;iiiiii1tffftt11tfffft111111ffftt1t1tttttttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttfLLfffft;:::;;;iii;iii1tffffft11tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttfftttttfffftttttttttttttfLLLffffti;;;i;;iii;iitfffffffft1tttt1t1111tfftfffftttttttttttfLLLLffffff\nttfLffffffftttfffffffffttffttfLftfft1i;;;;;iiiii11ffffftttt1tffft11111tfttffftttttttttttttfLLffffftt\nttffffffffftttfffffffftttfftttftttttt1;;;;;iiiii11ttffft11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffftttffffffffttttttttttfftt11i;;;;;;ii1111ttt111tfft1ttft11111tt1ttttfftttffffLLLfttffLLLLL\ntttffffffffttfffffffft11ttt1111ttff1;i;;;;;;;ii;iiii111ttfffft11t11111tfftttttttt1tffffLLLftttfLLLLf\nttttttttfffttffftt1tt1tttft1111tt1;,.:i;;;;;iii::;;,,:;i1tfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntfttttttttttttttttt11ttffft1tti;:,...,ii;;;;ii;::;;.....,:itftt1tt1111tttt1tt1tffftt1111tffftfLffftt\ntfttffffftt11ttftfft1tttft1i;:,.......:11iiii;;;:;:,,,,,,..;t111tt1111ttt11tf1tffffftttttttttttttfft\n111tfffffftttffttttt11tti;:,..........,1tt1ii11i;;,,.,.,,,,,1111t11111tt111tft1tffffttfffftt11tffLLf\n1tttffffft11ttttttt1111;...............:11iiii;;1;.,.,,.,..,1t11111111111t11tf1tfffttfffffffttfLffLf\ntfttttftt11t11ttt111tt1,................,;;;ii;i1:.........,111t1111111111111t1tffttttffffftt1tfffLf\ntffttttttttftt11111ttt;..................:;;;;:;i:..........itttt11111111ttt111tttfLffttfft1tttttfft\ntttttttttttttt1111ttt1:..................,;;;;:::,..,.......;tttt1111111tttffttttffLLffttttffftttttf\ntfffttttftttttt11tttt;....................:;;::::,,.........:ttttt111111ttttfftttffffffftttttttffttf\ntffft1ttfftttt111tttt:....................,;:::,:;;;;:,.....:1ttt11111111ttffttttffLLfLfttfffffffttf\ntffft1ttfttttt111ttt1,.....................:::,,::;iii;,.....itt1111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt111ttt;......................,::,,::;;;i;,.....:111111111tt111tttttfffLLLfttfffftffttf\nttttt11ttttttt111tt1:......................,:,..:,:;;i;.......:tttt1111ttt1ttffttffffffftttfftfffttt\nttttt1ttttt111111tt1:......................,:,..:. .:;:......,itttt1111tt111ttttttfttffft1tftttffttt\nttttt1tttttttt111tt1:........... .........,,,.,:...........,1tt11tt111111ttt1ttttffftttt1tftttffttt\nttttt1tttttttt11ttti,......... .,..........,,,.,:..........,it11111111111ttft1111ttttttt11tttttffttt\n11tt11ttttt111111tt:..........,::;,........,,,.,:......,:i11t11111111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111:........:;;ii;.........,,.,,.....i1ttt11t11t111111111111111111111111111111tt111\n1111111111111111111ti........,:;;i;,...........,,.....;t11111111111111111111111111111111111111111111\n11111111111111111111ti;,......,:;;;. ......,:,.,:.....,1t1t11111111111111111111111111111111111111111\n11111111111111111111111;........,,,........:;::,,......;t1tttt11111111111111111111111111111111111111\n1111111111111111111111i......... ........:;;::,......,1ttttt11111111111t11111111111111111111111111\n1111111111111111111111:........ ...........:;;;::.......it1ttttt1111111111t1111111111111111111111111\n111111111111111111111i,........,......... ,ii;;::,......:ttttttttttt11ttt1tt11t111tt111111t1tttt1111\n11111111111111111111t;.........,..........:iiii;::,.....,1ttttttttttttttt1ttt1ttt1tttttttttttttt1111\n","ttttftfffttttttttttttfffttttt111ttttt111tttt111111ttttttttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLLftffftfffftttt111111111t11tffffffttttt11111111111111tttftttfttttttttt1111tttt\nttttttttttttttttfffffftttfffffffLLLft111tttttt11tfffffffftttttttt11111ttttfffffftfLLfttttttt111ttttt\nttttttttttttttttfffffttfffffffffffft11111;:::;;i1tffffffffttttttt1111ttffffffLffttffffffttt1111tttt1\nttttttttttttfffftttffttffffffffftttft1;::,,,,,,,,ifffffftttttt11tt111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLfttttffLLLfftttttff1;:,,,,,,,,,,:itfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLLfttfffttt1:,,,,:::;;i;;1tttftttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfftt;,,,,,:;ii11t11tfttttffffffffftt111tft1ttfttttfLLfttttfffffftttttt\ntttttttfLLLLLLLLLLfttttffffffffttt;,,,,:;;;iii1111ttttfffffffffftt1111t11ttffttttttt1ttffffffffffttt\ntttffftfLLLLLLLLLLfttfftfffttttfft:,,,,:;;;iiiiii1tttttttffffffftt1111tft1ttt1tftttt11tffffLLLLLfttt\nttffffffffLLLLLLLfftfffftttfLftfLfi;;;;;;;iii1iii1tffftt11tfffft111111ffftt1t1tttttttttfffLLLLLLffff\ntfffffttttfLLLffttttfffffttfLLftfffi;;;i;;;;iiiii1fffffft11tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttfftttttffffttttttttttttttffftffft;;;;;;;;iiii1tttfffffft1tttt1t1111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttftttffftfft1;;;;;;;;iii1ttfffffttt1tffft11111tfttfLftttttttttttttfLLftffftt\nttffffffffftttfffffffftttfftttftttt1i;;;;;;;;ii111tffftt11tttttfftt111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tt1111ttt1::i;;;;;;;i1i;i111ttt11tfft1ttft11111tt1ttttfftttffffLLLfttffLLLLL\ntttffffffffttffffffftt111tt111i;:,..;i;;i;iii11;;;;,::;1tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\nttttttttfffttffttttt111ttt1;:,......,ii;;iii;11;:;;,...,:1fffft1111111ttftt1ttfft11ttffffffftfLLLLLf\ntftttttttttttt11tt111tt1;:,..........;11iii;1t1;:;;,,,,,.:tfttt1tt1111tttt1tt1tffftt1111ttfftfLffftt\ntfttffffftt11tttttt111:..............:1tt1ii11i::;:,,,,,,,if1111tt1111ttt11tf1tfffffttttttttttttffft\n111tfffffft1tfftttt11;................:ii;;i;:,,;;,.,,.,..it1111111111tt111tft1tffffttfffftt1ttffLLf\n1tttffffft111tttttt1i,............,....:;;;;;;:,1i,..,,,..;ttt11111111111t11tt1tfffttfffffffttfLfLLL\ntfttttftt1t111ttt111;..................,;;;;;:,:1i,.......it111t11t1111111111t1tffttttffffftt1tffLLf\ntffttttttttft1111111,...................:;;;::,,;;,.......it1tttt11111111ttt111tttfLffttfft1tttttfft\ntttttttttttttt1111t;....................,;;:::,.:,..,.....:tttttt1111111tttffttttffLLffttttffffttttf\ntfffttttfttttt111t1,.....................;;:::..:,........,1tttttt111111ttttfftttffffffftttttttffttf\ntffft1ttfftttt111ti......................::::,..:,.....,:::i1ttt111111111ttffttttffLLfLfttfffffffttf\nttfft1tttttttt111t:......................,:::,..:,....,:;iiiitt11111111111tttttttffLLfLfttfffffffttf\ntffft1tttttttt1111;.......................,:,...:,....:;;iiii1111111111tt111tftttfffLLLfttfffftffttf\nttttt11ttttttt111t;...................,,,,,,,...,......,;;ii1111ttt1111ttt1tfffttffffffftttfftfffttt\nttttt11tt11111111i,.................,::::::,....:........,,:i1111tt1111tt111ttttttfffffft1tftttffttt\nttttt11ttttttt11t;.................,:;;;;;;,....:.... .. .,1t11ttt1111111ttt1ttttffffttt1tftttffttt\nttttt11ttttttt1111:................,::::;i:.....:.,..,,,:;i11tttt111111111tft1111ttttttt11tttttffttt\n111tt11ttt1111111t1:. ............::::;:.....,:....it11111tt1tt1111111ttttt1111ttttttt111ttttttt1t\n11111111111111111111i:,..............,,,,......,:....:1tt111111t1111111111111111111111111111111tt111\n11111111111111111111t11:........,.... . ..,....:.....it1t111t11111111111111111111111111111111111111\n11111111111111111111111:,..................:....:.....:1ttt11t11t11111111111111111111111111111111111\n1111111111111111111111i,...................:....:......it1ttttt1tt11111111111t1111111111111111111111\n1111111111111111111111;....................,,..,:,.....:tttttttt111111111111111111111111111111111111\n1111111111111111111111:.................. .::..,:......,1t1ttttt11t1t11111t1111111111111111111111111\n11111111111111111111ti,.................. ,;::,,:.......itttttttttttt111t1tt11t111tt111tttt1tttt1111\n11111111111111111111t;....................,;;;:,:.......:tttttttttttttttt1ttt1ttt1tttttttttttttt1111\n","tttttttttttttttttttttffftttt1111111tt1111tt1111111ttttttttt11tttt1111111ttttttttttttttttttt1111111tt\nttfttttttttttttttttffLfttffttfffttttt1111111111111tffffftttt111111111111111tttffttftttttttt11111tttt\nttttttttttttttttffffLftttfffffffffftt11111iii1i11ffffffffttttttt111111tttttffffftfLLfttttttt111ttttt\nttttttttttttttttffffftttffffffffffttt11;::,,,,,:;1ffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffttttt1;:,,,,,,,,,,:tffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLfttttttft;,,,,,,,,:::,:itfffftttfffft11t111tt111ttfffLLfttfftt1ttt11tttttt\nttttttttffLLLLLLLffttfLLLfttfffttt;,,,,,,:;ii1111tttttttffffffftt1111tftt111tttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffffft1:,,,,,:;iii11111fttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLLLLLLLLLffttttffftfffftt1:,,,,,:;;;iiiii1ftttfffffffffftt1111t11ttffttttttt1ttffffffffffttt\ntttffttfLLLLLLLLLLfttfttffftttttft::;;::;;iiiiiii1ttttttttfffffftt1111tft1ttt1tffttt11tffffLLLLLfttt\nttffffffffLLLLLLffftfffttttffftfLfi:;i;;;;;iiiiii1tffftt11tfffft111111ffftt1tt1tt1tttttfffLLLLLLffff\ntffftfttttfLLLfftttttffffttfLLftfff;:;;;;;;;iiiii1tffffftt1tttt11tt111fffttffft1ttfftttffLLLLLLLLffL\ntttttttttttfffttttttttttttttffffffft;;;;;;;;iiii1ttffffffft1ttt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttfffffffffttft1tfffttt1i;;;;;;;;iii1ttfffftttt1tffft11111tfttffftttttttttttttfLLfffffft\nttffffffffftttfffffffftttffttttti::i;;;i;;;;ii1111tttttt11tttttfftt111tt1tffttffttfffffLLffffffLLfLL\nttffffffffttttfffffffft1ttt11i;:,.,ii;;iiiii11:i1111tt111tfft1ttft11111tt1ttttffttttfffLLLfttfLLLLLL\ntttffffffffttffffffftt111i;:,......:11;;iiiii1::;;;::;i1ttffft11t11111tfftttttttt1ttffffLfftttLLLLLf\nttttttttfffttfttt1111ii;:,.........,it1iii;;1ti::;;,..,:1tfffft1111111ttttt11tfft11ttffffffftfLLLLLf\ntfttttttttt1tt111111;,..............;1111ii1ti:;:;;,,,,.:tffftt11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttfffftt1111ttttti,................:;;;i;;;,,:;;:,,,,,,itt1111tt1111ttt11tf1tffffftttttt1tttttffft\n111tfffffft1ttttttt:..........,,......:;;;;;;,.,i;,,,,,,.;t111111111111t111tft1tffffttfffftt1ttffLLf\n111ttfffft111ttttt1,............,.....,;;;;;:,.:1i,......;11t111111111111t11tt1tfffttfffffffttfLfLLL\ntttt1tftt11111tt11;....................:;;;;:,.:1i,......:tt11111111111111111t1tffttttffffftt1tffLLf\nttft11ttttttt1111i,....................,:;:;:.,,;:,......:111tttt11111111tttt11tttfLffttfft1tttttfft\ntttttt1ttttttt111;......................,;:;:..,:,.......:11tttttt111111tttffttttffLLffttttffffttttf\ntffft11ttttttt11i,.......................:::,..,:,.......,1tttttttt11111ttttfftttffffffftttftttffttf\ntffft11ttttttt11;........................,:::,..:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt11;......................,:;;;;;;,:,........,111tt1111111111tttttttffLLfLfttfffffffttf\ntfttt11ttttttt11i.....................:::;;;;;:.:,....... ,1t11111111111t111tftttfffLLLfttfffftffttf\ntttt111ttttttt11:....................,:::;;;;;.,:,..........,:;iii11111ttt11tffttffffffftttfftfffttt\nttttt11tt1111111,....................,:::;;;;,.,:.......... .::;;;;ii11111ttftttftfffft1tftttffttt\nttttt11ttttttt11i................. ....,,,,.....:.... ........,:::;;;;ii111tt1tttfffffttt1tftttffttt\nttttt11ttttttt11ti,. .........,... .. ....,..:,.. ....,:::;;;iii1ttt1111ttttttt11tttttffttt\n11111111ttt111111t1ii;;;,.......................:..,.:1;:,,.. ..,;i1i1t1ttt1111ttttttt111ttttttt1t\n1111111111111111111ttttt:,......................:.. ,tttt111i;;;;i1tt1111111111111111111111111tt111\n111111111111111111111111:,..................,...:.....it1t1ttttttttt11111111111111111111111111111111\n111111111111111111111111;,..................,...:.... ;tttt11t11t11111111111111111111111111111111111\n111111111111111111111111:...................,..,:.....:ttttttttttt1111111111111111111111111111111111\n11111111111111111111111i,...................:,.,:.....,1ttttttttt11111111111111111111111111111111111\n11111111111111111111111;...................,::..:.....,1ttttttttt1t11t1111t1111111111111111111111111\n11111111111111111111111:.................. :;:,,:......itttttttttttttt111ttt11t1111t111t1ttttttt1111\n111111111111111111111t1:.................. :;;:::......;ttttttttttttttttt1ttt1ttt11ttttttttttttt1111\n","tttftttttttttttttttttffftttt1111111tt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfftttffttttt111111111111ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft111tt111111ttffffffttttttttt11111tttttffffftfLLftttttt11111ttt1\nttttttttttttttttffffftttffffffLffftt111i;;:::::;1tffffffffttttttt11111tfffffffLfftfffffftttt111ttttt\nttttttttttttfffftttffttffffffffttttt1i;,,,,,,,,,,;fffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttti:,,,,,,,,,,,,;tfffftttfffft11t111tt111tttffLLfttfftt1tt111tttttt\nttttttttffLLLLLLLffttfLLffttfffttti,,,,,,:;;;ii;itttttttffffffftt1111tftt1tttttfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffffft1:,,,,::;i111tt1tfttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLfLLLLLLLLfttttffftfffftti,,,,,,:;;iiii1i1ftttfffffffffft11111t11ttftttttttttttfffffLLfLfttt\ntttffttfLLLLLLLLLLfttfttffftttttf1,,::,:;iiiiiiii1ttttttttfffffftt1111tft1ttt1ttfttt11tffffLLLLLfttt\nttfffftfffLLLLLfffftfffttttffftfLf;:ii;;;;iii11ii1tfffft11tfffft111111ffft11t1ttt1tt1tffffLLLLLLLfff\ntffftfttttfLLLfttttttffffttfLLftff1:;ii;;;;iiiiii1ffffftt11tttt1ttt111fffttfffttttfft1tffLLLLLLLLffL\ntttttttttttfffttttttttttttttfffffff1;;;;;;;iiiii1tffffffftt1ttt1111111tfftfffftttttttttttfLLLLffffff\nttffffffffftttffffffffftttt1tffftft1i;;;;;;;iiii1ttfffffttt1tffft11111tfttfffttt1tttttttttfLLftfffft\nttffffffffttttfffffffft1tftt1tft1;ii;;;;;;;;ii1111ttftft11tttttfft1111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tttt1ii;,.:i;;;i;iii111t111ttt111tffttttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffftfttt111ii;:,....,i1;;iiiii1i:;;;i11111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\ntttttttttffttfttt1111ii;:,.........;11iiii;;11;::;;,:;1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntft1ttttttt1t1111111:,.............:1tt1iii1t1;;:;:,,.,:1tffftt11t1111ttt11tt1tffftt1111ttfftfLLfftt\ntttttffttt1111ttttt;................:iiiiii11,:;:;:,,,,.:tttt111tt1111ttt11tf1tffffftttttt1ttttttfft\n1tttfffffft1tftttt1,.................,;;;;:;:.,:i:,,,,,,,it11111111111tt111tft1tffffttfffftt11tffLLf\n111ttfffft111ttttti...................:;;;;;:,,:1;.......;t1tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt11111ttt1:...................,;:;;;:..;1;.......:tt111t11t1111111111t1tffttttffffftt11ffLLf\nttft1111ttttt1111;.....................:;:;;,..,;:.......,111tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt111,.....................,::;;,..,:,.......,1ttttttt111111tttffttttffLLffttttffffttttf\ntfftt11ttttttt11;.......................:::;,..,:,........itttttttt1111tttttfftttffffffftttftttffttf\nttfft11ttttttt11,.......................,;;;;:,,:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt1i,.....................,::;i;;;,,:.........:111tt1111111111tttttttffLLfLfttfffffffttf\nttttt11ttttttt1i.....................,:::;i;i:.,:,........,1t1111t111111t111ttfttffLLLLfttfffttffttf\ntttt111ttt11t11;.....................,:::;;;;,.,:..........1tt111tt11111ttt1tffttffffffftttffftffttt\nttttt11t1111111:......................:::::,...,:..........:i1tttt1tt111t1111tttttfttffft1tttttffttt\nttttt11tttt11t1i.......................... ....,,.......... .,,:i11iii11111tt1t1ttffffttt1ttttttfttt\nttttt11tttttt111;... ......................,:............ .,:::;iiii1111111tfttttt11ttttttfttt\n11111111t1111111t1i;;::::......................,:..,:.. .......,::;;;;;;iii11111tttttt111ttttttt1t\n11111111111111111ttttttt1,.....................,:......:,.. ..,:;;;:;;;iiii11111111111111111tt111\n111111111111111111111111i,.................,::..,.... ,tt1ii;,,.. ..,:i;;iii111111111111111111111111\n111111111111111111111111i,.................,;:,,,......1tttttt11i;;::itt11t1111111111111111111111111\n111111111111111111111111i,................ ,;:::,......it1t1tttttttttt11tt11t111111111111111111t1111\n111111111111111111111111;................. ,;;::,......it1tttttttt1111111t11111111111111111111111111\n111111111111111111111111:................. .;;:::......;t1ttttttt1ttttt111t1111111111111111111111111\n111111111111111111111111,...................;i;::,.....;tt1ttttttttttt11tttttttt111t111111tttttt1111\n111111111111111111111111:...................:i;:::.....ittttttttttttttttttttt1ttt111tttttttttttt1111\n","tttftttttttttttttttttffftttt1111111tt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfftttffttttt111111111111ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft1111tttt111ttffffffttttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLffftt11111i;iiii1tfffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffttttt11;::,,,,,,::1fffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttf1;:,,,,,,,,,,,itfffftttfffft11t111tt111tttffLLfttfftt1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttt1,,,,,,,::::::itttftttffffffftt1111tftt11t11tfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffLfft1:,,,,,:;ii11111ffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLfLLLLLLLLfttttffftfffftt1:,,,,:;;iii1111fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfttffftttttf1,,,,,:;iiii;iii1ttttttttfffffftt1111ttt1ttt1ttfttt11tfffffLLLLfttt\nttfffftfffLLLLLfffftfffttttffftfLt:;;;:;;iiiiiii11tfffft11tfffft111111ffft1tt1ttt1tt1tfffLLLLLLLffff\ntffftfttttfLLLfttttttffftttfLLftff1;;;i;;;iii1iiitfffffft11tttt1ttt111fffttfffttttfftttffLLLLLLLLffL\ntttttttttttfffttttttttttttttffftfffi;;;;;;iiiiii1tffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttffffffffftttt1tffftffti;;;;;;iiiii1tttffffttt1tffft11111tfttfffttt1tttttttttfLLftfffft\nttffffffffftttfffffffftttftt1tftt111i;;;;;;;;ii111tfftft11tttttfft1111tt1tffttffttfffffLLffffffLffLL\ntttfffffffttttfffffffft1tt111111i::i;;;i;;;;i11t111ttt111tffttttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffftfftt111111i;:,..,ii;;iiiii11:;;;111111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\ntttttttttffttfttt1111111i;:,.......:11;iiii;11;::;;,:i1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1t1111111i;:,...........:1t1iii;itt;;;;:.,,,:itffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\ntttttffftt1111ttttt1:..............,i111ii1tti:;;;:,,,,.,1tft111tt1111ttt11tf1tffffftttttt1ttttttftt\n111tfffffft1tfttttt;.................:;;;;;;;,.:i:.,,,,,.;t11111111111tt111tft1tffffttfffftt11tfffLf\n111ttfffft111ttttt1,..................:;;;;;:,.:1;.....,.:11tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt111111tt11,..................,;;;;;:,.;1;.......,1t111t11t1111111111tttffttttffffftt11fffLf\ntttt111tttttt11111;....................::;;;,..,;:.......,i11tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt111i.....................,::;;,..,:.........ittttttt111111tttffttttffLLffttttffffttttf\ntfftt11ttttttt111,......................::::,..,:,........itttttttt11111ttttfftttffffffftttttttffttf\nttfft11ttttttt11;.......................,:::,..,:,........;11tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt11:........................,:,,..,:,........,111tt1111111111tftttttffLLfLfttfffffffttf\nttttt11ttttttt11,.......................,,::,..,:..........it11111t11111t111tttttffLLLLfttffftfffttf\ntttt111tttt1t11i......................::;;;;;:.,:..........;t11tttt11111tt11tffttffffffftttffftffttt\nttttt11tt111111:....................,:::;i;;i,.,:..........;ttttttt1111111111tttttfttffft1tttttffttt\nttttt11ttttttt1;....................,:::;i;;:..,,...........:;iii1111111111tt1t1ttfffttt11ttttttfttt\nttttt11tttttt111:...................,:::;;;;...,,........... .,:;;;:;i1111ttt1111ttttttt11ttttttfttt\n11111111t11t11111;,.. ...............,,,....,:.... .......,:::::;;11tt11111111tt1tt1111ttttttt1t\n11111111111111111t11i;;;:.......,..... ......,,....,,. ...,::;::;i1111111111111111111111111tt111\n11111111111111111111tttti,...................,.,,... :1i:,. .,,;;i1111111111111111111111111111111\n111111111111111111111111i,...................:,,,.....ittt1i:,.. ,1tttt111111111111111111111111t1111\n111111111111111111111111;,...................,,::.... .111tttt1ii1ttt11111111t11111111111111111t1111\n111111111111111111111111;....................,:::......it1t11ttttt1111111111111111111111111111111111\n111111111111111111111111;....................,::,......;t1tttttt11tt1tt111t1111111111111111111111111\n11111111111111111111111t:....................::::......:1111ttttttttttt1tt11ttt11111111111tttttt1111\n11111111111111111111111t:....................:;::,.....,1tttttttttttttttttttttttt111tttttttttttt1111\n","tttftttttttttttttttttffftttttt11ttttt1111tt11111111tttt1ttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfftfffttffttttt111111111t11ttffffftttt1111111111111111ttffttfttttttttt1111tttt\ntttttttttttttttttffffftttffffffffffft1111tttt111tfffffffttttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLfffttt1111ttttt1tffffffffffttttttt11111tfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttftttffffffffttttft1i;:;;;;;i11tfffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLfttttttfft1;:,,,,,,,,:1ttfffftttfffft11t111tt111tttffLLfttffft1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttti::,,,,,,,,,,;ttttftttffffffftt1111tftt11t11tfLLfttt11tffftttttttt\ntttttttfffLLLLLLLLLfttfttttfffffti,,,,::;;;iiiii1ffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttfLLLLLLLLLLftttttfftfffftt1:,,,;iii1111111fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfttffftttttff:,,:;;;iiii1ii1tttttttttfffffftt1111ttt1ttt1ttfttt11tfffffLLLLfttt\nttfffftfffLLLLLfffttfffttttffftfLt;:,:;;;;iiiiii11tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffftfttttfLLffttttttffftttfLLftff1;;;;;iiiii;i11ttfffftt11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLtfffii;;;;;ii;;iittffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttft1tffftffti;;;;;iiiii1ttttffffttt1tffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfttttfttttti;;;;;iiii1111tfftft11ttttffff1111tt1tffttffttfffffLLffffffLffLL\nttffffffffttttfffffffft1tt11111tft11i;;;;;;;iit11111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffftttfffftfftt1111111111i:,;i;;;;;;ii1i;;;111111tfffft11t11111tfftttttttt1tfffffLfftttfLLLLf\nttttt1tttffttfttt11t111tttt1i;:,...:1i;ii;ii;1i:;;i;;i1tftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1tt1111111ttt1;:,,.......;ti;iii;it1;;;;,..,:i1fffft11t1111ttt11tt1tffftt1111ttfftfLffftt\nttttfffftt1111ttttt111;:,...........;tt11iii1t1::;;,,,,,.,1ft111tt1111ttt11tf1tffffftttttt1ttttttftt\n111tfffffft1ttttttt11,..............:i11iii111:,;;,,,,,,,.;t1111t11111tt111tft1tffffttfffftt11tfffLf\n111ttfffft111ttttttt;.................:;;;;;;:.,ii,....,,.:1tt11111111111t11tf1tfffttfffffffttfLfLLf\ntttt1tftt11111ttt111:.................,;;i;;;,.,1i,.......:t111111t1111111111tttffttttffffftt11fffLf\ntttt11ttttttt1111111,..................:;;;;;,,,;;,.......:11tttt11111111tttt11tttfLffttfft1tt1tffft\n1tttt11ttttttt11111i...................,;;;;:,..:,........:1tttttt111111tttffttttfLLLLfttttffffttttf\ntfftt11ttttttt11111:....................:i;;:,.,:,........,1ttttttt1111ttttffftttffffffftttttttffttf\nttfft11ttftttt111ti,.....................;;::,..:,........,i1tttt11111111ttffttttffLLfLfttfffffffttf\ntttft11ttttttt111t;......................,::,...:,.........;11t11111111111ttt1tttffLLLLfttfffffffttf\nttttt11ttttttt111t:......................,::,...:,...,,....it11111111111t111tttttfffLLLfttfffftffttf\ntttt11tttt11tt1111,.......................,,,...:,...,:;;;;itt11ttt1111ttt1ttftttffffffftttffftffttt\nttttt11t111111111i.........................,,...:,...,:;iiii11111t111111t111tttttttttffft1tftttffttt\nttttt11ttttttt111,.........................,,...:....,:;;iii11111111111111ttttt1ttfffttt11ttttttfttt\nttttt11ttttttt111;...................,,,,..,....,......,:;ii1ttt1111111111ttt1111tfttttt11ttttttfttt\n11111111t11t11111t;...............,:::::::..,...:.........,,it11tt1111111tttt1111ttt1tt1111ttttttt1t\n1111111111111111111,.............:::::;;i:......:..... :1ttttt111111111111111111111111111111t111\n11111111111111111111;,.. ........,::::;;:.......,... ,i;;;i1tttt111111111111111111111111111111111111\n11111111111111111111t11i,.........,:::;;. ..,:,.:.....itttttttt1111111t111111111111111111111111t1111\n11111111111111111111111t;...........,,,.... ,:,,:......it1111ttt1111111111111111111111111111111t1111\n111111111111111111111111;.......... .... .:,,:,. ...:tttt11tt111111111111111111111111111111111111\n111111111111111111111111;....................::::..,,..,1tttttttt1tttt1111t1111111111111111111111111\n11111111111111111111111t;....................::::..,,...;t1tttttttttttt1t11ttttt111t111111tttttt1111\n11111111111111111111111ti....................:;::,......:11tttttttttttttttttttttt11t11t1111ttttt1111\n","tttftftttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt1111111tt\nttfftttttttttttttttffLfttfffttffttttt111111111t11tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttfffffftttffffffffffftt11ttttt111tffffffftttttttt11111ttttttffffftfLLfttttttt1111ttt1\nttttttttttttttttffffftttffffffLfffttttt11tttt11tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffftttft1tttt11ttt1ttfffffftttttt111t111111ttffffLLffttfLLft111111ttttt\nttttttttttffLLLLftttttffLLftttttttfft11iiiiiittt1ttfffffttfffft11t111tt111tttffLLfttffft1ttt11tttttt\nttttttttfffLLLLLLffttfLLffttfffttfft;::,,,,,,:itttttffttffffffftt1111tftt11t11tfLLftttt1tffftttttttt\ntttttttfffLLLLLLLLLfttfttttffffft11i:,,,,,,,,:,;fffttttffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttfffttffftt1;:::::;;;iii;:tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfttfLfttttfft;:;iii111111i;1ttttttttffffffftt1111ttt1ttt1ttftt11ttfffffLLLLfttt\nttfffftfffLLLLLLffftfffttttfffffLf;:;;;;ii1iiiii11tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLffftttttffffttfLLffffi:i;;;;;ii;ii11ttffffft11tttt1ttt11tfffttffft1ttfftttffLLLLLLLLffL\ntttttttttttffftttttttttttttfLfftffi;ii;ii;i11111tfffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttftttfLftf1;;;;;;;;i1111tttffffftttttffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfftttftttt1i;;;;;iiii1111ttftft11ttttffff1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffft1ttt1111tfftt1i;;;;iii1tt111ttt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttffffttftt111t11111ttfft1;;;;;;ii1ti;;i11111ttffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\nttttt1tttffttfttt111111tttt11111tti:i;;;;;;iii1;:;i1i1ttftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntfttttttttt1tt11t1111ttfftt1tt1i;:..;i;;;;;iii1i:;;:,,:;i1ffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\ntfttfffftt1111tttttt1tttttt1i;,.....:11;ii;;;iti:;;,,,...,:1t111tt1111ttt11tf1tffffftttttt1tttttfftt\n1t1tfffffft1tttttttt111tti:,....,...,i11iii;i1ti;i,,,,,,,,.,i111t11111tt111tft1tffffttfffftt11tffLLf\n1t1ttfffft111tttttt1111:,...........,i1t1iii11i,;1,....,,...;t11111111111t11tf1tfffttfffffffttfLLLLf\ntftt1tftt1tt11ttt111tt;..............,:;i;;;;;,.i1,.........:11111t1111111111tttffttttffffftt1tffLLf\ntfftttttttttt111111ttt:................,;;i;;:,,:;,.........:tttt11111111tttt11tttfLffttfft1tt1tffft\ntttttt1ttttttt1111ttti,................,:;;;;:,.,:..........,ttttt111111tttffttttfLLLLfttttffffttttf\ntffft11ttttttt1111ttt;..................,;;;::,.,,..........,1tttt111111tttffftttffffffftttttttffttf\ntffft11ttftttt111tttt:...................:;;::..::,,.........ittt11111111ttffttttffLLfLfttfffffffttf\ntffft11ttttttt111ttt1:...................,;::,,::;;;i;,......;t11111111111ttt1tttffLLLLfttfffffffttf\ntttft11ttttttt111ttt1,....................,::,,::;;iii;. ...,it11tt11111t111tttttfffLLLfttfffftffttf\nttttt1tttttttt111t1ti.....................,:,,,,::;iii;.....,it11tt1111ttt1ttftttffffffftttffftffttt\nttttt11tt11111111t1ti......................,:,. ,,,:;i:.......;11tt11111t111tttttttttffft1tttttffttt\nttttt11tttt11t11tttt;......................,,,..,, .,,.......,;11111111111ttttt1ttfffttt11ttttttfttt\nttttt1tttttttt111ttt:.......................,,..,,.....,....:1ttt111111111ttt1111tfttttt11ttttttfttt\n1111111ttt1t11111tt1,.......................,,..:,.........:1t11111111111tttt1111ttt1ttt111ttttttt1t\n11111111111111111111;....... ............,,..:,.....,;ii1t1t111111111111111111111111111111111t111\n111111111111111111111,.... .,::,................:....,11ttt11tt11t1111111111111111111111111111111111\n111111111111111111111;.....;i;;;,...............:,....it1111ttt1tt1111t111111111111111111111111t1111\n1111111111111111111111i:.,iii;;i:.......... ,::,:......itttttttt1111111111111111111111111111111t1111\n111111111111111111111111i,:;;;ii;,......... ,;;::,.....:1ttttttt11111111111t111111111111111111111111\n111111111111111111111111i,.,::;;:.......... ,;;;::......itttttttt1tttt11t1tt111111111111111111111111\n111111111111111111111111i..,.................;;;::,.,,..:1tt1tttttttttttt11ttttt11111111tttttttt1111\n111111111111111111111111i..... .............;i;:::,.....itttttttttttttt1tttttttt11t11t1111ttttt1111\n","tttfttfttttttttttttttfffttttt1111tttt111tttt111111ttttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLfftfftttffftttt111111111111tfffffftttt111111111111111tttffttfttttttttt11111ttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tffffffffttttttt111111ttttffffLfffLLfttttttt1111t1t1\nttttttttttttttttffffftttffffffLffffttttttttttt1tffffffffffttttttt1111ttfffffffLfttffffffttt1111ttttt\nttttttttttttfffftttffttffffffffftttftttttt11ttt1ttfffffftttttt111t111111ttffffLLffttfLLfft111111tttt\nttttttttttffLLLLftttttfLLLftttttttfftttttttfffft1tffffftttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftffft11i;ii1ttffttttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffLfLftti;:;:,,,:;;itffftttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffftffffftt1;,,,,,,,,::,:tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfftfLftttffff1;::::;;iii;,:1ttttttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfffftfffLLLLLfffftfffftttfLfffLfi;iiii11111i;:i1tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLfffttttfffffttfLLffLf;;;;iiiiiiii;:1tfffffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttffLLffLt;;:;;ii;;iii;ttffffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttftttfLftf11i;;;i1ii11ii1tfffffftttttffft11111tfttfffttt1tttttttttfLLfffffft\nttffffffffftttfffffffftttfftttfttt11i;;;;i1111i111ttffft11ttttffft1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tfft11;;;;iiiii1t1111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\ntttffffffffttfffffffft111tt1111ttfft1i;;;iiiii1;;;111111ttffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\nttttt1tttffttfftttttt11ttttt111tttft1i;;;;iiiii;;;1t11ttftfffft1111111tttt11ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tffftt1tt11tff1ii;;;;;iiii:;;i;;i1tttffftt11t1111ttt11tt1tffftt1111ttfftfLffftt\nttttffffttt11tttttft1tttttt1ttt11i;,:i;;;;;iii;;;;:...,,,:;i1111tt1111ttt11tt1tffffftttttt1ttttttftt\n111tfffffft1ttfftttt11tttt1tfti;,...,i1i;;ii;;i1i;,.........,i11111111tt111tft1tffffttfffftt11tffLLf\n1t1ttfffft111tftttt1111ttt11;:,......;11iii;;1t11;......,.,,.,i1111111111t11tt1tfffttfffffffttfLLLLf\ntftt1tftt1tt11ttt11ttt11i;:,.........:1tt1i;i1111;............;t11t1111111111tttffttttffffftt1tffLLf\ntfftttttttttt111111tttt1,.............:;;;;;;;;:;:............:tt11111111tttt11tttffftttfft1tt1tffft\n1ttttt1ttttttt1111tt11ti................:;;;;;:,:,............,1tt111111tttffttttfLLLLfttttffffttttf\ntffftttttttttt111tttt1ti................,;;;;::,:,.............ittt11111tttffftttffffffftttttttffttf\ntfffttttfftttt111tttttt;.................:;;:::,:,.............:tt1111111ttffttttffLLfLfttfffffffttf\ntffftttttttttt111tttttt;.................,:;:::,:.,:,,.........,it11111111ttt1tttffLLLLfttfffffffttf\ntttft11ttttttt111tttttt:..................,::::,:,,;;;;;:,......itt11111t111tttttffLLLLfttfffftffttf\nttttt1tttttttt1111t1ttt;...................,::,,:,:;;;iii;.....,1tt1111ttt11tftttffffffftttffftffttt\nttttt11tt1111t111tt1ttt:...................,::,,:::;;iiii;,.....:i1t1111t111tttttttttffft1tftttffttt\nttttt11ttttttt11ttttttt:....................::,,:..,,:;ii:...... .1t111111ttttt1ttffffft11ttttttfttt\nttttt1tttttttt111tttttt:....................,::,:. ..::,......,1t1111111ttt1111tfttttt11ttttttfttt\n1111111tttttt1111ttt1tt:.... ...............,:,,:..............,1t1111111tttt1111ttt1ttt111ttttttt1t\n11111111111111111111111;;;;:,...............,:,,:....... ...,,:1ttt11111111111111111111111111111t111\n11111111111111111111111iiiiii:...............,,,:........,:i11tt1tt111111111111111111111111111111111\n11111111111111111111111iiiiiii...............,,,:.......,1tttt11tt1111t111111111111111111111111t1111\n1111111111111111111111i;iiiiii,..............,.,:........ittt11t111111111111111111111111111111111111\n111111111111111111111111iiii;,...............::::,,......:1ttttt11t111111111111111111111111111111111\n1111111111111111111111111i:,. ...............:i;:::,......itttttt1ttt111t1tt111111111111111111111111\n11111111111111111111111111:................. :i;;;::,.....;ttttttttttttttt1ttttt111111111ttttttt1111\n11111111111111111111111111:................. :i;;;;::,....:tttttttttttttttttttttt11t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1t1ttttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11tfffffftttt1111111111111111ttffttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttfffffffLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLffffttttttttttt1tffffffffffttttttt1111ttffffffLLfttffffffttt1111tttt1\nttttttttttttfffftttftttffffffffftttfttttt111ttt1ttfffffftttttt111tt11111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLftttttttffttttttttffft1tffffftttfffft11tt11tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLffttfffftfffttttttfffffftfttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffffffttft111i;ii1ttfffftttffffffffffft111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftft1i:::,,,,::;;1fftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfffLLLLLLLLfttfftfLffftfffLf1;,,,,,,,::,,:1tttttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfLfftfffLLLLLfffftfLfftttfffffLLf1;;;;;iiiii:,:1tfffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntffffftttffLLfffttttfffffttfLLLffLfiiiii111111i::1tffffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttftttttttffftttttttttttttfffLffLfii;;;iiiiiii;:1ftffffftt1ttt1111111ffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttfttffLfffLti;:;;ii;ii1;;ttffffftttttffft11111tfttffftttttttttttttfLLfffftft\nttffffffffftttfffffffftttfftttftttt1i;;;ii11111ii1ttffft11ttttffft1111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tfff1ii;;;iiiiiii1111tt111tffttttft11111tt1ttttfft1tffffLLLfttfLLLLLL\n1tfffffffffttfffffffftt1ttt1111tffft1i;;;iiiiii;;i111111tfffft11t11111tfft1tttttt1tfffffLfftttfLLLLL\ntttttttttffttfftttttt1ttfft1111tttftt1;;;iiiiii;:;tt11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffft1tt11ttft11;;;;;iiii;;;1t11ttttffftt11t1111tftt1tt1tffftt1111ttfftfLffftt\nttttffffttt11tttttft1ttfffttfft11tftiii;;;;iiii;;;;:;ii1tttft111tt1111ttt11tt1tffffftttttttttttttftt\n111tfffffft1ttfttttt11tfftttfttt11i:,ii;;;;;iii;i:.....,,::;i111t11111tt111tft1fffffttfffftt11tffLLf\n1t1ttfffft111tffttt1111tft1ft1i;:,...;1i;;;;;;i11:...........,;1111111111t11tt1tfffttfffffffttfLLLLf\ntftt1tftt1tt11tft11ttt111111;:,......,111ii;;i1t1:........,,...;11t1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttttt11;:,.........,i111i;i1t1;,.............,1t1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111ttt11ti,............,::::;;;i;:,..............it111111tttffttttfLLLffttttffffttttf\ntfffttttffttttt11ttttttti...............,;;;;;;;:...............:t111111tttffftttffffffftttttttffttf\ntfffttttfffttft11ttttttt;...............,:;;;;:::...............,1t111111ttffttttffLLfLfttfffffffttf\ntffft1ttttttttt11ttttttt:................,;;;;:::................it1111111ttt1tttffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt:................,:;;::::................:t1111tt111tttttffLLLLfttfffftffttf\nttttt1tttttttt111111tt1t;.................,::::::................,1t111ttt11tftttfffffffttfffftffttt\nttttt1tttt11tt111ttttttt:.,:;:............,::::::................,itt111t111ttt1tttttfft11tftttffttt\nttttt1tttttttt11tttttttt;:;iii:............,:::::...........,:,....:1t11111tttt11tfffttt11ttttttfttt\nttttt1tttttttt111ttttttt;;iiiii:. ..........:::::...........,;;;;:..it1111tft1111ttttttt11ttttttfttt\n1111111tttttt1111ttttttt:;iiiii;............,::::,........,::;;iii;it111ttttt11111tt1ttt111ttttttt1t\n111111111111111111111111:;;iiii;,...........,:,::,.........,;;iiii;it111111111111111111111111111tt11\n111111111111111111111111;:;:;;;,............,::::,...........:;;ii;it1111111111111111111111111111111\n111111111111111111111111;::.... .............,:::,,......... .,,:i1t1111111111111111111111111111111\n111111111111111111111111i;,..................,,,:,,....... .;,..,;11111111111111111111111111111t1111\n1111111111111111111111111i;:;i;,..............,,:,,,........1tii11t111111111111111111111111111111111\n111111111111111111111111111111:..............,:::;;:,.......;ttttttttt11t1tt111111111111111111111111\n11111111111111111111111111111;,..............:i;;ii;;:,.....,1ttt1tttttttt1ttttt1111111111tttttt1111\n1111111111111111111111111111i,...............,i;;iiii;:......ittttttttttttttttttt11t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1t1ttttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt1111ttfffffffLftttfffffttt1111tttt1\nttttttttttttfffftttftttffffffffftttfttttt111ttt1ttfffffftttttt111tt11111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLftttttttffttttttttffft1ttfffffttfffft11tt11tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftffftttttfffffffffttffttffffffftt1111tftt11t11tfLLfftt11tffftttttttt\ntttttttfffLLLLLLLLffttfttttffLffftfftttttfftffffffftttffffffffffft111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffffftfftt11iii;:;;i1tfftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfftfLffttfffLLft1;:::,,,,::;;1ttttttffffffftt1111ttt1ttt1ttfttt1ttffffLLLLLfttt\nttfLLftfffLLLLLLLfftfLfftttfLfffLLLfti;,,,,:::::,,;fffft11tfffft11111tffft1tt11tt1ttttfffLLLLLLLffff\ntfffffttttfLLfffttttfffffttLLLLffLLf1ii;;iiii11i:,;tfffft11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLffLLf1iiiiiii1111;:;tffffftt1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttffffffffftttfffffffffttfttffLfffLf111;;;ii;;i1i:itfffftttttffft11111tfttffftttttttttttttfLLfffftft\nttffffffffftttffffffffttffftttftttttt1i;;;iii;iii;ifftft11tttttffft111tt1tffttffttfffffLLfffffffffLL\ntttfffffffttttfffffffftttttt111tffft11i;;;ii11111111tt111tffftttft11111tt1ttttfft1tffffLLLfttfLLLLLL\n1tfffffffffttfffffffftt1ttt1111fffft111i;;;iiiiiii11111ttfffft11111111tfft1tttttt1tfffffLfftttfLLLLL\ntttttttttffttfftttttt1ttftt1111ttffttt1i;;;iiii;;;1t11ttttfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt1ttfffftttt11ttft1t1i;;iiiii;:;1t111tttffftt11t1111tftt1tt1tffftt1111ttfftfLffftt\nttttfffftttt1ttttfft1tffffttfft11tft111i;;;;;ii;:;i11111ttttt1111t1111ttt11tt1tfffffttttttttttttffft\n111tfffffftttffftttt11tfftttfttt1ttt1i1i;;;;iiiiii::;i111tt11111t11111tt111tft1fffffttfffftt1ttfLLLf\n1t1ttfffft111tffttt1111tfttft11tti;::,i1;;;;;iii11:...,,::;i1tt1111111111t11tt1tfffttfffffffttfLLLLf\ntttt1tftt1tt11ttt11ttt1111tt11i;,,....;1i;;;;;;i11:.,.......,,:i11t1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttttt111i;:,........;1t1ii;;i1ii,.............;t1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111tttttt11:...........:iiiiii1tti,..............,1t11111tttttttttfLLLffttttffffttttf\ntfffttttffttttt11ttttttt1i,.............,:::;;ii;,...............;t11111ttttfftttffffffftttttttffttf\ntfffttttfffffft11ttttttt1;..............,:;;;;;;:,...............,1111111ttffttttffLLfLfttfffffffttf\ntffftttttttttt111ttttttt1:.......... ....:;;;;;;:,................it111111tttttttffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt1,........,,:;:,.,;;;;;:;,................;t1111t111tttttffffLLfttfffffffttf\nttttt1tttttttt1111t1tttt1,.......;;;;;:,..:;;::::,................,1t11ttt11tftttfffffffttfffftffttt\nttttt1tttt11tt111ttttttt1:......;;;;;;;:,.:;;::::,................,it111t1111tt11ttttfft11tftttffttt\nttttt1tttttttt11tttttttti,......:;:;;;:...,:;::::,.................:1t11111tt1t11tfffttt11ttttttfttt\nttttt1tttttttt11tttttttti,......:;:;;:.....,:::::,..................:11111ttt1111ttttttt11ttttttfttt\n1t1t111tttttt111111ttttt;...,,,.,:::. ......:::::,...................,111tttt11111ttttt1111ttttttt1t\n111111111111111111111111,,,,,,,.............,:::::,..................,1t111111111111111111111111tt11\n11111111111111111111111i,,..:,..............,,::::,,.................,11tt11111111111111111111111111\n111111111111111111111111;...................,:,,::,,.................,;ii11t111111111111111111111111\n111111111111111111111111i,..................,:::::,,................:::;;;i111t111111111111111111111\n1111111111111111111111111i;;;;i1:............::,:,,,,........... ..::;;;;i1111111111111111111111111\n111111111111111111111111111111t1,............,.,:,,,:,,........:,,..,:;;;i11t11111111111111111111111\n1111111111111111111111111111111i.............,,::;;;i;:,...... :111i;::;;;1ttttt11t1111111tttttt1111\n111111111111111111111111111111ti.............:1;;1iiii;:,.......i1tttt11111tt1tt111111t1111ttttt1111\n","tttttttttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt111111ttt\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttttttttttttttttffffLffttfffffffffffttttttttt111tfffffffftttttttt11111tttttffffftfLLfttttttt1111ttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt11111tffffffffftttfffffttt11111ttt1\nttttttttttttfffftttffttffffffffftttfttttt111ttt1ttfffffftttttt11tt111111ttffffLLffttfLLff111111ttttt\nttttttttttffLLLLftttttfLLLfttttttffffttttttfffft1tffffffttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftfffttttttfffffftfttfftffffffffttt111tftt11t11tfLLLftt11tffft1tttttt\ntttttttfLfLLLLLLLLffttfttttffLLfftffttttffffffffffftttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLLftffttttttt11i;ii1tftttfffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttffttfLLLLLLLLLLfttfftfffffffffLLfttt1i;::,,,,:;;1tttttffffffftt1111ttt1ttt1ttfttt1ttfffffLLLLfttt\nttfLLftfffLLLLLLLfftfLfftttfLfffLLLLttt1;,,,,,,,::,:iftt11tfffft11111tffft1tt11tt1ttttfffLLLLLLLLfff\ntfffffttttfLLfffttttfffffttLLLLfLLLftt1i;;;;;;iiii:,;fftt11tttt1ttt11tfffttffft1ttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttffLLffLLftt1;iiiii11111i::tfffft1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttfLffffffftttfffffffffttfttffLfffLftt1;i;;;iiiiiii;;tfftttttffft11111tfttffftttttttttttttfLLftfffft\nttffffffffftttffffffffftffftttfttftttttii;;;;ii;;ii;iftt11tttttfft1111tt1tffttffttfffffLLfffffffffLL\nttffffffffttttfffffffftttttt11ttfffttt11ii;;ii1111ii11111tffftttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\n1ttffffffffttfffffffftt1ttt111tffffttt1i1i;;;iiiiii1111ttfffft11t11111tfft1tttttt1ttffffLfftttfLLLLf\ntttttttttffttfftttttt1ttfff1111ttffttttt1i;;;;i;:;it11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffftttt11tfftt11tt1;;;ii;;;1t111tttffftt11t1111tttt1tt1tffftt1111ttfftfLffftt\ntfttfffftttt1ttttfft1tffffttfftt1tft1111t1;;;;i;:;i11111tttft111tt1111ttt11tt1tfffffttttttttttttffft\n1tttfffffftttffftfft11tfffttfttttttt11111i;;:;iiii1i;i1t1tt11111t11111tt111tft1fffffttfffftt1ttffLLf\n1t1tffffft111tffttt1111tfttft11tt1t1i;;;1i;;;;ii1ii1,.,:;ii1tt11111111111t11tt1tfffttfffffffttfLfLLf\ntfttttftt1tt11ttt11ttt11t1t11tt11i:,...,11;;;;;it111,,.....,:;i11tt1111111111tttffttttffffftt1tffLLf\ntffttttttttttt1111ttftt111111i;:,......:1t1i;;;;i1t1,..........,:i1111111tttt11t1tfLftttfft1tt1tffft\n1ttttttttttttt1111ttttt111tt;..........:1111iii1;11:.............,it1111tttttt1ttfLLLffttttffffttttf\ntfffttttffttttt11ttttttt11t1,...........,,:::;;i;;:...............:t1111ttttfft1tffffffftttttttffttf\ntfffttttfffffft11ttttttt111i..............:;:::;;::...............,1t1111ttffttttffLLfLfttfffffffttf\ntfffttttttttttt11ttttttt111:..............,;;;;;;:,................;t11111ttt1t1tffLLLLfttfffffffttf\ntffft1tttttttt111ttttttt11i,..........,::::;;;;;;:,................,1t11t111tttttffffLLfttfffffffttf\nttttt1tttttttt111tt1tttt11i.........:;;;;:,;;::::::.................;t1ttt11tftttffffffftttffftffttt\nttttt1tttt11tt111ttttttt111,.......;;;;;;:,:;::::::,................:tttt1111tt11ttfttft11tftttffttt\nttttt1tttttttt11tttttttt11;,......,;;;;;;:::;::::::,................,itt111t11t11ttftttt11ttttttfttt\nttttt1tttttttt11tttttttt11;,......:;;;;i;...,:::::,,.................:tt1tttt1111ttttttt11ttttttfttt\n1t1t111tttttt111tttttttt1;,.,.....,:;:......,:::::,,..................it1tttt11111tttt11111ttttttt1t\n1111111111111111111111111:,,,......,,. .....,,::::,,..................,1t11111111111111111111111tt11\n1111111111111111111111111,,....,,...........,,,:::::,..................itt11111111111111111111111111\n1111111111111111111111111;,.................,:::::::,,................:1tt11111111111111111111111111\n11111111111111111111111111:.... ............,:::,:,,.................,1tt11111111111111111111111111\n11111111111111111111111111ii;;;;;i, .........,,::,,,,,................,:;;1tt11111111111111111111111\n11111111111111111111111111111111t1,..........,,,:,,:,:,,. ...........,:::;;i11tt11111111111111111111\n11111111111111111111111111111111t;.............,:::;;;;:,........ .,:::;;:;i1t111111111ttttttt11111\n111111111111111111111111111111111:...........,;;;i1iiii;:,.......::,,::::;;i1ttt111t11t1111ttttt1111\n","tttftttttttttttttttttfffttttt1111tttt111tttt1111111tttttttt11tttt111111tttttttttttttttttttt11111111t\nttfftttttttttttttttffLLftffftfffftttt111111111t11ttffffftttt1111111111111111ttftttfttttttttt1111tttt\nttftttttttttttttffffLffttfffffffLfffttttttttt111tfffffffftttttttt11111ttttttfffftfLLfttttttt111tttt1\nttttttttttttttttfffffttfffffffLfffftttttttttt11tffffffffffttttttt11111tfffffffffttffffffttt11111ttt1\ntttttttttttffffftttffttffffffffftttfttttt111ttt1ttfffffftttttt11tt111111ttffffLLffttfLLfft11111ttttt\nttttttttttffLLLLftttttfLLLfttttttffLftttttttffft1ttfffffttfffft11t111tt111tttffLLfttfftt1ttt111ttttt\nttttttttfffLLLLLLffttfLLLfttfffftfLfttttttffffffffftftttfffffffttt111tftt11t11tfLLfftt11tffft11ttttt\ntttttttfffLLLLLLLLffttfttttfLLLfftffttttffftt1iii11tttfffffffffftt111tft1ttft11tffLfttttfffffftttttt\ntttttttffLLLLLLLLLfttttffffffLffffftttttfti;;::,,,:;i1tffffffffftt1111111ttftttttttttttfffffLLfffttt\ntttfffffLLLLLLLLLLfttfftfLfffffffLLfttttt1;,,,,,,,::,:ittffffffftt1111ttt1ttt1tftttt1ttffffLLLLLfttt\nttfLLffffLLLLLLLLfftfLfftttfLfffLLLLfttt1i;:::;;iiii;,;t11tfffft11111tffft1tt1ttt1ttttfffLLLLLLLLfff\ntffffftttffLLLffttttfffffttLLLLfLLLffttf1;;iiii11111i::1t11tttt1ttt11tfffttfftttttfft1tffLLLLLLLLffL\ntttttttttttffftttttttttttttfffLffLLftttti:;;;;iiiiiii;;tftt1ttt111111tffftfffftttttttt1ttfLLLLffffff\nttfLffffffftttfffffffffttfttffLfffLfttttti;;;;;iii;i1iiftttttffft11111tfttffftttttttttttttfLLftfffft\nttffffffffftttffffffffftfffftffffftttttft11i;;;iiii1iiit11tttttfft1111tt11ffttffttfffffLLfffffffffLL\nttffffffffttttfffffffftttttt1tttffftttttti1i;;;ii11iii111tffftttftt1111tt1ttttfft1tffffLLLfttfLLLLLL\n1ttffffffffttfffffffftt1ttt1111tfffftttt111i;;iiiiii111ttfffft11t11111tfftttttttt1ttffffLfftttfLLLLf\ntttttttttffttfftttttt1ttfftttt1ttfftttttt111i;i;:;ii11ttftfffft1111111ttttt1ttfft11ttffffffftfLLLLLf\ntft1ttttttttttttttt11tfffftttt11tfftt1ttt111;;i;;;iii1ttttffftt11t1111ttt11tt1tffttt1111ttfftfLffftt\ntfttffffttt11tttttft1tffffttffttttft111ttt11;;;;:;i1i1;;11tft111tt1111tt111tt1tfffffttttt11tttttffft\n1tttfffffftttffftfft11tfftttffttttft1111iii1;;;i;iiii1i,,,:;;i11tt1111tt111tft1fffffttfffftt11tffLLf\n111ttfffftt1ttffttt1111tfttft11tt1t1i;:,,,;1i;;i1ii;iti,,.....,:;i1t11111t11tt1tfffttffffffft1fffLLf\ntfttttftt1tt11tft11ttt11tttt1tt11i;:,.....;11i;i1i;1tt;,,.........,:i11111111t1tffttttffffftt1tfffLf\ntffttttttttftt1111ttttt11111tft;,.........;11111i1ttti,.............,1111tttt1111tffftttfft1tt1tffft\n1ttttttttttttt1111tttttt11tfff1,...........,:;;;;;11i:...............itttttttt1ttfffLffttttffffttttf\ntfffttttffttttt11ttttttt11tfffi............ ,:;;;;;;;,...............;t1ttttfft1tffffffftttttttffttf\ntfffttttfffffft11tttttttttt1tf;..............:;;;;;;;,...............:111ttttttttfffLfLfttfffffffttf\ntfffttttftftft111ttttttt11t111:..............:;;;;;::,...............,1t11ttt1t1tffLLLLfttfffffffttf\ntfffttttfttttt111ttttttt11ttt1:..............,;;;::;::................itt111tttttffffLLfttfffffffttf\ntttttttttttttt111ttttttt1ttfft:..............,;;;;::::................:1tt11tft1tffffffftttffttffttt\nttttt1tttt11tt11tttttttt1tttt1;.,::,..........:;:::;::,...............,1t1111tt11tttttft11tfttttfttt\nttttt1tttttttt11ttttttttt1ttt1;,:;;:..........,::::::,,................it11111111ttftttt11ttttttfttt\nttttt1tttttttt11tttttttttttttiiiiii;,.........,:::::::,................:ttttt1111ttttttt11ttttttfttt\n1t1111tttttttt11tttttttt1ttt1;;;;ii;,.........,:::::::,.................ittttt1111tttt11111ttttttt1t\n11111111111111111111111111tt1;;;;ii;...........::::::::................ :1t111111111111111111111t111\n11111111111111111111111111tt1;::;;i:...........,:::::::,...............,itttt11111111111111111111111\n11111111111111111111111tttttt;,,,::............,::::::,,...............ittttt11111111111111111111111\n1111111111111111111111111tttt1:,,..............,:::::,,,,.......,:;::,:1t1111111111111111111111t1111\n11111111111111111111111111111111i;;i:..........,:,,,.,,.,.......::;;i;it1ttt111111111111111111111111\n1111111111111111111111111111111111ti...........,,.,:,:;::,......,:;;ii1ttttt11111111111111111t111111\n1111111111111111111111111111111111t;...........,;iiiiiii;:,......:;;;i1ttttt111t1111111111tttttt1111\n11111111111111111111111111111111111:...........,;i11iiii;:,.......,:i1tttttt1ttttt1t11t1111ttttt1111\n"];const l=new i.a;function c(){const[e,t]=Object(a.useState)(function(){const e=new Date;return 3===e.getMonth()&&1===e.getDate()}()),[n,i]=Object(a.useState)(0);return Object(a.useEffect)(()=>{const e=setInterval(()=>i(e=>(e+1)%s.length),100);return()=>clearInterval(e)},[]),Object(a.useEffect)(()=>l.subscribe(()=>{t(!0)}),[]),e?r.a.createElement(o.a,{open:e,onClose:()=>t(!1)},r.a.createElement("pre",{style:{color:"#0f0"}},s[n]),r.a.createElement("div",{style:{display:"none"}},r.a.createElement("iframe",{width:"560",height:"315",src:"https://www.youtube.com/embed/a3Z7zEc7AXQ?autoplay=1",title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"}))):r.a.createElement(r.a.Fragment,null)}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var a=n(0),r=n.n(a),i=n(15),o=n(1),s=n(19),l=n(118),c=n(142);const f=Object(l.a)(e=>Object(c.a)({travel:{color:e.colors.white,lineHeight:"1em",whiteSpace:"pre",cursor:"pointer"}}));function u(e){const t=f();return e.city!==e.currentCity?r.a.createElement(s.a,{title:r.a.createElement(o.a,null,e.city)},r.a.createElement("span",{onClick:()=>e.onTravel(e.city),className:t.travel},e.city[0])):r.a.createElement("span",null,e.city[0])}function m(e){return r.a.createElement(r.a.Fragment,null,r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ,_ . ._. _. ."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," , _-\\','|~\\~ ~/ ;-'_ _-' ,;_;_, ~~-"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," /~~-\\_/-'~'--' \\~~| ', ,' / / ~|-_\\_/~/~ ~~--~~~~'--_"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / ,/'-/~ '\\ ,' _ , '",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Volhaven}),",'|~ ._/-, /~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~/-'~\\_, '-,| '|. ' ~ ,\\ /'~ / /_ /~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}},".-~ '| '',\\~|\\ _\\~ ,_ , ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Chongqing})," /,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," '\\ ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Sector12})," /'~ |_/~\\\\,-,~ \\ \" ,_,/ |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | / ._-~'\\_ _~| \\ ) ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.NewTokyo})),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\ __-\\ '/ ~ |\\ \\_ / ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ., '\\ |, ~-_ - | \\\\_' ~| /\\ \\~ ,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~-_' _; '\\ '-, \\,' /\\/ |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," '\\_,~'\\_ \\_ _, /' ' |, /|'"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / \\_ ~ | / \\ ~'; -,_."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ~\\ | | , '-_, ,; ~ ~\\"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," \\, ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Aevum})," / \\ / /| ,-, , -,"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ,/ | |' |/ ,- ~ \\ '."),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ,| ,/ \\ ,/ \\ ",r.a.createElement(u,{onTravel:e.onTravel,currentCity:e.currentCity,city:i.a.Ishima})," |"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / | ~ -~~-, / _"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," | ,-' ~ /"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," / ,' ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ',| ~"),r.a.createElement(o.a,{sx:{lineHeight:"1em",whiteSpace:"pre"}}," ~'"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(0),r=n.n(a),i=n(25),o=n(1170),s=n(1171),l=n(2);function c(e){const t=e.action.getEstSuccessChance(e.bladeburner,l.a);let n=r.a.createElement(r.a.Fragment,null);return n=t[0]===t[1]?r.a.createElement(r.a.Fragment,null,Object(i.f)(100*t[0],1),"%"):r.a.createElement(r.a.Fragment,null,Object(i.f)(100*t[0],1),"% ~ ",Object(i.f)(100*t[1],1),"%"),r.a.createElement(r.a.Fragment,null,"Estimated success chance: ",n," ",e.action.isStealth?r.a.createElement(o.a,null):r.a.createElement(r.a.Fragment,null),e.action.isKill?r.a.createElement(s.a,null):r.a.createElement(r.a.Fragment,null))}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(0),r=n.n(a),i=n(37);function o(e){return r.a.createElement(i.a,{open:e.open,onClose:e.onClose},e.children)}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(5),r=n(84),i=n(22),o=n(384);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class l{constructor(e=null,t=[]){s(this,"args",[]),s(this,"dataMap",{}),s(this,"filename",""),s(this,"logs",[]),s(this,"logUpd",!1),s(this,"offlineExpGained",0),s(this,"offlineMoneyMade",0),s(this,"offlineRunningTime",.01),s(this,"onlineExpGained",0),s(this,"onlineMoneyMade",0),s(this,"onlineRunningTime",.01),s(this,"pid",-1),s(this,"ramUsage",0),s(this,"server",""),s(this,"threads",1),s(this,"dependencies",[]),null!=e&&(this.filename=e.filename,this.args=t,this.server=e.server,this.ramUsage=e.ramUsage,this.dependencies=e.dependencies)}log(e){this.logs.length>a.a.MaxLogCapacity&&this.logs.shift();let t=e;a.a.TimestampsFormat&&(t="["+Object(o.a)(a.a.TimestampsFormat)+"] "+t),this.logs.push(t),this.logUpd=!0}displayLog(){for(let e=0;e${t.title}

${t.txt}`;Object(r.a)(n)}},,,,,,function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p}));var a=n(0),r=n.n(a),i=n(260),o=n(2),s=n(84),l=n(87),c=n(6),f=n(21),u=n(305);function m(){const e=o.a.getCurrentServer();null!==e&&l.a.DarkWeb==e.hostname&&s.a.print("You are now connected to the dark web. From the dark web you can purchase illegal items. Use the 'buy -l' command to display a list of all the items you can buy. Use 'buy [item-name]' to purchase an item. Use 'buy -a' to purchase all unowned items.")}function h(){for(const e of Object.keys(i.a)){const t=i.a[e],n=o.a.getHomeComputer().programs.includes(t.program)?r.a.createElement("span",{style:{color:"green"}},"[OWNED]"):r.a.createElement(f.a,{money:t.price});s.a.printRaw(r.a.createElement(r.a.Fragment,null,r.a.createElement("span",null,t.program)," - ",r.a.createElement("span",null,n)," - ",r.a.createElement("span",null,t.description)))}}function d(e){e=e.toLowerCase();let t=null;for(const n of Object.keys(i.a)){const a=i.a[n];a.program.toLowerCase()==e&&(t=a)}null!==t?o.a.hasProgram(t.program)?s.a.print("You already have the "+t.program+" program"):o.a.moneyo.a.money)s.a.error("Not enough money to purchase remaining programs, "+c.a.formatMoney(t)+" required");else for(const t of e)d(t.program);else s.a.print("All available programs have been purchased already.")}},function(e,t,n){"use strict";function a(e,t){const n=e.hostname;return"requiredHackingSkill"in e?!1===e.hasAdminRights?{res:!1,msg:`Cannot ${t} ${n} server because you do not have root access`}:{res:!0}:{res:!1,msg:`Cannot ${t} ${n} server because it is a Hacknet Node`}}function r(e,t){const n=a(e,"hack");if(!n.res)return n;return e.requiredHackingSkill>t.hacking?{res:!1,msg:`Cannot hack ${e.hostname} server because your hacking skill is not high enough`}:{res:!0}}function i(e){return a(e,"grow")}function o(e){return a(e,"weaken")}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(184);function r(e,t,n){const a=n-Math.pow(t,.9)/250-e.intelligence/1600;return a<0?0:a>3?3:a}function i(e,t){return r(e,e.strength+e.defense+e.dexterity+e.agility+e.charisma,t)}function o(e,t){return r(e,Object(a.b)(9e3*e.mults.strength_exp,e.mults.strength)+Object(a.b)(9e3*e.mults.defense_exp,e.mults.defense)+Object(a.b)(9e3*e.mults.agility_exp,e.mults.agility)+Object(a.b)(9e3*e.mults.dexterity_exp,e.mults.dexterity)+Object(a.b)(9e3*e.mults.charisma_exp,e.mults.charisma),t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var a=n(26),r=n(162);function i(e){return"string"==typeof e&&(!isNaN(e)&&!isNaN(parseFloat(e)))}function o(e){const t=(e=(e=e.trim()).replace(/\s\s+/g," ")).match(/(?:'[^']*'|"[^"]*"|[^;"])*/g);if(!t)return[];const n=t.map(r.h).map(e=>e.match(/(?:'[^']*'|"[^"]*"|[^;"])*/g)).flat(),a=[];for(const e of n)null!==e&&(e.match(/^\s*$/)||a.push(e.trim()));return a}function s(e){let t="";const n=[];let r=0,o=0,s="";for(;o=1&&(s=e.charAt(o-1),"\\"===s&&(l=!0));const c=e.charAt(o);if(c===a.a.DOUBLE_QUOTE)if(l||s!==a.a.SPACE)""===t?t=a.a.DOUBLE_QUOTE:t===a.a.DOUBLE_QUOTE&&(t="");else{const t=e.indexOf(a.a.DOUBLE_QUOTE,o+1);if(-1!==t&&(t===e.length-1||e.charAt(t+1)===a.a.SPACE)){n.push(e.substr(o+1,t-o-1)),r=o=t===e.length-1?t+1:t+2;continue}}else if(c===a.a.QUOTE)if(l||s!==a.a.SPACE)""===t?t=a.a.QUOTE:t===a.a.QUOTE&&(t="");else{const t=e.indexOf(a.a.QUOTE,o+1);if(-1!==t&&(t===e.length-1||e.charAt(t+1)===a.a.SPACE)){n.push(e.substr(o+1,t-o-1)),r=o=t===e.length-1?t+1:t+2;continue}}else if(c===a.a.SPACE&&""===t){const t=e.substr(r,o-r);i(t)?n.push(parseFloat(t)):"true"===t?n.push(!0):"false"===t?n.push(!1):n.push(t),r=o+1}++o}if(r!==o){const t=e.substr(r,o-r);i(t)?n.push(parseFloat(t)):"true"===t?n.push(!0):"false"===t?n.push(!1):n.push(t)}return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var a=n(0),r=n.n(a),i=n(1397),o=n(1),s=n(8);function l(e){const[t,n]=Object(a.useState)(0),[l,c]=Object(a.useState)(!1);return r.a.createElement(r.a.Fragment,null,e.lines.slice(0,t).map((e,t)=>r.a.createElement(o.a,{key:t},e)),e.lines.length>t&&r.a.createElement(i.a,{key:t,text:e.lines[t],onDone:function(){const a=t+1;n(a),a>=e.lines.length&&(e.onDone&&e.auto&&e.onDone(),c(!0))}}),!e.auto&&e.onDone&&l&&r.a.createElement(s.a,{onClick:e.onDone},"Continue ..."))}},,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return r}));const a=5,r=1e13},,,,,,,,,,,,,,,,,,,,,,,,,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return checkInfiniteLoop})),__webpack_require__.d(__webpack_exports__,"a",(function(){return calculateRamUsage}));var acorn_walk__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(309),acorn__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(259),_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(336),_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(229),_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(83);const specialReferenceIF="__SPECIAL_referenceIf",specialReferenceFOR="__SPECIAL_referenceFor",specialReferenceWHILE="__SPECIAL_referenceWhile",memCheckGlobalKey=".__GLOBAL__";async function parseOnlyRamCalculate(player,otherScripts,code){try{let dependencyMap={};const completedParses=new Set,parseQueue=[];function parseCode(e,t){const n=parseOnlyCalculateDeps(e,t);completedParses.add(t);for(let e=0;e0;){const nextModule=parseQueue.shift();if(void 0===nextModule)throw new Error("nextModule should not be undefined");let code;if(nextModule.startsWith("https://")||nextModule.startsWith("http://"))try{const module=await eval("import(nextModule)");code="";for(const e in module)"function"==typeof module[e]&&(code+=module[e].toString()+";\n")}catch(e){return console.error(`Error dynamically importing module from ${nextModule} for RAM calculations: ${e}`),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.URLImportError}}else{if(!Array.isArray(otherScripts))return console.warn("parseOnlyRamCalculate() not called with array of scripts"),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.ImportError};let e=null;const t=nextModule.startsWith("./")?nextModule.slice(2):nextModule;for(const n of otherScripts)if(Object(_Terminal_DirectoryHelpers__WEBPACK_IMPORTED_MODULE_4__.b)(n.filename,t)){e=n;break}if(null==e)return{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.ImportError};code=e.code}parseCode(code,nextModule)}let ram=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptBaseRamCost;const detailedCosts=[{type:"misc",name:"baseCost",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptBaseRamCost}],unresolvedRefs=Object.keys(dependencyMap).filter(e=>e.startsWith(initialModule)),resolvedRefs=new Set,loadedFns={};for(;unresolvedRefs.length>0;){const e=unresolvedRefs.shift();if(void 0===e)throw new Error("ref should not be undefined");if("hacknet"!==e||resolvedRefs.has("hacknet")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptHacknetNodesRamCost,detailedCosts.push({type:"ns",name:"hacknet",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptHacknetNodesRamCost})),"document"!==e||resolvedRefs.has("document")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost,detailedCosts.push({type:"dom",name:"document",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost})),"window"!==e||resolvedRefs.has("window")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost,detailedCosts.push({type:"dom",name:"window",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptDomRamCost})),"corporation"!==e||resolvedRefs.has("corporation")||(ram+=_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptCorporationRamCost,detailedCosts.push({type:"ns",name:"corporation",cost:_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.a.ScriptCorporationRamCost})),resolvedRefs.add(e),e.endsWith(".*")){const t=e.slice(0,e.length-2);for(const e of Object.keys(dependencyMap).filter(e=>e.startsWith(t)))for(const t of dependencyMap[e]||[])resolvedRefs.has(t)||unresolvedRefs.push(t)}else for(const t of dependencyMap[e]||[])resolvedRefs.has(t)||unresolvedRefs.push(t);try{var _details$func,_details$refDetail;function applyFuncRam(e){return"number"==typeof e?e:"function"==typeof e?e(player):0}if(loadedFns[e])continue;loadedFns[e]=!0;const t=(e,n,a)=>{if(!n)return;const r=Object.entries(n).find(([e])=>e===a);if(void 0!==r&&("function"==typeof r[1]||"number"==typeof r[1]))return{func:r[1],refDetail:`${e}${a}`};for(const[e,r]of Object.entries(n)){const n=t(e+".",r,a);if(n)return n}},n=t("",_Netscript_RamCostGenerator__WEBPACK_IMPORTED_MODULE_3__.b,e),a=applyFuncRam(null!==(_details$func=null==n?void 0:n.func)&&void 0!==_details$func?_details$func:0);ram+=a,detailedCosts.push({type:"fn",name:null!==(_details$refDetail=null==n?void 0:n.refDetail)&&void 0!==_details$refDetail?_details$refDetail:"",cost:a})}catch(e){console.log(e);continue}}return{cost:ram,entries:detailedCosts.filter(e=>e.cost>0)}}catch(e){return{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.SyntaxError}}}function checkInfiniteLoop(e){const t=Object(acorn__WEBPACK_IMPORTED_MODULE_1__.a)(e,{sourceType:"module",ecmaVersion:"latest"});let n=-1;return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(t,{},{WhileStatement:(t,a,r)=>{!function(e){return"Literal"===e.type&&"true"===e.raw}(t.test)||function(e){let t=!1;return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(e,{},{AwaitExpression:()=>{t=!0}}),t}(t)?t.body&&r(t.body,a):n=(e.slice(0,t.start).match(/\n/g)||[]).length+1}}),n}function parseOnlyCalculateDeps(e,t){const n=Object(acorn__WEBPACK_IMPORTED_MODULE_1__.a)(e,{sourceType:"module",ecmaVersion:"latest"}),a=t+memCheckGlobalKey,r={};r[a]=new Set;const i={},o=[];function s(e,n){const a=r[e]||(r[e]=new Set),o=i[n];void 0!==o&&a.add(o),a.add(t+"."+n),a.add(n)}const l=Object.getOwnPropertyNames(Object.prototype);function c(){return{Identifier:(e,t)=>{l.includes(e.name)||s(t.key,e.name)},WhileStatement:(e,t,n)=>{s(t.key,specialReferenceWHILE),e.test&&n(e.test,t),e.body&&n(e.body,t)},DoWhileStatement:(e,t,n)=>{s(t.key,specialReferenceWHILE),e.test&&n(e.test,t),e.body&&n(e.body,t)},ForStatement:(e,t,n)=>{s(t.key,specialReferenceFOR),e.init&&n(e.init,t),e.test&&n(e.test,t),e.update&&n(e.update,t),e.body&&n(e.body,t)},IfStatement:(e,t,n)=>{s(t.key,specialReferenceIF),e.test&&n(e.test,t),e.consequent&&n(e.consequent,t),e.alternate&&n(e.alternate,t)},MemberExpression:(e,t,n)=>{e.object&&n(e.object,t),e.property&&n(e.property,t)}}}return acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(n,{key:a},Object.assign({ImportDeclaration:(e,t)=>{const n=e.source.value;o.push(n);const a=r[t.key];if(void 0===a)throw new Error("set should not be undefined");a.add(n+memCheckGlobalKey);for(let a=0;a{const n=t+"."+(null===e.id?"__SPECIAL_DEFAULT_EXPORT__":e.id.name);acorn_walk__WEBPACK_IMPORTED_MODULE_0__.a(e,{key:n},c())}},c())),{dependencyMap:r,additionalModules:o}}async function calculateRamUsage(e,t,n){try{return await parseOnlyRamCalculate(e,n,t)}catch(e){return console.error("Failed to parse script for RAM calculations:"),console.error(e),{cost:_RamCalculationErrorCodes__WEBPACK_IMPORTED_MODULE_2__.a.SyntaxError}}}},function(e,t,n){"use strict";function a(e){return+(Math.round(parseFloat(e+"e+2"))+"e-2")}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var a=n(202);let r=1;function i(){let e=r,t=!1;for(let n=0;n<1e6;){if(!a.a.has(e+n)){t=!0,e+=n;break}n===Number.MAX_SAFE_INTEGER-1?n=1:++n}return t?(r=e+1,r>=Number.MAX_SAFE_INTEGER&&(r=1),e):-1}function o(){r=1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return se}));var a=n(607),r=n.n(a),i=n(433),o=n(302),s=n(20),l=n(12),c=n(100),f=n(494),u=n(92),m=n(84),h=n(2),d=n(60),p=n(258),g=n(267),y=n(99),b=n(418),E=n(24),v=n(138),k=n(227),w=n(43),_=n(540),S=n(83),C=n(228),x=n(201),L=n(144),O=n(202),M=n(106),T=n(6),A=n(25),R=n(182),N=n(289),P=n(148),I=n(1047),F=n(1051),D=n(1052),j=n(1054),B=n(1055),G=n(1057),W=n(1058),H=n(1059),U=n(1060),q=n(1062),$=n(1067),K=n(1068),z=n(1069),V=n(1425),Y=n(658),J=n(14),X=n(94),Q=n(377),Z=n(657),ee=n(287),te=n(431),ne=n(472),ae=n(15),re=n(1426),ie=n(611),oe=n(473);function se(e){const t=function(e,t){const n=Object(E.d)(e);if(null==n)throw t.makeRuntimeErrorMsg("Invalid hostname: "+e);return n},n=function(n,a,r,i){if(!Array.isArray(i))throw Object(M.b)(e,`Invalid scriptArgs argument passed into getRunningScript() from ${n.function}(). This is probably a bug. Please report to game developer`);if(null!=a&&"string"==typeof a){null==r&&(r=e.hostname);const o=t(r,n);return Object(g.a)(a,i,o)}return e.scriptRef},a=(e,t)=>"number"==typeof t?function(e){for(const t of Object(E.c)()){const n=Object(g.b)(e,t);if(n)return n}return null}(t):n(e,t.fn,t.hostname,t.args),le=function(e){return{args:e.args.slice(),filename:e.filename,logs:e.logs.slice(),offlineExpGained:e.offlineExpGained,offlineMoneyMade:e.offlineMoneyMade,offlineRunningTime:e.offlineRunningTime,onlineExpGained:e.onlineExpGained,onlineMoneyMade:e.onlineMoneyMade,onlineRunningTime:e.onlineRunningTime,pid:e.pid,ramUsage:e.ramUsage,server:e.server,threads:e.threads}},ce=function(e){return"number"==typeof e?"Cannot find running script with pid: "+e:`Cannot find running script ${e.fn} on server ${e.hostname} with args: ${Object(N.a)(e.args)}`},fe=function(t,n=""){return t instanceof u.a&&(e.log(n,()=>"Does not work on Hacknet Servers"),!0)},ue=function(t,n){const a=(new Error).stack;if(void 0===a)throw new Error("how did we not throw an error?");const r=a.split("\n").slice(1),i=e.getServer().scripts,o=[];for(const e of r){let t;for(const n of i){n.url&&e.includes(n.url)&&(t=n.filename);for(const a of n.dependencies)e.includes(a.url)&&(t=a.filename)}if(!t)continue;function s(e){const t=e.match(/.*:(\d+):\d+.*/),n=e.match(/.*at (.+) \(.*/);return t&&n?{line:t[1],func:n[1]}:null}let n={line:"-1",func:"unknown"};const a=s(e);function l(e){const t=e.match(/.*:(\d+):\d+$/),n=e.lastIndexOf("@");return t&&-1!==n?{line:t[1],func:e.slice(0,n)}:null}a&&(n=a);const r=l(e);r&&(n=r),o.push(`${t}:L${n.line}@${n.func}`)}e.log(t,()=>n);let c=`${t}: ${n}`;return 0!==o.length&&(c+="

Stack:
"+o.join("
")),Object(M.b)(e,c)},me=async function(n,a,r,{threads:i,stock:o}={}){if(void 0===a)throw n.makeRuntimeErrorMsg("Takes 1 argument.");const u=Object(M.d)(n,i),m=t(a,n);if(!(m instanceof w.a))throw n.makeRuntimeErrorMsg("Cannot be executed on this server.");const d=Object(c.d)(m,h.a),p=Object(f.b)(m,h.a);if(!p.res)throw n.makeRuntimeErrorMsg(p.msg||"");return n.log(()=>`Executing on '${m.hostname}' in ${Object(A.d)(1e3*d,!0)} (t=${T.a.formatThreads(u)})`),Object(M.c)(1e3*d,e).then((function(){const t=Object(c.b)(m,h.a),a=Math.random();let i=Object(c.c)(m,h.a)*u;const f=i/4;if(am.moneyAvailable&&(d=m.moneyAvailable),m.moneyAvailable-=d,m.moneyAvailable<0&&(m.moneyAvailable=0);let p=d*s.a.ScriptHackMoneyGain;return r&&(p=d*s.a.ManualHackMoney),h.a.gainMoney(p,"hacking"),e.scriptRef.onlineMoneyMade+=p,h.a.scriptProdSinceLastAug+=p,e.scriptRef.recordHack(m.hostname,p,u),h.a.gainHackingExp(i),r&&h.a.gainIntelligenceExp(.005),e.scriptRef.onlineExpGained+=i,n.log(()=>`Successfully hacked '${m.hostname}' for ${T.a.formatMoney(p)} and ${T.a.formatExp(i)} exp (t=${T.a.formatThreads(u)})`),m.fortify(l.a.ServerFortifyAmount*Math.min(u,a)),o&&Object(_.c)(m,d),r&&(m.backdoorInstalled=!0),Promise.resolve(p)}return h.a.gainHackingExp(f),e.scriptRef.onlineExpGained+=f,n.log(()=>`Failed to hack '${m.hostname}'. Gained ${T.a.formatExp(f)} exp (t=${T.a.formatThreads(u)})`),Promise.resolve(0)}))},he=function(e){let t="";for(let n of e)n=Object(Y.a)(n),t+="object"==typeof n?JSON.stringify(n):""+n;return t},de=(e,t)=>{if(console.log(e),console.log(t),"object"!=typeof t||null==t)return!1;const n=Object.keys(e),a=Object.keys(t);for(const e of n)if(!a.includes(e))return console.log(e),!1;return!0},pe=(e,t,n)=>{if("string"==typeof n)return n;if("number"==typeof n)return n+"";throw ue(e,`'${t}' should be a string.`)},ge=(e,t,n)=>{if("string"==typeof n){const e=parseFloat(n);if(!isNaN(e))return e}else if("number"==typeof n){if(isNaN(n))throw ue(e,`'${t}' is NaN.`);return n}throw ue(e,`'${t}' should be a number.`)},ye=e=>Array.isArray(e)&&e.every(e=>"string"==typeof e||"number"==typeof e||"boolean"==typeof e),be={updateDynamicRam:function(t,n){if(e.dynamicLoadedFns[t])return;e.dynamicLoadedFns[t]=!0;let a=e.scriptRef.threads;if("number"!=typeof a&&(console.warn(`WorkerScript detected NaN for threadcount for ${e.name} on ${e.hostname}`),a=1),e.dynamicRamUsage+=n,e.dynamicRamUsage>1.01*e.ramUsage)throw Object(M.b)(e,`Dynamic RAM usage calculated to be greater than initial RAM usage on fn: ${t}.\n This is probably because you somehow circumvented the static RAM calculation.\n\n Threads: ${a}\n Dynamic RAM Usage: ${T.a.formatRAM(e.dynamicRamUsage)}\n Static RAM Usage: ${T.a.formatRAM(e.ramUsage)}\n\n One of these could be the reason:\n * Using eval() to get a reference to a ns function\n   const myScan = eval('ns.scan');\n\n * Using map access to do the same\n   const myScan = ns['scan'];\n\n Sorry :(`)},makeRuntimeErrorMsg:ue,string:pe,number:ge,ustring:(e,t,n)=>{if(void 0!==n)return pe(e,t,n)},unumber:(e,t,n)=>{if(void 0!==n)return ge(e,t,n)},scriptArgs:(e,t)=>{if(!ye(t))throw ue(e,"'args' is not an array of script args");return t},scriptIdentifier:(t,n,a,r)=>{if(void 0===n)return e.pid;if("number"==typeof n)return n;if("string"==typeof n){const i=null!=a?pe(t,"hostname",a):e.hostname;if(!ye(r))throw ue(t,"'args' is not an array of script args");return{fn:n,hostname:i,args:r}}throw new Error("not implemented")},boolean:e=>!!e,city:(e,t,n)=>{if("string"!=typeof n)throw ue(e,t+" should be a city name.");const a=n;if(!Object.values(ae.a).includes(a))throw ue(e,t+" should be a city name.");return a},getServer:t,checkSingularityAccess:function(e){if(4!==h.a.bitNodeN&&0===h.a.sourceFileLvl(4))throw ue(e,"This singularity function requires Source-File 4 to run. A power up you obtain later in the game. It will be very obvious when and how you can obtain it.")},hack:me,getValidPort:(e,t)=>{if(isNaN(t))throw ue(e,`Invalid argument. Must be a port number between 1 and ${l.a.NumNetscriptPorts}, is ${t}`);if((t=Math.round(t))<1||t>l.a.NumNetscriptPorts)throw ue(e,`Trying to use an invalid port: ${t}. Only ports 1-${l.a.NumNetscriptPorts} are valid.`);const n=x.a[t-1];if(null==n||!(n instanceof Object))throw ue(e,`Could not find port: ${t}. This is a bug. Report to dev.`);return n},player(e,t){if(!de({hacking:void 0,hp:void 0,max_hp:void 0,strength:void 0,defense:void 0,dexterity:void 0,agility:void 0,charisma:void 0,intelligence:void 0,hacking_exp:void 0,strength_exp:void 0,defense_exp:void 0,dexterity_exp:void 0,agility_exp:void 0,charisma_exp:void 0,hacking_chance_mult:void 0,mults:void 0,numPeopleKilled:void 0,money:void 0,city:void 0,location:void 0,hasWseAccount:void 0,hasTixApiAccess:void 0,has4SData:void 0,has4SDataTixApi:void 0,bitNodeN:void 0,totalPlaytime:void 0,playtimeSinceLastAug:void 0,playtimeSinceLastBitnode:void 0,jobs:void 0,factions:void 0,tor:void 0,inBladeburner:void 0,hasCorporation:void 0,entropy:void 0},t))throw ue(e,"player should be a Player.");return t},server(e,t){if(!de(new w.a,t))throw ue(e,"server should be a Server.");return t},gang(e,t){if(!de({respect:0,territory:0,wantedLevel:0},t))throw ue(e,"gang should be a Gang.");return t},gangMember(e,t){if(!de(new ie.a,t))throw ue(e,"member should be a GangMember.");return t},gangTask(e,t){if(!de(new oe.a("","",!1,!1,{}),t))throw ue(e,"task should be a GangMemberTask.");return t}},Ee=Object(V.a)(h.a,e),ve={...{...Ee,args:e.args,enums:{toast:X.d},singularity:Ee,gang:Object(I.a)(h.a,e),bladeburner:Object(H.a)(h.a,e),codingcontract:Object(U.a)(h.a,e),sleeve:Object(F.a)(h.a),corporation:Object(q.a)(h.a,e),stanek:Object(B.a)(h.a,e,be),infiltration:Object(G.a)(h.a),ui:Object(W.a)(),formulas:Object($.a)(h.a,be),stock:Object(K.a)(h.a,e),grafting:Object(z.a)(h.a),hacknet:Object(j.a)(h.a,e),sprintf:()=>i.sprintf,vsprintf:()=>i.vsprintf,scan:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n),o=[];for(let e=0;e`returned ${i.serversOnNetwork.length} connections for ${i.hostname}`),o},hack:e=>(t,{threads:n,stock:a}={})=>{const r=e.helper.string("hostname",t);return me(e,r,!1,{threads:n,stock:a})},hackAnalyzeThreads:e=>(n,a)=>{const r=e.helper.string("hostname",n),i=e.helper.number("hackAmount",a),o=t(r,e);if(!(o instanceof w.a))return e.log(()=>"Cannot be executed on this server."),-1;if(isNaN(i))throw e.makeRuntimeErrorMsg(`Invalid hackAmount argument passed into hackAnalyzeThreads: ${i}. Must be numeric.`);if(i<0||i>o.moneyAvailable)return-1;if(0===i)return 0;const s=Object(c.e)(o,h.a);return 0===s||0===o.moneyAvailable?0:i/Math.floor(o.moneyAvailable*s)},hackAnalyze:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?Object(c.e)(r,h.a):(e.log(()=>"Cannot be executed on this server."),0)},hackAnalyzeSecurity:e=>(n,a)=>{let r=e.helper.number("threads",n);if(a){const n=e.helper.string("hostname",a),i=t(n,e);if(!(i instanceof w.a))return e.log(()=>"Cannot be executed on this server."),0;const o=Object(c.e)(i,h.a);o>0&&(r=Math.min(r,Math.ceil(1/o)))}return l.a.ServerFortifyAmount*r},hackAnalyzeChance:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?Object(c.b)(r,h.a):(e.log(()=>"Cannot be executed on this server."),0)},sleep:t=>async(n=0)=>{const a=t.helper.number("time",n);if(void 0===a)throw t.makeRuntimeErrorMsg("Takes 1 argument.");return t.log(()=>`Sleeping for ${a} milliseconds`),Object(M.c)(a,e).then((function(){return Promise.resolve(!0)}))},asleep:e=>function(t=0){const n=e.helper.number("time",t);return e.log(()=>`Sleeping for ${n} milliseconds`),new Promise(e=>setTimeout(()=>e(!0),n))},grow:n=>async(a,{threads:r,stock:i}={})=>{const o=n.helper.string("hostname",a),s=Object(M.d)(n,null!=r?r:e.scriptRef.threads),l=t(o,n);if(!(l instanceof w.a))return n.log(()=>"Cannot be executed on this server."),Promise.resolve(0);const u=Object(E.d)(e.hostname);if(null===u)throw new Error("Workerscript host is null");const m=Object(f.a)(l);if(!m.res)throw n.makeRuntimeErrorMsg(m.msg||"");const d=Object(c.a)(l,h.a);return n.log(()=>`Executing on '${l.hostname}' in ${Object(A.d)(1e3*d,!0)} (t=${T.a.formatThreads(s)}).`),Object(M.c)(1e3*d,e).then((function(){const t=l.moneyAvailable<=0?1:l.moneyAvailable;Object(v.f)(l,s,h.a,u.cpuCores);const a=l.moneyAvailable;e.scriptRef.recordGrow(l.hostname,s);const r=Object(c.c)(l,h.a)*s,o=a/t-1;return n.log(()=>`Available money on '${l.hostname}' grown by ${T.a.formatPercentage(o,6)}. Gained ${T.a.formatExp(r)} hacking exp (t=${T.a.formatThreads(s)}).`),e.scriptRef.onlineExpGained+=r,h.a.gainHackingExp(r),i&&Object(_.b)(l,a-t),Promise.resolve(a/t)}))},growthAnalyze:e=>(n,a,r=1)=>{const i=e.helper.string("hostname",n),o=e.helper.number("growth",a),s=e.helper.number("cores",r),l=t(i,e);if(!(l instanceof w.a))return e.log(()=>"Cannot be executed on this server."),0;if("number"!=typeof o||isNaN(o)||o<1||!isFinite(o))throw e.makeRuntimeErrorMsg(`Invalid argument: growth must be numeric and >= 1, is ${o}.`);return Object(v.c)(l,Number(o),h.a,s)},growthAnalyzeSecurity:e=>(n,a,r)=>{let i=e.helper.number("threads",n);if(a){const n=e.helper.number("cores",r)||1,o=e.helper.string("hostname",a),s=t(o,e);if(!(s instanceof w.a))return e.log(()=>"Cannot be executed on this server."),0;const l=Math.ceil(Object(v.d)(s,s.moneyMax,s.moneyAvailable,h.a,n));i=Math.min(i,l)}return 2*l.a.ServerFortifyAmount*i},weaken:n=>async(a,{threads:r}={})=>{const i=n.helper.string("hostname",a),o=Object(M.d)(n,null!=r?r:e.scriptRef.threads);if(void 0===i)throw n.makeRuntimeErrorMsg("Takes 1 argument.");const s=t(i,n);if(!(s instanceof w.a))return n.log(()=>"Cannot be executed on this server."),Promise.resolve(0);const u=Object(f.c)(s);if(!u.res)throw n.makeRuntimeErrorMsg(u.msg||"");const m=Object(c.f)(s,h.a);return n.log(()=>`Executing on '${s.hostname}' in ${Object(A.d)(1e3*m,!0)} (t=${T.a.formatThreads(o)})`),Object(M.c)(1e3*m,e).then((function(){const t=Object(E.d)(e.hostname);if(null===t)return n.log(()=>"Server is null, did it die?"),Promise.resolve(0);const a=1+(t.cpuCores-1)/16;s.weaken(l.a.ServerWeakenAmount*o*a),e.scriptRef.recordWeaken(s.hostname,o);const r=Object(c.c)(s,h.a)*o;return n.log(()=>`'${s.hostname}' security level weakened to ${s.hackDifficulty}. Gained ${T.a.formatExp(r)} hacking exp (t=${T.a.formatThreads(o)})`),e.scriptRef.onlineExpGained+=r,h.a.gainHackingExp(r),Promise.resolve(l.a.ServerWeakenAmount*o*a)}))},weakenAnalyze:e=>(t,n=1)=>{const a=e.helper.number("threads",t),r=1+(e.helper.number("cores",n)-1)/16;return l.a.ServerWeakenAmount*a*r*s.a.ServerWeakenRate},share:t=>async()=>{t.log(()=>"Sharing this computer.");const n=Object(te.b)(e.scriptRef.threads*Object(ee.a)(h.a.intelligence,2));return Object(M.c)(1e4,e).finally((function(){t.log(()=>"Finished sharing this computer."),n()}))},getSharePower:()=>()=>Object(te.a)(),print:t=>(...n)=>{if(0===n.length)throw t.makeRuntimeErrorMsg("Takes at least 1 argument.");e.print(he(n))},printf:t=>(n,...a)=>{const r=t.helper.string("format",n);if("string"!=typeof r)throw t.makeRuntimeErrorMsg("First argument must be string for the format.");e.print(Object(i.vsprintf)(r,a))},tprint:t=>(...n)=>{if(0===n.length)throw t.makeRuntimeErrorMsg("Takes at least 1 argument.");const a=he(n);a.startsWith("ERROR")||a.startsWith("FAIL")?m.a.error(`${e.scriptRef.filename}: ${a}`):a.startsWith("SUCCESS")?m.a.success(`${e.scriptRef.filename}: ${a}`):a.startsWith("WARN")?m.a.warn(`${e.scriptRef.filename}: ${a}`):a.startsWith("INFO")?m.a.info(`${e.scriptRef.filename}: ${a}`):m.a.print(`${e.scriptRef.filename}: ${a}`)},tprintf:e=>(t,...n)=>{const a=e.helper.string("format",t),r=Object(i.vsprintf)(a,n);r.startsWith("ERROR")||r.startsWith("FAIL")?m.a.error(""+r):r.startsWith("SUCCESS")?m.a.success(""+r):r.startsWith("WARN")?m.a.warn(""+r):r.startsWith("INFO")?m.a.info(""+r):m.a.print(""+r)},clearLog:()=>()=>{e.scriptRef.clearLog()},disableLog:t=>n=>{const a=t.helper.string("fn",n);if("ALL"===a){for(const t of Object.keys(ke))e.disableLogs[t]=!0;t.log(()=>"Disabled logging for all functions")}else{if(void 0===ke[a])throw t.makeRuntimeErrorMsg(`Invalid argument: ${a}.`);e.disableLogs[a]=!0,t.log(()=>"Disabled logging for "+a)}},enableLog:t=>n=>{const a=t.helper.string("fn",n);if("ALL"===a){for(const t of Object.keys(ke))delete e.disableLogs[t];t.log(()=>"Enabled logging for all functions")}else if(void 0===ke[a])throw t.makeRuntimeErrorMsg(`Invalid argument: ${a}.`);delete e.disableLogs[a],t.log(()=>"Enabled logging for "+a)},isLogEnabled:t=>n=>{const a=t.helper.string("fn",n);if(void 0===ke[a])throw t.makeRuntimeErrorMsg(`Invalid argument: ${a}.`);return!e.disableLogs[a]},getScriptLogs:e=>(t,n,...r)=>{const i=e.helper.scriptIdentifier(t,n,r),o=a(e,i);return null==o?(e.log(()=>ce(i)),[]):o.logs.slice()},tail:e=>(t,n,...r)=>{const i=e.helper.scriptIdentifier(t,n,r),o=a(e,i);null!=o?R.c.emit(o):e.log(()=>ce(i))},closeTail:t=>(n=e.scriptRef.pid)=>{const a=t.helper.number("pid",n);R.b.emit(a)},nuke:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(r.hasAdminRights)return e.log(()=>`Already have root access to '${r.hostname}'.`),!0;if(!h.a.hasProgram(d.a.NukeProgram.name))throw e.makeRuntimeErrorMsg("You do not have the NUKE.exe virus!");if(r.openPortCount`Executed NUKE.exe virus on '${r.hostname}' to gain root access.`),!0},brutessh:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.BruteSSHProgram.name))throw e.makeRuntimeErrorMsg("You do not have the BruteSSH.exe program!");return r.sshPortOpen?e.log(()=>`SSH Port (22) already opened on '${r.hostname}'.`):(e.log(()=>`Executed BruteSSH.exe on '${r.hostname}' to open SSH port (22).`),r.sshPortOpen=!0,++r.openPortCount),!0},ftpcrack:e=>n=>{const a=e.helper.string("hostname",n);if(void 0===a)throw e.makeRuntimeErrorMsg("Takes 1 argument.");const r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.FTPCrackProgram.name))throw e.makeRuntimeErrorMsg("You do not have the FTPCrack.exe program!");return r.ftpPortOpen?e.log(()=>`FTP Port (21) already opened on '${r.hostname}'.`):(e.log(()=>`Executed FTPCrack.exe on '${r.hostname}' to open FTP port (21).`),r.ftpPortOpen=!0,++r.openPortCount),!0},relaysmtp:e=>n=>{const a=e.helper.string("hostname",n);if(void 0===a)throw e.makeRuntimeErrorMsg("Takes 1 argument.");const r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.RelaySMTPProgram.name))throw e.makeRuntimeErrorMsg("You do not have the relaySMTP.exe program!");return r.smtpPortOpen?e.log(()=>`SMTP Port (25) already opened on '${r.hostname}'.`):(e.log(()=>`Executed relaySMTP.exe on '${r.hostname}' to open SMTP port (25).`),r.smtpPortOpen=!0,++r.openPortCount),!0},httpworm:e=>n=>{const a=e.helper.string("hostname",n);if(void 0===a)throw e.makeRuntimeErrorMsg("Takes 1 argument");const r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.HTTPWormProgram.name))throw e.makeRuntimeErrorMsg("You do not have the HTTPWorm.exe program!");return r.httpPortOpen?e.log(()=>`HTTP Port (80) already opened on '${r.hostname}'.`):(e.log(()=>`Executed HTTPWorm.exe on '${r.hostname}' to open HTTP port (80).`),r.httpPortOpen=!0,++r.openPortCount),!0},sqlinject:e=>n=>{const a=e.helper.string("hostname",n);if(void 0===a)throw e.makeRuntimeErrorMsg("Takes 1 argument.");const r=t(a,e);if(!(r instanceof w.a))return e.log(()=>"Cannot be executed on this server."),!1;if(!h.a.hasProgram(d.a.SQLInjectProgram.name))throw e.makeRuntimeErrorMsg("You do not have the SQLInject.exe program!");return r.sqlPortOpen?e.log(()=>`SQL Port (1433) already opened on '${r.hostname}'.`):(e.log(()=>`Executed SQLInject.exe on '${r.hostname}' to open SQL port (1433).`),r.sqlPortOpen=!0,++r.openPortCount),!0},run:t=>(n,a=1,...r)=>{const i=t.helper.string("scriptname",n),o=t.helper.number("threads",a),s=t.helper.scriptArgs(r);if(void 0===i)throw t.makeRuntimeErrorMsg("Usage: run(scriptname, [numThreads], [arg1], [arg2]...)");if(isNaN(o)||o<=0)throw t.makeRuntimeErrorMsg("Invalid thread count. Must be numeric and > 0, is "+o);const l=Object(E.d)(e.hostname);if(null==l)throw t.makeRuntimeErrorMsg("Could not find server. This is a bug. Report to dev.");return Object(x.d)(h.a,"run",l,i,s,e,o)},exec:n=>(a,r,i=1,...o)=>{const s=n.helper.string("scriptname",a),l=n.helper.string("hostname",r),c=n.helper.number("threads",i),f=n.helper.scriptArgs(o);if(void 0===s||void 0===l)throw n.makeRuntimeErrorMsg("Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)");if(isNaN(c)||c<=0)throw n.makeRuntimeErrorMsg("Invalid thread count. Must be numeric and > 0, is "+c);const u=t(l,n);return Object(x.d)(h.a,"exec",u,s,f,e,c)},spawn:t=>(n,a=1,...r)=>{const i=t.helper.string("scriptname",n),o=t.helper.number("threads",a),s=t.helper.scriptArgs(r);if(!i||!o)throw t.makeRuntimeErrorMsg("Usage: spawn(scriptname, threads)");setTimeout(()=>{if(isNaN(o)||o<=0)throw t.makeRuntimeErrorMsg("Invalid thread count. Must be numeric and > 0, is "+o);const n=Object(E.d)(e.hostname);if(null==n)throw t.makeRuntimeErrorMsg("Could not find server. This is a bug. Report to dev");return Object(x.d)(h.a,"spawn",n,i,s,e,o)},1e4),t.log(()=>`Will execute '${i}' in 10 seconds`),e.running=!1,Object(L.a)(e)&&t.log(()=>"Exiting...")},kill:e=>(a,r,...i)=>{const o=e.helper.scriptIdentifier(a,r,i);let s;const l="number"==typeof o;if(l)s=Object(L.a)(o);else{if(void 0===a||void 0===r)throw e.makeRuntimeErrorMsg("Usage: kill(scriptname, server, [arg1], [arg2]...)");const i=t(o.hostname,e),l=n(e,o.fn,o.hostname,o.args);if(null==l)return e.log(()=>ce(o)),!1;s=Object(L.a)({runningScript:l,hostname:i.hostname})}return s?(l?e.log(()=>"Killing script with PID "+o):e.log(()=>`Killing '${a}' on '${r}' with args: ${Object(N.a)(i)}.`),!0):(l?e.log(()=>"No script with PID "+o):e.log(()=>`No such script '${a}' on '${r}' with args: ${Object(N.a)(i)}`),!1)},killall:n=>(a=e.hostname,r=!0)=>{const i=n.helper.string("hostname",a),s=be.boolean(r);if(void 0===i)throw n.makeRuntimeErrorMsg("Usage: killall(hostname, [safetyguard boolean])");const l=t(i,n);let c=0;for(let t=l.runningScripts.length-1;t>=0;--t)!0===s&&l.runningScripts[t].pid==e.pid||(Object(L.a)({runningScript:l.runningScripts[t],hostname:l.hostname}),++c);return o.a.emit(),n.log(()=>`Killing all scripts on '${l.hostname}'. May take a few minutes for the scripts to die.`),c>0},exit:t=>()=>{e.running=!1,Object(L.a)(e)?t.log(()=>"Exiting..."):t.log(()=>"Failed. This is a bug. Report to dev.")},scp:n=>async(a,r,i)=>{const o=n.helper.string("hostname1",r),s=n.helper.ustring("hostname2",i);if(Array.isArray(a)){const t=a;if(0===t.length)throw n.makeRuntimeErrorMsg("No scripts to copy");let r=!0;return await Promise.all(t.map((async function(t){await se(e).scp(t,o,s)||(r=!1)}))),Promise.resolve(r)}const l=n.helper.string("scriptName",a);if(!Object(S.j)(l))throw n.makeRuntimeErrorMsg(`Invalid filename: '${l}'`);if(!l.endsWith(".lit")&&!Object(y.a)(l)&&!l.endsWith("txt"))throw n.makeRuntimeErrorMsg("Only works for scripts, .lit and .txt files");let c,f;if(null!=s){if(void 0===l||void 0===o||void 0===s)throw n.makeRuntimeErrorMsg("Takes 2 or 3 arguments");c=t(s,n),f=t(o,n)}else{if(null==o)throw n.makeRuntimeErrorMsg("Takes 2 or 3 arguments");if(void 0===l||void 0===o)throw n.makeRuntimeErrorMsg("Takes 2 or 3 arguments");if(c=t(o,n),f=Object(E.d)(e.hostname),null==f)throw n.makeRuntimeErrorMsg("Could not find server hostname for this script. This is a bug. Report to dev.")}if(l.endsWith(".lit")){let e=!1;for(let t=0;t`File '${l}' does not exist.`),Promise.resolve(!1);for(let e=0;e{var e;return`File '${l}' copied over to '${null===(e=c)||void 0===e?void 0:e.hostname}'.`}),Promise.resolve(!0);return c.messages.push(l),n.log(()=>{var e;return`File '${l}' copied over to '${null===(e=c)||void 0===e?void 0:e.hostname}'.`}),Promise.resolve(!0)}if(l.endsWith(".txt")){let e;for(let t=0;t`File '${l}' does not exist.`),Promise.resolve(!1);for(let t=0;t{var e;return`File '${l}' copied over to '${null===(e=c)||void 0===e?void 0:e.hostname}'.`}),Promise.resolve(!0);const t=new C.a(e.fn,e.text);return c.textFiles.push(t),n.log(()=>{var e;return`File '${l}' copied over to '${null===(e=c)||void 0===e?void 0:e.hostname}'.`}),Promise.resolve(!0)}let u=null;for(let e=0;e`File '${l}' does not exist.`),Promise.resolve(!1);for(let e=0;e{var e;return`WARNING: File '${l}' overwritten on '${null===(e=c)||void 0===e?void 0:e.hostname}'`});const t=c.scripts[e];return t.code===u.code||(t.code=u.code,t.ramUsage=u.ramUsage,t.markUpdated()),Promise.resolve(!0)}const m=new p.a(h.a,l);return m.code=u.code,m.ramUsage=u.ramUsage,m.server=c.hostname,c.scripts.push(m),n.log(()=>{var e;return`File '${l}' copied over to '${null===(e=c)||void 0===e?void 0:e.hostname}'.`}),new Promise(e=>{null!==c?m.updateRamUsage(h.a,c.scripts).then(()=>e(!0)):e(!1)})},ls:e=>(n,a="")=>{const r=e.helper.string("hostname",n),i=e.helper.string("grep",a),o=t(r,e);let s="";void 0!==a&&(s=i.toString());const l=[];for(let e=0;e()=>ne.b.map(e=>({timeOfDeath:e.timeOfDeath,...le(e.runningScript)})),ps:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n),o=[];for(const e of i.runningScripts)o.push({filename:e.filename,threads:e.threads,args:e.args.slice(),pid:e.pid});return o},hasRootAccess:e=>n=>{const a=e.helper.string("hostname",n);return t(a,e).hasAdminRights},getHostname:t=>()=>{const n=Object(E.d)(e.hostname);if(null==n)throw t.makeRuntimeErrorMsg("Could not find server. This is a bug. Report to dev.");return n.hostname},getHackingLevel:e=>()=>(h.a.updateSkillLevels(),e.log(()=>"returned "+h.a.hacking),h.a.hacking),getHackingMultipliers:()=>()=>({chance:h.a.mults.hacking_chance,speed:h.a.mults.hacking_speed,money:h.a.mults.hacking_money,growth:h.a.mults.hacking_grow}),getHacknetMultipliers:()=>()=>({production:h.a.mults.hacknet_node_money,purchaseCost:h.a.mults.hacknet_node_purchase_cost,ramCost:h.a.mults.hacknet_node_ram_cost,coreCost:h.a.mults.hacknet_node_core_cost,levelCost:h.a.mults.hacknet_node_level_cost}),getBitNodeMultipliers:e=>()=>{if(h.a.sourceFileLvl(5)<=0&&5!==h.a.bitNodeN)throw e.makeRuntimeErrorMsg("Requires Source-File 5 to run.");return Object.assign({},s.a)},getServer:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n),o=Object.assign({},i);return o.contracts=[],o.messages=[],o.runningScripts=[],o.scripts=[],o.textFiles=[],o.programs=[],o.serversOnNetwork=[],o.baseDifficulty||(o.baseDifficulty=0),o.hackDifficulty||(o.hackDifficulty=0),o.minDifficulty||(o.minDifficulty=0),o.moneyAvailable||(o.moneyAvailable=0),o.moneyMax||(o.moneyMax=0),o.numOpenPortsRequired||(o.numOpenPortsRequired=0),o.openPortCount||(o.openPortCount=0),o.requiredHackingSkill||(o.requiredHackingSkill=0),o.serverGrowth||(o.serverGrowth=0),o},getServerMoneyAvailable:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?fe(r,"getServerMoneyAvailable")?0:"home"==r.hostname?(e.log(()=>"returned player's money: "+T.a.formatMoney(h.a.money)),h.a.money):(e.log(()=>`returned ${T.a.formatMoney(r.moneyAvailable)} for '${r.hostname}'`),r.moneyAvailable):(e.log(()=>"Cannot be executed on this server."),0)},getServerSecurityLevel:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?fe(r,"getServerSecurityLevel")?1:(e.log(()=>`returned ${T.a.formatServerSecurity(r.hackDifficulty)} for '${r.hostname}'`),r.hackDifficulty):(e.log(()=>"Cannot be executed on this server."),1)},getServerBaseSecurityLevel:e=>n=>{const a=e.helper.string("hostname",n);e.log(()=>"getServerBaseSecurityLevel is deprecated because it's not useful.");const r=t(a,e);return r instanceof w.a?fe(r,"getServerBaseSecurityLevel")?1:(e.log(()=>`returned ${T.a.formatServerSecurity(r.baseDifficulty)} for '${r.hostname}'`),r.baseDifficulty):(e.log(()=>"Cannot be executed on this server."),1)},getServerMinSecurityLevel:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?fe(r,"getServerMinSecurityLevel")?1:(e.log(()=>`returned ${T.a.formatServerSecurity(r.minDifficulty)} for ${r.hostname}`),r.minDifficulty):(e.log(()=>"Cannot be executed on this server."),1)},getServerRequiredHackingLevel:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?fe(r,"getServerRequiredHackingLevel")?1:(e.log(()=>`returned ${T.a.formatSkill(r.requiredHackingSkill)} for '${r.hostname}'`),r.requiredHackingSkill):(e.log(()=>"Cannot be executed on this server."),1)},getServerMaxMoney:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?fe(r,"getServerMaxMoney")?0:(e.log(()=>`returned ${T.a.formatMoney(r.moneyMax)} for '${r.hostname}'`),r.moneyMax):(e.log(()=>"Cannot be executed on this server."),0)},getServerGrowth:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?fe(r,"getServerGrowth")?1:(e.log(()=>`returned ${r.serverGrowth} for '${r.hostname}'`),r.serverGrowth):(e.log(()=>"Cannot be executed on this server."),1)},getServerNumPortsRequired:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return r instanceof w.a?fe(r,"getServerNumPortsRequired")?5:(e.log(()=>`returned ${r.numOpenPortsRequired} for '${r.hostname}'`),r.numOpenPortsRequired):(e.log(()=>"Cannot be executed on this server."),5)},getServerRam:e=>n=>{const a=e.helper.string("hostname",n);e.log(()=>"getServerRam is deprecated in favor of getServerMaxRam / getServerUsedRam");const r=t(a,e);return e.log(()=>`returned [${T.a.formatRAM(r.maxRam)}, ${T.a.formatRAM(r.ramUsed)}]`),[r.maxRam,r.ramUsed]},getServerMaxRam:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return e.log(()=>"returned "+T.a.formatRAM(r.maxRam)),r.maxRam},getServerUsedRam:e=>n=>{const a=e.helper.string("hostname",n),r=t(a,e);return e.log(()=>"returned "+T.a.formatRAM(r.ramUsed)),r.ramUsed},serverExists:e=>t=>{const n=e.helper.string("hostname",t);return null!==Object(E.d)(n)},fileExists:n=>(a,r=e.hostname)=>{const i=n.helper.string("filename",a),o=n.helper.string("hostname",r);if(void 0===i)throw n.makeRuntimeErrorMsg("Usage: fileExists(scriptname, [server])");const s=t(o,n);for(let e=0;e(t,n,...r)=>{const i=e.helper.scriptIdentifier(t,n,r);return null!==a(e,i)},getPurchasedServerLimit:()=>()=>Object(k.b)(),getPurchasedServerMaxRam:()=>()=>Object(k.c)(),getPurchasedServerCost:e=>t=>{const n=e.helper.number("ram",t),a=Object(k.a)(n);return a===1/0?(e.log(()=>`Invalid argument: ram='${n}'`),1/0):a},purchaseServer:e=>(t,n)=>{const a=e.helper.string("name",t),r=e.helper.number("ram",n);let i=String(a);if(i=i.replace(/\s+/g,""),""==i)return e.log(()=>`Invalid argument: hostname='${i}'`),"";if(h.a.purchasedServers.length>=Object(k.b)())return e.log(()=>`You have reached the maximum limit of ${Object(k.b)()} servers. You cannot purchase any more.`),"";const o=Object(k.a)(r);if(o===1/0)return r>Object(k.c)()?e.log(()=>`Invalid argument: ram='${r}' must not be greater than getPurchaseServerMaxRam`):e.log(()=>`Invalid argument: ram='${r}' must be a positive power of 2`),"";if(h.a.money"Not enough money to purchase server. Need "+T.a.formatMoney(o)),"";const s=Object(v.g)({ip:Object(E.e)(),hostname:i,organizationName:"",isConnectedTo:!1,adminRights:!0,purchasedByPlayer:!0,maxRam:r});Object(E.a)(s),h.a.purchasedServers.push(s.hostname);const l=h.a.getHomeComputer();return l.serversOnNetwork.push(s.hostname),s.serversOnNetwork.push(l.hostname),h.a.loseMoney(o,"servers"),e.log(()=>`Purchased new server with hostname '${s.hostname}' for ${T.a.formatMoney(o)}`),s.hostname},deleteServer:t=>n=>{const a=t.helper.string("name",n);let r=String(a);r=r.replace(/\s\s+/g,"");const i=Object(E.d)(r);if(!(i instanceof w.a))return t.log(()=>`Invalid argument: hostname='${r}'`),!1;if(!i.purchasedByPlayer||"home"===i.hostname)return t.log(()=>"Cannot delete non-purchased server."),!1;const o=i.hostname;if(i.isConnectedTo)return t.log(()=>"You are currently connected to the server you are trying to delete."),!1;if(o===e.hostname)return t.log(()=>"Cannot delete the server this script is running on."),!1;if(i.runningScripts.length>0)return t.log(()=>`Cannot delete server '${o}' because it still has scripts running.`),!1;let s=!1;for(let e=0;e`Could not identify server ${o} as a purchased server. This is a bug. Report to dev.`),!1;Object(E.b)(o),s=!1;const l=h.a.getHomeComputer();for(let e=0;e"Deleted server '"+r),!0;return t.log(()=>`Could not find server ${o} as a purchased server. This is a bug. Report to dev.`),!1},getPurchasedServers:()=>()=>{const e=[];return h.a.purchasedServers.forEach((function(t){e.push(t)})),e},writePort:e=>(t,n="")=>{const a=e.helper.number("port",t);if("string"!=typeof n&&"number"!=typeof n)throw e.makeRuntimeErrorMsg("Trying to write invalid data to a port: only strings and numbers are valid.");const r=be.getValidPort("writePort",a);return Promise.resolve(r.write(n))},write:t=>(n,a="",r="a")=>{const i=t.helper.string("port",n),o=t.helper.string("mode",r);if(Object(P.a)(i)){let n=i;if(!Object(S.j)(n))throw t.makeRuntimeErrorMsg("Invalid filepath: "+n);0===n.lastIndexOf("/")&&(n=Object(S.k)(n));try{a=String(a)}catch(e){throw t.makeRuntimeErrorMsg(`Invalid data (${String(e)}). Data being written must be convertible to a string`)}const r=e.getServer();if(null==r)throw t.makeRuntimeErrorMsg("Error getting Server. This is a bug. Report to dev.");if(Object(y.a)(n)){let t=e.getScriptOnServer(n,r);return null==t?(t=new p.a(h.a,n,String(a),r.hostname,r.scripts),r.scripts.push(t),t.updateRamUsage(h.a,r.scripts)):("w"===o?t.code=String(a):t.code+=a,t.updateRamUsage(h.a,r.scripts))}{const e=Object(C.c)(n,r);if(null==e)return Object(C.b)(n,String(a),r),Promise.resolve();"w"===o?e.write(String(a)):e.append(String(a))}return Promise.resolve()}throw t.makeRuntimeErrorMsg("Invalid argument: "+i)},tryWritePort:e=>(t,n="")=>{let a=e.helper.number("port",t);if("string"!=typeof n&&"number"!=typeof n)throw ue("tryWritePort","Trying to write invalid data to a port: only strings and numbers are valid.");if(isNaN(a))throw e.makeRuntimeErrorMsg("Invalid argument: "+a);{if(a=Math.round(a),a<1||a>l.a.NumNetscriptPorts)throw ue("tryWritePort",`Invalid port: ${a}. Only ports 1-${l.a.NumNetscriptPorts} are valid.`);const t=x.a[a-1];if(null==t||!(t instanceof Object))throw e.makeRuntimeErrorMsg(`Could not find port: ${a}. This is a bug. Report to dev.`);return Promise.resolve(t.tryWrite(n))}},readPort:e=>t=>{const n=e.helper.number("port",t);return be.getValidPort("readPort",n).read()},read:t=>n=>{const a=t.helper.string("port",n);if(Object(P.a)(a)){const n=a,r=Object(E.d)(e.hostname);if(null==r)throw t.makeRuntimeErrorMsg("Error getting Server. This is a bug. Report to dev.");if(Object(y.a)(n)){const t=e.getScriptOnServer(n,r);return null==t?"":t.code}{const e=Object(C.c)(n,r);return null!==e?e.text:""}}throw t.makeRuntimeErrorMsg("Invalid argument: "+a)},peek:e=>t=>{const n=e.helper.number("port",t);return be.getValidPort("peek",n).peek()},clear:t=>n=>{const a=t.helper.string("file",n);if(!Object(P.a)(a))throw t.makeRuntimeErrorMsg("Invalid argument: "+a);{const n=a,r=Object(E.d)(e.hostname);if(null==r)throw t.makeRuntimeErrorMsg("Error getting Server. This is a bug. Report to dev.");const i=Object(C.c)(n,r);null!=i&&i.write("")}},clearPort:e=>t=>{const n=e.helper.number("port",t);be.getValidPort("clearPort",n).clear()},getPortHandle:e=>t=>{const n=e.helper.number("port",t);return be.getValidPort("getPortHandle",n)},rm:n=>(a,r=e.hostname)=>{const i=n.helper.string("fn",a),o=n.helper.string("hostname",r),s=t(o,n).removeFile(i);return s.res||n.log(()=>s.msg+""),s.res},scriptRunning:e=>(n,a)=>{const r=e.helper.string("scriptname",n),i=e.helper.string("hostname",a),o=t(i,e);for(let e=0;e(n,a)=>{const r=e.helper.string("scriptname",n),i=e.helper.string("hostname",a),o=t(i,e);let s=!1;for(let e=0;e()=>e.name,getScriptRam:n=>(a,r=e.hostname)=>{const i=n.helper.string("scriptname",a),o=n.helper.string("hostname",r),s=t(o,n);for(let e=0;e(t,n,...r)=>{const i=e.helper.scriptIdentifier(t,n,r),o=a(e,i);return null===o?null:le(o)},getHackTime:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n);return i instanceof w.a?fe(i,"getHackTime")?1/0:1e3*Object(c.d)(i,h.a):(n.log(()=>"invalid for this kind of server"),1/0)},getGrowTime:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n);return i instanceof w.a?fe(i,"getGrowTime")?1/0:1e3*Object(c.a)(i,h.a):(n.log(()=>"invalid for this kind of server"),1/0)},getWeakenTime:n=>(a=e.hostname)=>{const r=n.helper.string("hostname",a),i=t(r,n);return i instanceof w.a?fe(i,"getWeakenTime")?1/0:1e3*Object(c.f)(i,h.a):(n.log(()=>"invalid for this kind of server"),1/0)},getTotalScriptIncome:()=>()=>{let e=0;for(const t of O.a.values())e+=t.scriptRef.onlineMoneyMade/t.scriptRef.onlineRunningTime;return[e,h.a.scriptProdSinceLastAug/(h.a.playtimeSinceLastAug/1e3)]},getScriptIncome:e=>(t,n,...r)=>{const i=e.helper.scriptIdentifier(t,n,r),o=a(e,i);return null==o?(e.log(()=>ce(i)),-1):o.onlineMoneyMade/o.onlineRunningTime},getTotalScriptExpGain:()=>()=>{let e=0;for(const t of O.a.values())e+=t.scriptRef.onlineExpGained/t.scriptRef.onlineRunningTime;return e},getScriptExpGain:e=>(t,n,...r)=>{const i=e.helper.scriptIdentifier(t,n,r),o=a(e,i);return null==o?(e.log(()=>ce(i)),-1):o.onlineExpGained/o.onlineRunningTime},nFormat:e=>(t,n)=>{const a=e.helper.number("n",t),r=e.helper.string("format",n);return isNaN(a)?"":T.a.format(a,r)},tFormat:e=>(t,n=!1)=>{const a=e.helper.number("milliseconds",t),r=be.boolean(n);return Object(A.d)(a,r)},getTimeSinceLastAug:()=>()=>h.a.playtimeSinceLastAug,alert:e=>t=>{const n=e.helper.string("message",t);Object(J.a)(n)},toast:e=>(t,n=X.d.SUCCESS,a=2e3)=>{const r=e.helper.string("message",t),i=e.helper.string("variant",n),o=e.helper.number("duration",a);if(!Object(Q.a)(X.d,i))throw new Error("variant must be one of "+Object.values(X.d).join(", "));X.b.emit(r,i,o)},prompt:e=>(t,n)=>{const a=e.helper.string("txt",t);return new Promise((function(e){b.a.emit({txt:a,options:n,resolve:e})}))},wget:n=>async(a,i,o=e.hostname)=>{const s=n.helper.string("url",a),l=n.helper.string("target",i),c=n.helper.string("hostname",o);if(!Object(y.a)(l)&&!l.endsWith(".txt"))return n.log(()=>`Invalid target file: '${l}'. Must be a script or text file.`),Promise.resolve(!1);const f=t(c,n);return new Promise((function(e){r.a.get(s,(function(t){let a;return a=Object(y.a)(l)?f.writeToScriptFile(h.a,l,t):f.writeToTextFile(l,t),a.success?a.overwritten?(n.log(()=>`Successfully retrieved content and overwrote '${l}' on '${c}'`),e(!0)):(n.log(()=>`Successfully retrieved content to new file '${l}' on '${c}'`),e(!0)):(n.log(()=>"Failed."),e(!1))}),"text").fail((function(t){return n.log(()=>JSON.stringify(t)),e(!1)}))}))},getFavorToDonate:()=>()=>Math.floor(l.a.BaseFavorToDonate*s.a.RepToDonateToFaction),getOwnedSourceFiles:()=>()=>{const e=[];for(let t=0;t()=>{const e={hacking:h.a.hacking,hp:h.a.hp,max_hp:h.a.max_hp,strength:h.a.strength,defense:h.a.defense,dexterity:h.a.dexterity,agility:h.a.agility,charisma:h.a.charisma,intelligence:h.a.intelligence,hacking_exp:h.a.hacking_exp,strength_exp:h.a.strength_exp,defense_exp:h.a.defense_exp,dexterity_exp:h.a.dexterity_exp,agility_exp:h.a.agility_exp,charisma_exp:h.a.charisma_exp,hacking_chance_mult:h.a.mults.hacking_chance,mults:JSON.parse(JSON.stringify(h.a.mults)),numPeopleKilled:h.a.numPeopleKilled,money:h.a.money,city:h.a.city,location:h.a.location,hasWseAccount:h.a.hasWseAccount,hasTixApiAccess:h.a.hasTixApiAccess,has4SData:h.a.has4SData,has4SDataTixApi:h.a.has4SDataTixApi,bitNodeN:h.a.bitNodeN,totalPlaytime:h.a.totalPlaytime,playtimeSinceLastAug:h.a.playtimeSinceLastAug,playtimeSinceLastBitnode:h.a.playtimeSinceLastBitnode,jobs:{},factions:h.a.factions.slice(),tor:h.a.hasTorRouter(),inBladeburner:h.a.inBladeburner(),hasCorporation:h.a.hasCorporation(),entropy:h.a.entropy};return Object.assign(e.jobs,h.a.jobs),e},atExit:t=>n=>{if("function"!=typeof n)throw t.makeRuntimeErrorMsg("argument should be function");e.atExit=()=>{n()}},mv:e=>(n,a,r)=>{const i=e.helper.string("host",n),o=e.helper.string("source",a),s=e.helper.string("destination",r);if(!Object(S.j)(o))throw e.makeRuntimeErrorMsg(`Invalid filename: '${o}'`);if(!Object(S.j)(s))throw e.makeRuntimeErrorMsg(`Invalid filename: '${s}'`);const l=o.endsWith(".txt"),c=s.endsWith(".txt");if(!Object(y.a)(o)&&!l)throw e.makeRuntimeErrorMsg("'mv' can only be used on scripts and text files (.txt)");if(l!=c)throw e.makeRuntimeErrorMsg("Source and destination files must have the same type");if(o===s)return;const f=t(i,e);if(!l&&f.isRunning(o))throw e.makeRuntimeErrorMsg("Cannot use 'mv' on a script that is running");const u=l?f.textFiles:f.scripts;let m=null,h=null;for(let e=0;eString(e)))},...Object(D.a)(h.a)};const ke=Object.fromEntries([...function e(t,n){const a=[];for(const[r,i]of Object.entries(t))"args"!==r&&("function"==typeof i?a.push(n+r):"object"==typeof i&&a.push(...e(i,r+".")));return a}(ve,"")].map(e=>[e,!0])),we=Object(re.a)(be,{},e,ve);return we.args=ve.args,we.enums=ve.enums,we}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var a=n(155),r=n(103);function i(e,t){const n=e.organizationName;let i=null;if("string"==typeof n&&""!==n&&(i=r.a[n]),!(i instanceof a.a))return;const o=t/e.moneyMax;Math.random()t&&(n=1),this.wanted=n,this.wanted<1&&(this.wanted=1)}t.gainMoney(n*e,"gang")}processTerritoryAndPowerGains(e=1){if(this.storedTerritoryAndPowerCycles+=e,this.storedTerritoryAndPowerCycles0&&(this.territoryClashChance=Math.max(0,this.territoryClashChance-.01));const n=c.a.Names.filter(e=>m.a[e].territory>0||e===t);if(n.length>1)for(let e=0;et!==n[e]),i=Object(l.a)(0,r.length-1),o=n[e],s=r[i];if(!(o!==t&&s!==t||Math.random()e.territory).reduce((e,t)=>e+t,0);Object.values(m.a).forEach(e=>e.territory/=u)}}processExperienceGains(e=1){for(let t=0;t=0;--e){const n=this.members[e];if("Territory Warfare"!==n.task)continue;const a=t/Math.pow(n.def,.6);Math.random()=c.a.MaximumGangMembers)&&this.respect>=this.getRespectNeededToRecruitMember()}getRespectNeededToRecruitMember(){if(this.members.length<3)return 0;const e=this.members.length-2;return Math.pow(5,e)}recruitMember(e){if(""===(e=String(e))||!this.canRecruitMember())return!1;if(this.members.filter(t=>t.name===e).length>=1)return!1;const t=new h.a(e);return this.members.push(t),!0}getWantedPenalty(){return this.respect/(this.respect+this.wanted)}calculatePower(){let e=0;for(let t=0;t"Ascended Gang member "+e.name),n}catch(e){throw null==t&&Object(s.a)(e),e}}getDiscount(){const e=this.getPower(),t=this.respect,n=Math.pow(t,.01)+t/5e6+Math.pow(e,.01)+e/1e6-1;return Math.max(1,n)}getAllTaskNames(){return Object.keys(u.a).filter(e=>{const t=u.a[e];return null!=t&&("Unassigned"!==t.name&&(this.isHackingGang===t.isHacking||!this.isHackingGang===t.isCombat))})}getUpgradeCost(e){return null==e?1/0:e.cost/this.getDiscount()}toJSON(){return Object(o.b)("Gang",this)}static fromJSON(e){return Object(o.a)(p,e.data)}}o.c.constructors.Gang=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(12);function r(e,t){return e/a.a.DonateMoneyToRepDivisor*t.mults.faction_rep}},,,,,,function(e,t,n){"use strict";function a(e,t,n=!1){let a="";const r=e.jobStatReqOffset,i=t.requiredHacking>0?t.requiredHacking+r:0,o=t.requiredStrength>0?t.requiredStrength+r:0,s=t.requiredDefense>0?t.requiredDefense+r:0,l=t.requiredDexterity>0?t.requiredDexterity+r:0,c=t.requiredDexterity>0?t.requiredDexterity+r:0,f=t.requiredCharisma>0?t.requiredCharisma+r:0,u=t.requiredReputation;return n?(a="Requires:
",a+=i.toString()+" hacking
",a+=o.toString()+" strength
",a+=s.toString()+" defense
",a+=l.toString()+" dexterity
",a+=c.toString()+" agility
",a+=f.toString()+" charisma
",a+=u.toString()+" reputation"):(a="(Requires ",i>0&&(a+=i+" hacking, "),o>0&&(a+=o+" strength, "),s>0&&(a+=s+" defense, "),l>0&&(a+=l+" dexterity, "),c>0&&(a+=c+" agility, "),f>0&&(a+=f+" charisma, "),u>1&&(a+=u+" reputation, "),a=a.substring(0,a.length-2),a+=")"),a}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));const a=["Type 'help name' to learn more about the command "," ",' 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/-a/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 [hostname] Connects to a remote server"," cp [src] [dst] Copy a file"," 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"," grow Spoof money in a servers bank account, increasing the amount available."," hack Hack the current machine"," help [command] Display this help text, or the help text for a command"," history [-c] Display the terminal history"," home Connect to home computer"," hostname Displays the hostname 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 one or more scripts or text files"," ps Display all scripts that are currently running"," rm [file] Delete a file from the server"," run [name] [-t n] [--tail] [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"," top Displays all running scripts and their RAM usage"," unalias [alias name] Deletes the specified alias"," vim [file ...] Text editor - Open up and edit one or more scripts or text files in vim mode"," weaken Reduce the security of the current machine"," wget [url] [target file] Retrieves code/text from a web server"," "],r=e=>[`Usage: ${e} [file ...] | [glob]`," ","Opens up the specified file(s) in the Script Editor. Only scripts (.js, .ns, .script) or text files (.txt) ","can be edited using the Script Editor. If a file does not exist a new one will be created"," ",`If provided a glob as the only argument, ${e} can spider directories and open all matching `,`files at once. ${e} cannot create files using globs, so your scripts must already exist.`," ","Examples:"," ",` ${e} test.js`,` ${e} test.js test2.js`," ",` ${e} test.*`,` ${e} /my-dir/*.js`," "],i={alias:['Usage: 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:["Usage: analyze"," ","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:["Usage: backdoor"," ","Install a backdoor on the current machine, grants a secret bonus depending on the machine."," ","Requires root access to run."," "],buy:["Usage: buy [-l / -a / 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."," ","If this command is ran with the '-a' flag, it will attempt to purchase all unowned programs."," ","Otherwise, the name of the program must be passed in as a parameter. This name is NOT case-sensitive."," "],cat:["Usage: cat [file]"," ","Display message (.msg), literature (.lit), or text (.txt) files. Examples:"," "," cat j1.msg"," "," cat foo.lit"," "," cat servers.txt"," "],cd:["Usage: 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:["Usage: 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:["Usage: 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:["Usage: 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:["Usage: connect [hostname]"," ","Connect to a remote server. The hostname 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 and the ones that have","a backdoor installed can be connected to. To see which servers can be connected to, use the 'scan' command."," "],cp:["Usage: cp [src] [dst]"," ","Copy a file on this server. To copy a file to another server use scp."," "],download:["Usage: 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:["Usage: 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:["Usage: free"," ","Displays 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."," "],grow:["Usage: grow"," ","Spoof transactions in the current server. Increasing the money available by hacking. Requires root access.","See the wiki page for hacking mechanics."," "],hack:["Usage: hack"," ","Attempt to hack the current server. Requires root access in order to be run. See the wiki page for hacking mechanics"," "],help:["Usage: 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"," "],history:["Usage: history [-c]"," ","Without arguments, displays the terminal command history. To clear the history, pass in the '-c' argument."," "],home:["Usage: home"," ","Connect to your home computer. This will work no matter what server you are currently connected to."," "],hostname:["Usage: hostname"," ","Prints the hostname of the current server"," "],kill:["Usage: kill [script name] [args...] or 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:["Usage: 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:["Usage: ls [dir] [-l] [--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 '-l' optional parameter allows you to force each item onto a single line."," ","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 -l --grep .script"," ","List all files with the '.js' extension in the root directory:"," "," ls / -l --grep .js"," ","List all files with the word 'purchase' in the filename, in the 'scripts' directory:"," "," ls scripts -l --grep purchase"," "],lscpu:["Usage: lscpu"," ","Prints the number of CPU Cores the current server has"," "],mem:["Usage: 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:["Usage: 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:r("nano"),ps:["Usage: ps"," ","Prints all scripts that are running on the current server"," "],rm:["Usage: 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:["Usage: run [file name] [-t] [num threads] [args...]"," ","Execute a program, script or coding contract."," ","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:["Usage: 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":["Usage: 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:["Usage: scp [filename ...] [target server]"," ","Copies the specified file(s) from the current server to the target server. ","This command only works for script files (.script or .js 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. Examples:"," "," scp foo.script n00dles"," "," scp foo.script bar.script n00dles"," "],sudov:["Usage: sudov"," ","Prints whether or not you have root access to the current machine"," "],tail:["Usage: 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"," "],top:["Usage: 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:["Usage: 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'"," "],vim:r("vim"),weaken:["Usage: weaken"," ","Reduces the security level of the current server. Decreasing the time it takes for all operations on this server.","Requires root access. See the wiki page for hacking mechanics."," "],wget:["Usage: 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";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var a,r,i=n(27),o=n(256),s=n(12);!function(e){e[e.Production=0]="Production",e[e.Development=1]="Development"}(a||(a={})),function(e){e[e.Browser=0]="Browser",e[e.Steam=1]="Steam"}(r||(r={}));const l="https://github.com/danielyxie/bitburner/issues/new";function c(e,t,n){var c,f,u,m;const h=function(e,t,n){const i=navigator.userAgent.toLowerCase().indexOf(" electron/")>-1,l=a.Production,c={version:s.a.VersionString,hash:Object(o.a)(),toDisplay:()=>`v${s.a.VersionString} (${Object(o.a)()})`},f={userAgent:navigator.userAgent,language:navigator.language,cookiesEnabled:navigator.cookieEnabled,doNotTrack:navigator.doNotTrack,indexedDb:!!window.indexedDB};return{platform:i?r.Steam:r.Browser,environment:l,version:c,features:f,error:e,errorInfo:t,page:n}}(e,t,n),d=h.error.fileName,p=`lang=${h.features.language} cookiesEnabled=${h.features.cookiesEnabled.toString()} doNotTrack=${null!==(c=h.features.doNotTrack)&&void 0!==c?c:"null"} indexedDb=${h.features.indexedDb.toString()}`,g=`${h.error.name}: ${h.error.message}${h.page&&` (at "${i.a[h.page]}")`}`,y=`\n## ${g}\n\n### How did this happen?\n\nPlease fill this information with details if relevant.\n\n- [ ] Save file\n- [ ] Minimal scripts to reproduce the issue\n- [ ] Steps to reproduce\n\n### Environment\n\n* Error: ${null!==(f=null===(u=h.error)||void 0===u?void 0:u.toString())&&void 0!==f?f:"n/a"}\n* Page: ${h.page?i.a[h.page]:"n/a"}\n* Version: ${h.version.toDisplay()}\n* Environment: ${a[h.environment]}\n* Platform: ${r[h.platform]}\n* UserAgent: ${navigator.userAgent}\n* Features: ${p}\n* Source: ${null!=d?d:"n/a"}\n\n${h.environment===a.Development?`\n### Stack Trace\n\`\`\`\n${null===(m=h.errorInfo)||void 0===m?void 0:m.componentStack.toString().trim()}\n\`\`\`\n`:""}\n### Save\n\`\`\`\nCopy your save here if possible\n\`\`\`\n`.trim();return{metadata:h,fileName:d,features:p,title:g,body:y,issueUrl:`${l}?title=${encodeURIComponent(g)}&body=${encodeURIComponent(y)}`}}},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(33);function r(e){const t=Math.max(Math.min(e,255),0);return Object(a.a)(0,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(33);const r={Tracking:()=>Object(a.a)(5,75)/10,"Bounty Hunter":()=>Object(a.a)(5,75)/10,Retirement:()=>Object(a.a)(5,75)/10,Investigation:()=>Object(a.a)(10,40)/10,"Undercover Operation":()=>Object(a.a)(10,40)/10,"Sting Operation":()=>Object(a.a)(3,40)/10,Raid:()=>Object(a.a)(2,40)/10,"Stealth Retirement Operation":()=>Object(a.a)(1,20)/10,Assassination:()=>Object(a.a)(1,20)/10}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(156);function r(e){const t={},n=Object.keys(a.a);for(let a=0;a{var t;return c.a.createElement(a.a,{sx:{height:"fit-content",p:1}},c.a.createElement(r.a,{variant:"h6"},e.title),(null===(t=e.children)||void 0===t?void 0:t.length)>1?c.a.createElement(i.a,{disablePadding:!0,dense:!0},e.children.filter(e=>e).map((e,t)=>c.a.createElement(o.a,{key:Object(s.uniqueId)(String(t)),sx:{px:0,display:"block"}},e))):e.children)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));class a{constructor(e){this.cards=e}addCards(...e){return new a([...this.cards,...e])}removeByIndex(e){if(e>=this.cards.length)throw new Error("Tried to remove invalid card from Hand by index: "+e);return new a([...this.cards.slice().splice(e,1)])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),r=n(1),i=n(19),o=n(8);function s(e){return a.createElement(i.a,{title:null!=e.tooltip?a.createElement(r.a,null,e.tooltip):""},a.createElement(o.a,{onClick:e.onClick},e.text))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(18),r=n(150),i=n(0),o=n(1404),s=n(662),l=n(102);function c(e){const t=new o.a(e.width,e.height,e.fragments),n=Object(l.d)(e.width,e.height);return i.createElement(a.a,null,i.createElement(r.a,{sx:{width:e.width,height:e.height}},i.createElement(s.a,{width:e.width,height:e.height,ghostGrid:n,gift:t,enter:()=>{},click:()=>{}})))}},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(116),r=n(258),i=n(83),o=n(228),s=n(99),l=n(349),c=n(329);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class u{constructor(e={hostname:"",ip:Object(l.a)()}){f(this,"contracts",[]),f(this,"cpuCores",1),f(this,"ftpPortOpen",!1),f(this,"hasAdminRights",!1),f(this,"hostname",""),f(this,"httpPortOpen",!1),f(this,"ip",""),f(this,"isConnectedTo",!1),f(this,"maxRam",0),f(this,"messages",[]),f(this,"organizationName",""),f(this,"programs",[]),f(this,"ramUsed",0),f(this,"runningScripts",[]),f(this,"scripts",[]),f(this,"serversOnNetwork",[]),f(this,"smtpPortOpen",!1),f(this,"sqlPortOpen",!1),f(this,"sshPortOpen",!1),f(this,"textFiles",[]),f(this,"purchasedByPlayer",!1),this.ip=e.ip?e.ip:Object(l.a)(),this.hostname=e.hostname,this.organizationName=null!=e.organizationName?e.organizationName:"",this.isConnectedTo=null!=e.isConnectedTo&&e.isConnectedTo,this.hasAdminRights=null!=e.adminRights&&e.adminRights}addContract(e){this.contracts.push(e)}getContract(e){for(const t of this.contracts)if(t.fn===e)return t;return null}getRunningScript(e,t){for(const n of this.runningScripts)if(n.filename===e&&Object(c.a)(n.args,t))return n;return null}getScript(e){for(let t=0;tt.fn!==e.fn):this.contracts=this.contracts.filter(t=>t.fn!==e)}removeFile(e){if(e.endsWith(".exe")||null!=e.match(/^.+\.exe-\d+(?:\.\d*)?%-INC$/)){for(let t=0;tt.startsWith(e));t>-1&&this.programs.splice(t,1),this.programs.push(e)}writeToScriptFile(e,t,n){const a={success:!1,overwritten:!1};if(!Object(i.j)(t)||!Object(s.a)(t))return a;for(let r=0;r{h.subscribe(e=>t(e))}),null===e)return r.a.createElement(r.a.Fragment,null);function d(){null!==e&&(e.onClose(),t(null))}const p=o.d[e.c.type],g=[];for(const[t,n]of p.desc(e.c.data).split("\n").entries())g.push(r.a.createElement("span",{key:t,dangerouslySetInnerHTML:{__html:n+"
"}}));return r.a.createElement(l.a,{open:null!==e,onClose:d},r.a.createElement(s.a,{variant:"h4",value:e.c.type}),r.a.createElement(f.a,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."),r.a.createElement("br",null),r.a.createElement(f.a,null,g),r.a.createElement("br",null),r.a.createElement(u.a,{autoFocus:!0,placeholder:"Enter Solution here",value:n,onChange:function(e){c(e.target.value)},onKeyDown:function(t){if(null===e)return;const a=t.target.value;t.key===i.a.ENTER&&""!==a&&(t.preventDefault(),e.onAttempt(n),c(""),d())},InputProps:{endAdornment:r.a.createElement(m.a,{onClick:()=>{e.onAttempt(n),c(""),d()}},"Solve")}}))}},,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return u}));var a=n(0),r=n.n(a),i=n(37),o=n(28),s=n(126),l=n(1),c=n(8);const f=new s.a;function u(){const e=o.b.Router(),[t,n]=Object(a.useState)(!1);return Object(a.useEffect)(()=>f.subscribe(()=>n(!0)),[]),r.a.createElement(i.a,{open:t,onClose:()=>n(!1)},r.a.createElement(l.a,null,"WARNING: USING THIS PROGRAM WILL CAUSE YOU TO LOSE ALL OF YOUR PROGRESS ON THE CURRENT BITNODE.",r.a.createElement("br",null),r.a.createElement("br",null),"Do you want to travel to the BitNode Nexus? This allows you to reset the current BitNode and select a new one."),r.a.createElement("br",null),r.a.createElement("br",null),r.a.createElement(c.a,{onClick:function(){e.toBitVerse(!0,!1),n(!1)}},"Travel to the BitVerse"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var a=n(782),r=n(699),i=n(700),o=n(405),s=n(59),l=n(450),c=n(701),f=n(9),u=n(386),m=n(15),h=n(396),d=n(22),p=n(25),g=n(33),y=n(12),b=n(239);class E{constructor(){this.hacking=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_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.mults=Object(b.a)(),this.money=1e3+y.a.Donations,this.city=m.a.Sector12,this.location=f.a.TravelAgency,this.jobs={},this.currentServer="",this.purchasedServers=[],this.hacknetNodes=[],this.hashManager=new u.a,this.factions=[],this.factionInvitations=[],this.queuedAugmentations=[],this.augmentations=[],this.sourceFiles=[],this.numPeopleKilled=0,this.karma=0,this.hasWseAccount=!1,this.hasTixApiAccess=!1,this.has4SData=!1,this.has4SDataTixApi=!1,this.gang=null,this.corporation=null,this.bladeburner=null,this.sleeves=[],this.sleevesFromCovenant=0,this.bitNodeN=1,this.entropy=0,this.lastUpdate=0,this.lastSave=0,this.totalPlaytime=0,this.playtimeSinceLastAug=0,this.playtimeSinceLastBitnode=0,this.moneySourceA=new h.a,this.moneySourceB=new h.a,this.scriptProdSinceLastAug=0,this.exploits=[],this.achievements=[],this.terminalCommandHistory=[],this.focus=!1,this.currentWork=null,this.identifier=Object(p.e)("I-"+(new Date).getTime()+navigator.userAgent+window.innerWidth+window.innerHeight+Object(g.a)(100,999)),this.init=s.O,this.prestigeAugmentation=s.R,this.prestigeSourceFile=s.S,this.receiveInvite=s.Y,this.calculateSkill=s.o,this.calculateSkillProgress=s.p,this.updateSkillLevels=s.jb,this.resetMultipliers=s.bb,this.hasProgram=s.M,this.setMoney=s.db,this.gainMoney=s.C,this.loseMoney=s.Q,this.canAfford=s.s,this.recordMoneySource=s.Z,this.gainHackingExp=s.A,this.gainStrengthExp=s.E,this.gainDefenseExp=s.y,this.gainDexterityExp=s.z,this.gainAgilityExp=s.v,this.gainCharismaExp=s.w,this.gainIntelligenceExp=s.B,this.gainStats=s.D,this.queryStatFromString=s.T,this.startWork=c.c,this.processWork=c.b,this.finishWork=c.a,this.startFocusing=s.fb,this.stopFocusing=s.gb,this.takeDamage=s.hb,this.regenerateHp=s.ab,this.hospitalize=s.N,this.applyForJob=s.f,this.getNextCompanyPosition=s.H,this.quitJob=s.V,this.hasJob=s.L,this.applyForSoftwareJob=s.m,this.applyForSoftwareConsultantJob=s.l,this.applyForItJob=s.e,this.applyForSecurityEngineerJob=s.j,this.applyForNetworkEngineerJob=s.g,this.applyForBusinessJob=s.c,this.applyForBusinessConsultantJob=s.b,this.applyForSecurityJob=s.k,this.applyForAgentJob=s.a,this.applyForEmployeeJob=s.d,this.applyForPartTimeEmployeeJob=s.h,this.applyForWaiterJob=s.n,this.applyForPartTimeWaiterJob=s.i,this.isQualified=s.P,this.reapplyAllAugmentations=s.W,this.reapplyAllSourceFiles=s.X,this.checkForFactionInvitations=s.t,this.setBitNodeNumber=s.cb,this.queueAugmentation=s.U,this.gainCodingContractReward=s.x,this.travel=s.ib,this.gotoLocation=s.K,this.canAccessGrafting=s.r,this.giveExploit=s.J,this.giveAchievement=s.I,this.getIntelligenceBonus=s.G,this.getCasinoWinnings=s.F,this.hasAugmentation=a.b,this.canAccessBladeburner=r.a,this.inBladeburner=r.b,this.startBladeburner=r.c,this.canAccessCorporation=i.a,this.hasCorporation=i.b,this.startCorporation=i.c,this.canAccessGang=o.a,this.isAwareOfGang=o.f,this.getGangFaction=o.b,this.getGangName=o.c,this.hasGangWith=o.d,this.inGang=o.e,this.startGang=o.g,this.hasTorRouter=l.f,this.getCurrentServer=l.b,this.getHomeComputer=l.c,this.getUpgradeHomeRamCost=l.e,this.getUpgradeHomeCoresCost=l.d,this.createHacknetServer=l.a,this.canAccessCotMG=s.q,this.sourceFileLvl=s.eb,this.applyEntropy=a.a,this.focusPenalty=s.u}whoAmI(){return"Player"}toJSON(){return Object(d.b)("PlayerObject",this)}static fromJSON(e){return Object(d.a)(E,e.data)}}d.c.constructors.PlayerObject=E},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return m}));var a=n(0),r=n.n(a),i=n(105),o=n(37),s=n(28),l=n(126),c=n(1),f=n(8);const u=new l.a;function m(){const[e,t]=Object(a.useState)(null),n=s.b.Player();return Object(a.useEffect)(()=>u.subscribe(e=>t(e)),[]),r.a.createElement(o.a,{open:null!==e,onClose:()=>t(null)},r.a.createElement(c.a,{variant:"h4"},"You have received a faction invitation."),r.a.createElement(c.a,null,"Would you like to join ",(e||{name:""}).name,"? ",r.a.createElement("br",null),r.a.createElement("br",null),"Warning: Joining this faction may prevent you from joining other factions during this run!"),r.a.createElement(f.a,{onClick:function(){if(null===e)return;-1===n.factionInvitations.findIndex(t=>t===e.name)&&console.error("Could not find faction in Player.factionInvitations"),Object(i.d)(e),t(null)}},"Join!"),r.a.createElement(f.a,{onClick:()=>t(null)},"Decide later"))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(259),r=function(e,t,n=0){this.sourceCode=e,this.sourceCodeLineOffset=n,"string"==typeof e&&(e=a.a(e,r.PARSE_OPTIONS)),this.ast=e,this.initFunc_=t,this.paused_=!1,this.polyfills_=[],this.functionCounter_=0,this.stepFunctions_=Object.create(null);var i,o,s=/^step([A-Z]\w*)$/;for(var l in this)"function"==typeof this[l]&&(i=l.match(s))&&(this.stepFunctions_[i[1]]=this[l].bind(this));this.global=this.createScope(this.ast,null),this.ast=a.a(this.polyfills_.join("\n"),r.PARSE_OPTIONS),this.polyfills_=void 0,this.stripLocations_(this.ast,void 0,void 0),(o=new r.State(this.ast,this.global)).done=!1,this.stateStack=[o],this.run(),this.value=void 0,this.ast=e,(o=new r.State(this.ast,this.global)).done=!1,this.stateStack.length=0,this.stateStack[0]=o,this.nodeConstructor=o.node.constructor,this.stateStack=this.stateStack}; +!function(e){function t(t){for(var a,o,s=t[0],l=t[1],c=t[2],u=0,m=[];u