Apps Home
|
Create an App
testinga thing
Author:
brucebagosh
Description
Source Code
Launch App
Current Users
Created by:
Brucebagosh
! 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 = 92) }([function(e, b, m) { "use strict"; (function(t) { m.d(b, "b", function() { return e }), m.d(b, "f", function() { return n }), m.d(b, "g", function() { return r }), m.d(b, "h", function() { return a }), m.d(b, "d", function() { return o }), m.d(b, "c", function() { return i }), m.d(b, "i", function() { return s }), m.d(b, "j", function() { return c }), m.d(b, "k", function() { return u }), m.d(b, "l", function() { return l }), m.d(b, "n", function() { return f }), m.d(b, "e", function() { return h }), m.d(b, "m", function() { return d }), m.d(b, "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_GERUDO"), c = Symbol("UUID_LIZALFOS"), u = Symbol("UUID_STALFOS"), l = Symbol("IRON_KNUCKLE"), f = Symbol("UUID_MOBLIN"), h = Symbol("UUID_MEG"), d = Symbol("UUID_GANON"), p = Symbol("UUID_DARK_LINK"), g = { config: { mode: "main", env: "production" }, registry: { main: { test: (new Map).set(e, "421524fd-47e2-47d7-ac3e-139d201b23b4").set(n, "8707212d-6501-4472-9c5b-4378afad6339").set(r, "5a376f52-0680-4f01-8acf-75b70cb3f0ef").set(a, "9487fad1-baf1-4904-8ba6-75752bc77f07").set(o, "d0c874e5-85a5-45de-9e8d-d0548a9fd7f7").set(i, "ed66e539-609c-4a94-9f11-29b92935bcec").set(s, "6a2d9741-64fe-44d0-9427-23c78b311b6c").set(c, "0d996558-8754-465a-8654-ba7961753c77").set(u, "4bd28125-b894-46ad-b73f-199501a2308a").set(l, "a8c3439c-f53b-4449-860f-2097fc404b2d").set(f, "ec3d5f0d-35fe-4f7f-9ab5-69d05d17ce79").set(h, "2ee5e70f-e660-4296-a7f0-3fa96367232c").set(d, "4d78351a-2ed1-4c3a-9535-52931d954b5c").set(p, "2ae487db-2381-467c-a9ee-58e65001b124"), alpha: (new Map).set(e, "421524fd-47e2-47d7-ac3e-139d201b23b4").set(n, "8707212d-6501-4472-9c5b-4378afad6339").set(r, "5a376f52-0680-4f01-8acf-75b70cb3f0ef"), production: (new Map).set(e, "421524fd-47e2-47d7-ac3e-139d201b23b4").set(n, "8707212d-6501-4472-9c5b-4378afad6339").set(r, "5a376f52-0680-4f01-8acf-75b70cb3f0ef").set(a, "0ee14ae7-f5d9-4e7c-a070-ee2b5c961c04").set(o, "694a7a95-b5d1-4c39-9e76-509fddc25ce3").set(i, "2fd60857-a6ce-4c0d-b99c-66b9f67c89ea").set(s, "6a2d9741-64fe-44d0-9427-23c78b311b6c").set(c, "0d996558-8754-465a-8654-ba7961753c77").set(u, "4bd28125-b894-46ad-b73f-199501a2308a").set(l, "a8c3439c-f53b-4449-860f-2097fc404b2d").set(f, "ec3d5f0d-35fe-4f7f-9ab5-69d05d17ce79").set(h, "2ee5e70f-e660-4296-a7f0-3fa96367232c").set(d, "4d78351a-2ed1-4c3a-9535-52931d954b5c").set(p, "2ae487db-2381-467c-a9ee-58e65001b124") }, lite: { test: (new Map).set(e, "421524fd-47e2-47d7-ac3e-139d201b23b4").set(n, "8707212d-6501-4472-9c5b-4378afad6339").set(r, "5a376f52-0680-4f01-8acf-75b70cb3f0ef").set(a, "75755324-e258-4ba0-bd40-a74e087b7cdb").set(o, "4149aee4-c243-49c6-86c8-bfdcd9eedfd1").set(i, "...").set(s, "6a2d9741-64fe-44d0-9427-23c78b311b6c").set(c, "0d996558-8754-465a-8654-ba7961753c77").set(u, "4bd28125-b894-46ad-b73f-199501a2308a").set(l, "a8c3439c-f53b-4449-860f-2097fc404b2d").set(f, "ec3d5f0d-35fe-4f7f-9ab5-69d05d17ce79").set(h, "2ee5e70f-e660-4296-a7f0-3fa96367232c").set(d, "4d78351a-2ed1-4c3a-9535-52931d954b5c").set(p, "2ae487db-2381-467c-a9ee-58e65001b124"), production: (new Map).set(e, "421524fd-47e2-47d7-ac3e-139d201b23b4").set(n, "8707212d-6501-4472-9c5b-4378afad6339").set(r, "5a376f52-0680-4f01-8acf-75b70cb3f0ef").set(a, "5984d1c9-f547-451e-881a-e1152c026cdd").set(o, "dcd3a4cd-2e24-4e33-8449-7c21a531c0c0").set(i, "ee037436-d661-43c0-979b-4b093f038475").set(s, "6a2d9741-64fe-44d0-9427-23c78b311b6c").set(c, "0d996558-8754-465a-8654-ba7961753c77").set(u, "4bd28125-b894-46ad-b73f-199501a2308a").set(l, "a8c3439c-f53b-4449-860f-2097fc404b2d").set(f, "ec3d5f0d-35fe-4f7f-9ab5-69d05d17ce79").set(h, "2ee5e70f-e660-4296-a7f0-3fa96367232c").set(d, "4d78351a-2ed1-4c3a-9535-52931d954b5c").set(p, "2ae487db-2381-467c-a9ee-58e65001b124") } }, 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) } } }; b.o = g }).call(this, m(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", ":zeldadice1").set("die-2", ":zeldadice2").set("die-3", ":zeldadice3").set("die-4", ":zeldadice4").set("die-5", ":zeldadice5").set("die-6", ":zeldadice6").set("die-bonus", ":zeldadiceb").set("level-up", ":mklevelup").set("ancient-dragon", ":battlebate_ancient_dragon_3").set("awakened-tree", ":battlebate_awakened_tree").set("death-knight", ":battlebate_death_knight_2").set("Gerudo", ":zelda_gerudo").set("fire-elemental", ":battlebate_fire_elemental").set("ghost", ":battlebate_ghost").set("half-dragon", ":battlebate_half_dragon").set("Lizalfos", ":zelda_lizalfos").set("Stalfos", ":zelda_stalfos").set("merfolk-warrior", ":battlebate_merfolk_warrior_2").set("Shang Tsung", ":battlebate_myrmidon").set("Iron Knuckle", ":zelda_ironknuckle").set("orc-chieftain", ":battlebate_orc_chieftain").set("Moblin", ":zelda_moblin").set("Meg", ":zelda_meg").set("Ganon", ":zelda_ganon").set("Dark Link", ":zelda_darklink").set("undead-dragon", ":battlebate_undead_dragon_3").set("wraith", ":battlebate_wraith").set("Link Kokiri Tunic-novice", ":zelda_green_4").set("Link Kokiri Tunic-epic", ":zelda_green_2").set("Link Kokiri Tunic-hero", ":zelda_green_3").set("Link Goron Tunic-novice", ":zelda_red_4").set("Link Goron Tunic-epic", ":zelda_red_2").set("Link Goron Tunic-hero", ":zelda_red_3").set("Link Zora Tunic-novice", ":zelda_blue_4").set("Link Zora Tunic-epic", ":zelda_blue_2").set("Link Zora Tunic-hero", ":zelda_blue_3").set("Fierce Deity Link-novice", ":zelda_grey_4").set("Fierce Deity Link-epic", ":zelda_grey_2").set("Fierce Deity Link-hero", ":zelda_grey_3").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("master") : 2 === this.level ? this.hero.graphics.get("expert") : 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("greenlink", { name: "Link Kokiri Tunic", bonusPrize: "bonus_reward_1", description: "The initial green tunic that Link is wearing at the start of the game is part of the traditional clothing of the Kokiri.", graphics: (new Map).set("novice", "Link Kokiri Tunic-novice").set("epic", "Link Kokiri Tunic-epic").set("hero", "Link Kokiri Tunic-hero"), attackPhrases: ["shoots his slingshot at", "swings his sword at", "throws his boomerang at", "spin attacks"], levelUpPhrase: "" }), r.set("redlink", { name: "Link Goron Tunic", bonusPrize: "bonus_reward_2", description: "The Goron Tunic allows Link to survive in very hot areas through unexplained means.", graphics: (new Map).set("novice", "Link Goron Tunic-novice").set("epic", "Link Goron Tunic-epic").set("hero", "Link Goron Tunic-hero"), attackPhrases: ["shoots a blast from his fire rod at", "shoots a fire arrow at", "cast Din's Fire", "sword slashes "], levelUpPhrase: "getting warm in here" }), r.set("bluelink", { name: "Link Zora Tunic", bonusPrize: "bonus_reward_3", description: "The Zora Tunic is a tunic that allows Link to breathe underwater.", graphics: (new Map).set("novice", "Link Zora Tunic-novice").set("epic", "Link Zora Tunic-epic").set("hero", "Link Zora Tunic-hero"), attackPhrases: ["throws a bomb at ", "shoots hookshot at ", "sword beam attacks", "slams his Megaton Hammer into"], levelUpPhrase: "ride the current" }), r.set("greylink", { name: "Fierce Deity Link", bonusPrize: "bonus_reward_4", description: "The Fierce Deity's Mask allows Link to transform into the avatar of a mighty god, Fierce Deity.", graphics: (new Map).set("novice", "Fierce Deity Link-novice").set("epic", "Fierce Deity Link-epic").set("hero", "Fierce Deity Link-hero"), attackPhrases: ["thrust his two-handed, helix-edged sword at", "shoots an arrow from his mystical bow at", "strikes", " shoots Sword Beams at"], levelUpPhrase: "drawing power" }); var a = r, o = n(0), i = (new Map).set("Gerudo", ["Just as planned...", "Listen, and join us.", "Look at them...so innocent...", "You are mine!", "Excellent, more!", "The ancient evil survives!", "You are not a true hero!", "I do not answer to you. Fight!", "The path of damned is eternal...", "Don't worry about the soul consumption, it is never too painful..."]).set("Lizalfos", ["You will learn respect!", "I have returned.", "Revenge...", "Death is not the end...", "Death rages!", "My patience has ended!", "I offer you the chance to rule at my side.", "Do not underestimate me.", "You will perish."]).set("Stalfos", ["This will be easy!", "I'll crush you!", "Too easy.", "You are an excellent guard dog!", "You make it too easy!", "Stand still so I can kill you!", "If it's a fight you want...", "You call this fighting?!", "This is gonna HURT...a LOT!"]).set("Iron Knuckle", ["Pathetic!", "I am no friend of yours.", "Oh, this is going to be good!", "Feel my wraith!", "So this is your best?", "You make this too easy!", "submit to my power!", "Now I will show you!", "I will crush your spirits!", "Stop being so week!", "Lousy excuse for a fighter!", "Bow before me!", "I will always be the best!"]).set("Moblin", ["Fear me!", "Let's get something straight...you are will not win!", "Who are you?!", "There won't be anywhere to go!", "Ready to give up yet?", "You will join me or you will die!", "Victory will be mine!", "Control yourself!", "'You will never win!"]).set("Meg", ["The hunt begins!", "You call this a fight?", "This is going to hurt!", "Now you're fighting a true challenge.", "Vengeance will be mine!", "Get over here!", "Oh you're going to pay in blood!", "Words will not save you!"]).set("Ganon", ["In the grave, no one can hear you scream.", "The damned have returned!", "You will die, and I will take this realm for myself!", "At long last you have found the tranquility of death...", "So much fear. So much pain.", "You will all join my army!", "Join us or kneel!"]).set("Dark Link", ["We are many; you are one. Your abilities pale before us.", "You have disturbed us!", "We will break you as well!", "Time is short, surface-dwellers.", "I shall drown your sorrows.", "This world will be ours, and we'll start with the weak."]), s = [{ name: "Gerudo", graphic: { id: o.i, x: 13, y: 10, emoji: "Gerudo" }, taunts: i.get("Gerudo") }, { name: "Lizalfos", graphic: { id: o.j, x: 10, y: 8, emoji: "Lizalfos" }, taunts: i.get("Lizalfos") }, { name: "Stalfos", graphic: { id: o.k, x: 10, y: 10, emoji: "Stalfos" }, taunts: i.get("Stalfos") }, { name: "Iron Knuckle", graphic: { id: o.l, x: 3, y: 13, emoji: "Iron Knuckle" }, taunts: i.get("Iron Knuckle") }, { name: "Moblin", graphic: { id: o.n, x: 8, y: 12, emoji: "Moblin" }, taunts: i.get("Moblin") }, { name: "Meg", graphic: { id: o.e, x: 12, y: 9, emoji: "Meg" }, taunts: i.get("Meg") }, { name: "Ganon", graphic: { id: o.m, x: 10, y: 10, emoji: "Ganon" }, taunts: i.get("Ganon") }, { name: "Dark Link", graphic: { id: o.a, x: 9, y: 8, emoji: "Dark Link" }, taunts: i.get("Dark Link") }], 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 "You see - ".concat(u()(e.name), " - Prepare to fight!") } }, { key: "defeat", value: function(e, t) { return "".concat(e.name, " has defeated ").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 gets you: [").concat(n, "]! :: Type /hero for more") } }, { key: "hint", value: function() { return "*** Only your tokens can save Hyrule! ***" } }], (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..."]), g = [{ 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 b(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 m = 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) && b(t.prototype, n), r && b(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 g }), n.d(t, "a", function() { return m }) }, 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, _) { "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 = _(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 g(e, t, n, r, a) { throw new u.AssertionError({ message: n, actual: e, expected: t, operator: r, stackStartFunction: a }) } function e(e, t) { e || g(e, !0, t, "==", u.ok) } function b(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 = m(e), o = m(t); if (a && !o || !a && o) return !1; if (a) return e = f.call(e), t = f.call(t), b(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], !b(e[i], t[i], n, r)) return !1; return !0 }(e, t, n, r)) } return n ? e === t : e == t } function m(e) { return "[object Arguments]" == Object.prototype.toString.call(e) } function y(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 && g(a, n, "Missing expected exception" + r); var o = "string" == typeof r, i = !e && a && !n; if ((!e && l.isError(a) && o && y(a, n) || i) && g(a, n, "Got unwanted exception" + r), e && a && n && !y(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 || g; 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 = g, u.ok = e, u.equal = function(e, t, n) { e != t && g(e, t, n, "==", u.equal) }, u.notEqual = function(e, t, n) { e == t && g(e, t, n, "!=", u.notEqual) }, u.deepEqual = function(e, t, n) { b(e, t, !1) || g(e, t, n, "deepEqual", u.deepEqual) }, u.deepStrictEqual = function(e, t, n) { b(e, t, !0) || g(e, t, n, "deepStrictEqual", u.deepStrictEqual) }, u.notDeepEqual = function(e, t, n) { b(e, t, !1) && g(e, t, n, "notDeepEqual", u.notDeepEqual) }, u.notDeepStrictEqual = function e(t, n, r) { b(t, n, !0) && g(t, n, r, "notDeepStrictEqual", e) }, u.strictEqual = function(e, t, n) { e !== t && g(e, t, n, "===", u.strictEqual) }, u.notStrictEqual = function(e, t, n) { e === t && g(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, _(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, g = 6e4, b = /[T ]/, m = /:/, y = /^(\d{2})$/, v = [/^([+-]\d{2})$/, /^([+-]\d{3})$/, /^([+-]\d{4})$/], w = /^(\d{4})/, x = [/^([+-]\d{4})/, /^([+-]\d{5})/, /^([+-]\d{6})/], _ = /^-(\d{2})$/, k = /^-?(\d{3})$/, j = /^-?(\d{2})-?(\d{2})$/, O = /^-?W(\d{2})$/, T = /^-?W(\d{2})-?(\d{1})$/, z = /^(\d{2}([.,]\d*)?)$/, S = /^(\d{2}):?(\d{2}([.,]\d*)?)$/, E = /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/, D = /([Z+-].*)$/, A = /^(Z)$/, I = /^([+-])(\d{2})$/, P = /^([+-])(\d{2}):?(\d{2})$/; function M(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(b); if (t = m.test(r[0]) ? (n.date = null, r[0]) : (n.date = r[0], r[1])) { var a = D.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 = y.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 = _.exec(e)) return r = new Date(0), a = parseInt(n[1], 10) - 1, r.setUTCFullYear(t, a), r; if (n = k.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, M(t, o); if (n = T.exec(e)) { o = parseInt(n[1], 10) - 1; var c = parseInt(n[2], 10) - 1; return M(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 = z.exec(e)) return (n = parseFloat(t[1].replace(",", "."))) % 24 * p; if (t = S.exec(e)) return n = parseInt(t[1], 10), r = parseFloat(t[2].replace(",", ".")), n % 24 * p + r * g; if (t = E.exec(e)) { n = parseInt(t[1], 10), r = parseInt(t[2], 10); var a = parseFloat(t[3].replace(",", ".")); return n % 24 * p + r * g + 1e3 * a } return null }(r.time)), s = r.timezone ? (l = r.timezone, (f = A.exec(l)) ? 0 : (f = I.exec(l)) ? (h = 60 * parseInt(f[2], 10), "+" === f[1] ? -h : h) : (f = P.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 * g).getTimezoneOffset()), new Date(c + u + s * g) } 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), g = 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 b(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 = g.a.heroes.entries()[Symbol.iterator](); !(r = (i = s.next()).done); r = !0) { var c = b(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 and 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 XP and Level Up! :::\n ".concat(n, "\n ").trim() } function f(e) { var t = ["==== The Legend of Zelda ====", 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 = g.a.heroes.entries()[Symbol.iterator](); !(r = (i = s.next()).done); r = !0) { var c = b(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 Prizes - ".concat(e.cb.settings.attack_cost, " tokens to roll :::\n ").concat(n, "\n ::: Level Up Prizes - Awarded every ").concat(e.cb.settings.level_up_amount, " tokens :::\n ").concat(t.join("\n"), "\n ").trim() : "\n ::: Level Up Prizes - Awarded every ".concat(e.cb.settings.level_up_amount, " tokns :::\n ").concat(t.map(function(e) { return "* ".concat(e) }).join("\n"), "\n ").trim() } var m = 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 = g.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 = m }, function(e, t, n) { var g = n(83), b = n(14), m = n(85), y = n(86); e.exports = function(e, t, n) { var r = n || {}, a = g(e, t), o = r.locale, i = y.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 = b(e), b(t)) : (s = b(t), b(e)); var f = Math[r.partialMethod ? String(r.partialMethod) : "floor"], h = m(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" }), g = Object.freeze({ type: "text", color: "yellow", "font-family": "Segoe UI, sans-serif", "font-size": 11 }), b = 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, " Enemies Defeated") : "0 Enemies Defeated"; "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({}, g, { text: o, left: 65, top: 2 }), d({}, b, { text: i, left: 105, top: 14 }), d({}, b, { text: s, left: 85, top: 48 })]; return c = "main" === l.MODE ? "on" === this.cb.settings.prize_rolling ? "Roll Dice : ".concat(this.cb.settings.attack_cost, " Tokens") : "Dice: On" : "Tip to become The Hero of Time!", u.push(d({}, b, { text: c, left: 172, top: 2 })), { 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 o = n(34), i = n(93), s = n(95), c = 4294967295, u = Math.min; e.exports = function(e, t) { if ((e = s(e)) < 1 || 9007199254740991 < e) return []; var n = c, r = u(e, c); t = i(t), e -= c; for (var a = o(r, t); ++n < e;) t(n); return a } }, 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), g = n(49), b = 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 && g(e), i = n || r || a || o, s = i ? l(e.length, String) : [], c = s.length; for (var u in e) !t && !b.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 + "]", g = "(?:" + l + "|" + f + ")", b = "(?:" + p + "|" + f + ")", m = "(?:['’](?:d|ll|m|re|s|t|ve))?", y = "(?:['’](?: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 + ")*"), _ = "(?:" + [u, h, d].join("|") + ")" + x, k = RegExp([p + "?" + l + "+" + m + "(?=" + [s, p, "$"].join("|") + ")", b + "+" + y + "(?=" + [s, p + g, "$"].join("|") + ")", p + "?" + g + "+" + m, p + "+" + y, "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", c, _].join("|"), "g"); e.exports = function(e) { return e.match(k) || [] } }, 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, z, h) { (function(r, a) { var s = /%[sdj%]/g; z.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]) y(i) || !l(i) ? o += " " + i : o += " " + c(i); return o }, z.deprecate = function(e, t) { if (x(r.process)) return function() { return z.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]), m(t) ? n.showHidden = t : t && z._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 !== z.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 (m(t)) return e.stylize("" + t, "boolean"); if (y(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 (_(n)) return t.stylize(RegExp.prototype.toString.call(n), "regexp"); if (k(n)) return t.stylize(Date.prototype.toString.call(n), "date"); if (j(n)) return p(n) } var u, l = "", f = !1, h = ["{", "}"]; (b(n) && (f = !0, h = ["[", "]"]), O(n)) && (l = " [Function" + (n.name ? ": " + n.name : "") + "]"); return _(n) && (l = " " + RegExp.prototype.toString.call(n)), k(n) && (l = " " + Date.prototype.toUTCString.call(n)), j(n) && (l = " " + p(n)), 0 !== i.length || f && 0 != n.length ? r < 0 ? _(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) T(n, String(i)) ? o.push(g(t, n, r, a, String(i), !0)) : o.push(""); return e.forEach(function(e) { e.match(/^\d+$/) || o.push(g(t, n, r, a, e, !0)) }), o }(t, n, r, s, i) : i.map(function(e) { return g(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 g(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")), T(r, a) || (i = "[" + a + "]"), s || (e.seen.indexOf(c.value) < 0 ? -1 < (s = y(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 b(e) { return Array.isArray(e) } function m(e) { return "boolean" == typeof e } function y(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 _(e) { return l(e) && "[object RegExp]" === t(e) } function l(e) { return "object" == typeof e && null !== e } function k(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) } z.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 = z.format.apply(z, arguments); console.error("%s %d: %s", t, n, e) } } else o[t] = function() {}; return o[t] }, (z.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" }, z.isArray = b, z.isBoolean = m, z.isNull = y, z.isNullOrUndefined = function(e) { return null == e }, z.isNumber = v, z.isString = w, z.isSymbol = function(e) { return "symbol" == typeof e }, z.isUndefined = x, z.isRegExp = _, z.isObject = l, z.isDate = k, z.isError = j, z.isFunction = O, z.isPrimitive = function(e) { return null === e || "boolean" == typeof e || "number" == typeof e || "string" == typeof e || "symbol" == typeof e || void 0 === e }, z.isBuffer = h(78); var f = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; function T(e, t) { return Object.prototype.hasOwnProperty.call(e, t) } z.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(" ")), z.format.apply(z, arguments)) }, z.inherits = h(79), z._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 g() {} 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 = g, a.addListener = g, a.once = g, a.off = g, a.removeListener = g, a.removeAllListeners = g, a.emit = g, a.prependListener = g, a.prependOnceListener = g, 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, x, _) { "use strict"; (function(a) { var e = _(11), i = _.n(e), t = _(1), r = _.n(t), n = _(37), s = _.n(n), o = _(27), c = _(4), u = _(28), l = _(10), f = _(2), h = _(29), d = _(32), p = _(33), g = _(3); function b(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 m(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 y(e) { return null !== this.command.evaluate(e) ? Object.assign(e, { "X-Spam": !0 }) : function(e) { if (e.user === this.cb.room_slug) return e; var t, n = this.fetchPlayer(e.user); return t = "yes" === this.cb.settings.show_avatars ? f.a.render(n.emoji) : r()(n.hero.name), e.m = ":: ".concat(t, " :: ").concat(e.m), e }.call(this, e) } function v(e) { var t = e.from_user, n = this.fetchPlayer(t), r = this.enemy.hp; if (function(n, e) { var t, r = this, a = Math.floor(e / this.cb.settings.attack_cost); 1 < a && "no" === this.cb.settings.multi_roll && (a = 1); var o = n.attack(this.enemy, e).levelsGained; "on" === this.cb.settings.prize_rolling && s()(a, function(e) { var t = i()(r.prizes); r.logWinning(n, t), r.messenger.reward(n, t, r.prizes.indexOf(t) + 1) }), s()(o, function(e) { t = r.cb.settings[n.hero.bonusPrize] ? r.cb.settings[n.hero.bonusPrize] : i()(r.prizes), r.logWinning(n, t) }), 1 <= o && (s()(o, function() { r.messenger.reward(n, t) }), this.messenger.levelUp(n)) }.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.info.showXP(n), this.panel.redraw() } var w = 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.prizes = [], this.winners = [], this.command = new u.a({ exactMatching: "yes" === this.cb.settings.exact_command_matching }), this.messenger = new d.a(e), this.info = new h.a(this.messenger, this), this.totalDamage = 0, this.totalKills = 0, this.prizesWon = [], this.panel = new p.a(e, this) } var e, n, r; return e = t, (n = [{ key: "showInfo", value: function() { var e = "Type /help to see some useful commands!"; return this.messenger.whisper("Running Battlebate v".concat(o.a), this.cb.room_slug), this.messenger.send(e, { group: "red" }), this.messenger.whisper(e, this.cb.room_slug), this } }, { key: "registerCommands", value: function() { var o = this; this.command.register("/env", [{ name: "environment", type: "directive", values: ["production", "alpha", "test"] }], function(e, t, n) { if (e.is_mod || e.user === o.cb.room_slug) { switch (n.environment) { case "test": a.ENV = "test"; break; case "alpha": a.ENV = "alpha"; break; case "production": default: a.ENV = "production" } o.messenger.whisper("Changing environment to: ".concat(n.environment), e.user), o.panel.redraw() } else o.messenger.whisper("Only the broadcaster or mods can do that", e.user) }), this.command.register("/hero", [{ name: "hero", type: "directive", values: b(g.a.heroes.keys()) }], function(e, t, n) { var r = n.hero, a = o.fetchPlayer(e.user); r ? (a.changeHero(r), o.messenger.whisper(o.announcements.heroChange(a, o.cb), a.name)) : "/hero" === e.m.trim() ? o.info.showHeroes(a) : o.messenger.whisper("Unknown option selected for /hero command. Valid options are: ".concat(b(g.a.heroes.keys()).join(", "), "."), e.user) }), this.command.register("/tldr", [{ name: "audience", type: "directive", values: ["all"] }], function(e, t, n) { var r = n.audience, a = o.fetchPlayer(e.user); "all" === r ? e.is_mod || e.user === o.cb.room_slug ? o.info.showTLDR() : o.messenger.whisper("Only the broadcaster or mods can do that", e.user) : o.info.showTLDR(a) }), this.command.register("/help", null, function(e) { var t = o.fetchPlayer(e.user); o.info.showHelp(t) }), this.command.register("/avatars", [{ name: "enabled", type: "directive", values: ["on", "off", "text"] }], function(e, t, n) { e.is_mod || e.user === o.cb.room_slug ? null !== n.enabled ? (o.cb.settings.show_avatars = "on" === n.enabled ? "yes" : "no", o.messenger.say("Player avatars have been ".concat("on" === n.enabled ? "enabled" : "disabled", "."))) : o.messenger.whisper("You dun goofed. Try /avatars on|off", e.user) : o.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 === o.cb.room_slug) { var r = Number(n.amount); r && 0 < r ? (o.cb.settings.goal_amount = r, o.spawnEnemy(), o.messenger.whisper("Goal has been updated", e.user)) : o.messenger.whisper("Choose a token amount greater than 0 (e.g. /goal 1000)", e.user) } else o.messenger.whisper("Only the broadcaster or mods can do that", e.user) }), this.command.register("/prizes", [{ name: "audience", type: "directive", values: ["all"] }], function(e, t, n) { var r = n.audience, a = o.fetchPlayer(e.user); "all" === r ? e.is_mod || e.user === o.cb.room_slug ? o.info.showPrizes() : o.messenger.whisper("Only the broadcaster or mods can do that", e.user) : o.info.showPrizes(a) }), this.command.register("/dicerolls", [{ name: "value", type: "directive", values: ["on", "off"] }], function(e, t, n) { e.is_mod || e.user === o.cb.room_slug ? null !== n.value ? (o.cb.settings.prize_rolling = n.value, o.panel.redraw(), o.messenger.say("Dice rolling has been ".concat("on" === n.value ? "enabled" : "disabled", "."))) : o.messenger.whisper("You dun goofed. Try /dicerolls on|off", e.user) : o.messenger.whisper("Only the broadcaster or mods can do that", e.user) }), this.command.register("/winners", null, function(e, t) { e.is_mod || e.user === o.cb.room_slug ? o.info.showWinners() : o.messenger.whisper("Only the broadcaster or mods can do that", e.user) }) } }, { key: "setReminder", value: function() { var e = this, t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : null; return "prizes" === t ? this.cb.setTimeout(function() { e.info.showPrizes(), e.setReminder("prizes") }, 6e5) : "winners" === t && this.cb.setTimeout(function() { e.info.showWinners(), e.setReminder("winners") }, 24e4), this } }, { key: "spawnEnemy", value: function() { this.enemy = new l.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 = c.a, g.a.setTheme("batman"), l.a.setTheme("batman"); break; case "Fantasy": default: this.announcements = c.d, g.a.setTheme("fantasy"), l.a.setTheme("fantasy") } return this.registerCommands(), this } }, { key: "setupPrizes", value: function() { var t = this, n = this.cb.settings, e = Object.keys(n); return this.prizes = e.filter(function(e) { return /prize_\d/.test(e) && n[e].trim().length }).map(function(e) { return t.cb.settings[e] }), this } }, { key: "logWinning", value: function(e, t) { return this.winners.push({ player: e, prize: t, time: new Date }), 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 g.a(e); return this.players.set(e, t), t } }, { key: "taunt", value: function() { var e = this, t = 0 < arguments.length && void 0 !== arguments[0] && arguments[0]; return this.messenger.taunt(this.enemy), t && this.messenger.say(this.announcements.hint()), this.cb.setTimeout(function() { e.taunt(!0) }, 3e5), this } }, { key: "start", value: function() { return this.cb.settings_choices = [{ name: "goal_amount", label: "Goal (auto-repeat)", type: "int", minValue: 1, maxValue: 1e5, defaultValue: 100 }, { name: "prize_rolling", label: "Dice Rolls", type: "choice", choice1: "on", choice2: "off", defaultValue: "on" }, { name: "attack_cost", label: "Dice Roll Cost", type: "int", minValue: 1, maxValue: 1e5, defaultValue: 25 }, { name: "prize_1", label: "Dice Roll Prize (1)", type: "str", defaultValue: "1 ass spank" }, { name: "prize_2", label: "Dice Roll Prize (2)", type: "str", defaultValue: "2 ass spanks" }, { name: "prize_3", label: "Dice Roll Prize (3)", type: "str", defaultValue: "3 ass spanks" }, { name: "prize_4", label: "Dice Roll Prize (4)", type: "str", defaultValue: "4 ass spanks" }, { name: "prize_5", label: "Dice Roll Prize (5)", type: "str", defaultValue: "5 ass spanks" }, { name: "prize_6", label: "Dice Roll Prize (6)", type: "str", defaultValue: "6 ass spanks" }, { name: "level_up_amount", label: "Tips Needed To Level Up", type: "int", minValue: 1, maxValue: 1e5, defaultValue: 200 }, { name: "bonus_reward_1", label: "Level Up Prize :: Link Kokiri Tunic", type: "str", defaultValue: "flash tits" }, { name: "bonus_reward_2", label: "Level Up Prize :: Link Goron Tunic", type: "str", defaultValue: "flash tits" }, { name: "bonus_reward_3", label: "Level Up Prize :: Link Zora Tunic", type: "str", defaultValue: "flash tits" }, { name: "bonus_reward_4", label: "Level Up Prize :: Fierce Deity Link", type: "str", defaultValue: "flash tits" }, { name: "multi_roll", label: "Multiple Dice Rolls When Overtipping", type: "choice", choice1: "yes", choice2: "no", defaultValue: "no" }, { name: "show_total_tokens", label: "Show Total Tokens Recived", 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", g.a.configure("LEVEL_UP_COST", this.cb.settings.level_up_amount), this.setTheme(this.cb.settings.theme), this.setupPrizes(), this.showInfo(), this.info.showTLDR(), this.spawnEnemy(), this.taunt(!1), this.registerCommands(), this.setReminder("prizes"), this.setReminder("winners"), this.cb.onTip(v.bind(this)), this.cb.onEnter(function(e) { var t; e.user !== this.cb.room_slug && (this.players.has(e.user) ? t = this.players.get(e.user) : (t = this.addPlayer(e.user), this.messenger.whisper(this.announcements.heroChange(t, this.cb), t.name)), this.info.showTLDR(t)) }.bind(this)), this.cb.onMessage(y.bind(this)), this } }]) && m(e.prototype, n), r && m(e, r), t }(); x.a = w }).call(this, _(5)) }, , function(e, t, n) { "use strict"; n.r(t), function(e) { var t = n(90); e.ENV = "production", e.MODE = "main", new t.a(e.cb).start() }.call(this, n(5)) }, function(e, t, n) { var r = n(94); e.exports = function(e) { return "function" == typeof e ? e : r } }, function(e, t) { e.exports = function(e) { return e } }, function(e, t, n) { var r = n(96); e.exports = function(e) { var t = r(e), n = t % 1; return t == t ? n ? t - n : t : 0 } }, function(e, t, n) { var r = n(97); e.exports = function(e) { return e ? (e = r(e)) !== 1 / 0 && e !== -1 / 0 ? e == e ? e : 0 : 17976931348623157e292 * (e < 0 ? -1 : 1) : 0 === e ? e : 0 } }, function(e, t, n) { var r = n(35), a = n(36), o = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, s = /^0b[01]+$/i, c = /^0o[0-7]+$/i, u = parseInt; e.exports = function(e) { if ("number" == typeof e) return e; if (a(e)) return NaN; if (r(e)) { var t = "function" == typeof e.valueOf ? e.valueOf() : e; e = r(t) ? t + "" : t } if ("string" != typeof e) return 0 === e ? e : +e; e = e.replace(o, ""); var n = s.test(e); return n || c.test(e) ? u(e.slice(2), n ? 2 : 8) : i.test(e) ? NaN : +e } }]);
© Copyright Chaturbate 2011- 2025. All Rights Reserved.