Bots Home
|
Create an App
BattleBate Bot
Author:
cobrasnipz97
Description
Source Code
Launch Bot
Current Users
Created by:
Cobrasnipz97
!function(n){var r={};function a(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=n,a.c=r,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)a.d(n,r,function(e){return t[e]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=98)}([function(e,g,y){"use strict";(function(t){y.d(g,"b",function(){return e}),y.d(g,"f",function(){return n}),y.d(g,"g",function(){return r}),y.d(g,"h",function(){return a}),y.d(g,"d",function(){return o}),y.d(g,"c",function(){return i}),y.d(g,"i",function(){return s}),y.d(g,"j",function(){return c}),y.d(g,"k",function(){return u}),y.d(g,"l",function(){return l}),y.d(g,"n",function(){return f}),y.d(g,"e",function(){return h}),y.d(g,"m",function(){return d}),y.d(g,"a",function(){return p});var e=Symbol("UUID_BACKGROUND"),n=Symbol("UUID_HEALTH_FILL"),r=Symbol("UUID_HEALTH_TROUGH"),a=Symbol("UUID_JOKER"),o=Symbol("UUID_DEATHSTROKE"),i=Symbol("UUID_BANE"),s=Symbol("UUID_LIZARD"),c=Symbol("UUID_OGRE"),u=Symbol("UUID_ORC_WARRIOR"),l=Symbol("UUID_SKELETON_ARCHER"),f=Symbol("UUID_TROLL"),h=Symbol("UUID_DRAUGR"),d=Symbol("UUID_SKELETON_WARRIOR"),p=Symbol("UUID_ANCIENT_LICH"),b={config:{mode:"main",env:"production"},registry:{main:{test:(new Map).set(e,"18bdcbcc-1be8-44d8-8f07-3d096e54dbe7").set(n,"ac204e23-6ec0-4e9c-93ed-c9a64bf9dc85").set(r,"6feab7f5-b363-4e1f-9722-3ef77faa58a8").set(a,"9487fad1-baf1-4904-8ba6-75752bc77f07").set(o,"d0c874e5-85a5-45de-9e8d-d0548a9fd7f7").set(i,"ed66e539-609c-4a94-9f11-29b92935bcec").set(s,"b6e062b5-3859-4fcc-8e31-992880c90a9a").set(c,"d87eeb8d-2c76-422a-a042-86c7d067fd0d").set(u,"c426b27c-8ed4-495d-af37-f9858938116d").set(l,"cb50597b-0cb9-4aa1-a828-466cde09c61f").set(f,"30372868-dc4d-4689-af68-c2ac0e413668").set(h,"2f6265e9-a8af-4d3e-b8be-e648f1b51c19").set(d,"5ff7a152-2bc7-4837-b8fa-ef28971f9564").set(p,"92d4587d-adf4-4fa0-bc68-8a6088494c06"),alpha:(new Map).set(e,"22c6ad0a-0ab8-4167-9c8f-3496f3ac8860").set(n,"fc53815c-5dbb-4639-a3d1-582fb516d67a").set(r,"54beceaa-4ae9-44f8-baf3-88dab6abe23c"),production:(new Map).set(e,"3f669ceb-3a86-491e-b55c-dff98a97e95b").set(n,"0a99bb71-2d59-4f52-8d90-b5bb3a876723").set(r,"ea47fd61-8b21-4c07-b058-011e5121346a").set(a,"0ee14ae7-f5d9-4e7c-a070-ee2b5c961c04").set(o,"694a7a95-b5d1-4c39-9e76-509fddc25ce3").set(i,"2fd60857-a6ce-4c0d-b99c-66b9f67c89ea").set(s,"e59b117e-54b3-41ea-ad55-918414cb19e9").set(c,"624e671f-ed84-4608-925a-c8ebe828657e").set(u,"03b25d74-2318-4028-9b84-e7c6fc9c76c0").set(l,"f751988f-c286-4ee0-8988-56b116dd9038").set(f,"313a8177-9c25-4f8d-a54d-44a96666a5cf").set(h,"589a08f6-b14f-453c-8add-89fb30159d38").set(d,"1299f264-f0dd-45ce-ad12-ed3cf75f1f6b").set(p,"5b3b8447-2ef9-4168-84bd-34e60c8d3ae6")},lite:{test:(new Map).set(e,"d69fe822-980e-4994-8802-0663dc99a161").set(n,"fc53815c-5dbb-4639-a3d1-582fb516d67a").set(r,"54beceaa-4ae9-44f8-baf3-88dab6abe23c").set(a,"75755324-e258-4ba0-bd40-a74e087b7cdb").set(o,"4149aee4-c243-49c6-86c8-bfdcd9eedfd1").set(i,"...").set(s,"60a363a3-ae63-43e9-a5f6-c5cc289fa9fc").set(c,"b7bc3c04-e32c-4107-b5b2-7023daac9c12").set(u,"...").set(l,"855b648c-2d97-401f-b515-300da6fe8908").set(f,"408f6a95-554d-4745-9c78-e3fb0227f768").set(h,"ed292fb9-e71f-470d-aaea-81635b70aea2").set(d,"...").set(p,"cfe8dab1-7774-4127-ac37-e599df543d99"),production:(new Map).set(e,"f9c3d075-0b2f-4c9d-8ce7-3ee50702058a").set(n,"db9a00e0-0727-469b-9aaa-6d3f72fe699b").set(r,"f6aa7e73-6149-47c5-9c80-9b7bdbf58d96").set(a,"5984d1c9-f547-451e-881a-e1152c026cdd").set(o,"dcd3a4cd-2e24-4e33-8449-7c21a531c0c0").set(i,"ee037436-d661-43c0-979b-4b093f038475").set(s,"3aa49115-c00c-441d-a3ab-ac4d2663c589").set(c,"5810b657-db4a-4374-9d4a-203a1ada848f").set(u,"03b4f857-6a3d-4108-b505-d86f649d459f").set(l,"957ae2eb-cf0d-4071-9ce7-30090f98c35b").set(f,"f3c3da2d-6c24-456d-96ae-a047ec2133a7").set(h,"996fa808-940f-4bba-8305-806976bbe3a8").set(d,"951607aa-fba4-405d-b572-d36498d1dd0e").set(p,"367558d5-36a7-41a5-844a-234601f59e5e")}},get:function(e){if("main"===t.MODE)switch(t.ENV){case"test":return this.registry.main.test.get(e);case"alpha":return this.registry.main.alpha.get(e);case"production":default:return this.registry.main.production.get(e)}else switch(t.ENV){case"test":return this.registry.lite.test.get(e);case"production":default:return this.registry.lite.production.get(e)}}};g.o=b}).call(this,y(5))},function(e,t,n){var r=n(59),a=n(69),o=r(function(e,t,n){return e+(n?" ":"")+a(t)});e.exports=o},function(e,t,n){"use strict";var r=n(6),a=n.n(r);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=(new Map).set("die-1",":battlebate_die1").set("die-2",":battlebate_die2").set("die-3",":battlebate_die3").set("die-4",":battlebate_die4").set("die-5",":battlebate_die5").set("die-6",":battlebate_die6").set("die-bonus",":battlebate_die_bonus").set("level-up",":battlebate_level_up").set("ancient-dragon",":battlebate_ancient_dragon_3").set("awakened-tree",":battlebate_awakened_tree").set("death-knight",":battlebate_death_knight_2").set("draugr",":battlebate_draugr").set("fire-elemental",":battlebate_fire_elemental").set("ghost",":battlebate_ghost").set("half-dragon",":battlebate_half_dragon").set("lich",":battlebate_lich_2").set("lizardman",":battlebate_lizardman").set("merfolk-warrior",":battlebate_merfolk_warrior_2").set("myrmidon",":battlebate_myrmidon").set("ogre",":battlebate_ogre").set("orc-chieftain",":battlebate_orc_chieftain").set("orc-hellbringer",":battlebate_orc_hellbringer_2").set("skeleton-archer",":battlebate_skeleton_archer").set("skeleton-swordsman",":battlebate_skeleton_swordsman").set("troll",":battlebate_troll").set("undead-dragon",":battlebate_undead_dragon_3").set("wraith",":battlebate_wraith").set("bard-novice",":battlebate_bard_novice").set("bard-elite",":battlebate_bard_elite").set("bard-legendary",":battlebate_bard_legendary").set("fighter-novice",":battlebate_fighter_novice").set("fighter-elite",":battlebate_fighter_elite").set("fighter-legendary",":battlebate_fighter_legendary").set("ranger-novice",":battlebate_ranger_novice").set("ranger-elite",":battlebate_ranger_elite").set("ranger-legendary",":battlebate_ranger_legendary").set("warlock-novice",":battlebate_warlock_novice").set("warlock-elite",":battlebate_warlock_elite").set("warlock-legendary",":battlebate_warlock_legendary").set("batman-novice",":battlebate_batman_novice_2").set("batman-elite",":battlebate_batman_elite_3").set("batman-legendary",":battlebate_batman_legendary_2").set("alfred-novice",":battlebate_alfred_novice_2").set("alfred-elite",":battlebate_alfred_elite_2").set("alfred-legendary",":battlebate_alfred_legendary_2").set("nightwing-novice",":battlebate_nightwing_novice_2").set("nightwing-elite",":battlebate_nightwing_elite_2").set("nightwing-legendary",":battlebate_nightwing_legendary_2").set("azrael-novice",":battlebate_azrael_novice_2").set("azrael-elite",":battlebate_azrael_elite_2").set("azrael-legendary",":battlebate_azrael_legendary_2").set("joker",":battlebate_joker_3").set("bane",":battlebate_bane_3").set("deathstroke",":battlebate_deathstroke_3"),s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"render",value:function(e){return a()(i.has(e),"".concat("Unknown graphic specified for `Graphics#render`",': "').concat(e,'"')),i.get(e)}}],(n=null)&&o(t.prototype,n),r&&o(t,r),e}();t.a=s},function(e,t,n){"use strict";var r=n(11),a=n.n(r),o=n(4);function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}var u=200,l=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.name=e,this.xp=0,this.hero=n.heroes.get(t?n.heroes.keys().next().value:a()(i(n.heroes.keys())))}return c(n,null,[{key:"configure",value:function(e,t){"LEVEL_UP_COST"===e&&(u=t)}},{key:"setTheme",value:function(e){switch(e){case"fantasy":this.heroes=o.f;break;case"batman":this.heroes=o.c}}}]),c(n,[{key:"changeHero",value:function(e){return this.hero=n.heroes.get(e),this}},{key:"attack",value:function(e,t){var n=this.level;return e.damage(t),this.xp+=t,{levelsGained:this.level-n}}},{key:"emoji",get:function(){return this.hero?3<=this.level?this.hero.graphics.get("legendary"):2===this.level?this.hero.graphics.get("elite"):this.hero.graphics.get("novice"):null}},{key:"level",get:function(){return Math.ceil((this.xp+1)/u)}}]),n}();l.setTheme("fantasy"),t.a=l},function(e,t,n){"use strict";var r=new Map;r.set("fighter",{name:"fighter",bonusPrize:null,description:"A master of combat",graphics:(new Map).set("novice","fighter-novice").set("elite","fighter-elite").set("legendary","fighter-legendary"),attackPhrases:["slashes at the","shield-bashes the","attacks the","charges at the"],levelUpPhrase:"heroic bravery"}),r.set("bard",{name:"bard",bonusPrize:"bonus_charm_prize",description:"The magical performance artist",graphics:(new Map).set("novice","bard-novice").set("elite","bard-elite").set("legendary","bard-legendary"),attackPhrases:["thrusts at the","shouts a word of power at the","uses magic against the","ripostes against the"],levelUpPhrase:"magical skill"}),r.set("warlock",{name:"warlock",bonusPrize:"bonus_domination_prize",description:"A wielder of dark and unnatural power",graphics:(new Map).set("novice","warlock-novice").set("elite","warlock-elite").set("legendary","warlock-legendary"),attackPhrases:["unleashes eldrich energy against the","summons dark magical tendrils to assault the","unleashes a burst of hellfire against the","channels telekinetic force to repel the"],levelUpPhrase:"dark pact"}),r.set("ranger",{name:"ranger",bonusPrize:"bonus_flash_prize",description:"The precision hunter and wielder of nature magic",graphics:(new Map).set("novice","ranger-novice").set("elite","ranger-elite").set("legendary","ranger-legendary"),attackPhrases:["takes aim and strikes","fires an arrow at","looses a hailstorm of arrows at","summons an elemental host to assault"],levelUpPhrase:"keen expertise"});var a=r,o=n(0),i=(new Map).set("ancient-lich",["Just as planned...","Good...all goes according to plan...","Look at them...so ripe, so innocent...","Your souls are mine!","Excellent, more souls!","The ancient evil survives!","I love it when a plan comes together...","This is no dress! It's the standard Lich uniform...","I should've printed more brochures for the cult...","The path of damned is eternal...and you get dental!","Don't worry about the fine print, the soul consumption clause is never exercised..."]).set("draugr",["I have awoken.","I have returned.","Revenge...","Death is not the end...","Death rages!","My patience has ended!","Ugh, I'm getting too old for this...","I think I'm having a mid-death crisis...","I'd rather be slumbering...","I'll be back..."]).set("troll",["I'm da strongest and da meanest there is!","I'll crush ya!","Gonna clobber da whole lot of ya!","Time to bust skulls!","Lemme at 'em!","Stand still so I can kill ya!","If it's a FIGHT ya want...","You call dat fightin?!","This is gonna HURT...a LOT!"]).set("ogre",["Gonna squish ya!","Gonna clobber ya REAL good!","Oh, dis is gonna be GOOD!","Now I'm hungry!","So...angry!","What you lookin at?!","Hit 'em with a rock!","Now I'm REAL mad!","Crush da runts!","Stomp 'em flat!","Lousy runts!","Squash da little ones!","Big is best!"]).set("lizard-folk",["Get 'em!","Chop 'em up!","Stick 'em with the pointy end!","Chaaarge!","Ready for fightin'!","Crush 'em!","It's ours for the takin'!","Swarm them!","'Ere we go!"]).set("orc-warrior",["The hunt begins!","You call this a fight?!","This is gonna be a REAL fight!","Now you're fightin' a REAL warrior.","Now's the time for tearin' things up!","Come here so I can squash ya, git!","Oh you're gonna PAY for that!","Orcs are MADE for fightin!"]).set("skeleton",["In the grave, no one can hear you scream. Well they can, but it's really muffled.","The damned have returned!","We have returned.","Lucky creatures. At long last you have found the tranquility of death...","So much fear. So much noise.","You will all join the army of the dead!","Join us!"]).set("skeleton-archer",["Shot through the heart, and I'm to blame.","All I see is blackness...oh, my hood's down."]).set("myrmidon",["Our tide...is rising.","The tide turns...","Time is short, surface-dwellers.","I shall drown your sorrows.","This world will be ours, and we'll start with the swimming pools."]),s=[{name:"lizardman",graphic:{id:o.i,x:13,y:17,emoji:"lizardman"},taunts:i.get("lizard-folk")},{name:"ogre",graphic:{id:o.j,x:10,y:11,emoji:"ogre"},taunts:i.get("ogre")},{name:"orc warrior",graphic:{id:o.k,x:17,y:10,emoji:"orc-hellbringer"},taunts:i.get("orc-warrior")},{name:"skeleton archer",graphic:{id:o.l,x:11,y:13,emoji:"skeleton-archer"},taunts:i.get("skeleton").concat(i.get("skeleton-archer"))},{name:"troll",graphic:{id:o.n,x:13,y:8,emoji:"troll"},taunts:i.get("troll")},{name:"draugr",graphic:{id:o.e,x:9,y:9,emoji:"draugr"},taunts:i.get("draugr")},{name:"skeleton-warrior",graphic:{id:o.m,x:10,y:15,emoji:"skeleton-swordsman"},taunts:i.get("skeleton")},{name:"ancient-lich",graphic:{id:o.a,x:9,y:8,emoji:"lich"},taunts:i.get("ancient-lich")}],c=n(1),u=n.n(c);function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"spawn",value:function(e){return"The ".concat(u()(e.name)," appears!")}},{key:"defeat",value:function(e,t){return"".concat(e.name," has slain the ").concat(u()(t.name),"!")}},{key:"heroChange",value:function(e,t){var n=t.settings[e.hero.bonusPrize]||"random prize",r=t.settings.level_up_amount;return"You are a ".concat(u()(e.hero.name)," - every ").concat(r," tokens tipped wins you: [").concat(n,"]! :: Type /hero for more")}},{key:"hint",value:function(){return"*** Only your tokens can defeat the monster! ***"}}],(n=null)&&l(t.prototype,n),r&&l(t,r),e}(),h=new Map;h.set("batman",{name:"batman",bonusPrize:null,description:"Genius detective, trained to be the ultimate crime fighter",graphics:(new Map).set("novice","batman-novice").set("elite","batman-elite").set("legendary","batman-legendary"),attackPhrases:["throws a batarang at","uppercuts","drives a knee into","lands a punch on","launches tear gas pellets at"],levelUpPhrase:"brutal justice"}),h.set("alfred",{name:"alfred",bonusPrize:"bonus_charm_prize",description:"Ex special forces turned butler of Bruce Wayne. British.",graphics:(new Map).set("novice","alfred-novice").set("elite","alfred-elite").set("legendary","alfred-legendary"),attackPhrases:["throws a jab at","engages in fisticuffs with","lands a good wallop on","uses their shotgun to bludgeon"],levelUpPhrase:"impeccable manners"}),h.set("azrael",{name:"azrael",bonusPrize:"bonus_domination_prize",description:"Enhanced assassin trained by a secretive religious order.",graphics:(new Map).set("novice","azrael-novice").set("elite","azrael-elite").set("legendary","azrael-legendary"),attackPhrases:["drop kicks","uses the pommel of his sword to batter","brings both fists crashing down on","body slams"],levelUpPhrase:"zealous crusade"}),h.set("nightwing",{name:"nightwing",bonusPrize:"bonus_flash_prize",description:"Dashing, acrobatic crime fighter.",graphics:(new Map).set("novice","nightwing-novice").set("elite","nightwing-elite").set("legendary","nightwing-legendary"),attackPhrases:["uses their escrima sticks against","throws a cluster of stun pellets at","sweeps the leg of","jump kicks"],levelUpPhrase:"acrobatic prowess"});var d=h,p=(new Map).set("joker",["Aww, gotta say, I thought you'd have more fight in you! A LOT more fight!","If I weren't crazy, I'd be insane!","All it takes is one bad day to reduce the sanest man alive to lunacy.","Oh, you filthy degenerates!","So many happy faces!","What a rush!","You really should loosen up dear, have a laugh now and then!","Step right up and explore the insanity!","Don't worry, I promise a fair fight.","See, I'm not a monster; I'm just ahead of the curve...","Whatever doesn't kill you simply makes you stranger!","Madness is like gravity, all it takes is a little push!","They don't make straitjackets like they used to!","Guys! I just want to talk... About shooting you... With this gun... Which I'll do once we're done talking!"]).set("deathstroke",["I'm the best.","This fight is boring me.","I love my job...","Do you prefer steel or lead?","Still wanna be a hero? Go ahead, I dare ya.","It's been a long rivalry, Bat. But this is the only way it could end.","I'm not impressed.","Too easy. Your tactics are one-dimensional."]).set("bane",["I am Bane - and I could kill you... but death would only end your agony - and silence your shame.","I am Bane - the last opponent you'll ever face!","You are beaten! Now I will break you!","Toys. You try to fight me with pathetic little toys.","You've got nothing!","Beg for mercy!","Scream my name!","Only when I'm dead do I intend to rest..."]),b=[{name:"The Joker",graphic:{id:o.h,x:14,y:13,emoji:"joker"},taunts:p.get("joker")},{name:"Deathstroke",graphic:{id:o.d,x:7,y:15,emoji:"deathstroke"},taunts:p.get("deathstroke")},{name:"Bane",graphic:{id:o.c,x:8,y:16,emoji:"bane"},taunts:p.get("bane")}];function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var y=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"spawn",value:function(e){return"".concat(u()(e.name)," is wreaking havoc!")}},{key:"defeat",value:function(e,t){return"".concat(e.name," has taken down ").concat(u()(t.name),"!")}},{key:"heroChange",value:function(e,t){var n=t.settings[e.hero.bonusPrize]||"random prize",r=t.settings.level_up_amount;return"You are ".concat(u()(e.hero.name)," - every ").concat(r," tokens tipped wins you: [").concat(n,"]! :: Type /hero for more")}},{key:"hint",value:function(){return"*** Only your tokens can defeat the villain! ***"}}],(n=null)&&g(t.prototype,n),r&&g(t,r),e}();n.d(t,"f",function(){return a}),n.d(t,"e",function(){return s}),n.d(t,"d",function(){return f}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return b}),n.d(t,"a",function(){return y})},function(yc,zc){var Ac;Ac=function(){return this}();try{Ac=Ac||Function("return this")()||eval("this")}catch(e){"object"==typeof window&&(Ac=window)}yc.exports=Ac},function(x,e,k){"use strict";(function(t){function o(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,a=0,o=Math.min(n,r);a<o;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var l=k(76),r=Object.prototype.hasOwnProperty,f=Array.prototype.slice,n="foo"===function(){}.name;function s(e){return Object.prototype.toString.call(e)}function c(e){return!i(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var u=x.exports=e,a=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(l.isFunction(e)){if(n)return e.name;var t=e.toString().match(a);return t&&t[1]}}function d(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function p(e){if(n||!l.isFunction(e))return l.inspect(e);var t=h(e);return"[Function"+(t?": "+t:"")+"]"}function b(e,t,n,r,a){throw new u.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:a})}function e(e,t){e||b(e,!0,t,"==",u.ok)}function g(e,t,n,r){if(e===t)return!0;if(i(e)&&i(t))return 0===o(e,t);if(l.isDate(e)&&l.isDate(t))return e.getTime()===t.getTime();if(l.isRegExp(e)&&l.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(c(e)&&c(t)&&s(e)===s(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===o(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var a=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==a&&a===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(l.isPrimitive(e)||l.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var a=y(e),o=y(t);if(a&&!o||!a&&o)return!1;if(a)return e=f.call(e),t=f.call(t),g(e,t,n);var i,s,c=w(e),u=w(t);if(c.length!==u.length)return!1;for(c.sort(),u.sort(),s=c.length-1;0<=s;s--)if(c[s]!==u[s])return!1;for(s=c.length-1;0<=s;s--)if(i=c[s],!g(e[i],t[i],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function y(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function m(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function v(e,t,n,r){var a;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),a=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!a&&b(a,n,"Missing expected exception"+r);var o="string"==typeof r,i=!e&&a&&!n;if((!e&&l.isError(a)&&o&&m(a,n)||i)&&b(a,n,"Got unwanted exception"+r),e&&a&&n&&!m(a,n)||!e&&a)throw a}u.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=d(p((t=this).actual),128)+" "+t.operator+" "+d(p(t.expected),128),this.generatedMessage=!0);var n=e.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var a=r.stack,o=h(n),i=a.indexOf("\n"+o);if(0<=i){var s=a.indexOf("\n",i+1);a=a.substring(s+1)}this.stack=a}}},l.inherits(u.AssertionError,Error),u.fail=b,u.ok=e,u.equal=function(e,t,n){e!=t&&b(e,t,n,"==",u.equal)},u.notEqual=function(e,t,n){e==t&&b(e,t,n,"!=",u.notEqual)},u.deepEqual=function(e,t,n){g(e,t,!1)||b(e,t,n,"deepEqual",u.deepEqual)},u.deepStrictEqual=function(e,t,n){g(e,t,!0)||b(e,t,n,"deepStrictEqual",u.deepStrictEqual)},u.notDeepEqual=function(e,t,n){g(e,t,!1)&&b(e,t,n,"notDeepEqual",u.notDeepEqual)},u.notDeepStrictEqual=function e(t,n,r){g(t,n,!0)&&b(t,n,r,"notDeepStrictEqual",e)},u.strictEqual=function(e,t,n){e!==t&&b(e,t,n,"===",u.strictEqual)},u.notStrictEqual=function(e,t,n){e===t&&b(e,t,n,"!==",u.notStrictEqual)},u.throws=function(e,t,n){v(!0,e,t,n)},u.doesNotThrow=function(e,t,n){v(!1,e,t,n)},u.ifError=function(e){if(e)throw e};var w=Object.keys||function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t}}).call(this,k(5))},function(e,t,n){var r=n(12),a=n(44),o=n(45),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?a(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(15),a=n.n(r),o=n(4);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}var c=function(){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=n.generate(e.hp);this.persona=t,this.name=t.name,this.graphic=t.graphic,this.taunts=new Set(t.taunts).values(),this.hp=e.hp,this.maxHP=e.hp}return s(n,null,[{key:"setTheme",value:function(e){var t;switch(e){case"fantasy":default:t=new Set(a()(o.e));break;case"batman":t=new Set(a()(o.b))}this.enemies={iterator:t.values(),set:t}}},{key:"generate",value:function(){var e=this.enemies,t=e.iterator.next();return t.done&&(e.iterator=e.set.values(),t=e.iterator.next()),t.value}}]),s(n,[{key:"damage",value:function(e){return this.hp-=e,this.hp<0&&(this.hp=0),this}},{key:"taunt",value:function(){var e=this.taunts.next();return e.done&&(this.taunts=new Set(this.persona.taunts).values(),e=this.taunts.next()),e.value}},{key:"level",get:function(){var e=Math.floor(this.maxHP/100/1.5)||1;return 20<e?20:e}}]),n}();c.setTheme("fantasy"),t.a=c},function(e,t,n){var r=n(16),a=n(38),o=n(9);e.exports=function(e){return(o(e)?r:a)(e)}},function(e,t,n){var r=n(20).Symbol;e.exports=r},function(e,t,n){var r=n(64);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var d=n(84),p=36e5,b=6e4,g=/[T ]/,y=/:/,m=/^(\d{2})$/,v=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],w=/^(\d{4})/,x=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],k=/^-(\d{2})$/,_=/^-?(\d{3})$/,j=/^-?(\d{2})-?(\d{2})$/,O=/^-?W(\d{2})$/,S=/^-?W(\d{2})-?(\d{1})$/,T=/^(\d{2}([.,]\d*)?)$/,E=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,D=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,I=/([Z+-].*)$/,A=/^(Z)$/,z=/^([+-])(\d{2})$/,M=/^([+-])(\d{2}):?(\d{2})$/;function P(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+a),r}e.exports=function(e,t){if(d(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?2:Number(n);var r=function(e){var t,n={},r=e.split(g);if(t=y.test(r[0])?(n.date=null,r[0]):(n.date=r[0],r[1])){var a=I.exec(t);a?(n.time=t.replace(a[1],""),n.timezone=a[1]):n.time=t}return n}(e),a=function(e,t){var n,r=v[t],a=x[t];if(n=w.exec(e)||a.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=m.exec(e)||r.exec(e)){var i=n[1];return{year:100*parseInt(i,10),restDateString:e.slice(i.length)}}return{year:null}}(r.date,n),o=a.year,i=function(e,t){if(null===t)return null;var n,r,a,o;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=k.exec(e))return r=new Date(0),a=parseInt(n[1],10)-1,r.setUTCFullYear(t,a),r;if(n=_.exec(e)){r=new Date(0);var i=parseInt(n[1],10);return r.setUTCFullYear(t,0,i),r}if(n=j.exec(e)){r=new Date(0),a=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return r.setUTCFullYear(t,a,s),r}if(n=O.exec(e))return o=parseInt(n[1],10)-1,P(t,o);if(n=S.exec(e)){o=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return P(t,o,c)}return null}(a.restDateString,o);if(i){var s,c=i.getTime(),u=0;return r.time&&(u=function(e){var t,n,r;if(t=T.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*p;if(t=E.exec(e))return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),n%24*p+r*b;if(t=D.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return n%24*p+r*b+1e3*a}return null}(r.time)),s=r.timezone?(l=r.timezone,(f=A.exec(l))?0:(f=z.exec(l))?(h=60*parseInt(f[2],10),"+"===f[1]?-h:h):(f=M.exec(l))?(h=60*parseInt(f[2],10)+parseInt(f[3],10),"+"===f[1]?-h:h):0):(s=new Date(c+u).getTimezoneOffset(),new Date(c+u+s*b).getTimezoneOffset()),new Date(c+u+s*b)}var l,f,h;return new Date(e)}},function(e,t,n){var r=n(80),a=n(82),o=n(9);e.exports=function(e){return(o(e)?r:a)(e)}},function(e,t,n){var r=n(17);e.exports=function(e){var t=e.length;return t?e[r(0,t-1)]:void 0}},function(e,t){var n=Math.floor,r=Math.random;e.exports=function(e,t){return e+n(r()*(t-e+1))}},function(e,t,n){var r=n(39),a=n(40);e.exports=function(e){return null==e?[]:r(e,a(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},function(e,t,n){var r=n(21),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},function(n,e,t){(function(e){var t="object"==typeof e&&e&&e.Object===Object&&e;n.exports=t}).call(this,t(5))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var s=n(17);e.exports=function(e,t){var n=-1,r=e.length,a=r-1;for(t=void 0===t?r:t;++n<t;){var o=s(n,a),i=e[o];e[o]=e[n],e[n]=i}return e.length=t,e}},function(e,t,n){var a=n(14);e.exports=function(e,t){var n=a(e),r=a(t);return n.getTime()-r.getTime()}},function(e){e.exports={a:"8.3.0"}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(6),a=n.n(r);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=(new Map).set("any",/.*/).set("directive",/^\w+/).set("string",/(?!^").+(?=")/).set("assignment",/(?!^\w+\s*=\s*)\w+$/).set("number",/^\d+/);function d(e,t,n){var r,a=t.params,o={};r=n?e.trim().replace(RegExp("^".concat(t.pattern,"\\s*")),""):e.trim().replace(RegExp("".concat(t.pattern,"\\s*")),"");var i=!0,s=!1,c=void 0;try{for(var u,l=a[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var f=u.value,h=p.get(f.type);if(h.test(r)){var d=r.match(h)[0];o[f.name]=!f.values.length||~f.values.map(function(e){return e.toLowerCase()}).indexOf(d.toLowerCase())?d:null}else o[f.name]=null}}catch(e){s=!0,c=e}finally{try{i||null==l.return||l.return()}finally{if(s)throw c}}return o}var i=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{exactMatching:!0};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.registry=new Map,this.exactMatching=e.exactMatching}var e,n,r;return e=t,(n=[{key:"evaluate",value:function(e){var t,n,r,a,o=null,i=!0,s=!1,c=void 0;try{for(var u,l=this.registry.values()[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var f=u.value;if(t=e.m,n=f,r=this.exactMatching,void 0,a=r?"^".concat(n.pattern,"\\b\\s*"):"".concat(n.pattern,"\\b\\s*"),RegExp(a).test(t)){var h=f.params?d(e.m,f,this.exactMatching):null;o=f.callback(e,f,h);break}}}catch(e){s=!0,c=e}finally{try{i||null==l.return||l.return()}finally{if(s)throw c}}return o}},{key:"register",value:function(e,t,n){return a()(e.constructor===String,"".concat("Invalid `pattern` argument for Command#register",": ").concat(JSON.stringify(e))),t&&a()(t.constructor===Array,"".concat("Invalid `params` argument for Command#register",": ").concat(JSON.stringify(t))),this.registry.set(e,{pattern:e,params:t,callback:n}),this}}])&&o(e.prototype,n),r&&o(e,r),t}()},function(e,t,n){"use strict";var r=n(30),s=n.n(r),a=n(31),c=n.n(a),o=n(1),d=n.n(o),p=n(2),b=n(3);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,s=b.a.heroes.entries()[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=g(i.value,2),u=c[0],l=c[1],f=p.a.render(l.graphics.get("novice")),h=l.bonusPrize;n.push("".concat(f," /hero ").concat(u," | Level Up to win: [").concat(e.cb.settings[h]||"random","]"))}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return n.join("\n")}function l(e,t){var n=u(e);return"\n ::: Tip to gain experience points and Level Up! :::\n ".concat(n,"\n ").trim()}function f(e){var t=["==== Battlebate ====",e.announcements.hint()];return"on"===e.cb.settings.prize_rolling&&t.push("*** Tips of ".concat(e.cb.settings.attack_cost,"+ will roll dice for prizes! ***")),t.join("\n")}function h(e){var t=[],n=e.prizes.map(function(e,t){return"".concat(p.a.render("die-".concat(t+1))," ").concat(e)}).join("\n"),r=!0,a=!1,o=void 0;try{for(var i,s=b.a.heroes.entries()[Symbol.iterator]();!(r=(i=s.next()).done);r=!0){var c=g(i.value,2),u=c[0],l=c[1],f=l.bonusPrize,h=p.a.render(l.graphics.get("novice"));t.push("".concat(h," ").concat(d()(u),": ").concat(e.cb.settings[f]||"random"," | Type /hero ").concat(u))}}catch(e){a=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw o}}return"on"===e.cb.settings.prize_rolling?"\n ::: Dice Roll Prizes - ".concat(e.cb.settings.attack_cost," tkns to roll :::\n ").concat(n,"\n ::: Level Up Prizes - Awarded every ").concat(e.cb.settings.level_up_amount," tkns :::\n ").concat(t.join("\n"),"\n ").trim():"\n ::: Level Up Prizes - Awarded every ".concat(e.cb.settings.level_up_amount," tkns :::\n ").concat(t.map(function(e){return"* ".concat(e)}).join("\n"),"\n ").trim()}var y=function(){function r(e,t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.messenger=e,this.game=t,this.graphics=n}var e,t,n;return e=r,(t=[{key:"showXP",value:function(e){var t,n,r,a,o;return this.messenger.whisper((t=this.game,n=e,r=t.cb.settings.level_up_amount,a=n.xp-r*(n.level-1),o=t.cb.settings[n.hero.bonusPrize]||"random prize","".concat(a," / ").concat(r," XP :: Tip ").concat(r-a," more to win [").concat(o,"]")),e.name),this}},{key:"showPrizes",value:function(e){return e?this.messenger.whisper(h(this.game),e.name):this.messenger.say(h(this.game)),this}},{key:"showWinners",value:function(){var e,t,n,r,a,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:15,i=(e=this.game,t=o,n=new Date,r=e.winners.filter(function(e){return c()(n,e.time)<=15}).slice(-t),a=r.map(function(e){return"* (".concat(s()(n,e.time,{addSuffix:!0}),") ").concat(e.player.name," won [").concat(e.prize,"]")}).join("\n"),r.length?"::: Recent Winners ::: \n ".concat(a):"");return i&&this.messenger.say(i),this}},{key:"showHeroes",value:function(e){return e?this.messenger.whisper(l(this.game,this.graphics),e.name):this.messenger.say(l(this.game,this.graphics)),this}},{key:"showHelp",value:function(e){var t,n;return this.messenger.whisper((t=this.game,this.graphics,n=b.a.heroes.values().next().value.name,"\n ::: Player Commands :::\n * /hero - Change your Hero and Level Up prize, e.g. /hero ".concat(n,"\n * /prizes - Show all the different prizes\n * /help - Show this help menu\n\n ::: Broadcaster & Mod Commands :::\n * /avatars on|off - Enable/disable player avatars\n * /dicerolls [on|off] - Turn dice rolls for prizes on or off, e.g. /dicerolls off\n * /goal [amount] - Start a goal of the specified amount of tokens, e.g. /goal 1000\n * /winners - Show recent prize winnners\n\n ::: Heroes :::\n ").concat(u(t),"\n ").trim()),e.name),this}},{key:"showTLDR",value:function(e){return e?this.messenger.whisper(f(this.game,this.graphics),e.name):this.messenger.say(f(this.game,this.graphics)),this}}])&&i(e.prototype,t),n&&i(e,n),r}();t.a=y},function(e,t,n){var b=n(83),g=n(14),y=n(85),m=n(86);e.exports=function(e,t,n){var r=n||{},a=b(e,t),o=r.locale,i=m.distanceInWords.localize;o&&o.distanceInWords&&o.distanceInWords.localize&&(i=o.distanceInWords.localize);var s,c,u,l={addSuffix:Boolean(r.addSuffix),comparison:a};c=0<a?(s=g(e),g(t)):(s=g(t),g(e));var f=Math[r.partialMethod?String(r.partialMethod):"floor"],h=y(c,s),d=c.getTimezoneOffset()-s.getTimezoneOffset(),p=f(h/60)-d;if("s"===(u=r.unit?String(r.unit):p<1?"s":p<60?"m":p<1440?"h":p<43200?"d":p<525600?"M":"Y"))return i("xSeconds",h,l);if("m"===u)return i("xMinutes",p,l);if("h"===u)return i("xHours",f(p/60),l);if("d"===u)return i("xDays",f(p/1440),l);if("M"===u)return i("xMonths",f(p/43200),l);if("Y"===u)return i("xYears",f(p/525600),l);throw new Error("Unknown unit: "+u)}},function(e,t,n){var r=n(26);e.exports=function(e,t){var n=r(e,t)/6e4;return 0<n?Math.floor(n):Math.ceil(n)}},function(e,t,n){"use strict";var i=n(2);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=(new Map).set("say","#9B59B6").set("whisper","#006080").set("reward","#D43900").set("attack","#696969").set("level-up","#1E824C").set("taunt","#B50000"),r=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.cb=e}var e,n,r;return e=t,(n=[{key:"send",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{user:"",group:"",color:""};return this.cb.sendNotice(e.trim(),t.user,null,t.color,"bold",t.group),this}},{key:"say",value:function(e){var t=s.get("say");return this.send(e,{color:t}),this}},{key:"whisper",value:function(e,t){var n=s.get("whisper");return this.send(e,{user:t,color:n}),this}},{key:"reward",value:function(e,t,n){var r=n?i.a.render("die-".concat(n)):i.a.render("die-bonus"),a=s.get("reward"),o="".concat(r," :: ").concat(e.name," has won: --- ").concat(t,"! ---");return this.send(o,{color:a}),this}},{key:"levelUp",value:function(e){var t=i.a.render("level-up"),n=s.get("level-up");return this.send("".concat(t," :: ").concat(e.name," reached Level ").concat(e.level,"!"),{color:n}),this}},{key:"taunt",value:function(e,t){var n=i.a.render(e.graphic.emoji),r=s.get("taunt");return this.send("".concat(n," :: ").concat(t||e.taunt()),{color:r}),this}}])&&a(e.prototype,n),r&&a(e,r),t}();t.a=r},function(e,n,r){"use strict";(function(l){var e=r(1),f=r.n(e),h=r(0);function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var p=Object.freeze({type:"image"}),b=Object.freeze({type:"text",color:"orange","font-family":"Segoe UI, sans-serif","font-size":11}),g=Object.freeze({type:"text",color:"white","font-family":"Segoe UI, sans-serif","font-size":10}),t=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.cb=e,this.game=t,this.cb.onDrawPanel(this.onDrawPanel.bind(this))}var e,t,r;return e=n,(t=[{key:"onDrawPanel",value:function(){var e,t=this.game.enemy.graphic,n=t.id,r=t.x,a=t.y,o=f()(this.game.enemy.name),i="".concat(this.game.enemy.hp," tokens left");e="main"===l.MODE?"on"===this.cb.settings.prize_rolling?155:184:167;var s=this.game.totalKills?"".concat(this.game.totalKills," villains defeated"):"No villains defeated yet";"yes"===this.cb.settings.show_total_tokens&&(s+=" (".concat(this.game.totalDamage," tokens)"));var c,u=[d({},p,{fileID:h.o.get(h.g),left:61,top:27}),d({},p,{fileID:h.o.get(h.f),left:this.healthOffset,top:27}),d({},p,{fileID:h.o.get(h.b)}),d({},p,{fileID:h.o.get(n),left:r,top:a}),d({},b,{text:o,left:62,top:9}),d({},g,{text:i,left:115,top:27}),d({},g,{text:s,left:62,top:45})];return c="main"===l.MODE?"on"===this.cb.settings.prize_rolling?"Dice Rolls: ".concat(this.cb.settings.attack_cost," tokens"):"Dice Rolls: Off":"Tips win the battle!",u.push(d({},g,{text:c,left:e,top:10})),{template:"image_template",layers:u}}},{key:"redraw",value:function(){return this.cb.drawPanel(),this}},{key:"healthOffset",get:function(){return this.game.enemy.hp/this.game.enemy.maxHP*188-127}}])&&o(e.prototype,t),r&&o(e,r),n}();n.a=t}).call(this,r(5))},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(7),a=n(8);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},,function(e,t,n){var r=n(16),a=n(18);e.exports=function(e){return r(a(e))}},function(e,t,n){var r=n(19);e.exports=function(t,e){return r(e,function(e){return t[e]})}},function(e,t,n){var r=n(41),a=n(53),o=n(57);e.exports=function(e){return o(e)?r(e):a(e)}},function(e,t,n){var l=n(34),f=n(42),h=n(9),d=n(46),p=n(48),b=n(49),g=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=h(e),r=!n&&f(e),a=!n&&!r&&d(e),o=!n&&!r&&!a&&b(e),i=n||r||a||o,s=i?l(e.length,String):[],c=s.length;for(var u in e)!t&&!g.call(e,u)||i&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||p(u,c))||s.push(u);return s}},function(e,t,n){var r=n(43),a=n(8),o=Object.prototype,i=o.hasOwnProperty,s=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){var r=n(7),a=n(8);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(12),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{var r=!(e[s]=void 0)}catch(e){}var a=i.call(e);return r&&(t?e[s]=n:delete e[s]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,s,c){(function(e){var t=c(20),n=c(47),r="object"==typeof s&&s&&!s.nodeType&&s,a=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===r?t.Buffer:void 0,i=(o?o.isBuffer:void 0)||n;e.exports=i}).call(this,c(22)(e))},function(e,t){e.exports=function(){return!1}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&r.test(e))&&-1<e&&e%1==0&&e<t}},function(e,t,n){var r=n(50),a=n(51),o=n(52),i=o&&o.isTypedArray,s=i?a(i):r;e.exports=s},function(e,t,n){var r=n(7),a=n(23),o=n(8),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&a(e.length)&&!!i[r(e)]}},function(e,t){e.exports=function(t){return function(e){return t(e)}}},function(e,i,s){(function(e){var t=s(21),n="object"==typeof i&&i&&!i.nodeType&&i,r=n&&"object"==typeof e&&e&&!e.nodeType&&e,a=r&&r.exports===n&&t.process,o=function(){try{var e=r&&r.require&&r.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o}).call(this,s(22)(e))},function(e,t,n){var r=n(54),a=n(55),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(56)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(t,n){return function(e){return t(n(e))}}},function(e,t,n){var r=n(58),a=n(23);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},function(e,t,n){var r=n(7),a=n(35);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(60),a=n(61),o=n(65),i=RegExp("['’]","g");e.exports=function(t){return function(e){return r(o(a(e).replace(i,"")),t,"")}}},function(e,t){e.exports=function(e,t,n,r){var a=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++a]);++a<o;)n=t(n,e[a],a,e);return n}},function(e,t,n){var r=n(62),a=n(13),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,i=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=a(e))&&e.replace(o,r).replace(i,"")}},function(e,t,n){var r=n(63)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(12),a=n(19),o=n(9),i=n(36),s=1/0,c=r?r.prototype:void 0,u=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return a(t,e)+"";if(i(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t,n){var r=n(66),a=n(67),o=n(13),i=n(68);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?a(e)?i(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\ud800-\\udfff",r="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+i+"]",c="\\d+",u="["+r+"]",l="["+a+"]",f="[^"+n+i+c+r+a+o+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+o+"]",b="(?:"+l+"|"+f+")",g="(?:"+p+"|"+f+")",y="(?:['’](?:d|ll|m|re|s|t|ve))?",m="(?:['’](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",w="[\\ufe0e\\ufe0f]?",x=w+v+("(?:\\u200d(?:"+["[^"+n+"]",h,d].join("|")+")"+w+v+")*"),k="(?:"+[u,h,d].join("|")+")"+x,_=RegExp([p+"?"+l+"+"+y+"(?="+[s,p,"$"].join("|")+")",g+"+"+m+"(?="+[s,p+b,"$"].join("|")+")",p+"?"+b+"+"+y,p+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c,k].join("|"),"g");e.exports=function(e){return e.match(_)||[]}},function(e,t,n){var r=n(70)("toUpperCase");e.exports=r},function(e,t,n){var o=n(71),i=n(24),s=n(73),c=n(13);e.exports=function(a){return function(e){e=c(e);var t=i(e)?s(e):void 0,n=t?t[0]:e.charAt(0),r=t?o(t,1).join(""):e.slice(1);return n[a]()+r}}},function(e,t,n){var a=n(72);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&r<=n?e:a(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,a=e.length;t<0&&(t=a<-t?0:a+t),(n=a<n?a:n)<0&&(n+=a),a=n<t?0:n-t>>>0,t>>>=0;for(var o=Array(a);++r<a;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(74),a=n(24),o=n(75);e.exports=function(e){return a(e)?o(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="\\ud800-\\udfff",r="["+n+"]",a="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+a+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?",f=l+u+("(?:\\u200d(?:"+[i,s,c].join("|")+")"+l+u+")*"),h="(?:"+[i+a+"?",a,s,c,r].join("|")+")",d=RegExp(o+"(?="+o+")|"+h+f,"g");e.exports=function(e){return e.match(d)||[]}},function(e,T,h){(function(r,a){var s=/%[sdj%]/g;T.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,a=r.length,o=String(e).replace(s,function(e){if("%%"===e)return"%";if(a<=n)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),i=r[n];n<a;i=r[++n])m(i)||!l(i)?o+=" "+i:o+=" "+c(i);return o},T.deprecate=function(e,t){if(x(r.process))return function(){return T.deprecate(e,t).apply(this,arguments)};if(!0===a.noDeprecation)return e;var n=!1;return function(){if(!n){if(a.throwDeprecation)throw new Error(t);a.traceDeprecation?console.trace(t):console.error(t),n=!0}return e.apply(this,arguments)}};var e,o={};function c(e,t){var n={seen:[],stylize:u};return 3<=arguments.length&&(n.depth=arguments[2]),4<=arguments.length&&(n.colors=arguments[3]),y(t)?n.showHidden=t:t&&T._extend(n,t),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=i),d(n,e,n.depth)}function i(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function u(e,t){return e}function d(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==T.inspect&&(!n.constructor||n.constructor.prototype!==n)){var e=n.inspect(r,t);return w(e)||(e=d(t,e,r)),e}var a=function(e,t){if(x(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(v(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(t,n);if(a)return a;var o,i=Object.keys(n),s=(o={},i.forEach(function(e,t){o[e]=!0}),o);if(t.showHidden&&(i=Object.getOwnPropertyNames(n)),j(n)&&(0<=i.indexOf("message")||0<=i.indexOf("description")))return p(n);if(0===i.length){if(O(n)){var c=n.name?": "+n.name:"";return t.stylize("[Function"+c+"]","special")}if(k(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return t.stylize(Date.prototype.toString.call(n),"date");if(j(n))return p(n)}var u,l="",f=!1,h=["{","}"];(g(n)&&(f=!0,h=["[","]"]),O(n))&&(l=" [Function"+(n.name?": "+n.name:"")+"]");return k(n)&&(l=" "+RegExp.prototype.toString.call(n)),_(n)&&(l=" "+Date.prototype.toUTCString.call(n)),j(n)&&(l=" "+p(n)),0!==i.length||f&&0!=n.length?r<0?k(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=f?function(t,n,r,a,e){for(var o=[],i=0,s=n.length;i<s;++i)S(n,String(i))?o.push(b(t,n,r,a,String(i),!0)):o.push("");return e.forEach(function(e){e.match(/^\d+$/)||o.push(b(t,n,r,a,e,!0))}),o}(t,n,r,s,i):i.map(function(e){return b(t,n,r,s,e,f)}),t.seen.pop(),function(e,t,n){if(60<e.reduce(function(e,t){return 0,0<=t.indexOf("\n")&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0))return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,h)):h[0]+l+h[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function b(e,t,n,r,a,o){var i,s,c;if((c=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),S(r,a)||(i="["+a+"]"),s||(e.seen.indexOf(c.value)<0?-1<(s=m(n)?d(e,c.value,null):d(e,c.value,n-1)).indexOf("\n")&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),x(i)){if(o&&a.match(/^\d+$/))return s;i=(i=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e.stylize(i,"string"))}return i+": "+s}function g(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return"number"==typeof e}function w(e){return"string"==typeof e}function x(e){return void 0===e}function k(e){return l(e)&&"[object RegExp]"===t(e)}function l(e){return"object"==typeof e&&null!==e}function _(e){return l(e)&&"[object Date]"===t(e)}function j(e){return l(e)&&("[object Error]"===t(e)||e instanceof Error)}function O(e){return"function"==typeof e}function t(e){return Object.prototype.toString.call(e)}function n(e){return e<10?"0"+e.toString(10):e.toString(10)}T.debuglog=function(t){if(x(e)&&(e=a.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(e)){var n=a.pid;o[t]=function(){var e=T.format.apply(T,arguments);console.error("%s %d: %s",t,n,e)}}else o[t]=function(){};return o[t]},(T.inspect=c).colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},T.isArray=g,T.isBoolean=y,T.isNull=m,T.isNullOrUndefined=function(e){return null==e},T.isNumber=v,T.isString=w,T.isSymbol=function(e){return"symbol"==typeof e},T.isUndefined=x,T.isRegExp=k,T.isObject=l,T.isDate=_,T.isError=j,T.isFunction=O,T.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},T.isBuffer=h(78);var f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}T.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[n(e.getHours()),n(e.getMinutes()),n(e.getSeconds())].join(":"),[e.getDate(),f[e.getMonth()],t].join(" ")),T.format.apply(T,arguments))},T.inherits=h(79),T._extend=function(e,t){if(!t||!l(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}}).call(this,h(5),h(77))},function(e,t){var n,r,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var c,u=[],l=!1,f=-1;function h(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(h);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function b(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=b,a.addListener=b,a.once=b,a.off=b,a.removeListener=b,a.removeAllListeners=b,a.emit=b,a.prependListener=b,a.prependOnceListener=b,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(81),a=n(25);e.exports=function(e){return a(r(e))}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(25),a=n(18);e.exports=function(e){return r(a(e))}},function(e,t,n){var a=n(14);e.exports=function(e,t){var n=a(e).getTime(),r=a(t).getTime();return r<n?-1:n<r?1:0}},function(e,t){e.exports=function(e){return e instanceof Date}},function(e,t,n){var r=n(26);e.exports=function(e,t){var n=r(e,t)/1e3;return 0<n?Math.floor(n):Math.ceil(n)}},function(e,t,n){var r=n(87),a=n(88);e.exports={distanceInWords:r(),format:a()}},function(e,t){e.exports=function(){var a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(e,t,n){var r;return n=n||{},r="string"==typeof a[e]?a[e]:1===t?a[e].one:a[e].other.replace("{{count}}",t),n.addSuffix?0<n.comparison?"in "+r:r+" ago":r}}}},function(e,t,n){var u=n(89);e.exports=function(){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],n=["January","February","March","April","May","June","July","August","September","October","November","December"],r=["Su","Mo","Tu","We","Th","Fr","Sa"],a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["AM","PM"],s=["am","pm"],c=["a.m.","p.m."],e={MMM:function(e){return t[e.getMonth()]},MMMM:function(e){return n[e.getMonth()]},dd:function(e){return r[e.getDay()]},ddd:function(e){return a[e.getDay()]},dddd:function(e){return o[e.getDay()]},A:function(e){return 1<=e.getHours()/12?i[1]:i[0]},a:function(e){return 1<=e.getHours()/12?s[1]:s[0]},aa:function(e){return 1<=e.getHours()/12?c[1]:c[0]}};return["M","D","DDD","d","Q","W"].forEach(function(n){e[n+"o"]=function(e,t){return function(e){var t=e%100;if(20<t||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(t[n](e))}}),{formatters:e,formattingTokensRegExp:u(e)}}},function(e,t){var a=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];e.exports=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var r=a.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+r.join("|")+"|.)","g")}},,function(e,t,n){"use strict";(function(o){var a=n(27),i=n(4),s=n(28),c=n(10),r=n(2),u=n(29),l=n(32),f=n(33),h=n(3);function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return null!==this.command.evaluate(e)?Object.assign(e,{"X-Spam":!0}):function(e){if(e.user===this.cb.room_slug)return e;if("yes"===this.cb.settings.show_avatars){var t=this.fetchPlayer(e.user),n=r.a.render(t.emoji);e.m=":: ".concat(n," :: ").concat(e.m)}return e}.call(this,e)}var e=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.cb=e,this.enemy=null,this.players=new Map,this.command=new s.a({exactMatching:"yes"===this.cb.settings.exact_command_matching}),this.messenger=new l.a(e),this.info=new u.a(this.messenger,this),this.totalDamage=0,this.totalKills=0,this.panel=new f.a(e,this)}var e,n,r;return e=t,(n=[{key:"showInfo",value:function(){return this.messenger.whisper("Running Battlebate Lite v".concat(a.a),this.cb.room_slug),this}},{key:"registerCommands",value:function(){var a=this;this.command.register("/env",[{name:"environment",type:"directive",values:["production","alpha","test"]}],function(e,t,n){if(e.is_mod||e.user===a.cb.room_slug){switch(n.environment){case"test":o.ENV="test";break;case"alpha":o.ENV="alpha";break;case"production":default:o.ENV="production"}a.messenger.whisper("Changing environment to: ".concat(n.environment),e.user),a.panel.redraw()}else a.messenger.whisper("Only the broadcaster or mods can do that",e.user)}),this.command.register("/avatars",[{name:"enabled",type:"directive",values:["on","off","text"]}],function(e,t,n){e.is_mod||e.user===a.cb.room_slug?null!==n.enabled?(a.cb.settings.show_avatars="on"===n.enabled?"yes":"no",a.messenger.say("Player avatars have been ".concat("on"===n.enabled?"enabled":"disabled","."))):a.messenger.whisper("You dun goofed. Try /avatars on|off",e.user):a.messenger.whisper("Only the broadcaster or mods can do that",e.user)}),this.command.register("/goal",[{name:"amount",type:"number",values:[]}],function(e,t,n){if(e.is_mod||e.user===a.cb.room_slug){var r=Number(n.amount);r&&0<r?(a.cb.settings.goal_amount=r,a.spawnEnemy(),a.messenger.whisper("Goal has been updated",e.user)):a.messenger.whisper("Choose a token amount greater than 0 (e.g. /goal 1000)",e.user)}else a.messenger.whisper("Only the broadcaster or mods can do that",e.user)})}},{key:"spawnEnemy",value:function(){this.enemy=new c.a({hp:this.cb.settings.goal_amount});var e=this.announcements.spawn(this.enemy);return this.panel.redraw(),this.messenger.say(e),this}},{key:"setTheme",value:function(e){switch(e){case"Batman":this.announcements=i.a,h.a.setTheme("batman"),c.a.setTheme("batman");break;case"Fantasy":default:this.announcements=i.d,h.a.setTheme("fantasy"),c.a.setTheme("fantasy")}return this.registerCommands(),this}},{key:"fetchPlayer",value:function(e){return this.players.has(e)?this.players.get(e):this.addPlayer(e)}},{key:"addPlayer",value:function(e){var t=new h.a(e,!0);return this.players.set(e,t),t}},{key:"taunt",value:function(){var e=this;return this.messenger.taunt(this.enemy),this.messenger.say(this.announcements.hint()),this.cb.setTimeout(function(){e.taunt()},3e5),this}},{key:"start",value:function(){return this.cb.settings_choices=[{name:"theme",label:"Theme",type:"choice",choice1:"Fantasy",choice2:"Batman",defaultChoice:"Fantasy"},{name:"goal_amount",label:"Goal (auto-repeat)",type:"int",minValue:1,maxValue:1e5,defaultValue:500},{name:"show_total_tokens",label:"Show Total Tips",type:"choice",choice1:"yes",choice2:"no",defaultChoice:"yes"},{name:"show_avatars",label:"Show Player Avatars",type:"choice",choice1:"yes",choice2:"no",defaultChoice:"yes"}],this.cb.settings.exact_command_matching="yes",this.setTheme(this.cb.settings.theme),this.showInfo(),this.spawnEnemy(),this.taunt(),this.registerCommands(),this.cb.onTip(function(e){var t=e.from_user,n=this.fetchPlayer(t),r=this.enemy.hp;if(function(e,t){e.attack(this.enemy,t)}.call(this,n,e.amount),this.totalDamage+=e.amount,0===this.enemy.hp){var a=1+Math.floor((e.amount-r)/this.enemy.maxHP),o=(e.amount-r)%this.enemy.maxHP;this.messenger.say(this.announcements.defeat(n,this.enemy)),this.spawnEnemy(),this.enemy.damage(o),this.totalKills+=a}this.panel.redraw()}.bind(this)),this.cb.onMessage(p.bind(this)),this.cb.onEnter(function(e){var t;e.user!==this.cb.room_slug&&(t=this.players.has(e.user)?this.players.get(e.user):this.addPlayer(e.user),this.info.showTLDR(t))}.bind(this)),this}}])&&d(e.prototype,n),r&&d(e,r),t}();t.a=e}).call(this,n(5))},,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var t=n(91);e.ENV="production",e.MODE="lite",new t.a(e.cb).start()}.call(this,n(5))}]);
© Copyright Freesexcam 2011- 2024. All Rights Reserved.