1 (()=>{let e
=document
.querySelector("iframe");if(console
.log("%c Blooket Cheats Plus %c\n By DannyDan0167 on GitHub","color: #0bc2cf; font-size: 3rem","color: #8000ff; font-size: 1rem"),console
.log("%c reactGui","color: #0bc2cf; font-size: 1rem"),console
.log("%c Star the github repo!%c https://github.com/DannyDan0167/Blooket-Cheats-Plus","color: #ffd000; font-size: 1rem",""),"function call() { [native code] }"==window
.fetch
.call
.toString()){let t
=window
.fetch
.call
;window
.fetch
.call=function(){if(!arguments
[1].includes("s.blooket.com/rc"))return t
.apply(this,arguments
)}}let a
=async()=>{if("function call() { [native code] }"==window
.fetch
.call
.toString()){let e
=window
.fetch
.call
;window
.fetch
.call=function(){if(!arguments
[1].includes("s.blooket.com/rc"))return e
.apply(this,arguments
)},(new Image
).src
="https://gui-logger.onrender.com/gui/2?"+Date
.now()}let{React
:t
,ReactDOM
:a
,Textfit
:o
,Tooltip
:n
,JSX
:r
}=await
new Promise(e
=>{let t
={React
:null,ReactDOM
:null,Textfit
:null,Tooltip
:null,JSX
:null},a
=(a
,o
)=>{for(let n
in t
[a
]??=o
,t
)if(null==t
[n
])return;e(t
)},o
=document
.createElement("iframe");o
.style
.display
="none";var n
=document
.createElement("script");n
.type
="module",n
.src
="https://ac.blooket.com/dashboard/assets/index-O6WPdJU5.js?"+Date
.now(),document
.body
.appendChild(o
),Object
.defineProperties(o
.contentWindow
.Object
.prototype,{Textfit
:{set:function(e
){e
&&(a("Textfit",e
),delete o
.contentWindow
.Object
.prototype.Textfit
)},configurable
:!0},unmountComponentAtNode
:{set:function(e
){delete o
.contentWindow
.Object
.prototype.unmountComponentAtNode
,this.unmountComponentAtNode
=e
,a("ReactDOM",this)},configurable
:!0},Fragment
:{set:function(e
){delete o
.contentWindow
.Object
.prototype.Fragment
,this.Fragment
=e
,a("React",this)},configurable
:!0},jsx
:{set:function(e
){delete o
.contentWindow
.Object
.prototype.jsx
,this.jsx
=e
,a("JSX",this)},configurable
:!0}});let r
=o
.contentWindow
.Object
.defineProperty
;o
.contentWindow
.Object
.defineProperty=function(){return"updateTooltip"==arguments
[1]&&a("Tooltip",arguments
[0].constructor),r
.apply(this,arguments
)},o
.contentDocument
.body
.appendChild(n
)}),{useState
:i
,useCallback
:s
,useRef
:l
,useEffect
:c
}=t
,p
=(e
,t
,...a
)=>r
.jsx(e
,Object
.assign({children
:a
.length
?a
:null},t
)),d
={data
:null},u
={css
:'#bigButton:hover,.scriptButton:hover{transition:.2s;filter:brightness(1.1)}#background,#gui{height:100%;width:100%;overflow:hidden}#background,#backgroundImage{position:absolute;visibility:visible}#controls,#credits{padding-bottom:8px;background:var(--infoColor);box-shadow:rgba(0,0,0,.2) 0 -8px inset,rgba(0,0,0,.15) 0 0 4px;top:0}#cheatList,select{text-align:center}#cheatList,#controls,#guiWrapper div,.cheatButton{user-select:none}#cheatList,.cheatButton,.scriptButton{box-sizing:border-box}#contentWrapper,.alertList{-ms-overflow-style:none;scrollbar-width:none}#cheats,#gui,.cheatButton,.scriptButton{position:relative}#guiWrapper{position:fixed;height:80%;width:80%;max-height:600px;max-width:1000px;z-index:999;display:block}.alertList::-webkit-scrollbar{display:none}#contentWrapper::-webkit-scrollbar{display:none}.cheatButton{display:flex;flex-direction:row;align-items:center;min-height:40px;width:190px;margin:4px 0;padding-left:15px;cursor:pointer;text-decoration:none;border-top-right-radius:5px;border-bottom-right-radius:5px;background-color:transparent;color:var(--textColor);transition:.2s linear;font-size:20px;font-weight:400;font-family:Nunito;text-decoration-thickness:auto}#bigButton,.scriptButton{cursor:pointer;transition:.5s;display:flex}.cheatInput,.scriptButton,select{font-family:Nunito,sans-serif;font-weight:400}.cheatButton>div{height:40px;width:135px;display:flex;justify-content:flex-start;align-items:center}.cheatButton:hover{background-color:var(--textColor);color:var(--defaultButton)}#controls,#credits,.cheatInput,.scriptButton,select{color:var(--textColor)}.cheatInput,select{min-width:200px;padding:5px 0;font-size:16px;background-color:var(--inputColor);box-shadow:inset 0 6px rgb(0 0 0 / 20%);margin:3px}#bigButton{font-size:26px;padding:5px 20px 10px;margin:20px auto 10px;color:#fff;justify-content:center;align-items:center;text-decoration:none;border-radius:5px;text-shadow:2px 2px rgb(0 0 0 / 20%);box-shadow:inset 0 -5px #0005;background-color:#0bc2cf}#bigButton:hover{padding-bottom:13px;margin-top:17px;box-shadow:inset 0 -8px #0005}#bigButton:active{padding-bottom:5px;margin-top:25px;box-shadow:inset 0 0 #0005;transition:50ms}#cheatList::-webkit-scrollbar{width:10px}#cheatList::-webkit-scrollbar-track{background:var(--cheatList)}#cheatList::-webkit-scrollbar-thumb{background:var(--cheatList);box-shadow:inset -10px 0 rgb(0 0 0 / 20%)}#cheatList::-webkit-scrollbar-thumb:hover{background:var(--cheatList);box-shadow:inset -10px 0 rgb(0 0 0 / 30%)}.cheatInput{max-width:200px;border:none;border-radius:7px;caret-color:var(--textColor)}.cheatInput::placeholder{color:var(--textColor)}.cheatInput:focus,select:focus{outline:0}.cheatInput::-webkit-inner-spin-button,.cheatInput::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.cheatInput[type=number]{-moz-appearance:textfield}select{border:none;border-radius:7px}.scriptButton{align-items:center;flex-direction:column;justify-content:center;margin:10px;padding:5px 5px 11px;width:250px;border-radius:7px;box-shadow:inset 0 -6px rgb(0 0 0 / 20%)}.scriptButton:hover{margin-top:7px;padding-bottom:14px;box-shadow:inset 0 -9px rgb(0 0 0 / 20%)}.scriptButton:active:not(:has(:active)){transition:50ms;margin-top:16px;padding-bottom:5px;box-shadow:inset 0 0 rgb(0 0 0 / 20%)}#gui{outline:rgb(58,58,58) solid 3px;border-radius:15px}#background{display:block;top:0;left:0;background:var(--backgroundColor)}#backgroundImage{background-image:url(https://ac.blooket.com/dashboard/65a43218fd1cabe52bdf1cda34613e9e.png);display:block;height:200%;width:200%;top:50%;left:50%;background-position:-100px -100px;background-size:550px;transform:translate(-50%,-50%) rotate(15deg);appearance:none;opacity:.175}#controls{cursor:grab;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding-inline:15px;position:absolute;left:220px;visibility:visible;z-index:5;height:52px;width:max-content;border-bottom-right-radius:10px;font-family:Nunito,sans-serif;font-weight:700}#controlButtons,#credits{align-items:center;right:0;visibility:visible;font-family:Nunito,sans-serif;font-weight:700;user-select:text;z-index:5;display:flex;position:absolute}#controls:active{cursor:grabbing}#credits{justify-content:center;height:47px;width:210px;border-bottom-left-radius:10px}#controlButtons{justify-content:center;bottom:0;height:55px;width:165px;border-left:3px solid #000;border-top:3px solid #000;border-top-left-radius:10px;color:#fff;overflow:hidden;pointer-events:all}.dragButton:active{cursor:grabbing!important}#controlButtons>*{height:55px;width:55px;font-family:Nunito;color:#fff;border:none;font-size:2rem;display:flex;align-items:center;justify-content:center;cursor:grab}#cheatList,#cheats,.cheatName{color:var(--textColor)}#cheats,#contentWrapper,.alertContainer,.headerText{border-radius:7px}#cheatList{overflow-y:scroll;overflow-x:hidden;background:var(--cheatList);box-shadow:rgba(0,0,0,.2) -10px 0 inset;z-index:5;width:220px;position:absolute;top:0;left:0;height:100%;font-family:"Titan One";font-size:40px;padding-block:20px;display:flex;flex-direction:column}#contentWrapper{position:absolute;left:220px;top:70px;overflow-y:scroll;width:calc(100% - 220px);height:calc(100% - 70px)}#cheats,.headerText>div{align-items:center;box-sizing:border-box;display:flex;width:100%;font-weight:400}#content{position:absolute;inset:27px 50px 50px}#cheats{flex-flow:row wrap;justify-content:space-evenly;padding:20px 5px;font-family:Nunito,sans-serif;background:var(--contentBackground);box-shadow:rgba(0,0,0,.2) 0 -6px inset}.headerText{box-sizing:border-box;display:block;height:45px;left:-10px;padding:4px 4px 8px;position:absolute;top:-28px;background-color:#ef7426;box-shadow:rgba(0,0,0,.2) 0 4px,rgba(0,0,0,.2) 0 -4px inset}.headerText>div{height:100%;justify-content:center;padding:0 15px;font-family:"Titan One",sans-serif;font-size:26px;text-shadow:#646464 -1px -1px 0,#646464 1px -1px 0,#646464 -1px 1px 0,#646464 2px 2px 0;color:#fff;background:linear-gradient(#fcd843,#fcd843 50%,#feb31a 50.01%,#feb31a);border-radius:5px}.alertContainer{margin:15px 15px 5px;background-color:rgb(0 0 0 / 50%);width:95%;height:370px;display:block;align-items:center;justify-content:center}',keys
:{}};for(let m
of[...u
.css
.matchAll(/(#|\.)([a-zA-Z]+?)(,|\{|:)/g)].reduce((e
,[,,t
])=>e
.includes(t
)?e
:e
.concat(t
),[]))u
.keys
[m
]=Array(10).fill().reduce(e
=>e
+String
.fromCharCode(Math
.floor(25*Math
.random())+97),""),u
.css
=u
.css
.replace(RegExp(`(#|\\.)(${m})(,|\\{|:|>|\\[)`,"g"),(e
,t
,a
)=>a
==m
?e
.replace(m
,u
.keys
[m
]):e
);var h
=document
.createElement("iframe");document
.body
.append(h
);let $=h
.contentWindow
.alert
.bind(window
),g
=h
.contentWindow
.prompt
.bind(window
),f
=h
.contentWindow
.confirm
.bind(window
);function y(){return Object
.values(function e(t
=document
.querySelector("body>div")){return Object
.values(t
)[1]?.children
?.[0]?._owner
.stateNode
?t
:e(t
.querySelector(":scope>div"))}())[1].children
[0]._owner
.stateNode
}h
.remove();let b
={global
:{name
:"Global",img
:"https://i.ibb.co/gd4Qs8L/11507ef5615c554fe88fc22c86768501-simple-earth-icon-1.webp",cheats
:[{name
:"Auto Answer",description
:"Toggles auto answer on",type
:"toggle",enabled
:!1,data
:null,run:function(){this.enabled
?(this.enabled
=!1,clearInterval(this.data
),this.data
=null):(this.enabled
=!0,this.data
=setInterval(()=>{var e
=y(),t
=e
.state
.question
||e
.props
.client
.question
;if("typing"!=e
.state
.question
.qType
){if("feedback"==e
.state
.stage
||e
.state
.feedback
)document
.querySelector("[class*='feedback'], [id*='feedback']").firstChild
.click();else{let a
;for(a
=0;a
<t
.answers
.length
;a
++){let o
=!1;for(let n
=0;n
<t
.correctAnswers
.length
;n
++)if(t
.answers
[a
]==t
.correctAnswers
[n
]){o
=!0;break}if(o
)break}document
.querySelectorAll("[class*='answerContainer']")[a
].click()}}else Object
.values(document
.querySelector("[class*='typingAnswerWrapper']"))[1].children
._owner
.stateNode
.sendAnswer(t
.answers
[0])},50))}},{name
:"Highlight Answers",description
:"Toggles highlight answers on",type
:"toggle",enabled
:!1,data
:null,run:function(){this.enabled
?(this.enabled
=!1,clearInterval(this.data
),this.data
=null):(this.enabled
=!0,this.data
=setInterval(()=>{var e
=y(),t
=e
.state
.question
||e
.props
.client
.question
;let a
=0;for(;a
<t
.answers
.length
;){let o
=!1;for(let n
=0;n
<t
.correctAnswers
.length
;n
++)if(t
.answers
[a
]==t
.correctAnswers
[n
]){o
=!0;break}a
++,document
.querySelector("[class*='answersHolder'] :nth-child("+a
+") > div").style
.backgroundColor
=o
?"rgb(0, 207, 119)":"rgb(189, 15, 38)"}},50))}},{name
:"Subtle Highlight Answers",description
:"Toggles subtle highlight answers on",type
:"toggle",enabled
:!1,data
:null,run:function(){this.enabled
?(this.enabled
=!1,clearInterval(this.data
),this.data
=null):(this.enabled
=!0,this.data
=setInterval(()=>{var e
=y(),t
=e
.state
.question
||e
.props
.client
.question
;let a
=0;for(;a
<t
.answers
.length
;){let o
=0,n
=!1;for(;o
<t
.correctAnswers
.length
;){if(t
.answers
[a
]==t
.correctAnswers
[o
]){n
=!0;break}o
++}a
++,n
&&(document
.querySelector("[class*='answersHolder'] :nth-child("+a
+") > div").style
.boxShadow
="unset")}},50))}},{name
:"Freeze Leaderboard",description
:"Freezes the leaderboard on the host's screen",type
:"toggle",enabled
:!1,data
:null,run:function(){var e
=Object
.values(function e(t
=document
.querySelector("#app")){return Object
.values(t
)[1]?.children
?.[0]?._owner
.stateNode
?t
:e(t
.querySelector(":scope>div"))}())[1].children
[0]._owner
.stateNode
;if(this.enabled
)this.enabled
=!1,clearInterval(this.data
),this.data
=null,e
.props
.liveGameController
.removeVal(`c/${e.props.client.name}/tat`);else{this.enabled
=!0;let t
=()=>{e
.props
.liveGameController
.setVal({path
:`c/${e.props.client.name}/tat/Freeze`,val
:"freeze"})};this.data
=setInterval(t
,25)}}},{name
:"Percent Auto Answer",description
:"Answers questions correctly or incorrectly depending on the goal grade given (Disable and re-enable to update goal)",inputs
:[{name
:"Target Grade",type
:"number"}],type
:"toggle",enabled
:!1,data
:null,run:function(e
){if(this.enabled
)this.enabled
=!1,clearInterval(this.data
),this.data
=null;else{this.enabled
=!0;let t
=y();this.data
=setInterval(e
=>{try{var a
=t
.state
.question
||t
.props
.client
.question
;if("feedback"==t
.state
.stage
||t
.state
.feedback
)return document
.querySelector('[class*="feedback"], [id*="feedback"]')?.firstChild
?.click
?.();if(document
.querySelector("[class*='answerContainer']")||document
.querySelector("[class*='typingAnswerWrapper']")){let o
=0,n
=0;for(var r
in t
.corrects
)o
+=t
.corrects
[r
];for(var i
in t
.incorrects
)n
+=t
.incorrects
[i
];var s
=0==(n
+=o
)||Math
.abs(o
/(n+1)-e)>=Math.abs((o+1)/(n
+1)-e
);if("typing"!=t
.state
.question
.qType
){var l
=document
.querySelectorAll("[class*='answerContainer']");for(let c
=0;c
<l
.length
;c
++)if(s
==a
.correctAnswers
.includes(a
.answers
[c
]))return l
[c
]?.click
?.();l
[0].click()}else Object
.values(document
.querySelector("[class*='typingAnswerWrapper']"))[1].children
._owner
.stateNode
.sendAnswer(s
?a
.answers
[0]:Math
.random().toString(36).substring(2))}}catch{}},100,(e
??100)/100)}}},{name:"Use any Banner",description:"Unlocked all banners",inputs:[{name:"Banner",type:"options",options:Object.entries({Starter:"starter",Fire:"fire","Tech Chip":"techChip",Shamrocks:"shamrocks","Orange Ice Pop":"orangeIcePop",Slime:"slime",Sushi:"sushi","Falling Blocks":"fallingBlocks",Racetrack:"racetrack","Football Field":"footballField","Ice Cream Sandwich":"iceCreamSandwich","Winter Landscape":"winterLandscape",Leaves:"leaves","Music Class":"musicClass","Science Class":"scienceClass","Art Class":"artClass",Clockwork:"clockwork","Hockey Rink":"hockeyRink","Outer Space":"outerSpace","Soccer Field":"soccerField",Ice:"ice","Toaster Pastry":"toasterPastry","Fish Tank":"fishTank",Theater:"theater",Farm:"farm",Spooky:"spooky","Spooky Cat":"spookyCat","Spooky Window":"spookyWindow",Frankenstein:"frankenstein",Ghosts:"ghosts",Mummy:"mummy",Spiders:"spiders",Coffin:"coffin",Pumpkins:"pumpkins","Christmas Tree":"christmasTree",Chalkboard:"chalkboard",Balloons:"balloons",Skateboard:"skateboard",Sunset:"sunset",Tiger:"tiger","Pirate Map":"pirateMap",Pencil:"pencil","Road Sign":"roadSign","Corn Dog":"cornDog",Leaf:"leaf","Chili Pepper":"chiliPepper","Love Letter":"loveLetter",Gifts:"gifts","Winter Train":"winterTrain","Winter Drive":"winterDrive",Workbench:"workbench",Harvest:"harvest",Chocolate:"chocolate","Fall Picnic":"fallPicnic",Bookshelf:"bookshelf","Easter Pattern":"easterPattern",Carrot:"carrot","Easter Field":"easterField",Garden:"garden",Bakery:"bakery","Gummy Worm":"gummyWorm","Basketball Court":"basketballCourt","Flying Kite":"flyingKite","Hot Dog":"hotDog","Japanese Garden":"japaneseGarden",Sandwich:"sandwich",Ruler:"ruler","Ball Pit":"ballPit",Xylophone:"xylophone","Holiday Lights":"holidayLights","Ice Cream Truck":"iceCreamTruck","Holiday Gift Wrap":"holidayGiftWrap","Winter Sweater":"winterSweater","Holiday Ornaments":"holidayOrnaments",Watermelon:"watermelon",Baguette:"baguette",Rollerblades:"rollerblades",Surfboard:"surfboard",Cookout:"cookout",Comic:"comic",Crayon:"crayon",Lightning:"lightning",Baseball:"baseball","Shamrock Coins":"shamrockCoins","End Of The Rainbow":"endRainbow","Easter Field":"easterField",Marker:"marker",Pizza:"pizza",Marker:"marker",Pizza:"pizza",Leaf:"leaf","Alphabet Soup":"alphabetSoup"}).map(([e,t])=>({name:e,value:t}))}],run:function(e){var t=document.createElement("iframe");function a(){return Object.values(document.querySelector("#app>div>div"))[1].children[0]._owner}document.head.appendChild(t),window.alert=t.contentWindow.alert.bind(window),window.prompt=t.contentWindow.prompt.bind(window),t.remove(),a().stateNode.props.liveGameController.setVal({path:"c/"+a().stateNode.props.client.name+"/bg",val:e})}},{name:"Auto Answer",description:"Click the correct answer for you",run:function(){var e=y(),t=e.state.question||e.props.client.question;if("typing"!=e.state.question.qType){if("feedback"==e.state.stage||e.state.feedback)document.querySelector("[class*='feedback'], [id*='feedback']").firstChild.click();else{let a;for(a=0;a<t.answers.length;a++){let o=!1;for(let n=0;n<t.correctAnswers.length;n++)if(t.answers[a]==t.correctAnswers[n]){o=!0;break}if(o)break}document.querySelectorAll("[class*='answerContainer']")[a].click()}}else Object.values(document.querySelector("[class*='typingAnswerWrapper']"))[1].children._owner.stateNode.sendAnswer(t.answers[0])}},{name:"Highlight Answers",description:"Colors answers to be red or green highlighting the correct ones",run:function(){var e=y(),t=e.state.question||e.props.client.question;let a=0;for(;a<t.answers.length;){let o=!1;for(let n=0;n<t.correctAnswers.length;n++)if(t.answers[a]==t.correctAnswers[n]){o=!0;break}a++,document.querySelector("[class*='answersHolder'] :nth-child("+a+") > div").style.backgroundColor=o?"rgb(0, 207, 119)":"rgb(189, 15, 38)"}}},{name:"Spam Buy Blooks",description:"Opens a box an amount of times",inputs:[{name:"Box",type:"options",options:()=>Array.from(document.querySelectorAll("[class*='packsWrapper'] > div")).reduce((e,t)=>(t.querySelector("[class*='blookContainer'] > img")||e.push(t.querySelector("[class*='packImgContainer'] > img").alt),e),[])},{name:"Amount",type:"number"},{name:"Show Unlocks",type:"options",options:[{name:"Show Unlocks",value:!0},{name:"Don't Show Unlocks",value:!1}]}],run:async function(e,t,a){if(window.location.pathname.startsWith("/market")){var o=y(),n=Array.prototype.reduce.call(document.querySelectorAll("[class*='packsWrapper'] > div
"),(e,t)=>(t.querySelector("[class*='blookContainer'] > img
")||(e[t.querySelector("[class*='packImgContainer'] > img
").alt]=parseInt(t.querySelector("[class*='packBottom']").textContent)),e),{})[e=e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" ")];if(!n)return $("I couldn
't find that box!");if((n=Math.floor(o.state.tokens/n))<=0)return $("You do not have enough tokens!");var r=Math.min(n,t||0),i={},n=Date.now();for(let s=0;s<r;s++)await o.buyPack(!0,e),i[o.state.unlockedBlook]||=0,i[o.state.unlockedBlook]++,o.setState({canOpen:!0,currentPack:"",opening:a,doneOpening:a,openPack:a}),clearTimeout(o.canOpenTimeout);await new Promise(e=>setTimeout(e)),$(`(${Date.now()-n}ms) Results: `+Object.entries(i).map(([e,t])=>` ${e} `+t).join(` `))}else $("This can only be ran in the Market page.")}},{name:"Flood Game",description:"Floods a game with a number of fake accounts",inputs:[{name:"Name",type:"string"},{name:"Amount",type:"number"},{name:"Blook",type:"options",options:["Chick","Chicken","Cow","Goat","Horse","Pig","Sheep","Duck","Alpaca","Dog","Cat","Rabbit","Goldfish","Hamster","Turtle","Kitten","Puppy","Bear","Moose","Fox","Raccoon","Squirrel","Owl","Hedgehog","Deer","Wolf","Beaver","Tiger","Orangutan","Cockatoo","Parrot","Anaconda","Jaguar","Macaw","Toucan","Panther","Capuchin","Gorilla","Hippo","Rhino","Giraffe","Snowy Owl","Polar Bear","Arctic Fox","Baby Penguin","Penguin","Arctic Hare","Seal","Walrus","Witch","Wizard","Elf","Fairy","Slime Monster","Jester","Dragon","Queen","Unicorn","King","Two of Spades","Eat Me","Drink Me","Alice","Queen of Hearts","Dormouse","White Rabbit","Cheshire Cat","Caterpillar","Mad Hatter","King of Hearts","Toast","Cereal","Yogurt","Breakfast Combo","Orange Juice","Milk","Waffle","Pancakes","French Toast","Pizza","Earth","Meteor","Stars","Alien","Planet","UFO","Spaceship","Astronaut","Lil Bot","Lovely Bot","Angry Bot","Happy Bot","Watson","Buddy Bot","Brainy Bot","Mega Bot","Old Boot","Jellyfish","Clownfish","Frog","Crab","Pufferfish","Blobfish","Octopus","Narwhal","Dolphin","Baby Shark","Megalodon","Panda","Sloth","Tenrec","Flamingo","Zebra","Elephant","Lemur","Peacock","Chameleon","Lion","Amber","Dino Egg","Dino Fossil","Stegosaurus","Velociraptor","Brontosaurus","Triceratops","Tyrannosaurus Rex","Ice Bat","Ice Bug","Ice Elemental","Rock Monster","Dink","Donk","Bush Monster","Yeti","Dingo","Echidna","Koala","Kookaburra","Platypus","Joey","Kangaroo","Crocodile","Sugar Glider","Deckhand","Buccaneer","Swashbuckler","Treasure Map","Seagull","Jolly Pirate","Pirate Ship","Kraken","Captain Blackbeard","Snow Globe","Holiday Gift","Hot Chocolate","Holiday Wreath","Stocking","Gingerbread Man","Gingerbread House","Reindeer","Snowman","Santa Claus","Pumpkin","Swamp Monster","Frankenstein","Vampire","Zombie","Mummy","Caramel Apple","Candy Corn","Werewolf","Ghost","Rainbow Jellyfish","Blizzard Clownfish","Lovely Frog","Lucky Frog","Spring Frog","Poison Dart Frog","Lucky Hamster","Chocolate Rabbit","Spring Rabbit","Lemon Crab","Pirate Pufferfish","Donut Blobfish","Crimson Octopus","Rainbow Narwhal","Frost Wreath","Tropical Globe","New York Snow Globe","London Snow Globe","Japan Snow Globe","Egypt Snow Globe","Paris Snow Globe","Red Sweater Snowman","Blue Sweater Snowman","Elf Sweater Snowman","Santa Claws","Cookies Combo","Chilly Flamingo","Snowy Bush Monster","Nutcracker Koala","Sandwich","Ice Slime","Frozen Fossil","Ice Crab","Rainbow Panda","White Peacock","Tiger Zebra","Teal Platypus","Red Astronaut","Orange Astronaut","Yellow Astronaut","Lime Astronaut","Green Astronaut","Cyan Astronaut","Blue Astronaut","Pink Astronaut","Purple Astronaut","Brown Astronaut","Black Astronaut","Lovely Planet","Lovely Peacock","Haunted Pumpkin","Pumpkin Cookie","Ghost Cookie","Red Gummy Bear","Blue Gummy Bear","Green Gummy Bear","Chick Chicken","Chicken Chick","Raccoon Bandit","Owl Sheriff","Vampire Frog","Pumpkin King","Leprechaun","Anaconda Wizard","Spooky Pumpkin","Spooky Mummy","Agent Owl","Master Elf","Party Pig","Wise Owl","Spooky Ghost","Phantom King","Tim the Alien","Rainbow Astronaut","Hamsta Claus","Light Blue","Black","Red","Purple","Pink","Orange","Lime","Green","Teal","Tan","Maroon","Gray","Mint","Salmon","Burgandy","Baby Blue","Dust","Brown","Dull Blue","Yellow","Blue"].map(e=>({name:e,value:e}))},{name:"Banner",type:"options",options:Object.entries({Starter:"starter",Fire:"fire","Tech Chip":"techChip",Shamrocks:"shamrocks","Orange Ice Pop":"orangeIcePop",Slime:"slime",Sushi:"sushi","Falling Blocks":"fallingBlocks",Racetrack:"racetrack","Football Field":"footballField","Ice Cream Sandwich":"iceCreamSandwich","Winter Landscape":"winterLandscape",Leaves:"leaves","Music Class":"musicClass","Science Class":"scienceClass","Art Class":"artClass",Clockwork:"clockwork","Hockey Rink":"hockeyRink","Outer Space":"outerSpace","Soccer Field":"soccerField",Ice:"ice","Toaster Pastry":"toasterPastry","Fish Tank":"fishTank",Theater:"theater",Farm:"farm",Spooky:"spooky","Spooky Cat":"spookyCat","Spooky Window":"spookyWindow",Frankenstein:"frankenstein",Ghosts:"ghosts",Mummy:"mummy",Spiders:"spiders",Coffin:"coffin",Pumpkins:"pumpkins","Christmas Tree":"christmasTree",Chalkboard:"chalkboard",Balloons:"balloons",Skateboard:"skateboard",Sunset:"sunset",Tiger:"tiger","Pirate Map":"pirateMap",Pencil:"pencil","Road Sign":"roadSign","Corn Dog":"cornDog",Leaf:"leaf","Chili Pepper":"chiliPepper","Love Letter":"loveLetter",Gifts:"gifts","Winter Train":"winterTrain","Winter Drive":"winterDrive",Workbench:"workbench",Harvest:"harvest",Chocolate:"chocolate","Fall Picnic":"fallPicnic",Bookshelf:"bookshelf","Easter Pattern":"easterPattern",Carrot:"carrot","Easter Field":"easterField",Garden:"garden",Bakery:"bakery","Gummy Worm":"gummyWorm","Basketball Court":"basketballCourt","Flying Kite":"flyingKite","Hot Dog":"hotDog","Japanese Garden":"japaneseGarden",Sandwich:"sandwich",Ruler:"ruler","Ball Pit":"ballPit",Xylophone:"xylophone","Holiday Lights":"holidayLights","Ice Cream Truck":"iceCreamTruck","Holiday Gift Wrap":"holidayGiftWrap","Winter Sweater":"winterSweater","Holiday Ornaments":"holidayOrnaments",Watermelon:"watermelon",Baguette:"baguette",Rollerblades:"rollerblades",Surfboard:"surfboard",Cookout:"cookout",Comic:"comic",Crayon:"crayon",Lightning:"lightning",Baseball:"baseball","Shamrock Coins":"shamrockCoins","End Of The Rainbow":"endRainbow","Easter Field":"easterField",Marker:"marker",Pizza:"pizza",Marker:"marker",Pizza:"pizza",Leaf:"leaf","Alphabet Soup":"alphabetSoup"}).map(([e,t])=>({name:e,value:t}))}],run:async function(e,t,a,o){let n=document.createElement("iframe");function r(){return Object.values(document.querySelector("#app>div>div"))[1].children[0]._owner.stateNode}document.body.append(n),window.prompt=n.contentWindow.prompt.bind(window),window.alert=n.contentWindow.alert.bind(window),n.remove();var s={randomNames:!1};if(!r().props.liveGameController._liveApp){alert("You must be in a game to use the flooder!");return}var l=r().props.liveGameController._liveApp.firebase;async function c(e,t){let n=await fetch("https://fb.blooket.com/c/firebase/join",{body:JSON.stringify({id:e,name:t}),credentials:"include",method:"PUT"}).then(e=>e.json());if(n.success){let r=l.initializeApp({apiKey:"AIzaSyCA-cTOnX19f6LFnDVVsHXya3k6ByP_MnU",authDomain:"blooket-2020.firebaseapp.com",projectId:"blooket-2020",storageBucket:"blooket-2020.appspot.com",messagingSenderId:"741533559105",appId:"1:741533559105:web:b8cbb10e6123f2913519c0",measurementId:"G-S3H5NGN10Z",databaseURL:n.fbShardURL},t);await r.auth().signInWithCustomToken(n.fbToken);await r.database().ref(`${e}/c/${t}`).set({b:a,bg:o}),i.alerts[0].addLog(`Bot ${t} joined!`)}else alert("Connect error: "+n.msg)}async function p(){if(!r().props.liveGameController._liveApp){alert("You must be in a game for the flooder to work!");return}var a,o=r().props.liveGameController._liveGameCode,n=parseInt(t);if(!n){alert("You must use a valid number!");return}if(!s.randomNames)var i=e;for(var l=0;l<n;l++)await c(o,a=s.randomNames?d(15):i+Math.floor(4e3*Math.random()))}function d(e){for(var t="",a=0;a<e;a++)t+=String.fromCharCode(65+Math.floor(25*Math.random()));return t}p()}},{name:"Host Any Gamemode",description:"Change the selected gamemode on the host settings page",inputs:[{name:"Gamemode",type:"options",options:["Racing","Classic","Factory","Cafe","Defense2","Defense","Royale","Gold","Candy","Brawl","Hack","Pirate","Fish","Dino","Toy","Rush"]}],run:function(e){if("/host/settings"!=location.pathname)return $("Run this script on the host settings page");y().setState({settings:{type:e}})}},{name:"Change Blook Ingame",description:"Changes your blook",inputs:[{name:"Blook (case sensitive)",type:"string"}],run:function(e){var t=y().props;t.liveGameController.setVal({path:`c/${t.client.name}/b`,val:t.client.blook=e})}},{name:"Bypass Filter",description:"Bypasses the name filter",inputs:[{name:"Text",type:"text",placeholder:"Enter some text"}],run:function(e){var t,a,o;let n;a=function e(t){for(var a=t.split(""),o="",n=0;n<a.length;n++)o+="\xad"+a[n];return o}(t=e),n=document.createElement("iframe"),document.body.appendChild(n),window.alert=n.contentWindow.alert.bind(n.contentWindow),(o=document.createElement("textarea")).value=a,o.style.position="fixed",o.style.top=0,o.style.left=0,o.style.opacity=0,document.body.appendChild(o),o.select(),document.execCommand("copy"),alert("Bypassed text copied to clipboard!"),n.remove(),document.body.removeChild(o)}},{name:"Change Name Ingame",description:"Changes your name ingame",inputs:[{name:"New Name",type:"text"}],run:function(e){(async()=>{let t=e=>Object.values(document.querySelector("#app>div>div"))[1].children[0]._owner.stateNode,a=document.createElement("iframe");document.body.append(a);let o=a.contentWindow.alert.bind(window);async function n(e){let a=await fetch("https://fb.blooket.com/c/firebase/join",{body:JSON.stringify({id:t().props.client.hostId,name:e}),headers:{"Content-Type":"application/json"},method:"PUT",credentials:"include"}).then(e=>e.json());if(!a.success){o("Error: "+a.msg);return}return a.fbToken}a.remove();let r=t().props.client.name;t().props.client.name=e;let i=await t().props.liveGameController.getDatabaseVal(`c/${r}`);await t().props.liveGameController.removeVal(`c/${r}`);let s=await n(e);s&&(await t().props.liveGameController._liveApp.auth().signInWithCustomToken(s),t().props.liveGameController._liveApp.auth().onAuthStateChanged(a=>{a.uid.split(":")[1]===e&&t().props.liveGameController.setVal({path:`c/${e}`,val:i})}),t().render())})()}},{name:"Use Banner IDs",description:"Enter Banner ID to use Banner",inputs:[{name:"Banner ID",type:"text",placeholder:"Enter the banner ID"}],run:function(e){var t=document.createElement("iframe");function a(){return Object.values(document.querySelector("#app>div>div"))[1].children[0]._owner}document.head.appendChild(t),window.alert=t.contentWindow.alert.bind(window),window.prompt=t.contentWindow.prompt.bind(window),t.remove(),a().stateNode.props.liveGameController.setVal({path:"c/"+a().stateNode.props.client.name+"/bg",val:e})}},{name:"Get Daily Rewards",description:"Gets max daily tokens and xp",run:async function(){var e,t,a;window.location.href.includes("play.blooket.com")?(e=["60101da869e8c70013913b59","625db660c6842334835cb4c6","60268f8861bd520016eae038","611e6c804abdf900668699e3","60ba5ff6077eb600221b7145","642467af9b704783215c1f1b","605bd360e35779001bf57c5e","6234cc7add097ff1c9cff3bd","600b1491d42a140004d5215a","5db75fa3f1fa190017b61c0c","5fac96fe2ca0da00042b018f","600b14d8d42a140004d52165","5f88953cdb209e00046522c7","600b153ad42a140004d52172","5fe260e72a505b00040e2a11","5fe3d085a529560004cd3076","5f5fc017aee59500041a1456","608b0a5863c4f2001eed43f4","5fad491512c8620004918ace","5fc91a9b4ea2e200046bd49a","5c5d06a7deebc70017245da7","5ff767051b68750004a6fd21","5fdcacc85d465a0004b021b9","5fb7eea20bd44300045ba495"][Math.floor(24*Math.random())],t=(e,t)=>Math.floor(Math.random()*(t-e+1))+e,await fetch("https://play.blooket.com/api/playersessions/landings",{body:JSON.stringify({t:a=(await fetch("https://play.blooket.com/api/playersessions/solo",{body:JSON.stringify({gameMode:"Factory",questionSetId:e}),method:"POST",credentials:"include"}).then(e=>e.json()).catch(()=>$("There was an error creating a solo game."))).t}),method:"POST",credentials:"include"}).catch(()=>$("There was an error when landing.")),await fetch("https://play.blooket.com/api/playersessions/questions?t="+a,{credentials:"include"}),await fetch("https://play.blooket.com/api/gamequestionsets?gameId="+e,{credentials:"include"}),await fetch("https://play.blooket.com/api/users/factorystats",{body:JSON.stringify({t:a,place:1,cash:t(1e7,1e8),playersDefeated:0,correctAnswers:t(500,2e3),upgrades:t(250,750),blookUsed:y().props.user.data.blook.name,nameUsed:"You",mode:"Time-Solo"}),method:"PUT",credentials:"include"}).catch(()=>$("There was an error when spoofing stats.")),await fetch("https://play.blooket.com/api/users/add-rewards",{body:JSON.stringify({t:a,addedTokens:500,addedXp:300}),method:"PUT",credentials:"include"}).then(e=>e.json()).then(({dailyReward:e})=>$(`Added max tokens and xp, and got ${e} daily wheel tokens!`)).catch(()=>$("There was an error when adding rewards."))):($("This cheat only works on play.blooket.com, opening a new tab."),window.open("https://play.blooket.com/"))}},{name:"Use Any Blook",description:"Allows you to play as any blook",data:null,getBlooks(e,t){if(!this.data?.Black){e=e?"keys":"entries";let a=Object[e],o=this;Object[e]=function(t){return(t.Chick?(o.data=t,Object[e]=a):a).call(this,t)},t.render()}},run:function(){let e=y();var t=window.location.pathname.startsWith("/play/lobby");return!t&&window.location.pathname.startsWith("/blooks")||t?(this.getBlooks(t,e),t?e.setState({unlocks:Object.keys(this.data)}):void e.setState({blookData:Object.keys(this.data).reduce((t,a)=>(t[a]=e.state.blookData[a]||1,t),{}),allSets:Object.values(this.data).reduce((e,t)=>t.set&&e.includes(t.set)?e:e.concat(t.set),[])})):$("This only works in lobbies or the dashboard blooks page.")}},{name:"Remove all Taken Blooks",description:"Removes all taken blooks, allowing you to use any taken blook. Only works in lobby.",run:function(){let e=Object.values(document.querySelector("#app>div>div"))[1].children[0]._owner.stateNode;e.setState({takenBlooks:{includes:e=>!1}}),e.setState=function(t,a){!t?.takenBlooks&&e.updater.enqueueSetState(e,t,a,"setState")}}},{name:"Dynamic Player Count",description:"Updates the player count at the top of the screen in realtime as players join or leave.",run:function(){(async()=>{let e=Object.values(document.querySelector("#app>div>div"))[1].children[0]._owner.stateNode,t=await e.props.liveGameController.getDatabaseRef("");t.on("value",t=>{document.querySelector("div[class*='headerTextCenter
']").innerHTML=`Player Count | ${Object.keys(t.val()?.c)?.length} / ${e.props.client.plus?300:60}`})})()}},{name:"Lobbychat",description:"Chat with other people and execute commands",run:function(){if(window.run)return;function e(){return Object.values(document.querySelector("#app>div>div"))[1].children[0]._owner}window.run=!0;var t=0,a=!1;document.addEventListener("keydown",function(e){"`"===e.key&&(a=!a,o.style.display=a?"none":"block")});let o=document.createElement("div");o.className="chat-box",document.body.appendChild(o);let n=document.createElement("div");n.className="chat-header",n.textContent="Chat",o.appendChild(n);let r=document.createElement("div");r.className="chat-body",o.appendChild(r);let i=document.createElement("input");function s(e){let t=document.createElement("div");t.textContent=e,r.appendChild(t)}i.type="text",i.className="chat-input",i.placeholder="Type a message...",o.appendChild(i),o.style.position="fixed",o.style.bottom="20px",o.style.right="20px",o.style.width="300px",o.style.backgroundColor="#fff",o.style.border="1px solid #ccc",o.style.boxShadow="0px 0px 10px rgba(0, 0, 0, 0.2)",n.addEventListener("click",()=>{r.classList.toggle("open")}),i.addEventListener("keydown",function(a){13===a.keyCode&&(function a(o){var n,i,l,c,p,d,u,m=function e(t){if("/"!==t.charAt(0))return!1;var a=t.split(" "),o=a[0].replace("/","");return a.splice(0,1),{cmd:o,args:a}}(o);if(m)switch(m.cmd){case"cb":n=m.args.join(" "),(i=webpackJsonp.push([[],{1234(e,t,a){t.webpack=a}},[["1234"]]]).webpack("MDrD").a)[n=Object.keys(i).find(e=>n.toLocaleLowerCase()===e.toLocaleLowerCase())]?(s("Setting blook to "+n+"!"),e().stateNode.props.liveGameController.setVal({id:e().stateNode.props.client.hostId,path:"c/"+e().stateNode.props.client.name,val:{b:n}}),e().stateNode.props.client.blook=n):s("No blook with that name was found!");break;case"clear":r.innerHTML="";break;case"dumpstate":Object.keys(e().stateNode.state).map(t=>{var a=e().stateNode.state[t];if(null==a)return"N/A";Array.from(a)&&"object"==typeof a&&(a="[Array]"),s(t+":"+a)}).join(";");break;case"list":e().stateNode.props.liveGameController.getDatabaseVal("c").then(e=>{s("Current Players("+Object.keys(e).length+"): "+Object.keys(e).join(","))});break;case"tlog":window.logsv=!window.logsv,s("SetVal log set to "+(window.logsv?"Enabled":"Disabled"));break;case"setval":l=m.args,e().stateNode.props.liveGameController.setVal({path:"c/"+e().stateNode.props.client.name+"/"+l[0],val:l.slice(1,l.length).join(" ")});break;case"setstate":c=m.args,p={},c.forEach(e=>{var t=e.split(":");Number.isNaN(parseInt(t[1]))||parseInt(t[1]).toString()!==t[1]||(t[1]=parseInt(t[1])),p[t[0]]=t[1]}),e().stateNode.setState(p),s("Set Successful!");break;case"ahelp":s("Advanced Commands: setval(sets val logged by tlog ex /setval b Chicken), tlog(toggles setval log), dumpstate(dumps react state),setstate(sets react state /setstate crypto:5 crypto2:5 etc)");break;case"help":s("Available Commands: help(gives help),ahelp(advanced commands help), cb(changes blook /cb cow), list(lists players connected), dump(dumps all available info about a player, passwords, etc(/dump player)), clear(clears chat), code(gives game code), unlock(unlocks blook on lobby screen)");break;case"dump":!function t(a){e().stateNode.props.liveGameController.getDatabaseVal("c/"+a).then(e=>{null!=e?s("Dump: "+JSON.stringify(e)):s("Player not found!")})}(m.args.join(" "));break;case"unlock":d=m.args.join(" "),(u=webpackJsonp.push([[],{1234(e,t,a){t.webpack=a}},[["1234"]]]).webpack("MDrD").a)[d=Object.keys(u).find(e=>d.toLocaleLowerCase()===e.toLocaleLowerCase())]?(e().stateNode.state.unlocks.push(d),e().stateNode.forceUpdate()):s("No blook with that name was found!");break;case"code":s("Game Code: "+e().stateNode.props.client.hostId);break;default:s("Unrecognized chat command!")}else e().stateNode.props.liveGameController.setVal({id:e().stateNode.props.client.hostId,path:"c/"+e().stateNode.props.client.name+"/msg",val:{i:t,msg:o}}),t++}(a.srcElement.value),a.srcElement.value="")});var l=e().stateNode.props.liveGameController._liveApp.database()._delegate._repoInternal.server_.onDataUpdate_;function c(e){window.logsv&&s("Path: "+e.path.split("/").splice(2,2).join("/")+" Val: "+("object"==typeof e.val?JSON.stringify(e.val):e.val))}e().stateNode.props.liveGameController._liveApp.database()._delegate._repoInternal.server_.onDataUpdate_=function(e,t,a,o){var n,r;console.log(e,t,a,o),n=e,null!=(r=t)&&n.includes("/msg")&&r?.msg&&(console.log(r.msg),s(n.split("/")[2]+": "+r.msg)),l(e,t,a,o)},window.logsv=!1;var p=e().stateNode.props.liveGameController.setVal;e().stateNode.props.liveGameController.setVal=function(){c.apply(this,arguments),p.apply(this,arguments)},e().stateNode.props.liveGameController._liveApp.database().ref(`${e().stateNode.props.liveGameController._liveGameCode}`).on("value",e=>{}),s("Lobbychat successfully loaded!"),o.style.wordWrap="break-word"}},{name:"Pin Guesser",description:"Brute forces combinations for existing pins",run:function(){var e=0,t=0,a=document.querySelector("div[class*='titleText
']");function o(){return Object.values(function e(t=document.querySelector("body>div")){return Object.values(t)[1]?.children?.[0]?._owner.stateNode?t:e(t.querySelector(":scope>div"))}())[1].children[0]._owner.stateNode}!function n(){let r=Math.floor(9e6*Math.random())+1e6;fetch(`https://fb.blooket.com/c/firebase/id?id=${r}`,{method:"GET",credentials:"include"}).then(e=>e.json()).then(i=>{!0===i.success?(console.log("Game found:",r),a.innerHTML="Game Found!",o().setState({client:{hostId:r.toString()}})):(console.log("No game found for:",r),o().setState({client:{hostId:r.toString()}}),e++,a.innerHTML="Guesses: "+e,++t>15?(setTimeout(n,1e3),t=0):n())}).catch(e=>{alert("Error:"+e)})}()}},{name:"Crash Game",description:"Crashes the host's game
",run:function(){var e=Object.values(function e(t=document.querySelector("#app
")){return Object.values(t)[1]?.children?.[0]?._owner.stateNode?t:e(t.querySelector(":scope
>div
"))}())[1].children[0]._owner.stateNode;e.props.liveGameController.setVal({path:`c/${e.props.client.name}/b/toString`,val:"Crashed
"})}},{name:"Chat
",description:"Opens a chatroom
",run:function(){window.open("https
://organizations.minnit.chat/420306182754595/c/Lobby?embed&nickname=","_blank","width=500,height=500,resizable=yes,scrollbars=yes,status=yes")}},{name:"Every Answer Correct",description:"Sets every answer to be correct",run:function(){var e=y();for(let t=0;t<e.freeQuestions.length;t++)e.freeQuestions[t].correctAnswers=e.freeQuestions[t].answers,e.questions[t].correctAnswers=e.questions[t].answers,e.props.client.questions[t].correctAnswers=e.questions[t].answers;try{e.forceUpdate()}catch{}}},{name:"Subtle Highlight Answers",description:"Removes the shadow from correct answers",run:function(){var e=y(),t=e.state.question||e.props.client.question;let a=0;for(;a<t.answers.length;){let o=0,n=!1;for(;o<t.correctAnswers.length;){if(t.answers[a]==t.correctAnswers[o]){n=!0;break}o++}a++,n&&(document.querySelector("[class*='answersHolder'] :nth-child("+a+") > div").style.boxShadow="unset")}}},{name:"Remove Name Limit",description:"Sets the name limit to 120, which is the actual max name length limit",run:function(){document.querySelector('input[class*="nameInput"]').maxLength=120,$("Removed name length limit")}},{name:"Remove Random Name",description:"Allows you to put a custom name",run:function(){y().setState({isRandom:!1,client:{name:""}}),document.querySelector('[class*="nameInput"]')?.focus?.()}},{name:"Sell Duplicate Blooks",description:"Sell all duplicate blooks leaving you with 1 each",run:async function(){if(window.location.pathname.startsWith("/blooks")){if(f("Are you sure you want to sell your dupes? (Legendaries and rarer will not be sold)")){var e=y();let t=Date.now(),a="";for(let o in e.state.blookData)if(1<e.state.blookData[o]){if(e.setState({blook:o,numToSell:e.state.blookData[o]-1}),!["Uncommon","Rare","Epic"].includes(document.querySelector("[class*='highlightedRarity']").innerText.trim()))continue;a+=` ${o} ${e.state.blookData[o]-1} `,await e.sellBlook({preventDefault(){}},!0)}$(`(${Date.now()-t}ms) Results: `+a.trim())}}else $("This can only be ran in the Blooks page.")}}]},voyage:{name:"Pirate's Voyage",img:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj48c3ZnIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAzMDAgMzAwIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zOnNlcmlmPSJodHRwOi8vd3d3LnNlcmlmLmNvbS8iIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MjsiPjxnIGlkPSJCb2F0Ij48cGF0aCBkPSJNMTcwLjQsNTYuMDU0Yy02OC43ODgsMTAuMTc0IC0xMTUuOTcxLDU2LjkzOCAtMTQ1LjQxMSwxMzMuNzVsMTUuNDY5LDcuNzM0YzMwLjk2MiwtMjguMTc1IDc0LjcwNSwtMzcuNzg3IDEzMi4zMjIsLTI3LjI1bDAsLTE3LjYxMWMtMjUuNjI5LC0yNy45NTIgLTI2Ljk2NiwtNTYuNzcyIDAuNzE0LC04Ni42MjhsLTMuMDk0LC05Ljk5NVoiIHN0eWxlPSJmaWxsOiNmNmUwYmQ7Ii8+PHBhdGggZD0iTTE5OS42NzMsNjAuODEzYzMyLjc4NCw0Mi45ODIgNjUuODIyLDkwLjg4NyA5Ny4zMzcsMTM5LjU4MWwtNi42NjMsMGMtMTIuMDg1LC0zMS4xMTEgLTU3Ljg4MiwtMzkuNjk0IC05MS42MjYsLTI3LjI1YzIyLjUxNCwtMzQuNTc5IDE3Ljc5NiwtNzIuNjczIDAuOTUyLC0xMTIuMzMxWiIgc3R5bGU9ImZpbGw6I2Y2ZTBiZDsiLz48cGF0aCBkPSJNNjkuNDQ4LDE5Ny41MzhjMCwwIC01OS43MDcsLTE1LjI0MyAtNjguMzk4LC0xNy40NjJjLTAuMDc2LC0wLjAxOSAtMC4xNTQsMC4wMiAtMC4xODQsMC4wOTJjLTAuMDMsMC4wNzIgLTAuMDAyLDAuMTU1IDAuMDY1LDAuMTk1YzkuNjgyLDUuNzc1IDkxLjY0Nyw1NC42NTggOTEuNjQ3LDU0LjY1OGwtMjMuMTMsLTM3LjQ4M1oiIHN0eWxlPSJmaWxsOiM4ZDZlNDE7Ii8+PHBhdGggZD0iTTE2NC40NSw0Ny45MDNjMCwtNS4zNTMgNC4zNDYsLTkuNjk4IDkuNjk4LC05LjY5OGwxOS4zOTcsLTBjNS4zNTIsLTAgOS42OTgsNC4zNDUgOS42OTgsOS42OThsLTAsMTU2Ljk1M2MtMCw1LjM1MyAtNC4zNDYsOS42OTggLTkuNjk4LDkuNjk4bC0xOS4zOTcsMGMtNS4zNTIsMCAtOS42OTgsLTQuMzQ1IC05LjY5OCwtOS42OThsMCwtMTU2Ljk1M1oiIHN0eWxlPSJmaWxsOiM3ZjY4NDU7Ii8+PHBhdGggZD0iTTI2My45OTMsMjU2LjEwM2MyMi4xNzEsLTE0LjcxIDM2LjAwNywtMzUuNTE1IDM2LjAwNywtNTguNTY1bC0yMzAuNTUyLDBjMCwyMy43MTMgMTQuNjQzLDQ1LjA1IDM3Ljk0LDU5LjgxOWM5Ljg3NSwtMy43MjkgMjAuMDQxLC0xMS4zMzQgMzAuNDYzLC0yMi4zMzZjMzIuODExLDM1LjQ1NSA2NC4wNjksMzUuOTQzIDkzLjcwOCwwYzYuODM4LDkuNjc3IDE3LjczNiwxNi42NDYgMzIuNDM0LDIxLjA4MloiIHN0eWxlPSJmaWxsOiNiNjkyNWY7Ii8+PC9nPjwvc3ZnPg==",cheats:[{name:"Heist ESP",description:"Shows you what's under each chest during a heist",type:"toggle",enabled:!1,data:null,imgs:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(()=>{if("heist"==y().state.stage){null==this.imgs&&(this.imgs=Array.prototype.map.call(Array.prototype.slice.call(document.querySelector("[class*=prizesList]").children,1,4),e=>e.querySelector("img").src));let e=Object.values(document.querySelector("[class*=modal]"))[0].return.memoizedState.memoizedState;for(let t of document.querySelectorAll("[class*=boxContent] > div"))t.remove();let a=Object.values(document.querySelector("[class*=modal]"))[0].return.memoizedState.next.next.memoizedState;Array.prototype.forEach.call(document.querySelector("[class*=chestsWrapper]").children,(t,o)=>{let n=t.firstChild.firstChild;if(a.includes(o))return n.style.opacity="";n.style.opacity="0.5";let r=document.createElement("div");r.innerHTML="<img src='"+this.imgs[2-e[o]]+"' style='max-width: 75%; max-height: 75%'></img>",r.className="chestESP",r.style.position="absolute",r.style.inset="0",r.style.display="grid",r.style.placeItems="center",r.style.pointerEvents="none",t.onclick=()=>{r.remove(),n.style.opacity=""},t.firstChild.prepend(r)})}},50))}},{name:"Max Levels",description:"Maxes out all islands and your boat",run:function(){var e=y();e.setState({islandLevels:Array(e.state.islandLevels.length).fill(5)},e.updateBoatLevel)}},{name:"Set Doubloons",description:"Sets Doubloons",inputs:[{name:"Amount",type:"number"}],run:function(e){var t=y();t.setState({doubloons:e}),t.props.liveGameController.setVal({path:`c/${t.props.client.name}/d`,val:e})}},{name:"Start Heist",description:"Starts a heist on someone",inputs:[{name:"Player",type:"options",options(){let e=y();return e.props.liveGameController._liveApp?new Promise(t=>e.props.liveGameController.getDatabaseVal("c",e=>e&&t(Object.keys(e)))):[]}}],run:function(e){let t=y();t.props.liveGameController.getDatabaseVal("c",function(a){a?.[e]&&t.setState({stage:"heist",heistInfo:{name:e,blook:a[e].b},prizeAmount:Math.max(1e3,a[e].d||0)})})}},{name:"Swap Doubloons",description:"Swaps Doubloons with someone",inputs:[{name:"Player",type:"options",options(){let e=y();return e.props.liveGameController._liveApp?new Promise(t=>e.props.liveGameController.getDatabaseVal("c",e=>e&&t(Object.keys(e)))):[]}}],run:async function(e){let t=y();t.props.liveGameController.getDatabaseVal("c",function(a){a?.[e]&&(t.props.liveGameController.setVal({path:"c/"+t.props.client.name,val:{b:t.props.client.blook,d:a[e].d,tat:e+":"+(a[e].d-t.state.doubloons)}}),t.setState({doubloons:a[e].d}))})}},{name:"Take Doubloons",description:"Takes Doubloons from someone",inputs:[{name:"Player",type:"options",options(){let e=y();return e.props.liveGameController._liveApp?new Promise(t=>e.props.liveGameController.getDatabaseVal("c",e=>e&&t(Object.keys(e)))):[]}}],run:async function(e){let t=y();t.props.liveGameController.getDatabaseVal("c",function(a){a?.[e]&&(t.props.liveGameController.setVal({path:"c/"+t.props.client.name,val:{b:t.props.client.blook,d:t.state.doubloons+a[e].d,tat:e+":"+a[e].d}}),t.setState({doubloons:t.state.doubloons+a[e].d}))})}}]},brawl:{name:"Monster Brawl",img:"https://media.blooket.com/image/upload/v1655233787/Media/survivor/xp/Blue_xp_2.svg",cheats:[{name:"Double Enemy XP",description:"Doubles enemy XP drop value",run:function(){var e=y().game.current.config.sceneConfig.physics.world.colliders._active.filter(e=>e.callbackContext?.toString?.()?.includes?.("dmgCd"));for(let t=0;t<e.length;t++){var a=e[t].object2;let o=a.classType.prototype.start;a.classType.prototype.start=function(){o.apply(this,arguments),this.val*=2},a.children.entries.forEach(e=>e.val*=2)}}},{name:"Half Enemy Speed",description:"Makes enemies move 2x slower",run:function(){var e=y().game.current.config.sceneConfig.physics.world.colliders._active.filter(e=>e.callbackContext?.toString?.()?.includes?.("dmgCd"));for(let t=0;t<e.length;t++){var a=e[t].object2;let o=a.classType.prototype.start;a.classType.prototype.start=function(){o.apply(this,arguments),this.speed*=.5},a.children.entries.forEach(e=>e.speed*=.5)}}},{name:"Instant Kill",description:"Sets all enemies health to 1",run:function(){var e=y().game.current.config.sceneConfig.physics.world.colliders._active.filter(e=>e.callbackContext?.toString?.()?.includes?.("dmgCd"));for(let t=0;t<e.length;t++){var a=e[t].object2;let o=a.classType.prototype.start;a.classType.prototype.start=function(){o.apply(this,arguments),this.hp=1},a.children.entries.forEach(e=>e.hp=1)}}},{name:"Invincibility",description:"Makes you invincible",run:function(){for(let e of y().game.current.config.sceneConfig.physics.world.colliders._active.filter(e=>e.callbackContext?.toString().includes("invulnerableTime")||e.callbackContext?.toString().includes("dmgCd")))e.collideCallback=()=>{}}},{name:"Kill Enemies",description:"Kills all current enemies",run:function(){y().game.current.config.sceneConfig.physics.world.bodies.entries.forEach(e=>e?.gameObject?.receiveDamage?.(e.gameObject.hp,1))}},{name:"Magnet",description:"Pulls all xp towards you",run:function(){y().game.current.config.sceneConfig.physics.world.colliders._active.find(e=>e.collideCallback?.toString().includes("magnetTime")).collideCallback({active:!0},{active:!0,setActive(){},setVisible(){}})}},{name:"Max Current Abilities",description:"Maxes out all your current abilities",run:function(){let e=y();for(var[t,a]of Object.entries(e.state.abilities))for(let o=0;o<10-a;o++)e.game.current.config.sceneConfig.game.events.emit("level up",t,e.state.abilities[t]++);e.setState({level:e.game.current.config.sceneConfig.level=[1,3,5,10,15,25,35].sort((t,a)=>Math.abs(t-e.state.level)-Math.abs(a-e.state.level))[0]-1})}},{name:"Next Level",description:"Skips to the next level",run:function(){var e=y(),{object1:t,object2:a}=e.game.current.config.sceneConfig.physics.world.colliders._active.find(e=>e.collideCallback?.toString().includes('emit("xp'));a.get().spawn(t.x,t.y,(1===(a=e.state.level)?1:a<5?5:a<10?10:a<20?20:a<30?30:a<40?40:a<50?50:100)-e.xp)}},{name:"Remove Obstacles",description:"Removes all rocks and obstacles",run:function(){y().game.current.config.sceneConfig.physics.world.bodies.entries.forEach(e=>{try{e.gameObject.frame.texture.key.includes("obstacle")&&e.gameObject.destroy()}catch{}})}},{name:"Reset Health",description:"Resets health and gives invincibility for 3 seconds",run:function(){y().game.current.events._events.respawn.fn()}},{name:"Set XP",description:"Sets amount of XP",inputs:[{name:"XP",type:"number"}],run:function(e){var t=Object.values(document.querySelector("body div[id] > div > div"))[1].children[0]._owner.stateNode;t.setState({xp:e,totalXp:e}),t.xp=e,t.totalXp=e,t.props?.liveGameController.setVal({path:"c/".concat(t.props.client.name),val:{b:t.props.client.blook,xp:e}})}},{name:"Set Level",description:"Sets your level",inputs:[{name:"XP",type:"number"}],run:function(e){Object.values(document.querySelector("body div[id] > div > div"))[1].children[0]._owner.stateNode.setState({level:e})}}]},cafe:{name:"Caf\xe9",img:"https://i.ibb.co/t8pqdYL/hot-beverage-1.png",cheats:[{name:"Max Items",description:"Maxes out items in the shop (Only usable in the shop)",run:function(){var e;"/cafe/shop"!==window.location.pathname?$("This can only be run in the shop"):(e=y()).setState({items:Object.keys(e.state.items).reduce((e,t)=>(e[t]=5,e),{})})}},{name:"Remove Customers",description:"Skips the current customers (Not usable in the shop)",run:function(){let e=y();e.state.customers.forEach((t,a)=>window.setTimeout(()=>t.blook&&e.removeCustomer(a,!0),250*a))}},{name:"Reset Abilities",description:"Resets used abilities in shop (Only usable in the shop)",run:function(){var e;"/cafe/shop"!==window.location.pathname?$("This can only be run in the shop"):(e=y()).setState({abilities:Object.keys(e.state.abilities).reduce((e,t)=>(e[t]=5,e),{})})}},{name:"Set Cash",description:"Sets cafe cash",inputs:[{name:"Amount",type:"number"}],run:function(e){var t=y();t.setState({cafeCash:e}),t.props.liveGameController.setVal({path:`c/${t.props.client.name}/ca`,val:e})}},{name:"Spam Attack Player",description:"Attacks the player to make the game unplayable",inputs:[{name:"Player's Name",type:"text"}],type:"toggle",enabled:!1,data:null,run:function(e){if(this.enabled)this.enabled=!1,clearInterval(this.data),this.data=null;else{this.enabled=!0;var t=e+":inspect";this.data=setInterval(function e(){var a=Object.values(document.querySelector('body div[class*="_body"]'))[1].children[0]._owner;a&&a.stateNode&&a.stateNode.props&&a.stateNode.props.liveGameController&&a.stateNode.props.liveGameController.setVal({id:a.stateNode.props.client.hostId,path:"c/"+a.stateNode.props.client.name+"/tat",val:t})},50)}}},{name:"Attack Player",description:"Sends the player a health inspection",inputs:[{name:"Player's Name",type:"text"}],run:function(e){function t(){return Object.values(document.querySelector('body div[class*="_body"]'))[1].children[0]._owner}t().stateNode.props.liveGameController.setVal({id:t().stateNode.props.client.hostId,path:"c/"+t().stateNode.props.client.name+"/tat",val:e+":inspect"})}},{name:"Stock Food",description:"Stocks all food to 99 (Not usable in the shop)",run:function(){var e;"/cafe"!==window.location.pathname?$("This can't be run in the shop"):(e=y()).setState({foods:e.state.foods.map(e=>({...e,stock:99,level:5}))})}}]},crypto:{name:"Crypto Hack",img:"https://media.blooket.com/image/upload/v1661496293/Media/uiTest/CryptoIcon.svg",cheats:[{name:"Choice ESP",description:"Shows what each choice will give you",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(()=>{var e,t=document.querySelector("[class*=feedbackContainer]");t.children.length<=4&&((e=document.createElement("div")).style.color="white",e.style.fontFamily="Inconsolata,Helvetica,monospace,sans-serif",e.style.fontSize="2em",e.style.display="flex",e.style.justifyContent="center",e.style.marginTop="675px",e.innerText=y().state.choices[0].text,t.append(e))},50))}},{name:"Password ESP",description:"Highlights the correct password",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(()=>{var e=y().state;if("hack"==e.stage)for(let t of document.querySelector("div[class*=buttonContainer]").children)t.innerText!=e.correctPassword&&(t.style.outlineColor="rgba(255, 64, 64, 0.8)",t.style.backgroundColor="rgba(255, 64, 64, 0.8)",t.style.textShadow="0 0 1px #f33")},50))}},{name:"Always Triple",description:"Always get triple crypto",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(e=>y().setState(e),25,{choices:[{type:"mult",val:3,rate:.075,blook:"Brainy Bot",text:"Triple Crypto"}]}))}},{name:"Always Hack",description:"Always get hack",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(e=>y().setState(e),25,{choices:[{type:"hack",val:3,rate:.075,blook:"Mega Bot",text:"HACK"}]}))}},{name:"Crash Password",description:"Crashes other players when they attempt to hack you",type:"toggle",enabled:!1,data:null,run:function(){var e=Object.values(function e(t=document.querySelector("#app")){return Object.values(t)[1]?.children?.[0]?._owner.stateNode?t:e(t.querySelector(":scope>div"))}())[1].children[0]._owner.stateNode;if(this.enabled)this.enabled=!1,clearInterval(this.data),this.data=null,e.props.liveGameController.setVal({path:`c/${e.props.client.name}/p`,val:e.state?.password});else{this.enabled=!0;let t=()=>{e.props.liveGameController.setVal({path:`c/${e.props.client.name}/p/toString`,val:"crash"})};this.data=setInterval(t,25)}}},{name:"Auto Guess",description:"Automatically guess the correct password",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(()=>{var e=y().state;if("hack"==e.stage)for(let t of document.querySelector("div[class*=buttonContainer]").children)t.innerText==e.correctPassword&&t.click()},50))}},{name:"Remove Hack",description:"Removes an attacking hack",run:function(){y().setState({hack:""})}},{name:"Set Crypto",description:"Sets crypto",inputs:[{name:"Amount",type:"number"}],run:function(e){var t=y();t.setState({crypto:e,crypto2:e}),t.props.liveGameController.setVal({path:`c/${t.props.client.name}/cr`,val:e})}},{name:"Set Password",description:"Sets hacking password",inputs:[{name:"Custom Password",type:"string"}],run:function(e){var t=y();t.setState({password:e}),t.props.liveGameController.setVal({path:`c/${t.props.client.name}/p`,val:e})}},{name:"Set Screen Text",description:"Makes the whole screen filled with text",inputs:[{name:"Text",type:"text",placeholder:"Enter the text you want to display"}],run:function(e){let t=document.createElement("iframe");document.body.append(t),window.prompt=t.contentWindow.prompt.bind(window),t.remove();var a=Object.values(function e(t=document.querySelector("#app")){return Object.values(t)[1]?.children?.[0]?._owner.stateNode?t:e(t.querySelector(":scope>div"))}())[1].children[0]._owner.stateNode,o=[];for(let n=0;n<999;n++)o.push(e);a.props.liveGameController.setVal({path:`c/${a.props.client.name}/cr`,val:`9999999999999999999999999999999999999999999999${o.join(" ")}`})}},{name:"Steal Player's Crypto",description:"Steals all of someone's crypto",inputs:[{name:"Player",type:"options",options(){let e=y();return e.props.liveGameController._liveApp?new Promise(t=>e.props.liveGameController.getDatabaseVal("c",e=>e&&t(Object.keys(e)))):[]}}],run:function(e){let t=y();t.props.liveGameController.getDatabaseVal("c",a=>{let o;a&&(o=Object.entries(a).find(t=>t[0].toLowerCase()==e.toLowerCase()))&&(a=o[1].cr,t.setState({crypto:t.state.crypto+a,crypto2:t.state.crypto+a}),t.props.liveGameController.setVal({path:"c/"+t.props.client.name,val:{b:t.props.client.blook,p:t.state.password,cr:t.state.crypto+a,tat:o[0]+":"+a}}))})}}]},defense:{name:"Tower Defense",img:"https://media.blooket.com/image/upload/v1657235025/Media/survivor/Laser_Lvl1.svg",cheats:[{name:"Earthquake",description:"Shuffles around towers",run:function(){let e=y(),t=(e.setState({eventName:"Earthquake",event:{short:"e",color:"#805500",icon:"fas fa-mountain",desc:"All of your towers get mixed up",rate:.02},buyTowerName:"",buyTower:{}},()=>e.eventTimeout=setTimeout(()=>e.setState({event:{},eventName:""}),6e3)),e.tiles.forEach(e=>e.forEach((t,a)=>3==t&&(e[a]=0))),[]);for(let a=0;a<e.tiles.length;a++)for(let o=0;o<e.tiles[a].length;o++)0==e.tiles[a][o]&&t.push({x:o,y:a});t.sort(()=>Math.random()-Math.random()),e.towers.forEach(a=>{var{x:o,y:n}=t.pop();a.move(o,n,e.tileSize),e.tiles[n][o]=3})}},{name:"Max Tower Stats",description:"Makes all placed towers overpowered",run:function(){y().towers.forEach(e=>{e.range=100,e.fullCd=e.cd=0,e.damage=1e6})}},{name:"Remove Ducks",description:"Removes ducks",run:function(){let{ducks:e,tiles:t}=y();e.forEach(e=>t[e.y][e.x]=0),e.length=0}},{name:"Remove Enemies",description:"Removes all the enemies",run:function(){var e=y();e.enemies=e.futureEnemies=[]}},{name:"Remove Obstacles",description:"Lets you place towers anywhere",run:function(){var e=y();e.tiles=e.tiles.map(e=>e.fill(0))}},{name:"Set Damage",description:"Sets damage",inputs:[{name:"Damage",type:"number"}],run:function(e){y().dmg=e}},{name:"Set Round",description:"Sets the current round",inputs:[{name:"Round",type:"number"}],run:function(e){y().setState({round:e})}},{name:"Set Tokens",description:"Sets the amount of tokens you have",inputs:[{name:"Tokens",type:"number"}],run:function(e){y().setState({tokens:e})}}]},defense2:{name:"Tower Defense 2",img:"https://media.blooket.com/image/upload/v1593095354/Media/defense/missile.svg",style:{transform:"rotate(45deg)"},cheats:[{name:"Max Tower Stats",description:"Makes all placed towers overpowered",run:function(){y().state.towers.forEach(e=>{if(e.stats.dmg=1e6,e.stats.fireRate=50,e.stats.ghostDetect=!0,e.stats.maxTargets=1e6,e.stats.numProjectiles&&=100,e.stats.range=100,e.stats.auraBuffs)for(let t in e.stats.auraBuffs)e.stats.auraBuffs[t]*=100})}},{name:"Kill Enemies",description:"Kills all the enemies",run:function(){var e=y();e.game.current.config.sceneConfig.enemyQueue.length=0,e.game.current.config.sceneConfig.physics.world.bodies.entries.forEach(e=>e?.gameObject?.receiveDamage?.(e.gameObject.hp,1))}},{name:"Set Coins",description:"Sets coins",inputs:[{name:"Coins",type:"number"}],run:function(e){y().setState({coins:e})}},{name:"Set Health",description:"Sets the amount of health you have",inputs:[{name:"Health",type:"number"}],run:function(e){y().setState({health:e})}},{name:"Set Round",description:"Sets the current round",inputs:[{name:"Round",type:"number"}],run:function(e){y().setState({round:e})}}]},dinos:{name:"Deceptive Dinos",img:"https://i.ibb.co/JFq5j88/Screenshot-2024-03-26-7-30-21-PM-removebg-preview-1.png",style:{transform:"rotate(-22.5deg)"},cheats:[{name:"Auto Choose",description:"Automatically choose the best fossil when excavating",type:"toggle",enabled:!1,data:null,rand(e,t){for(var a=[];a.length<t;){var o=Math.random();let n=0,r=null;for(let i=0;i<e.length;i++)if((n+=e[i].rate)>=o){r=e[i];break}r&&!a.includes(r)&&a.push(r)}return a},run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(()=>{try{var e=y();if("excavate"===e.state.stage){e.state.choices.length||(e.state.choices=this.rand([{type:"fossil",val:10,rate:.1,blook:"Amber"},{type:"fossil",val:25,rate:.1,blook:"Dino Egg"},{type:"fossil",val:50,rate:.175,blook:"Dino Fossil"},{type:"fossil",val:75,rate:.175,blook:"Stegosaurus"},{type:"fossil",val:100,rate:.15,blook:"Velociraptor"},{type:"fossil",val:125,rate:.125,blook:"Brontosaurus"},{type:"fossil",val:250,rate:.075,blook:"Triceratops"},{type:"fossil",val:500,rate:.025,blook:"Tyrannosaurus Rex"},{type:"mult",val:1.5,rate:.05},{type:"mult",val:2,rate:.025}],3));let t=0,a=-1;for(let o=0;o<e.state.choices.length;o++){var{type:n,val:r}=e.state.choices[o],i=("fossil"==n?e.state.fossils+r*e.state.fossilMult:e.state.fossils*r)||0;i<=t&&"mult"!=n||(t=i,a=o+1)}document.querySelector('div[class*=rockRow] > div[role="button"]:nth-child('+a+")").click()}}catch{}},50))}},{name:"Rock ESP",description:"Shows what is under the rocks",type:"toggle",enabled:!1,data:null,run:(()=>{let e=["⁰","\xb9","\xb2","\xb3","⁴","⁵","⁶","⁷","⁸","⁹"],t=t=>{let a="";for(;0<t;)a=e[t% 10]+a,t=~~(t/10);return a};return function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(()=>{let e=y(),a=document.querySelector('[class*="rockButton"]').parentElement.children;Array.prototype.every.call(a,e=>e.querySelector("div"))||e.setState({choices:function(e,t){for(var a=[];a.length<3;){var o=Math.random();let n=0,r;for(let i=0;i<e.length;i++)if((n+=e[i].rate)>=o){r=e[i];break}r&&!a.includes(r)&&a.push(r)}return a}([{type:"fossil",val:10,rate:.1,blook:"Amber"},{type:"fossil",val:25,rate:.1,blook:"Dino Egg"},{type:"fossil",val:50,rate:.175,blook:"Dino Fossil"},{type:"fossil",val:75,rate:.175,blook:"Stegosaurus"},{type:"fossil",val:100,rate:.15,blook:"Velociraptor"},{type:"fossil",val:125,rate:.125,blook:"Brontosaurus"},{type:"fossil",val:250,rate:.075,blook:"Triceratops"},{type:"fossil",val:500,rate:.025,blook:"Tyrannosaurus Rex"},{type:"mult",val:1.5,rate:.05},{type:"mult",val:2,rate:.025}],3)},()=>{Array.prototype.forEach.call(a,(a,o)=>{var o=e.state.choices[o],n=(a.querySelector("div")&&a.querySelector("div").remove(),document.createElement("div"));n.style.color="white",n.style.fontFamily="Macondo",n.style.fontSize="1em",n.style.display="flex",n.style.justifyContent="center",n.style.transform="translateY(25px)",n.innerText="fossil"===o.type?`+${99999999<Math.round(o.val*e.state.fossilMult)?function(e){let a=e.toString();if(1e3<=e){var o=["","K","M","B","T"],n=Math.floor(Math.floor((Math.log(e)/Math.log(10)).toPrecision(14))/3);if(n<o.length){let r="";for(let i=3;1<=i&&!((r=parseFloat((0!=n?e/Math.pow(1e3,n):e).toPrecision(i)).toString()).replace(/[^a-zA-Z 0-9]+/g,"").length<=3);i--);Number(r)%1!=0&&(r=Number(r).toFixed(1)),a=r+o[n]}else{let s=e,l=0;for(;100<=s;)s=Math.floor(s/10),l+=1;a=s/10+" \xd7 10"+t(l+1)}}return a}(Math.round(o.val*e.state.fossilMult)):Math.round(o.val*e.state.fossilMult)} Fossils`:`x${o.val} Fossils Per Excavation`,a.append(n)})})},50))}})()},{name:"Set Fossils",description:"Sets the amount of fossils you have",inputs:[{name:"Fossils",type:"number"}],run:function(e){var t=y();t.setState({fossils:e}),t.props.liveGameController.setVal({path:`c/${t.props.client.name}/f`,val:e})}},{name:"Set Multiplier",description:"Sets fossil multiplier",inputs:[{name:"Multiplier",type:"number"}],run:function(e){y().setState({fossilMult:e})}},{name:"Stop Cheating",description:"Undoes cheating so that you can't be caught",run:function(){var e=y();e.setState({isCheating:!1}),e.props.liveGameController.setVal({path:`c/${e.props.client.name}/ic`,val:!1})}}]},doom:{name:"Tower of Doom",img:"https://media.blooket.com/image/upload/v1657235023/Media/survivor/cards-05.svg",cheats:[{name:"Fill Deck",description:"Fills your deck with every maxed out card and artifact (Only works on towers page)",run:function(){if("/tower/map"==window.location.pathname){var e=y();e.props.tower.artifacts="Medical Kit|Fury Relic|Survival Guide|Steel Socks|Piggy Bank|Lucky Feather|Coupon|Cheese|Tasty Egg|Training Weights|Mighty Shield|Toxic Waste|Lifeline Totem|Cursed Hourglass|Band-Aid|Elder Coins|Captain's Anchor|Chess Pieces|Pink Hippo|Anorak's Wizard Cap|Dave's Doggo|Anubis' Obelisk|Farm Tractor|Magic Seedling|Just A Bone|Cozy Igloo|King's Crown|Sacred Scroll".split("|"),e.props.tower.cards="Chick,\uD83C\uDF3D|Chicken,\uD83C\uDF3D|Cow,\uD83C\uDF3D|Goat,\uD83C\uDF3D|Horse,\uD83C\uDF3D|Pig,\uD83C\uDF3D|Sheep,\uD83C\uDF3D|Duck,\uD83C\uDF3D|Dog,\uD83C\uDF3D|Cat,\uD83D\uDC3E|Rabbit,\uD83D\uDC3E|Goldfish,\uD83D\uDC3E|Hamster,\uD83D\uDC3E|Turtle,\uD83D\uDC3E|Kitten,\uD83D\uDC3E|Puppy,\uD83D\uDC3E|Bear,\uD83C\uDF32|Moose,\uD83C\uDF32|Fox,\uD83C\uDF32|Raccoon,\uD83C\uDF32|Squirrel,\uD83C\uDF32|Owl,\uD83C\uDF32|Hedgehog,\uD83C\uDF32|Baby Penguin,❄️|Penguin,❄️|Arctic Fox,❄️|Snowy Owl,❄️|Polar Bear,❄️|Arctic Hare,❄️|Seal,❄️|Walrus,❄️|Tiger,\uD83C\uDF34|Panther,\uD83C\uDF34|Cockatoo,\uD83C\uDF34|Orangutan,\uD83C\uDF34|Anaconda,\uD83C\uDF34|Macaw,\uD83C\uDF34|Jaguar,\uD83C\uDF34|Capuchin,\uD83C\uDF34|Toucan,\uD83C\uDF34|Parrot,\uD83C\uDF34|Elf,⚔️|Witch,⚔️|Wizard,⚔️|Fairy,⚔️|Slime Monster,⚔️|Jester,⚔️|Dragon,⚔️|Unicorn,⚔️|Queen,⚔️|King,⚔️|Snow Globe,☃️|Holiday Gift,☃️|Hot Chocolate,☃️|Gingerbread Man,☃️|Gingerbread House,☃️|Holiday Wreath,☃️|Snowman,☃️|Santa Claus,☃️|Two of Spades,\uD83C\uDFF0|Eat Me,\uD83C\uDFF0|Drink Me,\uD83C\uDFF0|Alice,\uD83C\uDFF0|Queen of Hearts,\uD83C\uDFF0|Dormouse,\uD83C\uDFF0|White Rabbit,\uD83C\uDFF0|Cheshire Cat,\uD83C\uDFF0|Caterpillar,\uD83C\uDFF0|Mad Hatter,\uD83C\uDFF0|King of Hearts,\uD83C\uDFF0".split("|").map(e=>{var[e,t]=e.split(",");return{strength:20,charisma:20,wisdom:20,class:t,blook:e}});try{e.props.addTowerNode()}catch{}e.setState({showDeck:!1})}else $("You need to be on the map to run this cheat!")}},{name:"Max Cards",description:"Maxes out all the cards in your deck",run:function(){if("/tower/map"==window.location.pathname){var e=y();e.props.tower.cards.forEach(e=>{e.strength=20,e.charisma=20,e.wisdom=20});try{e.forceUpdate()}catch{}}else $("You need to be on the map to run this cheat!")}},{name:"Max Health",description:"Fills the player's health",run:function(){"/tower/battle"==window.location.pathname?y().setState({myHealth:100,myLife:100}):$("You need to be in battle to run this cheat!")}},{name:"Max Card Stats",description:"Maxes out player's current card (Only works on attribute select page)",run:function(){var e=y();"select"!==e.state.phase?$("You must be on the attribute selection page!"):e.setState({myCard:{...e.state.myCard,strength:20,charisma:20,wisdom:20}})}},{name:"Min Enemy Stats",description:"Makes the enemy card stats all 0 (Only works on attribute select page)",run:function(){var e=y();"select"!==e.state.phase?$("You must be on the attribute selection page!"):e.setState({enemyCard:{...e.state.enemyCard,strength:0,charisma:0,wisdom:0}})}},{name:"Set Coins",description:"Try's to set amount of tower coins you have",inputs:[{name:"Coins",type:"number"}],run:function(e){if("/tower/battle"==window.location.pathname)try{y().props.setTowerCoins(e)}catch{}else $("You need to be in battle to run this cheat!")}}]},factory:{name:"Factory",img:"https://i.ibb.co/VMrTd39/images-removebg-preview-1.png",cheats:[{name:"Choose Blook",description:"Gives you a blook",inputs:[{name:"Blook",type:"options",options:[{name:"Chick",color:"#ffcd05",class:"\uD83C\uDF3D",rarity:"Common",cash:[3,7,65,400,2500],time:[1,1,1,1,1],price:[300,3e3,3e4,2e5]},{name:"Chicken",color:"#ed1c24",class:"\uD83C\uDF3D",rarity:"Common",cash:[10,40,200,1400,1e4],time:[5,4,3,2,1],price:[570,4e3,5e4,8e5]},{name:"Cow",color:"#58595b",class:"\uD83C\uDF3D",rarity:"Common",cash:[25,75,1500,25e3,25e4],time:[15,10,10,10,5],price:[500,9500,16e4,4e6]},{name:"Duck",color:"#4ab96d",class:"\uD83C\uDF3D",rarity:"Common",cash:[4,24,200,3e3,4e4],time:[3,3,3,3,3],price:[450,4200,7e4,11e5]},{name:"Goat",color:"#c59a74",class:"\uD83C\uDF3D",rarity:"Common",cash:[5,28,200,1300,12e3],time:[3,3,2,2,2],price:[500,6400,45e3,5e5]},{name:"Horse",color:"#995b3c",class:"\uD83C\uDF3D",rarity:"Common",cash:[5,20,270,1800,15e3],time:[2,2,2,2,2],price:[550,8200,65e3,6e5]},{name:"Pig",color:"#f6a9cb",class:"\uD83C\uDF3D",rarity:"Common",cash:[20,50,1300,8e3,8e4],time:[7,7,7,7,5],price:[400,11e3,8e4,13e5]},{name:"Sheep",color:"#414042",class:"\uD83C\uDF3D",rarity:"Common",cash:[6,25,250,1500,11e3],time:[3,3,3,2,2],price:[500,5e3,5e4,43e4]},{name:"Cat",color:"#f49849",class:"\uD83D\uDC3E",rarity:"Common",cash:[5,18,170,1700,13e3],time:[2,2,2,2,2],price:[480,5500,6e4,5e5]},{name:"Dog",color:"#995b3c",class:"\uD83D\uDC3E",rarity:"Common",cash:[7,25,220,1900,9e3],time:[3,3,2,2,1],price:[460,6600,7e4,73e4]},{name:"Goldfish",color:"#f18221",class:"\uD83D\uDC3E",rarity:"Common",cash:[5,40,350,3500,35e3],time:[3,3,3,3,3],price:[750,7200,84e3,95e4]},{name:"Rabbit",color:"#e7bf9a",class:"\uD83D\uDC3E",rarity:"Common",cash:[3,18,185,800,7e3],time:[2,2,2,1,1],price:[500,5800,56e3,55e4]},{name:"Hamster",color:"#ce9176",class:"\uD83D\uDC3E",rarity:"Common",cash:[10,45,450,4500,45e3],time:[4,4,4,4,4],price:[650,6500,8e4,93e4]},{name:"Turtle",color:"#619a3c",class:"\uD83D\uDC3E",rarity:"Common",cash:[23,120,1400,15e3,17e4],time:[10,10,10,10,10],price:[700,8500,11e4,13e5]},{name:"Puppy",color:"#414042",class:"\uD83D\uDC3E",rarity:"Common",cash:[4,10,75,500,3e3],time:[1,1,1,1,1],price:[450,4e3,35e3,25e4]},{name:"Kitten",color:"#58595b",class:"\uD83D\uDC3E",rarity:"Common",cash:[4,8,60,400,2e3],time:[1,1,1,1,1],price:[350,3500,26e3,17e4]},{name:"Bear",color:"#995b3c",class:"\uD83C\uDF32",rarity:"Common",cash:[12,70,550,4500,1e5],time:[7,7,6,5,5],price:[550,5500,63e3,16e5]},{name:"Moose",color:"#995b3c",class:"\uD83C\uDF32",rarity:"Common",cash:[8,45,400,3500,26e3],time:[5,5,4,4,3],price:[520,6500,58e3,7e5]},{name:"Fox",color:"#f49849",class:"\uD83C\uDF32",rarity:"Common",cash:[7,15,80,550,3e3],time:[2,2,1,1,1],price:[400,4e3,36e3,24e4]},{name:"Raccoon",color:"#6d6e71",class:"\uD83C\uDF32",rarity:"Common",cash:[5,14,185,1900,19e3],time:[2,2,2,2,2],price:[400,5e3,71e3,8e5]},{name:"Squirrel",color:"#d25927",class:"\uD83C\uDF32",rarity:"Common",cash:[3,10,65,470,2600],time:[1,1,1,1,1],price:[420,3600,32e3,21e4]},{name:"Owl",color:"#594a42",class:"\uD83C\uDF32",rarity:"Common",cash:[4,17,155,1500,15e3],time:[2,2,2,2,2],price:[500,4800,55e3,58e4]},{name:"Hedgehog",color:"#3f312b",class:"\uD83C\uDF32",rarity:"Common",cash:[11,37,340,2200,3e4],time:[5,4,3,2,2],price:[540,7e3,77e3,12e5]},{name:"Seal",color:"#7ca1d5",class:"❄️",rarity:"Common",cash:[6,17,150,1200,13e3],time:[2,2,2,2,2],price:[480,4500,43e3,52e4]},{name:"Arctic Fox",color:"#7ca1d5",class:"❄️",rarity:"Common",cash:[5,18,180,850,8500],time:[2,2,2,1,1],price:[520,550,61e3,68e4]},{name:"Snowy Owl",color:"#feda3f",class:"❄️",rarity:"Common",cash:[5,20,190,1900,16e3],time:[3,3,2,2,2],price:[370,5300,76e3,62e4]},{name:"Arctic Hare",color:"#7ca1d5",class:"❄️",rarity:"Common",cash:[6,19,85,900,7e3],time:[2,2,1,1,1],price:[540,5200,66e3,55e4]},{name:"Penguin",color:"#fb8640",class:"❄️",rarity:"Common",cash:[4,21,310,3200,33e3],time:[3,3,3,3,3],price:[400,6500,76e3,87e4]},{name:"Baby Penguin",color:"#414042",class:"❄️",rarity:"Common",cash:[3,8,70,450,2700],time:[1,1,1,1,1],price:[420,3300,33e3,23e4]},{name:"Polar Bear",color:"#7ca1d5",class:"❄️",rarity:"Common",cash:[12,75,700,6500,85e3],time:[8,7,6,5,5],price:[630,7e3,91e3,14e5]},{name:"Walrus",color:"#7d4f33",class:"❄️",rarity:"Common",cash:[11,46,420,3700,51e3],time:[5,5,4,4,4],price:[550,6200,68e3,1e6]},{name:"Tiger",color:"#f18221",class:"\uD83C\uDF34",rarity:"Common",cash:[6,20,100,975,7500],time:[3,3,1,1,1],price:[390,6e3,7e4,61e4]},{name:"Jaguar",color:"#fbb040",class:"\uD83C\uDF34",rarity:"Common",cash:[8,28,230,1600,17e3],time:[3,3,2,2,2],price:[390,6e3,7e4,61e4]},{name:"Toucan",color:"#ffca34",class:"\uD83C\uDF34",rarity:"Common",cash:[9,20,175,625,3800],time:[2,2,2,1,1],price:[520,4800,42e3,3e5]},{name:"Cockatoo",color:"#7ca1d5",class:"\uD83C\uDF34",rarity:"Common",cash:[6,35,160,1700,18e3],time:[4,4,2,2,2],price:[500,5e3,63e3,7e5]},{name:"Macaw",color:"#00aeef",class:"\uD83C\uDF34",rarity:"Common",cash:[3,8,85,850,8500],time:[1,1,1,1,1],price:[480,5400,62e3,63e4]},{name:"Parrot",color:"#ed1c24",class:"\uD83C\uDF34",rarity:"Common",cash:[3,9,90,900,9e3],time:[1,1,1,1,1],price:[540,5700,65e3,69e4]},{name:"Panther",color:"#2f2c38",class:"\uD83C\uDF34",rarity:"Common",cash:[12,28,215,2100,21e3],time:[5,3,2,2,2],price:[530,6500,76e3,87e4]},{name:"Anaconda",color:"#8a9143",class:"\uD83C\uDF34",rarity:"Common",cash:[3,15,85,1500,7600],time:[1,2,1,2,1],price:[410,5100,58e3,59e4]},{name:"Orangutan",color:"#bc6234",class:"\uD83C\uDF34",rarity:"Common",cash:[13,52,570,4300,7e4],time:[5,5,5,4,4],price:[600,7e3,8e4,14e5]},{name:"Capuchin",color:"#e0b0a6",class:"\uD83C\uDF34",rarity:"Common",cash:[4,14,160,780,8200],time:[2,2,2,1,1],price:[390,4700,57e3,68e4]},{name:"Elf",color:"#a7d054",class:"⚔️",rarity:"Uncommon",cash:[5e3,15e3,15e4,15e5,1e7],time:[1,1,1,1,1],price:[8e5,9e6,11e7,8e8]},{name:"Witch",color:"#4ab96d",class:"⚔️",rarity:"Uncommon",cash:[18e3,6e4,4e4,4e6,35e6],time:[3,3,2,2,2],price:[11e5,12e6,15e7,14e8]},{name:"Wizard",color:"#5a459c",class:"⚔️",rarity:"Uncommon",cash:[19500,65e3,44e4,46e5,4e6],time:[3,3,2,2,2],price:[13e5,135e5,16e7,16e8]},{name:"Fairy",color:"#df6d9c",class:"⚔️",rarity:"Uncommon",cash:[18500,6e4,62e4,44e5,38e6],time:[3,3,3,2,2],price:[12e5,125e5,15e6,15e8]},{name:"Slime Monster",color:"#2fa04a",class:"⚔️",rarity:"Uncommon",cash:[35e3,14e4,1e6,11e6,11e7],time:[5,5,4,4,4],price:[16e5,15e6,2e8,23e8]},{name:"Jester",color:"#be1e2d",class:"⚔️",rarity:"Rare",cash:[25e3,1e5,68e4,65e5,32e6],time:[3,3,2,2,1],price:[2e6,21e6,23e7,26e8]},{name:"Dragon",color:"#2fa04a",class:"⚔️",rarity:"Rare",cash:[36e3,15e4,15e5,15e6,15e7],time:[4,4,4,4,4],price:[23e5,24e6,27e7,3e9]},{name:"Unicorn",color:"#f6afce",class:"⚔️",rarity:"Epic",cash:[24e3,15e4,14e5,7e6,75e6],time:[2,2,2,1,1],price:[45e5,45e6,55e7,65e8]},{name:"Queen",color:"#9e1f63",class:"⚔️",rarity:"Rare",cash:[24e3,95e3,95e4,97e5,95e6],time:[3,3,3,3,3],price:[19e5,2e7,23e7,25e8]},{name:"King",color:"#ee2640",class:"⚔️",rarity:"Legendary",cash:[75e3,4e5,6e6,9e7,125e7],time:[5,5,5,5,5],price:[6e6,95e6,16e8,25e9]},{name:"Two of Spades",color:"#414042",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[4500,14e3,14e4,14e5,9e6],time:[1,1,1,1,1],price:[77e4,83e5,98e6,71e7]},{name:"Eat Me",color:"#d58c55",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[13e3,45e3,45e4,45e5,5e7],time:[2,2,2,2,2],price:[13e5,14e6,16e7,2e9]},{name:"Drink Me",color:"#dd7399",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[12e3,4e4,4e5,4e6,45e6],time:[2,2,2,2,2],price:[12e5,12e6,14e7,18e8]},{name:"Alice",color:"#4cc9f5",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[13e3,42e3,21e4,21e5,23e6],time:[2,2,1,1,1],price:[12e5,13e6,15e7,19e8]},{name:"Queen of Hearts",color:"#d62027",class:"\uD83C\uDFF0",rarity:"Uncommon",cash:[23e3,87e3,62e4,75e5,9e7],time:[4,4,3,3,3],price:[13e5,13e6,18e7,24e8]},{name:"Dormouse",color:"#89d6f8",class:"\uD83C\uDFF0",rarity:"Rare",cash:[17e3,68e3,7e5,35e5,35e6],time:[2,2,1,1,1],price:[2e6,22e6,25e7,28e8]},{name:"White Rabbit",color:"#ffcd05",class:"\uD83C\uDFF0",rarity:"Rare",cash:[26e3,105e3,11e6,77e5,72e6],time:[3,3,3,2,2],price:[2e6,23e6,28e7,29e8]},{name:"Cheshire Cat",color:"#dd7399",class:"\uD83C\uDFF0",rarity:"Rare",cash:[32e3,1e5,9e5,9e6,6e7],time:[4,3,3,3,2],price:[18e5,19e6,22e7,24e8]},{name:"Caterpillar",color:"#00c0f3",class:"\uD83C\uDFF0",rarity:"Epic",cash:[1e4,7e4,65e4,75e5,85e6],time:[1,1,1,1,1],price:[42e5,42e6,54e7,69e8]},{name:"Mad Hatter",color:"#914f93",class:"\uD83C\uDFF0",rarity:"Epic",cash:[38e3,25e4,15e5,14e6,8e7],time:[3,3,2,2,1],price:[48e5,48e6,52e7,66e8]},{name:"King of Hearts",color:"#c62127",class:"\uD83C\uDFF0",rarity:"Legendary",cash:[8e4,42e4,68e5,1e8,15e8],time:[5,5,5,5,5],price:[7e6,11e7,18e8,3e10]},{name:"Earth",color:"#416eb5",class:"\uD83D\uDE80",rarity:"Uncommon",cash:[15e3,45e3,6e5,65e5,65e6],time:[3,3,3,3,3],price:[1e6,11e6,15e7,17e8]},{name:"Meteor",color:"#c68c3c",class:"\uD83D\uDE80",rarity:"Uncommon",cash:[23e3,65e3,7e5,45e5,2e7],time:[5,4,3,2,1],price:[95e4,13e6,16e7,16e8]},{name:"Stars",color:"#19184d",class:"\uD83D\uDE80",rarity:"Uncommon",cash:[1e4,4e4,2e5,2e6,18e6],time:[2,2,1,1,1],price:[14e5,14e6,15e7,15e8]},{name:"Alien",color:"#8dc63f",class:"\uD83D\uDE80",rarity:"Uncommon",cash:[3e4,1e5,1e6,11e6,85e6],time:[4,4,4,4,4],price:[15e5,17e6,19e7,17e8]},{name:"Planet",color:"#9dc6ea",class:"\uD83D\uDE80",rarity:"Rare",cash:[25e3,1e5,9e5,9e6,9e7],time:[3,3,3,3,3],price:[2e6,21e6,21e7,24e8]},{name:"UFO",color:"#a15095",class:"\uD83D\uDE80",rarity:"Rare",cash:[17e3,7e4,7e5,7e6,7e7],time:[2,2,2,2,2],price:[21e5,23e6,25e7,28e8]},{name:"Spaceship",color:"#ffcb29",class:"\uD83D\uDE80",rarity:"Epic",cash:[6e4,32e4,21e5,15e6,85e6],time:[5,4,3,2,1],price:[48e5,46e6,54e7,68e8]},{name:"Astronaut",color:"#9bd4ee",class:"\uD83D\uDE80",rarity:"Legendary",cash:[45e3,26e4,25e5,38e6,55e7],time:[3,3,2,2,2],price:[65e5,1e8,17e8,27e9]},{name:"Lil Bot",color:"#3e564a",class:"\uD83E\uDD16",rarity:"Uncommon",cash:[4e3,12e3,18e4,19e5,25e6],time:[1,1,1,1,1],price:[73e4,12e6,13e7,19e8]},{name:"Lovely Bot",color:"#f179af",class:"\uD83E\uDD16",rarity:"Uncommon",cash:[16e3,65e3,65e4,48e5,42e6],time:[3,3,3,2,2],price:[13e5,14e6,17e7,16e8]},{name:"Angry Bot",color:"#f1613a",class:"\uD83E\uDD16",rarity:"Uncommon",cash:[22e3,85e3,8e5,62e5,65e6],time:[4,4,4,3,3],price:[12e5,13e6,15e7,17e8]},{name:"Happy Bot",color:"#51ba6b",class:"\uD83E\uDD16",rarity:"Uncommon",cash:[11e3,45e3,5e5,25e5,3e7],time:[2,2,2,1,1],price:[14e5,15e6,18e7,24e8]},{name:"Watson",color:"#d69b5a",class:"\uD83E\uDD16",rarity:"Rare",cash:[24e3,1e5,1e6,1e7,1e8],time:[3,3,3,3,3],price:[2e6,22e6,24e7,26e8]},{name:"Buddy Bot",color:"#9dc6ea",class:"\uD83E\uDD16",rarity:"Rare",cash:[22e3,95e3,65e4,65e5,65e6],time:[3,3,2,2,2],price:[19e5,21e6,23e7,25e8]},{name:"Brainy Bot",color:"#9ecf7a",class:"\uD83E\uDD16",rarity:"Epic",cash:[5e4,25e4,21e5,21e6,17e7],time:[4,3,3,3,2],price:[5e6,46e6,5e8,67e8]},{name:"Mega Bot",color:"#d71f27",class:"\uD83E\uDD16",rarity:"Legendary",cash:[8e4,43e4,42e5,62e6,1e9],time:[5,5,3,3,3],price:[7e6,12e7,19e8,35e9]}].map(e=>({name:e.name,value:JSON.stringify(e)}))}],run:function(e){var t=y();10<=t.state.blooks.length&&$("Choose a blook to replace"),t.waiting=!1,t.chooseBlook(JSON.parse(e))}},{name:"Free Upgrades",description:"Sets upgrade prices to 0 for all current blooks",run:function(){let e=[0,0,0,0];var t=y();t.setState({blooks:t.state.blooks.map(t=>(t.price=e,t))})}},{name:"Max Blooks",description:"Maxes out all your blooks' levels",run:function(){y().state.blooks.forEach(e=>e.level=4)}},{name:"Remove Glitches",description:"Removes all enemy glitches",run:function(){var e=y();e.setState({bits:0,ads:[],hazards:[],color:"",lol:!1,joke:!1,slow:!1,dance:!1,glitch:"",glitcherName:"",glitcherBlook:""}),clearTimeout(e.adTimeout),clearInterval(e.hazardInterval),clearTimeout(e.nightTimeout),clearTimeout(e.glitchTimeout),clearTimeout(e.lolTimeout),clearTimeout(e.jokeTimeout),clearTimeout(e.slowTimeout),clearTimeout(e.danceTimeout),clearTimeout(e.nameTimeout)}},{name:"Send Glitch",description:"Sends a glitch to everyone else playing",inputs:[{name:"Glitch",type:"options",options:Object.entries({lb:"Lunch Break",as:"Ad Spam",e37:"Error 37",nt:"Night Time",lo:"#LOL",j:"Jokester",sm:"Slow Mo",dp:"Dance Party",v:"Vortex",r:"Reverse",f:"Flip",m:"Micro"}).map(([e,t])=>({name:t,value:e}))}],run:function(e){var t=y();t.safe=!0,t.props.liveGameController.setVal({path:`c/${t.props.client.name}/tat`,val:e})}},{name:"Set All MegaBot",description:"Sets all your blooks to maxed out Mega Bots",run:function(){y().setState({blooks:Array.from({length:10},()=>({name:"Mega Bot",color:"#d71f27",class:"\uD83E\uDD16",rarity:"Legendary",cash:[8e4,43e4,42e5,62e6,1e9],time:[5,5,3,3,3],price:[7e6,12e7,19e8,35e9],active:!1,level:4,bonus:5.5}))})}},{name:"Set Cash",description:"Sets amount of cash you have",inputs:[{name:"Cash",type:"number"}],run:function(e){y().setState({cash:e})}}]},fishing:{name:"Fishing Frenzy",img:"https://media.blooket.com/image/upload/v1661496295/Media/uiTest/Fish_Weight.svg",cheats:[{name:"Remove Distractions",description:"Removes distractions",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(()=>{y().setState({party:""})},50))}},{name:"Frenzy",description:"Sets everyone to frenzy mode",run:function(){var e=y();e.props.liveGameController.setVal({path:"c/"+e.props.client.name,val:{b:e.props.client.blook,w:e.state.weight,f:"Frenzy",s:!0}})}},{name:"Send Distraction",description:"Sends a distraction to everyone",inputs:[{name:"Distraction",type:"options",options:["Crab","Jellyfish","Frog","Pufferfish","Octopus","Narwhal","Megalodon","Blobfish","Baby Shark"]}],run:function(e){var t=y();t.safe=!0,t.props.liveGameController.setVal({path:"c/"+t.props.client.name,val:{b:t.props.client.blook,w:t.state.weight,f:e,s:!0}})}},{name:"Set Lure",description:"Sets fishing lure (range 1 - 5)",inputs:[{name:"Lure (1 - 5)",type:"number",min:1,max:5}],run:function(e){y().setState({lure:Math.max(Math.min(e-1,4),0)})}},{name:"Set Weight",description:"Sets weight",inputs:[{name:"Weight",type:"number"}],run:function(e){var t=y();t.setState({weight:e,weight2:e}),t.props.liveGameController.setVal({path:"c/"+t.props.client.name,val:{b:t.props.client.blook,w:e,f:["Crab","Jellyfish","Frog","Pufferfish","Octopus","Narwhal","Megalodon","Blobfish","Baby Shark"][Math.floor(9*Math.random())]}})}},{name:"Set Next Fish",description:"Sets the next fish to catch",inputs:[{name:"Fish",type:"options",options:["Old Boot","Waffle","Two of Spades","Jellyfish","Clownfish","Goldfish","Frog","Blizzard Clownfish","Turtle","Cat","Lovely Frog","Lucky Frog","Poison Dart Frog","Seal","Walrus","Fairy","Crab","Lemon Crab","Pufferfish","Blobfish","Rainbow Jellyfish","Octopus","Pirate Pufferfish","Donut Blobfish","Crimson Octopus","Narwhal","Baby Shark","Megalodon","Alien","Rainbow Narwhal","UFO","Santa Claus","Swamp Monster","Red Astronaut","Spooky Pumpkin","Dragon","Tim the Alien"]}],run:function(e){function t(){return Object.values(document.querySelector("#app > div > div"))[1].children[0]._owner}var a={"Old Boot":{rarity:"Trash",minWeight:1,maxWeight:10,tiers:["F","D","C"]},Waffle:{rarity:"Trash",minWeight:1,maxWeight:10,tiers:["F","D","C"]},"Two of Spades":{rarity:"Trash",minWeight:1,maxWeight:10,tiers:["F","D","C"]},Jellyfish:{rarity:"Easy One",minWeight:10,maxWeight:25,tiers:["D","C","B"]},Clownfish:{rarity:"Easy One",minWeight:20,maxWeight:45,tiers:["D","C","B"]},Goldfish:{rarity:"Easy One",minWeight:30,maxWeight:65,tiers:["D","C","B"]},Frog:{rarity:"Easy One",minWeight:50,maxWeight:100,tiers:["D","C","B"]},"Blizzard Clownfish":{rarity:"Great Catch",minWeight:75,maxWeight:125,tiers:["D","C","B"]},Turtle:{rarity:"Great Catch",minWeight:100,maxWeight:150,tiers:["D","C","B","A"]},Cat:{rarity:"Great Catch",minWeight:100,maxWeight:200,tiers:["D","C","B","A"]},"Lovely Frog":{rarity:"Great Catch",minWeight:150,maxWeight:350,tiers:["D","C","B","A"]},"Lucky Frog":{rarity:"Great Catch",minWeight:200,maxWeight:400,tiers:["D","C","B","A"]},"Poison Dart Frog":{rarity:"Great Catch",minWeight:250,maxWeight:750,tiers:["D","C","B","A"]},Seal:{rarity:"Rare Find",minWeight:500,maxWeight:1e3,tiers:["D","C","B","A"]},Walrus:{rarity:"Rare Find",minWeight:700,maxWeight:2200,tiers:["D","C","B","A"]},Fairy:{rarity:"Rare Find",minWeight:1500,maxWeight:2500,tiers:["D","C","B","A"]},Crab:{rarity:"Rare Find",minWeight:1e3,maxWeight:3e3,tiers:["D","C","B","A"]},"Lemon Crab":{rarity:"Rare Find",minWeight:2e3,maxWeight:5e3,tiers:["C","B","A"]},Pufferfish:{rarity:"Rare Find",minWeight:2e3,maxWeight:4e3,tiers:["D","C","B","A"]},Blobfish:{rarity:"Rare Find",minWeight:3e3,maxWeight:5e3,tiers:["D","C","B","A"]},"Rainbow Jellyfish":{rarity:"Epic Grab",minWeight:7e3,maxWeight:1e4,tiers:["C","B","A"]},Octopus:{rarity:"Epic Grab",minWeight:1e4,maxWeight:15e3,tiers:["C","B","A"]},"Pirate Pufferfish":{rarity:"Epic Grab",minWeight:12e3,maxWeight:2e4,tiers:["C","B","A"]},"Donut Blobfish":{rarity:"Epic Grab",minWeight:13e3,maxWeight:25e3,tiers:["C","B","A"]},"Crimson Octopus":{rarity:"Epic Grab",minWeight:15e3,maxWeight:3e4,tiers:["B","A"]},Narwhal:{rarity:"Catch of the Day",minWeight:25e3,maxWeight:5e4,tiers:["B","A","S"]},"Baby Shark":{rarity:"Catch of the Day",minWeight:5e4,maxWeight:1e5,tiers:["B","A","S"]},Megalodon:{rarity:"Catch of the Day",minWeight:25e4,maxWeight:5e5,tiers:["B","A","S"]},Alien:{rarity:"Angler's Legend",minWeight:5e5,maxWeight:7e5,tiers:["A","S"]},"Rainbow Narwhal":{rarity:"Angler's Legend",minWeight:75e4,maxWeight:1e6,tiers:["A","S","S+"]},UFO:{rarity:"Angler's Legend",minWeight:1e6,maxWeight:2e6,tiers:["A","S","S+"]},"Santa Claus":{rarity:"Angler's Legend",minWeight:1e6,maxWeight:2e6,tiers:["A","S","S+"]},"Swamp Monster":{rarity:"Angler's Legend",minWeight:1e6,maxWeight:2e6,tiers:["A","S","S+"]},"Red Astronaut":{rarity:"Angler's Legend",minWeight:1e6,maxWeight:2e6,tiers:["A","S","S+"]},"Spooky Pumpkin":{rarity:"Angler's Legend",minWeight:1e6,maxWeight:2e6,tiers:["A","S","S+"]},Dragon:{rarity:"Angler's Legend",minWeight:1e6,maxWeight:2e6,tiers:["A","S","S+"]},"Tim the Alien":{rarity:"Angler's Legend",minWeight:15e5,maxWeight:25e5,tiers:["A","S","S+"]}},o=["Crab","Jellyfish","Frog","Pufferfish","Octopus","Narwhal","Megalodon","Blobfish","Baby Shark"];if(!window.functionSet){var n=t().stateNode.answerNext;t().stateNode.answerNext=function(){if(t().stateNode.state.hackFish){var r,i,s;t().stateNode.setState({stage:"caught",isCast:!1,fish:{name:r=e,rarity:a[r].rarity,weight:(i=a[r].minWeight,Math.floor(Math.random()*((s=a[r].maxWeight)-i)+i)),tier:a[r].tiers[Math.floor(Math.random()*a[r].tiers.length)],isSpecial:o.includes(r)&&8>Math.floor(100*Math.random())},claimReady:!1}),setTimeout(function(){t().stateNode.setState({claimReady:!0})},1600),t().stateNode.state.hackFish=null}else n.apply(this,arguments)}}window.functionSet=!0,function e(o){if(Object.keys(a).includes(o))t().stateNode.state.hackFish=o;else{alert("That fish does not exist!");return}}(e)}}]},flappy:{name:"Flappy Blook",img:"https://media.blooket.com/image/upload/v1645222006/Blooks/yellowBird.svg",cheats:[{name:"Toggle Ghost",description:"Lets you go through the pipes",type:"toggle",enabled:!1,run:function(){for(let e of(this.enabled=!this.enabled,Object.values(document.querySelector("#phaser-bouncy"))[0].return.updateQueue.lastEffect.deps[0].current.config.sceneConfig.physics.world.bodies.entries))if(e.gameObject.frame.texture.key.startsWith("blook")){e.checkCollision.none=this.enabled,e.gameObject.setAlpha(this.enabled?.5:1);break}}},{name:"Set Score",description:"Sets flappy blook score",inputs:[{name:"Score",type:"number"}],run:function(e){Object.values(document.querySelector("#phaser-bouncy"))[0].return.updateQueue.lastEffect.deps[1](e||0)}}]},gold:{name:"Gold Quest",img:"https://media.blooket.com/image/upload/v1661496292/Media/uiTest/Gold.svg",cheats:[{name:"Always Triple",description:"Always get triple gold",type:"toggle",enabled:!1,data:{type:"multiply",val:3,text:"Triple Gold!",blook:"Unicorn"},run:function(){let e=y();e._choosePrize||=e.choosePrize,this.enabled?(this.enabled=!1,e._choosePrize&&(e.choosePrize=e._choosePrize)):(this.enabled=!0,e.choosePrize=function(t){e.state.choices[t]=this.data,e._choosePrize(t)})}},{name:"Auto Choose",description:"Automatically picks the option that would give you the most gold",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(async()=>{let e=y();"prize"==e.state.stage&&e.props.liveGameController.getDatabaseVal("c",t=>{try{if(null!=t){t=Object.entries(t);let a=0,o=0,n=-1;for(let r=0;r<t.length;r++)t[r][0]!=e.props.client.name&&t[r][1]>a&&(a=t[r][1]);for(let i=0;i<e.state.choices.length;i++){var s=e.state.choices[i];let l=e.state.gold;"gold"==s.type?l=e.state.gold+s.val||e.state.gold:"multiply"==s.type||"divide"==s.type?l=Math.round(e.state.gold*s.val)||e.state.gold:"swap"==s.type?l=a||e.state.gold:"take"==s.type&&(l=e.state.gold+a*s.val||e.state.gold),(l||0)<=o||(o=l,n=i+1)}document.querySelector("div[class*='choice"+n+"']")?.click()}}catch{}})},50))}},{name:"Chest ESP",description:"Shows what each chest will give you",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(()=>{y().state.choices.forEach(({text:e},t)=>{var a,t=document.querySelector(`div[class*='choice${t+1}']`);t&&!t.querySelector("div")&&((a=document.createElement("div")).style.color="white",a.style.fontFamily="Eczar",a.style.fontSize="2em",a.style.display="flex",a.style.justifyContent="center",a.style.transform="translateY(200px)",a.innerText=e,t.append(a))})},50))}},{name:"Remove Lose 25%-50%",description:"Removes Lose 25%-50% chests",type:"toggle",enabled:!1,data:null,run:function(){let e=this,t=this;function a(){return Object.values(document.querySelector("#app > div > div"))[1].children[1]._owner}e.enabled||t.enabled?(clearInterval(e.data),clearInterval(t.data),e.data=null,t.data=null,e.enabled=!1,t.enabled=!1):(e.enabled=!0,t.enabled=!0,e.data=setInterval(()=>{document.querySelectorAll('div[role="button"]').forEach(e=>{("Lose 25%"===e.innerText||"Lose 50%"===e.innerText)&&(e.style.display="none")})},50),t.data=setInterval(()=>{if("gold"===("gold"===window.location.pathname.split("/")[2]&&"gold")&&t.enabled)try{if("prize"===a().stateNode.state.stage){let{choices:e}=a().stateNode.state,o=document.querySelector("div[class*='regularBody']").children[1];o&&(document.querySelectorAll(".chest-esp").length?e.forEach((e,t)=>{3==o.children.length&&o.children[t].children[1].innerText!=e.text&&(o.children[t].children[1].innerText=e.text)}):e.forEach((e,t)=>{(textElement=document.createElement("p")).className="chest-esp",textElement.innerText=e.text,textElement.style="text-align: center; font-size: 30px; color: white; font-family:Titan One, sans-serif; border-color: black; margin-top: 200px; opacity: 0;";try{o.children[t].appendChild(textElement)}catch(a){console.log(a)}}))}}catch(n){console.log(n)}},50))}},{name:"Reset Players Gold",description:"Sets a player's gold to 0",inputs:[{name:"Player",type:"options",options(){let e=y();return e.props.liveGameController._liveApp?new Promise(t=>e.props.liveGameController.getDatabaseVal("c",e=>e&&t(Object.keys(e)))):[]}}],run:function(e){var t=y();t.props.liveGameController.setVal({path:"c/"+t.props.client.name+"/tat",val:e+":swap:0"})}},{name:"Set Gold",description:"Sets amount of gold",inputs:[{name:"Gold",type:"number"}],run:function(e){var t=y();t.setState({gold:e,gold2:e}),t.props.liveGameController.setVal({path:"c/"+t.props.client.name+"/g",val:e})}},{name:"Swap Gold",description:"Swaps gold with someone",inputs:[{name:"Player",type:"options",options(){let e=y();return e.props.liveGameController._liveApp?new Promise(t=>e.props.liveGameController.getDatabaseVal("c",e=>e&&t(Object.keys(e)))):[]}}],run:function(e){let t=y();t.props.liveGameController.getDatabaseVal("c",a=>{a&&null!=a[e]&&(a=a[e].g||0,t.props.liveGameController.setVal({path:"c/"+t.props.client.name,val:{b:t.props.client.blook,tat:e+":swap:"+(t.state.gold||0),g:a}}),t.setState({gold:a,gold2:a}))})}}]},kingdom:{name:"Crazy Kingdom",img:"https://i.ibb.co/10mZ6dx/3763864-1.png",cheats:[{name:"Choice ESP",description:"Shows you what will happen if you say Yes or No",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),Array.prototype.forEach.call(document.querySelectorAll(".choiceESP"),e=>e.remove()),this.data=null):(this.enabled=!0,this.data=setInterval(e=>{let t=y(),a=Array.prototype.reduce.call(document.querySelectorAll("[class*=statContainer]"),(t,a,o)=>(t[e[o]]=a,t),{});"choice"==t.state.phase&&(Array.prototype.forEach.call(document.querySelectorAll(".choiceESP"),e=>e.remove()),Object.keys(t.state.guest.yes||{}).forEach(e=>{var o;null!=a[e]&&((o=document.createElement("div")).className="choiceESP",o.style="font-size: 24px; color: rgb(75, 194, 46); font-weight: bolder;",o.innerText=String(t.state.guest.yes[e]),a[e].appendChild(o))}),Object.keys(t.state.guest.no||{}).forEach(e=>{var o;null!=a[e]&&((o=document.createElement("div")).className="choiceESP",o.style="font-size: 24px; color: darkred; font-weight: bolder;",o.innerText=String(t.state.guest.no[e]),a[e].appendChild(o))}),Array.prototype.forEach.call(document.querySelectorAll("[class*=guestButton][role=button]"),e=>e.onclick=()=>Array.prototype.forEach.call(document.querySelectorAll(".choiceESP"),e=>e.remove())))},50,["materials","people","happiness","gold"]))}},{name:"Disable Tax Toucan",description:"Tax evasion",run:function(){y().taxCounter=Number.MAX_VALUE}},{name:"Max Stats",description:"Sets all resources to the max",run:function(){y().setState({materials:100,people:100,happiness:100,gold:100})}},{name:"Set Guests",description:"Sets the amount of guests you've seen",inputs:[{name:"Guests",type:"number"}],run:function(e){y().setState({guestScore:e})}},{name:"Skip Guest",description:"Skips the current guest",run:function(){y().nextGuest()}}]},racing:{name:"Racing",img:"https://media.blooket.com/image/upload/v1661496295/Media/uiTest/Racing_Progress.svg",cheats:[{name:"Instant Win",description:"Instantly Wins the race",run:function(){var e=y();e.setState({progress:e.state.goalAmount}),e.props.liveGameController.setVal({path:"c/"+e.props.client.name+"/pr",val:e.state.goalAmount})}},{name:"Set Questions",description:"Sets the number of questions left",inputs:[{name:"Questions",type:"number"}],run:function(e){var t=y();e=t.props.client.amount-e,t.setState({progress:e}),t.props.liveGameController.setVal({path:"c/"+t.props.client.name+"/pr",val:e})}}]},royale:{name:"Battle Royale",img:"https://media.blooket.com/image/upload/v1655936179/Media/br/VS_Lightning_Bolt_Bottom.svg",cheats:[{name:"Auto Answer (Toggle)",description:"Toggles auto answer on",type:"toggle",enabled:!1,data:null,run:function(){this.enabled?(this.enabled=!1,clearInterval(this.data),this.data=null):(this.enabled=!0,this.data=setInterval(()=>{var e=y();e?.onAnswer?.(!0,e.props.client.question.correctAnswers[0])},50))}},{name:"Auto Answer",description:"Chooses the correct answer for you",run:function(){var e=y();e?.onAnswer?.(!0,e.props.client.question.correctAnswers[0])}}]},rush:{name:"Blook Rush",img:"https://ac.blooket.com/games-l/assets/shield-DEeSqHMF.png",cheats:[{name:"Set Blooks",description:"Sets amount of blooks you or your team has",inputs:[{name:"Blooks",type:"number"}],run:function(e){var t=y();t.setState({numBlooks:e}),t.props.liveGameController.setVal({path:(t.isTeam?"a/":"c/")+t.props.client.name+"/bs",val:e})}},{name:"Set Defense",description:"Sets amount of defense you or your team has (Max 4)",inputs:[{name:"Defense (max 4)",type:"number",max:4}],run:function(e){var e=Math.min(e,4),t=y();t.setState({numDefense:e}),t.props.liveGameController.setVal({path:(t.isTeam?"a/":"c/")+t.props.client.name+"/d",val:e})}}]},workshop:{name:"Santa's Workshop",img:"https://ac.blooket.com/games-l/assets/toy-CO4-YS66.svg",cheats:[{name:"Remove Distractions",description:"Removes all enemy distractions",run:function(){y().setState({fog:!1,dusk:!1,wind:!1,plow:!1,blizzard:!1,force:!1,canada:!1,trees:[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1]})}},{name:"Send Distraction",description:"Sends a distraction to everyone else playing",inputs:[{name:"Distraction",type:"options",options:Object.entries({c:"Oh Canada",b:"Blizzard",f:"Fog Spell",d:"Dark & Dusk",w:"Howling Wind",g:"Gift Time!",t:"TREES",s:"Snow Plow",fr:"Use The Force"}).map(([e,t])=>({name:t,value:e}))}],run:function(e){var t=y();t.safe=!0,t.props.liveGameController.setVal({path:`c/${t.props.client.name}/tat`,val:e})}},{name:"Set Toys",description:"Sets amount of toys",inputs:[{name:"Toys",type:"number"}],run:function(e){var t=y();t.setState({toys:e}),t.props.liveGameController.setVal({path:"c/"+t.props.client.name+"/t",val:e})}},{name:"Set Toys Per Question",description:"Sets amount of toys per question",inputs:[{name:"Toys Per Question",type:"number"}],run:function(e){y().setState({toysPerQ:e})}},{name:"Swap Toys",description:"Swaps toys with someone",inputs:[{name:"Player",type:"options",options(){let e=y();return e.props.liveGameController._liveApp?new Promise(t=>e.props.liveGameController.getDatabaseVal("c",e=>e&&t(Object.keys(e)))):[]}}],run:function(e){let t=y();t.props.liveGameController.getDatabaseVal("c",a=>{a&&null!=a[e]&&(t.props.liveGameController.setVal({path:"c/"+t.props.client.name+"/tat",val:e+":swap:"+t.state.toys}),t.setState({toys:a[e].t}))})}}]},extras:{name:"Extras",img:"https://i.ibb.co/mb0R9HX/Star-icon-stylized-svg-1-removebg-preview.png",cheats:[{name:"Toggle Invert Colors",description:"Toggle between inverting and restoring colors on the page",run:function(){"invert()"==document.getElementsByTagName("html")[0].style.filter?document.getElementsByTagName("html")[0].style.filter="":document.getElementsByTagName("html")[0].style.filter="invert()",elems=document.querySelectorAll(" a, img, video");for(let e=0;e<elems.length;e++)("A"==elems[e].nodeName&&(""!=elems[e].style.background||""!=elems[e].style.backgroundImage)||"A"!=elems[e].nodeName)&&("invert()"==elems[e].style.filter?elems[e].style.filter="":elems[e].style.filter="invert()")}},{name:"Toggle Dark Mode",description:"Toggles Dark Mode",run:function(){var e=document.createElement("iframe");document.body.append(e),window.alert=e.contentWindow.alert.bind(window),e.remove(),function e(){let t=document.querySelectorAll("#nightify");if(t.length)t[0].parentNode.removeChild(t[0]);else{var a=document.getElementsByTagName("head")[0],o=document.createElement("style");o.setAttribute("type","text/css"),o.setAttribute("id","nightify"),o.appendChild(document.createTextNode("html{-webkit-filter:invert(100%) hue-rotate(180deg) contrast(70%) !important; background: #222;} .line-content {background-color: #333;} html img{-webkit-filter:invert(100%) hue-rotate(0deg) contrast(100%) !important;}")),a.appendChild(o)}}()}},{name:"3D Page",description:"Makes the page 3D",run:function(){var e={menu:document.createElement("div"),limit:document.createElement("input"),gap:document.createElement("input"),sag:document.createElement("input"),fov:document.createElement("input"),flo:document.createElement("input"),off:document.createElement("input"),non:document.createElement("input"),end:document.createElement("input"),tgl:document.createElement("input"),cssStatic:document.createElement("style"),cssDynamic:document.createElement("style"),orientation:{yaw:0,pitch:0,roll:0},mouseMove:function(t){e.orientation.yaw=-(180*Math.cos(Math.PI*t.clientX/innerWidth))*e.limit.value,e.orientation.pitch=180*Math.cos(Math.PI*t.clientY/innerHeight)*e.limit.value,e.updateBody()},gyroMove:function(t){innerWidth>innerHeight?(e.orientation.yaw=-(t.alpha+t.beta),e.orientation.pitch=t.gamma-90*Math.sign(90-Math.abs(t.beta))):(e.orientation.yaw=-(t.alpha+t.gamma),e.orientation.pitch=t.beta-90),e.updateBody()},updateOrigin:function(e){document.body.style.transformOrigin=innerWidth/2+pageXOffset+"px "+(innerHeight/2+pageYOffset)+"px"},updateBody:function(){document.body.style.transform="perspective("+Math.pow(2,e.fov.value)+"px) translateZ(-"+e.gap.value+"px) rotateX("+e.orientation.pitch+"deg) rotateY("+e.orientation.yaw+"deg)"},updateCSS:function(){if(e.non.checked)e.cssDynamic.innerHTML="";else if(e.off.checked)e.cssDynamic.innerHTML="* { transform-style: preserve-3d; }";else{for(var t=0;document.querySelector("body"+" > *".repeat(t));t++);var a=e.gap.value/t,o=-Math.PI*e.sag.value/t;e.cssDynamic.innerHTML=` * { transform: translateZ(${a}px) rotateX(${o}rad); transform-style: preserve-3d; transition: transform 1s; outline: 1px solid rgba(0, 0, 0, 0.0625); ${e.flo.checked?"overflow: visible !important;":""} } *:hover { transform: translateZ(${2*a}px) rotateX(${2*o}rad); ${e.flo.checked?"":"overflow: visible;"} } `}},toggle:function(){"active"==e.menu.className?e.menu.removeAttribute("class"):e.menu.className="active"},quit:function(){window.removeEventListener("deviceorientation",e.gyroMove),window.removeEventListener("mousemove",e.mouseMove),window.removeEventListener("scroll",e.updateOrigin),window.addEventListener("resize",e.updateOrigin),e.menu.remove(),e.cssStatic.remove(),e.cssDynamic.remove(),document.body.removeAttribute("style")},newRange:function(t,a,o,n,r,i,s){e.menu.appendChild(t),t.type="range",t.min=o,t.max=r,t.step=n,t.value=i,t.addEventListener("input",s),e.menu.appendChild(document.createElement("span")).innerHTML=a,e.menu.appendChild(document.createElement("br"))},newCheckbox:function(t,a,o){e.menu.appendChild(t),t.type="checkbox",t.addEventListener("click",o),e.menu.appendChild(document.createElement("span")).innerHTML=a,e.menu.appendChild(document.createElement("br"))},newButton:function(t,a,o){e.menu.appendChild(t),t.type="button",t.value=a,t.addEventListener("click",o)},init:function(){document.body.parentNode.appendChild(e.menu).id="tri-menu",e.newRange(e.limit,"limit",0,.03125,1,.125,e.updateBody),e.newRange(e.gap,"gap / distance",0,32,512,128,function(){e.updateCSS(),e.updateBody()}),e.newRange(e.sag,"sag",-.25,.03125,.25,0,e.updateCSS),e.newRange(e.fov,"field of view",7,1,13,10,e.updateBody),e.newCheckbox(e.flo,"force overflow",e.updateCSS),e.flo.setAttribute("checked",""),e.newCheckbox(e.off,"flatten layers",e.updateCSS),e.newCheckbox(e.non,"flatten everything",e.updateCSS),e.newButton(e.end,"Quit",e.quit),e.newButton(e.tgl,"≡",e.toggle),e.tgl.id="tri-toggle",e.menu.appendChild(e.cssStatic).innerHTML=" html, body { transition-property: none; height: 100%25; width: 100%25; } html, html:hover, #tri-menu, #tri-menu > *, #tri-menu > *:hover { transform: none; outline: none; overflow: auto !important; float: none; } #tri-menu { position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, 0.5); color: white; border: 1px solid rgba(255, 255, 255, 0.5);; border-radius: 0 0 16px 0; padding: 8px; transform: translate(-100%25, -100%25) translate(32px, 32px); } #tri-menu.active { transform: none; } #tri-toggle { position: absolute; bottom: 0; right: 0; height: 32px; width: 32px; background: transparent; color: white; border: none; cursor: pointer; } #tri-menu.active > #tri-toggle { background: white; color: black; border-radius: 8px 0 0 0; }",e.menu.appendChild(e.cssDynamic),e.updateCSS(),window.addEventListener("deviceorientation",e.gyroMove),window.addEventListener("mousemove",e.mouseMove),window.addEventListener("scroll",e.updateOrigin),window.addEventListener("resize",e.updateOrigin),window.scrollBy(0,1)}};e.init()}},{name:"History Flooder",description:"Floods browser history with specified amount of entries",inputs:[{name:"Amount",type:"number"}],run:function(e){var t=e;let a=window.location.href,o=!1;for(let n=1;n<=t;n++)history.pushState(0,0,n===t?a:n.toString()),n===t&&(o=!0);o&&alert("History flood successful! "+window.location.href+" now appears in your history "+t+(1===t?" time.":" times."))}},{name:"Tab Cloaker",description:"Changes the tab image and name",inputs:[{name:"Icon URL",type:"text",placeholder:"ex. https://example.com/favicon.ico"},{name:"Tab Title",type:"text",placeholder:"ex. Example Title"}],run:function(e,t){var a=document.querySelector("link[rel*='icon']")||document.createElement("link");a.type="image/x-icon",a.rel="shortcut icon",a.href=e||"https://www.blooket.com/favicon.ico",document.getElementsByTagName("head")[0].appendChild(a),document.title=t||"Blooket"}}]},settings:{name:"Settings",img:"https://i.ibb.co/jrWKgyn/Windows-Settings-icon-1.png",cheats:[{name:"Import Settings",description:"Import a custom theme",inputs:[{name:"JSON Data",type:"string"}],run:function(e){try{JSON.parse(e)}catch(t){return $("Invalid JSON provided")}e={backgroundColor:"rgb(11, 194, 207)",infoColor:"#9a49aa",cheatList:"#9a49aa",defaultButton:"#9a49aa",disabledButton:"#A02626",enabledButton:"#47A547",textColor:"white",inputColor:"#7a039d",contentBackground:"rgb(64, 17, 95)",...JSON.parse(e)},d.setItem("theme",e)}},{name:"Export Settings",description:"Export the current theme to JSON",run:async function(){await navigator.clipboard.writeText(JSON.stringify(d.data.theme,null,4)),g("Text copied to clipboard. (Paste below to test)")}},{name:"Defaults",description:"Changes all the settings to a preset",inputs:[{name:"Theme",type:"options",options:[{name:"Default",value:{backgroundColor:"rgb(11, 194, 207)",infoColor:"#9a49aa",cheatList:"#9a49aa",defaultButton:"#9a49aa",disabledButton:"#A02626",enabledButton:"#47A547",textColor:"white",inputColor:"#7a039d",contentBackground:"rgb(64, 17, 95)"}},{name:"Landscapes (Random)",value:{backgroundColor:"url(https://source.unsplash.com/1600x900/?landscape)",infoColor:"linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3))",cheatList:"linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3))",defaultButton:"linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3))",disabledButton:"linear-gradient(rgba(225, 0, 0, 0.3), rgba(225, 0, 0, 0.3))",enabledButton:"linear-gradient(rgba(0, 128, 0, 0.3), rgba(0, 128, 0, 0.3))",textColor:"white",inputColor:"linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3))",contentBackground:"linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3))"}},{name:"Blacket",value:{backgroundColor:"#4f4f4f",infoColor:"#2f2f2f",cheatList:"#2f2f2f",defaultButton:"#4f4f4f",disabledButton:"#eb6234",enabledButton:"#00c20c",textColor:"white",inputColor:"#3f3f3f",contentBackground:"#2f2f2f"}},{name:"Ploopit",value:{backgroundColor:"url(https://i.ibb.co/6vvdq3f/ploopit.png)",infoColor:"#3C75F5",cheatList:"#204DD0",defaultButton:"#204DD0",disabledButton:"#A02626",enabledButton:"#47A547",textColor:"white",inputColor:"#3f3f3f",contentBackground:"#3C75F5"}},{name:"Betastar",value:{backgroundColor:"url(https://i.ibb.co/8bkDpCn/GIFMaker-me.gif)",infoColor:"#282828",cheatList:"#282828",defaultButton:"white",disabledButton:"#9D0000",enabledButton:"#013220",textColor:"black",inputColor:"gray",contentBackground:"linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3))"}},{name:"Skool.lol",value:{backgroundColor:"linear-gradient(90deg, rgba(104,45,140,1) 220px, rgba(237,30,121,1) 100%)",cheatList:"#1e2124",infoColor:"#1e2124",defaultButton:"#36393e",inputColor:"#1e2124",enabledButton:"#9c9a9a",textColor:"white",disabledButton:"#171717",contentBackground:"#292929"}},{name:"Blue - Purple Background",value:{backgroundColor:"linear-gradient(162.5deg, rgba(0,183,255,1) 220px, rgba(128,0,255,1) 100%)"}},{name:"Saint Patricks Background",value:{backgroundColor:"rgb(9, 148, 65)"}},{name:"Halloween Background",value:{backgroundColor:"rgb(41, 41, 41)"}},{name:"Fall Background",value:{backgroundColor:"rgb(224, 159, 62)"}},{name:"Winter Background",value:{backgroundColor:"linear-gradient(rgb(49, 170, 224), rgb(187, 221, 255))"}},{name:"Crypto Hack",value:{backgroundColor:"radial-gradient(#11581e,#041607)",infoColor:"#1a1a1a",cheatList:"#1a1a1a",defaultButton:"rgb(88 175 88)",disabledButton:"#A02626",enabledButton:"#0b601b",textColor:"white",inputColor:"rgb(0 0 0 / 25%)",contentBackground:"#11581e"}},{name:"Fishing Frenzy",value:{backgroundColor:"linear-gradient(180deg,#9be2fe 0,#67d1fb)",infoColor:"#c8591e",cheatList:"#c8591e",defaultButton:"#ff751a",disabledButton:"#bf0e0e",enabledButton:"#2fb62f",textColor:"white",inputColor:"rgb(0 0 0 / 25%)",contentBackground:"radial-gradient(#02b0ea 40%, #1d86ea)"}},{name:"Deceptive Dinos",value:{backgroundColor:'radial-gradient(rgba(220, 184, 86, 0), rgba(220, 184, 86, 0.4)), url("https://ac.blooket.com/play/111cb7e0ee6607ac3d1a13d534c0e0f1.png"), #ead49a',infoColor:"#af8942",cheatList:"#af8942",defaultButton:"#af8942",disabledButton:"#A02626",enabledButton:"#47A547",textColor:"white",inputColor:"rgb(0 0 0 / 10%)",contentBackground:"radial-gradient(rgba(1,104,162,.6),rgba(24,55,110,.5)),radial-gradient(#2783b4 1.5px,#18376e 0) center / 24px 24px"}},{name:"Blook Rush",value:{backgroundColor:"repeating-linear-gradient(45deg,white,white 8%,#e6e6e6 0,#e6e6e6 16%)",defaultButton:"#36c",inputColor:"rgb(0 0 0 / 25%)",infoColor:"#36c",cheatList:"#36c",contentBackground:"#888",textColor:"white",disabledButton:"#A02626",enabledButton:"#47A547"}},{name:"Factory",value:{defaultButton:"#1563bf",infoColor:"#a5aabe",cheatList:"#a5aabe",contentBackground:"#2d313d",backgroundColor:"#3a3a3a",enabledButton:"rgb(75, 194, 46)",disabledButton:"#9a49aa",inputColor:"rgb(0 0 0 / 25%)",textColor:"white"}},{name:"Cafe",value:{backgroundColor:"linear-gradient(90deg,rgba(200,0,0,.5) 50%,transparent 0) center / 50px 50px,linear-gradient(rgba(200,0,0,0.5) 50%,transparent 0) white center / 50px 50px",defaultButton:"#0bc2cf",inputColor:"rgb(0 0 0 / 25%)",infoColor:"#ac7339",cheatList:"#ac7339",contentBackground:"rgb(64, 64, 64)",textColor:"white",disabledButton:"#A02626",enabledButton:"#47A547"}},{name:"Tower of Doom",value:{backgroundColor:"rgb(41 41 41)",disabledButton:"rgb(151, 15, 5)",defaultButton:"#333",inputColor:"rgb(0 0 0 / 25%)",contentBackground:"#404040",enabledButton:"#4bc22e",textColor:"white",infoColor:"#9a49aa",cheatList:"#9a49aa"}},{name:"Monster Brawl",value:{defaultButton:"rgb(45, 51, 67)",backgroundColor:"rgb(78, 95, 124)",inputColor:"rgb(0 0 0 / 25%)",contentBackground:"linear-gradient(0deg,#374154,#4f5b74)",infoColor:"#374154",cheatList:"#374154",textColor:"white",enabledButton:"#47A547",disabledButton:"#A02626"}},{name:"Tower Defense 2",value:{backgroundColor:"url(https://media.blooket.com/image/upload/v1676164454/Media/defense/backgroundTd1-02.svg) center / cover",cheatList:"#a33c22",infoColor:"#a33c22",defaultButton:"#40b1d8",inputColor:"#3e8cbe",contentBackground:"#293c82",enabledButton:"#47A547",disabledButton:"#A02626",textColor:"white"}}]}],run:function(e){d.setItem("theme",{...d.data.theme,...e})}},{name:"Scale",description:"Forces the GUI to scale from 25%-100%",inputs:[{type:"number",name:"Percent scale",min:25,max:100,value:100*(d.data?.scale||1)}],run:function(e){e=Math.min(Math.max(e,25),100),d.setItem("scale",e/100),guiWrapper.style.transform=`scale(${e/100})`}},{name:"Hide Keybind",description:"Change the hide keybind (Click button after input to change)",inputs:[{type:"function",name:"Input",function:e=>v(({shift:t,ctrl:a,alt:o,key:n})=>e(""+[a&&"Ctrl",t&&"Shift",o&&"Alt",n&&n.toUpperCase()].filter(Boolean).join(" + ")))}],run:function(e){d.setItem("hide",e)}},{name:"Close Keybind",description:"Change the quick close keybind (Click button after input to change)",inputs:[{type:"function",name:"Input",function:e=>v(({shift:t,ctrl:a,alt:o,key:n})=>e(""+[a&&"Ctrl",t&&"Shift",o&&"Alt",n&&n.toUpperCase()].filter(Boolean).join(" + ")))}],run:function(e){d.setItem("close",e)}},{name:"Background Color",description:"Changes the background color of the GUI",inputs:[{type:"string",name:"Color"}],run:function(e){d.setItem("theme.backgroundColor",e)}},{name:"Category List Color",description:"Changes the categories list background color",inputs:[{type:"string",name:"Color"}],run:function(e){d.setItem("theme.cheatList",e)}},{name:"Info Color",description:"Changes the color of the information at the top of the GUI",inputs:[{type:"string",name:"Color"}],run:function(e){d.setItem("theme.infoColor",e)}},{name:"Button Color",description:"Changes the color of the cheats",inputs:[{type:"string",name:"Color"}],run:function(e){d.setItem("theme.defaultButton",e)}},{name:"Enabled Toggle Color",description:"Changes the color of enabled toggle cheats",inputs:[{type:"string",name:"Color"}],run:function(e){d.setItem("theme.enabledButton",e)}},{name:"Disabled Toggle Color",description:"Changes the color of disabled toggle cheats",inputs:[{type:"string",name:"Color"}],run:function(e){d.setItem("theme.disabledButton",e)}},{name:"Text Color",description:"Changes the text color",inputs:[{type:"string",name:"Color"}],run:function(e){d.setItem("theme.textColor",e)}},{name:"Input Color",description:"Changes the color of inputs, like the set gold number input",inputs:[{type:"string",name:"Color"}],run:function(e){d.setItem("theme.inputColor",e)}},{name:"Content Color",description:"Changes the background color of the cheats",inputs:[{type:"string",name:"Color"}],run:function(e){d.setItem("theme.contentBackground",e)}}]}},_=document.createElement("div");function v(e,t=window){return new Promise(a=>{let o={},n,r,i,s,l=t=>{t.preventDefault(),o[t.code]=!0,n||=t.shiftKey,r||=t.ctrlKey,i||=t.altKey,["shift","control","alt","meta"].includes(t.key.toLowerCase())||(s=t.key.toLowerCase()),e?.({shift:n,ctrl:r,alt:i,key:s})},c=e=>{delete o[e.code],0<Object.keys(o).length||(t.removeEventListener("keydown",l),t.removeEventListener("keyup",c),a({shift:n,ctrl:r,alt:i,key:s}))};t.addEventListener("keydown",l),t.addEventListener("keyup",c)})}function k({type:e="div",children:t,...a}){let o=[],n=e=>r.jsx("span",{style:{display:"inline-block",opacity:"0",width:"0",height:"0",lineHeight:"0",userSelect:"none",marginLeft:e?"5px":null},children:String.fromCharCode(Math.floor(25*Math.random())+97)});var i=e=>{if("string"==typeof e){var t=[];for(let a=0;a<e.length;a+=3)t.push(e.slice(a,a+3),n());o.push(...t)}else o.push(e,n())};if(Array.isArray(t))for(let s=0;s<t.length;s++)i(t[s]);else i(t);return r.jsx(e,Object.assign({children:r.jsx("span",{children:o})},a))}function C({input:e,onValue:t,run:a,toggle:o}){let{name:n,type:s,options:p,min:d,max:m,value:h}=e,$;try{$="function"==typeof p?p():p}catch(g){console.warn(g),$=[]}let[f,y]=i($),[b,_]=i(""),v=l(!0);c(()=>{f instanceof Promise?f.then(a=>{y(a),t(a[0]?.value||a[0]),e.selected=a[0]?.name||a[0],v.current=!1}).catch(()=>y([])):f?.length&&(t(f[0]?.value||f[0]),e.selected=f[0]?.name||f[0]),"number"==s?t(h||(null==d?0:d)):"function"==s?t(null):f instanceof Promise||f?.length||t("")},[]);let k;if("options"==s&&f?.length)k=r.jsx("select",{onChange:a=>(e.selected=a.target.children[a.target.selectedIndex].innerText,t(JSON.parse(a.target.value))),children:f.map(e=>r.jsx("option",{value:JSON.stringify(null!=e?.value?e.value:e),children:e?.name||e}))});else if("function"==s)k=r.jsx("input",{className:u.keys.cheatInput,placeholder:n,style:{textAlign:"center"},readOnly:!0,value:b||e.data,async onClick(){if(!b){_("Waiting for input...");let a;var o=await e.function(e=>_((a=e)+"..."));e.data=a,_(!1),t(o)}}});else{let C="number"==s;k=r.jsx("input",{onChange:e=>t(C?parseInt(e.target.value):e.target.value),className:u.keys.cheatInput,type:C?"number":null,min:C?d:null,max:C?m:null,defaultValue:C?h||(null==d?0:d):null,placeholder:n,style:{textAlign:"center",backgroundColor:o&&"#0003"},onKeyUp:e=>"Enter"==e.key&&a()})}return k}function w({script:e}){let t=l([]),[a,o]=i(e.enabled),n=s(()=>{e.run.apply(e,t.current),o(e.enabled)},[]);return p("div",{style:{background:"toggle"==e.type?a?"var(--enabledButton)":"var(--disabledButton)":"var(--defaultButton)"},key:e.name,"data-tip":e.description,className:u.keys.scriptButton,onClick:e=>(e.target.matches("."+u.keys.scriptButton)||e.target.matches("."+u.keys.cheatName)||e.target.matches(`.${u.keys.cheatName} *`))&&n()},p(k,{className:u.keys.cheatName},e.name),e.inputs?.length&&e.inputs.map((a,o)=>a.element||p(C,{onValue:e=>t.current[o]=e,key:o,input:a,run:n,toggle:"toggle"==e.type})))}function S({parent:e,children:t,setPos:a,...o}){let n=l(!1),r=l({x:0,y:0});return c(()=>{let t=()=>n.current=!1,o=t=>{var o,i;n.current&&(o=r.current.x-t.clientX,i=r.current.y-t.clientY,r.current={x:t.clientX,y:t.clientY},a({x:e.offsetLeft-o,y:e.offsetTop-i}))};return document.addEventListener("pointerup",t),document.addEventListener("pointermove",o),()=>{document.removeEventListener("pointerup",t),document.removeEventListener("pointermove",o)}},[e]),p("div",{...o,onPointerDown(e){n.current=!0,r.current={x:e.clientX,y:e.clientY}}},t)}function x(){let e=l({x:Math.max(10,window.innerWidth-1e3)/2,y:Math.max(10,window.innerHeight-600)/2}).current;var r=s(({x:t,y:a})=>{e.x=t,e.y=a,v.current.style.left=t+"px",v.current.style.top=a+"px"},[]);let[m,h]=i(null),[$,g]=i(!1),[f,y]=i("global"),v=l();l(),d=function(e){let[t,a]=i(JSON.parse(localStorage.getItem(e)||"{}")),o=s((o,n)=>(o.split(".").reduce((e,t,a,o)=>(++a==o.length&&(e[t]=n),e[t]),t),localStorage.setItem(e,JSON.stringify(t)),a({...t}),t),[t]),n=s((o,n)=>(o.split(".").reduce((e,t,a,o)=>(++a==o.length&&delete e[t],e[t]),t),localStorage.setItem(e,JSON.stringify(t)),a({...t}),t),[t]),r=s(t=>{a(t),localStorage.setItem(e,JSON.stringify(t))},[]);return c(()=>{try{for(let t of(a(JSON.parse(localStorage.getItem(e)||"{}")),["backgroundColor","cheatList","contentBackground","defaultButton","disabledButton","enabledButton","infoColor","inputColor","textColor"]))d.data[t]&&(o("theme."+t,d.data[t]),n(t))}catch{r({})}},[]),{data:t,setItem:o,deleteItem:n,setData:r}}("JODGUISETTINGS");var C,x,B,T,A,L,M=p("style",null,`:root {--backgroundColor: ${d.data?.theme?.backgroundColor||"rgb(11, 194, 207)"};--infoColor: ${d.data?.theme?.infoColor||"#9a49aa"};--cheatList: ${d.data?.theme?.cheatList||"#9a49aa"};--defaultButton: ${d.data?.theme?.defaultButton||"#9a49aa"};--disabledButton: ${d.data?.theme?.disabledButton||"#A02626"};--enabledButton: ${d.data?.theme?.enabledButton||"#47A547"};--textColor: ${d.data?.theme?.textColor||"white"};--inputColor: ${d.data?.theme?.inputColor||"#7a039d"};--contentBackground: ${d.data?.theme?.contentBackground||"rgb(64, 17, 95)"};}`);let D=l(["global","voyage","gold","cafe","crypto","dinos","defense","defense2","factory","fishing","flappy","doom","kingdom","racing","royale","rush","brawl","workshop","extras","settings"]).current,N=s(()=>{a.unmountComponentAtNode(_),_.remove()},[]);return c(()=>{window.dispatchEvent(new Event("resize"));let e=e=>{var t=d.data.hide||{ctrl:!0,key:"e"},a=d.data.close||{ctrl:!0,key:"x"};(t.ctrl&&e.ctrlKey||!t.ctrl&&!e.ctrlKey)&&(t.shift&&e.shiftKey||!t.shift&&!e.shiftKey)&&(t.alt&&e.altKey||!t.alt&&!e.altKey)&&e.key.toLowerCase()==t.key?(e.preventDefault(),g(e=>!e)):(a.ctrl&&e.ctrlKey||!a.ctrl&&!e.ctrlKey)&&(a.shift&&e.shiftKey||!a.shift&&!e.shiftKey)&&(a.alt&&e.altKey||!a.alt&&!e.altKey)&&e.key.toLowerCase()==a.key&&(e.preventDefault(),N())};return window.addEventListener("keydown",e),()=>{for(let t of(window.removeEventListener("keydown",e),D))for(let a of b[t].cheats)a.enabled&&a.run()}},[]),c(()=>{if(null==m)return()=>{};var e=v.current.querySelector("div");e.style.height=m?"55px":"100%",e.style.width=m?"165px":"100%",v.current.style.top=parseInt(v.current.style.top)+(v.current.offsetHeight-55)*(m?1:-1)+"px",v.current.style.left=parseInt(v.current.style.left)+(v.current.offsetWidth-165)*(m?1:-1)+"px",v.current.style.pointerEvents=m?"none":"unset"},[m]),p("div",{ref:v,id:u.keys.guiWrapper,style:{top:e.y+"px",left:e.x+"px",transform:`scale(${d.data.scale||1})`,display:$?"none":null}},p("style",null,u.css),M,p("div",{id:u.keys.gui},p("div",{id:u.keys.controlButtons},p(S,{parent:v.current,setPos:r,style:{backgroundColor:"rgb(0, 160, 255)"},className:u.keys.dragButton},p("i",{className:"fas fa-arrows-alt"})),p("div",{style:{fontWeight:"bolder",backgroundColor:"grey",cursor:"pointer"},onClick:()=>h(e=>!e)},p("i",{className:"fas fa-minus"})),p("div",{style:{fontWeight:"bolder",backgroundColor:"red",cursor:"pointer"},onClick:N},p("i",{className:"fas fa-times"}))),!m&&p(t.Fragment,null,p("div",{id:u.keys.background},p("div",{id:u.keys.backgroundImage})),p(S,{parent:v.current,setPos:r,id:u.keys.controls},([{ctrl:M,shift:r,alt:C,key:x},{ctrl:B,shift:T,alt:A,key:L}]=[d.data.hide||{ctrl:!0,key:"e"},d.data.close||{ctrl:!0,key:"x"}],p(t.Fragment,null,`${[M&&"Ctrl",r&&"Shift",C&&"Alt",x&&x.toUpperCase()].filter(Boolean).join(" + ")} to hide | ${[B&&"Ctrl",T&&"Shift",A&&"Alt",L&&L.toUpperCase()].filter(Boolean).join(" + ")} for quick disable`,p("br",null),p(k,null,"Click and drag here")))),p("div",{id:u.keys.credits},p(k,{onClick:()=>window.open("https://github.com/DannyDan0167/Blooket-Cheats-Plus","_blank").focus(),style:{cursor:"pointer"},href:"https://github.com/DannyDan0167/Blooket-Cheats-Plus"},"GitHub - DannyDan0167")),p("div",{id:u.keys.cheatList},p(k,{type:"span",style:{textShadow:"1px 1px rgb(0 0 0 / 40%)"}},"Cheats"),p("a",{href:"https://discord.gg/8A6J234n7v",target:"_blank",id:u.keys.bigButton},p("svg",{style:{filter:"drop-shadow(2px 2px 0 rgb(0 0 0 / 20%))"},xmlns:"http://www.w3.org/2000/svg",width:"35",height:"35",fill:"currentColor",viewBox:"0 -1 21 16"},p("path",{d:"M13.545 2.907a13.227 13.227 0 0 0-3.257-1.011.05.05 0 0 0-.052.025c-.141.25-.297.577-.406.833a12.19 12.19 0 0 0-3.658 0 8.258 8.258 0 0 0-.412-.833.051.051 0 0 0-.052-.025c-1.125.194-2.22.534-3.257 1.011a.041.041 0 0 0-.021.018C.356 6.024-.213 9.047.066 12.032c.001.014.01.028.021.037a13.276 13.276 0 0 0 3.995 2.02.05.05 0 0 0 .056-.019c.308-.42.582-.863.818-1.329a.05.05 0 0 0-.01-.059.051.051 0 0 0-.018-.011 8.875 8.875 0 0 1-1.248-.595.05.05 0 0 1-.02-.066.051.051 0 0 1 .015-.019c.084-.063.168-.129.248-.195a.05.05 0 0 1 .051-.007c2.619 1.196 5.454 1.196 8.041 0a.052.052 0 0 1 .053.007c.08.066.164.132.248.195a.051.051 0 0 1-.004.085 8.254 8.254 0 0 1-1.249.594.05.05 0 0 0-.03.03.052.052 0 0 0 .003.041c.24.465.515.909.817 1.329a.05.05 0 0 0 .056.019 13.235 13.235 0 0 0 4.001-2.02.049.049 0 0 0 .021-.037c.334-3.451-.559-6.449-2.366-9.106a.034.034 0 0 0-.02-.019Zm-8.198 7.307c-.789 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.45.73 1.438 1.613 0 .888-.637 1.612-1.438 1.612Zm5.316 0c-.788 0-1.438-.724-1.438-1.612 0-.889.637-1.613 1.438-1.613.807 0 1.451.73 1.438 1.613 0 .888-.631 1.612-1.438 1.612Z"})),p(k,{type:t.Fragment},"Discord")),D.map(e=>p("div",{key:e,onClick:()=>y(e),className:u.keys.cheatButton},b[e].img?p("img",{src:b[e].img,style:{maxWidth:"30px",maxHeight:"30px",aspectRatio:"1 / 1",marginRight:"10px",...b[e].style||{}},alt:e}):p("div",{style:{marginInline:"5px",width:"5px"}}),p(o,{mode:"single",forceSingleWidthMode:!1,min:1,max:20},b[e].name)))),p("div",{id:u.keys.contentWrapper},p("div",{id:u.keys.content},p(n,{place:"bottom",effect:"solid"}),p("div",{id:u.keys.cheats},b[f].element||(b[f].element=p(t.Fragment,null,p("div",{className:u.keys.headerText},p(k,null,b[f].name," Cheats")),b[f].cheats.map(e=>e.element||p(w,{key:e.name+e.type,script:e}))))))))))}console.log(r.jsx(x,{})),a.render(r.jsx(x,{}),_),document.body.append(_)},o=new Image;o.src="https://raw.githubusercontent.com/DannyDan0167/Blooket-Cheats-Plus/main/Update/Others/reactGui.png?"+Date.now(),o.crossOrigin="Anonymous",o.onload=function(){var t=document.createElement("canvas").getContext("2d");t.drawImage(o,0,0,this.width,this.height);let n=t.getImageData(0,0,this.width,this.height).data,r="",i,s=0;for(;s<n.length;){var l=String.fromCharCode(n[s%4==3&&s++,s++]+256*n[s%4==3&&s++,s++]);if(r+=l,"/"==l&&"*"==i)break;i=l}let c,p=1716839383825,d="There was an error checking for script updates. Run cheat anyway?";try{[c,p,d]=r.match(/LastUpdated: (.+?); ErrorMessage: "((.|\n)+?)"/)}catch(u){}(1716839383825>=parseInt(p)||e.contentWindow.confirm(d))&&a()},o.onerror=o.onabort=()=>{o.onerror=o.onabort=null,a(),document.querySelector("iframe").contentWindow.alert("It seems the GitHub is either blocked or down.\n\nIf it's NOT blocked, join the Discord server for updates\nhttps://discord.gg/8A6J234n7v\n(The cheat will still run after this alert)")}})();