Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nexsight

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nexsight - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

insight.min.js

@@ -1,1 +0,1 @@

!function(){"use strict";var e=["itching","paralysis","fear","brokenrightarm","brokenleftarm","brokenrightleg","brokenleftleg","lapsingconsciousness","aeon","lovers","confusion","epilepsy","pacified","blackout","dazed","justice","slashedthroat","hellsight","peace","dazzled","shyness","dizziness","slickness","asthma","nausea","selarnia","weariness","scytherus","haemophilia","clumsiness","hallucinations","healthleech","dementia","recklessness","anorexia","masochism","impatience","stupidity","generosity","addiction","deadening","manaleech","stuttering","paranoia","agoraphobia","loneliness","claustrophobia","vertigo","hypersomnia","shivering","frozen","burning","sensitivity","hypochondria","lethargy","disloyalty","darkshade","voyria","dissonance","phlogisticated","silver","spiritburn","tenderskin","guilt","skullfractures","wristfractures","crackedribs","torntendons","indifference","retribution","shadowmadness","parasite","depression","timeloop","crushedthroat","tension","unweavingspirit","grievouswounds","pyramides","flushings","rebbies","mycalium","sandfever"],r={ferrum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ferrum",order:["darkshade","haemophilia","lethargy","addiction","scytherus","nausea","flushings","unweavingbody"],prio:0},magnesium:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat magnesium",order:["paralysis","slickness","pyramides"],prio:0},aurum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat aurum",order:["clumsiness","healthleech","sensitivity","weariness","asthma","hypochondria","rebbies","parasite"],prio:0},calamine:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat calamine",order:["undeaf","deafness"],delay:2.5,prio:0},argentum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat argentum",order:["masochism","loneliness","vertigo","recklessness","agoraphobia","guilt","whisperingmadness","spiritburn","tenderskin"],prio:0},cuprum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat cuprum",order:["pacified","peace","lovers","justice","generosity","indifference","retribution","pyre","timeloop"],prio:0},antimony:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat antimony",order:["temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine"],prio:0},arsenic:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat arsenic",order:["unblind"],prio:0},stannum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat stannum",order:["claustrophobia","paranoia","confusion","hypersomnia","hallucinations","dementia"],prio:0},plumbum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["horror","stupidity","epilepsy","dizziness","shyness","impatience","dissonance","depression","sandfever","mycalium","shadowmadness","unweavingmind"],command:"eat plumbum",prio:0},calcite:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["pressure"],command:"eat calcite",prio:0},ginseng:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ginseng",order:["darkshade","haemophilia","lethargy","addiction","scytherus","nausea","flushings","unweavingbody"],prio:0},bloodroot:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bloodroot",order:["paralysis","slickness","pyramides"],prio:0},kelp:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat kelp",order:["clumsiness","healthleech","sensitivity","weariness","asthma","hypochondria","rebbies","parasite"],prio:0},hawthorn:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat hawthorn",order:["undeaf","deafness"],delay:2.5,prio:0},lobelia:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat lobelia",order:["masochism","loneliness","vertigo","recklessness","agoraphobia","guilt","whisperingmadness","spiritburn","tenderskin"],prio:0},bellwort:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bellwort",order:["pacified","peace","lovers","justice","generosity","indifference","retribution","pyre","timeloop"],prio:0},ginger:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ginger",order:["temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine"],prio:0},bayberry:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bayberry",order:["unblind"],prio:0},ash:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ash",order:["claustrophobia","paranoia","confusion","hypersomnia","hallucinations","dementia"],prio:0},goldenseal:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat goldenseal",order:["horror","stupidity","epilepsy","dizziness","shyness","impatience","dissonance","depression","sandfever","mycalium","shadowmadness","unweavingmind"],prio:0},pear:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["pressure"],command:"eat pear",prio:0},smoke:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke cinnabar",order:["aeon","disloyalty","hellsight","manaleech","slickness","deadening","tension","unweavingspirit"],prio:0},cinnabar:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke cinnabar",order:["aeon","deadening","tension","unweavingspirit"],prio:0},malachite:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke malachite",prio:0},realgar:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke realgar",order:["disloyalty","hellsight","manaleech","slickness"],prio:0},elm:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke elm",order:["aeon","deadening","tension","unweavingspirit"],prio:0},skullcap:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke skullcap",prio:0},valerian:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke valerian",order:["disloyalty","hellsight","manaleech","slickness"],prio:0},caloric:{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply caloric",order:["frozen","shivering"],prio:0},"epidermal to body":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to body",order:["anorexia"],prio:0},"epidermal to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to head",order:["blindness","scalded","deafness"],prio:0},"epidermal to ears":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to ears",order:["deafness"],prio:0},"mending to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to head",order:["crushedthroat","dazzled"],prio:0},"mending to arms":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to arms",order:["brokenleftarm","brokenrightarm"],prio:0},"mending to legs":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to legs",order:["brokenleftleg","brokenrightleg"],prio:0},"mending to torso":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to torso",order:["burning"],prio:0},"restoration to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to head",order:["mangledhead","damagedhead","calcifiedskull","concussion","tonguetied"],delay:4,prio:0},"restoration to torso":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to torso",order:["hypothermia","heartseed","serioustrauma","mildtrauma","calcifiedtorso"],delay:4,prio:0},"restoration to arms":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to arms",order:["mangledleftarm","mangledrightarm","damagedleftarm","damagedrightarm"],delay:4,prio:0},"restoration to legs":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to legs",order:["mangledleftleg","mangledrightleg","damagedleftleg","damagedrightleg"],delay:4,prio:0},insomnia:{bals_req:["free"],bals_used:["free"],blocks:["hypersomnia","sleeping"],command:"insomnia",order:["insomnia"],prio:0},focus:{bals_req:["focus"],bals_used:["focus"],blocks:["impatience","sleeping"],command:"focus",order:["stupidity","epilepsy","dizziness","shyness","claustrophobia","paranoia","confusion","hallucinations","dementia","pacified","peace","lovers","generosity","masochism","loneliness","vertigo","recklessness","agoraphobia","anorexia","stuttering"],prio:0},"health to head":{bals_req:["sip"],bals_used:["sip"],command:"apply health to head",order:["skullfractures"],prio:0},"health to torso":{bals_req:["sip"],bals_used:["sip"],command:"apply health to torso",order:["crackedribs","grievouswounds"],prio:0},"health to arms":{bals_req:["sip"],bals_used:["sip"],command:"apply health to arms",order:["wristfractures"],prio:0},"health to legs":{bals_req:["sip"],bals_used:["sip"],command:"apply health to legs",order:["torntendons","latched","kkractlebrand"],prio:0},concentrate:{blocks:["sleeping","confusion"],command:"concentrate",order:["disrupted"],prio:0},immunity:{bals_req:["immunity"],bals_used:["immunity"],blocks:["sleeping","anorexia"],command:"sip immunity",order:["voyria"],prio:0},stand:{bals_req:["balance","equilibrium"],blocks:["death","sleeping","paralysis","brokenrightleg","brokenleftleg","damagedleftleg","damagedrightleg","mangledrightleg","mangledleftleg","entangled","transfixation","impaled","webbed","bound"],command:"stand",order:["prone"],prio:0},tree:{bals_used:["tree"],bals_req:["tree"],blocks:["death","sleeping","paralysis",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],command:"touch tree",order:e,prio:0},health:{bals_req:["sip"],bals_used:["sip"],blocks:["sleeping","anorexia"],command:"sip health",prio:0},mana:{bals_req:["sip"],bals_used:["sip"],blocks:["sleeping","anorexia"],command:"sip mana",prio:0},potash:{bals_req:["moss"],bals_used:["moss"],blocks:["sleeping","anorexia"],command:"eat potash",prio:0},moss:{bals_req:["moss"],bals_used:["moss"],blocks:["sleeping","anorexia"],command:"eat moss",prio:0},fitness:{bals_req:["equilibrium","balance","fitness"],bals_used:["balance","fitness"],blocks:["weariness","sleeping"],skills:["Monk","Runewarden"],command:"fitness",order:["asthma"],prio:0},bloodboil:{bals_req:["equilibrium","balance","bloodboil"],bals_used:["equilibrium","bloodboil"],blocks:["death","haemophilia","sleeping",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],skills:["Magi"],command:"cast bloodboil",order:e,prio:0},restore:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"restore",order:["brokenleftarm","brokenrightarm","brokenleftleg","brokenrightleg","skullfractures","torntendons","wristfractures","crackedribs"],prio:0},dragonflex:{bals_req:["balance"],bals_used:["balance"],command:"dragonflex",skills:["Dragon"],order:["webbed","entangled"],prio:0},dragonheal:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"dragonheal",skills:["Dragon"],blocks:["sleeping",["recklessness","weariness"]],order:e,prio:0},dwinnu:{bals_req:["voice"],bals_used:["voice"],command:"chant dwinnu",skills:["Bard"],order:["webbed","entangled"],prio:0},rage:{bals_req:["rage"],bals_used:["rage"],command:"rage",skills:["Runewarden"],order:["pacified","peace","lovers","generosity"],prio:95},salt:{bals_req:["equilibrium","salt"],bals_used:["salt","equilibrium"],blocks:["stupidity","sleeping"],skills:["Alchemist"],command:"educe salt",order:e,prio:0},siphon:{bals_req:["angel"],bals_used:["angel"],blocks:["sleeping"],skills:["Apostate","Priest"],command:"educe salt",order:e,prio:0},shrugging:{bals_req:["equilibrium","balance","shrugging"],bals_used:["shrugging"],blocks:["weariness","sleeping"],skills:["Serpent"],command:"shrugging",order:e,prio:0},slough:{bals_req:["equilibrium","balance","slough"],bals_used:["slough","balance"],blocks:["weariness","sleeping"],skills:["Fire Elemental Lord"],command:"slough impurities",order:e,prio:0},fool:{bals_req:["equilibrium","balance","fool"],bals_used:["fool","balance"],blocks:["death","prone","paralysis","sleeping",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],skills:["Occultist"],command:"fling fool at me",order:e,prio:0},alleviate:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:["paralysis","sleeping"],skills:["Blademaster"],command:"alleviate",order:e,prio:0},sun:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:[],skills:["Runewarden","Occultist"],command:"sun",order:e,prio:0},generic:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:[],skills:[],command:"sun",order:e,prio:0}};function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function n(e,r){for(var a=0;a<r.length;a++){var n=r[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var t=function(){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;a(this,e),this._name=r,this._enabled=!1,this._t_started=0,this._t_ended=0,this._timerId=0,this._default_length=n,this.setLength(n),this._callbacks=[]}var r,t,s;return r=e,(t=[{key:"length",get:function(){return this._t_length}},{key:"setLength",value:function(e){this._t_length=e,this._t_length_ms=1e3*e}},{key:"reset",value:function(){this.setLength(this._default_length)}},{key:"start",value:function(){this._enabled&&clearTimeout(this._timerId),this._timerId=setTimeout(this.stop.bind(this),this._t_length_ms),this._t_started=performance.now()/1e3,this._enabled=!0}},{key:"stop",value:function(){if(this._enabled&&(clearTimeout(this._timerId),this._t_ended=performance.now()/1e3,this._enabled=!1,this._callbacks))for(var e=0;e<this._callbacks.length;e++)this._callbacks[e](this._t_ended-this._t_started)}},{key:"duration",value:function(){return this._enabled?this.elapsed():this._t_ended-this._t_started}},{key:"elapsed",value:function(){return this._enabled?performance.now()/1e3-this._t_started:0}},{key:"remaining",value:function(){return this._enabled?this._t_length-performance.now()/1e3-this._t_started:0}},{key:"addCallback",value:function(e){this._callbacks.push(e)}},{key:"clearCallbacks",value:function(){this._callbacks=[]}}])&&n(r.prototype,t),s&&n(r,s),Object.defineProperty(r,"prototype",{writable:!1}),e}(),s=t,i={},o=function(e){var a=[];Object.keys(r).forEach((function(n){var t;(null===(t=r[n].order)||void 0===t?void 0:t.indexOf(e))>-1&&a.push(n)}));var n={name:e,probability:0,cures:a,have:!1,got:function(){var r;i[e].have=!0,i[e].probability=1,eventStream.raiseEvent("insightGotAff",i[e]),eventStream.raiseEvent("insightGot".concat(e),i[e]),null===(r=i[e].timer)||void 0===r||r.start()},lost:function(){var r;i[e].have=!1,i[e].probability=0,eventStream.raiseEvent("insightLostAff",i[e]),eventStream.raiseEvent("insightLost".concat(e),i[e]),null===(r=i[e].timer)||void 0===r||r.stop()},reset:function(){var r;i[e].have=!1,i[e].probability=0,null===(r=i[e].timer)||void 0===r||r.stop()}};return Object.keys(c).indexOf(e)>-1&&(n.timer=new s("insightTimer".concat(e),c[e].duration),n.timer.addCallback(n.reset)),n},l=["undeaf","unblind","cleanseaura","addiction","aeon","agoraphobia","airfisted","amnesia","anorexia","asphyxiating","asthma","blackout","bleeding","blindness","blistered","bloodfire","bound","brokenleftarm","brokenrightarm","brokenleftleg","brokenrightleg","bruisedribs","burning","cadmuscurse","calcifiedskull","calcifiedtorso","claustrophobia","clumsiness","coldfate","concussion","condemned","conflagration","confusion","constricted","corruption","crackedribs","cremated","crushedthroat","daeggerimpale","damagedhead","damagedleftarm","damagedleftleg","damagedrightarm","damagedrightleg","darkshade","dazed","dazzled","deadening","deafness","death","deathsickness","deepsleep","degenerate","dehydrated","dementia","demonstain","depression","deteriorate","disloyalty","disrupted","dissonance","dizziness","empoweredmannaz","empoweredloshre","enlightenment","enmesh","ensorcelled","entangled","epilepsy","fear","flamefisted","flushings","frozen","generosity","grievouswounds","guilt","hamstrung","haemophilia","hallucinations","hatred","healthleech","heartseed","hecatecurse","hellsight","hindered","homunculusmercury","horror","hypersomnia","hypochondria","hypothermia","icefisted","impaled","impatience","indifference","inquisition","insomnia","internalbleeding","isolation","itching","justice","kaisurge","kkractlebrand","laceratedthroat","lapsingconsciousness","latched","lethargy","lightbind","loneliness","lovers","lullaby","manaleech","masochism","mildtrauma","mangledleftarm","mangledleftleg","mangledrightarm","mangledrightleg","mangledhead","mindclamp","mindravaged","muddled","mycalium","nausea","numbedleftarm","numbedrightarm","pacified","palpatarfeed","paralysis","paranoia","parasite","peace","penitence","petrified","phlogisticated","pinshot","pressure","prone","pyramides","pyre","rebbies","recklessness","retribution","revealed","sandfever","scalded","scrambledbrains","scytherus","selarnia","sensitivity","serioustrauma","shadowmadness","shivering","shyness","silenced","silver","skullfractures","slashedthroat","sleeping","slickness","slimeobscure","solarburn","spiritburn","stun","stupidity","stuttering","temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine","tenderskin","tension","timeflux","timeloop","tonguetied","torntendons","transfixation","trueblind","unweavingbody","unweavingmind","unweavingspirit","vertigo","vinewreathed","vitiated","vitrified","voidfisted","voyria","waterbonds","weakenedmind","weariness","webbed","whisperingmadness","wristfractures","unconsciousness","harmonic","bop","spiritwrack","bedevil","loki","moon","evileye","dragoncurse","swiftcurse"],c={test:{duration:10},weakenedmind:{duration:60},slimeobscure:{duration:30},palpatarfeed:{duration:20},cleanseaura:{duration:6}};l.forEach((function(e){i[e]=o(e)}));function d(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function m(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var h={},u={insomnia:!0,kola:!0,speed:!0,shield:!0,rebounding:!0,prismatic:!0,cloak:!0,fangbarrier:!0},b=function(){Object.assign(h,function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?d(Object(a),!0).forEach((function(r){m(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},u))};function g(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function p(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var f={},y={hp:2e4,mana:2e4,hpMax:2e4,manaMax:2e4,hpPercent:1,manaPercent:1,soulmaster:!1,enlightened:!1,mentalCount:0,physicalCount:0},v=function(){Object.assign(f,function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?g(Object(a),!0).forEach((function(r){p(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},y))},k={mentals:["claustrophobia","agoraphobia","lovers","dementia","epilepsy","hallucinations","confusion","stupidity","paranoia","vertigo","shyness","addiction","recklessness","masochism"],physicals:["asthma","paralysis","slickness","haemophilia","clumsiness","healthleech","sensitivity","darkshade"],bubonis:["vertigo","recklessness","confusion","masochism","paranoia","shyness","claustrophobia"],chimera:["confusion","hallucinations","agoraphobia","claustrophobia","dementia"],moon:["stupidity","masochism","hallucinations","hypersomnia","confusion","epilepsy","claustrophobia","agoraphobia"],whisperingmadness:["dementia","stupidity","confusion","hypersomnia","paranoia","hallucinations","impatience","addiction","agoraphobia","lovers","loneliness","recklessness","masochism"]};function _(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,r){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=w(e))||r&&e&&"number"==typeof e.length){a&&(e=a);var n=0,t=function(){};return{s:t,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,o=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){o=!0,s=e},f:function(){try{i||null==a.return||a.return()}finally{if(o)throw s}}}}function w(e,r){if(e){if("string"==typeof e)return O(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?O(e,r):void 0}}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,n=new Array(r);a<r;a++)n[a]=e[a];return n}var j=i,q=[[]],x=[],P=[],E={},A={id:""},S=function(e){j[e].got();var r,a=N(q);try{for(a.s();!(r=a.n()).done;){var n=r.value;n.includes(e)||n.push(e)}}catch(e){a.e(e)}finally{a.f()}P.push(e),L()},D=function(e){j[e].lost(),q.forEach((function(r){var a=r.indexOf(e);a>-1&&r.splice(a,1)})),T(),L()},z=function(e){var a,n=N(r[e].order);try{for(n.s();!(a=n.n()).done;){var t=a.value;if(1===i[t].probability)return D(t),!0}}catch(e){n.e(e)}finally{n.f()}return!1},T=function(){var e=!1,r=q;!1===e&&(r.sort(),e=!0);for(var a=function(e){if(r.length>1&&r.length%e==0){for(var a=!0,n=0;n<r.length;n+=e)if(!C(r.slice(n,n+e))){a=!1;break}if(a){for(var t=r.length-(e-1);t>-1;t-=e)r.splice(t,e-1);return r.sort(),!0}return!1}return!1};!0===a(2););[9,7,5,3].forEach((function(e){a(e)}))},L=function(){var e=_(new Set(q.flat())),r=x.filter((function(r){return!e.includes(r)}));r.length>0&&r.forEach((function(e){return j[e].lost()})),(x=e).forEach((function(e){j[e].probability=parseFloat((Math.round(100*function(e){return q.filter((function(r){return r.includes(e)})).length/q.length}(e))/100).toFixed(2))})),eventStream.raiseEvent("insightUpdateAffs")},M=function(e,r){return e.length===r.length&&(e.sort(),r.sort(),!!e.every((function(e,a){return e===r[a]})))},C=function(e){for(var r=1;r<e.length;r++)if(!M(e[0],e[r]))return!1;return!0},H=S,I=D,R=function(e){if(r[e].bals_used.includes("salve")&&z(e))console.log("salveCure() true return");else{var a=r[e].order,n=[],t=!1;q.forEach((function(e){if(e.find((function(e){return a.includes(e)}))){t=!0;var r,s=N(e);try{var i=function(){var t=r.value;if(a.includes(t)){var s=e.filter((function(e){return e!==t}));s.length>0&&n.push(s)}};for(s.s();!(r=s.n()).done;)i()}catch(e){s.e(e)}finally{s.f()}}})),t&&(q=n.length>0?n:[[]]),T(),L(),P.push(e)}},G=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(_(q.map((function(e){return e.slice(0)}))));try{for(n.s();!(a=n.n()).done;){var t=a.value;t.includes(e)||t.push(e),r.push(t)}}catch(e){n.e(e)}finally{n.f()}})),q=r.length>0?r:[[]],T(),L()},B=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(_(q.map((function(e){return e.slice(0)}))));try{for(n.s();!(a=n.n()).done;){var t=a.value;t.includes(e)||(t.push(e),r.push(t.sort()))}}catch(e){n.e(e)}finally{n.f()}})),q.forEach((function(a){e.every((function(e){return a.includes(e)}))&&r.push(a.sort())})),r.length>0&&(q=r),T(),L()},F=function(e,r){var a=j[e].probability;if(!(r&&1===a||!r&&0===a))if(r&&0===j[e].probability)S(e);else if(r||1!==j[e].probability){var n=[];q.forEach((function(a){a.includes(e)===r&&n.push(a)})),q=n,P.push("".concat(e,":").concat(r)),T(),L()}else D(e)},Y=function(){for(var e in q=[[]],x=[],P=[],j){if(Object.hasOwnProperty.call(j,e))j[e].reset()}},U=function(e){var r=e.p,a=e.m,n=_(q);if((n=n.filter((function(e){var n=e.filter((function(e){return k.physicals.includes(e)})),t=e.filter((function(e){return k.mentals.includes(e)}));return n.length<=r&&t.length<=a}))).length<r+a)return console.error("Insight Error: No present branch for physical ".concat(r,", mental ").concat(a)),!1;q=_(n),T(),L()};function W(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function $(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?W(Object(a),!0).forEach((function(r){J(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):W(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function J(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var K=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=document.createElement("span");a.setAttribute("class","mono"),a.appendChild(Object.assign(document.createElement("span"),{style:"color:DarkOrchid",innerHTML:"["})),a.appendChild(Object.assign(document.createElement("span"),{style:"color:Gold",innerHTML:"insight"})),a.appendChild(Object.assign(document.createElement("span"),{style:"color:DarkOrchid",innerHTML:"] "})),r?a.insertAdjacentHTML("beforeend",e):a.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:e})),globalThis.nexusclient.add_html_line(a.outerHTML)},Q={fg:"olive",bg:""},V={fg:"royalblue",bg:""},X={fg:"",bg:""},Z={fg:"ForestGreen",bg:""},ee={fg:"",bg:""},re={fg:"slategray",bg:""},ae={fg:"greenyellow",bg:""},ne={fg:"DeepSkyBlue",bg:""},te={fg:"DarkOrange",bg:""},se={fg:"Red",bg:""},ie={fg:"Gold",bg:""},oe={fg:"firebrick",bg:""},le={fg:"Tan",bg:""},ce={fg:"darkseagreen",bg:""},de={fg:"orchid",bg:""},me={fg:"sienna",bg:""},he={fg:"darkviolet",bg:""},ue={fg:"lightpink",bg:""},be={fg:"paleyellow",bg:"darkslategray"},ge={addiction:$({shortName:"add"},te),aeon:$({shortName:"ae"},ae),agoraphobia:$({shortName:"agor"},V),amnesia:{shortName:"amn",fg:"",bg:""},anorexia:$({shortName:"ANO"},me),asthma:$({shortName:"AST"},Z),blackout:{shortName:"bo",fg:"",bg:""},blindness:$({shortName:"unb"},X),bound:$({shortName:"bnd"},be),brokenleftarm:$({shortName:"la1"},de),brokenleftleg:$({shortName:"ll1"},de),brokenrightarm:$({shortName:"ra1"},de),brokenrightleg:$({shortName:"rl1"},de),bruisedribs:{shortName:"ribs",fg:"",bg:""},burning:$({shortName:"burn"},de),calcifiedskull:$({shortName:"calh"},he),calcifiedtorso:$({shortName:"calt"},he),claustrophobia:$({shortName:"clau"},le),clumsiness:$({shortName:"clu"},Z),concussion:$({shortName:"conc"},he),confusion:$({shortName:"con"},le),corruption:{shortName:"corr",fg:"",bg:""},crackedribs:$({shortName:"cr"},ue),crushedthroat:$({shortName:"cru"},de),daeggerimpale:$({shortName:"daeg"},be),damage:{shortName:"dmg",fg:"tomato",bg:""},damagedleftarm:$({shortName:"la2"},he),damagedleftleg:$({shortName:"ll2"},he),damagedrightarm:$({shortName:"ra2"},he),damagedrightleg:$({shortName:"rl2"},he),damagedhead:$({shortName:"hd2"},he),darkshade:$({shortName:"dark"},te),dazed:$({shortName:"dzd"},ae),dazzled:$({shortName:"dzl"},de),deadening:$({shortName:"dea"},ae),deafness:$({shortName:"und"},ee),dehydrated:{shortName:"deh",fg:"",bg:""},dementia:$({shortName:"dem"},le),depression:$({shortName:"dep"},ie),deteriorate:{shortName:"det",fg:"",bg:""},disloyalty:$({shortName:"disl"},oe),disrupted:{shortName:"disr",fg:"",bg:""},dissonance:$({shortName:"disso"},ie),dizziness:$({shortName:"diz"},ie),enscorcelled:{shortName:"ensor",fg:"",bg:""},entangled:$({shortName:"entgl"},be),epilepsy:$({shortName:"epi"},ie),fear:{shortName:"fear",fg:"",bg:""},flushings:$({shortName:"flush"},te),frozen:$({shortName:"frz"},ce),generosity:$({shortName:"gen"},ne),grievouswounds:$({shortName:"grv"},ue),guilt:$({shortName:"gui"},V),haemophilia:$({shortName:"haem"},te),hallucinations:$({shortName:"hall"},le),hamstrung:{shortName:"hms",fg:"",bg:""},healthleech:$({shortName:"hthl"},Z),heartseed:$({shortName:"heart"},he),hellsight:$({shortName:"hell"},oe),horror:$({shortName:"hor"},ie),hypersomnia:$({shortName:"hypers"},le),hypochondria:$({shortName:"hypoch"},Z),hypothermia:$({shortName:"hypoth"},he),icefisted:{shortName:"ice",fg:"",bg:""},impaled:$({shortName:"impl"},be),impatience:$({shortName:"IMPAT"},ie),indifference:$({shortName:"ind"},ne),itching:$({shortName:"itch"},me),justice:$({shortName:"just"},ne),kkractlebrand:$({shortName:"kkr"},ue),laceratedthroat:$({shortName:"lac2"},he),latched:$({shortName:"latch"},ue),lethargy:$({shortName:"let"},te),lightbind:{shortName:"light",fg:"",bg:""},loneliness:$({shortName:"lon"},V),lovers:$({shortName:"love"},ne),manaleech:$({shortName:"man"},oe),mangledleftarm:$({shortName:"la3"},he),mangledleftleg:$({shortName:"ll3"},he),mangledrightarm:$({shortName:"ra3"},he),mangledrightleg:$({shortName:"rl3"},he),mangledhead:$({shortName:"hd3"},he),masochism:$({shortName:"maso"},V),mildtrauma:$({shortName:"tor1"},he),mycalium:$({shortName:"myc"},ie),nausea:$({shortName:"nau"},te),numbedleftarm:{shortName:"nbla",fg:"",bg:""},numbedrightarm:{shortName:"nbra",fg:"",bg:""},pacified:$({shortName:"pac"},ne),paralysis:$({shortName:"PAR"},se),paranoia:$({shortName:"prn"},le),parasite:$({shortName:"prs"},Z),peace:$({shortName:"pea"},ne),phlogisticated:{shortName:"phlog",fg:"",bg:""},pinshot:{shortName:"psh",fg:"",bg:""},pressure:$({shortName:"pres"},re),prone:{shortName:"pr",fg:"",bg:""},pyramides:$({shortName:"pyra"},se),pyre:$({shortName:"pyre"},ne),rebbies:$({shortName:"reb"},Z),recklessness:$({shortName:"reck"},V),retardation:{shortName:"ret",fg:"",bg:""},retribution:$({shortName:"retr"},ne),revealed:{shortName:"rev",fg:"",bg:""},sandfever:$({shortName:"sand"},ie),scalded:$({shortName:"scald"},me),scytherus:$({shortName:"scy"},te),selarnia:$({shortName:"sel"},de),sensitivity:$({shortName:"sen"},Z),serioustrauma:$({shortName:"tor2"},he),shadowmadness:$({shortName:"shad"},ie),shivering:$({shortName:"shiv"},ce),shyness:$({shortName:"shy"},ie),skullfractures:$({shortName:"sf"},ue),slashedthroat:$({shortName:"lac1"},me),sleeping:{shortName:"slp",fg:"",bg:""},slickness:$({shortName:"SLI"},se),slimeobscure:{shortName:"nkh",fg:"",bg:""},spiritburn:$({shortName:"spirB"},V),spiritwrack:{shortName:"spirW",fg:"",bg:""},stupidity:$({shortName:"st"},ie),stuttering:$({shortName:"stut"},me),homunculusmercury:{shortName:"merc",fg:"",bg:""},temperedcholeric:$({shortName:"choH"},Q),temperedmelancholic:$({shortName:"melaH"},Q),temperedphlegmatic:$({shortName:"phleH"},Q),temperedsanguine:$({shortName:"sanH"},Q),tenderskin:$({shortName:"tend"},V),tension:$({shortName:"tens"},ae),timeflux:{shortName:"tmfx",fg:"",bg:""},timeloop:$({shortName:"tmlp"},ne),tonguetied:$({shortName:"tngt"},he),torntendons:$({shortName:"tt"},ue),transfixation:$({shortName:"trfx"},be),unweavingbody:$({shortName:"unwM"},te),unweavingspirit:$({shortName:"unwS"},ae),unweavingmind:$({shortName:"unwM"},ie),vertigo:$({shortName:"vert"},V),vitrified:{shortName:"vitri",fg:"",bg:""},voidfisted:{shortName:"void",fg:"",bg:""},voyria:{shortName:"voy",fg:"",bg:""},weariness:$({shortName:"wea"},Z),webbed:$({shortName:"web"},be),whisperingmadness:$({shortName:"mad"},V),wristfractures:$({shortName:"wf"},ue)};function pe(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function fe(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var ye=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=i[e];return!!(a.have&&a.probability>=r)},ve=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=!1;return Array.isArray(e)&&(a=e.every((function(e){return x.indexOf(e)>-1&&i[e].probability>=r}))),a},ke=function(e){if(void 0===e||e==A.id)return!0},_e={};function Ne(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function we(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}[{id:"balance",duration:2},{id:"equilibrium",duration:2},{id:"herb",duration:2},{id:"smoke",duration:2},{id:"salve",duration:2},{id:"focus",duration:2},{id:"tree",duration:2}].forEach((function(e){return _e[e.id]=function(e){var r=e.id,a=e.duration,n={name:r,have:!0,got:function(){_e[r].have=!0,eventStream.raiseEvent("insightGotBal",_e[r]),eventStream.raiseEvent("insightGot".concat(r),_e[r]),_e[r].timer.stop()},lost:function(){var e;_e[r].have=!1,eventStream.raiseEvent("insightLostBal",_e[r]),eventStream.raiseEvent("insightLost".concat(r),_e[r]),null===(e=_e[r].timer)||void 0===e||e.start()},reset:function(){_e[r].have=!0,_e[r].timer.stop()},timer:new s("insightTimer".concat(r),a)};return n.timer.addCallback(n.reset),n}(e)}));var Oe={addAff:function(e){var r=e.aff,a=e.player;ke(a)&&void 0!==r&&(H(r),insight.reporting.notices&&K("Added: ".concat(r)))},getAff:function(e){var r=e.aff,a=e.player;if(ke(a)&&void 0!==r)return insight.affs[r]},removeAff:function(e){var r=e.aff,a=e.player;ke(a)&&void 0!==r&&(I(r),insight.reporting.notices&&K("Removed: ".concat(r)))},usedCure:function(e){var a=e.cure;e.player;!function(e){var a,n=null===(a=r[e])||void 0===a?void 0:a.blocks;void 0!==n&&n.forEach((function(e){Array.isArray(e)?ve(e)&&e.forEach((function(e){return F(e,!1)})):ye(e)&&F(e,!1)}))}(a),R(a)},confirmAff:function(e){var r=e.aff,a=e.state,n=e.player;ke(n)&&void 0!==r&&(F(r,a),insight.reporting.notices&&K("Confirmed: ".concat(r," ").concat(a)))},reset:function(){Y(),b(),v(),insight.reporting.notices&&K("Reset")},randomAffs:function(e){var r=e.affs,a=e.player;ke(a)&&void 0!==r&&(G(r),insight.reporting.notices&&K("Random: ".concat(r)))},readAuraConfirm:function(e){var r=e.p,a=e.m,n=e.player;ke(n)&&U({p:r,m:a})},smartAffs:function(e){var r=e.affs,a=e.player;ke(a)&&void 0!==r&&(B(r),insight.reporting.notices&&K("Smart: ".concat(r)))},addDef:function(e){var r=e.def,a=e.player;ke(a)&&void 0!==r&&(h[r]=!0,insight.reporting.notices&&K("Def (".concat(id,"): true")))},removeDef:function(e){var r=e.def,a=e.player;ke(a)&&void 0!==r&&(h[r]=!1,insight.reporting.notices&&K("Def (".concat(id,"): false")))},hasAff:ye,hasAffs:ve,hasAnAff:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=!1;return Array.isArray(e)&&(a=x.some((function(a){return e.indexOf(a)>-1&&i[a].probability>=r}))),a},hasDef:function(e){return h[e]},setStatus:function(e){var r=e.id,a=e.value;e.player;f[r]=a,insight.reporting.notices&&K("Status (".concat(r,"): ").concat(a))},getStatus:function(e){return f[e]},currentAffs:function(){return x},currentAffDisplay:function(){var e=[];return x.forEach((function(r){return e.push("".concat(r,": ").concat(i[r].probability))})),e},currentAffDisplayHTML:function(){var e=document.createElement("span");if(e.setAttribute("class","mono"),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"["})),x.length>1)for(var r=0;r<x.length-1;r++){var a=x[r];e.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(ge[a].fg,";background:").concat(ge[a].bg),innerHTML:insight.reporting.shortNames?"".concat(ge[a].shortName):"".concat(a)})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:x.length>1?": ".concat(i[a].probability,", "):": ".concat(i[a].probability)}))}var n=x.at(-1);return e.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(ge[n].fg,";background:").concat(ge[n].bg),innerHTML:insight.reporting.shortNames?"".concat(ge[n].shortName):"".concat(n)})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:": ".concat(i[n].probability)})),x.forEach((function(e){})),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"]"})),e.outerHTML},nextLine:function(){var e=nexusclient.current_block.indexOf(nexusclient.current_line);return nexusclient.current_block[e+1].parsed_line.text()},target:A,reporting:{notices:!1,shortNames:!1,colors:!1},occultist:k,affs:i,defs:h,bals:_e,status:f,timeline:function(){return q},setTarget:function(e){var r;E.hasOwnProperty(e)?i=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?pe(Object(a),!0).forEach((function(r){fe(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):pe(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},E[e].affs):E[e]={affs:(r={},l.forEach((function(e){r[e]=o(e)})),r),defs:{},state:{}}},players:E};globalThis.insight=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?Ne(Object(a),!0).forEach((function(r){we(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ne(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},Oe),globalThis.insight.reset(),"undefined"!=typeof nexusclient&&fetch("https://unpkg.com/nexsight/insight3.nxs",{cache:"no-store"}).then((function(e){return e.json()})).then((function(e){nexusclient.packages().get("insight3").apply(e,nexusclient.reflexes())}))}();
!function(){"use strict";var e=["itching","paralysis","fear","brokenrightarm","brokenleftarm","brokenrightleg","brokenleftleg","lapsingconsciousness","aeon","lovers","confusion","epilepsy","pacified","blackout","dazed","justice","slashedthroat","hellsight","peace","dazzled","shyness","dizziness","slickness","asthma","nausea","selarnia","weariness","scytherus","haemophilia","clumsiness","hallucinations","healthleech","dementia","recklessness","anorexia","masochism","impatience","stupidity","generosity","addiction","deadening","manaleech","stuttering","paranoia","agoraphobia","loneliness","claustrophobia","vertigo","hypersomnia","shivering","frozen","burning","sensitivity","hypochondria","lethargy","disloyalty","darkshade","voyria","dissonance","phlogisticated","silver","spiritburn","tenderskin","guilt","skullfractures","wristfractures","crackedribs","torntendons","indifference","retribution","shadowmadness","parasite","depression","timeloop","crushedthroat","tension","unweavingspirit","grievouswounds","pyramides","flushings","rebbies","mycalium","sandfever"],r={ferrum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ferrum",order:["darkshade","haemophilia","lethargy","addiction","scytherus","nausea","flushings","unweavingbody"],prio:0},magnesium:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat magnesium",order:["paralysis","slickness","pyramides"],prio:0},aurum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat aurum",order:["clumsiness","healthleech","sensitivity","weariness","asthma","hypochondria","rebbies","parasite"],prio:0},calamine:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat calamine",order:["undeaf","deafness"],delay:2.5,prio:0},argentum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat argentum",order:["masochism","loneliness","vertigo","recklessness","agoraphobia","guilt","whisperingmadness","spiritburn","tenderskin"],prio:0},cuprum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat cuprum",order:["pacified","peace","lovers","justice","generosity","indifference","retribution","pyre","timeloop"],prio:0},antimony:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat antimony",order:["temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine"],prio:0},arsenic:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat arsenic",order:["unblind"],prio:0},stannum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat stannum",order:["claustrophobia","paranoia","confusion","hypersomnia","hallucinations","dementia"],prio:0},plumbum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["horror","stupidity","epilepsy","dizziness","shyness","impatience","dissonance","depression","sandfever","mycalium","shadowmadness","unweavingmind"],command:"eat plumbum",prio:0},calcite:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["pressure"],command:"eat calcite",prio:0},ginseng:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ginseng",order:["darkshade","haemophilia","lethargy","addiction","scytherus","nausea","flushings","unweavingbody"],prio:0},bloodroot:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bloodroot",order:["paralysis","slickness","pyramides"],prio:0},kelp:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat kelp",order:["clumsiness","healthleech","sensitivity","weariness","asthma","hypochondria","rebbies","parasite"],prio:0},hawthorn:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat hawthorn",order:["undeaf","deafness"],delay:2.5,prio:0},lobelia:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat lobelia",order:["masochism","loneliness","vertigo","recklessness","agoraphobia","guilt","whisperingmadness","spiritburn","tenderskin"],prio:0},bellwort:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bellwort",order:["pacified","peace","lovers","justice","generosity","indifference","retribution","pyre","timeloop"],prio:0},ginger:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ginger",order:["temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine"],prio:0},bayberry:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bayberry",order:["unblind"],prio:0},ash:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ash",order:["claustrophobia","paranoia","confusion","hypersomnia","hallucinations","dementia"],prio:0},goldenseal:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat goldenseal",order:["horror","stupidity","epilepsy","dizziness","shyness","impatience","dissonance","depression","sandfever","mycalium","shadowmadness","unweavingmind"],prio:0},pear:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["pressure"],command:"eat pear",prio:0},smoke:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke cinnabar",order:["aeon","disloyalty","hellsight","manaleech","slickness","deadening","tension","unweavingspirit"],prio:0},cinnabar:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke cinnabar",order:["aeon","deadening","tension","unweavingspirit"],prio:0},malachite:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke malachite",prio:0},realgar:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke realgar",order:["disloyalty","hellsight","manaleech","slickness"],prio:0},elm:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke elm",order:["aeon","deadening","tension","unweavingspirit"],prio:0},skullcap:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke skullcap",prio:0},valerian:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke valerian",order:["disloyalty","hellsight","manaleech","slickness"],prio:0},caloric:{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply caloric",order:["frozen","shivering"],prio:0},"epidermal to body":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to body",order:["anorexia"],prio:0},"epidermal to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to head",order:["blindness","scalded","deafness"],prio:0},"epidermal to ears":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to ears",order:["deafness"],prio:0},"mending to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to head",order:["crushedthroat","dazzled"],prio:0},"mending to arms":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to arms",order:["brokenleftarm","brokenrightarm"],prio:0},"mending to legs":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to legs",order:["brokenleftleg","brokenrightleg"],prio:0},"mending to torso":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to torso",order:["burning"],prio:0},"restoration to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to head",order:["mangledhead","damagedhead","calcifiedskull","concussion","tonguetied"],delay:4,prio:0},"restoration to torso":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to torso",order:["hypothermia","heartseed","serioustrauma","mildtrauma","calcifiedtorso"],delay:4,prio:0},"restoration to arms":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to arms",order:["mangledleftarm","mangledrightarm","damagedleftarm","damagedrightarm"],delay:4,prio:0},"restoration to legs":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to legs",order:["mangledleftleg","mangledrightleg","damagedleftleg","damagedrightleg"],delay:4,prio:0},insomnia:{bals_req:["free"],bals_used:["free"],blocks:["hypersomnia","sleeping"],command:"insomnia",order:["insomnia"],prio:0},focus:{bals_req:["focus"],bals_used:["focus"],blocks:["impatience","sleeping"],command:"focus",order:["stupidity","epilepsy","dizziness","shyness","claustrophobia","paranoia","confusion","hallucinations","dementia","pacified","peace","lovers","generosity","masochism","loneliness","vertigo","recklessness","agoraphobia","anorexia","stuttering"],prio:0},"health to head":{bals_req:["sip"],bals_used:["sip"],command:"apply health to head",order:["skullfractures"],prio:0},"health to torso":{bals_req:["sip"],bals_used:["sip"],command:"apply health to torso",order:["crackedribs","grievouswounds"],prio:0},"health to arms":{bals_req:["sip"],bals_used:["sip"],command:"apply health to arms",order:["wristfractures"],prio:0},"health to legs":{bals_req:["sip"],bals_used:["sip"],command:"apply health to legs",order:["torntendons","latched","kkractlebrand"],prio:0},concentrate:{blocks:["sleeping","confusion"],command:"concentrate",order:["disrupted"],prio:0},immunity:{bals_req:["immunity"],bals_used:["immunity"],blocks:["sleeping","anorexia"],command:"sip immunity",order:["voyria"],prio:0},stand:{bals_req:["balance","equilibrium"],blocks:["death","sleeping","paralysis","brokenrightleg","brokenleftleg","damagedleftleg","damagedrightleg","mangledrightleg","mangledleftleg","entangled","transfixation","impaled","webbed","bound"],command:"stand",order:["prone"],prio:0},tree:{bals_used:["tree"],bals_req:["tree"],blocks:["death","sleeping","paralysis",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],command:"touch tree",order:e,prio:0},health:{bals_req:["sip"],bals_used:["sip"],blocks:["sleeping","anorexia"],command:"sip health",prio:0},mana:{bals_req:["sip"],bals_used:["sip"],blocks:["sleeping","anorexia"],command:"sip mana",prio:0},potash:{bals_req:["moss"],bals_used:["moss"],blocks:["sleeping","anorexia"],command:"eat potash",prio:0},moss:{bals_req:["moss"],bals_used:["moss"],blocks:["sleeping","anorexia"],command:"eat moss",prio:0},fitness:{bals_req:["equilibrium","balance","fitness"],bals_used:["balance","fitness"],blocks:["weariness","sleeping"],skills:["Monk","Runewarden"],command:"fitness",order:["asthma"],prio:0},bloodboil:{bals_req:["equilibrium","balance","bloodboil"],bals_used:["equilibrium","bloodboil"],blocks:["death","haemophilia","sleeping",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],skills:["Magi"],command:"cast bloodboil",order:e,prio:0},restore:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"restore",order:["brokenleftarm","brokenrightarm","brokenleftleg","brokenrightleg","skullfractures","torntendons","wristfractures","crackedribs"],prio:0},dragonflex:{bals_req:["balance"],bals_used:["balance"],command:"dragonflex",skills:["Dragon"],order:["webbed","entangled"],prio:0},dragonheal:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"dragonheal",skills:["Dragon"],blocks:["sleeping",["recklessness","weariness"]],order:e,prio:0},dwinnu:{bals_req:["voice"],bals_used:["voice"],command:"chant dwinnu",skills:["Bard"],order:["webbed","entangled"],prio:0},rage:{bals_req:["rage"],bals_used:["rage"],command:"rage",skills:["Runewarden"],order:["pacified","peace","lovers","generosity"],prio:95},salt:{bals_req:["equilibrium","salt"],bals_used:["salt","equilibrium"],blocks:["stupidity","sleeping"],skills:["Alchemist"],command:"educe salt",order:e,prio:0},siphon:{bals_req:["angel"],bals_used:["angel"],blocks:["sleeping"],skills:["Apostate","Priest"],command:"educe salt",order:e,prio:0},shrugging:{bals_req:["equilibrium","balance","shrugging"],bals_used:["shrugging"],blocks:["weariness","sleeping"],skills:["Serpent"],command:"shrugging",order:e,prio:0},slough:{bals_req:["equilibrium","balance","slough"],bals_used:["slough","balance"],blocks:["weariness","sleeping"],skills:["Fire Elemental Lord"],command:"slough impurities",order:e,prio:0},fool:{bals_req:["equilibrium","balance","fool"],bals_used:["fool","balance"],blocks:["death","prone","paralysis","sleeping",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],skills:["Occultist"],command:"fling fool at me",order:e,prio:0},alleviate:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:["paralysis","sleeping"],skills:["Blademaster"],command:"alleviate",order:e,prio:0},sun:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:[],skills:["Runewarden","Occultist"],command:"sun",order:e,prio:0},generic:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:[],skills:[],command:"sun",order:e,prio:0}};function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function n(e,r){for(var a=0;a<r.length;a++){var n=r[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var t=function(){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;a(this,e),this._name=r,this._enabled=!1,this._t_started=0,this._t_ended=0,this._timerId=0,this._default_length=n,this.setLength(n),this._callbacks=[]}var r,t,s;return r=e,(t=[{key:"length",get:function(){return this._t_length}},{key:"setLength",value:function(e){this._t_length=e,this._t_length_ms=1e3*e}},{key:"reset",value:function(){this.setLength(this._default_length)}},{key:"start",value:function(){this._enabled&&clearTimeout(this._timerId),this._timerId=setTimeout(this.stop.bind(this),this._t_length_ms),this._t_started=performance.now()/1e3,this._enabled=!0}},{key:"stop",value:function(){if(this._enabled&&(clearTimeout(this._timerId),this._t_ended=performance.now()/1e3,this._enabled=!1,this._callbacks))for(var e=0;e<this._callbacks.length;e++)this._callbacks[e](this._t_ended-this._t_started)}},{key:"duration",value:function(){return this._enabled?this.elapsed():this._t_ended-this._t_started}},{key:"elapsed",value:function(){return this._enabled?performance.now()/1e3-this._t_started:0}},{key:"remaining",value:function(){return this._enabled?this._t_length-performance.now()/1e3-this._t_started:0}},{key:"addCallback",value:function(e){this._callbacks.push(e)}},{key:"clearCallbacks",value:function(){this._callbacks=[]}}])&&n(r.prototype,t),s&&n(r,s),Object.defineProperty(r,"prototype",{writable:!1}),e}(),s=t,i={},o=function(e){var a=[];Object.keys(r).forEach((function(n){var t;(null===(t=r[n].order)||void 0===t?void 0:t.indexOf(e))>-1&&a.push(n)}));var n={name:e,probability:0,cures:a,have:!1,got:function(){var r;i[e].have=!0,i[e].probability=1,eventStream.raiseEvent("insightGotAff",i[e]),eventStream.raiseEvent("insightGot".concat(e),i[e]),null===(r=i[e].timer)||void 0===r||r.start()},lost:function(){var r;i[e].have=!1,i[e].probability=0,eventStream.raiseEvent("insightLostAff",i[e]),eventStream.raiseEvent("insightLost".concat(e),i[e]),null===(r=i[e].timer)||void 0===r||r.stop()},reset:function(){var r;i[e].have=!1,i[e].probability=0,null===(r=i[e].timer)||void 0===r||r.stop()}};return Object.keys(c).indexOf(e)>-1&&(n.timer=new s("insightTimer".concat(e),c[e].duration),n.timer.addCallback(n.reset)),n},l=["undeaf","unblind","cleanseaura","addiction","aeon","agoraphobia","airfisted","amnesia","anorexia","asphyxiating","asthma","blackout","bleeding","blindness","blistered","bloodfire","bound","brokenleftarm","brokenrightarm","brokenleftleg","brokenrightleg","bruisedribs","burning","cadmuscurse","calcifiedskull","calcifiedtorso","claustrophobia","clumsiness","coldfate","concussion","condemned","conflagration","confusion","constricted","corruption","crackedribs","cremated","crushedthroat","daeggerimpale","damagedhead","damagedleftarm","damagedleftleg","damagedrightarm","damagedrightleg","darkshade","dazed","dazzled","deadening","deafness","death","deathsickness","deepsleep","degenerate","dehydrated","dementia","demonstain","depression","deteriorate","disloyalty","disrupted","dissonance","dizziness","empoweredmannaz","empoweredloshre","enlightenment","enmesh","ensorcelled","entangled","epilepsy","fear","flamefisted","flushings","frozen","generosity","grievouswounds","guilt","hamstrung","haemophilia","hallucinations","hatred","healthleech","heartseed","hecatecurse","hellsight","hindered","homunculusmercury","horror","hypersomnia","hypochondria","hypothermia","icefisted","impaled","impatience","indifference","inquisition","insomnia","internalbleeding","isolation","itching","justice","kaisurge","kkractlebrand","laceratedthroat","lapsingconsciousness","latched","lethargy","lightbind","loneliness","lovers","lullaby","manaleech","masochism","mildtrauma","mangledleftarm","mangledleftleg","mangledrightarm","mangledrightleg","mangledhead","mindclamp","mindravaged","muddled","mycalium","nausea","numbedleftarm","numbedrightarm","pacified","palpatarfeed","paralysis","paranoia","parasite","peace","penitence","petrified","phlogisticated","pinshot","pressure","prone","pyramides","pyre","rebbies","recklessness","retribution","revealed","sandfever","scalded","scrambledbrains","scytherus","selarnia","sensitivity","serioustrauma","shadowmadness","shivering","shyness","silenced","silver","skullfractures","slashedthroat","sleeping","slickness","slimeobscure","solarburn","spiritburn","stun","stupidity","stuttering","temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine","tenderskin","tension","timeflux","timeloop","tonguetied","torntendons","transfixation","trueblind","unweavingbody","unweavingmind","unweavingspirit","vertigo","vinewreathed","vitiated","vitrified","voidfisted","voyria","waterbonds","weakenedmind","weariness","webbed","whisperingmadness","wristfractures","unconsciousness","harmonic","bop","spiritwrack","bedevil","loki","moon","evileye","dragoncurse","swiftcurse"],c={test:{duration:10},weakenedmind:{duration:60},slimeobscure:{duration:30},palpatarfeed:{duration:20},cleanseaura:{duration:6}};l.forEach((function(e){i[e]=o(e)}));function d(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function m(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var h={},u={insomnia:!0,kola:!0,speed:!0,shield:!0,rebounding:!0,prismatic:!0,cloak:!0,fangbarrier:!0},b=function(){Object.assign(h,function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?d(Object(a),!0).forEach((function(r){m(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},u))};function g(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function p(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var f={},y={hp:2e4,mana:2e4,hpMax:2e4,manaMax:2e4,hpPercent:1,manaPercent:1,soulmaster:!1,enlightened:!1,mentalCount:0,physicalCount:0},v=function(){Object.assign(f,function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?g(Object(a),!0).forEach((function(r){p(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},y))},k={mentals:["claustrophobia","agoraphobia","lovers","dementia","epilepsy","hallucinations","confusion","stupidity","paranoia","vertigo","shyness","addiction","recklessness","masochism"],physicals:["asthma","paralysis","slickness","haemophilia","clumsiness","healthleech","sensitivity","darkshade"],bubonis:["vertigo","recklessness","confusion","masochism","paranoia","shyness","claustrophobia"],chimera:["confusion","hallucinations","agoraphobia","claustrophobia","dementia"],moon:["stupidity","masochism","hallucinations","hypersomnia","confusion","epilepsy","claustrophobia","agoraphobia"],whisperingmadness:["dementia","stupidity","confusion","hypersomnia","paranoia","hallucinations","impatience","addiction","agoraphobia","lovers","loneliness","recklessness","masochism"]};function _(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,r){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=w(e))||r&&e&&"number"==typeof e.length){a&&(e=a);var n=0,t=function(){};return{s:t,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,o=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){o=!0,s=e},f:function(){try{i||null==a.return||a.return()}finally{if(o)throw s}}}}function w(e,r){if(e){if("string"==typeof e)return O(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?O(e,r):void 0}}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,n=new Array(r);a<r;a++)n[a]=e[a];return n}var j=i,q=[[]],x=[],P=[],E={},A={id:""},S=function(e){j[e].got();var r,a=N(q);try{for(a.s();!(r=a.n()).done;){var n=r.value;n.includes(e)||n.push(e)}}catch(e){a.e(e)}finally{a.f()}P.push(e),L()},D=function(e){j[e].lost(),q.forEach((function(r){var a=r.indexOf(e);a>-1&&r.splice(a,1)})),T(),L()},z=function(e){var a,n=N(r[e].order);try{for(n.s();!(a=n.n()).done;){var t=a.value;if(1===i[t].probability)return D(t),!0}}catch(e){n.e(e)}finally{n.f()}return!1},T=function(){var e=!1,r=q;!1===e&&(r.sort(),e=!0);for(var a=function(e){if(r.length>1&&r.length%e==0){for(var a=!0,n=0;n<r.length;n+=e)if(!C(r.slice(n,n+e))){a=!1;break}if(a){for(var t=r.length-(e-1);t>-1;t-=e)r.splice(t,e-1);return r.sort(),!0}return!1}return!1};!0===a(2););[9,7,5,3].forEach((function(e){a(e)}))},L=function(){var e=_(new Set(q.flat())),r=x.filter((function(r){return!e.includes(r)}));r.length>0&&r.forEach((function(e){return j[e].lost()})),(x=e).forEach((function(e){j[e].probability=parseFloat((Math.round(100*function(e){return q.filter((function(r){return r.includes(e)})).length/q.length}(e))/100).toFixed(2))})),eventStream.raiseEvent("insightUpdateAffs")},M=function(e,r){return e.length===r.length&&(e.sort(),r.sort(),!!e.every((function(e,a){return e===r[a]})))},C=function(e){for(var r=1;r<e.length;r++)if(!M(e[0],e[r]))return!1;return!0},H=S,I=D,R=function(e){if(r[e].bals_used.includes("salve")&&z(e))console.log("salveCure() true return");else{var a=r[e].order,n=[],t=!1;q.forEach((function(e){if(e.find((function(e){return a.includes(e)}))){t=!0;var r,s=N(e);try{var i=function(){var t=r.value;if(a.includes(t)){var s=e.filter((function(e){return e!==t}));s.length>0&&n.push(s)}};for(s.s();!(r=s.n()).done;)i()}catch(e){s.e(e)}finally{s.f()}}})),t&&(q=n.length>0?n:[[]]),T(),L(),P.push(e)}},G=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(_(q.map((function(e){return e.slice(0)}))));try{for(n.s();!(a=n.n()).done;){var t=a.value;t.includes(e)||t.push(e),r.push(t)}}catch(e){n.e(e)}finally{n.f()}})),q=r.length>0?r:[[]],T(),L()},B=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(_(q.map((function(e){return e.slice(0)}))));try{for(n.s();!(a=n.n()).done;){var t=a.value;t.includes(e)||(t.push(e),r.push(t.sort()))}}catch(e){n.e(e)}finally{n.f()}})),q.forEach((function(a){e.every((function(e){return a.includes(e)}))&&r.push(a.sort())})),r.length>0&&(q=r),T(),L()},F=function(e,r){var a=j[e].probability;if(!(r&&1===a||!r&&0===a))if(r&&0===j[e].probability)S(e);else if(r||1!==j[e].probability){var n=[];q.forEach((function(a){a.includes(e)===r&&n.push(a)})),q=n,P.push("".concat(e,":").concat(r)),T(),L()}else D(e)},Y=function(){for(var e in q=[[]],x=[],P=[],j){if(Object.hasOwnProperty.call(j,e))j[e].reset()}},U=function(e){var r=e.p,a=e.m,n=_(q);if((n=n.filter((function(e){var n=e.filter((function(e){return k.physicals.includes(e)})),t=e.filter((function(e){return k.mentals.includes(e)}));return n.length<=r&&t.length<=a}))).length<r+a)return console.error("Insight Error: No present branch for physical ".concat(r,", mental ").concat(a)),!1;q=_(n),T(),L()};function W(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function $(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?W(Object(a),!0).forEach((function(r){J(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):W(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function J(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var K=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=document.createElement("span");a.setAttribute("class","mono"),a.appendChild(Object.assign(document.createElement("span"),{style:"color:DarkOrchid",innerHTML:"["})),a.appendChild(Object.assign(document.createElement("span"),{style:"color:Gold",innerHTML:"insight"})),a.appendChild(Object.assign(document.createElement("span"),{style:"color:DarkOrchid",innerHTML:"] "})),r?a.insertAdjacentHTML("beforeend",e):a.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:e})),globalThis.nexusclient.add_html_line(a.outerHTML)},Q={fg:"olive",bg:""},V={fg:"royalblue",bg:""},X={fg:"",bg:""},Z={fg:"ForestGreen",bg:""},ee={fg:"",bg:""},re={fg:"slategray",bg:""},ae={fg:"greenyellow",bg:""},ne={fg:"DeepSkyBlue",bg:""},te={fg:"DarkOrange",bg:""},se={fg:"Red",bg:""},ie={fg:"Gold",bg:""},oe={fg:"firebrick",bg:""},le={fg:"Tan",bg:""},ce={fg:"darkseagreen",bg:""},de={fg:"orchid",bg:""},me={fg:"sienna",bg:""},he={fg:"darkviolet",bg:""},ue={fg:"lightpink",bg:""},be={fg:"paleyellow",bg:"darkslategray"},ge={addiction:$({shortName:"add"},te),aeon:$({shortName:"ae"},ae),agoraphobia:$({shortName:"agor"},V),amnesia:{shortName:"amn",fg:"",bg:""},anorexia:$({shortName:"ANO"},me),asthma:$({shortName:"AST"},Z),blackout:{shortName:"bo",fg:"",bg:""},blindness:$({shortName:"unb"},X),bound:$({shortName:"bnd"},be),brokenleftarm:$({shortName:"la1"},de),brokenleftleg:$({shortName:"ll1"},de),brokenrightarm:$({shortName:"ra1"},de),brokenrightleg:$({shortName:"rl1"},de),bruisedribs:{shortName:"ribs",fg:"",bg:""},burning:$({shortName:"burn"},de),calcifiedskull:$({shortName:"calh"},he),calcifiedtorso:$({shortName:"calt"},he),claustrophobia:$({shortName:"clau"},le),clumsiness:$({shortName:"clu"},Z),concussion:$({shortName:"conc"},he),confusion:$({shortName:"con"},le),corruption:{shortName:"corr",fg:"",bg:""},crackedribs:$({shortName:"cr"},ue),crushedthroat:$({shortName:"cru"},de),daeggerimpale:$({shortName:"daeg"},be),damage:{shortName:"dmg",fg:"tomato",bg:""},damagedleftarm:$({shortName:"la2"},he),damagedleftleg:$({shortName:"ll2"},he),damagedrightarm:$({shortName:"ra2"},he),damagedrightleg:$({shortName:"rl2"},he),damagedhead:$({shortName:"hd2"},he),darkshade:$({shortName:"dark"},te),dazed:$({shortName:"dzd"},ae),dazzled:$({shortName:"dzl"},de),deadening:$({shortName:"dea"},ae),deafness:$({shortName:"und"},ee),dehydrated:{shortName:"deh",fg:"",bg:""},dementia:$({shortName:"dem"},le),depression:$({shortName:"dep"},ie),deteriorate:{shortName:"det",fg:"",bg:""},disloyalty:$({shortName:"disl"},oe),disrupted:{shortName:"disr",fg:"",bg:""},dissonance:$({shortName:"disso"},ie),dizziness:$({shortName:"diz"},ie),enscorcelled:{shortName:"ensor",fg:"",bg:""},entangled:$({shortName:"entgl"},be),epilepsy:$({shortName:"epi"},ie),fear:{shortName:"fear",fg:"",bg:""},flushings:$({shortName:"flush"},te),frozen:$({shortName:"frz"},ce),generosity:$({shortName:"gen"},ne),grievouswounds:$({shortName:"grv"},ue),guilt:$({shortName:"gui"},V),haemophilia:$({shortName:"haem"},te),hallucinations:$({shortName:"hall"},le),hamstrung:{shortName:"hms",fg:"",bg:""},healthleech:$({shortName:"hthl"},Z),heartseed:$({shortName:"heart"},he),hellsight:$({shortName:"hell"},oe),horror:$({shortName:"hor"},ie),hypersomnia:$({shortName:"hypers"},le),hypochondria:$({shortName:"hypoch"},Z),hypothermia:$({shortName:"hypoth"},he),icefisted:{shortName:"ice",fg:"",bg:""},impaled:$({shortName:"impl"},be),impatience:$({shortName:"IMPAT"},ie),indifference:$({shortName:"ind"},ne),itching:$({shortName:"itch"},me),justice:$({shortName:"just"},ne),kkractlebrand:$({shortName:"kkr"},ue),laceratedthroat:$({shortName:"lac2"},he),latched:$({shortName:"latch"},ue),lethargy:$({shortName:"let"},te),lightbind:{shortName:"light",fg:"",bg:""},loneliness:$({shortName:"lon"},V),lovers:$({shortName:"love"},ne),manaleech:$({shortName:"man"},oe),mangledleftarm:$({shortName:"la3"},he),mangledleftleg:$({shortName:"ll3"},he),mangledrightarm:$({shortName:"ra3"},he),mangledrightleg:$({shortName:"rl3"},he),mangledhead:$({shortName:"hd3"},he),masochism:$({shortName:"maso"},V),mildtrauma:$({shortName:"tor1"},he),mycalium:$({shortName:"myc"},ie),nausea:$({shortName:"nau"},te),numbedleftarm:{shortName:"nbla",fg:"",bg:""},numbedrightarm:{shortName:"nbra",fg:"",bg:""},pacified:$({shortName:"pac"},ne),paralysis:$({shortName:"PAR"},se),paranoia:$({shortName:"prn"},le),parasite:$({shortName:"prs"},Z),peace:$({shortName:"pea"},ne),phlogisticated:{shortName:"phlog",fg:"",bg:""},pinshot:{shortName:"psh",fg:"",bg:""},pressure:$({shortName:"pres"},re),prone:{shortName:"pr",fg:"",bg:""},pyramides:$({shortName:"pyra"},se),pyre:$({shortName:"pyre"},ne),rebbies:$({shortName:"reb"},Z),recklessness:$({shortName:"reck"},V),retardation:{shortName:"ret",fg:"",bg:""},retribution:$({shortName:"retr"},ne),revealed:{shortName:"rev",fg:"",bg:""},sandfever:$({shortName:"sand"},ie),scalded:$({shortName:"scald"},me),scytherus:$({shortName:"scy"},te),selarnia:$({shortName:"sel"},de),sensitivity:$({shortName:"sen"},Z),serioustrauma:$({shortName:"tor2"},he),shadowmadness:$({shortName:"shad"},ie),shivering:$({shortName:"shiv"},ce),shyness:$({shortName:"shy"},ie),skullfractures:$({shortName:"sf"},ue),slashedthroat:$({shortName:"lac1"},me),sleeping:{shortName:"slp",fg:"",bg:""},slickness:$({shortName:"SLI"},se),slimeobscure:{shortName:"nkh",fg:"",bg:""},spiritburn:$({shortName:"spirB"},V),spiritwrack:{shortName:"spirW",fg:"",bg:""},stupidity:$({shortName:"st"},ie),stuttering:$({shortName:"stut"},me),homunculusmercury:{shortName:"merc",fg:"",bg:""},temperedcholeric:$({shortName:"choH"},Q),temperedmelancholic:$({shortName:"melaH"},Q),temperedphlegmatic:$({shortName:"phleH"},Q),temperedsanguine:$({shortName:"sanH"},Q),tenderskin:$({shortName:"tend"},V),tension:$({shortName:"tens"},ae),timeflux:{shortName:"tmfx",fg:"",bg:""},timeloop:$({shortName:"tmlp"},ne),tonguetied:$({shortName:"tngt"},he),torntendons:$({shortName:"tt"},ue),transfixation:$({shortName:"trfx"},be),unweavingbody:$({shortName:"unwM"},te),unweavingspirit:$({shortName:"unwS"},ae),unweavingmind:$({shortName:"unwM"},ie),vertigo:$({shortName:"vert"},V),vitrified:{shortName:"vitri",fg:"",bg:""},voidfisted:{shortName:"void",fg:"",bg:""},voyria:{shortName:"voy",fg:"",bg:""},weariness:$({shortName:"wea"},Z),webbed:$({shortName:"web"},be),whisperingmadness:$({shortName:"mad"},V),wristfractures:$({shortName:"wf"},ue)};function pe(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function fe(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var ye=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=i[e];return!!(a.have&&a.probability>=r)},ve=function(e){var r=e.affArray,a=e.probability,n=void 0===a?0:a,t=e.player;if(ke(t)){var s=!1;return Array.isArray(r)&&(s=r.every((function(e){return x.indexOf(e)>-1&&i[e].probability>=n}))),s}},ke=function(e){if(void 0===e||e==A.id)return!0},_e={};function Ne(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function we(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}[{id:"balance",duration:2},{id:"equilibrium",duration:2},{id:"herb",duration:2},{id:"smoke",duration:2},{id:"salve",duration:2},{id:"focus",duration:2},{id:"tree",duration:2}].forEach((function(e){return _e[e.id]=function(e){var r=e.id,a=e.duration,n={name:r,have:!0,got:function(){_e[r].have=!0,eventStream.raiseEvent("insightGotBal",_e[r]),eventStream.raiseEvent("insightGot".concat(r),_e[r]),_e[r].timer.stop()},lost:function(){var e;_e[r].have=!1,eventStream.raiseEvent("insightLostBal",_e[r]),eventStream.raiseEvent("insightLost".concat(r),_e[r]),null===(e=_e[r].timer)||void 0===e||e.start()},reset:function(){_e[r].have=!0,_e[r].timer.stop()},timer:new s("insightTimer".concat(r),a)};return n.timer.addCallback(n.reset),n}(e)}));var Oe={addAff:function(e){var r=e.aff,a=e.player;ke(a)&&void 0!==r&&(H(r),insight.reporting.notices&&K("Added: ".concat(r)))},getAff:function(e){var r=e.aff,a=e.player;if(ke(a)&&void 0!==r)return insight.affs[r]},removeAff:function(e){var r=e.aff,a=e.player;ke(a)&&void 0!==r&&(I(r),insight.reporting.notices&&K("Removed: ".concat(r)))},usedCure:function(e){var a=e.cure;e.player;!function(e){var a,n=null===(a=r[e])||void 0===a?void 0:a.blocks;void 0!==n&&n.forEach((function(e){Array.isArray(e)?ve(e)&&e.forEach((function(e){return F(e,!1)})):ye(e)&&F(e,!1)}))}(a),R(a)},confirmAff:function(e){var r=e.aff,a=e.state,n=e.player;ke(n)&&void 0!==r&&(F(r,a),insight.reporting.notices&&K("Confirmed: ".concat(r," ").concat(a)))},reset:function(){Y(),b(),v(),insight.reporting.notices&&K("Reset")},randomAffs:function(e){var r=e.affs,a=e.player;ke(a)&&void 0!==r&&(G(r),insight.reporting.notices&&K("Random: ".concat(r)))},readAuraConfirm:function(e){var r=e.p,a=e.m,n=e.player;ke(n)&&U({p:r,m:a})},smartAffs:function(e){var r=e.affs,a=e.player;ke(a)&&void 0!==r&&(B(r),insight.reporting.notices&&K("Smart: ".concat(r)))},addDef:function(e){var r=e.def,a=e.player;ke(a)&&void 0!==r&&(h[r]=!0,insight.reporting.notices&&K("Def (".concat(id,"): true")))},removeDef:function(e){var r=e.def,a=e.player;ke(a)&&void 0!==r&&(h[r]=!1,insight.reporting.notices&&K("Def (".concat(id,"): false")))},hasAff:ye,hasAffs:ve,hasAnAff:function(e){var r=e.affArray,a=e.player,n=e.probability,t=void 0===n?0:n;if(ke(a)){var s=!1;return Array.isArray(r)&&(s=x.some((function(e){return r.indexOf(e)>-1&&i[e].probability>=t}))),s}},hasDef:function(e){return h[e]},setStatus:function(e){var r=e.id,a=e.value;e.player;f[r]=a,insight.reporting.notices&&K("Status (".concat(r,"): ").concat(a))},getStatus:function(e){return f[e]},currentAffs:function(){return x},currentAffDisplay:function(){var e=[];return x.forEach((function(r){return e.push("".concat(r,": ").concat(i[r].probability))})),e},currentAffDisplayHTML:function(){var e=document.createElement("span");if(e.setAttribute("class","mono"),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"["})),x.length>1)for(var r=0;r<x.length-1;r++){var a=x[r];e.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(ge[a].fg,";background:").concat(ge[a].bg),innerHTML:insight.reporting.shortNames?"".concat(ge[a].shortName):"".concat(a)})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:x.length>1?": ".concat(i[a].probability,", "):": ".concat(i[a].probability)}))}var n=x.at(-1);return e.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(ge[n].fg,";background:").concat(ge[n].bg),innerHTML:insight.reporting.shortNames?"".concat(ge[n].shortName):"".concat(n)})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:": ".concat(i[n].probability)})),x.forEach((function(e){})),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"]"})),e.outerHTML},nextLine:function(){var e=nexusclient.current_block.indexOf(nexusclient.current_line);return nexusclient.current_block[e+1].parsed_line.text()},target:A,reporting:{notices:!1,shortNames:!1,colors:!1},occultist:k,affs:i,defs:h,bals:_e,status:f,timeline:function(){return q},setTarget:function(e){var r;E.hasOwnProperty(e)?i=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?pe(Object(a),!0).forEach((function(r){fe(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):pe(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},E[e].affs):E[e]={affs:(r={},l.forEach((function(e){r[e]=o(e)})),r),defs:{},state:{}}},players:E};globalThis.insight=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?Ne(Object(a),!0).forEach((function(r){we(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ne(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},Oe),globalThis.insight.reset(),"undefined"!=typeof nexusclient&&fetch("https://unpkg.com/nexsight/insight3.nxs",{cache:"no-store"}).then((function(e){return e.json()})).then((function(e){nexusclient.packages().get("insight3").apply(e,nexusclient.reflexes())}))}();
{
"name": "nexsight",
"version": "0.1.5",
"version": "0.1.6",
"description": "insight for nexus",

@@ -5,0 +5,0 @@ "main": "insight.min.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc