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

nexsight

Package Overview
Dependencies
Maintainers
1
Versions
31
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.2.2 to 0.2.3

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},might:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"dragonheal",skills:["Dragon"],blocks:["sleeping",["recklessness","weariness"]],order:["weariness","paralysis"].concat(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 s=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,s,t;return r=e,(s=[{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,s),t&&n(r,t),Object.defineProperty(r,"prototype",{writable:!1}),e}(),t=s,i={},o=function(e){var a=[];Object.keys(r).forEach((function(n){var s;(null===(s=r[n].order)||void 0===s?void 0:s.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(d).indexOf(e)>-1&&(n.timer=new t("insightTimer".concat(e),d[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"],d={test:{duration:10},weakenedmind:{duration:60},slimeobscure:{duration:30},palpatarfeed:{duration:20},cleanseaura:{duration:6}};l.forEach((function(e){i[e]=o(e)}));function c(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?c(Object(a),!0).forEach((function(r){m(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(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,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}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 t,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,t=e},f:function(){try{i||null==a.return||a.return()}finally{if(o)throw t}}}}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 q=i,j=[[]],x=[],E=[],P={id:""},A=function(e){q[e].got();var r,a=N(j);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()}E.push(e),T()},S=function(e){q[e].lost(),j.forEach((function(r){var a=r.indexOf(e);a>-1&&r.splice(a,1)})),D(),T()},z=function(e){var a,n=N(r[e].order);try{for(n.s();!(a=n.n()).done;){var s=a.value;if(1===i[s].probability)return S(s),!0}}catch(e){n.e(e)}finally{n.f()}return!1},D=function(e){if(1!==j.length){var r,a=new Map,n=[],s=N(j);try{for(s.s();!(r=s.n()).done;){var t=r.value.slice().sort().join();a.has(t)?a.set(t,a.get(t)+1):a.set(t,1)}}catch(e){s.e(e)}finally{s.f()}return 1===new Set(a.values()).size&&(a.forEach((function(e,r){return n.push(r.split(","))})),j=n),n}},T=function(){var e=new Set(j.flat()),r=x.filter((function(r){return!e.has(r)}));r.length>0&&r.forEach((function(e){return q[e].lost()})),(x=Array.from(e)).forEach((function(e){q[e].probability=parseFloat((Math.round(100*function(e){return j.filter((function(r){return r.includes(e)})).length/j.length}(e))/100).toFixed(2))})),eventStream.raiseEvent("insightUpdateAffs")},L=A,C=S,M=function(e){if(r[e].bals_used.includes("salve")&&z(e))console.log("salveCure() true return");else{var a=r[e].order,n=[],s=!1;j.forEach((function(e){if(e.find((function(e){return a.includes(e)}))){s=!0;var r,t=N(e);try{var i=function(){var s=r.value;if(a.includes(s)){var t=e.filter((function(e){return e!==s}));t.length>0&&n.push(t)}};for(t.s();!(r=t.n()).done;)i()}catch(e){t.e(e)}finally{t.f()}}})),s&&(j=n.length>0?n:[[]]),D(),T(),E.push(e)}},H=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(j.map((function(e){return e.slice(0)})));try{for(n.s();!(a=n.n()).done;){var s=a.value;s.includes(e)||s.push(e),r.push(s)}}catch(e){n.e(e)}finally{n.f()}})),j=r.length>0?r:[[]],D(),T()},R=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(j.map((function(e){return e.slice(0)})));try{for(n.s();!(a=n.n()).done;){var s=a.value;s.includes(e)||(s.push(e),r.push(s))}}catch(e){n.e(e)}finally{n.f()}})),j.forEach((function(a){e.every((function(e){return a.includes(e)}))&&r.push(a)})),r.length>0&&(j=r),D(),T()},I=function(e){var r,a=[],n=j.map((function(e){return e.slice(0)})),s=N(n);try{for(s.s();!(r=s.n()).done;){var t,o=r.value,l=N(e);try{for(l.s();!(t=l.n()).done;){var d=t.value;if(!o.includes(d)){i[d].have=!0,o.push(d),a.push(o);break}}}catch(e){l.e(e)}finally{l.f()}}}catch(e){s.e(e)}finally{s.f()}n.forEach((function(r){e.every((function(e){return r.includes(e)}))&&a.push(r)})),a.length>0&&(j=a),D(),T()},G=function(e,r){var a=q[e].probability;if(!(r&&1===a||!r&&0===a))if(r&&0===q[e].probability)A(e);else if(r||1!==q[e].probability){var n=[];j.forEach((function(a){a.includes(e)===r&&n.push(a)})),j=n,E.push("".concat(e,":").concat(r)),D(),T()}else S(e)},B=function(){for(var e in j=[[]],x=[],E=[],q){if(Object.hasOwnProperty.call(q,e))q[e].reset()}},F=function(e){var r=e.p,a=e.m,n=_(j);if((n=n.filter((function(e){var n=e.filter((function(e){return k.physicals.includes(e)})),s=e.filter((function(e){return k.mentals.includes(e)}));return n.length<=r&&s.length<=a}))).length<r+a)return console.error("Insight Error: No present branch for physical ".concat(r,", mental ").concat(a)),!1;j=_(n),D(),T()},U={};function Y(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 K(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?Y(Object(a),!0).forEach((function(r){W(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Y(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function W(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:1.5},{id:"salve",duration:1},{id:"focus",duration:2.5},{id:"tree",duration:15},{id:"shrugging",duration:10}].forEach((function(e){return U[e.id]=(a=(r=e).id,n=r.duration,(s={name:a,have:!0,got:function(){U[a].have=!0,eventStream.raiseEvent("insightGotBal",U[a]),eventStream.raiseEvent("insightGot".concat(a),U[a]),U[a].timer.stop()},lost:function(){var e;U[a].have=!1,eventStream.raiseEvent("insightLostBal",U[a]),eventStream.raiseEvent("insightLost".concat(a),U[a]),null===(e=U[a].timer)||void 0===e||e.start()},reset:function(){U[a].have=!0,U[a].timer.stop()},timer:new t("insightTimer".concat(a),n)}).timer.addCallback(s.reset),s);var r,a,n,s}));var $=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)},J={fg:"olive",bg:""},Q={fg:"royalblue",bg:""},V={fg:"",bg:""},X={fg:"ForestGreen",bg:""},Z={fg:"",bg:""},ee={fg:"slategray",bg:""},re={fg:"greenyellow",bg:""},ae={fg:"DeepSkyBlue",bg:""},ne={fg:"DarkOrange",bg:""},se={fg:"Red",bg:""},te={fg:"Gold",bg:""},ie={fg:"firebrick",bg:""},oe={fg:"Tan",bg:""},le={fg:"darkseagreen",bg:""},de={fg:"orchid",bg:""},ce={fg:"sienna",bg:""},me={fg:"darkviolet",bg:""},he={fg:"lightpink",bg:""},ue={fg:"paleyellow",bg:"darkslategray"},be={addiction:K({shortName:"add"},ne),aeon:K({shortName:"ae"},re),agoraphobia:K({shortName:"agor"},Q),amnesia:{shortName:"amn",fg:"",bg:""},anorexia:K({shortName:"ANO"},ce),asthma:K({shortName:"AST"},X),blackout:{shortName:"bo",fg:"",bg:""},blindness:K({shortName:"unb"},V),bound:K({shortName:"bnd"},ue),brokenleftarm:K({shortName:"la1"},de),brokenleftleg:K({shortName:"ll1"},de),brokenrightarm:K({shortName:"ra1"},de),brokenrightleg:K({shortName:"rl1"},de),bruisedribs:{shortName:"ribs",fg:"",bg:""},burning:K({shortName:"burn"},de),calcifiedskull:K({shortName:"calh"},me),calcifiedtorso:K({shortName:"calt"},me),claustrophobia:K({shortName:"clau"},oe),clumsiness:K({shortName:"clu"},X),concussion:K({shortName:"conc"},me),confusion:K({shortName:"con"},oe),corruption:{shortName:"corr",fg:"",bg:""},crackedribs:K({shortName:"cr"},he),crushedthroat:K({shortName:"cru"},de),daeggerimpale:K({shortName:"daeg"},ue),damage:{shortName:"dmg",fg:"tomato",bg:""},damagedleftarm:K({shortName:"la2"},me),damagedleftleg:K({shortName:"ll2"},me),damagedrightarm:K({shortName:"ra2"},me),damagedrightleg:K({shortName:"rl2"},me),damagedhead:K({shortName:"hd2"},me),darkshade:K({shortName:"dark"},ne),dazed:K({shortName:"dzd"},re),dazzled:K({shortName:"dzl"},de),deadening:K({shortName:"dea"},re),deafness:K({shortName:"und"},Z),dehydrated:{shortName:"deh",fg:"",bg:""},dementia:K({shortName:"dem"},oe),depression:K({shortName:"dep"},te),deteriorate:{shortName:"det",fg:"",bg:""},disloyalty:K({shortName:"disl"},ie),disrupted:{shortName:"disr",fg:"",bg:""},dissonance:K({shortName:"disso"},te),dizziness:K({shortName:"diz"},te),enscorcelled:{shortName:"ensor",fg:"",bg:""},entangled:K({shortName:"entgl"},ue),epilepsy:K({shortName:"epi"},te),fear:{shortName:"fear",fg:"",bg:""},flushings:K({shortName:"flush"},ne),frozen:K({shortName:"frz"},le),generosity:K({shortName:"gen"},ae),grievouswounds:K({shortName:"grv"},he),guilt:K({shortName:"gui"},Q),haemophilia:K({shortName:"haem"},ne),hallucinations:K({shortName:"hall"},oe),hamstrung:{shortName:"hms",fg:"",bg:""},healthleech:K({shortName:"hthl"},X),heartseed:K({shortName:"heart"},me),hellsight:K({shortName:"hell"},ie),horror:K({shortName:"hor"},te),hypersomnia:K({shortName:"hypers"},oe),hypochondria:K({shortName:"hypoch"},X),hypothermia:K({shortName:"hypoth"},me),icefisted:{shortName:"ice",fg:"",bg:""},impaled:K({shortName:"impl"},ue),impatience:K({shortName:"IMPAT"},te),indifference:K({shortName:"ind"},ae),itching:K({shortName:"itch"},ce),justice:K({shortName:"just"},ae),kkractlebrand:K({shortName:"kkr"},he),laceratedthroat:K({shortName:"lac2"},me),latched:K({shortName:"latch"},he),lethargy:K({shortName:"let"},ne),lightbind:{shortName:"light",fg:"",bg:""},loneliness:K({shortName:"lon"},Q),lovers:K({shortName:"love"},ae),manaleech:K({shortName:"man"},ie),mangledleftarm:K({shortName:"la3"},me),mangledleftleg:K({shortName:"ll3"},me),mangledrightarm:K({shortName:"ra3"},me),mangledrightleg:K({shortName:"rl3"},me),mangledhead:K({shortName:"hd3"},me),masochism:K({shortName:"maso"},Q),mildtrauma:K({shortName:"tor1"},me),mycalium:K({shortName:"myc"},te),nausea:K({shortName:"nau"},ne),numbedleftarm:{shortName:"nbla",fg:"",bg:""},numbedrightarm:{shortName:"nbra",fg:"",bg:""},pacified:K({shortName:"pac"},ae),paralysis:K({shortName:"PAR"},se),paranoia:K({shortName:"prn"},oe),parasite:K({shortName:"prs"},X),peace:K({shortName:"pea"},ae),phlogisticated:{shortName:"phlog",fg:"",bg:""},pinshot:{shortName:"psh",fg:"",bg:""},pressure:K({shortName:"pres"},ee),prone:{shortName:"pr",fg:"",bg:""},pyramides:K({shortName:"pyra"},se),pyre:K({shortName:"pyre"},ae),rebbies:K({shortName:"reb"},X),recklessness:K({shortName:"reck"},Q),retardation:{shortName:"ret",fg:"",bg:""},retribution:K({shortName:"retr"},ae),revealed:{shortName:"rev",fg:"",bg:""},sandfever:K({shortName:"sand"},te),scalded:K({shortName:"scald"},ce),scytherus:K({shortName:"scy"},ne),selarnia:K({shortName:"sel"},de),sensitivity:K({shortName:"sen"},X),serioustrauma:K({shortName:"tor2"},me),shadowmadness:K({shortName:"shad"},te),shivering:K({shortName:"shiv"},le),shyness:K({shortName:"shy"},te),skullfractures:K({shortName:"sf"},he),slashedthroat:K({shortName:"lac1"},ce),sleeping:{shortName:"slp",fg:"",bg:""},slickness:K({shortName:"SLI"},se),slimeobscure:{shortName:"nkh",fg:"",bg:""},spiritburn:K({shortName:"spirB"},Q),spiritwrack:{shortName:"spirW",fg:"",bg:""},stupidity:K({shortName:"st"},te),stuttering:K({shortName:"stut"},ce),homunculusmercury:{shortName:"merc",fg:"",bg:""},temperedcholeric:K({shortName:"choH"},J),temperedmelancholic:K({shortName:"melaH"},J),temperedphlegmatic:K({shortName:"phleH"},J),temperedsanguine:K({shortName:"sanH"},J),tenderskin:K({shortName:"tend"},Q),tension:K({shortName:"tens"},re),timeflux:{shortName:"tmfx",fg:"",bg:""},timeloop:K({shortName:"tmlp"},ae),tonguetied:K({shortName:"tngt"},me),torntendons:K({shortName:"tt"},he),transfixation:K({shortName:"trfx"},ue),unweavingbody:K({shortName:"unwM"},ne),unweavingspirit:K({shortName:"unwS"},re),unweavingmind:K({shortName:"unwM"},te),vertigo:K({shortName:"vert"},Q),vitrified:{shortName:"vitri",fg:"",bg:""},voidfisted:{shortName:"void",fg:"",bg:""},voyria:{shortName:"voy",fg:"",bg:""},weariness:K({shortName:"wea"},X),webbed:K({shortName:"web"},ue),whisperingmadness:K({shortName:"mad"},Q),wristfractures:K({shortName:"wf"},he)};var ge=function(e){var r=e.id,a=e.player,n=e.probability,s=void 0===n?0:n;if(fe(a)&&void 0!==r){var t=i[r];return!!(t.have&&t.probability>=s)}},pe=function(e){var r=e.ids,a=e.probability,n=void 0===a?0:a,s=e.player;if(fe(s)){var t=!1;return Array.isArray(r)&&(t=r.every((function(e){return x.indexOf(e)>-1&&i[e].probability>=n}))),t}},fe=function(e){if(void 0===e||e==P.id)return!0},ye=function(){B(),b(),v(),function(){for(var e in U)U[e].reset()}(),insight.reporting.notices&&$("Reset")};function ve(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 ke(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var _e={version:"0.2.2",addAff:function(e){var r=e.id,a=e.player;fe(a)&&void 0!==r&&(L(r),insight.reporting.notices&&$("Added: ".concat(r)))},getAff:function(e){var r=e.id,a=e.player;if(fe(a)&&void 0!==r)return insight.affs[r]},removeAff:function(e){var r=e.id,a=e.player;fe(a)&&void 0!==r&&(C(r),insight.reporting.notices&&$("Removed: ".concat(r)))},usedCure:function(e){var a=e.id,n=e.player;fe(n)&&void 0!==a&&(!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)?pe(e)&&e.forEach((function(e){return G(e,!1)})):ge(e)&&G(e,!1)}))}(a),M(a),r[a].bals_used.forEach((function(e){return U[e].lost()})),eventStream.raiseEvent("insightUsedCure",a),eventStream.raiseEvent("insightUseCure".concat(a)))},confirmAff:function(e){var r=e.id,a=e.state,n=e.player;fe(n)&&void 0!==r&&(G(r,a),insight.reporting.notices&&$("Confirmed: ".concat(r," ").concat(a)))},reset:ye,randomAffs:function(e){var r=e.ids,a=e.player;fe(a)&&void 0!==r&&(H(r),insight.reporting.notices&&$("Random: ".concat(r)))},readAuraConfirm:function(e){var r=e.p,a=e.m,n=e.player;fe(n)&&F({p:r,m:a})},smartAffs:function(e){var r=e.ids,a=e.player,n=e.ordered,s=void 0!==n&&n;fe(a)&&void 0!==r&&(s?I(r):R(r),insight.reporting.notices&&$("Smart: ".concat(r)))},addDef:function(e){var r=e.id,a=e.player;fe(a)&&void 0!==r&&(h[r]=!0,insight.reporting.notices&&$("Def (".concat(r,"): true")))},removeDef:function(e){var r=e.id,a=e.player;fe(a)&&void 0!==r&&(h[r]=!1,insight.reporting.notices&&$("Def (".concat(r,"): false")))},hasAff:ge,hasAffs:pe,hasAnAff:function(e){var r=e.ids,a=e.player,n=e.probability,s=void 0===n?0:n;if(fe(a)){var t=!1;return Array.isArray(r)&&(t=x.some((function(e){return r.indexOf(e)>-1&&i[e].probability>=s}))),t}},hasDef:function(e){var r=e.id;e.player;return h[r]},hasBal:function(e){var r=e.id;e.player;return U[r].have},lostBal:function(e){var r=e.id;e.player;U[r].lost()},balRemaining:function(e){var r=e.id;e.player;return U[r].timer.remaining()},setStatus:function(e){var r=e.id,a=e.value;e.player;f[r]=a,insight.reporting.notices&&$("Status (".concat(r,"): ").concat(a))},getStatus:function(e){var r=e.id;e.player;return f[r]},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(be[a].fg,";background:").concat(be[a].bg),innerHTML:insight.reporting.shortNames?"".concat(be[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(be[n].fg,";background:").concat(be[n].bg),innerHTML:insight.reporting.shortNames?"".concat(be[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(e){var r=!1,a=nexusclient.current_block.indexOf(nexusclient.current_line);if(void 0!==nexusclient.current_block[a+1].line){var n=nexusclient.current_block[a+1].parsed_line.text();return e instanceof RegExp?r=e.test(n):"string"==typeof e&&n.includes(e),r}},checkBlock:function(e){var r=nexusclient.current_block,a=!1;return e instanceof RegExp?a=!!r.find((function(r){return void 0!==r.line&&e.test(r.line)})):"string"==typeof e&&(a=!!r.find((function(r){return void 0!==r.line&&r.line.includes(e)}))),a},target:P,reporting:{notices:!1,shortNames:!1,colors:!1},occultist:k,affs:i,defs:h,bals:U,status:f,timeline:function(){return j},debug:function(){console.log(P.id)},setTarget:function(e){void 0!==e&&(P.id=e,ye())},players:{}};globalThis.insight=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?ve(Object(a),!0).forEach((function(r){ke(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ve(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},_e),globalThis.insight.reset(),"undefined"!=typeof nexusclient&&"Khaseem"!==nexusclient.datahandler().GMCP.Char.Status.name&&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"],bals_used:["free"],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},might:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"dragonheal",skills:["Dragon"],blocks:["sleeping",["recklessness","weariness"]],order:["weariness","paralysis"].concat(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 s=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,s,t;return r=e,(s=[{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,s),t&&n(r,t),Object.defineProperty(r,"prototype",{writable:!1}),e}(),t=s,i={},o=function(e){var a=[];Object.keys(r).forEach((function(n){var s;(null===(s=r[n].order)||void 0===s?void 0:s.indexOf(e))>-1&&a.push(n)}));var n={name:e,probability:0,cures:a,have:!1,got:function(){var r;i[e].have||(eventStream.raiseEvent("insightGotAff",i[e]),eventStream.raiseEvent("insightGot".concat(e),i[e])),i[e].have=!0,i[e].probability=1,null===(r=i[e].timer)||void 0===r||r.start()},lost:function(){var r;i[e].have&&(eventStream.raiseEvent("insightLostAff",i[e]),eventStream.raiseEvent("insightLost".concat(e),i[e])),i[e].have=!1,i[e].probability=0,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(d).indexOf(e)>-1&&(n.timer=new t("insightTimer".concat(e),d[e].duration),n.timer.addCallback(n.lost)),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"],d={test:{duration:10},weakenedmind:{duration:60},slimeobscure:{duration:30},palpatarfeed:{duration:20},cleanseaura:{duration:6}};l.forEach((function(e){i[e]=o(e)}));function c(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?c(Object(a),!0).forEach((function(r){m(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(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"],justice:["paralysis","sensitivity","healthleech","haemophilia","weariness","asthma","clumsiness"]};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,s=function(){};return{s:s,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:s}}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 t,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,t=e},f:function(){try{i||null==a.return||a.return()}finally{if(o)throw t}}}}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 q=i,j=[[]],x=[],E=[],A={id:""},P=function(e){q[e].got();var r,a=N(j);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()}E.push(e),T()},S=function(e){q[e].lost(),j.forEach((function(r){var a=r.indexOf(e);a>-1&&r.splice(a,1)})),L(),T()},z=function(e){var a,n=N(r[e].order);try{for(n.s();!(a=n.n()).done;){var s=a.value;if(1===i[s].probability)return S(s),!0}}catch(e){n.e(e)}finally{n.f()}return!1},L=function(e){if(1!==j.length){var r,a=new Map,n=[],s=N(j);try{for(s.s();!(r=s.n()).done;){var t=r.value.slice().sort().join();a.has(t)?a.set(t,a.get(t)+1):a.set(t,1)}}catch(e){s.e(e)}finally{s.f()}return 1===new Set(a.values()).size&&(a.forEach((function(e,r){return n.push(r.split(","))})),j=n),n}},T=function(){var e=new Set(j.flat()),r=x.filter((function(r){return!e.has(r)}));r.length>0&&r.forEach((function(e){return q[e].lost()})),(x=Array.from(e)).forEach((function(e){q[e].probability=parseFloat((Math.round(100*function(e){return j.filter((function(r){return r.includes(e)})).length/j.length}(e))/100).toFixed(2))})),eventStream.raiseEvent("insightUpdateAffs")},D=P,C=S,M=function(e){if(r[e].bals_used.includes("salve")&&z(e))console.log("salveCure() true return");else{var a=r[e].order,n=[],s=!1;j.forEach((function(e){if(e.find((function(e){return a.includes(e)}))){s=!0;var r,t=N(e);try{var i=function(){var s=r.value;if(a.includes(s)){var t=e.filter((function(e){return e!==s}));t.length>0&&n.push(t)}};for(t.s();!(r=t.n()).done;)i()}catch(e){t.e(e)}finally{t.f()}}})),s&&(j=n.length>0?n:[[]]),L(),T(),E.push(e)}},H=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(j.map((function(e){return e.slice(0)})));try{for(n.s();!(a=n.n()).done;){var s=a.value;s.includes(e)||s.push(e),r.push(s)}}catch(e){n.e(e)}finally{n.f()}})),j=r.length>0?r:[[]],L(),T()},I=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(j.map((function(e){return e.slice(0)})));try{for(n.s();!(a=n.n()).done;){var s=a.value;s.includes(e)||(s.push(e),r.push(s))}}catch(e){n.e(e)}finally{n.f()}})),j.forEach((function(a){e.every((function(e){return a.includes(e)}))&&r.push(a)})),r.length>0&&(j=r),L(),T()},R=function(e){var r,a=[],n=j.map((function(e){return e.slice(0)})),s=N(n);try{for(s.s();!(r=s.n()).done;){var t,o=r.value,l=N(e);try{for(l.s();!(t=l.n()).done;){var d=t.value;if(!o.includes(d)){i[d].have=!0,o.push(d),a.push(o);break}}}catch(e){l.e(e)}finally{l.f()}}}catch(e){s.e(e)}finally{s.f()}n.forEach((function(r){e.every((function(e){return r.includes(e)}))&&a.push(r)})),a.length>0&&(j=a),L(),T()},G=function(e,r){var a=q[e].probability;if(!(r&&1===a||!r&&0===a))if(r&&0===q[e].probability)P(e);else if(r||1!==q[e].probability){var n=[];j.forEach((function(a){a.includes(e)===r&&n.push(a)})),j=n,E.push("".concat(e,":").concat(r)),L(),T()}else S(e)},B=function(){for(var e in j=[[]],x=[],E=[],q){if(Object.hasOwnProperty.call(q,e))q[e].reset()}},F=function(e){var r=e.p,a=e.m,n=_(j);if((n=n.filter((function(e){var n=e.filter((function(e){return k.physicals.includes(e)})),s=e.filter((function(e){return k.mentals.includes(e)}));return n.length<=r&&s.length<=a}))).length<r+a)return console.error("Insight Error: No present branch for physical ".concat(r,", mental ").concat(a)),!1;j=_(n),L(),T()},U={};function Y(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 K(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?Y(Object(a),!0).forEach((function(r){W(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Y(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function W(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:1.5},{id:"salve",duration:1},{id:"focus",duration:2.5},{id:"tree",duration:15},{id:"shrugging",duration:10}].forEach((function(e){return U[e.id]=(a=(r=e).id,n=r.duration,(s={name:a,have:!0,got:function(){U[a].have=!0,eventStream.raiseEvent("insightGotBal",U[a]),eventStream.raiseEvent("insightGot".concat(a),U[a]),U[a].timer.stop()},lost:function(){var e;U[a].have=!1,eventStream.raiseEvent("insightLostBal",U[a]),eventStream.raiseEvent("insightLost".concat(a),U[a]),null===(e=U[a].timer)||void 0===e||e.start()},reset:function(){U[a].have=!0,U[a].timer.stop()},timer:new t("insightTimer".concat(a),n)}).timer.addCallback(s.reset),s);var r,a,n,s}));var $=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)},J={fg:"olive",bg:""},Q={fg:"royalblue",bg:""},V={fg:"",bg:""},X={fg:"ForestGreen",bg:""},Z={fg:"",bg:""},ee={fg:"slategray",bg:""},re={fg:"greenyellow",bg:""},ae={fg:"DeepSkyBlue",bg:""},ne={fg:"DarkOrange",bg:""},se={fg:"Red",bg:""},te={fg:"Gold",bg:""},ie={fg:"firebrick",bg:""},oe={fg:"Tan",bg:""},le={fg:"darkseagreen",bg:""},de={fg:"orchid",bg:""},ce={fg:"sienna",bg:""},me={fg:"darkviolet",bg:""},he={fg:"lightpink",bg:""},ue={fg:"paleyellow",bg:"darkslategray"},be={addiction:K({shortName:"add"},ne),aeon:K({shortName:"ae"},re),agoraphobia:K({shortName:"agor"},Q),amnesia:{shortName:"amn",fg:"",bg:""},anorexia:K({shortName:"ANO"},ce),asthma:K({shortName:"AST"},X),blackout:{shortName:"bo",fg:"",bg:""},blindness:K({shortName:"unb"},V),bound:K({shortName:"bnd"},ue),brokenleftarm:K({shortName:"la1"},de),brokenleftleg:K({shortName:"ll1"},de),brokenrightarm:K({shortName:"ra1"},de),brokenrightleg:K({shortName:"rl1"},de),bruisedribs:{shortName:"ribs",fg:"",bg:""},burning:K({shortName:"burn"},de),calcifiedskull:K({shortName:"calh"},me),calcifiedtorso:K({shortName:"calt"},me),claustrophobia:K({shortName:"clau"},oe),clumsiness:K({shortName:"clu"},X),concussion:K({shortName:"conc"},me),confusion:K({shortName:"con"},oe),corruption:{shortName:"corr",fg:"",bg:""},crackedribs:K({shortName:"cr"},he),crushedthroat:K({shortName:"cru"},de),daeggerimpale:K({shortName:"daeg"},ue),damage:{shortName:"dmg",fg:"tomato",bg:""},damagedleftarm:K({shortName:"la2"},me),damagedleftleg:K({shortName:"ll2"},me),damagedrightarm:K({shortName:"ra2"},me),damagedrightleg:K({shortName:"rl2"},me),damagedhead:K({shortName:"hd2"},me),darkshade:K({shortName:"dark"},ne),dazed:K({shortName:"dzd"},re),dazzled:K({shortName:"dzl"},de),deadening:K({shortName:"dea"},re),deafness:K({shortName:"und"},Z),dehydrated:{shortName:"deh",fg:"",bg:""},dementia:K({shortName:"dem"},oe),depression:K({shortName:"dep"},te),deteriorate:{shortName:"det",fg:"",bg:""},disloyalty:K({shortName:"disl"},ie),disrupted:{shortName:"disr",fg:"",bg:""},dissonance:K({shortName:"disso"},te),dizziness:K({shortName:"diz"},te),enscorcelled:{shortName:"ensor",fg:"",bg:""},entangled:K({shortName:"entgl"},ue),epilepsy:K({shortName:"epi"},te),fear:{shortName:"fear",fg:"",bg:""},flushings:K({shortName:"flush"},ne),frozen:K({shortName:"frz"},le),generosity:K({shortName:"gen"},ae),grievouswounds:K({shortName:"grv"},he),guilt:K({shortName:"gui"},Q),haemophilia:K({shortName:"haem"},ne),hallucinations:K({shortName:"hall"},oe),hamstrung:{shortName:"hms",fg:"",bg:""},healthleech:K({shortName:"hthl"},X),heartseed:K({shortName:"heart"},me),hellsight:K({shortName:"hell"},ie),horror:K({shortName:"hor"},te),hypersomnia:K({shortName:"hypers"},oe),hypochondria:K({shortName:"hypoch"},X),hypothermia:K({shortName:"hypoth"},me),icefisted:{shortName:"ice",fg:"",bg:""},impaled:K({shortName:"impl"},ue),impatience:K({shortName:"IMPAT"},te),indifference:K({shortName:"ind"},ae),itching:K({shortName:"itch"},ce),justice:K({shortName:"just"},ae),kkractlebrand:K({shortName:"kkr"},he),laceratedthroat:K({shortName:"lac2"},me),latched:K({shortName:"latch"},he),lethargy:K({shortName:"let"},ne),lightbind:{shortName:"light",fg:"",bg:""},loneliness:K({shortName:"lon"},Q),lovers:K({shortName:"love"},ae),manaleech:K({shortName:"man"},ie),mangledleftarm:K({shortName:"la3"},me),mangledleftleg:K({shortName:"ll3"},me),mangledrightarm:K({shortName:"ra3"},me),mangledrightleg:K({shortName:"rl3"},me),mangledhead:K({shortName:"hd3"},me),masochism:K({shortName:"maso"},Q),mildtrauma:K({shortName:"tor1"},me),mycalium:K({shortName:"myc"},te),nausea:K({shortName:"nau"},ne),numbedleftarm:{shortName:"nbla",fg:"",bg:""},numbedrightarm:{shortName:"nbra",fg:"",bg:""},pacified:K({shortName:"pac"},ae),paralysis:K({shortName:"PAR"},se),paranoia:K({shortName:"prn"},oe),parasite:K({shortName:"prs"},X),peace:K({shortName:"pea"},ae),phlogisticated:{shortName:"phlog",fg:"",bg:""},pinshot:{shortName:"psh",fg:"",bg:""},pressure:K({shortName:"pres"},ee),prone:{shortName:"pr",fg:"",bg:""},pyramides:K({shortName:"pyra"},se),pyre:K({shortName:"pyre"},ae),rebbies:K({shortName:"reb"},X),recklessness:K({shortName:"reck"},Q),retardation:{shortName:"ret",fg:"",bg:""},retribution:K({shortName:"retr"},ae),revealed:{shortName:"rev",fg:"",bg:""},sandfever:K({shortName:"sand"},te),scalded:K({shortName:"scald"},ce),scytherus:K({shortName:"scy"},ne),selarnia:K({shortName:"sel"},de),sensitivity:K({shortName:"sen"},X),serioustrauma:K({shortName:"tor2"},me),shadowmadness:K({shortName:"shad"},te),shivering:K({shortName:"shiv"},le),shyness:K({shortName:"shy"},te),skullfractures:K({shortName:"sf"},he),slashedthroat:K({shortName:"lac1"},ce),sleeping:{shortName:"slp",fg:"",bg:""},slickness:K({shortName:"SLI"},se),slimeobscure:{shortName:"nkh",fg:"",bg:""},spiritburn:K({shortName:"spirB"},Q),spiritwrack:{shortName:"spirW",fg:"",bg:""},stupidity:K({shortName:"st"},te),stuttering:K({shortName:"stut"},ce),homunculusmercury:{shortName:"merc",fg:"",bg:""},temperedcholeric:K({shortName:"choH"},J),temperedmelancholic:K({shortName:"melaH"},J),temperedphlegmatic:K({shortName:"phleH"},J),temperedsanguine:K({shortName:"sanH"},J),tenderskin:K({shortName:"tend"},Q),tension:K({shortName:"tens"},re),timeflux:{shortName:"tmfx",fg:"",bg:""},timeloop:K({shortName:"tmlp"},ae),tonguetied:K({shortName:"tngt"},me),torntendons:K({shortName:"tt"},he),transfixation:K({shortName:"trfx"},ue),unweavingbody:K({shortName:"unwM"},ne),unweavingspirit:K({shortName:"unwS"},re),unweavingmind:K({shortName:"unwM"},te),unblind:{shortName:"unB",fg:"",bg:""},undeaf:{shortName:"unD",fg:"",bg:""},vertigo:K({shortName:"vert"},Q),vitrified:{shortName:"vitri",fg:"",bg:""},voidfisted:{shortName:"void",fg:"",bg:""},voyria:{shortName:"voy",fg:"",bg:""},weariness:K({shortName:"wea"},X),webbed:K({shortName:"web"},ue),whisperingmadness:K({shortName:"mad"},Q),wristfractures:K({shortName:"wf"},he)};var ge=function(e){var r=e.id,a=e.player,n=e.probability,s=void 0===n?0:n;if(fe(a)&&void 0!==r){var t=i[r];return!!(t.have&&t.probability>=s)}},pe=function(e){var r=e.ids,a=e.probability,n=void 0===a?0:a,s=e.player;if(fe(s)){var t=!1;return Array.isArray(r)&&(t=r.every((function(e){return x.indexOf(e)>-1&&i[e].probability>=n}))),t}},fe=function(e){if(void 0===e||e==A.id)return!0},ye=function(){B(),b(),v(),function(){for(var e in U)U[e].reset()}(),insight.reporting.notices&&$("Reset")};function ve(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 ke(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var _e={version:"0.2.3",addAff:function(e){var r=e.id,a=e.player;fe(a)&&void 0!==r&&(D(r),insight.reporting.notices&&$("Added: ".concat(r)))},getAff:function(e){var r=e.id,a=e.player;if(fe(a)&&void 0!==r)return insight.affs[r]},removeAff:function(e){var r=e.id,a=e.player;fe(a)&&void 0!==r&&C(r)},usedCure:function(e){var a=e.id,n=e.player;fe(n)&&void 0!==a&&(!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)?pe(e)&&e.forEach((function(e){return G(e,!1)})):ge(e)&&G(e,!1)}))}(a),M(a),r[a].bals_used.forEach((function(e){return U[e].lost()})),eventStream.raiseEvent("insightUsedCure",a),eventStream.raiseEvent("insightUseCure".concat(a)))},confirmAff:function(e){var r=e.id,a=e.state,n=e.player;fe(n)&&void 0!==r&&(G(r,a),insight.reporting.notices&&$("Confirmed: ".concat(r," ").concat(a)))},reset:ye,randomAffs:function(e){var r=e.ids,a=e.player;fe(a)&&void 0!==r&&(H(r),insight.reporting.notices&&$("Random: ".concat(r)))},readAuraConfirm:function(e){var r=e.p,a=e.m,n=e.player;fe(n)&&F({p:r,m:a})},smartAffs:function(e){var r=e.ids,a=e.player,n=e.ordered,s=void 0!==n&&n;fe(a)&&void 0!==r&&(s?R(r):I(r),insight.reporting.notices&&$("Smart: ".concat(r)))},addDef:function(e){var r=e.id,a=e.player;fe(a)&&void 0!==r&&(h[r]=!0,insight.reporting.notices&&$("Def (".concat(r,"): true")))},removeDef:function(e){var r=e.id,a=e.player;fe(a)&&void 0!==r&&(h[r]=!1,insight.reporting.notices&&$("Def (".concat(r,"): false")))},hasAff:ge,hasAffs:pe,hasAnAff:function(e){var r=e.ids,a=e.player,n=e.probability,s=void 0===n?0:n;if(fe(a)){var t=!1;return Array.isArray(r)&&(t=x.some((function(e){return r.indexOf(e)>-1&&i[e].probability>=s}))),t}},hasDef:function(e){var r=e.id;e.player;return h[r]},hasBal:function(e){var r=e.id;e.player;return U[r].have},lostBal:function(e){var r=e.id;e.player;U[r].lost()},balRemaining:function(e){var r=e.id;e.player;return U[r].timer.remaining()},setStatus:function(e){var r=e.id,a=e.value;e.player;f[r]=a,insight.reporting.notices&&$("Status (".concat(r,"): ").concat(a))},getStatus:function(e){var r=e.id;e.player;return f[r]},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(be[a].fg||"",";background:").concat(be[a].bg||""),innerHTML:insight.reporting.shortNames?"".concat(be[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(be[n].fg||"",";background:").concat(be[n].bg||""),innerHTML:insight.reporting.shortNames?"".concat(be[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(e){var r=!1,a=nexusclient.current_block.filter((function(e){return void 0===e.html_text})),n=a.indexOf(nexusclient.current_line);if(void 0!==a[n+1].line){var s=a[n+1].parsed_line.text();return e instanceof RegExp?r=e.test(s):"string"==typeof e&&(r=s.includes(e)),r}},checkBlock:function(e){var r=nexusclient.current_block,a=!1;return e instanceof RegExp?a=!!r.find((function(r){return void 0!==r.line&&e.test(r.line)})):"string"==typeof e&&(a=!!r.find((function(r){return void 0!==r.line&&r.line.includes(e)}))),a},notice:$,target:A,reporting:{notices:!1,shortNames:!1,colors:!1},occultist:k,affs:i,defs:h,bals:U,status:f,timeline:function(){return j},debug:function(){console.log(A.id)},setTarget:function(e){void 0!==e&&(A.id=e,ye())},players:{}};globalThis.insight=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?ve(Object(a),!0).forEach((function(r){ke(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ve(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},_e),globalThis.insight.reset();eventStream.removeListener("insightLostAff","insightLostAff"),eventStream.registerEvent("insightLostAff",(function(e){_e.reporting.notices&&_e.notice("Pruned: ".concat(e.name))}));eventStream.removeListener("IRE.Target.Set","insightTarget"),eventStream.registerEvent("IRE.Target.Set",(function(e){_e.target.id=e})),"undefined"!=typeof nexusclient&&"Khaseem"!==nexusclient.datahandler().GMCP.Char.Status.name&&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.2.2",
"version": "0.2.3",
"description": "insight for nexus",

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

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