Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
["\x59\x6F\x75\x20\x6D\x65\x73\x73\x65\x64\x20\x75\x70\x20\x63\x6F\x6E\x73\x74\x61\x6E\x74..
Decoded Output download
<? ["You messed up constant() and now it won't run :)","userId","path","Your user ID is ","log","The project ID is ","This is a remix of Fire Chat","https://studio.code.org/projects/gamelab/","Owner Disabled","view","edit","getCallback","Not Allowed","timedLoop","stopTimedLoop","md5","------------
Warning: Vault Missing, Insecure
Here is the Library ID: 6vVnukVaBOSDsNUwqPykw6V8VjR2zjtAlSBNk5DVsXM
------------","","loadPixels","length","pixels","fromCharCode","/site?url=","function","parse","/gif?url=","width","height","draw","animation","offX","offY","frameDelay","/audio?url=","(deleted)","deleted","name","avatar","color","bio","id","onlineAt","now","idleAt","admin","room","profile_","muted","Chat by DragonFireGames
Remixed by ","
Enter your username","Chat by DragonFireGames
Enter your username","Name taken","Please enter a longer name. (above "," chars)","Please enter a shorter name. (below ","match","Name cannot contain spaces or special charaters","${username}","replace","0","${code}","false","CENSOR","settings","mute_until","AutoMod: "," has been unmuted","banned","You are banned","Banned","ping","stringify","game","chatroom","time","online","idle","online_","welcome","https://upload.wikimedia.org/wikipedia/commons/thumb/5/58/White_Circle.svg/2048px-White_Circle.svg.png","Helvetica","background_image","src","thumbnail","index","overlay","black","overlay_strength","fill","noStroke","rect","Buff","posX","posY","twidth","theight","toUpperCase","charAt","slice","scroll","maxScroll","scale","panel","rect_bevel","panel_stroke","panel_stroke_hover","DM","member","potential","gamefriend","games","players","friend","pend","blocked","background","leftButton","font","textstyle","rooms","friends","editgc","reports","playgame","announcement","Deleting","deleting","notification_stroke","notifications","username","admin_username","owner_username","null","text","msg","oldmsg","...","date","DM/GC","toFixed","sender"," invited you to play:","description","Players","Player","Decline","Accept","Welcome to ","!","By: "," & DragonFireGames","By: DragonFireGames","keys","Use CRTL+LEFT or CTRL+RIGHT to shift themes","Enter Chat","Sign Up","button_hover","button_stroke_hover","buttons","button_stroke","button_text_hover","button_text","stroke","creator","<",">","roomlist","message_hover","messages","New DM/GC","textFont","textStyle","clear","push","translate","textAlign","Room List:","Room","Are you sure you want to delete room ","?","room_","pop","placeholder","++ new ++","
- ","join","Enter room:
- ","toLowerCase","dms","sort","DMs/GCs","type","users",", ","map","Active ","Never Active","GC (",")","filter","Friend List","Friend","Mutual friends","Pending approval","Pending","pending","Pend","object","url","EVERYONE_CAN_ADD_GC","DM_","Members","Member","Cannot remove yourself this way","People","Potential","(unnamed)","What is the chat's name? (click cancel for no name)","desc","(no desc)","What is the chat about? (click cancel for none,
for newlines)","
","
","Icon URL? (click cancel for no icon)","GroupChat","Exit Edit Mode","Leave Group Chat","Are you sure you want to leave the group chat?","Censor","Show Online Status","SHOW_ONLINE_STATUS","Show Current Room","SHOW_CURRENT_ROOM","Allow anybody to add you to a
group chat","@","NOTIFY_PINGS","@everyone","NOTIFY_EVERYONE_PINGS","Blocked","Delete Profile","Are you sure you want to permanently delete your profile?","admins","[]","Admins","Admin","Only owner can demote!","You cannot demote yourself","Muted","Kick All Users","Clear All (Public Chats)","Are you sure you want to clear all public chats?","Delete All Profiles","Are you sure you want to delete all profiles?","View Reports (","Room: "," a DM or GC","Reason: ","reporter","Reported By: ","Dismiss","splice","Exit","Clear","Are you sure you want to do this?","typing_","Replying to @",": ","substring","input_box_typing","input_box","You have been muted","placeholder_hover","click here (mobile mode)","first click here then type","bar","|","image","gif","code.org","youtube","sound","#","Send Message:","Games","Gamefriend","max_players","min_players","Launch Game","game_","source","chat","message_stroke",":","Send Message","What is your message?","unshift","Leave","Quit","_","onUserJoin","onUserLeave","stroke_hover","textSize","text_color"," (","): ","msg_","reactions","reply","link","cachedAt","https://studio.code.org/v3/files/","/.metadata/thumbnail.png","/","/info/","publishedAt","projectType","https://img.youtube.com/vi/","/hqdefault.jpg","https://www.youtube.com/watch?v=","/youtube/info/","duration","Loading Message...","button_pressed","version","includes","@here","@owner","ping_messages","ping_message_hover","c","Message:","y","w","h","Linked image url","Type: ","Published At:","Linked project url","youtube.com","author","(untitled)","(unknown)","Published at: ","published","The end of time","subscribers","NaN"," subs, ","views"," views","Category: ","category","None","Linked youtube url","Linked url"," / ","background_music","Edit"," "," ","Enter name of emoji:","indexOf","Invalid Emoji","Why do you want to report this message? (cancel to stop report)","Report sucessfully submitted!","text2","Linked image","string","get","mask","noFill","concat","avatar_stroke","circle_avatars","ellipse","show_online","online_color","idle_color","profile","profile_tint","Idle","Online","In DMs/GCs","In room: ","Last online ","No bio yet","message","request","unblock","block","unmute","mute","unban","ban","demote","promote","Enter url for avatar","Avatar URL","Edit bio:","Enter your new username:"," renamed themselves to ","Enter color:","Invalid Color!","In ","room: ","Offline","_array","split","substr","https://www.google.com/s2/favicons?sz=64&domain=","dateMsgId","
","oldrect","perfrect","backspace","left","right","up","down","Paste here:","spam_level"," has been muted for "," seconds","You have been muted for "," seconds for spamming
Next punishment: "," seconds
Enter code: ","Reply to @","Paste url, sound or image link here.
Example: https://pumpkin-smasher.repl.co
Also link rooms like #home","test","not a valid url","never","1 year ago"," years ago","1 month ago"," months ago","1 week ago"," weeks ago","1 day ago"," days ago","1 hour ago"," hours ago","1 minute ago"," minutes ago","1 second ago"," seconds ago","gi","frameRate","#23a55a","#faa61a","
OK Yes
Cancel No","namelist","abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+","min","max","Username not found","Cannot do this to owner"," has been promoted"," has been demoted","Server: "," has cleared the chat","All chats have been cleared."," has been muted","everyone has been unmuted"," has been loop muted"," has been banned"," has been unbanned","everyone has been unbanned"," has been loop banned","switching","kicked","Kicked from the chat! Please reload...","Kicked","example","The chat is under attack! Somebody is wiping keyvalues with databrowser!!! Please Remix to save the chat!","/remix"];var canvas=createCanvas(400,400);{var testVariable=randomId(32);constant(testVariable,1);window[testVariable]= 0;var testVariable2=randomId(32);window[testVariable2]= 1;constantify(testVariable2);window[testVariable2]= 0;if(window[testVariable]=== 0|| window[testVariable2]=== 0){for(var i in window){delete window[i]};throw _[0]};delete window[testVariable];delete testVariable}constant(_[1],getUserId());constant(_[2],getURLPath());console[_[4]](_[3]+ userId);console[_[4]](_[5]+ path[2]);if(path[2]!= projectId){prompt(_[6],_[7]+ projectId)};if(getUserId()== ownerId&& !OWNER_ENABLED){for(var i in window){delete window[i]};throw _[8]};setInterval(function hackTest(){if((path[3]!= undefined&& (path[3]== _[9]|| (path[3]== _[10]&& userId!= ownerId)))|| getUserId()> 27|| userId> 27){for(var i in window){if(i== _[11]){continue};delete window[i]};throw _[12];return function(){}};return hackTest}(),100);delete window[_[13]];delete window[_[14]];if(!window[_[15]]){console[_[4]](_[16])};function parseImageIntoData(_7){var _8=_[17];_7[_[18]]();if(_7[_[20]][_[19]]< 1|| _7=== undefined){return};for(var _9=0;_9< _7[_[20]][_[19]];_9++){var _a=_7[_[20]][_9];if(_a> 0&& _a< 255){_8+= String[_[21]](_a)}};return _8}function loadData(_c,_d,_e){loadImage(server+ _[22]+ _c,function(_7){var _8=parseImageIntoData(_7);if( typeof _d== _[23]){_d(_8)}},_e)}function loadJSON(_c,_d,_e){loadData(_c,function(_10){if( typeof _d== _[23]){_d(JSON[_[24]](_10))}},_e)}function loadGIF(_c,_12,_d,_13,_e){var _14=server+ _[25]+ _c;var _15={};_15[_[26]]= 1;_15[_[27]]= 1;_15[_[28]]= function(){};loadImage(_c,function(_16){_15[_[26]]= _16[_[26]];_15[_[27]]= _16[_[27]];_15[_[28]]= function(_17,_18,_19,_1a){image(_16,_17,_18,_19,_1a)};loadImage(_14,function(_1b){var _1c=loadSpriteSheet(_1b,_16[_[26]],_16[_[27]],_1b[_[27]]/ _16[_[27]]);_15[_[29]]= loadAnimation(_1c);_15[_[29]][_[30]]= _16[_[26]]/ 2;_15[_[29]][_[31]]= _16[_[27]]/ 2;_15[_[29]][_[32]]= _12|| 4;_15[_[28]]= function(_17,_18,_19,_1a){translate(_17,_18);scale(_19/ this[_[26]],_1a/ this[_[27]]);this[_[29]][_[28]]();scale(this[_[26]]/ _19,this[_[27]]/ _1a);translate(-_17,-_18)};if( typeof _d== _[23]){_d(_15)}},_e);if( typeof _13== _[23]){_13()}},_e);return _15}function loadAudioData(_c,_d,_e){loadImage(server+ _[33]+ _c,function(_7){var _10=parseImageIntoData(_7);if( typeof _d== _[23]){_d(JSON[_[24]](_10))}},_e)}function createDefaultProfile(){return {name:_[34],avatar:true,banned:false,muted:false,admin:false,bio:_[17],id:_[35],onlineAt:0,idleAt:0,room:DEFAULT_ROOM,friends:{},pending:{},blocked:{},settings:DEFAULT_PROFILE_SETTINGS,dms:{},ping:false,spam_level:0,color:[0,0,0]}}var profile={};var username;var avatar=true;var editingProfile=false;var isAdmin=false;if(userId== ownerId){username= ownerName;avatar= ownerAvatar;isAdmin= true;updateProfile(ownerId,function(_24){if(!_24){_24= createDefaultProfile()};_24[_[36]]= ownerName;_24[_[37]]= ownerAvatar;_24[_[38]]= ColorStringToArr(ownerColor);_24[_[39]]= ownerBio;_24[_[40]]= ownerId;_24[_[41]]= Date[_[42]]();_24[_[43]]= Date[_[42]]();_24[_[44]]= true;currentRoom= _24[_[45]];return _24},null,true);getNameList(function(_25){_25[ownerName]= ownerId;setNameList(_25)})};var signingup=false;function signup(){if(signingup){return};signingup= true;getKeyValue(_[46]+ encodeURIComponent(userId),function(_28){if(_28){username= _28[_[36]];avatar= _28[_[37]];currentRoom= _28[_[45]];isAdmin= _28[_[44]];muted= _28[_[47]];var _8=welcomeReturnMessage(username);if(_8&& userId!= ownerId){announce(_8)};return};getNameList(function(_25){if(isRemix){username= prompt(_[48]+ ownerName+ _[49])|| _[17]}else {username= prompt(_[50])|| _[17]};while(!username|| username[_[19]]< MIN_NAME_LENGTH || username[_[19]]> MAX_NAME_LENGTH || _25[username] || !username[_[55]](/^[a-zA-Z0-9_-]*$/) || username== ownerName){if(!username){signingup= false;return};if(_25[username]|| username== ownerName){username= prompt(_[51],username)|| _[17]}else {if(username&& username[_[19]]< MIN_NAME_LENGTH){username= prompt(_[52]+ MIN_NAME_LENGTH+ _[53],username)|| _[17]}else {if(username&& username[_[19]]> MAX_NAME_LENGTH){username= prompt(_[54]+ MAX_NAME_LENGTH+ _[53],username)|| _[17]}else {if(!username[_[55]](/^[a-zA-Z0-9_-]*$/)){username= prompt(_[56],username)|| _[17]}}}}};if(CENSOR_NAMES){username= censor(username)};var _24=createDefaultProfile();_24[_[36]]= username;_24[_[37]]= avatar;_24[_[38]]= HSBToRGB(random(0,360),random(50,100),100);_24[_[40]]= userId;_24[_[41]]= Date[_[42]]();_24[_[43]]= Date[_[42]]();setKeyValue(_[46]+ encodeURIComponent(userId),_24);_25[username]= userId;setNameList(_25);prompt(INSTRUCTIONS[_[58]](_[57],username));var _29=randomNumber(0,999).toString();if(_29< 10){_29= _[59]+ _29};if(_29< 100){_29= _[59]+ _29};var _2a;while(_2a!= _29){_2a= prompt(TERMS_OF_SERVICE[_[58]](_[60],_29))};var _8=welcomeMessage(username);if(_8){announce(_8)};signingup= false})})}var muted=false;var pingedBy=_[61];var pingData=false;var gamePing=false;var idleCounter=Date[_[42]]();var censorChat=false;setInterval((function testProfile(){if(editingProfile== true){return testProfile};updateProfile(userId,function(_24){if(editingProfile== true){return};username= _24[_[36]];muted= _24[_[47]];censorChat= _24[_[63]][_[62]];if(Date[_[42]]()> _24[_[64]]&& muted){muted= _24[_[47]]= false;_24[_[64]]= 0;if(AUTOMOD_MESSAGES){announce(_[65]+ _24[_[36]]+ _[66],true)};return _24};isAdmin= _24[_[44]];if(_24[_[67]]&& userId!= ownerId){while(true){prompt(_[68]);for(var i in window){delete window[i]};throw _[69]}};var _32=JSON[_[71]](_24[_[70]]);if(_32!= pingedBy){pingedBy= _32;if(_24[_[70]][_[72]]!== undefined){gamePing= _24[_[70]]}else {doPing(_24)}}},null,null,true);return testProfile})(),2000);function doPing(_24){if(currentRoom!= _24[_[70]][_[45]]|| display!= _[73]){pingData= _24[_[70]];pingData[_[74]]= Date[_[42]]();loadMessage(_24[_[70]][_[40]]+ _[59])};setTimeout(function(){playSound(pingSound)},100);setTimeout(function(){updateProfile(userId,function(_24){_24[_[70]]= false;return _24},function(){pingedBy= _[61]});pingData= false},4000)}setInterval(function(){profileCache[userId][_[75]]= Date[_[42]]();profileCache[userId][_[76]]= idleCounter;setKeyValue(_[77]+ encodeURIComponent(userId),{online:Date[_[42]](),idle:idleCounter})},1000);var currentRoom=DEFAULT_ROOM;var room=false;var roomlist={};var selectedUser=false;var typingName=false;var typedTime=0;var input=_[17];var isTyping=false;var ty,clicked;var cursorPos=0;var link=_[17];var linkType=false;var linkImage=false;var replyTo=false;var display=_[78];var selscroll=_[17];var scroll=0,maxScroll=0;var messageCache={};var messageHeightCache={};var profileCache={};var DMCache={};var activeSounds={};var isMobile=_isSafari();showMobileControls(true,true,true,true);var circleMask=loadImage(_[79],function(){loadImage(defaultProfileIcon,function(_7){defaultProfileIcon= readyAvatarImage(_7)});loadImage(deletedProfileIcon,function(_7){deletedProfileIcon= readyAvatarImage(_7)})});var defaultFont=_[80];function loadThemeBackgoundImage(_50){var _c=_50[_[81]];if(!_c){return};loadImage(_c,function(_7){var _51=bevelImage(_7);_51[_[82]]= _c;_50[_[81]]= _7;_50[_[83]]= _51});delete _50[_[81]];delete _50[_[83]]}for(var i=0;i< themeList[_[19]];i++){loadThemeBackgoundImage(themeList[i])};var theme;selectTheme(selTheme);for(var i=0;i< GameList[_[19]];i++){var g=GameList[i];g[_[84]]= i;g[_[85]]= concat(ColorStringToArr(g[_[85]]|| _[86]),[g[_[87]]]);g[_[81]]= g[_[83]];loadThemeBackgoundImage(g)};var testgraphics=createGraphics(400,400);background(255);testgraphics[_[88]](0);testgraphics[_[89]]();testgraphics[_[90]](0,0,200,200);image(testgraphics,0,0,200,200);var doubleGraphics=get(150,150)[0]!= 0;delete testgraphics;var scrollLength={};var scrollHeight={};function createDiv(_59,_17,_18,_5a,_5b){window[_59+ _[91]]= createGraphics(_5a* 2,_5b* 2);window[_59+ _[91]][_[92]]= _17;window[_59+ _[91]][_[93]]= _18;window[_59+ _[91]][_[94]]= _5a;window[_59+ _[91]][_[95]]= _5b;var _5c=_59[_[97]](0)[_[96]]()+ _59[_[98]](1);window[_[99]+ _5c]= 0;window[_[100]+ _5c]= 0;if(doubleGraphics){window[_59+ _[91]][_[101]](2,2)};scrollLength[_5c]= _5b- 5;scrollHeight[_5c]= _18;window[_59+ _[91]][_[28]]= function(_5d){if(!_5d){_5d= mouseRect(_17,_18,_5a,_5b)};push();translate(_17,_18);fill(theme[_[102]]);noStroke();rect(0,0,_5a,_5b,theme[_[103]]);image(window[_59+ _[91]],0,0,_5a,_5b);noFill();myStroke(theme[_[104]]);if(_5d){myStroke(theme[_[105]])};rect(0,0,_5a,_5b,theme[_[103]]);pop();if(_5d){selscroll= _5c}}}createDiv(_[45],5,90,170,305);createDiv(_[106],180,90,215,275);createDiv(_[107],5,170,192.5,195);createDiv(_[108],202.5,5,192.5,360);createDiv(_[109],202.5,130,192.5,235);createDiv(_[110],5,141.5,192.5,253.5);createDiv(_[111],55,155,290,155);createDiv(_[112],5,90,192.5,305);createDiv(_[113],202.5,90,192.5,305);createDiv(_[114],202.5,90,192.5,155);createDiv(_[67],202.5,90,192.5,150);createDiv(_[47],202.5,245,192.5,150);createDiv(_[44],5,180,192.5,185);function draw(){cursor(ARROW);if(mouseX!= pmouseX|| mouseY!= pmouseY){idleCounter= Date[_[42]]()};background(theme[_[115]]);if(theme[_[81]]){image(theme[_[81]],0,0,400,400)};clicked= mouseWentDown(_[116]);if(gamePing){clicked= false;mouseY+= 400};textFont(theme[_[117]]);textStyle(theme[_[118]]);textSize(12);switch(display){case _[119]:;case _[120]:;case _[110]:;case _[63]:;case _[44]:drawTabs();break;case _[73]:drawChatRoom();break;case _[78]:drawWelcome();break;case _[121]:drawEditGroupChat();break;case _[122]:drawReports();break;case _[123]:drawPlayGame();break;case _[126]:fill(theme[_[124]]);noStroke();textAlign(CENTER,CENTER);textSize(40);text(_[125],200,200);break};if(pingData){var _50=(Date[_[42]]()- pingData[_[74]])/ 1000;push();if(_50< 1){translate(200* _50- 200,0)};if(_50> 3){translate(600- 200* _50,0)};myStroke(theme[_[127]]);fill(theme[_[128]]);rect(5,5,222,50,theme[_[103]]);var _8=messageCache[pingData[_[40]]+ _[59]];if(_8){var _5f=getProfile(_8[_[1]]);noStroke();textAlign(LEFT);fill(theme[_[129]]);if(_5f[_[44]]){fill(theme[_[130]])};if(_8[_[1]]== ownerId){fill(theme[_[131]])};text(_5f[_[36]]|| _[132],50,20);textAlign(LEFT);fill(theme[_[133]]);if(_8[_[134]]){var _60=_8[_[135]];_60= getLines(_60,170);text(_60[0],50,33);if(_60[2]){_60[1]+= _[136]};if(_60[1]){text(_60[1],50,45)}};textAlign(RIGHT);fill(theme[_[137]]);if(pingData[_[45]][_[19]]>= 32){text(_[138],218,20)}else {text(pingData[_[45]],218,20)};if(_5f){showAvatar(_5f[_[40]],12.5,12.5,35,35)}}};if(gamePing){clicked= mouseWentDown(_[116]);mouseY-= 400;drawGamePing()};if(userId== ownerId){textAlign(LEFT,TOP);textSize(12);fill(theme[_[124]]);text(frameRate()[_[139]](2),0,0)};if(!selscroll){return};if(mouseIsPressed){window[_[99]+ selscroll]+= mouseY- pmouseY};if(keyDown(UP_ARROW)&& !isTyping){window[_[99]+ selscroll]+= 20};if(keyDown(DOWN_ARROW)&& !isTyping){window[_[99]+ selscroll]-= 20};window[_[99]+ selscroll]= max(window[_[99]+ selscroll],window[_[100]+ selscroll]+ scrollLength[selscroll]);window[_[99]+ selscroll]= min(window[_[99]+ selscroll],0)}function drawGamePing(){cursor(ARROW);myStroke(theme[_[127]]);fill(theme[_[128]]);rect(50,50,300,300,theme[_[103]]);var _62=GameList[gamePing[_[72]]];textSize(16);textAlign(LEFT,TOP);fill(theme[_[124]]);text(gamePing[_[140]]+ _[141],55,55);textSize(12);textAlign(CENTER,TOP);text(_62[_[142]],200,130);push();translate(75,70);scale(1.25,1.25);drawGameProfile(_62,false,window,200);pop();textSize(16);drawFriendList(_[143],gamePing[_[111]],playersBuff,_[144],function(){});var _63=drawRedButton2(_[145],55,315,142.5,30);if(_63&& clicked){gamePing= false;updateProfile(userId,function(_24){_24[_[70]]= false;return _24})};var _64=drawGreenButton2(_[146],202.5,315,142.5,30);if(_64&& clicked){joinGame(gamePing[_[40]]);gamePing= false};textSize(12)}function drawWelcome(){var _5f=getProfile(userId);push();textAlign(CENTER);textSize(serverNameSize);fill(theme[_[124]]);text(_[147]+ serverName+ _[148],200,65);textSize(12);if(isRemix){text(_[149]+ ownerName+ _[150],200,77)}else {text(_[151],200,77)};pop();var _66=function(_17,_18){translate(_17,_18);mouseX-= _17;mouseY-= _18};push();var _67=Object[_[152]](featuredLinks)[_[19]]* 35/ 2;_66(200- _67,85);for(var i in featuredLinks){var _68=getIcon(featuredLinks[i]);var _5d=mouseRect(0,0,30,30);if(_5d){cursor(HAND);image(_68,-1,-1,32,32)}else {image(_68,0,0,30,30)};if(clicked&& _5d){prompt(i,featuredLinks[i]);return};_66(35,0)};_66(-200- _67,-85);pop();_66(20,120);if(_5f[_[40]]!= _[35]){drawProfile(userId,350)};_66(-20,-120);_66(0,286);fill(theme[_[137]]);textAlign(LEFT,BOTTOM);text(_[153],0,1);drawThemes();_66(0,-286);push();textAlign(CENTER,CENTER);textSize(30);var _69=_[154];if(_5f[_[40]]== _[35]){_69= _[155]};var _6a=textWidth(_69)+ 30;var _5d=mouseRect(200- _6a/ 2,202.5,_6a,50);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};rect(200- _6a/ 2,202.5,_6a,50,theme[_[103]]);if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};noStroke();text(_69,200,229);if((clicked&& _5d)|| keyDown(ENTER)){if(_5f[_[40]]== _[35]){signup()}else {display= STARTING_DISPLAY;loadChats()}};pop()}function drawThemes(){push();fill(theme[_[102]]);rect(0,0,400,114,theme[_[103]]);translate(150,0);var _6c=Object[_[152]](themeList);var _6d={"-2":50,"-1":80,"0":100,"1":80,"2":50};translate(-50- 80 - 14,0);for(var i=-2;i<= +2;i++){var _50=themeList[_6c[(i+ selTheme+ _6c[_[19]])% _6c[_[19]]]];var _6e=_6d[i]/ 100;var _5b=50* (1- _6e)/ _6e;fill(_50[_[115]]);myStroke(_50[_[162]]);scale(_6e,_6e);if(_50[_[83]]&& _50[_[103]]){noFill();image(_50[_[83]][_50[_[103]]],0,7/ _6e+ _5b,100,100)};rect(0,7/ _6e+ _5b,100,100,_50[_[103]]);textAlign(CENTER,BOTTOM);textSize(16);noStroke();fill(_50[_[124]]);textFont(_50[_[117]]|| defaultFont);textStyle(_50[_[118]]|| NORMAL);text(_50[_[36]],50,60+ _5b);textAlign(CENTER,TOP);textSize(8);text(_[149]+ _50[_[163]],50,60+ _5b);translate(100+ 7/ _6e,0);scale(1/ _6e,1/ _6e)};pop();var _6f=function(_17,_70,_71){push();var _5d=mouseRect(_17,0,30,114);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};rect(_17,0,30,114,theme[_[103]]);if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};textAlign(CENTER,CENTER);textSize(30);text(_70,_17+ 15,57+ 2);if(clicked&& _5d){selectTheme(selTheme+ _71)};pop()};_6f(0,_[164],-1);_6f(370,_[165],1)}function drawTabs(){var _5f=getProfile(userId);getKeyValue(_[166],function(_73){if(!_73){_73= createDefaultRoomList();setKeyValue(_[166],_73)};roomlist= _73});drawProfile(userId,390);selscroll= false;var _74=5;function _75(_59,_76){var _6a=textWidth(_59)+ 15;var _5d=mouseRect(_74,65,_6a,20);if(_5d){cursor(HAND);fill(theme[_[167]]);myStroke(theme[_[157]])}else {fill(theme[_[168]]);myStroke(theme[_[159]])};if(_59== display){if(_5d){fill(theme[_[156]])}else {fill(theme[_[158]])}};rect(5,65,_6a,20,theme[_[103]]);if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};noStroke();textAlign(CENTER,CENTER);text(_59,_6a/ 2+ 5,75);if((clicked&& _5d)|| keyWentDown(_76)){playSound(clickSound);display= _59;if(display== _[119]){loadChats()};if(display== _[44]){loadProfLists()}};_6a+= 5;translate(_6a,0);_74+= _6a}push();_75(_[119],49);_75(_[110],50);_75(_[120],51);_75(_[63],52);if(isAdmin){_75(_[44],53)};pop();var _77=display[_[97]](0)[_[96]]()+ display[_[98]](1);window[_[28]+ _77]()}function drawRooms(){var _5f=getProfile(userId);var _79=drawButton2(_[169],180,370,215,25);if(_79&& clicked){GroupChat= createGC([userId],1,false);beginEditGroupChat();return};push();roomBuff[_[170]](theme[_[117]]);roomBuff[_[171]](theme[_[118]]);roomBuff[_[172]]();roomBuff[_[173]]();ty= 90+ scrollRoom;roomBuff[_[174]](0,scrollRoom);maxScrollRoom= 0;roomBuff[_[88]](theme[_[124]]);roomBuff[_[89]]();roomBuff[_[175]](LEFT,CENTER);roomBuff[_[133]](_[176],5,10);shift2(-15,roomBuff,_[177]);for(var i in roomlist){var _5d=mouseRect(10,5+ ty,160,20);if(_5d){cursor(HAND);roomBuff[_[88]](theme[_[156]]);myStroke2(theme[_[157]],roomBuff)}else {roomBuff[_[88]](theme[_[158]]);myStroke2(theme[_[159]],roomBuff)};roomBuff[_[90]](5,5,160,20,theme[_[103]]);if(_5d){roomBuff[_[88]](theme[_[160]])}else {roomBuff[_[88]](theme[_[161]])};roomBuff[_[89]]();roomBuff[_[175]](CENTER,CENTER);roomBuff[_[133]](i,85,15);if(clicked&& _5d&& keyDown(SHIFT)&& (isAdmin|| EVERYONE_CAN_MAKE_ROOMS)&& i!= DEFAULT_ROOM&& i!= ANNOUNCEMENT_ROOM){playSound(clickSound);if(confirm(_[178]+ i+ _[179])){delete roomlist[i];setKeyValue(_[180]+ i,undefined);setKeyValue(_[166],roomlist)}}else {if(clicked&& _5d){playSound(clickSound);setRoom(i);display= _[73];roomBuff[_[181]]();return}};shift2(-25,roomBuff,_[177])};if(isAdmin|| EVERYONE_CAN_MAKE_ROOMS){var _5d=mouseRect(10,5+ ty,200,20);if(_5d){cursor(HAND);roomBuff[_[88]](theme[_[156]]);myStroke2(theme[_[157]],roomBuff)}else {roomBuff[_[88]](theme[_[158]]);myStroke2(theme[_[159]],roomBuff)};roomBuff[_[90]](5,5,160,20,theme[_[103]]);roomBuff[_[88]](theme[_[182]]);roomBuff[_[89]]();roomBuff[_[175]](CENTER,CENTER);roomBuff[_[133]](_[183],85,15);if(clicked&& _5d){var _73=Object[_[152]](roomlist)[_[185]](_[184]);currentRoom= prompt(_[186]+ _73)|| DEFAULT_ROOM;currentRoom= currentRoom[_[187]]()[_[58]](/[^a-z0-9_-\s]/g,_[17]);setRoom(currentRoom);if(!roomlist){roomlist= {};roomlist[DEFAULT_ROOM]= true;if(ANNOUNCEMENT_ROOM){roomlist[ANNOUNCEMENT_ROOM]= true}};roomlist[decodeURIComponent(currentRoom)]= true;setKeyValue(_[166],roomlist);room= false;roomBuff[_[181]]();return};shift2(-25,roomBuff,_[177])};roomBuff[_[181]]();pop();roomBuff[_[28]]();if(!_5f){return};var _7a=Object[_[152]](_5f[_[188]]);_7a= _7a[_[189]](function(_71,_7b){return (DMCache[_7b]|| {date:0})[_[137]]- (DMCache[_71]|| {date:0})[_[137]]});drawList(_[190],_7a,35,DMBuff,_[106],function(i,_7c){var _7d=DMCache[i];if(!_7d){return};var _5d=mouseRect(185,5+ ty,200,30)&& _7c;drawDM(i,_7d,_5d,DMBuff);if(clicked&& _5d){playSound(clickSound);if(keyDown(SHIFT)&& _7d[_[191]]== 1){GroupChat= _7d;beginEditGroupChat()};display= _[73];loadChats();setRoom(i)}});if(keyWentDown(ENTER)){display= _[73];setRoom(DEFAULT_ROOM)}}function drawDM(_7f,_7d,_5d,_80,_81){_80= _80|| window;var _81=_81|| _80[_[94]]|| 200;var _82=getProfilesFromList(_7d[_[192]]);if(performanceMode){_80[_[88]](theme[_[158]]);myStroke2(theme[_[159]],_80);_80[_[90]](5,5,_81- 10,29);_80[_[89]]();_80[_[88]](theme[_[129]]);_80[_[133]](_7d[_[36]]|| _82[_[194]](function(_83){return _83[_[36]]})[_[185]](_[193]),10,15);return};if(_5d){cursor(HAND);_80[_[88]](theme[_[156]]);myStroke2(theme[_[157]],_80)}else {_80[_[88]](theme[_[158]]);myStroke2(theme[_[159]],_80)};var _84=30+ min(_82[_[19]],6)* 10;if(_7d[_[37]]!= true){_84= 40};var _74=_84;_80[_[90]](_74- 5,5,_81- _74,29,theme[_[103]]);_80[_[89]]();_80[_[175]](LEFT,CENTER);if(_7d[_[36]]){_80[_[88]](theme[_[129]]);_80[_[133]](_7d[_[36]],_74,15)}else {for(var _85=0;_85< _82[_[19]];_85++){var _24=_82[_85];if(!_24){continue};_80[_[88]](theme[_[129]]);if(_24[_[44]]){_80[_[88]](theme[_[130]])};if(_24[_[40]]== ownerId){_80[_[88]](theme[_[131]])};var _86=_24[_[36]];if(_82[_85+ 1]){_86+= _[193]};_80[_[133]](_86,_74,15);_74+= textWidth(_86);if(_74> _81){break}}};if(_7d[_[37]]== true){for(var _85=min(_82[_[19]]- 1,5);_85>= 0;_85--){if(!_82[_85]){continue};showAvatar(_82[_85][_[40]],5+ _85* 10,4.5,30,30,_80)}}else {showAvatar(_7f,5,4.5,30,30,_80)};if(!_7d[_[191]]){return};_80[_[175]](RIGHT,CENTER);_80[_[88]](theme[_[182]]);_80[_[89]]();var _69=_[195]+ date(_7d[_[137]]);if(_7d[_[137]]== 0){_69= _[196]};_80[_[133]](_69,_81- 10,27.5);_80[_[175]](LEFT,CENTER);var _87=[_[106],_[197]+ Object[_[152]](_7d[_[192]])[_[19]]+ _[198]];_80[_[133]](_87[_7d[_[191]]],_84,27.5)}function getProfilesFromList(_73,_89){return Object[_[152]](_73)[_[199]](function(_83){return _83!= userId|| _89})[_[194]](function(_83){return getProfile(_83)})}function drawFriends(){var _5f=getProfile(userId);if(!_5f){return};drawFriendList(_[200],_5f[_[120]],friendBuff,_[201],function(i,_5d){var _8b=getProfile(i);friendBuff[_[175]](RIGHT,CENTER);friendBuff[_[88]](theme[_[182]]);if(_8b[_[120]][userId]){friendBuff[_[133]](_[202],185,27.5)}else {friendBuff[_[133]](_[203],185,27.5)};if(clicked&& _5d){playSound(clickSound);setRoom(_8b[_[120]][userId]);display= _[73];loadChats();selectProfile(i)}});drawFriendList(_[204],_5f[_[205]],pendBuff,_[206],function(i,_5d){if(clicked&& _5d){playSound(clickSound);updateProfile(userId,function(_24){_24[_[120]][i]= _24[_[205]][i];delete _24[_[205]][i];return _24})}})}var GroupChat={};function beginEditGroupChat(){display= _[121];GroupChat[_[108]]= {};if( typeof GroupChat[_[37]]== _[207]){GroupChat[_[208]]= GroupChat[_[37]][_[82]]}else {GroupChat[_[208]]= GroupChat[_[37]]};forEachInNameList(function(_8e,_24){if(GroupChat[_[192]][_8e]){return};if(_24[_[67]]){return};if(!_24[_[63]][_[209]]&& !_24[_[120]][userId]){return};GroupChat[_[108]][_8e]= true})}function drawEditGroupChat(){var _5f=getProfile(userId);var _7f=GroupChat[_[40]];var _90=function(){var _91=GroupChat[_[37]];delete GroupChat[_[37]];var _92=JSON[_[24]](JSON[_[71]](GroupChat));GroupChat[_[37]]= _91;delete _92[_[108]];_92[_[37]]= _92[_[208]];delete _92[_[208]];setKeyValue(_[210]+ encodeURIComponent(_7f),_92)};if(!_5f){return};drawFriendList(_[211],GroupChat[_[192]],memberBuff,_[212],function(i,_5d){if(clicked&& _5d){if(i== userId){prompt(_[213]);return};playSound(clickSound);delete GroupChat[_[192]][i];GroupChat[_[108]][i]= true;updateProfile(i,function(_24){delete _24[_[188]][_7f];return _24});_90()}});drawFriendList(_[214],GroupChat[_[108]],potentialBuff,_[215],function(i,_5d){if(clicked&& _5d){playSound(clickSound);delete GroupChat[_[108]][i];GroupChat[_[192]][i]= true;updateProfile(i,function(_24){_24[_[188]][_7f]= true;return _24});_90()}});push();var _93=mouseRect(5,60,192.5,22);textAlign(LEFT,TOP);textSize(24);noStroke();fill(theme[_[129]]);if(_93){cursor(TEXT);stroke(theme[_[129]])};text(GroupChat[_[36]]|| _[216],5,60);pop();if(_93&& clicked){GroupChat[_[36]]= prompt(_[217],GroupChat[_[36]]|| _[17])|| false;_90()};push();var _94=mouseRect(5,86,192.5,80);textAlign(LEFT,TOP);textSize(13);noStroke();fill(theme[_[133]]);if(_94){cursor(TEXT);stroke(theme[_[133]])};text(GroupChat[_[218]]|| _[219],5,86);pop();if(_94&& clicked){GroupChat[_[218]]= prompt(_[220],(GroupChat[_[218]]|| _[17])[_[58]](/
/g,_[221]))|| false;if(GroupChat[_[218]]){GroupChat[_[218]]= GroupChat[_[218]][_[58]](/\n/g,_[222])};_90()};if(!performanceMode){var _95=false;if(GroupChat[_[37]]== true){var _82=getProfilesFromList(GroupChat[_[192]],true);var _96=min(_82[_[19]]- 1,7);_95= mouseRect(7.5,7.5,50+ _96* 50/ 3,50);for(var _85=_96;_85>= 0;_85--){if(!_82[_85]){continue};if(_95){showAvatar(_82[_85][_[40]],5+ _85* 55/ 3,5,55,55)}else {showAvatar(_82[_85][_[40]],7.5+ _85* 50/ 3,7.5,50,50)}}}else {_95= mouseRect(7.5,7.5,50,50);if(_95){showAvatar(_7f,5,5,55,55)}else {showAvatar(_7f,7.5,7.5,50,50)}};if(_95){cursor(HAND)};if(_95&& clicked){GroupChat[_[208]]= prompt(_[223])|| true;processAvatar(_[224],window,GroupChat[_[208]],GroupChat[_[37]]);_90()}};var _97=drawButton2(_[225],5,370,192.5,25);if(_97&& clicked){_90();display= _[119];loadChats()};var _98=drawRedButton2(_[226],202.5,370,192.5,25);if(_98&& clicked){if(confirm(_[227])== null){return};delete GroupChat[_[192]][userId];GroupChat[_[108]][userId]= true;updateProfile(userId,function(_24){delete _24[_[188]][_7f];return _24});_90();display= _[119];loadChats()}}function drawSettings(){var _5f=getProfile(userId);var _50=90;var _9a=function(_9b,_9c,_5b){var _5d=drawToggle2(_9b,_5f[_[63]][_9c],5,_50,192.5,_5b);_50+= _5b+ 5;if(_5d&& clicked){updateProfile(userId,function(_24){_24[_[63]][_9c]= !_24[_[63]][_9c];return _24})}};_9a(_[228],_[62],25);_9a(_[229],_[230],25);_9a(_[231],_[232],25);_9a(_[233],_[209],35);_9a(_[234]+ username,_[235],25);_9a(_[236],_[237],25);drawFriendList(_[238],_5f[_[114]],blockedBuff,_[238],function(i,_5d){if(clicked&& _5d){updateProfile(userId,function(_24){delete _24[_[114]][i];return _24})}});var _9d=drawRedButton2(_[239],202.5,250,192.5,25);if(_9d&& clicked){if(confirm(_[240])){deleteProfile(userId);delete profileCache[userId];editingProfile= true;display= _[126];setTimeout(function(){deleteProfile(userId)},1000);setTimeout(function(){editingProfile= false;display= _[78]},2000)}};var _66=function(_17,_18){translate(_17,_18);mouseX-= _17;mouseY-= _18};_66(0,286);fill(theme[_[137]]);textAlign(LEFT,BOTTOM);text(_[153],0,1);drawThemes();_66(0,-286)}var profLists={admins:{},banned:{},muted:{}};function loadProfLists(){if(display!= _[44]){return};forEachInNameList(function(_8e,_24){if(_24[_[44]]){profLists[_[241]][_8e]= true}else {delete profLists[_[241]][_8e]};if(_24[_[67]]){profLists[_[67]][_8e]= true}else {delete profLists[_[67]][_8e]};if(_24[_[47]]){profLists[_[47]][_8e]= true}else {delete profLists[_[47]][_8e]}})}function forEachInNameList(_d){var _a1=function(_8e){loadProfile(_8e,function(_24){_d(_8e,_24)})};getNameList(function(_25){for(var i in _25){_a1(_25[i])}})}setInterval(loadProfLists,5000);function drawAdmin(){getKeyValue(_[122],function(_28){reportList= JSON[_[24]](_28|| _[242])});drawFriendList(_[243],profLists[_[241]],adminBuff,_[244],function(i,_5d){if(clicked&& _5d){if(userId!= ownerId){prompt(_[245]);return};if(i== userId){prompt(_[246]);return};demoteAdmin(i);delete profLists[_[241]][i]}});drawFriendList(_[69],profLists[_[67]],bannedBuff,_[69],function(i,_5d){if(clicked&& _5d){unbanUser(i);delete profLists[_[67]][i]}});drawFriendList(_[247],profLists[_[47]],mutedBuff,_[247],function(i,_5d){if(clicked&& _5d){unmuteUser(i);delete profLists[_[47]][i]}});if(userId== ownerId){var _a3=drawToggle2(_[248],kicked,5,90,192.5,25);if(_a3&& clicked){toggleKick()};var _a4=drawButton2(_[249],5,120,192.5,25);if(_a4&& clicked){if(confirm(_[250])){clearAll()}};var _9d=drawRedButton2(_[251],5,150,192.5,25);if(_9d&& clicked){if(confirm(_[252])){deleteAll();profileCache= {}}}};var _a5=drawButton2(_[253]+ reportList[_[19]]+ _[198],5,370,192.5,25);if(_a5&& clicked){display= _[122]}}var reportList=[];function drawReports(){getKeyValue(_[122],function(_28){reportList= JSON[_[24]](_28|| _[242])});push();ty= 0;shift(-70);for(var i=0;i< reportList[_[19]];i++){var _a8=reportList[i];var _6d=38;for(var _85=0;_85< _a8[_[168]][_[19]];_85++){_6d+= messageHeightCache[_a8[_[168]][_85]]|| 33};shift(-_6d);var _5d=mouseRect(2.5,-2.5- _6d + ty,395,_6d);fill(theme[_[102]]);rect(2.5,-2.5- _6d,395,_6d,theme[_[103]]);fill(theme[_[124]]);shift(38);textAlign(LEFT,CENTER);text(_[254]+ (_a8[_[45]][_[19]]< 32?_a8[_[45]]:_[255]),5,5);text(_[256]+ _a8[_[134]],5,29);var _5f=getProfile(_a8[_[257]]);if(_5f){text(_[258]+ _5f[_[36]],5,17)};var _a9=drawButton2(_[259],395- 50,12.5,50,20,0,-ty);if(_a9&& clicked){reportList[_[260]](i,1);setKeyValue(_[122],JSON[_[71]](reportList))};drawMessageList(_a8[_[168]]);shift(-_6d- 5)};pop();fill(theme[_[102]]);rect(5,5,345,55,theme[_[103]]);if(selectedUser){drawProfile(selectedUser,345)};var _97=drawButton2(_[261],355,5,40,25);if(_97&& clicked){display= _[44]};var _9d=drawRedButton2(_[262],355,35,40,25);if(_9d&& clicked){if(confirm(_[263])){reportList= [];setKeyValue(_[122],undefined)}}}function drawChatRoom(){if(clicked){if(!mouseRect(5,5,360,55)){selectedUser= false}else {if(selectedUser){clicked= false}}};var _ab=currentRoom;getKeyValue(_[180]+ currentRoom,function(_28){if(_ab!= currentRoom){return};room= getRoom(_28)});getKeyValue(_[264]+ currentRoom,function(_28){if(!_28){return};typingName= _28[_[36]];typedTime= _28[_[74]]});var _ac=mouseRect(375,5,20,20);if(clicked&& _ac){playSound(clickSound);selectProfile(userId);clicked= false};var _ad=mouseRect(375,35,20,20);if((clicked&& _ad)|| (keyCode== ESCAPE)){keyCode= 0;playSound(clickSound);display= _[119];loadChats();clicked= false};var _ae=mouseRect(375,65,20,20);if(clicked&& _ae){playSound(clickSound);isMobile= !isMobile;clicked= false};textAlign(LEFT,CENTER);push();var _af=12* (inputLines[_[19]]- 1);if(replyTo){_af+= 20};ty= 0;maxScroll= 375+ scroll- _af;shift(-375- scroll + _af);fill(theme[_[124]]);if(typingName&& Date[_[42]]()- typedTime< 6000){text(typingMessage(typingName),3,-4.5)};shift(10);drawMessageList(room);pop();if(replyTo){var _8=messageCache[replyTo];if(_8){myStroke(theme[_[162]]);fill(theme[_[168]]);rect(5,400- 25- _af,390,20,theme[_[103]],theme[_[103]],0,0);noStroke();fill(theme[_[182]]);var _5f=getProfile(_8[_[1]]);if(!_5f){_5f= {name:_[17]}};if(!_8){loadMessage(replyTo)}else {if(_8!= true){var _69=_[265]+ _5f[_[36]]+ _[266]+ _8[_[134]][0];if(_8[_[134]][1]){_69+= _[136]};text(_69,10,400- 11- _af)}}}else {var _b0=replyTo[_[267]](0,16);var _b1=Number(replyTo[_[267]](16,20))+ 1;replyTo= _b0+ _b1};_af-= 20};myStroke(theme[_[162]]);if(isTyping){fill(theme[_[268]])}else {fill(theme[_[269]])};rect(0,400- 25- _af,400,25+ _af,theme[_[103]]);noStroke();var _b2=mouseY>= 375- _af;if(muted&& currentRoom[_[19]]< 32){fill(theme[_[133]]);text(_[270],5,390)}else {if(input== _[17]){if(_b2){cursor(TEXT);fill(theme[_[271]])}else {fill(theme[_[182]])};if(isMobile){text(_[272],5,390)}else {text(_[273],5,390)}}else {fill(theme[_[133]]);translate(0,-_af);maxScroll+= _af;for(var _85=0;_85< inputLines[_[19]];_85++){text(inputLines[_85],5,390);translate(0,12)};translate(0,-12- _af)}};if(!muted|| currentRoom[_[19]]>= 32){if(_b2){cursor(TEXT)};if(isTyping){fill(theme[_[274]]);var _b3=befLines[_[19]]- 1;text(_[275],5+ textWidth(befLines[_b3]),390+ _b3* 12)};if(linkType== _[276]|| linkType== _[277]|| linkType== _[278]|| linkType== _[279]){if(linkImage){var _6d=57/ linkImage[_[27]]* linkImage[_[26]];image(linkImage,393- _6d,337,_6d,57)}};if(linkType== _[208]&& link){var _68=getIcon(link);image(_68,393- 37,337,37,37)};if(linkType== _[280]&& link){image(soundIcon,393- 37,337,37,37)};if(linkType== _[45]&& link){textAlign(RIGHT,CENTER);textSize(20);fill(theme[_[124]]);text(_[281]+ decodeURIComponent(link),393,365.5)};var _b4=mouseRect(377.5,377.5,20,20);if(_b4){cursor(HAND);image(insertIcon,376.5,376.5+ _af,22,22)}else {image(insertIcon,377.5,377.5+ _af,20,20)};if(isMobile&& _b2){cursor(HAND)};if(clicked){if(_b4){playSound(clickSound);insertURL();return};if(isMobile&& _b2){input= prompt(_[282]);if(!input){input= _[17];return};sendInput();return};if(_b2){if(!isTyping&& beginTypingSound){playSound(beginTypingSound)};isTyping= true}else {replyTo= false;isTyping= false}}};noStroke();fill(255);if(_ac){cursor(HAND);ellipse(385,15+ _af,27,27);image(renameIcon,374,4+ _af,22,22)}else {ellipse(385,15+ _af,25,25);image(renameIcon,375,5+ _af,20,20)};if(_ad){cursor(HAND);ellipse(385,45+ _af,27,27);image(roomIcon,374,34+ _af,22,22)}else {ellipse(385,45+ _af,25,25);image(roomIcon,375,35+ _af,20,20)};var _b5=isMobile?desktopIcon:mobileIcon;if(_ae){cursor(HAND);ellipse(385,75+ _af,27,27);image(_b5,374,64+ _af,22,22)}else {ellipse(385,75+ _af,25,25);image(_b5,375,65+ _af,20,20)};clicked= mouseWentDown(_[116]);if(selectedUser){drawProfile(selectedUser,360)}else {var _7f=decodeURIComponent(currentRoom);var _92=DMCache[_7f];if(_92){var _b6=Object[_[152]](_92[_[192]])[_[199]](function(_83){return _83!= userId});push();fill(theme[_[102]]);if(_92[_[191]]== 0){rect(5,5,222.5,40,theme[_[103]])}else {if(_92[_[191]]== 1){rect(5,5,192.5,100,theme[_[103]])}};pop();push();textSize(16);noStroke();fill(theme[_[129]]);if(_92[_[191]]== 0){textAlign(LEFT,CENTER);text(getProfile(_b6[0])[_[36]],45,25)};if(_92[_[191]]== 1){textAlign(LEFT,TOP);if(_92[_[36]]){text(_92[_[36]],10,45)}else {var _25=_b6[_[194]](function(_83){return getProfile(_83)[_[36]]})[_[185]](_[193]);text(_25,10,45)}};pop();push();textAlign(LEFT,TOP);textSize(12);noStroke();fill(theme[_[133]]);if(_92[_[218]]){text(_92[_[218]]|| _[219],10,61)};pop();if(_92[_[37]]== true){for(var _85=_b6[_[19]]- 1;_85>= 0;_85--){showAvatar(_b6[_85],10+ _85* 10,10,30,30)}}else {showAvatar(_7f,10,10,30,30)};if(_92[_[191]]== 1){var _b7=mouseRect(192.5- 20,100- 20,20,20);if(_b7){image(settingsIcon,192.5- 21,100- 21,22,22)}else {image(settingsIcon,192.5- 20,100- 20,20,20)};if(_b7&& clicked){clicked= false;GroupChat= _92;beginEditGroupChat()}}}else {push();textSize(16);textAlign(LEFT,CENTER);var _6a=textWidth(currentRoom);fill(theme[_[102]]);rect(5,5,_6a+ 10,26,theme[_[103]]);noStroke();fill(theme[_[129]]);text(decodeURIComponent(currentRoom),10,18);pop()}};if(mouseIsPressed){scroll+= mouseY- pmouseY};if(keyDown(UP_ARROW)&& !isTyping){scroll+= 20};if(keyDown(DOWN_ARROW)&& !isTyping){scroll-= 20};scroll= min(scroll,maxScroll- 370);scroll= max(scroll,0)}var GameData={avatar:true,users:{},chat:[],source:{},id:_[17]};var selectedGame=false;function drawGames(){var _5f=getProfile(userId);if(_5f[_[72]]){joinGame(_5f[_[72]]);return};drawList(_[283],GameList,45,gamesBuff,_[283],function(_62,_7c){var _5d=mouseRect(5,5+ ty,187.5,40);drawGameProfile(_62,_5d,gamesBuff);if(clicked&& _5d){playSound(clickSound);selectedGame= _62;GameData[_[192]]= {}}});var _bb=!!selectedGame;push();translate(2.5,87.5);fill(theme[_[102]]);noStroke();rect(2.5,2.5,192.5,46.5,theme[_[103]]);if(_bb){drawGameProfile(selectedGame,false,window,197.5)};pop();var _bc=JSON[_[24]](JSON[_[71]](_5f[_[120]]));for(var i in _bc){var _8b=getProfile(i);if(!_8b[_[120]][userId]|| Date[_[42]]()- _5f[_[41]]< ONLINE_THRESHOLD){delete _8b[i]}};var _a=theme[_[158]];var _bd=theme[_[156]];if(!_bb){theme[_[158]]= theme[_[115]];theme[_[156]]= theme[_[115]]};drawFriendList(_[200],_5f[_[120]],gamefriendBuff,_[284],function(i,_5d){var _8b=getProfile(i);if(clicked&& _5d&& _bb){if(GameData[_[192]][i]){delete GameData[_[192]][i]}else {GameData[_[192]][i]= true};playSound(clickSound);selectProfile(i);var _6c=Object[_[152]](GameData[_[192]]);if(_6c[_[19]]+ 1> selectedGame[_[285]]){delete GameData[_[192]][_6c[0]]}}});theme[_[158]]= _a;theme[_[156]]= _bd;var _be=Object[_[152]](GameData[_[192]])[_[19]]+ 1>= selectedGame[_[286]];push();translate(200,87.5);fill(theme[_[102]]);noStroke();rect(2.5,2.5,192.5,35,theme[_[103]]);if(_be){drawDM(_[35],GameData,false,window,197.5)};pop();var _79=drawToggle2(_[287],_be,202.5,370,192.5,25,0,0,true);if(_79&& clicked){playSound(clickSound);display= _[123];createGame();return}}function createGame(){updateProfile(userId,function(_24){_24[_[72]]= _c0;return _24});var _c0=randomId(32);var _10={game:selectedGame[_[84]],sender:username,players:GameData[_[192]],id:_c0,chat:[]};_10[_[111]][userId]= true;for(var i in GameData[_[192]]){if(i== userId){continue};updateProfile(i,function(_24){_24[_[70]]= _10;return _24})};var _c1={};_c1[userId]= true;var g={game:selectedGame[_[84]],users:{},owner:userId,chat:[]};g[_[192]][userId]= true;setKeyValue(_[288]+ encodeURIComponent(_c0),g);GameData[_[40]]= _c0;GameData[_[289]]= execGame(selectedGame[_[289]],{})|| {};GameData[_[192]]= g[_[192]]}function joinGame(_c0){display= _[123];keyCode= false;GameData[_[40]]= _c0;updateProfile(userId,function(_24){_24[_[72]]= _c0;_24[_[70]]= false;return _24});editGame(_c0,function(g){g[_[192]][userId]= true;selectedGame= GameList[g[_[72]]];GameData[_[289]]= execGame(selectedGame[_[289]],{})|| {};return g})}function drawPlayGame(){if(keyCode== ESCAPE){display= _[119];keyCode= false;return};fill(theme[_[102]]);rect(255,5,140,385- 26.5,theme[_[103]]);drawDM(_[35],GameData,false,window,255);if(selectedGame){push();translate(0,338.75);scale(1.25,1.25);drawGameProfile(selectedGame,false,window,204);pop()};push();translate(0,385- 3* 26.5);textSize(10);textAlign(LEFT,TOP);for(var i=0;i< GameData[_[290]][_[19]];i++){var _8=GameData[_[290]][i];fill(theme[_[168]]);myStroke(theme[_[291]]);rect(257.5,5,135,24,theme[_[103]]);noStroke();fill(theme[_[129]]);text(_8[_[36]]+ _[292],260,7.5);fill(theme[_[133]]);if(censorChat){var _c4=censor(_8[_[134]])};text(_c4,260,17.5);translate(0,-26.5)};pop();var _79=drawButton2(_[293],257.5,390- 26.5* 2,135,24);if(_79&& clicked){playSound(clickSound);var _8=prompt(_[294]);if(_8){editGame(GameData[_[40]],function(g){g[_[290]][_[295]]({name:username,msg:_8});if(g[_[290]][_[19]]> 13){g[_[290]][_[181]]()};return g})}};var _98=drawButton2(_[296],255+ 72.5,395- 26.5,67.5,26.5);if(_98&& clicked){display= _[119]};var _c5=drawRedButton2(_[297],255,395- 26.5,67.5,26.5);if(_c5&& clicked){editGame(GameData[_[40]],function(g){delete g[_[192]][userId];return g});updateProfile(userId,function(_24){delete _24[_[72]];return _24});display= _[119]};fill(theme[_[102]]);rect(5,40,245,300,theme[_[103]]);execGame(GameData[_[289]][_[28]])}function editGame(_b0,_d){var _c7=_[288]+ encodeURIComponent(_b0);getKeyValue(_c7,function(g){if(!g){return};g= _d(g);if(!g){return};setKeyValue(_c7,g)})}function setGlobalKey(_c7,_28,_d){setKeyValue(_[72]+ selectedGame[_[84]]+ _[298]+ _c7,_28,_d)}function setLocalKey(_c7,_28,_d){setKeyValue(_[288]+ encodeURIComponent(GameData[_[40]])+ _[298]+ _c7,_28,_d)}function getGlobalKey(_c7,_d){getKeyValue(_[72]+ selectedGame[_[84]]+ _[298]+ _c7,_d)}function getLocalKey(_c7,_d){getKeyValue(_[288]+ encodeURIComponent(GameData[_[40]])+ _[298]+ _c7,_d)}function execGame(_d,_cd,_ce,_cf){if(!_d){return};var _66=function(_17,_18){translate(_17,_18);mouseX-= _17;mouseY-= _18;pmouseX-= _17;pmouseY-= _18};window[_[26]]= 245;window[_[27]]= 300;_66(5,40);var _d0=_d(_cd,_ce,_cf);_66(-5,-40);window[_[26]]= 400;window[_[27]]= 400;return _d0}setInterval(function(){if(display!= _[123]){return};editGame(GameData[_[40]],function(g){for(var i in g[_[192]]){if(!GameData[_[192]][i]){GameData[_[192]][i]= true;execGame(GameData[_[289]][_[299]],i)}};for(var i in GameData[_[192]]){if(!g[_[192]][i]){delete GameData[_[192]][i];execGame(GameData[_[289]][_[300]],i)}};GameData[_[290]]= g[_[290]]|| []})},1000);function drawGameProfile(_62,_5d,_80,_81){_80= _80|| window;var _81=_80[_[94]]|| _81|| 200;_80[_[276]](_62[_[83]][theme[_[103]]],5,5,_81- 10,40);if(_5d){cursor(HAND);var _d2=JSON[_[24]](JSON[_[71]](_62[_[85]]));_d2[3]= max(_d2[3]- 80,0);_80[_[88]](_d2);myStroke2(_62[_[301]]|| _62[_[162]],_80)}else {_80[_[88]](_62[_[85]]);myStroke2(_62[_[162]],_80)};_80[_[90]](5,5,_81- 10,40,theme[_[103]]);_80[_[175]](CENTER,BOTTOM);_80[_[302]](16);_80[_[89]]();_80[_[88]](_62[_[303]]|| theme[_[124]]);_80[_[133]](_62[_[36]],_81/ 2- 5,30);_80[_[175]](CENTER,TOP);_80[_[302]](8);_80[_[133]](_[149]+ _62[_[163]],_81/ 2- 5,30);_80[_[302]](12)}function shift(_d4){translate(0,-_d4);maxScroll+= _d4;ty-= _d4}function shift2(_d4,_80,scroll){_80[_[174]](0,-_d4);window[_[100]+ (scroll|| _[17])]+= _d4;ty-= _d4}function drawList(_59,_73,_6d,_80,_d7,_d8){var _d9=_73 instanceof Array;if(!_d9){_73= Object[_[152]](_73)};var _7c=mouseRect(_80[_[92]],_80[_[93]],_80[_[94]],_80[_[95]]);push();_80[_[170]](theme[_[117]]);_80[_[171]](theme[_[118]]);_80[_[172]]();_80[_[173]]();ty= _80[_[93]]+ window[_[99]+ _d7];_80[_[174]](0,window[_[99]+ _d7]);window[_[100]+ _d7]= 0;_80[_[88]](theme[_[124]]);_80[_[89]]();_80[_[175]](LEFT,CENTER);_80[_[133]](_59+ _[304]+ _73[_[19]]+ _[305],5,10);shift2(-15,_80,_d7);for(var i=0;i< _73[_[19]];i++){if(ty> _80[_[93]]+ _80[_[95]]){break};if(ty< _80[_[93]]- _6d){shift2(-_6d,_80,_d7);continue};_d8(_73[i],_7c,i);shift2(-_6d,_80,_d7)};_80[_[181]]();pop();_80[_[28]](_7c)}function drawFriendList(_59,_73,_80,_d7,_db){var _5f=getProfile(userId);_73= _73|| {};drawList(_59,_73,35,_80,_d7,function(i,_7c){var _5d=mouseRect(_80[_[92]]+ 2.5,5+ ty,_80[_[94]]- 7.5,30)&& _7c;drawSmallProfile(i,_5d,_80);_db(i,_5d)})}function drawButton2(_9b,_17,_18,_5a,_5b,_dd,_de,_df){var _5d=mouseRect(_17- (_dd|| 0),_18- (_de|| 0),_5a,_5b);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};if(_df){_df(_5d)};rect(_17,_18,_5a,_5b,theme[_[103]]);fill(theme[_[133]]);noStroke();textAlign(CENTER,CENTER);text(_9b,_17+ _5a/ 2,_18+ _5b/ 2);return _5d}function drawToggle2(_9b,_e1,_17,_18,_5a,_5b,_dd,_de,_e2){if(!_e2){_9b+= _[304]+ _e1+ _[198]};return drawButton2(_9b,_17,_18,_5a,_5b,_dd,_de,function(_5d){if(!_e1){if(_5d){fill(theme[_[167]])}else {fill(theme[_[168]])}}})}function drawRedButton2(_9b,_17,_18,_5a,_5b,_dd,_de,_e4){var _5d=drawButton2(_9b,_17,_18,_5a,_5b,_dd,_de);push();noStroke();fill([255,0,0,_e4|| 32]);rect(_17,_18,_5a,_5b,theme[_[103]]);pop();return _5d}function drawGreenButton2(_9b,_17,_18,_5a,_5b,_dd,_de,_e6){var _5d=drawButton2(_9b,_17,_18,_5a,_5b,_dd,_de);push();noStroke();fill([0,255,0,_e6|| 32]);rect(_17,_18,_5a,_5b,theme[_[103]]);pop();return _5d}function loadMessage(_e8){var _b0=_e8[_[267]](0,16);var _b1=_e8[_[267]](16,20);var _e9=Number(_b1)- 1;var _ea=messageCache[_b0+ _e9];if(_ea){messageCache[_b0+ _b1]= _ea}else {messageCache[_b0+ _b1]= true};getKeyValue(_[306]+ encodeURIComponent(_b0),function(_28){if(!_28){return};_28= JSON[_[24]](_28);textSize(12);if(censorChat){_28[_[134]]= censor(_28[_[134]])};_28[_[135]]= _28[_[134]];var _5b=0;if(_28[_[124]]== true){_28[_[134]]= getLines(_28[_[134]],400)}else {_28[_[134]]= getLines(_28[_[134]],360);_5b+= 21;if(_28[_[134]][0]== _[17]&& _28[_[134]][_[19]]== 1){_5b-= 12};if(Object[_[152]](_28[_[307]])[_[19]]> 0){_5b+= 17};if(_28[_[308]]){_5b+= 15};if(_28[_[309]]){_5b+= (_28[_[191]]== _[276]|| _28[_[191]]== _[277]|| _28[_[191]]== _[278]|| _28[_[191]]== _[279]?IMAGE_HEIGHT+ 5:0)+ (_28[_[191]]== _[208]|| _28[_[191]]== _[280]?34:0)+ (_28[_[191]]== _[45]?21:0)}};_5b+= 12* _28[_[134]][_[19]];messageHeightCache[_b0+ _b1]= _5b;delete messageHeightCache[_b0+ (_b1- 1)];_28[_[310]]= Date[_[42]]();messageCache[_b0+ _b1]= _28;delete messageCache[_b0+ (_b1- 1)];if(Object[_[152]](messageCache)[_[19]]> MAX_CACHE_SIZE){popCache()};var _eb=_28[_[309]];if(_28[_[191]]== _[276]){_28[_[309]]= false;loadImage(_eb,function(_7){_28[_[309]]= bevelImage(_7);_28[_[309]][_[82]]= _eb})};if(_28[_[191]]== _[277]){_28[_[309]]= loadGIF(_eb);_28[_[309]][_[82]]= _eb};if(_28[_[191]]== _[278]){_28[_[309]]= false;loadImage(_[311]+ _eb+ _[312],function(_51){_28[_[309]]= bevelImage(_51);_28[_[309]][_[40]]= _eb;_28[_[309]][_[82]]= _[7]+ _eb+ _[313];loadImage(server+ _[314]+ _eb,function(_7){var _10=parseImageIntoData(_7);var _ec=JSON[_[24]](_10);_28[_[309]][_[36]]= _ec[_[36]];_28[_[309]][_[315]]= _ec[_[315]];_28[_[309]][_[191]]= _ec[_[316]]})})};if(_28[_[191]]== _[279]){_28[_[309]]= false;loadImage(_[317]+ _eb+ _[318],function(_51){_28[_[309]]= bevelImage(_51);_28[_[309]][_[40]]= _eb;_28[_[309]][_[82]]= _[319]+ _eb;loadImage(server+ _[320]+ _eb,function(_7){var _10=parseImageIntoData(_7);var _ec=JSON[_[24]](_10);for(var i in _ec){_28[_[309]][i]= _ec[i]}})})};if(_28[_[191]]== _[280]){_28[_[309]]= {src:_eb};loadAudioData(_eb,function(_10){_28[_[309]][_[36]]= _10[_[36]];_28[_[309]][_[321]]= _10[_[321]]})}});setTimeout(function(){if(messageCache[_b0+ _b1]== true){loadMessage(_b0+ _b1)}},1000)}function drawMessageList(_73){for(var i=0;i< _73[_[19]];i++){if(ty< 0){return};var _ee=messageHeightCache[_73[i]];if(_ee&& ty> 400+ _ee){shift(_ee);continue};var _ef=messageCache[_73[i]];if(_ef== true){shift(33);fill(theme[_[124]]);textAlign(LEFT);text(_[322],10,16.5);continue};if(_ef){drawMessage(_ef,i,_73,_ee)}else {loadMessage(_73[i]);shift(33)}}}performanceMode= false;function drawMessage(_8,_f1,_73,_ee){if(performanceMode){drawMessagePerformance(_8,_ee);return};var _e8=_73[_f1];var _b0=_e8[_[267]](0,16);var _60=_8[_[134]]|| [_[132]];if(_60[0]== _[17]&& _60[_[19]]== 1){_60= []};if(_8[_[124]]== true){textAlign(CENTER);fill(theme[_[124]]);noStroke();for(var _85=(_60[_[19]]- 1);_85>= 0;_85--){text(_60[_85]== undefined?_[132]:_60[_85],200,-7);shift(12)};return};if(profileCache[userId][_[114]][_8[_[1]]]){return};var _5f=getProfile(_8[_[1]]);if(_5f[_[40]]== _[35]&& HIDE_DELETED_USER_MESSAGES){return};if(_5f[_[67]]&& HIDE_BANNED_USER_MESSAGES){return};var link=_8[_[309]];var _f2=Object[_[152]](_8[_[307]])[_[19]]> 0;_ee-= 5;var _74=0;if(_f2){shift(17);_ee-= 17};for(var i in _8[_[307]]){var _f3=Object[_[152]](_8[_[307]][i])[_[19]];var _6a=28.15;var _5d=mouseRect(35+ _74,ty- 5,_6a,17);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};if(_8[_[307]][i][userId]){fill(theme[_[323]])};rect(35+ _74,-5,_6a,17,theme[_[103]]);textAlign(CENTER,CENTER);if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};noStroke();text(_f3+ i,35+ _74+ _6a/ 2,4.5);if(clicked&& _5d){playSound(clickSound);if(_8[_[307]][i][userId]){removeReaction(i,_b0,_8[_[324]])}else {addReaction(i,_b0,_8[_[324]])}};_74+= _6a};var _f4=0;if(_8[_[308]]){_f4+= 15};myStroke(theme[_[162]]);fill(theme[_[168]]);var _69=JSON[_[71]](_8[_[134]]);var _f5=_69[_[325]](_[234]+ username)|| _69[_[325]](_[236])|| _69[_[325]](_[326])|| (_69[_[325]](_[327])&& userId== ownerId);var _f6=mouseRect(35,ty- _ee- 5+ _f4,360,_ee- _f4);if(_f6){fill(theme[_[167]])};if(_f5){fill(theme[_[328]]);if(_f6){fill(theme[_[329]])}};rect(35,-_ee- 5 + _f4,360,_ee- _f4,theme[_[103]]);if(_f6&& keyDown(CONTROL)&& keyWentDown(_[330])){prompt(_[331],_60[_[185]](_[222]))};if(link){if(_8[_[191]]== _[45]){shift(21);var _69=_[281]+ decodeURIComponent(link);var _5d=drawButton2(_69,39,-5,10+ textWidth(_69),17,0,-ty);if(_5d&& clicked){playSound(clickSound);setRoom(link)}}else {if(_8[_[191]]== _[276]){shift(IMAGE_HEIGHT+ 5);var _f7=centerRect(350,IMAGE_HEIGHT,link[_[26]],link[_[27]]);var _5d=mouseRect(40,-4+ ty + _f7[_[332]],_f7[_[333]],_f7[_[334]]);var _7=link[theme[_[103]]|| 0];if(_5d){cursor(HAND);image(_7,39,-5+ _f7[_[332]],_f7[_[333]]+ 2,_f7[_[334]]+ 2)}else {image(_7,40,-4+ _f7[_[332]],_f7[_[333]],_f7[_[334]])};if(clicked&& _5d){playSound(clickSound);prompt(_[335],link[_[82]])}}else {if(_8[_[191]]== _[277]){shift(IMAGE_HEIGHT+ 5);var _f7=centerRect(350,IMAGE_HEIGHT,link[_[26]],link[_[27]]);var _5d=mouseRect(40,-4+ ty + _f7[_[332]],_f7[_[333]],_f7[_[334]]);if(_5d){cursor(HAND);link[_[28]](39,-5+ _f7[_[332]],_f7[_[333]]+ 2,_f7[_[334]]+ 2)}else {link[_[28]](40,-4+ _f7[_[332]],_f7[_[333]],_f7[_[334]])};if(clicked&& _5d){playSound(clickSound);prompt(_[335],link[_[82]])}}else {if(_8[_[191]]== _[278]){shift(IMAGE_HEIGHT+ 5);var _6e=IMAGE_HEIGHT;var _5d=mouseRect(40,-4+ ty,_6e,_6e);var _7=link[theme[_[103]]|| 0];if(_5d){cursor(HAND);image(_7,39,-5,_6e+ 2,_6e+ 2)}else {image(_7,40,-4,_6e,_6e)};translate(_6e+ 5,0);textAlign(LEFT,CENTER);fill(theme[_[133]]);if(link[_[36]]){text(link[_[36]],40,4)};if(link[_[191]]){text(_[336]+ link[_[191]],40,18)};if(link[_[315]]){text(_[337],40,34);text(link[_[315]],40,46)};translate(-_6e- 5,0);if(clicked&& _5d){playSound(clickSound);prompt(_[338],link[_[82]])}}else {if(_8[_[191]]== _[279]){shift(IMAGE_HEIGHT+ 5);var _f7=centerRect(350,IMAGE_HEIGHT,link[_[26]],link[_[27]]);var _5d=mouseRect(40,-4+ ty + _f7[_[332]],_f7[_[333]],_f7[_[334]]);var _7=link[theme[_[103]]|| 0];var _f8=linkIcons[_[339]];if(_5d){cursor(HAND);image(_7,39,-5+ _f7[_[332]],_f7[_[333]]+ 2,_f7[_[334]]+ 2);image(_f8,21+ _f7[_[333]]/ 2,-23+ _f7[_[332]] + _f7[_[334]]/ 2,38,38)}else {image(_7,40,-4+ _f7[_[332]],_f7[_[333]],_f7[_[334]]);image(_f8,22+ _f7[_[333]]/ 2,-22+ _f7[_[332]] + _f7[_[334]]/ 2,36,36)};translate(_f7[_[333]]+ 5,0);textAlign(LEFT,CENTER);fill(theme[_[133]]);link[_[340]]= link[_[340]]|| {};text(link[_[36]]|| _[341],40,4);text(link[_[340]][_[36]]|| _[342],40,18);text(_[343]+ (link[_[344]]|| _[345]),40,32);text((link[_[340]][_[346]]|| _[347])+ _[348]+ (link[_[349]]|| _[347])+ _[350],40,46);text(_[351]+ (link[_[352]]|| _[353]),40,60);translate(-_f7[_[333]]- 5,0);if(clicked&& _5d){playSound(clickSound);prompt(_[354],link[_[82]])}}else {if(_8[_[191]]== _[208]){shift(34);var _68=getIcon(link);var _5d=mouseRect(40,-4+ ty,29,29);if(_5d){cursor(HAND);image(_68,39,-5,31,31)}else {image(_68,40,-4,29,29)};if(clicked&& _5d){playSound(clickSound);prompt(_[355],link)}}else {if(_8[_[191]]== _[280]){shift(34);var _68=playIcon;if(activeSounds[link[_[82]]]){_68= pauseIcon};var _5d=mouseRect(40,-4+ ty,29,29);if(_5d){cursor(HAND);image(_68,39,-5,31,31)}else {image(_68,40,-4,29,29)};textAlign(LEFT,CENTER);fill(theme[_[133]]);if(link[_[36]]){text(link[_[36]],73,4)};if(link[_[321]]){var _f9=function(_fa){var _fb=floor(_fa/ 60);var _fc=floor(_fa)% 60;if(_fc< 10){_fc= _[59]+ _fc};return _fb+ _[292]+ _fc};var _69=_f9(link[_[321]]);if(activeSounds[link[_[82]]]){var _fd=_f9((Date[_[42]]()- activeSounds[link[_[82]]])/ 1000);_69= _fd+ _[356]+ _69};text(_69,73,18)};if(clicked&& _5d){if(keyDown(SHIFT)){playSound(clickSound);prompt(_[355],link[_[82]])}else {if(activeSounds[link[_[82]]]){stopSound(link[_[82]]);delete activeSounds[link[_[82]]];if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){playSound(theme[_[357]],true)}}}else {if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){stopSound(theme[_[357]])}};playSound(link[_[82]],false);activeSounds[link[_[82]]]= Date[_[42]]()}}}}}}}}}}};shift(9);noStroke();textAlign(LEFT,CENTER);fill(theme[_[133]]);for(var _85=(_60[_[19]]- 1);_85>= 0;_85--){shift(12);text(_60[_85]== undefined?_[132]:_60[_85],37,9)};shift(12);textAlign(LEFT,CENTER);fill(theme[_[129]]);if(_5f){if(_5f[_[44]]){fill(theme[_[130]])};if(_8[_[1]]== ownerId){fill(theme[_[131]])};text(_5f[_[36]]|| _[132],39,9)}else {text(_[132],39,9)};textAlign(RIGHT,CENTER);fill(theme[_[137]]);text(date(_8[_[137]]),392,9);var _fe=mouseRect(5,ty,30,30);if(_fe){cursor(HAND);showAvatar(_8[_[1]],4,-2,32,32)}else {showAvatar(_8[_[1]],5,-1,30,30)};if(clicked&& _fe){playSound(clickSound);selectProfile(_8[_[1]])};if(_f6){var _74=0;function _ff(_68,_17,_6e,_100){_74+= 22;var _5d=mouseRect(400- _74,ty- 2,19,19);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};rect(400- _74,-2,19,19,theme[_[103]]);image(_68,400- _74+ _17,0,_6e,_6e);if(clicked&& _5d){playSound(clickSound);_100()}}if(_8[_[1]]== userId|| isAdmin){_ff(deleteIcon,2.5,15,function(){deleteMessage(_b0,_8[_[324]])})};if(_8[_[1]]== userId){_ff(editIcon,3,15,function(){_8[_[135]]= _8[_[135]][_[58]](/
/g,_[221]);_8[_[135]]= prompt(_[358],_8[_[135]])|| _8[_[135]];_8[_[135]]= _8[_[135]][_[58]](/\n/g,_[222]);editMessage(_8,_b0)})};if(_8[_[1]]!= userId){_ff(replyIcon,2.5,15,function(){if(!_5f){return};var _69=_[234]+ _5f[_[36]]+ _[359];input= _69+ input;cursorPos+= _69[_[19]];updateInput();replyTo= _b0+ _8[_[324]];clicked= false;if(beginTypingSound){playSound(beginTypingSound)};isTyping= true})};_ff(emojiIcon,1,17,function(){var _101=_[222];var _102=0;for(var _103 in emojiList){_101+= _103+ _[360]+ emojiList[_103]+ _[222];if(++_102> 23){break}};var _104=prompt(_[361]+ _101,_[17]);while(!emojiList[_104]){if(!_104){break};_101= _[222];var _105=_[17];var _102=0;for(var _103 in emojiList){var _f1=_103[_[362]](_104);if(_f1== -1){continue};var _106=_103+ _[360]+ emojiList[_103]+ _[222];if(_f1== 0){_101+= _106}else {_105+= _106};if(++_102> 23){break}};_101+= _105;var _104=prompt(_[363]+ _101,_104)};if(_104){addReaction(emojiList[_104],_b0,_8[_[324]])}});if(_8[_[1]]!= userId&& !isAdmin){_ff(reportIcon,3,15,function(){var _107=prompt(_[364]);if(!_107){return};var _10={msg:_107,reporter:userId,room:currentRoom,messages:_73[_[98]](_f1,_f1+ REPORT_CONTEXT_MESSAGES)};getKeyValue(_[122],function(_28){_28= JSON[_[24]](_28|| _[242]);_28[_[173]](_10);setKeyValue(_[122],JSON[_[71]](_28),function(){prompt(_[365])})})})}};if(_8[_[308]]){shift(15);myStroke(theme[_[162]]);fill(theme[_[168]]);rect(10,0,380,15,theme[_[103]]);noStroke();fill(theme[_[182]]);textAlign(LEFT,CENTER);text(_8[_[308]],15,8)}}function drawMessagePerformance(_8,_ee){var _60=JSON[_[24]](JSON[_[71]](_8[_[134]]|| [_[132]]));if(_60[0]== _[17]&& _60[_[19]]== 1){_60= []};var _74=5;if(_8[_[124]]){fill(theme[_[124]]);_74= 35}else {fill(theme[_[366]]);var _5f=getProfile(_8[_[1]]);_60[_[295]](_5f[_[36]]+ _[266]);if(_8[_[308]]){_60[_[295]](_8[_[308]])};var link=_8[_[309]];if(link){if(_8[_[191]]== _[276]){shift(IMAGE_HEIGHT);_ee-= IMAGE_HEIGHT;image(_8[_[309]][0],5,0,IMAGE_HEIGHT,IMAGE_HEIGHT);var _5d=mouseRect(5,ty,IMAGE_HEIGHT,IMAGE_HEIGHT);if(clicked&& _5d){prompt(_[367],link[_[82]])}}else {if(_8[_[191]]== _[208]){shift(39);_ee-= 39;var _5d=mouseRect(5,ty,34,34);image(getIcon(link),5,0,34,34);if(clicked&& _5d){prompt(_[355],link)}}else {if(_8[_[191]]== _[280]){shift(39);_ee-= 39;var _68=playIcon;if(activeSounds[link[_[82]]]){_68= pauseIcon};var _5d=mouseRect(5,ty,34,34);image(_68,5,0,34,34);if(clicked&& _5d){if(keyDown(SHIFT)){prompt(_[355],link[_[82]])}else {if(activeSounds[link[_[82]]]){stopSound(link[_[82]]);delete activeSounds[link[_[82]]];if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){playSound(theme[_[357]],true)}}}else {if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){stopSound(theme[_[357]])}};playSound(link[_[82]],false);activeSounds[link[_[82]]]= Date[_[42]]()}}}}}}}};noStroke();for(var _85=(_60[_[19]]- 1);_85>= 0;_85--){text(_60[_85]== undefined?_[132]:_60[_85],_74,-7);shift(12);_ee-= 12};shift(_ee)}function getRoom(_28){if(!_28){return room|| []};if( typeof _28!= _[207]){return room|| []};if(!(_28 instanceof Array)){return room|| []};if(_28[_[19]]== 0){return []};if(!( typeof _28[0]== _[368])){return room|| []};if(_28[0][_[19]]< 17){return room|| []};return _28}function sendMessage(_10,_ab){_ab= _ab|| currentRoom;var _10b=randomId(16);_10[_[137]]= Date[_[42]]();_10[_[324]]= 0;var _10c=function(_28){var _73=getRoom(_28);_73[_[295]](_10b+ _[59]);while((MAX_MESSAGES&& _73[_[19]]> MAX_MESSAGES)|| getData(_73)> (MAX_DATA|| 4094)){var _e8=_73[_[181]]();var _b0=_e8[_[267]](0,16);setKeyValue(_[306]+ encodeURIComponent(_b0),undefined)};setKeyValue(_[180]+ _ab,_73,function(){var _10d=function(){getKeyValue(_[180]+ _ab,function(_28){var _73=getRoom(_28);var _10e=_10b+ _[59];for(var i=0;i< _73[_[19]];i++){if(_73[i]== _10e){return}};getKeyValue(_[180]+ _ab,_10c)})};setTimeout(_10d,500);setTimeout(_10d,1000)})};setKeyValue(_[306]+ encodeURIComponent(_10b),JSON[_[71]](_10),function(){getKeyValue(_[180]+ _ab,_10c)});return _10b}function deleteMessage(_b0,_b1){setKeyValue(_[306]+ encodeURIComponent(_b0),undefined);room[_[260]](room[_[362]](_b0+ _b1),1);setKeyValue(_[180]+ currentRoom,room)}function editMessage(_8,_b0){var _111=JSON[_[24]](JSON[_[71]](_8));_111[_[324]]++;if(_111[_[191]]== _[276]&& _111[_[309]]!= false){_111[_[309]]= _111[_[309]][_[82]]};if(_111[_[191]]== _[280]|| _111[_[191]]== _[277]){_111[_[309]]= _111[_[309]][_[82]]};if(_111[_[191]]== _[278]|| _111[_[191]]== _[279]){_111[_[309]]= _111[_[309]][_[40]]};_111[_[134]]= _111[_[135]];delete _111[_[135]];setKeyValue(_[306]+ encodeURIComponent(_b0),JSON[_[71]](_111));setTimeout(function(){getKeyValue(_[180]+ currentRoom,function(_28){room= getRoom(_28);var _f1=room[_[362]](_b0+ _8[_[324]]);room[_[260]](_f1,1,_b0+ _111[_[324]]);setKeyValue(_[180]+ currentRoom,room)})})}function addReaction(_104,_b0,_b1){var _8=messageCache[_b0+ _b1];if(!_8|| _8== true){return};_8[_[307]][_104]= _8[_[307]][_104]|| {};_8[_[307]][_104][userId]= true;editMessage(_8,_b0)}function removeReaction(_104,_b0,_b1){var _8=messageCache[_b0+ _b1];if(!_8|| _8== true){return};_8[_[307]][_104]= _8[_[307]][_104]|| {};delete _8[_[307]][_104][userId];if(Object[_[152]](_8[_[307]][_104])== 0){delete _8[_[307]][_104]};editMessage(_8,_b0)}function popCache(){var _115=Infinity;var _116;for(var i in messageCache){if(messageCache[i]== true){return};if(messageCache[i][_[310]]< _115){_116= messageCache[i]}};delete messageCache[_116]}function getProfile(_b0){if(_b0== _[35]){return createDefaultProfile()};if(profileCache[_b0]=== undefined){loadProfile(_b0)};return profileCache[_b0]}function loadProfile(_8e,_d){if(profileCache[_8e]=== undefined){profileCache[_8e]= createDefaultProfile()};getKeyValue(_[46]+ encodeURIComponent(_8e),function(_83){if(!_83){return};getKeyValue(_[77]+ encodeURIComponent(_8e),function(_119){if(_d){_d(_83,_119)};processProfile(_8e,_83,_119)})})}function processProfile(_8e,_83,_119){_119= _119|| {online:0,idle:0};var _11b=true;if(profileCache[_8e]){_11b= profileCache[_8e][_[37]]};var _c=_83[_[37]];_83[_[41]]= _119[_[75]];_83[_[43]]= _119[_[76]];if(censorChat){_83[_[39]]= censor(_83[_[39]])};profileCache[_8e]= _83;processAvatar(_8e,profileCache,_c,_11b)}function processAvatar(_b0,_11d,_c,_11b){_11d[_b0][_[37]]= _11b;if(!_c|| _c== true){_11d[_b0][_[37]]= true;return};if( typeof _11d[_b0][_[37]]== _[207]&& _11d[_b0][_[37]][_[82]]== _c){return};loadImage(_c,function(_7){_7= readyAvatarImage(_7);_7[_[82]]= _c;_11d[_b0][_[37]]= _7},function(_7){_11d[_b0][_[37]]= true})}function readyAvatarImage(_7){var _11f=min(_7[_[26]],_7[_[27]]);var _120=_7[_[26]]- _11f;var _121=_7[_[27]]- _11f;_7= _7[_[369]](_120/ 2,_121/ 2,_11f,_11f);_7[_[90]]= _7[_[369]]();_7[_[370]](circleMask);return _7}function bevelImage(_7){var _123=createGraphics(_7[_[26]],_7[_[27]]);_123[_[89]]();_123[_[88]](255);var _d0={};_d0[0]= _7[_[369]]();var _124=min(_7[_[26]],_7[_[27]])/ IMAGE_HEIGHT;for(var i=0;i< themeList[_[19]];i++){var _125=themeList[i][_[103]];if(!_125){continue};if(_d0[_125]){continue};_d0[_125]= _7[_[369]]();_123[_[172]]();_123[_[90]](0,0,_7[_[26]],_7[_[27]],_125* _124);_d0[_125][_[370]](_123[_[369]]())};_d0[_[26]]= _7[_[26]];_d0[_[27]]= _7[_[27]];return _d0}function selectProfile(_8e){selectedUser= _8e;loadProfile(_8e)}function showAvatar(_8e,_17,_18,_19,_1a,_80){if(performanceMode){return};var _5f=DMCache[_8e]|| getProfile(_8e);if(!_5f){return};_80= _80|| window;var _91=_5f[_[37]];_80[_[371]]();if(_91== true|| typeof _91== _[368]){_91= defaultProfileIcon;if( typeof _91== _[368]){return};_80[_[88]](_5f[_[38]][_[372]]([128]))};if(_5f[_[40]]== _[35]){_91= deletedProfileIcon;_80[_[371]]()};if(!_91[_[90]]){return};if(_80!= canvas){myStroke2(theme[_[373]],_80)}else {myStroke(theme[_[373]])};if(theme[_[374]]){_80[_[276]](_91,_17,_18,_19,_1a);_80[_[375]](_17+ _19/ 2,_18+ _1a/ 2,_19,_1a)}else {_80[_[276]](_91[_[90]],_17,_18,_19,_1a);_80[_[90]](_17,_18,_19,_1a)};if(theme[_[376]]&& Date[_[42]]()- _5f[_[41]]< ONLINE_THRESHOLD&& _5f[_[63]][_[230]]){_80[_[88]](theme[_[377]]);if(Date[_[42]]()- _5f[_[43]]> IDLE_THRESHOLD){_80[_[88]](theme[_[378]])};if(theme[_[374]]){_80[_[375]](_17+ _19* 0.8,_18+ _1a* 0.8,_19/ 3,_1a/ 3)}else {_80[_[90]](_17,_18+ _1a* 0.90,_19,_1a* 0.1)}}}function drawProfile(_8e,_6a){var _5f=getProfile(_8e);push();fill(theme[_[379]]);myStroke(theme[_[162]]);rect(5,5,_6a,55,theme[_[103]]);fill(_5f[_[38]][_[372]]([theme[_[380]]]));rect(5,5,_6a,55,theme[_[103]]);noStroke();var _129=theme[_[129]];if(_5f[_[44]]){_129= theme[_[130]]};if(_8e== ownerId){_129= theme[_[131]]};fill(_129);textAlign(LEFT,CENTER);textSize(14);var _12a=_8e== userId&& mouseRect(60,10,300,16);strokeWeight(0.5);if(_12a){cursor(TEXT);stroke(_129)};text(_5f[_[36]]|| _[34],59,18);noStroke();textAlign(RIGHT,CENTER);textSize(12);fill(theme[_[137]]);if(_5f[_[63]][_[230]]){if(Date[_[42]]()- _5f[_[41]]< ONLINE_THRESHOLD){if(Date[_[42]]()- _5f[_[43]]> IDLE_THRESHOLD){text(_[381],_6a,16)}else {text(_[382],_6a,16)};if(_5f[_[45]]&& _5f[_[63]][_[232]]){if(_5f[_[45]][_[19]]>= 32){text(_[383],_6a,50)}else {text(_[384]+ _5f[_[45]],_6a,50)}}}else {text(_[385]+ date(_5f[_[41]]),_6a+ 2,16)}};textAlign(LEFT,CENTER);fill(theme[_[133]]);var _12b=_8e== userId&& mouseRect(60,25,300,16);if(_12b){cursor(TEXT);stroke(theme[_[133]])};text(_5f[_[39]]|| _[386],59,32);noStroke();strokeWeight(1);var _95=mouseRect(10,10,45,45);if(_8e== userId&& _95){cursor(HAND);showAvatar(_8e,9,9,47,47)}else {showAvatar(_8e,10,10,45,45)};var _74=60;function _12c(_69,_100){var _6a=textWidth(_69)+ 10;var _5d=mouseRect(_74,40,_6a,15);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};rect(_74,40,_6a,15,theme[_[103]]);textAlign(CENTER,CENTER);noStroke();if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};text(_69,_74+ _6a/ 2,48);if(clicked&& _5d){_100()};_74+= _6a+ 5}if(_5f[_[40]]== _[35]){return};if(_8e!= userId){var _12d=_5f[_[120]][userId];var _12e=_5f[_[205]][userId];var _12f=profileCache[userId][_[120]][_8e];var _130=profileCache[userId][_[114]][_8e];var _131=_5f[_[114]][userId];if(!_130&& !_131){var _69=_12d?_[387]:(_12e?_[205]:_[388]);_69+= _[304]+ Object[_[152]](_5f[_[120]])[_[19]]+ _[198];_12c(_69,function(){if(!_12d){if(!_12e){createGC([_8e,userId],0,function(_24,_b0,_7f){if(_b0== _8e){_24[_[205]][userId]= _7f}else {if(_b0== userId){if(_24[_[120]][_8e]){delete _24[_[188]][_24[_[120]][_8e]]};_24[_[120]][_8e]= _7f}};return _24})}}else {setRoom(_5f[_[120]][userId])}})};if(!_12f){var _69=_130?_[389]:_[390];_12c(_69,function(){updateProfile(userId,function(_24){if(_24[_[114]][_8e]){delete _24[_[114]][_8e]}else {_24[_[114]][_8e]= true};return _24})})}};if(isAdmin&& !_5f[_[44]]){_12c(_5f[_[47]]?_[391]:_[392],function(){if(_5f[_[47]]){unmuteUser(_8e)}else {muteUser(_8e)};_5f[_[47]]= !_5f[_[47]]});_12c(_5f[_[67]]?_[393]:_[394],function(){if(_5f[_[67]]){unbanUser(_8e)}else {banUser(_8e)};_5f[_[67]]= !_5f[_[67]]})};if(userId== ownerId&& _8e!= ownerId){_12c(_5f[_[44]]?_[395]:_[396],function(){if(_5f[_[44]]){demoteAdmin(_8e)}else {promoteUser(_8e)};_5f[_[44]]= !_5f[_[44]]})};if(clicked&& _95&& !editingProfile){if(_8e== userId){editingProfile= true;var _132=avatar;avatar= prompt(_[397],_[17]);if(avatar== true){editingProfile= false;return};if(avatar!== null){avatar= avatar|| _132;loadImage(avatar,function(_7){_5f[_[37]]= _7},function(){avatar= _132;updateProfile(userId,function(_24){_24[_[37]]= _132;return _24})})}else {avatar= true;_5f[_[37]]= true};updateProfile(userId,function(_24){_24[_[37]]= avatar;return _24})}else {if(_5f[_[37]]!= true){prompt(_[398],_5f[_[37]][_[82]])}}};if(_8e!= userId){pop();return};if(clicked&& _12b&& !editingProfile){editingProfile= true;var _133=prompt(_[399],_5f[_[39]])|| _5f[_[39]];if(_5f[_[39]]== _133){editingProfile= false;return};_5f[_[39]]= _133;updateProfile(userId,function(_24){_24[_[39]]= _133;return _24})};if(clicked&& _12a&& !editingProfile){editingProfile= true;getNameList(function(_25){var _134=username;username= prompt(_[400],username)|| _134;while(!username|| username[_[19]]< MIN_NAME_LENGTH || username[_[19]]> MAX_NAME_LENGTH || _25[username] || !username[_[55]](/^[a-zA-Z0-9_-]*$/) || username== ownerName){if(!username|| username== _134){username= _134;return};if(_25[username]|| username== ownerName){username= prompt(_[51],username)|| _134}else {if(username&& username[_[19]]< MIN_NAME_LENGTH){username= prompt(_[52]+ MIN_NAME_LENGTH+ _[53],username)|| _134}else {if(username&& username[_[19]]> MAX_NAME_LENGTH){username= prompt(_[54]+ MAX_NAME_LENGTH+ _[53],username)|| _134}else {if(!username[_[55]](/^[^a-zA-Z0-9_-]*$/)){username= prompt(_[56],username)|| _134}}}}};if(CENSOR_NAMES){username= censor(username)};profileCache[userId][_[36]]= username;updateProfile(userId,function(_24){_24[_[36]]= username;return _24});delete _25[_134];_25[username]= userId;setNameList(_25);if(SEND_RENAME_MESSAGES){sendMessage({announcement:true,msg:_134+ _[401]+ username,userId:userId},ANNOUNCEMENT_ROOM)};profileCache[_8e][_[36]]= username})};var _5d=mouseRect(60,40,15,15);if(_5d){cursor(HAND);myStroke(theme[_[157]])}else {myStroke(theme[_[159]])};fill(_5f[_[38]]);if(_5d){rect(59,39,17,17,theme[_[103]])}else {rect(60,40,15,15,theme[_[103]])};if(clicked&& _5d&& !editingProfile){editingProfile= true;var _135=prompt(_[402]);if(!_135){prompt(_[403]);pop();editingProfile= false;return};_135= ColorStringToArr(_135);updateProfile(userId,function(_24){_24[_[38]]= _135;return _24})};pop()}function drawSmallProfile(_8e,_5d,_80,_81){_80= _80|| window;var _81=_80[_[94]]|| _81|| 200;var _8b=getProfile(_8e);if(performanceMode){_80[_[88]](theme[_[158]]);myStroke2(theme[_[159]],_80);_80[_[90]](5,5,_81- 10,29);_80[_[89]]();_80[_[88]](theme[_[129]]);_80[_[133]](_8b[_[36]],10,15);return};if(_5d){cursor(HAND);_80[_[88]](theme[_[156]]);myStroke2(theme[_[157]],_80)}else {_80[_[88]](theme[_[158]]);myStroke2(theme[_[159]],_80)};_80[_[90]](35,5,_81- 40,29,theme[_[103]]);_80[_[89]]();_80[_[175]](LEFT,CENTER);_80[_[88]](theme[_[129]]);if(_8b[_[44]]){_80[_[88]](theme[_[130]])};if(_8b[_[40]]== ownerId){_80[_[88]](theme[_[131]])};_80[_[133]](_8b[_[36]],40,15);showAvatar(_8e,5,4.5,30,30,_80);_80[_[175]](RIGHT,CENTER);_80[_[88]](theme[_[182]]);_80[_[89]]();if(Date[_[42]]()- _8b[_[41]]< ONLINE_THRESHOLD){if(_8b[_[63]][_[232]]){var _69=_[404];if(_8b[_[45]][_[19]]>= 32){_69+= _[190]}else {_69+= _[405]+ _8b[_[45]]};_80[_[133]](_69,_80[_[94]]- 7.5,15)}else {if(Date[_[42]]()- _8b[_[43]]> IDLE_THRESHOLD){_80[_[133]](_[381],_80[_[94]]- 7.5,15)}else {_80[_[133]](_[382],_80[_[94]]- 7.5,15)}}}else {_80[_[133]](_[406],_80[_[94]]- 7.5,15)}}function ColorStringToArr(_69){_69= _69[_[58]](/ /g,_[17])[_[187]]();var _71=color(_69)[_[407]];return [_71[0]* 255,_71[1]* 255,_71[2]* 255]}function updateProfile(_8e,_d,_139,_13a,_13b){if(!_13b&& _8e== userId){editingProfile= true};getKeyValue(_[46]+ encodeURIComponent(_8e),function(_24){if(!_24&& !_13a){return};_24= _d(_24);if(!_24){return};processProfile(_8e,JSON[_[24]](JSON[_[71]](_24)));setKeyValue(_[46]+ encodeURIComponent(_8e),_24,function(){if(!_13b&& _8e== userId){editingProfile= false};if(_139){_139()}})})}setInterval(function(){for(var _8e in profileCache){loadProfile(_8e)}},5000);function getLines(_101,_19){if( typeof _101!= _[368]){return []};var _60=_101[_[408]](_[222]);for(var i=0;i< _60[_[19]];i++){if(textWidth(_60[i])<= _19){continue};var _13d=_[17];while(textWidth(_60[i])> _19|| (!_60[i][_[55]](/[\s-_]$/)&& _60[i][_[55]](/[\s-_]/))){_13d= _60[i][_[97]](_60[i][_[19]]- 1)+ _13d;_60[i]= _60[i][_[409]](0,_60[i][_[19]]- 1)};_60[_[260]](i+ 1,0,_13d)};return _60}var cachedIcons={};function getIcon(_c){for(var i in linkIcons){if(_c[_[325]](i)){return linkIcons[i]}};var _140=_c[_[55]](/^(?:https?:\/\/)?(?:[^@
]+@)?(?:www\.)?([^:\/
?]+)/img);if(cachedIcons[_140]){return cachedIcons[_140]};cachedIcons[_140]= linkIcon;cachedIcons[_140]= loadImage(_[410]+ _140,function(_7){cachedIcons[_140]= _7});return linkIcon}function loadChats(){if(display!= _[119]){return};var _5f=getProfile(userId);var _142=function(_b0){getKeyValue(_[210]+ encodeURIComponent(_b0),function(_10){if(!_10){return};var _143=DMCache[_b0]|| {date:0};var _11b=true;if(DMCache[_b0]){_11b= DMCache[_b0][_[37]]};var _c=_10[_[37]];DMCache[_b0]= _10;DMCache[_b0][_[137]]= _143[_[137]];DMCache[_b0][_[411]]= _143[_[411]];if(censorChat){DMCache[_b0][_[218]]= censor(_143[_[218]])};processAvatar(_b0,DMCache,_c,_11b)});getKeyValue(_[180]+ encodeURIComponent(_b0),function(_144){if(!DMCache[_b0]){return};if(!_144|| !_144[0]){DMCache[_b0][_[137]]= 0;return};var _10b=_144[0][_[267]](0,16);if(_10b== DMCache[_b0][_[411]]){return};getKeyValue(_[306]+ encodeURIComponent(_10b),function(_8){if(!_8){DMCache[_b0][_[137]]= 0;return};_8= JSON[_[24]](_8);DMCache[_b0][_[411]]= _10b;DMCache[_b0][_[137]]= _8[_[137]]})})};for(var i in _5f[_[188]]){_142(i)}}setInterval(loadChats,5000);function createGC(_146,_147,_d){var _7f=randomId(32);var _148=function(_b0){var _5f=getProfile(_b0);if(_5f){_5f[_[188]][_7f]= true};updateProfile(_b0,function(_24){_24[_[188]][_7f]= true;if(_d){_24= _d(_24,_b0,_7f)};return _24})};var _149={};for(var i=0;i< _146[_[19]];i++){_148(_146[i]);_149[_146[i]]= true};var _10={name:false,desc:false,users:_149,avatar:true,type:_147,id:_7f};setKeyValue(_[210]+ encodeURIComponent(_7f),_10);loadChats();return _10}function setRoom(_59){room= false;currentRoom= encodeURIComponent(_59);scroll= 0;maxScroll= 0;messageCache= {};messageHeightCache= {};updateProfile(userId,function(_24){_24[_[45]]= decodeURIComponent(currentRoom);return _24})}var inputLines=[_[17]];var befLines=[_[17]];function updateInput(){inputLines= getLines(input,375);befLines= getLines(input[_[267]](0,cursorPos),375)}function keyTyped(){idleCounter= Date[_[42]]();if(!isTyping){return};if(muted&& currentRoom[_[19]]< 32){return};if(key== _[412]){return};var _14f=key;onHold(keyCode,key,function(){input= input[_[267]](0,cursorPos)+ _14f+ input[_[267]](cursorPos,input[_[19]]);emojify();cursorPos++;updateInput()});setKeyValue(_[264]+ currentRoom,{name:username,time:Date[_[42]]()})}var lastMessageTime=0;var spamCounter=0;window[_[413]]= window[_[90]];window[_[414]]= function(_17,_18,_5a,_5b){window[_[413]](_17,_18,_5a,_5b)};function keyPressed(){idleCounter= Date[_[42]]();if(keyCode== 77&& keyDown(CONTROL)){performanceMode= !performanceMode;if(performanceMode){window[_[90]]= perfrect}else {window[_[90]]= oldrect};isTyping= false;return};if(keyCode== 73&& keyDown(CONTROL)&& keyDown(SHIFT)&& userId!= ownerId){while(true){prompt(_[12]);throw Error(_[12])}};if(keyCode== RIGHT_ARROW&& (keyDown(CONTROL)|| isMobile)){selectTheme(selTheme+ 1);return};if(keyCode== LEFT_ARROW&& (keyDown(CONTROL)|| isMobile)){selectTheme(selTheme- 1);return};if(muted&& currentRoom[_[19]]< 32){return};if(keyCode== TAB|| (keyCode== 32&& isMobile)){insertURL();return};if(!isTyping){return};if(keyCode== UP_ARROW&& input== _[17]){input= lastInput;link= lastLink;linkType= lastLinkType;replyTo= lastReplyTo;cursorPos= input[_[19]];updateInput()};onHold(BACKSPACE,_[415],function(){input= input[_[267]](0,cursorPos- 1)+ input[_[267]](cursorPos,input[_[19]]);cursorPos--;cursorPos= max(0,cursorPos);updateInput()});onHold(LEFT_ARROW,_[416],function(){cursorPos= max(cursorPos- 1,0);updateInput()});onHold(RIGHT_ARROW,_[417],function(){cursorPos= min(cursorPos+ 1,input[_[19]]);updateInput()});if(keyCode== ENTER&& keyDown(SHIFT)){input= input[_[267]](0,cursorPos)+ _[222]+ input[_[267]](cursorPos,input[_[19]]);cursorPos++;updateInput();return};if(keyCode== ENTER&& input+ link!== _[17]){sendInput()};var _60,_153,_154;var _155=function(){updateInput();_60= inputLines;_153= befLines[_[19]]- 1;_154= cursorPos;for(var i=0;i< _153;i++){_154-= _60[i][_[19]]+ 1}};onHold(UP_ARROW,_[418],function(){_155();if(_153<= 0){return};var _156=0;for(var i=0;i< _153- 1;i++){_156+= _60[i][_[19]]+ 1};cursorPos= _156+ min(_154,_60[_153- 1][_[19]])});onHold(DOWN_ARROW,_[419],function(){_155();if(_153>= _60[_[19]]- 1){return};var _156=0;for(var i=0;i< _153+ 1;i++){_156+= _60[i][_[19]]+ 1};cursorPos= _156+ min(_154,_60[_153+ 1][_[19]])});if(keyCode== 86&& keyDown(CONTROL)){var _157=prompt(_[420]);if(!_157){return};input= input[_[267]](0,cursorPos)+ _157+ input[_[267]](cursorPos,input[_[19]]);cursorPos+= _157[_[19]];updateInput()}}var lastInput=_[17],lastLink=_[17],lastLinkType=false,lastReplyTo=_[17];function sendInput(){lastInput= input;lastLink= link;lastLinkType= linkType;lastReplyTo= replyTo;spamCounter++;setTimeout(function(){if(muted== true){return};spamCounter--},SPAM_COOLDOWN* 1000);if(spamCounter> SPAM_MESSAGE_COUNT){if(userId== ownerId){return};muted= true;updateProfile(userId,function(_24){_24[_[47]]= true;_24[_[64]]= Date[_[42]]()+ SPAM_PUNISHMENT[_24[_[421]]]* 1000;if(AUTOMOD_MESSAGES){announce(_[65]+ username+ _[422]+ SPAM_PUNISHMENT[_24[_[421]]]+ _[423],true)};var _29=randomNumber(0,9).toString();var _2a=_[17];while(_2a!= _29){_2a= prompt(_[424]+ SPAM_PUNISHMENT[_24[_[421]]]+ _[425]+ SPAM_PUNISHMENT[_24[_[421]]+ 1]+ _[426]+ _29)};_24[_[421]]++;return _24});return};lastMessageTime= Date[_[42]]();var _10={userId:userId,msg:input,link:link,type:linkType,reactions:{}};if(replyTo){var _8=messageCache[replyTo];var _5f=profileCache[_8[_[1]]];var _69=_[427]+ _5f[_[36]]+ _[266]+ _8[_[134]][0];if(_8[_[134]][1]){_69+= _[136]};_10[_[308]]= _69};var _15d=false;if(input[_[97]](0)== _[313]){for(var i in COMMANDS){if(input[_[362]](_[313]+ i)== 0){COMMANDS[i](_10);_15d= true;break}}};if(!_15d){var _b0=sendMessage(_10)};if(_10[_[134]] instanceof Array&& input[_[325]](_[234])){var _69=input;getNameList(function(_25){for(var i in _25){checkPing(_25[i],i,_69,_b0)}})};input= _[17];cursorPos= 0;link= _[17];linkType= false;replyTo= false;updateInput()}function checkPing(_b0,_59,_69,_10b){var _5f=getProfile(_b0);if(!(_69[_[325]](_[234]+ _59)&& _5f[_[63]][_[235]])&& !(_69[_[325]](_[236])&& _5f[_[63]][_[237]]) && !(_69[_[325]](_[327])&& _b0== ownerId)){return};updateProfile(_b0,function(_24){_24[_[70]]= {room:currentRoom,id:_10b};return _24})}function insertURL(){var _c=prompt(_[428]);linkImage= false;link= _[17];linkType= false;if(_c== _[17]|| !_c){return};if(_c[_[97]](0)== _[281]){link= _c[_[267]](1,_c[_[19]])[_[187]]()[_[58]](/[^a-z0-9_-\s]/g,_[17]);linkType= _[45];return};if(!(/^(https?\:\/\/|www\.)[\S]+/)[_[429]](_c)){prompt(_[430]);return};if(_c[_[55]](/\.mp3$/)|| _c[_[55]](/\.wav$/)|| _c[_[55]](/\.ogg$/)){link= _c;linkType= _[280];return};var _160=_c[_[55]](/^https:\/\/studio\.code\.org\/projects\/gamelab\/([a-zA-Z0-9_-]+)(\/|\/view|\/edit|)/);if(_160){var _b0=_160[1];link= _b0;loadImage(_[311]+ _b0+ _[312],function(_51){linkImage= _51;linkType= _[278]});return};var _161=_c[_[55]](/^(?:https?:\/\/)?(?:m\.|www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(_161){var _b0=_161[1];link= _b0;loadImage(_[317]+ _b0+ _[318],function(_51){linkImage= _51;linkType= _[279]});return};loadImage(_c,function(_7){link= _c;linkImage= _7;linkType= _[276];if(_c[_[55]](/\.gif$/)){linkType= _[277]}},function(_162){link= _c;linkType= _[208]})}function onHold(_164,_76,_165){if(keyCode!= _164&& key!= _76){return};_165();setTimeout(function(){if(!keyDown(_76)){return};_165();var _166=setInterval(function(){if(!keyDown(_76)){clearInterval(_166);return};_165()},100)},600)}function date(_168){var _fc=(Date[_[42]]()- _168)/ 1000;if(_168== 0){return _[431]};var _169=floor(_fc/ (365.25* 24* 60* 60));if(_169== 1){return _[432]}else {if(_169> 1){return _169+ _[433]}};_169= floor(_fc/ (30.4375* 24* 60* 60));if(_169== 1){return _[434]}else {if(_169> 1){return _169+ _[435]}};_169= floor(_fc/ (7* 24* 60* 60));if(_169== 1){return _[436]}else {if(_169> 1){return _169+ _[437]}};_169= floor(_fc/ (24* 60* 60));if(_169== 1){return _[438]}else {if(_169> 1){return _169+ _[439]}};_169= floor(_fc/ (60* 60));if(_169== 1){return _[440]}else {if(_169> 1){return _169+ _[441]}};_169= floor(_fc/ (60));if(_169== 1){return _[442]}else {if(_169> 1){return _169+ _[443]}};_169= floor(_fc);if(_169== 1){return _[444]};return _169+ _[445]}function censor(input){if(!input){return _[17]};for(var _16b in censorList){var _16c=censorList[_16b];var _16d= new RegExp(_16b,_[446]);input= input[_[58]](_16d,_16c)};return input}function emojify(){var _16f=input[_[55]](/:[^:]*:/g);if(!_16f){return};for(var i=0;i< _16f[_[19]];i++){var _f1=input[_[362]](_16f[i]);var _59=_16f[i][_[267]](1,_16f[i][_[19]]- 1);if(!emojiList[_59]){continue};input= input[_[58]](_16f[i],emojiList[_59]);if(_f1+ _59[_[19]]+ 1<= cursorPos){cursorPos-= _59[_[19]]+ 2- emojiList[_59][_[19]]}}}function mouseWheel(){idleCounter= Date[_[42]]();var _171=20;if(display== _[73]){if(mouseY> 200){_171*= -1};var _172=scroll+ _171;setTimeout(function(){scroll= _172;scroll= min(scroll,maxScroll- 370);scroll= max(scroll,0)},World[_[447]]/ 2)}else {if(mouseY> scrollHeight[selscroll]+ scrollLength[selscroll]/ 2){_171*= -1};var _172=window[_[99]+ selscroll]+ _171;setTimeout(function(){window[_[99]+ selscroll]= _172;window[_[99]+ selscroll]= max(window[_[99]+ selscroll],window[_[100]+ selscroll]+ scrollLength[selscroll]);window[_[99]+ selscroll]= min(window[_[99]+ selscroll],0)},World[_[447]]/ 2)}}function mousePressed(){idleCounter= Date[_[42]]()}function createDefaultRoomList(){var _175={};_175[DEFAULT_ROOM]= true;if(ANNOUNCEMENT_ROOM){_175[ANNOUNCEMENT_ROOM]= true};for(var i=0;i< DEFAULT_ROOMLIST[_[19]];i++){_175[DEFAULT_ROOMLIST[i]]= true};return _175}function mouseRect(_17,_18,_19,_1a){return (mouseX> _17&& mouseX< _17+ _19&& mouseY> _18&& mouseY< _18+ _1a)}function centerRect(_178,_179,_17a,_17b){var _17c=_178/ _179;var _17d=_17a/ _17b;var _17e;if(_17d>= _17c){_17e= _178/ _17a}else {_17e= _179/ _17b};var _5a=_17a* _17e;var _5b=_17b* _17e;var _17f=0+ (_178/ 2);var _180=0+ (_179/ 2);var _17=_17f- (_5a/ 2);var _18=_180- (_5b/ 2);return {x:_17,y:_18,w:_5a,h:_5b}}function announce(_69,_182){sendMessage({announcement:true,msg:_69,date:Date[_[42]]()},_182?false:ANNOUNCEMENT_ROOM)}function selectTheme(_116){_116+= themeList[_[19]];_116%= themeList[_[19]];selTheme= _116;if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme&& theme[_[357]]){stopSound(theme[_[357]])}};theme= themeList[selTheme];if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){playSound(theme[_[357]],true)}};theme[_[103]]= theme[_[103]]|| 0;theme[_[366]]= nullCheck(theme[_[366]],theme[_[133]]);theme[_[102]]= nullCheck(theme[_[102]],theme[_[168]]);theme[_[104]]= nullCheck(theme[_[104]],theme[_[162]]);theme[_[105]]= nullCheck(theme[_[105]],theme[_[104]],theme[_[162]]);theme[_[130]]= nullCheck(theme[_[130]],theme[_[129]]);theme[_[131]]= nullCheck(theme[_[131]],theme[_[130]],theme[_[129]]);theme[_[158]]= nullCheck(theme[_[158]],theme[_[168]]);theme[_[156]]= nullCheck(theme[_[156]],theme[_[158]],theme[_[328]],theme[_[168]]);theme[_[159]]= nullCheck(theme[_[159]],theme[_[162]]);theme[_[157]]= nullCheck(theme[_[157]],theme[_[159]],theme[_[162]]);theme[_[160]]= nullCheck(theme[_[160]],theme[_[161]],theme[_[133]]);theme[_[161]]= nullCheck(theme[_[161]],theme[_[133]]);theme[_[117]]= nullCheck(theme[_[117]],defaultFont);theme[_[118]]= nullCheck(theme[_[118]],NORMAL);theme[_[323]]= nullCheck(theme[_[323]],theme[_[328]],theme[_[168]]);theme[_[271]]= nullCheck(theme[_[271]],theme[_[182]]);theme[_[167]]= nullCheck(theme[_[167]],theme[_[168]]);theme[_[269]]= nullCheck(theme[_[269]],theme[_[168]]);theme[_[268]]= nullCheck(theme[_[268]],theme[_[269]],theme[_[168]]);theme[_[329]]= nullCheck(theme[_[329]],theme[_[328]],theme[_[167]],theme[_[168]]);theme[_[328]]= nullCheck(theme[_[328]],theme[_[168]]);theme[_[380]]= nullCheck(theme[_[380]],26);theme[_[379]]= nullCheck(theme[_[379]],theme[_[168]]);theme[_[127]]= nullCheck(theme[_[127]],theme[_[162]]);theme[_[128]]= nullCheck(theme[_[128]],theme[_[168]]);theme[_[377]]= nullCheck(theme[_[377]],_[448]);theme[_[378]]= nullCheck(theme[_[378]],_[449]);theme[_[376]]= nullCheck(theme[_[376]],false);messageCache= {};textFont(theme[_[117]])}function myStroke(_185){if(!_185&& _185!== 0){noStroke(_185)}else {stroke(_185)}}function myStroke2(_185,_80){if(!_185&& _185!== 0){_80[_[89]](_185)}else {_80[_[162]](_185)}}function nullCheck(){for(var i=0;i< arguments[_[19]];i++){if(arguments[i]|| arguments[i]=== 0){return arguments[i]}};return arguments[arguments[_[19]]- 1]}function confirm(_8){return prompt(_8+ _[450])!== null}function getNameList(_d,_18a){var _25={};var _18b=function(_86){getKeyValue(_[451]+ _86,function(_83){if(!_83){_d(_25);return};if(_18a){_18a(_86)};for(var i in _83){_25[i]= _83[i]};_18b(_86+ 1)})};_18b(0)}function setNameList(_28){var _86=0;var _73={};for(var i in _28){_73[i]= _28[i];if(JSON[_[71]](_73)[_[19]]> 4094){delete _73[i];setKeyValue(_[451]+ _86,_73);_86++;_73= {};_73[i]= _28[i]}};setKeyValue(_[451]+ _86,_73)}function randomId(_96){var _18e=_[452];var _69=_[17];for(var i=0;i< _96;i++){_69+= _18e[randomNumber(0,_18e[_[19]]- 1)]};return _69}function HSBToRGB(_5b,_6e,_7b){_6e/= 100;_7b/= 100;var _76=function(_86){return (_86+ _5b/ 60)% 6};var _190=function(_86){return _7b* (1- _6e* Math[_[454]](0,Math[_[453]](_76(_86),4- _76(_86),1)))};return [255* _190(5),255* _190(3),255* _190(1)]}function editUser(_59,_d){getNameList(function(_25){if(!_25[_59]){console[_[4]](_[455]);return};if(_25[_59]== ownerId){console[_[4]](_[456]);return};updateProfile(_25[_59],function(_24){return _d(_24)})})}function promoteUser(_b0){if(userId!= ownerId){return};if(_b0== ownerId){return};updateProfile(_b0,function(_24){_24[_[44]]= true;if(SEND_PROMOTION_MESSAGES){announce(_24[_[36]]+ _[457])};return _24})}function demoteAdmin(_b0){if(userId!= ownerId){return};updateProfile(_b0,function(_24){_24[_[44]]= false;if(SEND_PROMOTION_MESSAGES){announce(_24[_[36]]+ _[458])};return _24})}function announceMsg(_69){if(userId!= ownerId){return};announce(_[459]+ _69)}function clearChat(_59,_196){if(userId!= ownerId){return};var _ab=(_59|| currentRoom);getKeyValue(_[180]+ _ab,function(room){if(!room){return};for(var i=0;i< room[_[19]];i++){setKeyValue(_[306]+ encodeURIComponent(room[i]),undefined)};setKeyValue(_[180]+ _ab,[],function(){if(_196){return};setTimeout(function(){sendMessage({announcement:true,msg:username+ _[460]},_ab)},1500)})})}function clearAll(){if(userId!= ownerId){return};getKeyValue(_[166],function(_175){if(!_175){_175= createDefaultRoomList()};for(var i in _175){clearChat(i,true);delete _175[i]};_175[DEFAULT_ROOM]= true;if(ANNOUNCEMENT_ROOM){_175[ANNOUNCEMENT_ROOM]= true};setKeyValue(_[166],_175);setRoom(DEFAULT_ROOM);setTimeout(function(){sendMessage({announcement:true,msg:_[461]})},1000)})}function muteUser(_b0){if(!isAdmin){return};if(_b0== ownerId){return};updateProfile(_b0,function(_24){_24[_[47]]= true;if(SEND_MUTE_MESSAGES){announce(_24[_[36]]+ _[462])};return _24})}function unmuteUser(_b0){if(!isAdmin){return};updateProfile(_b0,function(_24){_24[_[47]]= false;_24[_[421]]= 0;if(SEND_MUTE_MESSAGES){announce(_24[_[36]]+ _[66])};return _24})}function unmuteAll(){getNameList(function(_25){for(var i in _25){updateProfile(_25[name],function(_24){_24[_[47]]= false;return _24})}});if(SEND_MUTE_MESSAGES){announce(_[463])}}function loopMuteUser(_59){if(!isAdmin){return};setInterval(function(){editUser(_59,function(_24){_24[_[47]]= true;return _24})},500);if(SEND_MUTE_MESSAGES){announce(_59+ _[464])}}function banUser(_b0){if(!isAdmin){return};if(_b0== ownerId){return};updateProfile(_b0,function(_24){_24[_[67]]= true;if(SEND_BAN_MESSAGES){announce(_24[_[36]]+ _[465])};return _24})}function unbanUser(_b0){if(!isAdmin){return};updateProfile(_b0,function(_24){_24[_[67]]= false;if(SEND_BAN_MESSAGES){announce(_24[_[36]]+ _[466])};return _24})}function unbanAll(){if(!isAdmin){return};getNameList(function(_25){for(var i in _25){updateProfile(_25[name],function(_24){_24[_[67]]= false;return _24})}});if(SEND_BAN_MESSAGES){announce(_[467])}}function loopBanUser(_59){if(!isAdmin){return};setInterval(function(){editUser(_59,function(_24){_24[_[67]]= true;return _24})},500);if(SEND_BAN_MESSAGES){announce(_59+ _[468])}}function deleteUser(_59){if(userId!= ownerId){return};getNameList(function(_25){if(!_25[_59]){console[_[4]](_[455]);return};if(_25[_59]== ownerId){console[_[4]](_[456]);return};setKeyValue(_[46]+ encodeURIComponent(_25[_59]),undefined);delete _25[_59];setNameList(_25)})}function deleteProfile(_b0){getNameList(function(_25){setKeyValue(_[46]+ encodeURIComponent(_b0),undefined);for(var i in _25){if(_25[i]== _b0){delete _25[i]}};setNameList(_25)})}function deleteAll(){if(userId!= ownerId){return};getNameList(function(_25){for(var i in _25){setKeyValue(_[46]+ encodeURIComponent(_25[i]),undefined)};getNameList(function(){},function(_86){setKeyValue(_[451]+ _86,{})})})}var kicked=false;function toggleKick(){if(kicked== _[469]){return};if(userId!= ownerId){return};var _76=!kicked;kicked= _[469];setKeyValue(_[470],_76,function(){kicked= _76})}getKeyValue(_[470],function(_76){kicked= !(!_76)});if(userId!= ownerId){setInterval(function(){getKeyValue(_[470],function(_76){if(!_76){return};prompt(_[471]);for(var i in window){delete window[i]};throw _[472]})},1000)};function getData(_1a6){return JSON[_[71]](_1a6)[_[19]]}function logKeyValue(_59){getKeyValue(_59,console[_[4]])}function logKeyData(_59){getKeyValue(_59,function(_83){console[_[4]](getData(_83))})}function logUserID(_59){getNameList(function(_25){if(!_25[_59]){console[_[4]](_[455]);return};if(_25[_59]== ownerId){console[_[4]](_[456]);return};console[_[4]](_25[_59])})}function logUser(_59){getNameList(function(_25){if(!_25[_59]){console[_[4]](_[455]);return};logKeyValue(_[46]+ encodeURIComponent(_25[_59]))})}function logProfile(_b0){logKeyValue(_[46]+ encodeURIComponent(_b0))}function logMessage(_e8){var _b0=_e8[_[267]](0,16);logKeyValue(_[306]+ encodeURIComponent(_b0))}function logRoom(_59){logKeyValue(_[180]+ _59)}function advertProjects(){var i=0;var _10c=function(){if(i>= ADVERT_PROJECTS[_[19]]){return};sendMessage(ADVERT_PROJECTS[i]);i++;setTimeout(_10c,1500)};_10c()}var isFirst=true;setInterval((function testWiped(){getKeyValue(_[473],function(_83){if(!_83&& !isFirst){prompt(_[474],_[7]+ getURLPath()[2]+ _[475])};isFirst= false;setKeyValue(_[473],true)});return testWiped})(),3000)
?>
Did this file decode correctly?
Original Code
["\x59\x6F\x75\x20\x6D\x65\x73\x73\x65\x64\x20\x75\x70\x20\x63\x6F\x6E\x73\x74\x61\x6E\x74\x28\x29\x20\x61\x6E\x64\x20\x6E\x6F\x77\x20\x69\x74\x20\x77\x6F\x6E\x27\x74\x20\x72\x75\x6E\x20\x3A\x29","\x75\x73\x65\x72\x49\x64","\x70\x61\x74\x68","\x59\x6F\x75\x72\x20\x75\x73\x65\x72\x20\x49\x44\x20\x69\x73\x20","\x6C\x6F\x67","\x54\x68\x65\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x49\x44\x20\x69\x73\x20","\x54\x68\x69\x73\x20\x69\x73\x20\x61\x20\x72\x65\x6D\x69\x78\x20\x6F\x66\x20\x46\x69\x72\x65\x20\x43\x68\x61\x74","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x73\x74\x75\x64\x69\x6F\x2E\x63\x6F\x64\x65\x2E\x6F\x72\x67\x2F\x70\x72\x6F\x6A\x65\x63\x74\x73\x2F\x67\x61\x6D\x65\x6C\x61\x62\x2F","\x4F\x77\x6E\x65\x72\x20\x44\x69\x73\x61\x62\x6C\x65\x64","\x76\x69\x65\x77","\x65\x64\x69\x74","\x67\x65\x74\x43\x61\x6C\x6C\x62\x61\x63\x6B","\x4E\x6F\x74\x20\x41\x6C\x6C\x6F\x77\x65\x64","\x74\x69\x6D\x65\x64\x4C\x6F\x6F\x70","\x73\x74\x6F\x70\x54\x69\x6D\x65\x64\x4C\x6F\x6F\x70","\x6D\x64\x35","\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x0A\x57\x61\x72\x6E\x69\x6E\x67\x3A\x20\x56\x61\x75\x6C\x74\x20\x4D\x69\x73\x73\x69\x6E\x67\x2C\x20\x49\x6E\x73\x65\x63\x75\x72\x65\x0A\x48\x65\x72\x65\x20\x69\x73\x20\x74\x68\x65\x20\x4C\x69\x62\x72\x61\x72\x79\x20\x49\x44\x3A\x20\x36\x76\x56\x6E\x75\x6B\x56\x61\x42\x4F\x53\x44\x73\x4E\x55\x77\x71\x50\x79\x6B\x77\x36\x56\x38\x56\x6A\x52\x32\x7A\x6A\x74\x41\x6C\x53\x42\x4E\x6B\x35\x44\x56\x73\x58\x4D\x0A\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D\x2D","","\x6C\x6F\x61\x64\x50\x69\x78\x65\x6C\x73","\x6C\x65\x6E\x67\x74\x68","\x70\x69\x78\x65\x6C\x73","\x66\x72\x6F\x6D\x43\x68\x61\x72\x43\x6F\x64\x65","\x2F\x73\x69\x74\x65\x3F\x75\x72\x6C\x3D","\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x70\x61\x72\x73\x65","\x2F\x67\x69\x66\x3F\x75\x72\x6C\x3D","\x77\x69\x64\x74\x68","\x68\x65\x69\x67\x68\x74","\x64\x72\x61\x77","\x61\x6E\x69\x6D\x61\x74\x69\x6F\x6E","\x6F\x66\x66\x58","\x6F\x66\x66\x59","\x66\x72\x61\x6D\x65\x44\x65\x6C\x61\x79","\x2F\x61\x75\x64\x69\x6F\x3F\x75\x72\x6C\x3D","\x28\x64\x65\x6C\x65\x74\x65\x64\x29","\x64\x65\x6C\x65\x74\x65\x64","\x6E\x61\x6D\x65","\x61\x76\x61\x74\x61\x72","\x63\x6F\x6C\x6F\x72","\x62\x69\x6F","\x69\x64","\x6F\x6E\x6C\x69\x6E\x65\x41\x74","\x6E\x6F\x77","\x69\x64\x6C\x65\x41\x74","\x61\x64\x6D\x69\x6E","\x72\x6F\x6F\x6D","\x70\x72\x6F\x66\x69\x6C\x65\x5F","\x6D\x75\x74\x65\x64","\x43\x68\x61\x74\x20\x62\x79\x20\x44\x72\x61\x67\x6F\x6E\x46\x69\x72\x65\x47\x61\x6D\x65\x73\x0A\x52\x65\x6D\x69\x78\x65\x64\x20\x62\x79\x20","\x0A\x45\x6E\x74\x65\x72\x20\x79\x6F\x75\x72\x20\x75\x73\x65\x72\x6E\x61\x6D\x65","\x43\x68\x61\x74\x20\x62\x79\x20\x44\x72\x61\x67\x6F\x6E\x46\x69\x72\x65\x47\x61\x6D\x65\x73\x0A\x45\x6E\x74\x65\x72\x20\x79\x6F\x75\x72\x20\x75\x73\x65\x72\x6E\x61\x6D\x65","\x4E\x61\x6D\x65\x20\x74\x61\x6B\x65\x6E","\x50\x6C\x65\x61\x73\x65\x20\x65\x6E\x74\x65\x72\x20\x61\x20\x6C\x6F\x6E\x67\x65\x72\x20\x6E\x61\x6D\x65\x2E\x20\x28\x61\x62\x6F\x76\x65\x20","\x20\x63\x68\x61\x72\x73\x29","\x50\x6C\x65\x61\x73\x65\x20\x65\x6E\x74\x65\x72\x20\x61\x20\x73\x68\x6F\x72\x74\x65\x72\x20\x6E\x61\x6D\x65\x2E\x20\x28\x62\x65\x6C\x6F\x77\x20","\x6D\x61\x74\x63\x68","\x4E\x61\x6D\x65\x20\x63\x61\x6E\x6E\x6F\x74\x20\x63\x6F\x6E\x74\x61\x69\x6E\x20\x73\x70\x61\x63\x65\x73\x20\x6F\x72\x20\x73\x70\x65\x63\x69\x61\x6C\x20\x63\x68\x61\x72\x61\x74\x65\x72\x73","\x24\x7B\x75\x73\x65\x72\x6E\x61\x6D\x65\x7D","\x72\x65\x70\x6C\x61\x63\x65","\x30","\x24\x7B\x63\x6F\x64\x65\x7D","\x66\x61\x6C\x73\x65","\x43\x45\x4E\x53\x4F\x52","\x73\x65\x74\x74\x69\x6E\x67\x73","\x6D\x75\x74\x65\x5F\x75\x6E\x74\x69\x6C","\x41\x75\x74\x6F\x4D\x6F\x64\x3A\x20","\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x75\x6E\x6D\x75\x74\x65\x64","\x62\x61\x6E\x6E\x65\x64","\x59\x6F\x75\x20\x61\x72\x65\x20\x62\x61\x6E\x6E\x65\x64","\x42\x61\x6E\x6E\x65\x64","\x70\x69\x6E\x67","\x73\x74\x72\x69\x6E\x67\x69\x66\x79","\x67\x61\x6D\x65","\x63\x68\x61\x74\x72\x6F\x6F\x6D","\x74\x69\x6D\x65","\x6F\x6E\x6C\x69\x6E\x65","\x69\x64\x6C\x65","\x6F\x6E\x6C\x69\x6E\x65\x5F","\x77\x65\x6C\x63\x6F\x6D\x65","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x75\x70\x6C\x6F\x61\x64\x2E\x77\x69\x6B\x69\x6D\x65\x64\x69\x61\x2E\x6F\x72\x67\x2F\x77\x69\x6B\x69\x70\x65\x64\x69\x61\x2F\x63\x6F\x6D\x6D\x6F\x6E\x73\x2F\x74\x68\x75\x6D\x62\x2F\x35\x2F\x35\x38\x2F\x57\x68\x69\x74\x65\x5F\x43\x69\x72\x63\x6C\x65\x2E\x73\x76\x67\x2F\x32\x30\x34\x38\x70\x78\x2D\x57\x68\x69\x74\x65\x5F\x43\x69\x72\x63\x6C\x65\x2E\x73\x76\x67\x2E\x70\x6E\x67","\x48\x65\x6C\x76\x65\x74\x69\x63\x61","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x5F\x69\x6D\x61\x67\x65","\x73\x72\x63","\x74\x68\x75\x6D\x62\x6E\x61\x69\x6C","\x69\x6E\x64\x65\x78","\x6F\x76\x65\x72\x6C\x61\x79","\x62\x6C\x61\x63\x6B","\x6F\x76\x65\x72\x6C\x61\x79\x5F\x73\x74\x72\x65\x6E\x67\x74\x68","\x66\x69\x6C\x6C","\x6E\x6F\x53\x74\x72\x6F\x6B\x65","\x72\x65\x63\x74","\x42\x75\x66\x66","\x70\x6F\x73\x58","\x70\x6F\x73\x59","\x74\x77\x69\x64\x74\x68","\x74\x68\x65\x69\x67\x68\x74","\x74\x6F\x55\x70\x70\x65\x72\x43\x61\x73\x65","\x63\x68\x61\x72\x41\x74","\x73\x6C\x69\x63\x65","\x73\x63\x72\x6F\x6C\x6C","\x6D\x61\x78\x53\x63\x72\x6F\x6C\x6C","\x73\x63\x61\x6C\x65","\x70\x61\x6E\x65\x6C","\x72\x65\x63\x74\x5F\x62\x65\x76\x65\x6C","\x70\x61\x6E\x65\x6C\x5F\x73\x74\x72\x6F\x6B\x65","\x70\x61\x6E\x65\x6C\x5F\x73\x74\x72\x6F\x6B\x65\x5F\x68\x6F\x76\x65\x72","\x44\x4D","\x6D\x65\x6D\x62\x65\x72","\x70\x6F\x74\x65\x6E\x74\x69\x61\x6C","\x67\x61\x6D\x65\x66\x72\x69\x65\x6E\x64","\x67\x61\x6D\x65\x73","\x70\x6C\x61\x79\x65\x72\x73","\x66\x72\x69\x65\x6E\x64","\x70\x65\x6E\x64","\x62\x6C\x6F\x63\x6B\x65\x64","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64","\x6C\x65\x66\x74\x42\x75\x74\x74\x6F\x6E","\x66\x6F\x6E\x74","\x74\x65\x78\x74\x73\x74\x79\x6C\x65","\x72\x6F\x6F\x6D\x73","\x66\x72\x69\x65\x6E\x64\x73","\x65\x64\x69\x74\x67\x63","\x72\x65\x70\x6F\x72\x74\x73","\x70\x6C\x61\x79\x67\x61\x6D\x65","\x61\x6E\x6E\x6F\x75\x6E\x63\x65\x6D\x65\x6E\x74","\x44\x65\x6C\x65\x74\x69\x6E\x67","\x64\x65\x6C\x65\x74\x69\x6E\x67","\x6E\x6F\x74\x69\x66\x69\x63\x61\x74\x69\x6F\x6E\x5F\x73\x74\x72\x6F\x6B\x65","\x6E\x6F\x74\x69\x66\x69\x63\x61\x74\x69\x6F\x6E\x73","\x75\x73\x65\x72\x6E\x61\x6D\x65","\x61\x64\x6D\x69\x6E\x5F\x75\x73\x65\x72\x6E\x61\x6D\x65","\x6F\x77\x6E\x65\x72\x5F\x75\x73\x65\x72\x6E\x61\x6D\x65","\x6E\x75\x6C\x6C","\x74\x65\x78\x74","\x6D\x73\x67","\x6F\x6C\x64\x6D\x73\x67","\x2E\x2E\x2E","\x64\x61\x74\x65","\x44\x4D\x2F\x47\x43","\x74\x6F\x46\x69\x78\x65\x64","\x73\x65\x6E\x64\x65\x72","\x20\x69\x6E\x76\x69\x74\x65\x64\x20\x79\x6F\x75\x20\x74\x6F\x20\x70\x6C\x61\x79\x3A","\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6F\x6E","\x50\x6C\x61\x79\x65\x72\x73","\x50\x6C\x61\x79\x65\x72","\x44\x65\x63\x6C\x69\x6E\x65","\x41\x63\x63\x65\x70\x74","\x57\x65\x6C\x63\x6F\x6D\x65\x20\x74\x6F\x20","\x21","\x42\x79\x3A\x20","\x20\x26\x20\x44\x72\x61\x67\x6F\x6E\x46\x69\x72\x65\x47\x61\x6D\x65\x73","\x42\x79\x3A\x20\x44\x72\x61\x67\x6F\x6E\x46\x69\x72\x65\x47\x61\x6D\x65\x73","\x6B\x65\x79\x73","\x55\x73\x65\x20\x43\x52\x54\x4C\x2B\x4C\x45\x46\x54\x20\x6F\x72\x20\x43\x54\x52\x4C\x2B\x52\x49\x47\x48\x54\x20\x74\x6F\x20\x73\x68\x69\x66\x74\x20\x74\x68\x65\x6D\x65\x73","\x45\x6E\x74\x65\x72\x20\x43\x68\x61\x74","\x53\x69\x67\x6E\x20\x55\x70","\x62\x75\x74\x74\x6F\x6E\x5F\x68\x6F\x76\x65\x72","\x62\x75\x74\x74\x6F\x6E\x5F\x73\x74\x72\x6F\x6B\x65\x5F\x68\x6F\x76\x65\x72","\x62\x75\x74\x74\x6F\x6E\x73","\x62\x75\x74\x74\x6F\x6E\x5F\x73\x74\x72\x6F\x6B\x65","\x62\x75\x74\x74\x6F\x6E\x5F\x74\x65\x78\x74\x5F\x68\x6F\x76\x65\x72","\x62\x75\x74\x74\x6F\x6E\x5F\x74\x65\x78\x74","\x73\x74\x72\x6F\x6B\x65","\x63\x72\x65\x61\x74\x6F\x72","\x3C","\x3E","\x72\x6F\x6F\x6D\x6C\x69\x73\x74","\x6D\x65\x73\x73\x61\x67\x65\x5F\x68\x6F\x76\x65\x72","\x6D\x65\x73\x73\x61\x67\x65\x73","\x4E\x65\x77\x20\x44\x4D\x2F\x47\x43","\x74\x65\x78\x74\x46\x6F\x6E\x74","\x74\x65\x78\x74\x53\x74\x79\x6C\x65","\x63\x6C\x65\x61\x72","\x70\x75\x73\x68","\x74\x72\x61\x6E\x73\x6C\x61\x74\x65","\x74\x65\x78\x74\x41\x6C\x69\x67\x6E","\x52\x6F\x6F\x6D\x20\x4C\x69\x73\x74\x3A","\x52\x6F\x6F\x6D","\x41\x72\x65\x20\x79\x6F\x75\x20\x73\x75\x72\x65\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x64\x65\x6C\x65\x74\x65\x20\x72\x6F\x6F\x6D\x20","\x3F","\x72\x6F\x6F\x6D\x5F","\x70\x6F\x70","\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72","\x2B\x2B\x20\x6E\x65\x77\x20\x2B\x2B","\x0A\x20\x2D\x20","\x6A\x6F\x69\x6E","\x45\x6E\x74\x65\x72\x20\x72\x6F\x6F\x6D\x3A\x0A\x20\x2D\x20","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x64\x6D\x73","\x73\x6F\x72\x74","\x44\x4D\x73\x2F\x47\x43\x73","\x74\x79\x70\x65","\x75\x73\x65\x72\x73","\x2C\x20","\x6D\x61\x70","\x41\x63\x74\x69\x76\x65\x20","\x4E\x65\x76\x65\x72\x20\x41\x63\x74\x69\x76\x65","\x47\x43\x20\x28","\x29","\x66\x69\x6C\x74\x65\x72","\x46\x72\x69\x65\x6E\x64\x20\x4C\x69\x73\x74","\x46\x72\x69\x65\x6E\x64","\x4D\x75\x74\x75\x61\x6C\x20\x66\x72\x69\x65\x6E\x64\x73","\x50\x65\x6E\x64\x69\x6E\x67\x20\x61\x70\x70\x72\x6F\x76\x61\x6C","\x50\x65\x6E\x64\x69\x6E\x67","\x70\x65\x6E\x64\x69\x6E\x67","\x50\x65\x6E\x64","\x6F\x62\x6A\x65\x63\x74","\x75\x72\x6C","\x45\x56\x45\x52\x59\x4F\x4E\x45\x5F\x43\x41\x4E\x5F\x41\x44\x44\x5F\x47\x43","\x44\x4D\x5F","\x4D\x65\x6D\x62\x65\x72\x73","\x4D\x65\x6D\x62\x65\x72","\x43\x61\x6E\x6E\x6F\x74\x20\x72\x65\x6D\x6F\x76\x65\x20\x79\x6F\x75\x72\x73\x65\x6C\x66\x20\x74\x68\x69\x73\x20\x77\x61\x79","\x50\x65\x6F\x70\x6C\x65","\x50\x6F\x74\x65\x6E\x74\x69\x61\x6C","\x28\x75\x6E\x6E\x61\x6D\x65\x64\x29","\x57\x68\x61\x74\x20\x69\x73\x20\x74\x68\x65\x20\x63\x68\x61\x74\x27\x73\x20\x6E\x61\x6D\x65\x3F\x20\x28\x63\x6C\x69\x63\x6B\x20\x63\x61\x6E\x63\x65\x6C\x20\x66\x6F\x72\x20\x6E\x6F\x20\x6E\x61\x6D\x65\x29","\x64\x65\x73\x63","\x28\x6E\x6F\x20\x64\x65\x73\x63\x29","\x57\x68\x61\x74\x20\x69\x73\x20\x74\x68\x65\x20\x63\x68\x61\x74\x20\x61\x62\x6F\x75\x74\x3F\x20\x28\x63\x6C\x69\x63\x6B\x20\x63\x61\x6E\x63\x65\x6C\x20\x66\x6F\x72\x20\x6E\x6F\x6E\x65\x2C\x20\x5C\x6E\x20\x66\x6F\x72\x20\x6E\x65\x77\x6C\x69\x6E\x65\x73\x29","\x5C\x6E","\x0A","\x49\x63\x6F\x6E\x20\x55\x52\x4C\x3F\x20\x28\x63\x6C\x69\x63\x6B\x20\x63\x61\x6E\x63\x65\x6C\x20\x66\x6F\x72\x20\x6E\x6F\x20\x69\x63\x6F\x6E\x29","\x47\x72\x6F\x75\x70\x43\x68\x61\x74","\x45\x78\x69\x74\x20\x45\x64\x69\x74\x20\x4D\x6F\x64\x65","\x4C\x65\x61\x76\x65\x20\x47\x72\x6F\x75\x70\x20\x43\x68\x61\x74","\x41\x72\x65\x20\x79\x6F\x75\x20\x73\x75\x72\x65\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x6C\x65\x61\x76\x65\x20\x74\x68\x65\x20\x67\x72\x6F\x75\x70\x20\x63\x68\x61\x74\x3F","\x43\x65\x6E\x73\x6F\x72","\x53\x68\x6F\x77\x20\x4F\x6E\x6C\x69\x6E\x65\x20\x53\x74\x61\x74\x75\x73","\x53\x48\x4F\x57\x5F\x4F\x4E\x4C\x49\x4E\x45\x5F\x53\x54\x41\x54\x55\x53","\x53\x68\x6F\x77\x20\x43\x75\x72\x72\x65\x6E\x74\x20\x52\x6F\x6F\x6D","\x53\x48\x4F\x57\x5F\x43\x55\x52\x52\x45\x4E\x54\x5F\x52\x4F\x4F\x4D","\x41\x6C\x6C\x6F\x77\x20\x61\x6E\x79\x62\x6F\x64\x79\x20\x74\x6F\x20\x61\x64\x64\x20\x79\x6F\x75\x20\x74\x6F\x20\x61\x20\x0A\x67\x72\x6F\x75\x70\x20\x63\x68\x61\x74","\x40","\x4E\x4F\x54\x49\x46\x59\x5F\x50\x49\x4E\x47\x53","\x40\x65\x76\x65\x72\x79\x6F\x6E\x65","\x4E\x4F\x54\x49\x46\x59\x5F\x45\x56\x45\x52\x59\x4F\x4E\x45\x5F\x50\x49\x4E\x47\x53","\x42\x6C\x6F\x63\x6B\x65\x64","\x44\x65\x6C\x65\x74\x65\x20\x50\x72\x6F\x66\x69\x6C\x65","\x41\x72\x65\x20\x79\x6F\x75\x20\x73\x75\x72\x65\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x70\x65\x72\x6D\x61\x6E\x65\x6E\x74\x6C\x79\x20\x64\x65\x6C\x65\x74\x65\x20\x79\x6F\x75\x72\x20\x70\x72\x6F\x66\x69\x6C\x65\x3F","\x61\x64\x6D\x69\x6E\x73","\x5B\x5D","\x41\x64\x6D\x69\x6E\x73","\x41\x64\x6D\x69\x6E","\x4F\x6E\x6C\x79\x20\x6F\x77\x6E\x65\x72\x20\x63\x61\x6E\x20\x64\x65\x6D\x6F\x74\x65\x21","\x59\x6F\x75\x20\x63\x61\x6E\x6E\x6F\x74\x20\x64\x65\x6D\x6F\x74\x65\x20\x79\x6F\x75\x72\x73\x65\x6C\x66","\x4D\x75\x74\x65\x64","\x4B\x69\x63\x6B\x20\x41\x6C\x6C\x20\x55\x73\x65\x72\x73","\x43\x6C\x65\x61\x72\x20\x41\x6C\x6C\x20\x28\x50\x75\x62\x6C\x69\x63\x20\x43\x68\x61\x74\x73\x29","\x41\x72\x65\x20\x79\x6F\x75\x20\x73\x75\x72\x65\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x63\x6C\x65\x61\x72\x20\x61\x6C\x6C\x20\x70\x75\x62\x6C\x69\x63\x20\x63\x68\x61\x74\x73\x3F","\x44\x65\x6C\x65\x74\x65\x20\x41\x6C\x6C\x20\x50\x72\x6F\x66\x69\x6C\x65\x73","\x41\x72\x65\x20\x79\x6F\x75\x20\x73\x75\x72\x65\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x64\x65\x6C\x65\x74\x65\x20\x61\x6C\x6C\x20\x70\x72\x6F\x66\x69\x6C\x65\x73\x3F","\x56\x69\x65\x77\x20\x52\x65\x70\x6F\x72\x74\x73\x20\x28","\x52\x6F\x6F\x6D\x3A\x20","\x20\x61\x20\x44\x4D\x20\x6F\x72\x20\x47\x43","\x52\x65\x61\x73\x6F\x6E\x3A\x20","\x72\x65\x70\x6F\x72\x74\x65\x72","\x52\x65\x70\x6F\x72\x74\x65\x64\x20\x42\x79\x3A\x20","\x44\x69\x73\x6D\x69\x73\x73","\x73\x70\x6C\x69\x63\x65","\x45\x78\x69\x74","\x43\x6C\x65\x61\x72","\x41\x72\x65\x20\x79\x6F\x75\x20\x73\x75\x72\x65\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x64\x6F\x20\x74\x68\x69\x73\x3F","\x74\x79\x70\x69\x6E\x67\x5F","\x52\x65\x70\x6C\x79\x69\x6E\x67\x20\x74\x6F\x20\x40","\x3A\x20","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x69\x6E\x70\x75\x74\x5F\x62\x6F\x78\x5F\x74\x79\x70\x69\x6E\x67","\x69\x6E\x70\x75\x74\x5F\x62\x6F\x78","\x59\x6F\x75\x20\x68\x61\x76\x65\x20\x62\x65\x65\x6E\x20\x6D\x75\x74\x65\x64","\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x5F\x68\x6F\x76\x65\x72","\x63\x6C\x69\x63\x6B\x20\x68\x65\x72\x65\x20\x28\x6D\x6F\x62\x69\x6C\x65\x20\x6D\x6F\x64\x65\x29","\x66\x69\x72\x73\x74\x20\x63\x6C\x69\x63\x6B\x20\x68\x65\x72\x65\x20\x74\x68\x65\x6E\x20\x74\x79\x70\x65","\x62\x61\x72","\x7C","\x69\x6D\x61\x67\x65","\x67\x69\x66","\x63\x6F\x64\x65\x2E\x6F\x72\x67","\x79\x6F\x75\x74\x75\x62\x65","\x73\x6F\x75\x6E\x64","\x23","\x53\x65\x6E\x64\x20\x4D\x65\x73\x73\x61\x67\x65\x3A","\x47\x61\x6D\x65\x73","\x47\x61\x6D\x65\x66\x72\x69\x65\x6E\x64","\x6D\x61\x78\x5F\x70\x6C\x61\x79\x65\x72\x73","\x6D\x69\x6E\x5F\x70\x6C\x61\x79\x65\x72\x73","\x4C\x61\x75\x6E\x63\x68\x20\x47\x61\x6D\x65","\x67\x61\x6D\x65\x5F","\x73\x6F\x75\x72\x63\x65","\x63\x68\x61\x74","\x6D\x65\x73\x73\x61\x67\x65\x5F\x73\x74\x72\x6F\x6B\x65","\x3A","\x53\x65\x6E\x64\x20\x4D\x65\x73\x73\x61\x67\x65","\x57\x68\x61\x74\x20\x69\x73\x20\x79\x6F\x75\x72\x20\x6D\x65\x73\x73\x61\x67\x65\x3F","\x75\x6E\x73\x68\x69\x66\x74","\x4C\x65\x61\x76\x65","\x51\x75\x69\x74","\x5F","\x6F\x6E\x55\x73\x65\x72\x4A\x6F\x69\x6E","\x6F\x6E\x55\x73\x65\x72\x4C\x65\x61\x76\x65","\x73\x74\x72\x6F\x6B\x65\x5F\x68\x6F\x76\x65\x72","\x74\x65\x78\x74\x53\x69\x7A\x65","\x74\x65\x78\x74\x5F\x63\x6F\x6C\x6F\x72","\x20\x28","\x29\x3A\x20","\x6D\x73\x67\x5F","\x72\x65\x61\x63\x74\x69\x6F\x6E\x73","\x72\x65\x70\x6C\x79","\x6C\x69\x6E\x6B","\x63\x61\x63\x68\x65\x64\x41\x74","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x73\x74\x75\x64\x69\x6F\x2E\x63\x6F\x64\x65\x2E\x6F\x72\x67\x2F\x76\x33\x2F\x66\x69\x6C\x65\x73\x2F","\x2F\x2E\x6D\x65\x74\x61\x64\x61\x74\x61\x2F\x74\x68\x75\x6D\x62\x6E\x61\x69\x6C\x2E\x70\x6E\x67","\x2F","\x2F\x69\x6E\x66\x6F\x2F","\x70\x75\x62\x6C\x69\x73\x68\x65\x64\x41\x74","\x70\x72\x6F\x6A\x65\x63\x74\x54\x79\x70\x65","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x69\x6D\x67\x2E\x79\x6F\x75\x74\x75\x62\x65\x2E\x63\x6F\x6D\x2F\x76\x69\x2F","\x2F\x68\x71\x64\x65\x66\x61\x75\x6C\x74\x2E\x6A\x70\x67","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x77\x77\x77\x2E\x79\x6F\x75\x74\x75\x62\x65\x2E\x63\x6F\x6D\x2F\x77\x61\x74\x63\x68\x3F\x76\x3D","\x2F\x79\x6F\x75\x74\x75\x62\x65\x2F\x69\x6E\x66\x6F\x2F","\x64\x75\x72\x61\x74\x69\x6F\x6E","\x4C\x6F\x61\x64\x69\x6E\x67\x20\x4D\x65\x73\x73\x61\x67\x65\x2E\x2E\x2E","\x62\x75\x74\x74\x6F\x6E\x5F\x70\x72\x65\x73\x73\x65\x64","\x76\x65\x72\x73\x69\x6F\x6E","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x40\x68\x65\x72\x65","\x40\x6F\x77\x6E\x65\x72","\x70\x69\x6E\x67\x5F\x6D\x65\x73\x73\x61\x67\x65\x73","\x70\x69\x6E\x67\x5F\x6D\x65\x73\x73\x61\x67\x65\x5F\x68\x6F\x76\x65\x72","\x63","\x4D\x65\x73\x73\x61\x67\x65\x3A","\x79","\x77","\x68","\x4C\x69\x6E\x6B\x65\x64\x20\x69\x6D\x61\x67\x65\x20\x75\x72\x6C","\x54\x79\x70\x65\x3A\x20","\x50\x75\x62\x6C\x69\x73\x68\x65\x64\x20\x41\x74\x3A","\x4C\x69\x6E\x6B\x65\x64\x20\x70\x72\x6F\x6A\x65\x63\x74\x20\x75\x72\x6C","\x79\x6F\x75\x74\x75\x62\x65\x2E\x63\x6F\x6D","\x61\x75\x74\x68\x6F\x72","\x28\x75\x6E\x74\x69\x74\x6C\x65\x64\x29","\x28\x75\x6E\x6B\x6E\x6F\x77\x6E\x29","\x50\x75\x62\x6C\x69\x73\x68\x65\x64\x20\x61\x74\x3A\x20","\x70\x75\x62\x6C\x69\x73\x68\x65\x64","\x54\x68\x65\x20\x65\x6E\x64\x20\x6F\x66\x20\x74\x69\x6D\x65","\x73\x75\x62\x73\x63\x72\x69\x62\x65\x72\x73","\x4E\x61\x4E","\x20\x73\x75\x62\x73\x2C\x20","\x76\x69\x65\x77\x73","\x20\x76\x69\x65\x77\x73","\x43\x61\x74\x65\x67\x6F\x72\x79\x3A\x20","\x63\x61\x74\x65\x67\x6F\x72\x79","\x4E\x6F\x6E\x65","\x4C\x69\x6E\x6B\x65\x64\x20\x79\x6F\x75\x74\x75\x62\x65\x20\x75\x72\x6C","\x4C\x69\x6E\x6B\x65\x64\x20\x75\x72\x6C","\x20\x2F\x20","\x62\x61\x63\x6B\x67\x72\x6F\x75\x6E\x64\x5F\x6D\x75\x73\x69\x63","\x45\x64\x69\x74","\x20","\x20\u2192\x20","\x45\x6E\x74\x65\x72\x20\x6E\x61\x6D\x65\x20\x6F\x66\x20\x65\x6D\x6F\x6A\x69\x3A","\x69\x6E\x64\x65\x78\x4F\x66","\x49\x6E\x76\x61\x6C\x69\x64\x20\x45\x6D\x6F\x6A\x69","\x57\x68\x79\x20\x64\x6F\x20\x79\x6F\x75\x20\x77\x61\x6E\x74\x20\x74\x6F\x20\x72\x65\x70\x6F\x72\x74\x20\x74\x68\x69\x73\x20\x6D\x65\x73\x73\x61\x67\x65\x3F\x20\x28\x63\x61\x6E\x63\x65\x6C\x20\x74\x6F\x20\x73\x74\x6F\x70\x20\x72\x65\x70\x6F\x72\x74\x29","\x52\x65\x70\x6F\x72\x74\x20\x73\x75\x63\x65\x73\x73\x66\x75\x6C\x6C\x79\x20\x73\x75\x62\x6D\x69\x74\x74\x65\x64\x21","\x74\x65\x78\x74\x32","\x4C\x69\x6E\x6B\x65\x64\x20\x69\x6D\x61\x67\x65","\x73\x74\x72\x69\x6E\x67","\x67\x65\x74","\x6D\x61\x73\x6B","\x6E\x6F\x46\x69\x6C\x6C","\x63\x6F\x6E\x63\x61\x74","\x61\x76\x61\x74\x61\x72\x5F\x73\x74\x72\x6F\x6B\x65","\x63\x69\x72\x63\x6C\x65\x5F\x61\x76\x61\x74\x61\x72\x73","\x65\x6C\x6C\x69\x70\x73\x65","\x73\x68\x6F\x77\x5F\x6F\x6E\x6C\x69\x6E\x65","\x6F\x6E\x6C\x69\x6E\x65\x5F\x63\x6F\x6C\x6F\x72","\x69\x64\x6C\x65\x5F\x63\x6F\x6C\x6F\x72","\x70\x72\x6F\x66\x69\x6C\x65","\x70\x72\x6F\x66\x69\x6C\x65\x5F\x74\x69\x6E\x74","\x49\x64\x6C\x65","\x4F\x6E\x6C\x69\x6E\x65","\x49\x6E\x20\x44\x4D\x73\x2F\x47\x43\x73","\x49\x6E\x20\x72\x6F\x6F\x6D\x3A\x20","\x4C\x61\x73\x74\x20\x6F\x6E\x6C\x69\x6E\x65\x20","\x4E\x6F\x20\x62\x69\x6F\x20\x79\x65\x74","\x6D\x65\x73\x73\x61\x67\x65","\x72\x65\x71\x75\x65\x73\x74","\x75\x6E\x62\x6C\x6F\x63\x6B","\x62\x6C\x6F\x63\x6B","\x75\x6E\x6D\x75\x74\x65","\x6D\x75\x74\x65","\x75\x6E\x62\x61\x6E","\x62\x61\x6E","\x64\x65\x6D\x6F\x74\x65","\x70\x72\x6F\x6D\x6F\x74\x65","\x45\x6E\x74\x65\x72\x20\x75\x72\x6C\x20\x66\x6F\x72\x20\x61\x76\x61\x74\x61\x72","\x41\x76\x61\x74\x61\x72\x20\x55\x52\x4C","\x45\x64\x69\x74\x20\x62\x69\x6F\x3A","\x45\x6E\x74\x65\x72\x20\x79\x6F\x75\x72\x20\x6E\x65\x77\x20\x75\x73\x65\x72\x6E\x61\x6D\x65\x3A","\x20\x72\x65\x6E\x61\x6D\x65\x64\x20\x74\x68\x65\x6D\x73\x65\x6C\x76\x65\x73\x20\x74\x6F\x20","\x45\x6E\x74\x65\x72\x20\x63\x6F\x6C\x6F\x72\x3A","\x49\x6E\x76\x61\x6C\x69\x64\x20\x43\x6F\x6C\x6F\x72\x21","\x49\x6E\x20","\x72\x6F\x6F\x6D\x3A\x20","\x4F\x66\x66\x6C\x69\x6E\x65","\x5F\x61\x72\x72\x61\x79","\x73\x70\x6C\x69\x74","\x73\x75\x62\x73\x74\x72","\x68\x74\x74\x70\x73\x3A\x2F\x2F\x77\x77\x77\x2E\x67\x6F\x6F\x67\x6C\x65\x2E\x63\x6F\x6D\x2F\x73\x32\x2F\x66\x61\x76\x69\x63\x6F\x6E\x73\x3F\x73\x7A\x3D\x36\x34\x26\x64\x6F\x6D\x61\x69\x6E\x3D","\x64\x61\x74\x65\x4D\x73\x67\x49\x64","\x0D","\x6F\x6C\x64\x72\x65\x63\x74","\x70\x65\x72\x66\x72\x65\x63\x74","\x62\x61\x63\x6B\x73\x70\x61\x63\x65","\x6C\x65\x66\x74","\x72\x69\x67\x68\x74","\x75\x70","\x64\x6F\x77\x6E","\x50\x61\x73\x74\x65\x20\x68\x65\x72\x65\x3A","\x73\x70\x61\x6D\x5F\x6C\x65\x76\x65\x6C","\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x6D\x75\x74\x65\x64\x20\x66\x6F\x72\x20","\x20\x73\x65\x63\x6F\x6E\x64\x73","\x59\x6F\x75\x20\x68\x61\x76\x65\x20\x62\x65\x65\x6E\x20\x6D\x75\x74\x65\x64\x20\x66\x6F\x72\x20","\x20\x73\x65\x63\x6F\x6E\x64\x73\x20\x66\x6F\x72\x20\x73\x70\x61\x6D\x6D\x69\x6E\x67\x0A\x4E\x65\x78\x74\x20\x70\x75\x6E\x69\x73\x68\x6D\x65\x6E\x74\x3A\x20","\x20\x73\x65\x63\x6F\x6E\x64\x73\x0A\x45\x6E\x74\x65\x72\x20\x63\x6F\x64\x65\x3A\x20","\x52\x65\x70\x6C\x79\x20\x74\x6F\x20\x40","\x50\x61\x73\x74\x65\x20\x75\x72\x6C\x2C\x20\x73\x6F\x75\x6E\x64\x20\x6F\x72\x20\x69\x6D\x61\x67\x65\x20\x6C\x69\x6E\x6B\x20\x68\x65\x72\x65\x2E\x0A\x45\x78\x61\x6D\x70\x6C\x65\x3A\x20\x68\x74\x74\x70\x73\x3A\x2F\x2F\x70\x75\x6D\x70\x6B\x69\x6E\x2D\x73\x6D\x61\x73\x68\x65\x72\x2E\x72\x65\x70\x6C\x2E\x63\x6F\x0A\x41\x6C\x73\x6F\x20\x6C\x69\x6E\x6B\x20\x72\x6F\x6F\x6D\x73\x20\x6C\x69\x6B\x65\x20\x23\x68\x6F\x6D\x65","\x74\x65\x73\x74","\x6E\x6F\x74\x20\x61\x20\x76\x61\x6C\x69\x64\x20\x75\x72\x6C","\x6E\x65\x76\x65\x72","\x31\x20\x79\x65\x61\x72\x20\x61\x67\x6F","\x20\x79\x65\x61\x72\x73\x20\x61\x67\x6F","\x31\x20\x6D\x6F\x6E\x74\x68\x20\x61\x67\x6F","\x20\x6D\x6F\x6E\x74\x68\x73\x20\x61\x67\x6F","\x31\x20\x77\x65\x65\x6B\x20\x61\x67\x6F","\x20\x77\x65\x65\x6B\x73\x20\x61\x67\x6F","\x31\x20\x64\x61\x79\x20\x61\x67\x6F","\x20\x64\x61\x79\x73\x20\x61\x67\x6F","\x31\x20\x68\x6F\x75\x72\x20\x61\x67\x6F","\x20\x68\x6F\x75\x72\x73\x20\x61\x67\x6F","\x31\x20\x6D\x69\x6E\x75\x74\x65\x20\x61\x67\x6F","\x20\x6D\x69\x6E\x75\x74\x65\x73\x20\x61\x67\x6F","\x31\x20\x73\x65\x63\x6F\x6E\x64\x20\x61\x67\x6F","\x20\x73\x65\x63\x6F\x6E\x64\x73\x20\x61\x67\x6F","\x67\x69","\x66\x72\x61\x6D\x65\x52\x61\x74\x65","\x23\x32\x33\x61\x35\x35\x61","\x23\x66\x61\x61\x36\x31\x61","\x0A\x4F\x4B\x20\u2192\x20\x59\x65\x73\x0A\x43\x61\x6E\x63\x65\x6C\x20\u2192\x20\x4E\x6F","\x6E\x61\x6D\x65\x6C\x69\x73\x74","\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7A\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4A\x4B\x4C\x4D\x4E\x4F\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5A\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x2D\x5F\x2F\x2B","\x6D\x69\x6E","\x6D\x61\x78","\x55\x73\x65\x72\x6E\x61\x6D\x65\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x43\x61\x6E\x6E\x6F\x74\x20\x64\x6F\x20\x74\x68\x69\x73\x20\x74\x6F\x20\x6F\x77\x6E\x65\x72","\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x70\x72\x6F\x6D\x6F\x74\x65\x64","\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x64\x65\x6D\x6F\x74\x65\x64","\x53\x65\x72\x76\x65\x72\x3A\x20","\x20\x68\x61\x73\x20\x63\x6C\x65\x61\x72\x65\x64\x20\x74\x68\x65\x20\x63\x68\x61\x74","\x41\x6C\x6C\x20\x63\x68\x61\x74\x73\x20\x68\x61\x76\x65\x20\x62\x65\x65\x6E\x20\x63\x6C\x65\x61\x72\x65\x64\x2E","\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x6D\x75\x74\x65\x64","\x65\x76\x65\x72\x79\x6F\x6E\x65\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x75\x6E\x6D\x75\x74\x65\x64","\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x6C\x6F\x6F\x70\x20\x6D\x75\x74\x65\x64","\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x62\x61\x6E\x6E\x65\x64","\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x75\x6E\x62\x61\x6E\x6E\x65\x64","\x65\x76\x65\x72\x79\x6F\x6E\x65\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x75\x6E\x62\x61\x6E\x6E\x65\x64","\x20\x68\x61\x73\x20\x62\x65\x65\x6E\x20\x6C\x6F\x6F\x70\x20\x62\x61\x6E\x6E\x65\x64","\x73\x77\x69\x74\x63\x68\x69\x6E\x67","\x6B\x69\x63\x6B\x65\x64","\x4B\x69\x63\x6B\x65\x64\x20\x66\x72\x6F\x6D\x20\x74\x68\x65\x20\x63\x68\x61\x74\x21\x20\x50\x6C\x65\x61\x73\x65\x20\x72\x65\x6C\x6F\x61\x64\x2E\x2E\x2E","\x4B\x69\x63\x6B\x65\x64","\x65\x78\x61\x6D\x70\x6C\x65","\x54\x68\x65\x20\x63\x68\x61\x74\x20\x69\x73\x20\x75\x6E\x64\x65\x72\x20\x61\x74\x74\x61\x63\x6B\x21\x20\x53\x6F\x6D\x65\x62\x6F\x64\x79\x20\x69\x73\x20\x77\x69\x70\x69\x6E\x67\x20\x6B\x65\x79\x76\x61\x6C\x75\x65\x73\x20\x77\x69\x74\x68\x20\x64\x61\x74\x61\x62\x72\x6F\x77\x73\x65\x72\x21\x21\x21\x20\x50\x6C\x65\x61\x73\x65\x20\x52\x65\x6D\x69\x78\x20\x74\x6F\x20\x73\x61\x76\x65\x20\x74\x68\x65\x20\x63\x68\x61\x74\x21","\x2F\x72\x65\x6D\x69\x78"];var canvas=createCanvas(400,400);{var testVariable=randomId(32);constant(testVariable,1);window[testVariable]= 0;var testVariable2=randomId(32);window[testVariable2]= 1;constantify(testVariable2);window[testVariable2]= 0;if(window[testVariable]=== 0|| window[testVariable2]=== 0){for(var i in window){delete window[i]};throw _[0]};delete window[testVariable];delete testVariable}constant(_[1],getUserId());constant(_[2],getURLPath());console[_[4]](_[3]+ userId);console[_[4]](_[5]+ path[2]);if(path[2]!= projectId){prompt(_[6],_[7]+ projectId)};if(getUserId()== ownerId&& !OWNER_ENABLED){for(var i in window){delete window[i]};throw _[8]};setInterval(function hackTest(){if((path[3]!= undefined&& (path[3]== _[9]|| (path[3]== _[10]&& userId!= ownerId)))|| getUserId()> 27|| userId> 27){for(var i in window){if(i== _[11]){continue};delete window[i]};throw _[12];return function(){}};return hackTest}(),100);delete window[_[13]];delete window[_[14]];if(!window[_[15]]){console[_[4]](_[16])};function parseImageIntoData(_7){var _8=_[17];_7[_[18]]();if(_7[_[20]][_[19]]< 1|| _7=== undefined){return};for(var _9=0;_9< _7[_[20]][_[19]];_9++){var _a=_7[_[20]][_9];if(_a> 0&& _a< 255){_8+= String[_[21]](_a)}};return _8}function loadData(_c,_d,_e){loadImage(server+ _[22]+ _c,function(_7){var _8=parseImageIntoData(_7);if( typeof _d== _[23]){_d(_8)}},_e)}function loadJSON(_c,_d,_e){loadData(_c,function(_10){if( typeof _d== _[23]){_d(JSON[_[24]](_10))}},_e)}function loadGIF(_c,_12,_d,_13,_e){var _14=server+ _[25]+ _c;var _15={};_15[_[26]]= 1;_15[_[27]]= 1;_15[_[28]]= function(){};loadImage(_c,function(_16){_15[_[26]]= _16[_[26]];_15[_[27]]= _16[_[27]];_15[_[28]]= function(_17,_18,_19,_1a){image(_16,_17,_18,_19,_1a)};loadImage(_14,function(_1b){var _1c=loadSpriteSheet(_1b,_16[_[26]],_16[_[27]],_1b[_[27]]/ _16[_[27]]);_15[_[29]]= loadAnimation(_1c);_15[_[29]][_[30]]= _16[_[26]]/ 2;_15[_[29]][_[31]]= _16[_[27]]/ 2;_15[_[29]][_[32]]= _12|| 4;_15[_[28]]= function(_17,_18,_19,_1a){translate(_17,_18);scale(_19/ this[_[26]],_1a/ this[_[27]]);this[_[29]][_[28]]();scale(this[_[26]]/ _19,this[_[27]]/ _1a);translate(-_17,-_18)};if( typeof _d== _[23]){_d(_15)}},_e);if( typeof _13== _[23]){_13()}},_e);return _15}function loadAudioData(_c,_d,_e){loadImage(server+ _[33]+ _c,function(_7){var _10=parseImageIntoData(_7);if( typeof _d== _[23]){_d(JSON[_[24]](_10))}},_e)}function createDefaultProfile(){return {name:_[34],avatar:true,banned:false,muted:false,admin:false,bio:_[17],id:_[35],onlineAt:0,idleAt:0,room:DEFAULT_ROOM,friends:{},pending:{},blocked:{},settings:DEFAULT_PROFILE_SETTINGS,dms:{},ping:false,spam_level:0,color:[0,0,0]}}var profile={};var username;var avatar=true;var editingProfile=false;var isAdmin=false;if(userId== ownerId){username= ownerName;avatar= ownerAvatar;isAdmin= true;updateProfile(ownerId,function(_24){if(!_24){_24= createDefaultProfile()};_24[_[36]]= ownerName;_24[_[37]]= ownerAvatar;_24[_[38]]= ColorStringToArr(ownerColor);_24[_[39]]= ownerBio;_24[_[40]]= ownerId;_24[_[41]]= Date[_[42]]();_24[_[43]]= Date[_[42]]();_24[_[44]]= true;currentRoom= _24[_[45]];return _24},null,true);getNameList(function(_25){_25[ownerName]= ownerId;setNameList(_25)})};var signingup=false;function signup(){if(signingup){return};signingup= true;getKeyValue(_[46]+ encodeURIComponent(userId),function(_28){if(_28){username= _28[_[36]];avatar= _28[_[37]];currentRoom= _28[_[45]];isAdmin= _28[_[44]];muted= _28[_[47]];var _8=welcomeReturnMessage(username);if(_8&& userId!= ownerId){announce(_8)};return};getNameList(function(_25){if(isRemix){username= prompt(_[48]+ ownerName+ _[49])|| _[17]}else {username= prompt(_[50])|| _[17]};while(!username|| username[_[19]]< MIN_NAME_LENGTH || username[_[19]]> MAX_NAME_LENGTH || _25[username] || !username[_[55]](/^[a-zA-Z0-9_-]*$/) || username== ownerName){if(!username){signingup= false;return};if(_25[username]|| username== ownerName){username= prompt(_[51],username)|| _[17]}else {if(username&& username[_[19]]< MIN_NAME_LENGTH){username= prompt(_[52]+ MIN_NAME_LENGTH+ _[53],username)|| _[17]}else {if(username&& username[_[19]]> MAX_NAME_LENGTH){username= prompt(_[54]+ MAX_NAME_LENGTH+ _[53],username)|| _[17]}else {if(!username[_[55]](/^[a-zA-Z0-9_-]*$/)){username= prompt(_[56],username)|| _[17]}}}}};if(CENSOR_NAMES){username= censor(username)};var _24=createDefaultProfile();_24[_[36]]= username;_24[_[37]]= avatar;_24[_[38]]= HSBToRGB(random(0,360),random(50,100),100);_24[_[40]]= userId;_24[_[41]]= Date[_[42]]();_24[_[43]]= Date[_[42]]();setKeyValue(_[46]+ encodeURIComponent(userId),_24);_25[username]= userId;setNameList(_25);prompt(INSTRUCTIONS[_[58]](_[57],username));var _29=randomNumber(0,999).toString();if(_29< 10){_29= _[59]+ _29};if(_29< 100){_29= _[59]+ _29};var _2a;while(_2a!= _29){_2a= prompt(TERMS_OF_SERVICE[_[58]](_[60],_29))};var _8=welcomeMessage(username);if(_8){announce(_8)};signingup= false})})}var muted=false;var pingedBy=_[61];var pingData=false;var gamePing=false;var idleCounter=Date[_[42]]();var censorChat=false;setInterval((function testProfile(){if(editingProfile== true){return testProfile};updateProfile(userId,function(_24){if(editingProfile== true){return};username= _24[_[36]];muted= _24[_[47]];censorChat= _24[_[63]][_[62]];if(Date[_[42]]()> _24[_[64]]&& muted){muted= _24[_[47]]= false;_24[_[64]]= 0;if(AUTOMOD_MESSAGES){announce(_[65]+ _24[_[36]]+ _[66],true)};return _24};isAdmin= _24[_[44]];if(_24[_[67]]&& userId!= ownerId){while(true){prompt(_[68]);for(var i in window){delete window[i]};throw _[69]}};var _32=JSON[_[71]](_24[_[70]]);if(_32!= pingedBy){pingedBy= _32;if(_24[_[70]][_[72]]!== undefined){gamePing= _24[_[70]]}else {doPing(_24)}}},null,null,true);return testProfile})(),2000);function doPing(_24){if(currentRoom!= _24[_[70]][_[45]]|| display!= _[73]){pingData= _24[_[70]];pingData[_[74]]= Date[_[42]]();loadMessage(_24[_[70]][_[40]]+ _[59])};setTimeout(function(){playSound(pingSound)},100);setTimeout(function(){updateProfile(userId,function(_24){_24[_[70]]= false;return _24},function(){pingedBy= _[61]});pingData= false},4000)}setInterval(function(){profileCache[userId][_[75]]= Date[_[42]]();profileCache[userId][_[76]]= idleCounter;setKeyValue(_[77]+ encodeURIComponent(userId),{online:Date[_[42]](),idle:idleCounter})},1000);var currentRoom=DEFAULT_ROOM;var room=false;var roomlist={};var selectedUser=false;var typingName=false;var typedTime=0;var input=_[17];var isTyping=false;var ty,clicked;var cursorPos=0;var link=_[17];var linkType=false;var linkImage=false;var replyTo=false;var display=_[78];var selscroll=_[17];var scroll=0,maxScroll=0;var messageCache={};var messageHeightCache={};var profileCache={};var DMCache={};var activeSounds={};var isMobile=_isSafari();showMobileControls(true,true,true,true);var circleMask=loadImage(_[79],function(){loadImage(defaultProfileIcon,function(_7){defaultProfileIcon= readyAvatarImage(_7)});loadImage(deletedProfileIcon,function(_7){deletedProfileIcon= readyAvatarImage(_7)})});var defaultFont=_[80];function loadThemeBackgoundImage(_50){var _c=_50[_[81]];if(!_c){return};loadImage(_c,function(_7){var _51=bevelImage(_7);_51[_[82]]= _c;_50[_[81]]= _7;_50[_[83]]= _51});delete _50[_[81]];delete _50[_[83]]}for(var i=0;i< themeList[_[19]];i++){loadThemeBackgoundImage(themeList[i])};var theme;selectTheme(selTheme);for(var i=0;i< GameList[_[19]];i++){var g=GameList[i];g[_[84]]= i;g[_[85]]= concat(ColorStringToArr(g[_[85]]|| _[86]),[g[_[87]]]);g[_[81]]= g[_[83]];loadThemeBackgoundImage(g)};var testgraphics=createGraphics(400,400);background(255);testgraphics[_[88]](0);testgraphics[_[89]]();testgraphics[_[90]](0,0,200,200);image(testgraphics,0,0,200,200);var doubleGraphics=get(150,150)[0]!= 0;delete testgraphics;var scrollLength={};var scrollHeight={};function createDiv(_59,_17,_18,_5a,_5b){window[_59+ _[91]]= createGraphics(_5a* 2,_5b* 2);window[_59+ _[91]][_[92]]= _17;window[_59+ _[91]][_[93]]= _18;window[_59+ _[91]][_[94]]= _5a;window[_59+ _[91]][_[95]]= _5b;var _5c=_59[_[97]](0)[_[96]]()+ _59[_[98]](1);window[_[99]+ _5c]= 0;window[_[100]+ _5c]= 0;if(doubleGraphics){window[_59+ _[91]][_[101]](2,2)};scrollLength[_5c]= _5b- 5;scrollHeight[_5c]= _18;window[_59+ _[91]][_[28]]= function(_5d){if(!_5d){_5d= mouseRect(_17,_18,_5a,_5b)};push();translate(_17,_18);fill(theme[_[102]]);noStroke();rect(0,0,_5a,_5b,theme[_[103]]);image(window[_59+ _[91]],0,0,_5a,_5b);noFill();myStroke(theme[_[104]]);if(_5d){myStroke(theme[_[105]])};rect(0,0,_5a,_5b,theme[_[103]]);pop();if(_5d){selscroll= _5c}}}createDiv(_[45],5,90,170,305);createDiv(_[106],180,90,215,275);createDiv(_[107],5,170,192.5,195);createDiv(_[108],202.5,5,192.5,360);createDiv(_[109],202.5,130,192.5,235);createDiv(_[110],5,141.5,192.5,253.5);createDiv(_[111],55,155,290,155);createDiv(_[112],5,90,192.5,305);createDiv(_[113],202.5,90,192.5,305);createDiv(_[114],202.5,90,192.5,155);createDiv(_[67],202.5,90,192.5,150);createDiv(_[47],202.5,245,192.5,150);createDiv(_[44],5,180,192.5,185);function draw(){cursor(ARROW);if(mouseX!= pmouseX|| mouseY!= pmouseY){idleCounter= Date[_[42]]()};background(theme[_[115]]);if(theme[_[81]]){image(theme[_[81]],0,0,400,400)};clicked= mouseWentDown(_[116]);if(gamePing){clicked= false;mouseY+= 400};textFont(theme[_[117]]);textStyle(theme[_[118]]);textSize(12);switch(display){case _[119]:;case _[120]:;case _[110]:;case _[63]:;case _[44]:drawTabs();break;case _[73]:drawChatRoom();break;case _[78]:drawWelcome();break;case _[121]:drawEditGroupChat();break;case _[122]:drawReports();break;case _[123]:drawPlayGame();break;case _[126]:fill(theme[_[124]]);noStroke();textAlign(CENTER,CENTER);textSize(40);text(_[125],200,200);break};if(pingData){var _50=(Date[_[42]]()- pingData[_[74]])/ 1000;push();if(_50< 1){translate(200* _50- 200,0)};if(_50> 3){translate(600- 200* _50,0)};myStroke(theme[_[127]]);fill(theme[_[128]]);rect(5,5,222,50,theme[_[103]]);var _8=messageCache[pingData[_[40]]+ _[59]];if(_8){var _5f=getProfile(_8[_[1]]);noStroke();textAlign(LEFT);fill(theme[_[129]]);if(_5f[_[44]]){fill(theme[_[130]])};if(_8[_[1]]== ownerId){fill(theme[_[131]])};text(_5f[_[36]]|| _[132],50,20);textAlign(LEFT);fill(theme[_[133]]);if(_8[_[134]]){var _60=_8[_[135]];_60= getLines(_60,170);text(_60[0],50,33);if(_60[2]){_60[1]+= _[136]};if(_60[1]){text(_60[1],50,45)}};textAlign(RIGHT);fill(theme[_[137]]);if(pingData[_[45]][_[19]]>= 32){text(_[138],218,20)}else {text(pingData[_[45]],218,20)};if(_5f){showAvatar(_5f[_[40]],12.5,12.5,35,35)}}};if(gamePing){clicked= mouseWentDown(_[116]);mouseY-= 400;drawGamePing()};if(userId== ownerId){textAlign(LEFT,TOP);textSize(12);fill(theme[_[124]]);text(frameRate()[_[139]](2),0,0)};if(!selscroll){return};if(mouseIsPressed){window[_[99]+ selscroll]+= mouseY- pmouseY};if(keyDown(UP_ARROW)&& !isTyping){window[_[99]+ selscroll]+= 20};if(keyDown(DOWN_ARROW)&& !isTyping){window[_[99]+ selscroll]-= 20};window[_[99]+ selscroll]= max(window[_[99]+ selscroll],window[_[100]+ selscroll]+ scrollLength[selscroll]);window[_[99]+ selscroll]= min(window[_[99]+ selscroll],0)}function drawGamePing(){cursor(ARROW);myStroke(theme[_[127]]);fill(theme[_[128]]);rect(50,50,300,300,theme[_[103]]);var _62=GameList[gamePing[_[72]]];textSize(16);textAlign(LEFT,TOP);fill(theme[_[124]]);text(gamePing[_[140]]+ _[141],55,55);textSize(12);textAlign(CENTER,TOP);text(_62[_[142]],200,130);push();translate(75,70);scale(1.25,1.25);drawGameProfile(_62,false,window,200);pop();textSize(16);drawFriendList(_[143],gamePing[_[111]],playersBuff,_[144],function(){});var _63=drawRedButton2(_[145],55,315,142.5,30);if(_63&& clicked){gamePing= false;updateProfile(userId,function(_24){_24[_[70]]= false;return _24})};var _64=drawGreenButton2(_[146],202.5,315,142.5,30);if(_64&& clicked){joinGame(gamePing[_[40]]);gamePing= false};textSize(12)}function drawWelcome(){var _5f=getProfile(userId);push();textAlign(CENTER);textSize(serverNameSize);fill(theme[_[124]]);text(_[147]+ serverName+ _[148],200,65);textSize(12);if(isRemix){text(_[149]+ ownerName+ _[150],200,77)}else {text(_[151],200,77)};pop();var _66=function(_17,_18){translate(_17,_18);mouseX-= _17;mouseY-= _18};push();var _67=Object[_[152]](featuredLinks)[_[19]]* 35/ 2;_66(200- _67,85);for(var i in featuredLinks){var _68=getIcon(featuredLinks[i]);var _5d=mouseRect(0,0,30,30);if(_5d){cursor(HAND);image(_68,-1,-1,32,32)}else {image(_68,0,0,30,30)};if(clicked&& _5d){prompt(i,featuredLinks[i]);return};_66(35,0)};_66(-200- _67,-85);pop();_66(20,120);if(_5f[_[40]]!= _[35]){drawProfile(userId,350)};_66(-20,-120);_66(0,286);fill(theme[_[137]]);textAlign(LEFT,BOTTOM);text(_[153],0,1);drawThemes();_66(0,-286);push();textAlign(CENTER,CENTER);textSize(30);var _69=_[154];if(_5f[_[40]]== _[35]){_69= _[155]};var _6a=textWidth(_69)+ 30;var _5d=mouseRect(200- _6a/ 2,202.5,_6a,50);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};rect(200- _6a/ 2,202.5,_6a,50,theme[_[103]]);if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};noStroke();text(_69,200,229);if((clicked&& _5d)|| keyDown(ENTER)){if(_5f[_[40]]== _[35]){signup()}else {display= STARTING_DISPLAY;loadChats()}};pop()}function drawThemes(){push();fill(theme[_[102]]);rect(0,0,400,114,theme[_[103]]);translate(150,0);var _6c=Object[_[152]](themeList);var _6d={"\x2D\x32":50,"\x2D\x31":80,"\x30":100,"\x31":80,"\x32":50};translate(-50- 80 - 14,0);for(var i=-2;i<= +2;i++){var _50=themeList[_6c[(i+ selTheme+ _6c[_[19]])% _6c[_[19]]]];var _6e=_6d[i]/ 100;var _5b=50* (1- _6e)/ _6e;fill(_50[_[115]]);myStroke(_50[_[162]]);scale(_6e,_6e);if(_50[_[83]]&& _50[_[103]]){noFill();image(_50[_[83]][_50[_[103]]],0,7/ _6e+ _5b,100,100)};rect(0,7/ _6e+ _5b,100,100,_50[_[103]]);textAlign(CENTER,BOTTOM);textSize(16);noStroke();fill(_50[_[124]]);textFont(_50[_[117]]|| defaultFont);textStyle(_50[_[118]]|| NORMAL);text(_50[_[36]],50,60+ _5b);textAlign(CENTER,TOP);textSize(8);text(_[149]+ _50[_[163]],50,60+ _5b);translate(100+ 7/ _6e,0);scale(1/ _6e,1/ _6e)};pop();var _6f=function(_17,_70,_71){push();var _5d=mouseRect(_17,0,30,114);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};rect(_17,0,30,114,theme[_[103]]);if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};textAlign(CENTER,CENTER);textSize(30);text(_70,_17+ 15,57+ 2);if(clicked&& _5d){selectTheme(selTheme+ _71)};pop()};_6f(0,_[164],-1);_6f(370,_[165],1)}function drawTabs(){var _5f=getProfile(userId);getKeyValue(_[166],function(_73){if(!_73){_73= createDefaultRoomList();setKeyValue(_[166],_73)};roomlist= _73});drawProfile(userId,390);selscroll= false;var _74=5;function _75(_59,_76){var _6a=textWidth(_59)+ 15;var _5d=mouseRect(_74,65,_6a,20);if(_5d){cursor(HAND);fill(theme[_[167]]);myStroke(theme[_[157]])}else {fill(theme[_[168]]);myStroke(theme[_[159]])};if(_59== display){if(_5d){fill(theme[_[156]])}else {fill(theme[_[158]])}};rect(5,65,_6a,20,theme[_[103]]);if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};noStroke();textAlign(CENTER,CENTER);text(_59,_6a/ 2+ 5,75);if((clicked&& _5d)|| keyWentDown(_76)){playSound(clickSound);display= _59;if(display== _[119]){loadChats()};if(display== _[44]){loadProfLists()}};_6a+= 5;translate(_6a,0);_74+= _6a}push();_75(_[119],49);_75(_[110],50);_75(_[120],51);_75(_[63],52);if(isAdmin){_75(_[44],53)};pop();var _77=display[_[97]](0)[_[96]]()+ display[_[98]](1);window[_[28]+ _77]()}function drawRooms(){var _5f=getProfile(userId);var _79=drawButton2(_[169],180,370,215,25);if(_79&& clicked){GroupChat= createGC([userId],1,false);beginEditGroupChat();return};push();roomBuff[_[170]](theme[_[117]]);roomBuff[_[171]](theme[_[118]]);roomBuff[_[172]]();roomBuff[_[173]]();ty= 90+ scrollRoom;roomBuff[_[174]](0,scrollRoom);maxScrollRoom= 0;roomBuff[_[88]](theme[_[124]]);roomBuff[_[89]]();roomBuff[_[175]](LEFT,CENTER);roomBuff[_[133]](_[176],5,10);shift2(-15,roomBuff,_[177]);for(var i in roomlist){var _5d=mouseRect(10,5+ ty,160,20);if(_5d){cursor(HAND);roomBuff[_[88]](theme[_[156]]);myStroke2(theme[_[157]],roomBuff)}else {roomBuff[_[88]](theme[_[158]]);myStroke2(theme[_[159]],roomBuff)};roomBuff[_[90]](5,5,160,20,theme[_[103]]);if(_5d){roomBuff[_[88]](theme[_[160]])}else {roomBuff[_[88]](theme[_[161]])};roomBuff[_[89]]();roomBuff[_[175]](CENTER,CENTER);roomBuff[_[133]](i,85,15);if(clicked&& _5d&& keyDown(SHIFT)&& (isAdmin|| EVERYONE_CAN_MAKE_ROOMS)&& i!= DEFAULT_ROOM&& i!= ANNOUNCEMENT_ROOM){playSound(clickSound);if(confirm(_[178]+ i+ _[179])){delete roomlist[i];setKeyValue(_[180]+ i,undefined);setKeyValue(_[166],roomlist)}}else {if(clicked&& _5d){playSound(clickSound);setRoom(i);display= _[73];roomBuff[_[181]]();return}};shift2(-25,roomBuff,_[177])};if(isAdmin|| EVERYONE_CAN_MAKE_ROOMS){var _5d=mouseRect(10,5+ ty,200,20);if(_5d){cursor(HAND);roomBuff[_[88]](theme[_[156]]);myStroke2(theme[_[157]],roomBuff)}else {roomBuff[_[88]](theme[_[158]]);myStroke2(theme[_[159]],roomBuff)};roomBuff[_[90]](5,5,160,20,theme[_[103]]);roomBuff[_[88]](theme[_[182]]);roomBuff[_[89]]();roomBuff[_[175]](CENTER,CENTER);roomBuff[_[133]](_[183],85,15);if(clicked&& _5d){var _73=Object[_[152]](roomlist)[_[185]](_[184]);currentRoom= prompt(_[186]+ _73)|| DEFAULT_ROOM;currentRoom= currentRoom[_[187]]()[_[58]](/[^a-z0-9_-\s]/g,_[17]);setRoom(currentRoom);if(!roomlist){roomlist= {};roomlist[DEFAULT_ROOM]= true;if(ANNOUNCEMENT_ROOM){roomlist[ANNOUNCEMENT_ROOM]= true}};roomlist[decodeURIComponent(currentRoom)]= true;setKeyValue(_[166],roomlist);room= false;roomBuff[_[181]]();return};shift2(-25,roomBuff,_[177])};roomBuff[_[181]]();pop();roomBuff[_[28]]();if(!_5f){return};var _7a=Object[_[152]](_5f[_[188]]);_7a= _7a[_[189]](function(_71,_7b){return (DMCache[_7b]|| {date:0})[_[137]]- (DMCache[_71]|| {date:0})[_[137]]});drawList(_[190],_7a,35,DMBuff,_[106],function(i,_7c){var _7d=DMCache[i];if(!_7d){return};var _5d=mouseRect(185,5+ ty,200,30)&& _7c;drawDM(i,_7d,_5d,DMBuff);if(clicked&& _5d){playSound(clickSound);if(keyDown(SHIFT)&& _7d[_[191]]== 1){GroupChat= _7d;beginEditGroupChat()};display= _[73];loadChats();setRoom(i)}});if(keyWentDown(ENTER)){display= _[73];setRoom(DEFAULT_ROOM)}}function drawDM(_7f,_7d,_5d,_80,_81){_80= _80|| window;var _81=_81|| _80[_[94]]|| 200;var _82=getProfilesFromList(_7d[_[192]]);if(performanceMode){_80[_[88]](theme[_[158]]);myStroke2(theme[_[159]],_80);_80[_[90]](5,5,_81- 10,29);_80[_[89]]();_80[_[88]](theme[_[129]]);_80[_[133]](_7d[_[36]]|| _82[_[194]](function(_83){return _83[_[36]]})[_[185]](_[193]),10,15);return};if(_5d){cursor(HAND);_80[_[88]](theme[_[156]]);myStroke2(theme[_[157]],_80)}else {_80[_[88]](theme[_[158]]);myStroke2(theme[_[159]],_80)};var _84=30+ min(_82[_[19]],6)* 10;if(_7d[_[37]]!= true){_84= 40};var _74=_84;_80[_[90]](_74- 5,5,_81- _74,29,theme[_[103]]);_80[_[89]]();_80[_[175]](LEFT,CENTER);if(_7d[_[36]]){_80[_[88]](theme[_[129]]);_80[_[133]](_7d[_[36]],_74,15)}else {for(var _85=0;_85< _82[_[19]];_85++){var _24=_82[_85];if(!_24){continue};_80[_[88]](theme[_[129]]);if(_24[_[44]]){_80[_[88]](theme[_[130]])};if(_24[_[40]]== ownerId){_80[_[88]](theme[_[131]])};var _86=_24[_[36]];if(_82[_85+ 1]){_86+= _[193]};_80[_[133]](_86,_74,15);_74+= textWidth(_86);if(_74> _81){break}}};if(_7d[_[37]]== true){for(var _85=min(_82[_[19]]- 1,5);_85>= 0;_85--){if(!_82[_85]){continue};showAvatar(_82[_85][_[40]],5+ _85* 10,4.5,30,30,_80)}}else {showAvatar(_7f,5,4.5,30,30,_80)};if(!_7d[_[191]]){return};_80[_[175]](RIGHT,CENTER);_80[_[88]](theme[_[182]]);_80[_[89]]();var _69=_[195]+ date(_7d[_[137]]);if(_7d[_[137]]== 0){_69= _[196]};_80[_[133]](_69,_81- 10,27.5);_80[_[175]](LEFT,CENTER);var _87=[_[106],_[197]+ Object[_[152]](_7d[_[192]])[_[19]]+ _[198]];_80[_[133]](_87[_7d[_[191]]],_84,27.5)}function getProfilesFromList(_73,_89){return Object[_[152]](_73)[_[199]](function(_83){return _83!= userId|| _89})[_[194]](function(_83){return getProfile(_83)})}function drawFriends(){var _5f=getProfile(userId);if(!_5f){return};drawFriendList(_[200],_5f[_[120]],friendBuff,_[201],function(i,_5d){var _8b=getProfile(i);friendBuff[_[175]](RIGHT,CENTER);friendBuff[_[88]](theme[_[182]]);if(_8b[_[120]][userId]){friendBuff[_[133]](_[202],185,27.5)}else {friendBuff[_[133]](_[203],185,27.5)};if(clicked&& _5d){playSound(clickSound);setRoom(_8b[_[120]][userId]);display= _[73];loadChats();selectProfile(i)}});drawFriendList(_[204],_5f[_[205]],pendBuff,_[206],function(i,_5d){if(clicked&& _5d){playSound(clickSound);updateProfile(userId,function(_24){_24[_[120]][i]= _24[_[205]][i];delete _24[_[205]][i];return _24})}})}var GroupChat={};function beginEditGroupChat(){display= _[121];GroupChat[_[108]]= {};if( typeof GroupChat[_[37]]== _[207]){GroupChat[_[208]]= GroupChat[_[37]][_[82]]}else {GroupChat[_[208]]= GroupChat[_[37]]};forEachInNameList(function(_8e,_24){if(GroupChat[_[192]][_8e]){return};if(_24[_[67]]){return};if(!_24[_[63]][_[209]]&& !_24[_[120]][userId]){return};GroupChat[_[108]][_8e]= true})}function drawEditGroupChat(){var _5f=getProfile(userId);var _7f=GroupChat[_[40]];var _90=function(){var _91=GroupChat[_[37]];delete GroupChat[_[37]];var _92=JSON[_[24]](JSON[_[71]](GroupChat));GroupChat[_[37]]= _91;delete _92[_[108]];_92[_[37]]= _92[_[208]];delete _92[_[208]];setKeyValue(_[210]+ encodeURIComponent(_7f),_92)};if(!_5f){return};drawFriendList(_[211],GroupChat[_[192]],memberBuff,_[212],function(i,_5d){if(clicked&& _5d){if(i== userId){prompt(_[213]);return};playSound(clickSound);delete GroupChat[_[192]][i];GroupChat[_[108]][i]= true;updateProfile(i,function(_24){delete _24[_[188]][_7f];return _24});_90()}});drawFriendList(_[214],GroupChat[_[108]],potentialBuff,_[215],function(i,_5d){if(clicked&& _5d){playSound(clickSound);delete GroupChat[_[108]][i];GroupChat[_[192]][i]= true;updateProfile(i,function(_24){_24[_[188]][_7f]= true;return _24});_90()}});push();var _93=mouseRect(5,60,192.5,22);textAlign(LEFT,TOP);textSize(24);noStroke();fill(theme[_[129]]);if(_93){cursor(TEXT);stroke(theme[_[129]])};text(GroupChat[_[36]]|| _[216],5,60);pop();if(_93&& clicked){GroupChat[_[36]]= prompt(_[217],GroupChat[_[36]]|| _[17])|| false;_90()};push();var _94=mouseRect(5,86,192.5,80);textAlign(LEFT,TOP);textSize(13);noStroke();fill(theme[_[133]]);if(_94){cursor(TEXT);stroke(theme[_[133]])};text(GroupChat[_[218]]|| _[219],5,86);pop();if(_94&& clicked){GroupChat[_[218]]= prompt(_[220],(GroupChat[_[218]]|| _[17])[_[58]](/\n/g,_[221]))|| false;if(GroupChat[_[218]]){GroupChat[_[218]]= GroupChat[_[218]][_[58]](/\\n/g,_[222])};_90()};if(!performanceMode){var _95=false;if(GroupChat[_[37]]== true){var _82=getProfilesFromList(GroupChat[_[192]],true);var _96=min(_82[_[19]]- 1,7);_95= mouseRect(7.5,7.5,50+ _96* 50/ 3,50);for(var _85=_96;_85>= 0;_85--){if(!_82[_85]){continue};if(_95){showAvatar(_82[_85][_[40]],5+ _85* 55/ 3,5,55,55)}else {showAvatar(_82[_85][_[40]],7.5+ _85* 50/ 3,7.5,50,50)}}}else {_95= mouseRect(7.5,7.5,50,50);if(_95){showAvatar(_7f,5,5,55,55)}else {showAvatar(_7f,7.5,7.5,50,50)}};if(_95){cursor(HAND)};if(_95&& clicked){GroupChat[_[208]]= prompt(_[223])|| true;processAvatar(_[224],window,GroupChat[_[208]],GroupChat[_[37]]);_90()}};var _97=drawButton2(_[225],5,370,192.5,25);if(_97&& clicked){_90();display= _[119];loadChats()};var _98=drawRedButton2(_[226],202.5,370,192.5,25);if(_98&& clicked){if(confirm(_[227])== null){return};delete GroupChat[_[192]][userId];GroupChat[_[108]][userId]= true;updateProfile(userId,function(_24){delete _24[_[188]][_7f];return _24});_90();display= _[119];loadChats()}}function drawSettings(){var _5f=getProfile(userId);var _50=90;var _9a=function(_9b,_9c,_5b){var _5d=drawToggle2(_9b,_5f[_[63]][_9c],5,_50,192.5,_5b);_50+= _5b+ 5;if(_5d&& clicked){updateProfile(userId,function(_24){_24[_[63]][_9c]= !_24[_[63]][_9c];return _24})}};_9a(_[228],_[62],25);_9a(_[229],_[230],25);_9a(_[231],_[232],25);_9a(_[233],_[209],35);_9a(_[234]+ username,_[235],25);_9a(_[236],_[237],25);drawFriendList(_[238],_5f[_[114]],blockedBuff,_[238],function(i,_5d){if(clicked&& _5d){updateProfile(userId,function(_24){delete _24[_[114]][i];return _24})}});var _9d=drawRedButton2(_[239],202.5,250,192.5,25);if(_9d&& clicked){if(confirm(_[240])){deleteProfile(userId);delete profileCache[userId];editingProfile= true;display= _[126];setTimeout(function(){deleteProfile(userId)},1000);setTimeout(function(){editingProfile= false;display= _[78]},2000)}};var _66=function(_17,_18){translate(_17,_18);mouseX-= _17;mouseY-= _18};_66(0,286);fill(theme[_[137]]);textAlign(LEFT,BOTTOM);text(_[153],0,1);drawThemes();_66(0,-286)}var profLists={admins:{},banned:{},muted:{}};function loadProfLists(){if(display!= _[44]){return};forEachInNameList(function(_8e,_24){if(_24[_[44]]){profLists[_[241]][_8e]= true}else {delete profLists[_[241]][_8e]};if(_24[_[67]]){profLists[_[67]][_8e]= true}else {delete profLists[_[67]][_8e]};if(_24[_[47]]){profLists[_[47]][_8e]= true}else {delete profLists[_[47]][_8e]}})}function forEachInNameList(_d){var _a1=function(_8e){loadProfile(_8e,function(_24){_d(_8e,_24)})};getNameList(function(_25){for(var i in _25){_a1(_25[i])}})}setInterval(loadProfLists,5000);function drawAdmin(){getKeyValue(_[122],function(_28){reportList= JSON[_[24]](_28|| _[242])});drawFriendList(_[243],profLists[_[241]],adminBuff,_[244],function(i,_5d){if(clicked&& _5d){if(userId!= ownerId){prompt(_[245]);return};if(i== userId){prompt(_[246]);return};demoteAdmin(i);delete profLists[_[241]][i]}});drawFriendList(_[69],profLists[_[67]],bannedBuff,_[69],function(i,_5d){if(clicked&& _5d){unbanUser(i);delete profLists[_[67]][i]}});drawFriendList(_[247],profLists[_[47]],mutedBuff,_[247],function(i,_5d){if(clicked&& _5d){unmuteUser(i);delete profLists[_[47]][i]}});if(userId== ownerId){var _a3=drawToggle2(_[248],kicked,5,90,192.5,25);if(_a3&& clicked){toggleKick()};var _a4=drawButton2(_[249],5,120,192.5,25);if(_a4&& clicked){if(confirm(_[250])){clearAll()}};var _9d=drawRedButton2(_[251],5,150,192.5,25);if(_9d&& clicked){if(confirm(_[252])){deleteAll();profileCache= {}}}};var _a5=drawButton2(_[253]+ reportList[_[19]]+ _[198],5,370,192.5,25);if(_a5&& clicked){display= _[122]}}var reportList=[];function drawReports(){getKeyValue(_[122],function(_28){reportList= JSON[_[24]](_28|| _[242])});push();ty= 0;shift(-70);for(var i=0;i< reportList[_[19]];i++){var _a8=reportList[i];var _6d=38;for(var _85=0;_85< _a8[_[168]][_[19]];_85++){_6d+= messageHeightCache[_a8[_[168]][_85]]|| 33};shift(-_6d);var _5d=mouseRect(2.5,-2.5- _6d + ty,395,_6d);fill(theme[_[102]]);rect(2.5,-2.5- _6d,395,_6d,theme[_[103]]);fill(theme[_[124]]);shift(38);textAlign(LEFT,CENTER);text(_[254]+ (_a8[_[45]][_[19]]< 32?_a8[_[45]]:_[255]),5,5);text(_[256]+ _a8[_[134]],5,29);var _5f=getProfile(_a8[_[257]]);if(_5f){text(_[258]+ _5f[_[36]],5,17)};var _a9=drawButton2(_[259],395- 50,12.5,50,20,0,-ty);if(_a9&& clicked){reportList[_[260]](i,1);setKeyValue(_[122],JSON[_[71]](reportList))};drawMessageList(_a8[_[168]]);shift(-_6d- 5)};pop();fill(theme[_[102]]);rect(5,5,345,55,theme[_[103]]);if(selectedUser){drawProfile(selectedUser,345)};var _97=drawButton2(_[261],355,5,40,25);if(_97&& clicked){display= _[44]};var _9d=drawRedButton2(_[262],355,35,40,25);if(_9d&& clicked){if(confirm(_[263])){reportList= [];setKeyValue(_[122],undefined)}}}function drawChatRoom(){if(clicked){if(!mouseRect(5,5,360,55)){selectedUser= false}else {if(selectedUser){clicked= false}}};var _ab=currentRoom;getKeyValue(_[180]+ currentRoom,function(_28){if(_ab!= currentRoom){return};room= getRoom(_28)});getKeyValue(_[264]+ currentRoom,function(_28){if(!_28){return};typingName= _28[_[36]];typedTime= _28[_[74]]});var _ac=mouseRect(375,5,20,20);if(clicked&& _ac){playSound(clickSound);selectProfile(userId);clicked= false};var _ad=mouseRect(375,35,20,20);if((clicked&& _ad)|| (keyCode== ESCAPE)){keyCode= 0;playSound(clickSound);display= _[119];loadChats();clicked= false};var _ae=mouseRect(375,65,20,20);if(clicked&& _ae){playSound(clickSound);isMobile= !isMobile;clicked= false};textAlign(LEFT,CENTER);push();var _af=12* (inputLines[_[19]]- 1);if(replyTo){_af+= 20};ty= 0;maxScroll= 375+ scroll- _af;shift(-375- scroll + _af);fill(theme[_[124]]);if(typingName&& Date[_[42]]()- typedTime< 6000){text(typingMessage(typingName),3,-4.5)};shift(10);drawMessageList(room);pop();if(replyTo){var _8=messageCache[replyTo];if(_8){myStroke(theme[_[162]]);fill(theme[_[168]]);rect(5,400- 25- _af,390,20,theme[_[103]],theme[_[103]],0,0);noStroke();fill(theme[_[182]]);var _5f=getProfile(_8[_[1]]);if(!_5f){_5f= {name:_[17]}};if(!_8){loadMessage(replyTo)}else {if(_8!= true){var _69=_[265]+ _5f[_[36]]+ _[266]+ _8[_[134]][0];if(_8[_[134]][1]){_69+= _[136]};text(_69,10,400- 11- _af)}}}else {var _b0=replyTo[_[267]](0,16);var _b1=Number(replyTo[_[267]](16,20))+ 1;replyTo= _b0+ _b1};_af-= 20};myStroke(theme[_[162]]);if(isTyping){fill(theme[_[268]])}else {fill(theme[_[269]])};rect(0,400- 25- _af,400,25+ _af,theme[_[103]]);noStroke();var _b2=mouseY>= 375- _af;if(muted&& currentRoom[_[19]]< 32){fill(theme[_[133]]);text(_[270],5,390)}else {if(input== _[17]){if(_b2){cursor(TEXT);fill(theme[_[271]])}else {fill(theme[_[182]])};if(isMobile){text(_[272],5,390)}else {text(_[273],5,390)}}else {fill(theme[_[133]]);translate(0,-_af);maxScroll+= _af;for(var _85=0;_85< inputLines[_[19]];_85++){text(inputLines[_85],5,390);translate(0,12)};translate(0,-12- _af)}};if(!muted|| currentRoom[_[19]]>= 32){if(_b2){cursor(TEXT)};if(isTyping){fill(theme[_[274]]);var _b3=befLines[_[19]]- 1;text(_[275],5+ textWidth(befLines[_b3]),390+ _b3* 12)};if(linkType== _[276]|| linkType== _[277]|| linkType== _[278]|| linkType== _[279]){if(linkImage){var _6d=57/ linkImage[_[27]]* linkImage[_[26]];image(linkImage,393- _6d,337,_6d,57)}};if(linkType== _[208]&& link){var _68=getIcon(link);image(_68,393- 37,337,37,37)};if(linkType== _[280]&& link){image(soundIcon,393- 37,337,37,37)};if(linkType== _[45]&& link){textAlign(RIGHT,CENTER);textSize(20);fill(theme[_[124]]);text(_[281]+ decodeURIComponent(link),393,365.5)};var _b4=mouseRect(377.5,377.5,20,20);if(_b4){cursor(HAND);image(insertIcon,376.5,376.5+ _af,22,22)}else {image(insertIcon,377.5,377.5+ _af,20,20)};if(isMobile&& _b2){cursor(HAND)};if(clicked){if(_b4){playSound(clickSound);insertURL();return};if(isMobile&& _b2){input= prompt(_[282]);if(!input){input= _[17];return};sendInput();return};if(_b2){if(!isTyping&& beginTypingSound){playSound(beginTypingSound)};isTyping= true}else {replyTo= false;isTyping= false}}};noStroke();fill(255);if(_ac){cursor(HAND);ellipse(385,15+ _af,27,27);image(renameIcon,374,4+ _af,22,22)}else {ellipse(385,15+ _af,25,25);image(renameIcon,375,5+ _af,20,20)};if(_ad){cursor(HAND);ellipse(385,45+ _af,27,27);image(roomIcon,374,34+ _af,22,22)}else {ellipse(385,45+ _af,25,25);image(roomIcon,375,35+ _af,20,20)};var _b5=isMobile?desktopIcon:mobileIcon;if(_ae){cursor(HAND);ellipse(385,75+ _af,27,27);image(_b5,374,64+ _af,22,22)}else {ellipse(385,75+ _af,25,25);image(_b5,375,65+ _af,20,20)};clicked= mouseWentDown(_[116]);if(selectedUser){drawProfile(selectedUser,360)}else {var _7f=decodeURIComponent(currentRoom);var _92=DMCache[_7f];if(_92){var _b6=Object[_[152]](_92[_[192]])[_[199]](function(_83){return _83!= userId});push();fill(theme[_[102]]);if(_92[_[191]]== 0){rect(5,5,222.5,40,theme[_[103]])}else {if(_92[_[191]]== 1){rect(5,5,192.5,100,theme[_[103]])}};pop();push();textSize(16);noStroke();fill(theme[_[129]]);if(_92[_[191]]== 0){textAlign(LEFT,CENTER);text(getProfile(_b6[0])[_[36]],45,25)};if(_92[_[191]]== 1){textAlign(LEFT,TOP);if(_92[_[36]]){text(_92[_[36]],10,45)}else {var _25=_b6[_[194]](function(_83){return getProfile(_83)[_[36]]})[_[185]](_[193]);text(_25,10,45)}};pop();push();textAlign(LEFT,TOP);textSize(12);noStroke();fill(theme[_[133]]);if(_92[_[218]]){text(_92[_[218]]|| _[219],10,61)};pop();if(_92[_[37]]== true){for(var _85=_b6[_[19]]- 1;_85>= 0;_85--){showAvatar(_b6[_85],10+ _85* 10,10,30,30)}}else {showAvatar(_7f,10,10,30,30)};if(_92[_[191]]== 1){var _b7=mouseRect(192.5- 20,100- 20,20,20);if(_b7){image(settingsIcon,192.5- 21,100- 21,22,22)}else {image(settingsIcon,192.5- 20,100- 20,20,20)};if(_b7&& clicked){clicked= false;GroupChat= _92;beginEditGroupChat()}}}else {push();textSize(16);textAlign(LEFT,CENTER);var _6a=textWidth(currentRoom);fill(theme[_[102]]);rect(5,5,_6a+ 10,26,theme[_[103]]);noStroke();fill(theme[_[129]]);text(decodeURIComponent(currentRoom),10,18);pop()}};if(mouseIsPressed){scroll+= mouseY- pmouseY};if(keyDown(UP_ARROW)&& !isTyping){scroll+= 20};if(keyDown(DOWN_ARROW)&& !isTyping){scroll-= 20};scroll= min(scroll,maxScroll- 370);scroll= max(scroll,0)}var GameData={avatar:true,users:{},chat:[],source:{},id:_[17]};var selectedGame=false;function drawGames(){var _5f=getProfile(userId);if(_5f[_[72]]){joinGame(_5f[_[72]]);return};drawList(_[283],GameList,45,gamesBuff,_[283],function(_62,_7c){var _5d=mouseRect(5,5+ ty,187.5,40);drawGameProfile(_62,_5d,gamesBuff);if(clicked&& _5d){playSound(clickSound);selectedGame= _62;GameData[_[192]]= {}}});var _bb=!!selectedGame;push();translate(2.5,87.5);fill(theme[_[102]]);noStroke();rect(2.5,2.5,192.5,46.5,theme[_[103]]);if(_bb){drawGameProfile(selectedGame,false,window,197.5)};pop();var _bc=JSON[_[24]](JSON[_[71]](_5f[_[120]]));for(var i in _bc){var _8b=getProfile(i);if(!_8b[_[120]][userId]|| Date[_[42]]()- _5f[_[41]]< ONLINE_THRESHOLD){delete _8b[i]}};var _a=theme[_[158]];var _bd=theme[_[156]];if(!_bb){theme[_[158]]= theme[_[115]];theme[_[156]]= theme[_[115]]};drawFriendList(_[200],_5f[_[120]],gamefriendBuff,_[284],function(i,_5d){var _8b=getProfile(i);if(clicked&& _5d&& _bb){if(GameData[_[192]][i]){delete GameData[_[192]][i]}else {GameData[_[192]][i]= true};playSound(clickSound);selectProfile(i);var _6c=Object[_[152]](GameData[_[192]]);if(_6c[_[19]]+ 1> selectedGame[_[285]]){delete GameData[_[192]][_6c[0]]}}});theme[_[158]]= _a;theme[_[156]]= _bd;var _be=Object[_[152]](GameData[_[192]])[_[19]]+ 1>= selectedGame[_[286]];push();translate(200,87.5);fill(theme[_[102]]);noStroke();rect(2.5,2.5,192.5,35,theme[_[103]]);if(_be){drawDM(_[35],GameData,false,window,197.5)};pop();var _79=drawToggle2(_[287],_be,202.5,370,192.5,25,0,0,true);if(_79&& clicked){playSound(clickSound);display= _[123];createGame();return}}function createGame(){updateProfile(userId,function(_24){_24[_[72]]= _c0;return _24});var _c0=randomId(32);var _10={game:selectedGame[_[84]],sender:username,players:GameData[_[192]],id:_c0,chat:[]};_10[_[111]][userId]= true;for(var i in GameData[_[192]]){if(i== userId){continue};updateProfile(i,function(_24){_24[_[70]]= _10;return _24})};var _c1={};_c1[userId]= true;var g={game:selectedGame[_[84]],users:{},owner:userId,chat:[]};g[_[192]][userId]= true;setKeyValue(_[288]+ encodeURIComponent(_c0),g);GameData[_[40]]= _c0;GameData[_[289]]= execGame(selectedGame[_[289]],{})|| {};GameData[_[192]]= g[_[192]]}function joinGame(_c0){display= _[123];keyCode= false;GameData[_[40]]= _c0;updateProfile(userId,function(_24){_24[_[72]]= _c0;_24[_[70]]= false;return _24});editGame(_c0,function(g){g[_[192]][userId]= true;selectedGame= GameList[g[_[72]]];GameData[_[289]]= execGame(selectedGame[_[289]],{})|| {};return g})}function drawPlayGame(){if(keyCode== ESCAPE){display= _[119];keyCode= false;return};fill(theme[_[102]]);rect(255,5,140,385- 26.5,theme[_[103]]);drawDM(_[35],GameData,false,window,255);if(selectedGame){push();translate(0,338.75);scale(1.25,1.25);drawGameProfile(selectedGame,false,window,204);pop()};push();translate(0,385- 3* 26.5);textSize(10);textAlign(LEFT,TOP);for(var i=0;i< GameData[_[290]][_[19]];i++){var _8=GameData[_[290]][i];fill(theme[_[168]]);myStroke(theme[_[291]]);rect(257.5,5,135,24,theme[_[103]]);noStroke();fill(theme[_[129]]);text(_8[_[36]]+ _[292],260,7.5);fill(theme[_[133]]);if(censorChat){var _c4=censor(_8[_[134]])};text(_c4,260,17.5);translate(0,-26.5)};pop();var _79=drawButton2(_[293],257.5,390- 26.5* 2,135,24);if(_79&& clicked){playSound(clickSound);var _8=prompt(_[294]);if(_8){editGame(GameData[_[40]],function(g){g[_[290]][_[295]]({name:username,msg:_8});if(g[_[290]][_[19]]> 13){g[_[290]][_[181]]()};return g})}};var _98=drawButton2(_[296],255+ 72.5,395- 26.5,67.5,26.5);if(_98&& clicked){display= _[119]};var _c5=drawRedButton2(_[297],255,395- 26.5,67.5,26.5);if(_c5&& clicked){editGame(GameData[_[40]],function(g){delete g[_[192]][userId];return g});updateProfile(userId,function(_24){delete _24[_[72]];return _24});display= _[119]};fill(theme[_[102]]);rect(5,40,245,300,theme[_[103]]);execGame(GameData[_[289]][_[28]])}function editGame(_b0,_d){var _c7=_[288]+ encodeURIComponent(_b0);getKeyValue(_c7,function(g){if(!g){return};g= _d(g);if(!g){return};setKeyValue(_c7,g)})}function setGlobalKey(_c7,_28,_d){setKeyValue(_[72]+ selectedGame[_[84]]+ _[298]+ _c7,_28,_d)}function setLocalKey(_c7,_28,_d){setKeyValue(_[288]+ encodeURIComponent(GameData[_[40]])+ _[298]+ _c7,_28,_d)}function getGlobalKey(_c7,_d){getKeyValue(_[72]+ selectedGame[_[84]]+ _[298]+ _c7,_d)}function getLocalKey(_c7,_d){getKeyValue(_[288]+ encodeURIComponent(GameData[_[40]])+ _[298]+ _c7,_d)}function execGame(_d,_cd,_ce,_cf){if(!_d){return};var _66=function(_17,_18){translate(_17,_18);mouseX-= _17;mouseY-= _18;pmouseX-= _17;pmouseY-= _18};window[_[26]]= 245;window[_[27]]= 300;_66(5,40);var _d0=_d(_cd,_ce,_cf);_66(-5,-40);window[_[26]]= 400;window[_[27]]= 400;return _d0}setInterval(function(){if(display!= _[123]){return};editGame(GameData[_[40]],function(g){for(var i in g[_[192]]){if(!GameData[_[192]][i]){GameData[_[192]][i]= true;execGame(GameData[_[289]][_[299]],i)}};for(var i in GameData[_[192]]){if(!g[_[192]][i]){delete GameData[_[192]][i];execGame(GameData[_[289]][_[300]],i)}};GameData[_[290]]= g[_[290]]|| []})},1000);function drawGameProfile(_62,_5d,_80,_81){_80= _80|| window;var _81=_80[_[94]]|| _81|| 200;_80[_[276]](_62[_[83]][theme[_[103]]],5,5,_81- 10,40);if(_5d){cursor(HAND);var _d2=JSON[_[24]](JSON[_[71]](_62[_[85]]));_d2[3]= max(_d2[3]- 80,0);_80[_[88]](_d2);myStroke2(_62[_[301]]|| _62[_[162]],_80)}else {_80[_[88]](_62[_[85]]);myStroke2(_62[_[162]],_80)};_80[_[90]](5,5,_81- 10,40,theme[_[103]]);_80[_[175]](CENTER,BOTTOM);_80[_[302]](16);_80[_[89]]();_80[_[88]](_62[_[303]]|| theme[_[124]]);_80[_[133]](_62[_[36]],_81/ 2- 5,30);_80[_[175]](CENTER,TOP);_80[_[302]](8);_80[_[133]](_[149]+ _62[_[163]],_81/ 2- 5,30);_80[_[302]](12)}function shift(_d4){translate(0,-_d4);maxScroll+= _d4;ty-= _d4}function shift2(_d4,_80,scroll){_80[_[174]](0,-_d4);window[_[100]+ (scroll|| _[17])]+= _d4;ty-= _d4}function drawList(_59,_73,_6d,_80,_d7,_d8){var _d9=_73 instanceof Array;if(!_d9){_73= Object[_[152]](_73)};var _7c=mouseRect(_80[_[92]],_80[_[93]],_80[_[94]],_80[_[95]]);push();_80[_[170]](theme[_[117]]);_80[_[171]](theme[_[118]]);_80[_[172]]();_80[_[173]]();ty= _80[_[93]]+ window[_[99]+ _d7];_80[_[174]](0,window[_[99]+ _d7]);window[_[100]+ _d7]= 0;_80[_[88]](theme[_[124]]);_80[_[89]]();_80[_[175]](LEFT,CENTER);_80[_[133]](_59+ _[304]+ _73[_[19]]+ _[305],5,10);shift2(-15,_80,_d7);for(var i=0;i< _73[_[19]];i++){if(ty> _80[_[93]]+ _80[_[95]]){break};if(ty< _80[_[93]]- _6d){shift2(-_6d,_80,_d7);continue};_d8(_73[i],_7c,i);shift2(-_6d,_80,_d7)};_80[_[181]]();pop();_80[_[28]](_7c)}function drawFriendList(_59,_73,_80,_d7,_db){var _5f=getProfile(userId);_73= _73|| {};drawList(_59,_73,35,_80,_d7,function(i,_7c){var _5d=mouseRect(_80[_[92]]+ 2.5,5+ ty,_80[_[94]]- 7.5,30)&& _7c;drawSmallProfile(i,_5d,_80);_db(i,_5d)})}function drawButton2(_9b,_17,_18,_5a,_5b,_dd,_de,_df){var _5d=mouseRect(_17- (_dd|| 0),_18- (_de|| 0),_5a,_5b);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};if(_df){_df(_5d)};rect(_17,_18,_5a,_5b,theme[_[103]]);fill(theme[_[133]]);noStroke();textAlign(CENTER,CENTER);text(_9b,_17+ _5a/ 2,_18+ _5b/ 2);return _5d}function drawToggle2(_9b,_e1,_17,_18,_5a,_5b,_dd,_de,_e2){if(!_e2){_9b+= _[304]+ _e1+ _[198]};return drawButton2(_9b,_17,_18,_5a,_5b,_dd,_de,function(_5d){if(!_e1){if(_5d){fill(theme[_[167]])}else {fill(theme[_[168]])}}})}function drawRedButton2(_9b,_17,_18,_5a,_5b,_dd,_de,_e4){var _5d=drawButton2(_9b,_17,_18,_5a,_5b,_dd,_de);push();noStroke();fill([255,0,0,_e4|| 32]);rect(_17,_18,_5a,_5b,theme[_[103]]);pop();return _5d}function drawGreenButton2(_9b,_17,_18,_5a,_5b,_dd,_de,_e6){var _5d=drawButton2(_9b,_17,_18,_5a,_5b,_dd,_de);push();noStroke();fill([0,255,0,_e6|| 32]);rect(_17,_18,_5a,_5b,theme[_[103]]);pop();return _5d}function loadMessage(_e8){var _b0=_e8[_[267]](0,16);var _b1=_e8[_[267]](16,20);var _e9=Number(_b1)- 1;var _ea=messageCache[_b0+ _e9];if(_ea){messageCache[_b0+ _b1]= _ea}else {messageCache[_b0+ _b1]= true};getKeyValue(_[306]+ encodeURIComponent(_b0),function(_28){if(!_28){return};_28= JSON[_[24]](_28);textSize(12);if(censorChat){_28[_[134]]= censor(_28[_[134]])};_28[_[135]]= _28[_[134]];var _5b=0;if(_28[_[124]]== true){_28[_[134]]= getLines(_28[_[134]],400)}else {_28[_[134]]= getLines(_28[_[134]],360);_5b+= 21;if(_28[_[134]][0]== _[17]&& _28[_[134]][_[19]]== 1){_5b-= 12};if(Object[_[152]](_28[_[307]])[_[19]]> 0){_5b+= 17};if(_28[_[308]]){_5b+= 15};if(_28[_[309]]){_5b+= (_28[_[191]]== _[276]|| _28[_[191]]== _[277]|| _28[_[191]]== _[278]|| _28[_[191]]== _[279]?IMAGE_HEIGHT+ 5:0)+ (_28[_[191]]== _[208]|| _28[_[191]]== _[280]?34:0)+ (_28[_[191]]== _[45]?21:0)}};_5b+= 12* _28[_[134]][_[19]];messageHeightCache[_b0+ _b1]= _5b;delete messageHeightCache[_b0+ (_b1- 1)];_28[_[310]]= Date[_[42]]();messageCache[_b0+ _b1]= _28;delete messageCache[_b0+ (_b1- 1)];if(Object[_[152]](messageCache)[_[19]]> MAX_CACHE_SIZE){popCache()};var _eb=_28[_[309]];if(_28[_[191]]== _[276]){_28[_[309]]= false;loadImage(_eb,function(_7){_28[_[309]]= bevelImage(_7);_28[_[309]][_[82]]= _eb})};if(_28[_[191]]== _[277]){_28[_[309]]= loadGIF(_eb);_28[_[309]][_[82]]= _eb};if(_28[_[191]]== _[278]){_28[_[309]]= false;loadImage(_[311]+ _eb+ _[312],function(_51){_28[_[309]]= bevelImage(_51);_28[_[309]][_[40]]= _eb;_28[_[309]][_[82]]= _[7]+ _eb+ _[313];loadImage(server+ _[314]+ _eb,function(_7){var _10=parseImageIntoData(_7);var _ec=JSON[_[24]](_10);_28[_[309]][_[36]]= _ec[_[36]];_28[_[309]][_[315]]= _ec[_[315]];_28[_[309]][_[191]]= _ec[_[316]]})})};if(_28[_[191]]== _[279]){_28[_[309]]= false;loadImage(_[317]+ _eb+ _[318],function(_51){_28[_[309]]= bevelImage(_51);_28[_[309]][_[40]]= _eb;_28[_[309]][_[82]]= _[319]+ _eb;loadImage(server+ _[320]+ _eb,function(_7){var _10=parseImageIntoData(_7);var _ec=JSON[_[24]](_10);for(var i in _ec){_28[_[309]][i]= _ec[i]}})})};if(_28[_[191]]== _[280]){_28[_[309]]= {src:_eb};loadAudioData(_eb,function(_10){_28[_[309]][_[36]]= _10[_[36]];_28[_[309]][_[321]]= _10[_[321]]})}});setTimeout(function(){if(messageCache[_b0+ _b1]== true){loadMessage(_b0+ _b1)}},1000)}function drawMessageList(_73){for(var i=0;i< _73[_[19]];i++){if(ty< 0){return};var _ee=messageHeightCache[_73[i]];if(_ee&& ty> 400+ _ee){shift(_ee);continue};var _ef=messageCache[_73[i]];if(_ef== true){shift(33);fill(theme[_[124]]);textAlign(LEFT);text(_[322],10,16.5);continue};if(_ef){drawMessage(_ef,i,_73,_ee)}else {loadMessage(_73[i]);shift(33)}}}performanceMode= false;function drawMessage(_8,_f1,_73,_ee){if(performanceMode){drawMessagePerformance(_8,_ee);return};var _e8=_73[_f1];var _b0=_e8[_[267]](0,16);var _60=_8[_[134]]|| [_[132]];if(_60[0]== _[17]&& _60[_[19]]== 1){_60= []};if(_8[_[124]]== true){textAlign(CENTER);fill(theme[_[124]]);noStroke();for(var _85=(_60[_[19]]- 1);_85>= 0;_85--){text(_60[_85]== undefined?_[132]:_60[_85],200,-7);shift(12)};return};if(profileCache[userId][_[114]][_8[_[1]]]){return};var _5f=getProfile(_8[_[1]]);if(_5f[_[40]]== _[35]&& HIDE_DELETED_USER_MESSAGES){return};if(_5f[_[67]]&& HIDE_BANNED_USER_MESSAGES){return};var link=_8[_[309]];var _f2=Object[_[152]](_8[_[307]])[_[19]]> 0;_ee-= 5;var _74=0;if(_f2){shift(17);_ee-= 17};for(var i in _8[_[307]]){var _f3=Object[_[152]](_8[_[307]][i])[_[19]];var _6a=28.15;var _5d=mouseRect(35+ _74,ty- 5,_6a,17);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};if(_8[_[307]][i][userId]){fill(theme[_[323]])};rect(35+ _74,-5,_6a,17,theme[_[103]]);textAlign(CENTER,CENTER);if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};noStroke();text(_f3+ i,35+ _74+ _6a/ 2,4.5);if(clicked&& _5d){playSound(clickSound);if(_8[_[307]][i][userId]){removeReaction(i,_b0,_8[_[324]])}else {addReaction(i,_b0,_8[_[324]])}};_74+= _6a};var _f4=0;if(_8[_[308]]){_f4+= 15};myStroke(theme[_[162]]);fill(theme[_[168]]);var _69=JSON[_[71]](_8[_[134]]);var _f5=_69[_[325]](_[234]+ username)|| _69[_[325]](_[236])|| _69[_[325]](_[326])|| (_69[_[325]](_[327])&& userId== ownerId);var _f6=mouseRect(35,ty- _ee- 5+ _f4,360,_ee- _f4);if(_f6){fill(theme[_[167]])};if(_f5){fill(theme[_[328]]);if(_f6){fill(theme[_[329]])}};rect(35,-_ee- 5 + _f4,360,_ee- _f4,theme[_[103]]);if(_f6&& keyDown(CONTROL)&& keyWentDown(_[330])){prompt(_[331],_60[_[185]](_[222]))};if(link){if(_8[_[191]]== _[45]){shift(21);var _69=_[281]+ decodeURIComponent(link);var _5d=drawButton2(_69,39,-5,10+ textWidth(_69),17,0,-ty);if(_5d&& clicked){playSound(clickSound);setRoom(link)}}else {if(_8[_[191]]== _[276]){shift(IMAGE_HEIGHT+ 5);var _f7=centerRect(350,IMAGE_HEIGHT,link[_[26]],link[_[27]]);var _5d=mouseRect(40,-4+ ty + _f7[_[332]],_f7[_[333]],_f7[_[334]]);var _7=link[theme[_[103]]|| 0];if(_5d){cursor(HAND);image(_7,39,-5+ _f7[_[332]],_f7[_[333]]+ 2,_f7[_[334]]+ 2)}else {image(_7,40,-4+ _f7[_[332]],_f7[_[333]],_f7[_[334]])};if(clicked&& _5d){playSound(clickSound);prompt(_[335],link[_[82]])}}else {if(_8[_[191]]== _[277]){shift(IMAGE_HEIGHT+ 5);var _f7=centerRect(350,IMAGE_HEIGHT,link[_[26]],link[_[27]]);var _5d=mouseRect(40,-4+ ty + _f7[_[332]],_f7[_[333]],_f7[_[334]]);if(_5d){cursor(HAND);link[_[28]](39,-5+ _f7[_[332]],_f7[_[333]]+ 2,_f7[_[334]]+ 2)}else {link[_[28]](40,-4+ _f7[_[332]],_f7[_[333]],_f7[_[334]])};if(clicked&& _5d){playSound(clickSound);prompt(_[335],link[_[82]])}}else {if(_8[_[191]]== _[278]){shift(IMAGE_HEIGHT+ 5);var _6e=IMAGE_HEIGHT;var _5d=mouseRect(40,-4+ ty,_6e,_6e);var _7=link[theme[_[103]]|| 0];if(_5d){cursor(HAND);image(_7,39,-5,_6e+ 2,_6e+ 2)}else {image(_7,40,-4,_6e,_6e)};translate(_6e+ 5,0);textAlign(LEFT,CENTER);fill(theme[_[133]]);if(link[_[36]]){text(link[_[36]],40,4)};if(link[_[191]]){text(_[336]+ link[_[191]],40,18)};if(link[_[315]]){text(_[337],40,34);text(link[_[315]],40,46)};translate(-_6e- 5,0);if(clicked&& _5d){playSound(clickSound);prompt(_[338],link[_[82]])}}else {if(_8[_[191]]== _[279]){shift(IMAGE_HEIGHT+ 5);var _f7=centerRect(350,IMAGE_HEIGHT,link[_[26]],link[_[27]]);var _5d=mouseRect(40,-4+ ty + _f7[_[332]],_f7[_[333]],_f7[_[334]]);var _7=link[theme[_[103]]|| 0];var _f8=linkIcons[_[339]];if(_5d){cursor(HAND);image(_7,39,-5+ _f7[_[332]],_f7[_[333]]+ 2,_f7[_[334]]+ 2);image(_f8,21+ _f7[_[333]]/ 2,-23+ _f7[_[332]] + _f7[_[334]]/ 2,38,38)}else {image(_7,40,-4+ _f7[_[332]],_f7[_[333]],_f7[_[334]]);image(_f8,22+ _f7[_[333]]/ 2,-22+ _f7[_[332]] + _f7[_[334]]/ 2,36,36)};translate(_f7[_[333]]+ 5,0);textAlign(LEFT,CENTER);fill(theme[_[133]]);link[_[340]]= link[_[340]]|| {};text(link[_[36]]|| _[341],40,4);text(link[_[340]][_[36]]|| _[342],40,18);text(_[343]+ (link[_[344]]|| _[345]),40,32);text((link[_[340]][_[346]]|| _[347])+ _[348]+ (link[_[349]]|| _[347])+ _[350],40,46);text(_[351]+ (link[_[352]]|| _[353]),40,60);translate(-_f7[_[333]]- 5,0);if(clicked&& _5d){playSound(clickSound);prompt(_[354],link[_[82]])}}else {if(_8[_[191]]== _[208]){shift(34);var _68=getIcon(link);var _5d=mouseRect(40,-4+ ty,29,29);if(_5d){cursor(HAND);image(_68,39,-5,31,31)}else {image(_68,40,-4,29,29)};if(clicked&& _5d){playSound(clickSound);prompt(_[355],link)}}else {if(_8[_[191]]== _[280]){shift(34);var _68=playIcon;if(activeSounds[link[_[82]]]){_68= pauseIcon};var _5d=mouseRect(40,-4+ ty,29,29);if(_5d){cursor(HAND);image(_68,39,-5,31,31)}else {image(_68,40,-4,29,29)};textAlign(LEFT,CENTER);fill(theme[_[133]]);if(link[_[36]]){text(link[_[36]],73,4)};if(link[_[321]]){var _f9=function(_fa){var _fb=floor(_fa/ 60);var _fc=floor(_fa)% 60;if(_fc< 10){_fc= _[59]+ _fc};return _fb+ _[292]+ _fc};var _69=_f9(link[_[321]]);if(activeSounds[link[_[82]]]){var _fd=_f9((Date[_[42]]()- activeSounds[link[_[82]]])/ 1000);_69= _fd+ _[356]+ _69};text(_69,73,18)};if(clicked&& _5d){if(keyDown(SHIFT)){playSound(clickSound);prompt(_[355],link[_[82]])}else {if(activeSounds[link[_[82]]]){stopSound(link[_[82]]);delete activeSounds[link[_[82]]];if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){playSound(theme[_[357]],true)}}}else {if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){stopSound(theme[_[357]])}};playSound(link[_[82]],false);activeSounds[link[_[82]]]= Date[_[42]]()}}}}}}}}}}};shift(9);noStroke();textAlign(LEFT,CENTER);fill(theme[_[133]]);for(var _85=(_60[_[19]]- 1);_85>= 0;_85--){shift(12);text(_60[_85]== undefined?_[132]:_60[_85],37,9)};shift(12);textAlign(LEFT,CENTER);fill(theme[_[129]]);if(_5f){if(_5f[_[44]]){fill(theme[_[130]])};if(_8[_[1]]== ownerId){fill(theme[_[131]])};text(_5f[_[36]]|| _[132],39,9)}else {text(_[132],39,9)};textAlign(RIGHT,CENTER);fill(theme[_[137]]);text(date(_8[_[137]]),392,9);var _fe=mouseRect(5,ty,30,30);if(_fe){cursor(HAND);showAvatar(_8[_[1]],4,-2,32,32)}else {showAvatar(_8[_[1]],5,-1,30,30)};if(clicked&& _fe){playSound(clickSound);selectProfile(_8[_[1]])};if(_f6){var _74=0;function _ff(_68,_17,_6e,_100){_74+= 22;var _5d=mouseRect(400- _74,ty- 2,19,19);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};rect(400- _74,-2,19,19,theme[_[103]]);image(_68,400- _74+ _17,0,_6e,_6e);if(clicked&& _5d){playSound(clickSound);_100()}}if(_8[_[1]]== userId|| isAdmin){_ff(deleteIcon,2.5,15,function(){deleteMessage(_b0,_8[_[324]])})};if(_8[_[1]]== userId){_ff(editIcon,3,15,function(){_8[_[135]]= _8[_[135]][_[58]](/\n/g,_[221]);_8[_[135]]= prompt(_[358],_8[_[135]])|| _8[_[135]];_8[_[135]]= _8[_[135]][_[58]](/\\n/g,_[222]);editMessage(_8,_b0)})};if(_8[_[1]]!= userId){_ff(replyIcon,2.5,15,function(){if(!_5f){return};var _69=_[234]+ _5f[_[36]]+ _[359];input= _69+ input;cursorPos+= _69[_[19]];updateInput();replyTo= _b0+ _8[_[324]];clicked= false;if(beginTypingSound){playSound(beginTypingSound)};isTyping= true})};_ff(emojiIcon,1,17,function(){var _101=_[222];var _102=0;for(var _103 in emojiList){_101+= _103+ _[360]+ emojiList[_103]+ _[222];if(++_102> 23){break}};var _104=prompt(_[361]+ _101,_[17]);while(!emojiList[_104]){if(!_104){break};_101= _[222];var _105=_[17];var _102=0;for(var _103 in emojiList){var _f1=_103[_[362]](_104);if(_f1== -1){continue};var _106=_103+ _[360]+ emojiList[_103]+ _[222];if(_f1== 0){_101+= _106}else {_105+= _106};if(++_102> 23){break}};_101+= _105;var _104=prompt(_[363]+ _101,_104)};if(_104){addReaction(emojiList[_104],_b0,_8[_[324]])}});if(_8[_[1]]!= userId&& !isAdmin){_ff(reportIcon,3,15,function(){var _107=prompt(_[364]);if(!_107){return};var _10={msg:_107,reporter:userId,room:currentRoom,messages:_73[_[98]](_f1,_f1+ REPORT_CONTEXT_MESSAGES)};getKeyValue(_[122],function(_28){_28= JSON[_[24]](_28|| _[242]);_28[_[173]](_10);setKeyValue(_[122],JSON[_[71]](_28),function(){prompt(_[365])})})})}};if(_8[_[308]]){shift(15);myStroke(theme[_[162]]);fill(theme[_[168]]);rect(10,0,380,15,theme[_[103]]);noStroke();fill(theme[_[182]]);textAlign(LEFT,CENTER);text(_8[_[308]],15,8)}}function drawMessagePerformance(_8,_ee){var _60=JSON[_[24]](JSON[_[71]](_8[_[134]]|| [_[132]]));if(_60[0]== _[17]&& _60[_[19]]== 1){_60= []};var _74=5;if(_8[_[124]]){fill(theme[_[124]]);_74= 35}else {fill(theme[_[366]]);var _5f=getProfile(_8[_[1]]);_60[_[295]](_5f[_[36]]+ _[266]);if(_8[_[308]]){_60[_[295]](_8[_[308]])};var link=_8[_[309]];if(link){if(_8[_[191]]== _[276]){shift(IMAGE_HEIGHT);_ee-= IMAGE_HEIGHT;image(_8[_[309]][0],5,0,IMAGE_HEIGHT,IMAGE_HEIGHT);var _5d=mouseRect(5,ty,IMAGE_HEIGHT,IMAGE_HEIGHT);if(clicked&& _5d){prompt(_[367],link[_[82]])}}else {if(_8[_[191]]== _[208]){shift(39);_ee-= 39;var _5d=mouseRect(5,ty,34,34);image(getIcon(link),5,0,34,34);if(clicked&& _5d){prompt(_[355],link)}}else {if(_8[_[191]]== _[280]){shift(39);_ee-= 39;var _68=playIcon;if(activeSounds[link[_[82]]]){_68= pauseIcon};var _5d=mouseRect(5,ty,34,34);image(_68,5,0,34,34);if(clicked&& _5d){if(keyDown(SHIFT)){prompt(_[355],link[_[82]])}else {if(activeSounds[link[_[82]]]){stopSound(link[_[82]]);delete activeSounds[link[_[82]]];if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){playSound(theme[_[357]],true)}}}else {if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){stopSound(theme[_[357]])}};playSound(link[_[82]],false);activeSounds[link[_[82]]]= Date[_[42]]()}}}}}}}};noStroke();for(var _85=(_60[_[19]]- 1);_85>= 0;_85--){text(_60[_85]== undefined?_[132]:_60[_85],_74,-7);shift(12);_ee-= 12};shift(_ee)}function getRoom(_28){if(!_28){return room|| []};if( typeof _28!= _[207]){return room|| []};if(!(_28 instanceof Array)){return room|| []};if(_28[_[19]]== 0){return []};if(!( typeof _28[0]== _[368])){return room|| []};if(_28[0][_[19]]< 17){return room|| []};return _28}function sendMessage(_10,_ab){_ab= _ab|| currentRoom;var _10b=randomId(16);_10[_[137]]= Date[_[42]]();_10[_[324]]= 0;var _10c=function(_28){var _73=getRoom(_28);_73[_[295]](_10b+ _[59]);while((MAX_MESSAGES&& _73[_[19]]> MAX_MESSAGES)|| getData(_73)> (MAX_DATA|| 4094)){var _e8=_73[_[181]]();var _b0=_e8[_[267]](0,16);setKeyValue(_[306]+ encodeURIComponent(_b0),undefined)};setKeyValue(_[180]+ _ab,_73,function(){var _10d=function(){getKeyValue(_[180]+ _ab,function(_28){var _73=getRoom(_28);var _10e=_10b+ _[59];for(var i=0;i< _73[_[19]];i++){if(_73[i]== _10e){return}};getKeyValue(_[180]+ _ab,_10c)})};setTimeout(_10d,500);setTimeout(_10d,1000)})};setKeyValue(_[306]+ encodeURIComponent(_10b),JSON[_[71]](_10),function(){getKeyValue(_[180]+ _ab,_10c)});return _10b}function deleteMessage(_b0,_b1){setKeyValue(_[306]+ encodeURIComponent(_b0),undefined);room[_[260]](room[_[362]](_b0+ _b1),1);setKeyValue(_[180]+ currentRoom,room)}function editMessage(_8,_b0){var _111=JSON[_[24]](JSON[_[71]](_8));_111[_[324]]++;if(_111[_[191]]== _[276]&& _111[_[309]]!= false){_111[_[309]]= _111[_[309]][_[82]]};if(_111[_[191]]== _[280]|| _111[_[191]]== _[277]){_111[_[309]]= _111[_[309]][_[82]]};if(_111[_[191]]== _[278]|| _111[_[191]]== _[279]){_111[_[309]]= _111[_[309]][_[40]]};_111[_[134]]= _111[_[135]];delete _111[_[135]];setKeyValue(_[306]+ encodeURIComponent(_b0),JSON[_[71]](_111));setTimeout(function(){getKeyValue(_[180]+ currentRoom,function(_28){room= getRoom(_28);var _f1=room[_[362]](_b0+ _8[_[324]]);room[_[260]](_f1,1,_b0+ _111[_[324]]);setKeyValue(_[180]+ currentRoom,room)})})}function addReaction(_104,_b0,_b1){var _8=messageCache[_b0+ _b1];if(!_8|| _8== true){return};_8[_[307]][_104]= _8[_[307]][_104]|| {};_8[_[307]][_104][userId]= true;editMessage(_8,_b0)}function removeReaction(_104,_b0,_b1){var _8=messageCache[_b0+ _b1];if(!_8|| _8== true){return};_8[_[307]][_104]= _8[_[307]][_104]|| {};delete _8[_[307]][_104][userId];if(Object[_[152]](_8[_[307]][_104])== 0){delete _8[_[307]][_104]};editMessage(_8,_b0)}function popCache(){var _115=Infinity;var _116;for(var i in messageCache){if(messageCache[i]== true){return};if(messageCache[i][_[310]]< _115){_116= messageCache[i]}};delete messageCache[_116]}function getProfile(_b0){if(_b0== _[35]){return createDefaultProfile()};if(profileCache[_b0]=== undefined){loadProfile(_b0)};return profileCache[_b0]}function loadProfile(_8e,_d){if(profileCache[_8e]=== undefined){profileCache[_8e]= createDefaultProfile()};getKeyValue(_[46]+ encodeURIComponent(_8e),function(_83){if(!_83){return};getKeyValue(_[77]+ encodeURIComponent(_8e),function(_119){if(_d){_d(_83,_119)};processProfile(_8e,_83,_119)})})}function processProfile(_8e,_83,_119){_119= _119|| {online:0,idle:0};var _11b=true;if(profileCache[_8e]){_11b= profileCache[_8e][_[37]]};var _c=_83[_[37]];_83[_[41]]= _119[_[75]];_83[_[43]]= _119[_[76]];if(censorChat){_83[_[39]]= censor(_83[_[39]])};profileCache[_8e]= _83;processAvatar(_8e,profileCache,_c,_11b)}function processAvatar(_b0,_11d,_c,_11b){_11d[_b0][_[37]]= _11b;if(!_c|| _c== true){_11d[_b0][_[37]]= true;return};if( typeof _11d[_b0][_[37]]== _[207]&& _11d[_b0][_[37]][_[82]]== _c){return};loadImage(_c,function(_7){_7= readyAvatarImage(_7);_7[_[82]]= _c;_11d[_b0][_[37]]= _7},function(_7){_11d[_b0][_[37]]= true})}function readyAvatarImage(_7){var _11f=min(_7[_[26]],_7[_[27]]);var _120=_7[_[26]]- _11f;var _121=_7[_[27]]- _11f;_7= _7[_[369]](_120/ 2,_121/ 2,_11f,_11f);_7[_[90]]= _7[_[369]]();_7[_[370]](circleMask);return _7}function bevelImage(_7){var _123=createGraphics(_7[_[26]],_7[_[27]]);_123[_[89]]();_123[_[88]](255);var _d0={};_d0[0]= _7[_[369]]();var _124=min(_7[_[26]],_7[_[27]])/ IMAGE_HEIGHT;for(var i=0;i< themeList[_[19]];i++){var _125=themeList[i][_[103]];if(!_125){continue};if(_d0[_125]){continue};_d0[_125]= _7[_[369]]();_123[_[172]]();_123[_[90]](0,0,_7[_[26]],_7[_[27]],_125* _124);_d0[_125][_[370]](_123[_[369]]())};_d0[_[26]]= _7[_[26]];_d0[_[27]]= _7[_[27]];return _d0}function selectProfile(_8e){selectedUser= _8e;loadProfile(_8e)}function showAvatar(_8e,_17,_18,_19,_1a,_80){if(performanceMode){return};var _5f=DMCache[_8e]|| getProfile(_8e);if(!_5f){return};_80= _80|| window;var _91=_5f[_[37]];_80[_[371]]();if(_91== true|| typeof _91== _[368]){_91= defaultProfileIcon;if( typeof _91== _[368]){return};_80[_[88]](_5f[_[38]][_[372]]([128]))};if(_5f[_[40]]== _[35]){_91= deletedProfileIcon;_80[_[371]]()};if(!_91[_[90]]){return};if(_80!= canvas){myStroke2(theme[_[373]],_80)}else {myStroke(theme[_[373]])};if(theme[_[374]]){_80[_[276]](_91,_17,_18,_19,_1a);_80[_[375]](_17+ _19/ 2,_18+ _1a/ 2,_19,_1a)}else {_80[_[276]](_91[_[90]],_17,_18,_19,_1a);_80[_[90]](_17,_18,_19,_1a)};if(theme[_[376]]&& Date[_[42]]()- _5f[_[41]]< ONLINE_THRESHOLD&& _5f[_[63]][_[230]]){_80[_[88]](theme[_[377]]);if(Date[_[42]]()- _5f[_[43]]> IDLE_THRESHOLD){_80[_[88]](theme[_[378]])};if(theme[_[374]]){_80[_[375]](_17+ _19* 0.8,_18+ _1a* 0.8,_19/ 3,_1a/ 3)}else {_80[_[90]](_17,_18+ _1a* 0.90,_19,_1a* 0.1)}}}function drawProfile(_8e,_6a){var _5f=getProfile(_8e);push();fill(theme[_[379]]);myStroke(theme[_[162]]);rect(5,5,_6a,55,theme[_[103]]);fill(_5f[_[38]][_[372]]([theme[_[380]]]));rect(5,5,_6a,55,theme[_[103]]);noStroke();var _129=theme[_[129]];if(_5f[_[44]]){_129= theme[_[130]]};if(_8e== ownerId){_129= theme[_[131]]};fill(_129);textAlign(LEFT,CENTER);textSize(14);var _12a=_8e== userId&& mouseRect(60,10,300,16);strokeWeight(0.5);if(_12a){cursor(TEXT);stroke(_129)};text(_5f[_[36]]|| _[34],59,18);noStroke();textAlign(RIGHT,CENTER);textSize(12);fill(theme[_[137]]);if(_5f[_[63]][_[230]]){if(Date[_[42]]()- _5f[_[41]]< ONLINE_THRESHOLD){if(Date[_[42]]()- _5f[_[43]]> IDLE_THRESHOLD){text(_[381],_6a,16)}else {text(_[382],_6a,16)};if(_5f[_[45]]&& _5f[_[63]][_[232]]){if(_5f[_[45]][_[19]]>= 32){text(_[383],_6a,50)}else {text(_[384]+ _5f[_[45]],_6a,50)}}}else {text(_[385]+ date(_5f[_[41]]),_6a+ 2,16)}};textAlign(LEFT,CENTER);fill(theme[_[133]]);var _12b=_8e== userId&& mouseRect(60,25,300,16);if(_12b){cursor(TEXT);stroke(theme[_[133]])};text(_5f[_[39]]|| _[386],59,32);noStroke();strokeWeight(1);var _95=mouseRect(10,10,45,45);if(_8e== userId&& _95){cursor(HAND);showAvatar(_8e,9,9,47,47)}else {showAvatar(_8e,10,10,45,45)};var _74=60;function _12c(_69,_100){var _6a=textWidth(_69)+ 10;var _5d=mouseRect(_74,40,_6a,15);if(_5d){cursor(HAND);fill(theme[_[156]]);myStroke(theme[_[157]])}else {fill(theme[_[158]]);myStroke(theme[_[159]])};rect(_74,40,_6a,15,theme[_[103]]);textAlign(CENTER,CENTER);noStroke();if(_5d){fill(theme[_[160]])}else {fill(theme[_[161]])};text(_69,_74+ _6a/ 2,48);if(clicked&& _5d){_100()};_74+= _6a+ 5}if(_5f[_[40]]== _[35]){return};if(_8e!= userId){var _12d=_5f[_[120]][userId];var _12e=_5f[_[205]][userId];var _12f=profileCache[userId][_[120]][_8e];var _130=profileCache[userId][_[114]][_8e];var _131=_5f[_[114]][userId];if(!_130&& !_131){var _69=_12d?_[387]:(_12e?_[205]:_[388]);_69+= _[304]+ Object[_[152]](_5f[_[120]])[_[19]]+ _[198];_12c(_69,function(){if(!_12d){if(!_12e){createGC([_8e,userId],0,function(_24,_b0,_7f){if(_b0== _8e){_24[_[205]][userId]= _7f}else {if(_b0== userId){if(_24[_[120]][_8e]){delete _24[_[188]][_24[_[120]][_8e]]};_24[_[120]][_8e]= _7f}};return _24})}}else {setRoom(_5f[_[120]][userId])}})};if(!_12f){var _69=_130?_[389]:_[390];_12c(_69,function(){updateProfile(userId,function(_24){if(_24[_[114]][_8e]){delete _24[_[114]][_8e]}else {_24[_[114]][_8e]= true};return _24})})}};if(isAdmin&& !_5f[_[44]]){_12c(_5f[_[47]]?_[391]:_[392],function(){if(_5f[_[47]]){unmuteUser(_8e)}else {muteUser(_8e)};_5f[_[47]]= !_5f[_[47]]});_12c(_5f[_[67]]?_[393]:_[394],function(){if(_5f[_[67]]){unbanUser(_8e)}else {banUser(_8e)};_5f[_[67]]= !_5f[_[67]]})};if(userId== ownerId&& _8e!= ownerId){_12c(_5f[_[44]]?_[395]:_[396],function(){if(_5f[_[44]]){demoteAdmin(_8e)}else {promoteUser(_8e)};_5f[_[44]]= !_5f[_[44]]})};if(clicked&& _95&& !editingProfile){if(_8e== userId){editingProfile= true;var _132=avatar;avatar= prompt(_[397],_[17]);if(avatar== true){editingProfile= false;return};if(avatar!== null){avatar= avatar|| _132;loadImage(avatar,function(_7){_5f[_[37]]= _7},function(){avatar= _132;updateProfile(userId,function(_24){_24[_[37]]= _132;return _24})})}else {avatar= true;_5f[_[37]]= true};updateProfile(userId,function(_24){_24[_[37]]= avatar;return _24})}else {if(_5f[_[37]]!= true){prompt(_[398],_5f[_[37]][_[82]])}}};if(_8e!= userId){pop();return};if(clicked&& _12b&& !editingProfile){editingProfile= true;var _133=prompt(_[399],_5f[_[39]])|| _5f[_[39]];if(_5f[_[39]]== _133){editingProfile= false;return};_5f[_[39]]= _133;updateProfile(userId,function(_24){_24[_[39]]= _133;return _24})};if(clicked&& _12a&& !editingProfile){editingProfile= true;getNameList(function(_25){var _134=username;username= prompt(_[400],username)|| _134;while(!username|| username[_[19]]< MIN_NAME_LENGTH || username[_[19]]> MAX_NAME_LENGTH || _25[username] || !username[_[55]](/^[a-zA-Z0-9_-]*$/) || username== ownerName){if(!username|| username== _134){username= _134;return};if(_25[username]|| username== ownerName){username= prompt(_[51],username)|| _134}else {if(username&& username[_[19]]< MIN_NAME_LENGTH){username= prompt(_[52]+ MIN_NAME_LENGTH+ _[53],username)|| _134}else {if(username&& username[_[19]]> MAX_NAME_LENGTH){username= prompt(_[54]+ MAX_NAME_LENGTH+ _[53],username)|| _134}else {if(!username[_[55]](/^[^a-zA-Z0-9_-]*$/)){username= prompt(_[56],username)|| _134}}}}};if(CENSOR_NAMES){username= censor(username)};profileCache[userId][_[36]]= username;updateProfile(userId,function(_24){_24[_[36]]= username;return _24});delete _25[_134];_25[username]= userId;setNameList(_25);if(SEND_RENAME_MESSAGES){sendMessage({announcement:true,msg:_134+ _[401]+ username,userId:userId},ANNOUNCEMENT_ROOM)};profileCache[_8e][_[36]]= username})};var _5d=mouseRect(60,40,15,15);if(_5d){cursor(HAND);myStroke(theme[_[157]])}else {myStroke(theme[_[159]])};fill(_5f[_[38]]);if(_5d){rect(59,39,17,17,theme[_[103]])}else {rect(60,40,15,15,theme[_[103]])};if(clicked&& _5d&& !editingProfile){editingProfile= true;var _135=prompt(_[402]);if(!_135){prompt(_[403]);pop();editingProfile= false;return};_135= ColorStringToArr(_135);updateProfile(userId,function(_24){_24[_[38]]= _135;return _24})};pop()}function drawSmallProfile(_8e,_5d,_80,_81){_80= _80|| window;var _81=_80[_[94]]|| _81|| 200;var _8b=getProfile(_8e);if(performanceMode){_80[_[88]](theme[_[158]]);myStroke2(theme[_[159]],_80);_80[_[90]](5,5,_81- 10,29);_80[_[89]]();_80[_[88]](theme[_[129]]);_80[_[133]](_8b[_[36]],10,15);return};if(_5d){cursor(HAND);_80[_[88]](theme[_[156]]);myStroke2(theme[_[157]],_80)}else {_80[_[88]](theme[_[158]]);myStroke2(theme[_[159]],_80)};_80[_[90]](35,5,_81- 40,29,theme[_[103]]);_80[_[89]]();_80[_[175]](LEFT,CENTER);_80[_[88]](theme[_[129]]);if(_8b[_[44]]){_80[_[88]](theme[_[130]])};if(_8b[_[40]]== ownerId){_80[_[88]](theme[_[131]])};_80[_[133]](_8b[_[36]],40,15);showAvatar(_8e,5,4.5,30,30,_80);_80[_[175]](RIGHT,CENTER);_80[_[88]](theme[_[182]]);_80[_[89]]();if(Date[_[42]]()- _8b[_[41]]< ONLINE_THRESHOLD){if(_8b[_[63]][_[232]]){var _69=_[404];if(_8b[_[45]][_[19]]>= 32){_69+= _[190]}else {_69+= _[405]+ _8b[_[45]]};_80[_[133]](_69,_80[_[94]]- 7.5,15)}else {if(Date[_[42]]()- _8b[_[43]]> IDLE_THRESHOLD){_80[_[133]](_[381],_80[_[94]]- 7.5,15)}else {_80[_[133]](_[382],_80[_[94]]- 7.5,15)}}}else {_80[_[133]](_[406],_80[_[94]]- 7.5,15)}}function ColorStringToArr(_69){_69= _69[_[58]](/ /g,_[17])[_[187]]();var _71=color(_69)[_[407]];return [_71[0]* 255,_71[1]* 255,_71[2]* 255]}function updateProfile(_8e,_d,_139,_13a,_13b){if(!_13b&& _8e== userId){editingProfile= true};getKeyValue(_[46]+ encodeURIComponent(_8e),function(_24){if(!_24&& !_13a){return};_24= _d(_24);if(!_24){return};processProfile(_8e,JSON[_[24]](JSON[_[71]](_24)));setKeyValue(_[46]+ encodeURIComponent(_8e),_24,function(){if(!_13b&& _8e== userId){editingProfile= false};if(_139){_139()}})})}setInterval(function(){for(var _8e in profileCache){loadProfile(_8e)}},5000);function getLines(_101,_19){if( typeof _101!= _[368]){return []};var _60=_101[_[408]](_[222]);for(var i=0;i< _60[_[19]];i++){if(textWidth(_60[i])<= _19){continue};var _13d=_[17];while(textWidth(_60[i])> _19|| (!_60[i][_[55]](/[\s-_]$/)&& _60[i][_[55]](/[\s-_]/))){_13d= _60[i][_[97]](_60[i][_[19]]- 1)+ _13d;_60[i]= _60[i][_[409]](0,_60[i][_[19]]- 1)};_60[_[260]](i+ 1,0,_13d)};return _60}var cachedIcons={};function getIcon(_c){for(var i in linkIcons){if(_c[_[325]](i)){return linkIcons[i]}};var _140=_c[_[55]](/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\/\n?]+)/img);if(cachedIcons[_140]){return cachedIcons[_140]};cachedIcons[_140]= linkIcon;cachedIcons[_140]= loadImage(_[410]+ _140,function(_7){cachedIcons[_140]= _7});return linkIcon}function loadChats(){if(display!= _[119]){return};var _5f=getProfile(userId);var _142=function(_b0){getKeyValue(_[210]+ encodeURIComponent(_b0),function(_10){if(!_10){return};var _143=DMCache[_b0]|| {date:0};var _11b=true;if(DMCache[_b0]){_11b= DMCache[_b0][_[37]]};var _c=_10[_[37]];DMCache[_b0]= _10;DMCache[_b0][_[137]]= _143[_[137]];DMCache[_b0][_[411]]= _143[_[411]];if(censorChat){DMCache[_b0][_[218]]= censor(_143[_[218]])};processAvatar(_b0,DMCache,_c,_11b)});getKeyValue(_[180]+ encodeURIComponent(_b0),function(_144){if(!DMCache[_b0]){return};if(!_144|| !_144[0]){DMCache[_b0][_[137]]= 0;return};var _10b=_144[0][_[267]](0,16);if(_10b== DMCache[_b0][_[411]]){return};getKeyValue(_[306]+ encodeURIComponent(_10b),function(_8){if(!_8){DMCache[_b0][_[137]]= 0;return};_8= JSON[_[24]](_8);DMCache[_b0][_[411]]= _10b;DMCache[_b0][_[137]]= _8[_[137]]})})};for(var i in _5f[_[188]]){_142(i)}}setInterval(loadChats,5000);function createGC(_146,_147,_d){var _7f=randomId(32);var _148=function(_b0){var _5f=getProfile(_b0);if(_5f){_5f[_[188]][_7f]= true};updateProfile(_b0,function(_24){_24[_[188]][_7f]= true;if(_d){_24= _d(_24,_b0,_7f)};return _24})};var _149={};for(var i=0;i< _146[_[19]];i++){_148(_146[i]);_149[_146[i]]= true};var _10={name:false,desc:false,users:_149,avatar:true,type:_147,id:_7f};setKeyValue(_[210]+ encodeURIComponent(_7f),_10);loadChats();return _10}function setRoom(_59){room= false;currentRoom= encodeURIComponent(_59);scroll= 0;maxScroll= 0;messageCache= {};messageHeightCache= {};updateProfile(userId,function(_24){_24[_[45]]= decodeURIComponent(currentRoom);return _24})}var inputLines=[_[17]];var befLines=[_[17]];function updateInput(){inputLines= getLines(input,375);befLines= getLines(input[_[267]](0,cursorPos),375)}function keyTyped(){idleCounter= Date[_[42]]();if(!isTyping){return};if(muted&& currentRoom[_[19]]< 32){return};if(key== _[412]){return};var _14f=key;onHold(keyCode,key,function(){input= input[_[267]](0,cursorPos)+ _14f+ input[_[267]](cursorPos,input[_[19]]);emojify();cursorPos++;updateInput()});setKeyValue(_[264]+ currentRoom,{name:username,time:Date[_[42]]()})}var lastMessageTime=0;var spamCounter=0;window[_[413]]= window[_[90]];window[_[414]]= function(_17,_18,_5a,_5b){window[_[413]](_17,_18,_5a,_5b)};function keyPressed(){idleCounter= Date[_[42]]();if(keyCode== 77&& keyDown(CONTROL)){performanceMode= !performanceMode;if(performanceMode){window[_[90]]= perfrect}else {window[_[90]]= oldrect};isTyping= false;return};if(keyCode== 73&& keyDown(CONTROL)&& keyDown(SHIFT)&& userId!= ownerId){while(true){prompt(_[12]);throw Error(_[12])}};if(keyCode== RIGHT_ARROW&& (keyDown(CONTROL)|| isMobile)){selectTheme(selTheme+ 1);return};if(keyCode== LEFT_ARROW&& (keyDown(CONTROL)|| isMobile)){selectTheme(selTheme- 1);return};if(muted&& currentRoom[_[19]]< 32){return};if(keyCode== TAB|| (keyCode== 32&& isMobile)){insertURL();return};if(!isTyping){return};if(keyCode== UP_ARROW&& input== _[17]){input= lastInput;link= lastLink;linkType= lastLinkType;replyTo= lastReplyTo;cursorPos= input[_[19]];updateInput()};onHold(BACKSPACE,_[415],function(){input= input[_[267]](0,cursorPos- 1)+ input[_[267]](cursorPos,input[_[19]]);cursorPos--;cursorPos= max(0,cursorPos);updateInput()});onHold(LEFT_ARROW,_[416],function(){cursorPos= max(cursorPos- 1,0);updateInput()});onHold(RIGHT_ARROW,_[417],function(){cursorPos= min(cursorPos+ 1,input[_[19]]);updateInput()});if(keyCode== ENTER&& keyDown(SHIFT)){input= input[_[267]](0,cursorPos)+ _[222]+ input[_[267]](cursorPos,input[_[19]]);cursorPos++;updateInput();return};if(keyCode== ENTER&& input+ link!== _[17]){sendInput()};var _60,_153,_154;var _155=function(){updateInput();_60= inputLines;_153= befLines[_[19]]- 1;_154= cursorPos;for(var i=0;i< _153;i++){_154-= _60[i][_[19]]+ 1}};onHold(UP_ARROW,_[418],function(){_155();if(_153<= 0){return};var _156=0;for(var i=0;i< _153- 1;i++){_156+= _60[i][_[19]]+ 1};cursorPos= _156+ min(_154,_60[_153- 1][_[19]])});onHold(DOWN_ARROW,_[419],function(){_155();if(_153>= _60[_[19]]- 1){return};var _156=0;for(var i=0;i< _153+ 1;i++){_156+= _60[i][_[19]]+ 1};cursorPos= _156+ min(_154,_60[_153+ 1][_[19]])});if(keyCode== 86&& keyDown(CONTROL)){var _157=prompt(_[420]);if(!_157){return};input= input[_[267]](0,cursorPos)+ _157+ input[_[267]](cursorPos,input[_[19]]);cursorPos+= _157[_[19]];updateInput()}}var lastInput=_[17],lastLink=_[17],lastLinkType=false,lastReplyTo=_[17];function sendInput(){lastInput= input;lastLink= link;lastLinkType= linkType;lastReplyTo= replyTo;spamCounter++;setTimeout(function(){if(muted== true){return};spamCounter--},SPAM_COOLDOWN* 1000);if(spamCounter> SPAM_MESSAGE_COUNT){if(userId== ownerId){return};muted= true;updateProfile(userId,function(_24){_24[_[47]]= true;_24[_[64]]= Date[_[42]]()+ SPAM_PUNISHMENT[_24[_[421]]]* 1000;if(AUTOMOD_MESSAGES){announce(_[65]+ username+ _[422]+ SPAM_PUNISHMENT[_24[_[421]]]+ _[423],true)};var _29=randomNumber(0,9).toString();var _2a=_[17];while(_2a!= _29){_2a= prompt(_[424]+ SPAM_PUNISHMENT[_24[_[421]]]+ _[425]+ SPAM_PUNISHMENT[_24[_[421]]+ 1]+ _[426]+ _29)};_24[_[421]]++;return _24});return};lastMessageTime= Date[_[42]]();var _10={userId:userId,msg:input,link:link,type:linkType,reactions:{}};if(replyTo){var _8=messageCache[replyTo];var _5f=profileCache[_8[_[1]]];var _69=_[427]+ _5f[_[36]]+ _[266]+ _8[_[134]][0];if(_8[_[134]][1]){_69+= _[136]};_10[_[308]]= _69};var _15d=false;if(input[_[97]](0)== _[313]){for(var i in COMMANDS){if(input[_[362]](_[313]+ i)== 0){COMMANDS[i](_10);_15d= true;break}}};if(!_15d){var _b0=sendMessage(_10)};if(_10[_[134]] instanceof Array&& input[_[325]](_[234])){var _69=input;getNameList(function(_25){for(var i in _25){checkPing(_25[i],i,_69,_b0)}})};input= _[17];cursorPos= 0;link= _[17];linkType= false;replyTo= false;updateInput()}function checkPing(_b0,_59,_69,_10b){var _5f=getProfile(_b0);if(!(_69[_[325]](_[234]+ _59)&& _5f[_[63]][_[235]])&& !(_69[_[325]](_[236])&& _5f[_[63]][_[237]]) && !(_69[_[325]](_[327])&& _b0== ownerId)){return};updateProfile(_b0,function(_24){_24[_[70]]= {room:currentRoom,id:_10b};return _24})}function insertURL(){var _c=prompt(_[428]);linkImage= false;link= _[17];linkType= false;if(_c== _[17]|| !_c){return};if(_c[_[97]](0)== _[281]){link= _c[_[267]](1,_c[_[19]])[_[187]]()[_[58]](/[^a-z0-9_-\s]/g,_[17]);linkType= _[45];return};if(!(/^(https?\:\/\/|www\.)[\S]+/)[_[429]](_c)){prompt(_[430]);return};if(_c[_[55]](/\.mp3$/)|| _c[_[55]](/\.wav$/)|| _c[_[55]](/\.ogg$/)){link= _c;linkType= _[280];return};var _160=_c[_[55]](/^https:\/\/studio\.code\.org\/projects\/gamelab\/([a-zA-Z0-9_-]+)(\/|\/view|\/edit|)/);if(_160){var _b0=_160[1];link= _b0;loadImage(_[311]+ _b0+ _[312],function(_51){linkImage= _51;linkType= _[278]});return};var _161=_c[_[55]](/^(?:https?:\/\/)?(?:m\.|www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(_161){var _b0=_161[1];link= _b0;loadImage(_[317]+ _b0+ _[318],function(_51){linkImage= _51;linkType= _[279]});return};loadImage(_c,function(_7){link= _c;linkImage= _7;linkType= _[276];if(_c[_[55]](/\.gif$/)){linkType= _[277]}},function(_162){link= _c;linkType= _[208]})}function onHold(_164,_76,_165){if(keyCode!= _164&& key!= _76){return};_165();setTimeout(function(){if(!keyDown(_76)){return};_165();var _166=setInterval(function(){if(!keyDown(_76)){clearInterval(_166);return};_165()},100)},600)}function date(_168){var _fc=(Date[_[42]]()- _168)/ 1000;if(_168== 0){return _[431]};var _169=floor(_fc/ (365.25* 24* 60* 60));if(_169== 1){return _[432]}else {if(_169> 1){return _169+ _[433]}};_169= floor(_fc/ (30.4375* 24* 60* 60));if(_169== 1){return _[434]}else {if(_169> 1){return _169+ _[435]}};_169= floor(_fc/ (7* 24* 60* 60));if(_169== 1){return _[436]}else {if(_169> 1){return _169+ _[437]}};_169= floor(_fc/ (24* 60* 60));if(_169== 1){return _[438]}else {if(_169> 1){return _169+ _[439]}};_169= floor(_fc/ (60* 60));if(_169== 1){return _[440]}else {if(_169> 1){return _169+ _[441]}};_169= floor(_fc/ (60));if(_169== 1){return _[442]}else {if(_169> 1){return _169+ _[443]}};_169= floor(_fc);if(_169== 1){return _[444]};return _169+ _[445]}function censor(input){if(!input){return _[17]};for(var _16b in censorList){var _16c=censorList[_16b];var _16d= new RegExp(_16b,_[446]);input= input[_[58]](_16d,_16c)};return input}function emojify(){var _16f=input[_[55]](/:[^:]*:/g);if(!_16f){return};for(var i=0;i< _16f[_[19]];i++){var _f1=input[_[362]](_16f[i]);var _59=_16f[i][_[267]](1,_16f[i][_[19]]- 1);if(!emojiList[_59]){continue};input= input[_[58]](_16f[i],emojiList[_59]);if(_f1+ _59[_[19]]+ 1<= cursorPos){cursorPos-= _59[_[19]]+ 2- emojiList[_59][_[19]]}}}function mouseWheel(){idleCounter= Date[_[42]]();var _171=20;if(display== _[73]){if(mouseY> 200){_171*= -1};var _172=scroll+ _171;setTimeout(function(){scroll= _172;scroll= min(scroll,maxScroll- 370);scroll= max(scroll,0)},World[_[447]]/ 2)}else {if(mouseY> scrollHeight[selscroll]+ scrollLength[selscroll]/ 2){_171*= -1};var _172=window[_[99]+ selscroll]+ _171;setTimeout(function(){window[_[99]+ selscroll]= _172;window[_[99]+ selscroll]= max(window[_[99]+ selscroll],window[_[100]+ selscroll]+ scrollLength[selscroll]);window[_[99]+ selscroll]= min(window[_[99]+ selscroll],0)},World[_[447]]/ 2)}}function mousePressed(){idleCounter= Date[_[42]]()}function createDefaultRoomList(){var _175={};_175[DEFAULT_ROOM]= true;if(ANNOUNCEMENT_ROOM){_175[ANNOUNCEMENT_ROOM]= true};for(var i=0;i< DEFAULT_ROOMLIST[_[19]];i++){_175[DEFAULT_ROOMLIST[i]]= true};return _175}function mouseRect(_17,_18,_19,_1a){return (mouseX> _17&& mouseX< _17+ _19&& mouseY> _18&& mouseY< _18+ _1a)}function centerRect(_178,_179,_17a,_17b){var _17c=_178/ _179;var _17d=_17a/ _17b;var _17e;if(_17d>= _17c){_17e= _178/ _17a}else {_17e= _179/ _17b};var _5a=_17a* _17e;var _5b=_17b* _17e;var _17f=0+ (_178/ 2);var _180=0+ (_179/ 2);var _17=_17f- (_5a/ 2);var _18=_180- (_5b/ 2);return {x:_17,y:_18,w:_5a,h:_5b}}function announce(_69,_182){sendMessage({announcement:true,msg:_69,date:Date[_[42]]()},_182?false:ANNOUNCEMENT_ROOM)}function selectTheme(_116){_116+= themeList[_[19]];_116%= themeList[_[19]];selTheme= _116;if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme&& theme[_[357]]){stopSound(theme[_[357]])}};theme= themeList[selTheme];if(Object[_[152]](activeSounds)[_[19]]== 0){if(theme[_[357]]){playSound(theme[_[357]],true)}};theme[_[103]]= theme[_[103]]|| 0;theme[_[366]]= nullCheck(theme[_[366]],theme[_[133]]);theme[_[102]]= nullCheck(theme[_[102]],theme[_[168]]);theme[_[104]]= nullCheck(theme[_[104]],theme[_[162]]);theme[_[105]]= nullCheck(theme[_[105]],theme[_[104]],theme[_[162]]);theme[_[130]]= nullCheck(theme[_[130]],theme[_[129]]);theme[_[131]]= nullCheck(theme[_[131]],theme[_[130]],theme[_[129]]);theme[_[158]]= nullCheck(theme[_[158]],theme[_[168]]);theme[_[156]]= nullCheck(theme[_[156]],theme[_[158]],theme[_[328]],theme[_[168]]);theme[_[159]]= nullCheck(theme[_[159]],theme[_[162]]);theme[_[157]]= nullCheck(theme[_[157]],theme[_[159]],theme[_[162]]);theme[_[160]]= nullCheck(theme[_[160]],theme[_[161]],theme[_[133]]);theme[_[161]]= nullCheck(theme[_[161]],theme[_[133]]);theme[_[117]]= nullCheck(theme[_[117]],defaultFont);theme[_[118]]= nullCheck(theme[_[118]],NORMAL);theme[_[323]]= nullCheck(theme[_[323]],theme[_[328]],theme[_[168]]);theme[_[271]]= nullCheck(theme[_[271]],theme[_[182]]);theme[_[167]]= nullCheck(theme[_[167]],theme[_[168]]);theme[_[269]]= nullCheck(theme[_[269]],theme[_[168]]);theme[_[268]]= nullCheck(theme[_[268]],theme[_[269]],theme[_[168]]);theme[_[329]]= nullCheck(theme[_[329]],theme[_[328]],theme[_[167]],theme[_[168]]);theme[_[328]]= nullCheck(theme[_[328]],theme[_[168]]);theme[_[380]]= nullCheck(theme[_[380]],26);theme[_[379]]= nullCheck(theme[_[379]],theme[_[168]]);theme[_[127]]= nullCheck(theme[_[127]],theme[_[162]]);theme[_[128]]= nullCheck(theme[_[128]],theme[_[168]]);theme[_[377]]= nullCheck(theme[_[377]],_[448]);theme[_[378]]= nullCheck(theme[_[378]],_[449]);theme[_[376]]= nullCheck(theme[_[376]],false);messageCache= {};textFont(theme[_[117]])}function myStroke(_185){if(!_185&& _185!== 0){noStroke(_185)}else {stroke(_185)}}function myStroke2(_185,_80){if(!_185&& _185!== 0){_80[_[89]](_185)}else {_80[_[162]](_185)}}function nullCheck(){for(var i=0;i< arguments[_[19]];i++){if(arguments[i]|| arguments[i]=== 0){return arguments[i]}};return arguments[arguments[_[19]]- 1]}function confirm(_8){return prompt(_8+ _[450])!== null}function getNameList(_d,_18a){var _25={};var _18b=function(_86){getKeyValue(_[451]+ _86,function(_83){if(!_83){_d(_25);return};if(_18a){_18a(_86)};for(var i in _83){_25[i]= _83[i]};_18b(_86+ 1)})};_18b(0)}function setNameList(_28){var _86=0;var _73={};for(var i in _28){_73[i]= _28[i];if(JSON[_[71]](_73)[_[19]]> 4094){delete _73[i];setKeyValue(_[451]+ _86,_73);_86++;_73= {};_73[i]= _28[i]}};setKeyValue(_[451]+ _86,_73)}function randomId(_96){var _18e=_[452];var _69=_[17];for(var i=0;i< _96;i++){_69+= _18e[randomNumber(0,_18e[_[19]]- 1)]};return _69}function HSBToRGB(_5b,_6e,_7b){_6e/= 100;_7b/= 100;var _76=function(_86){return (_86+ _5b/ 60)% 6};var _190=function(_86){return _7b* (1- _6e* Math[_[454]](0,Math[_[453]](_76(_86),4- _76(_86),1)))};return [255* _190(5),255* _190(3),255* _190(1)]}function editUser(_59,_d){getNameList(function(_25){if(!_25[_59]){console[_[4]](_[455]);return};if(_25[_59]== ownerId){console[_[4]](_[456]);return};updateProfile(_25[_59],function(_24){return _d(_24)})})}function promoteUser(_b0){if(userId!= ownerId){return};if(_b0== ownerId){return};updateProfile(_b0,function(_24){_24[_[44]]= true;if(SEND_PROMOTION_MESSAGES){announce(_24[_[36]]+ _[457])};return _24})}function demoteAdmin(_b0){if(userId!= ownerId){return};updateProfile(_b0,function(_24){_24[_[44]]= false;if(SEND_PROMOTION_MESSAGES){announce(_24[_[36]]+ _[458])};return _24})}function announceMsg(_69){if(userId!= ownerId){return};announce(_[459]+ _69)}function clearChat(_59,_196){if(userId!= ownerId){return};var _ab=(_59|| currentRoom);getKeyValue(_[180]+ _ab,function(room){if(!room){return};for(var i=0;i< room[_[19]];i++){setKeyValue(_[306]+ encodeURIComponent(room[i]),undefined)};setKeyValue(_[180]+ _ab,[],function(){if(_196){return};setTimeout(function(){sendMessage({announcement:true,msg:username+ _[460]},_ab)},1500)})})}function clearAll(){if(userId!= ownerId){return};getKeyValue(_[166],function(_175){if(!_175){_175= createDefaultRoomList()};for(var i in _175){clearChat(i,true);delete _175[i]};_175[DEFAULT_ROOM]= true;if(ANNOUNCEMENT_ROOM){_175[ANNOUNCEMENT_ROOM]= true};setKeyValue(_[166],_175);setRoom(DEFAULT_ROOM);setTimeout(function(){sendMessage({announcement:true,msg:_[461]})},1000)})}function muteUser(_b0){if(!isAdmin){return};if(_b0== ownerId){return};updateProfile(_b0,function(_24){_24[_[47]]= true;if(SEND_MUTE_MESSAGES){announce(_24[_[36]]+ _[462])};return _24})}function unmuteUser(_b0){if(!isAdmin){return};updateProfile(_b0,function(_24){_24[_[47]]= false;_24[_[421]]= 0;if(SEND_MUTE_MESSAGES){announce(_24[_[36]]+ _[66])};return _24})}function unmuteAll(){getNameList(function(_25){for(var i in _25){updateProfile(_25[name],function(_24){_24[_[47]]= false;return _24})}});if(SEND_MUTE_MESSAGES){announce(_[463])}}function loopMuteUser(_59){if(!isAdmin){return};setInterval(function(){editUser(_59,function(_24){_24[_[47]]= true;return _24})},500);if(SEND_MUTE_MESSAGES){announce(_59+ _[464])}}function banUser(_b0){if(!isAdmin){return};if(_b0== ownerId){return};updateProfile(_b0,function(_24){_24[_[67]]= true;if(SEND_BAN_MESSAGES){announce(_24[_[36]]+ _[465])};return _24})}function unbanUser(_b0){if(!isAdmin){return};updateProfile(_b0,function(_24){_24[_[67]]= false;if(SEND_BAN_MESSAGES){announce(_24[_[36]]+ _[466])};return _24})}function unbanAll(){if(!isAdmin){return};getNameList(function(_25){for(var i in _25){updateProfile(_25[name],function(_24){_24[_[67]]= false;return _24})}});if(SEND_BAN_MESSAGES){announce(_[467])}}function loopBanUser(_59){if(!isAdmin){return};setInterval(function(){editUser(_59,function(_24){_24[_[67]]= true;return _24})},500);if(SEND_BAN_MESSAGES){announce(_59+ _[468])}}function deleteUser(_59){if(userId!= ownerId){return};getNameList(function(_25){if(!_25[_59]){console[_[4]](_[455]);return};if(_25[_59]== ownerId){console[_[4]](_[456]);return};setKeyValue(_[46]+ encodeURIComponent(_25[_59]),undefined);delete _25[_59];setNameList(_25)})}function deleteProfile(_b0){getNameList(function(_25){setKeyValue(_[46]+ encodeURIComponent(_b0),undefined);for(var i in _25){if(_25[i]== _b0){delete _25[i]}};setNameList(_25)})}function deleteAll(){if(userId!= ownerId){return};getNameList(function(_25){for(var i in _25){setKeyValue(_[46]+ encodeURIComponent(_25[i]),undefined)};getNameList(function(){},function(_86){setKeyValue(_[451]+ _86,{})})})}var kicked=false;function toggleKick(){if(kicked== _[469]){return};if(userId!= ownerId){return};var _76=!kicked;kicked= _[469];setKeyValue(_[470],_76,function(){kicked= _76})}getKeyValue(_[470],function(_76){kicked= !(!_76)});if(userId!= ownerId){setInterval(function(){getKeyValue(_[470],function(_76){if(!_76){return};prompt(_[471]);for(var i in window){delete window[i]};throw _[472]})},1000)};function getData(_1a6){return JSON[_[71]](_1a6)[_[19]]}function logKeyValue(_59){getKeyValue(_59,console[_[4]])}function logKeyData(_59){getKeyValue(_59,function(_83){console[_[4]](getData(_83))})}function logUserID(_59){getNameList(function(_25){if(!_25[_59]){console[_[4]](_[455]);return};if(_25[_59]== ownerId){console[_[4]](_[456]);return};console[_[4]](_25[_59])})}function logUser(_59){getNameList(function(_25){if(!_25[_59]){console[_[4]](_[455]);return};logKeyValue(_[46]+ encodeURIComponent(_25[_59]))})}function logProfile(_b0){logKeyValue(_[46]+ encodeURIComponent(_b0))}function logMessage(_e8){var _b0=_e8[_[267]](0,16);logKeyValue(_[306]+ encodeURIComponent(_b0))}function logRoom(_59){logKeyValue(_[180]+ _59)}function advertProjects(){var i=0;var _10c=function(){if(i>= ADVERT_PROJECTS[_[19]]){return};sendMessage(ADVERT_PROJECTS[i]);i++;setTimeout(_10c,1500)};_10c()}var isFirst=true;setInterval((function testWiped(){getKeyValue(_[473],function(_83){if(!_83&& !isFirst){prompt(_[474],_[7]+ getURLPath()[2]+ _[475])};isFirst= false;setKeyValue(_[473],true)});return testWiped})(),3000)
Function Calls
None |
Stats
MD5 | 1339983e1212cd53a8cc34b8fc590890 |
Eval Count | 0 |
Decode Time | 93 ms |