-
Notifications
You must be signed in to change notification settings - Fork 6
/
minimap-pixelzoneio.pub.user.js
22 lines (21 loc) · 45.5 KB
/
minimap-pixelzoneio.pub.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// ==UserScript==
// @name PixelAtlas - Minimap for PixelzoneIO
// @namespace http://tampermonkey.net/
// @version 0.21
// @description Minimap for PixelCanvas
// @author Exel80#0001 & Terrienne#2453
// @match http://pixelzone.io/*
// @match https://pixelzone.io/*
// @grant GM_addStyle
// @grant GM_getResourceText
// @require https://use.fontawesome.com/releases/v5.0.10/js/all.js
// @require https://code.jquery.com/jquery-2.2.4.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js
// @require https://code.jquery.com/ui/1.12.1/jquery-ui.min.js
// @resource jQueryCss https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.min.css
// @copyright 2019 © Exel80#0001 & Terrienne#2453
// @license https://creativecommons.org/licenses/by-nc-nd/4.0/
// @updateURL https://github.com/PixelAtlas/Minimap/raw/master/minimap-pixelzoneio.pub.user.js
// @downloadURL https://github.com/PixelAtlas/Minimap/raw/master/minimap-pixelzoneio.pub.user.js
// ==/UserScript==
var _0x1cec=['prototype','between','apply','max','https://raw.githubusercontent.com/PixelAtlas/Minimap/master/templates-pixelzoneio/','<link\x20rel=\x27stylesheet\x27\x20href=\x27https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.min.css\x27\x20type=\x27text/css\x27\x20media=\x27screen\x27>','head','append','<style>h2.title\x20{\x20margin:0px\x20auto;\x20padding:10px;\x20}\x0a.moveUp\x20{position:absolute;\x20bottom:6em;\x20left:0.3333em;}\x0a.groupUp\x20{\x20bottom:\x20initial\x20!important;\x20left:\x20initial\x20!important;\x20position:\x20initial\x20!important;\x20display:\x20inline-block\x20!important;}\x0a.colorsLeft\x20{margin-left:0.333em\x20!important;}\x0a.close\x20{\x20color:black;\x20position:absolute;\x20top:0.8em;\x20right:1em;\x20cursor:pointer;\x20}\x0a.discord\x20{\x20color:black;\x20position:absolute;\x20top:0.75em;\x20right:2.55em;\x20cursor:pointer;\x20}\x0a.smooth\x20{\x20overflow:auto;\x20padding-top:4px;\x20padding-bottom:4px;\x20}\x0a.settings-list\x20{\x20margin:2px;\x20text-shadow:1px\x201px\x208px\x20white;\x20position:relative;\x20list-style-type:none;\x20padding:0;\x20display:table;\x20width:99%;}\x0a.settings-list\x20li:nth-child(odd)\x20{\x20background:linear-gradient(to\x20right,\x20rgba(228,228,228,0.65),\x20rgba(0,0,0,0));\x20}\x0a.settings-button\x20{\x20right:0.5em;\x20}\x20.small{font-size:12px;}\x20.smalltext{font-size:10px;\x20width:120px;}\x0a.SettingsCss\x20{\x20color:black;\x20width:280px;\x20height:400px;\x20display:none;\x20border:3px\x20solid\x20rgba(34,34,34,0.75);\x20overflow:hidden;\x20background-color:rgba(255,255,255,0.95);\x20position:absolute;\x20top:-10%;\x20bottom:0;\x20left:0;\x20right:0;\x20margin:auto;\x20}\x0a.GotoCss\x20{\x20color:black;\x20width:280px;\x20height:110px;\x20display:none;\x20border:3px\x20solid\x20rgba(34,34,34,0.75);\x20overflow:hidden;\x20background-color:rgba(255,255,255,0.95);\x20position:absolute;\x20top:-20%;\x20bottom:0;\x20left:0;\x20right:0;\x20margin:auto;\x20}\x0a#minimap-backup\x20{background-color:rgba(0,0,0,0.75);\x20height:50px;\x20border-radius:5px;display:\x20block;}\x0a#minimap-content\x20{background-color:rgba(0,0,0,0.75);\x20width:480px;\x20height:270px;\x20border-radius:5px;display:\x20block;}\x0a.rbottom\x20{position:absolute;right:1em;bottom:1em;}\x0a.rtop\x20{position:absolute;right:1em;top:1em;}\x0a.lbottom\x20{position:absolute;left:1em;bottom:1em;}\x0a.fleft\x20{float:left;}\x20.fright\x20{float:right;}\x0a.minimize\x20{\x20opacity:\x200.45;\x20filter:\x20alpha(opacity=45);\x20/*\x20For\x20IE8\x20and\x20earlier\x20*/\x20}\x0a#minimap-settings\x20{\x20z-index:6;\x20position:absolute;\x20right:0em;\x20bottom:0;\x20width:480px;\x20background-color:rgba(0,0,0,0.5);}\x0a#minimap\x20{width:100%;\x20top:0;\x20height:100%;\x20z-index:0;}\x20#minimap-grid\x20{width:100%;\x20top:0;\x20height:100%;\x20z-index:1;}\x20#minimap-cursor\x20{width:100%;\x20top:0;\x20height:100%;\x20z-index:2;}\x0a.clickable\x20{\x20cursor:pointer;\x20font-weight:bold;\x20}\x0aul.toolbar\x20{\x20justify-content:\x20space-around;\x20white-space:nowrap;\x20\x20display:-webkit-flex;\x20-webkit-justify-content:center;\x20display:flex;\x20justify-content:center;\x20z-index:6;\x20position:relative\x20!important;\x20line-height:25px;\x20list-style-type:none;\x20margin:0;\x20border-style:none;\x20overflow:hidden;\x20text-align:center;\x20color:white;\x20}\x0ali.toolbar\x20{\x20z-index:6;\x20float:left;\x20}\x20li.padding\x20{\x20padding-left:20px;\x20}\x20li.smallPadding\x20{\x20padding-left:4px;\x20}\x0a.ui-slider\x20.ui-slider-handle\x20{\x20width:1em\x20!important;\x20}\x0a.footer\x20{\x20font-size:8px;\x20position:absolute;\x20bottom:.5em;\x20text-align:center;\x20}\x0a.slider\x20{\x20right:0em\x20!important;\x20width:6.25em\x20!important;\x20}\x0a#config-categorie\x20{\x20height:50px;width:275px;border:1px\x20solid\x20#ccc;\x20overflow:auto;\x20font-size:\x2014px;\x20}\x0a#BoxedSettings\x20{\x20height:180px;width:275px;border:1px\x20solid\x20#ccc;\x20overflow:auto;\x20font-size:\x2014px;\x20}\x0a#i1,\x20#i2,\x20#i3\x20{\x20text-align:\x20center;\x20display:inline-block;\x20width:\x2033.3%;\x20}\x0a#custom-slider-cursor\x20{\x20width:\x201em\x20!important;\x20font-size:12px;\x20position:relative\x20!important;\x20height:\x201.25em;\x20top:\x2050%;\x20margin-top:\x20-.75em;\x20text-align:\x20center;\x20line-height:\x201.6em\x20!important;\x20}\x0a#custom-slider-grid\x20{\x20width:\x201em\x20!important;\x20font-size:12px;\x20position:relative\x20!important;\x20height:\x201.25em;\x20top:\x2050%;\x20margin-top:\x20-.75em;\x20text-align:\x20center;\x20line-height:\x201.6em\x20!important;\x20}\x0acanvas\x20{\x20position:absolute;\x20image-rendering:optimizeSpeed;\x20image-rendering:-moz-crisp-edges;\x20image-rendering:-webkit-optimize-contrast;\x20image-rendering:-o-crisp-edges;\x20image-rendering:optimize-contrast;\x20-ms-interpolation-mode:nearest-neighbor;\x20}\x0a.menu-text\x20{\x20display:inline;\x20}\x0a.CookiesButton\x20{\x20float:right;\x20background-color:DarkGreen;\x20color:white;\x20font-weight:bold;\x20cursor:pointer;\x20border-color:DarkGreen;\x20font-size:\x2014px\x20!important;\x20}\x0a.CookiesButton:hover\x20{\x20float:right;\x20background-color:DarkGreen\x20!important;\x20color:white;\x20font-weight:bold;\x20cursor:pointer;\x20border-color:lime\x20!important;\x20font-size:\x2014px\x20!important;\x20}\x0aspan.cookiesAndMilk\x20{\x20color:white;\x20float:left;\x20padding-top:5px;\x20display:block;\x20margin-left:.5em;\x20font-size:\x2013px;\x20}</style>','\x0a<div\x20id=\x22goto\x22\x20class=\x22GotoCss\x22>\x0a\x20\x20<h2\x20class=\x22title\x22>\x20Goto\x20template\x20</h2>\x0a\x20\x20<div\x20id=\x22close-goto\x22\x20class=\x22close\x22><i\x20class=\x22fas\x20fa-window-close\x22></i></div>\x0a\x20\x20<div\x20class=\x22ui-widget\x22\x20style=\x22padding:5px;\x22>\x0a\x20\x20\x20\x20<label\x20for=\x22inputName\x22>Template\x20name:\x20</label>\x0a\x20\x20\x20\x20<input\x20id=\x22inputName\x22>\x0a\x20\x20\x20\x20<button\x20id=\x22enter-goto\x22\x20class=\x22ui-button\x20ui-widget\x20ui-corner-all\x22>GO!</button>\x0a\x20\x20</div>\x0a</div>\x0a<div\x20id=\x22settings\x22\x20class=\x22SettingsCss\x22>\x0a\x20\x20\x20<h2\x20class=\x22title\x22>\x20Settings\x20</h2>\x0a\x20\x20\x20<div\x20id=\x22discord-link\x22\x20class=\x22discord\x22><small><u>Join\x20Discord</u></small>\x20<!--<i\x20class=\x22fab\x20fa-discord\x22\x20style=\x22float:right\x22></i>--></div>\x0a\x20\x20\x20<div\x20id=\x22close-settings\x22\x20class=\x22close\x22><i\x20class=\x22fas\x20fa-window-close\x22></i></div>\x0a\x20\x20\x20<ul\x20class=\x22settings-list\x22>\x0a\x0a\x20\x20\x20\x20\x20\x20<!--\x20CATEGORIE\x20\x20-->\x0a\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22><div\x20class=\x22fleft\x20small\x22>Template\x20categorie(s):\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20id=\x22config-categorie\x22></div></li>\x0a\x0a\x20\x20\x20\x20\x20<div\x20id=\x22BoxedSettings\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20HIDE\x20ZOOM\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22><div\x20class=\x22fleft\x20small\x22>Hide\x20zoom\x20slider</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22config-hidezoom\x22\x20class=\x22fright\x20clickable\x20settings-button\x22>Hide</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</li>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20HIDE\x20CURSOR\x20\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22><div\x20class=\x22fleft\x20small\x22>Hide\x20cursor</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22config-hidecursor\x22\x20class=\x22fright\x20clickable\x20settings-button\x22>Hide</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</li>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20HIDE\x20GRID\x20\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22><div\x20class=\x22fleft\x20small\x22>Hide\x20grid</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22config-hidegrid\x22\x20class=\x22fright\x20clickable\x20settings-button\x22>Hide</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</li>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20HIDE\x20CAPTCHA\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22><div\x20class=\x22fleft\x20small\x22>Hide\x20captcha</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22config-hidecaptcha\x22\x20class=\x22fright\x20clickable\x20settings-button\x22>Hide</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</li>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20CHANGE\x20MINIMAP\x20LOCATION\x20\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22><div\x20class=\x22fleft\x20small\x22>Minimap\x20location</div><div\x20id=\x22config-location\x22\x20class=\x22fright\x20settings-button\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<select\x20id=\x22config-location-dropdown\x22\x20class=\x22fright\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option>Right\x20Top</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option>Right\x20Bottom</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<!--<option>Left\x20Bottom</option>-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div></li>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20DISPLAY\x20TEXT\x20\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22><div\x20class=\x22fleft\x20small\x22>Display\x20text</div><div\x20id=\x22config-displaytext\x22\x20class=\x22fright\x20settings-button\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<select\x20id=\x22config-text\x22\x20class=\x22fright\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option>Icons\x20and\x20Text</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option>Text\x20only</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option>Icons\x20only</option>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div></li>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20CURSOR\x20COLOR\x20\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22\x20style=\x22padding-bottom:0.5em;\x22><div\x20class=\x22fleft\x20small\x22>Cursor\x20color</div><div\x20id=\x22config-cursorcolor\x22\x20class=\x22fright\x20settings-button\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select\x20runat=\x22server\x22\x20id=\x22CursorColor\x22\x20style=\x22min-width:105px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22NAVY\x22\x20style=\x22background-color:\x20#001f3f;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22BLUE\x22\x20style=\x22background-color:\x20#0074D9;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22AQUA\x22\x20style=\x22background-color:\x20#7FDBFF;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22TEAL\x22\x20style=\x22background-color:\x20#39CCCC;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22OLIVE\x22\x20style=\x22background-color:\x20#3D9970;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22GREEN\x22\x20style=\x22background-color:\x20#2ECC40;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22LIME\x22\x20style=\x22background-color:\x20#01FF70;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22YELLOW\x22\x20style=\x22background-color:\x20#FFDC00;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22ORANGE\x22\x20style=\x22background-color:\x20#FF851B;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22RED\x22\x20style=\x22background-color:\x20#FF4136;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22MAROON\x22\x20style=\x22background-color:\x20#85144b;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22FUCHSIA\x22\x20style=\x22background-color:\x20#F012BE;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22PURPLE\x22\x20style=\x22background-color:\x20#B10DC9;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22BLACK\x22\x20style=\x22background-color:\x20#111111;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22GRAY\x22\x20style=\x22background-color:\x20#AAAAAA;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<option\x20value=\x22SILVER\x22\x20style=\x22background-color:\x20#DDDDDD;\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div></li>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20SLIDER\x20CURSOR\x20\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22><div\x20class=\x22fleft\x20small\x22>Cursor\x20transparency</div><div\x20id=\x22config-cursoralpha\x22\x20class=\x22fright\x20settings-button\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22slider-cursor\x22\x20class=\x22slider\x22><div\x20id=\x22custom-slider-cursor\x22\x20class=\x22ui-slider-handle\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div></li>\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20<!--\x20SLIDER\x20GRID\x20\x20-->\x0a\x20\x20\x20\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22><div\x20class=\x22fleft\x20small\x22>Grid\x20transparency</div><div\x20id=\x22config-gridalpha\x22\x20class=\x22fright\x20settings-button\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22slider-grid\x22\x20class=\x22slider\x22><div\x20id=\x22custom-slider-grid\x22\x20class=\x22ui-slider-handle\x22></div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div></li>\x0a\x20\x20\x20\x20</div>\x0a\x0a\x20\x20\x20\x20\x20<li\x20style=\x22padding:3px\x22><!--\x20SPACE\x20--></li>\x0a\x0a\x20\x20\x20\x20\x20<!--\x20RESET\x20BUTTON\x20-->\x0a\x20\x20\x20\x20\x20<li\x20class=\x22smooth\x22>\x0a\x20\x20\x20\x20\x20\x20\x20<div\x20id=\x22config-reset\x22\x20class=\x22fright\x20clickable\x20settings-button\x22>Reset\x20settings</div>\x0a\x20\x20\x20\x20\x20</li>\x0a\x20\x20\x20</ul>\x0a\x0a\x20\x20\x20<div\x20class=\x22footer\x22><a\x20rel=\x22license\x22\x20href=\x22http://creativecommons.org/licenses/by-nc-nd/4.0/\x22\x20target=\x22_blank\x22><img\x20alt=\x22Creative\x20Commons\x20License\x22\x20style=\x22border-width:0;\x20float:left;\x20margin-top:10px;\x20margin-left:5px;\x22\x20src=\x22https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png\x22\x20/></a><br\x20/>This\x20work\x20is\x20licensed\x20under\x20a\x20<a\x20rel=\x22license\x22\x20href=\x22http://creativecommons.org/licenses/by-nc-nd/4.0/\x22\x20target=\x22_blank\x22>Creative\x20Commons\x20Attribution-NonCommercial-NoDerivatives\x204.0\x20International\x20License</a>.</div>\x0a</div>\x0a<div\x20id=\x22minimap-backup\x22\x20class=\x22rbottom\x22\x20style=\x22display:none\x22><span\x20class=\x22clickable\x22\x20style=\x22color:white;\x20display:block;padding:\x2015px\x2020px;\x22>\x20<i\x20class=\x22fas\x20fa-eye\x20menu-icon\x22></i>\x20<div\x20class=\x22menu-text\x22>\x20Open\x20minimap\x20</div>\x20</span></div>\x0a<div\x20id=\x22minimap-content\x22\x20class=\x22rbottom\x22>\x0a\x20\x20\x20<div\x20id=\x22slider-vertical\x22\x20style=\x22height:200px;\x20width:0.5em;\x20position:absolute;\x20top:1em;\x20right:1em;\x20opacity:0.45;\x20z-index:9;\x22></div>\x0a\x20\x20\x20<canvas\x20id=\x22minimap\x22\x20width=\x221024\x22\x20height=\x22540\x22></canvas>\x0a\x20\x20\x20<canvas\x20id=\x22minimap-grid\x22\x20width=\x221024\x22\x20height=\x22540\x22></canvas>\x0a\x20\x20\x20<canvas\x20id=\x22minimap-cursor\x22\x20width=\x221024\x22\x20height=\x22540\x22></canvas>\x0a<div\x20id=\x22minimap-settings\x22\x20style=\x22margin-left:\x20-20px\x22>\x0a\x20\x20<ul\x20class=\x22toolbar\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20id=\x22i1\x22>\x20<li\x20class=\x22toolbar\x20clickable\x22\x20id=\x22hide-map\x22>\x20<i\x20class=\x22fas\x20fa-eye-slash\x20menu-icon\x22></i>\x20<div\x20class=\x22menu-text\x22>\x20Hide\x20minimap\x20</div>\x20</li>\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20id=\x22i2\x22>\x20<li\x20class=\x22toolbar\x20clickable\x22\x20id=\x22open-goto\x22>\x20<i\x20class=\x22fas\x20fa-chevron-circle-up\x20menu-icon\x22></i>\x20<div\x20class=\x22menu-text\x22>\x20Goto\x20template\x20</div>\x20</li>\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20id=\x22i3\x22>\x20<li\x20class=\x22toolbar\x20clickable\x22\x20id=\x22open-settings\x22>\x20<i\x20class=\x22fas\x20fa-cog\x20menu-icon\x22></i>\x20<div\x20class=\x22menu-text\x22>\x20Settings\x20</div>\x20</li>\x20</div>\x0a\x20\x20</ul>\x0a</div>\x0a</div>','\x0a<div\x20id=\x22CookieBar\x22\x20style=\x22z-index:999;\x20position:absolute;\x20background-color:black;\x20right:0;\x20top:0;\x20width:480px;\x22>\x0a\x20\x20<span\x20class=\x22cookiesAndMilk\x22>We\x20use\x20cookies\x20and\x20milk\x20to\x20keep\x20track\x20your\x20settings.</span>\x0a\x20\x20<button\x20id=\x22CookiesOk\x22\x20class=\x22CookiesButton\x20ui-button\x20ui-widget\x20ui-corner-all\x22>I\x20Understand!</button>\x0a</div>','pow','ready','#root\x20>\x20div','children','cookie','WeUseCookies','undefined','slider','value','showMinimap','true','false','#minimap-content','hide','#minimap-backup','show','cursorColor','log','cursorAlpha','gridAlpha','showSlider','#config-hidezoom','text','Show','Hide','#slider-vertical','showCursor','showGrid','#config-hidegrid','minimapLocation','#config-location-dropdown','prop','selectedIndex','#config-location-dropdown\x20option:selected','attr','class','rtop','Right\x20Bottom','rbottom','lbottom','textDisplay','#config-text','#config-text\x20option:selected','Icons\x20and\x20Text','.menu-icon','Text\x20only','Icons\x20only','.menu-text','zoom','categories','split',',\x20Cookie:\x20','!data.json','ajax','GET','json','parseJSON','stringify','Categories','length','#config-categorie','<label><input\x20type=\x22checkbox\x22\x20name=\x22','inArray','\x20id=\x22check-','</label>','showCaptcha','#recaptcha\x20>\x20div','#config-hidecaptcha','#CursorColor','val','click','#CookieBar','slideUp','#discord-link','open','https://discord.io/pixelatlas','_blank','#inputName','autocomplete','#enter-goto','hasOwnProperty','round','width','height','location','replace','https://pixelzone.io/?p=','keypress','which','#goto','.GotoCss:visible','slideDown','#slider-cursor','min','#slider-grid','#config-reset','Are\x20you\x20sure?','NAVY','reload','#config-hidecursor','vertical','#open-settings','#settings','.SettingsCss:visible',':visible','mouseover','hasClass','minimize','removeClass','#hide-map','#canvas','mousemove','#coords','html','css','background-color','#001f3f','BLUE','#0074D9','AQUA','#7FDBFF','#39CCCC','TEAL','OLIVE','#3D9970','GREEN','#2ECC40','LIME','#01FF70','YELLOW','#FFDC00','ORANGE','#FF851B','RED','#FF4136','MAROON','#85144b','FUCHSIA','#F012BE','PURPLE','#B10DC9','BLACK','#111111','GRAY','#AAAAAA','SILVER','#DDDDDD','Loading\x20json\x20data..','Templates','exec','clearRect','beginPath','strokeStyle','rect','stroke','Drawing\x20grid\x20board\x20=\x20[',']\x20and\x20offset\x20=\x20[','fillStyle','rgba(34,\x2034,\x2034,\x20','translate','fillRect','Hitzone','x:\x20','\x20y:\x20','\x20W:\x20','\x20H:\x20',')\x20(','drawImage','.png','onload','includes','push','#config-categorie\x20input:checked','each','name','join','#minimap','Testing\x20if\x20\x22','\x22\x20is\x20within\x2010\x20pixel\x20range\x20of\x20[','some','Drawing','get','getContext','mozImageSmoothingEnabled','#minimap-grid','imageSmoothingEnabled','webkitImageSmoothingEnabled','getImageData'];(function(_0x294e81,_0x266d4a){var _0xfdf834=function(_0x1693a4){while(--_0x1693a4){_0x294e81['push'](_0x294e81['shift']());}};_0xfdf834(++_0x266d4a);}(_0x1cec,0x18e));var _0x1a2f=function(_0x2b6dc6,_0x447687){_0x2b6dc6=_0x2b6dc6-0x0;var _0x26a21b=_0x1cec[_0x2b6dc6];return _0x26a21b;};Number[_0x1a2f('0x0')][_0x1a2f('0x1')]=function(_0x33192e,_0x15f846){var _0xa322b=Math['min'][_0x1a2f('0x2')](Math,[_0x33192e,_0x15f846]),_0x1f7905=Math[_0x1a2f('0x3')][_0x1a2f('0x2')](Math,[_0x33192e,_0x15f846]);return this>_0xa322b&&this<_0x1f7905;};dataUrl=_0x1a2f('0x4');$('head')['append'](_0x1a2f('0x5'));$(_0x1a2f('0x6'))[_0x1a2f('0x7')]($(_0x1a2f('0x8')));minimapHTML=_0x1a2f('0x9');cookieHTML=_0x1a2f('0xa');var attempt=0x0;var curX=null;var curY=null;var _zoom=0x23;var max_zoom=0x3c;var FinalZoom=calcZoom(Math[_0x1a2f('0xb')](1.1,_zoom));var templateList=[];var categorieList=[];var storedTemplates={};var cursorColor='#001f3f';var cursorAlpha=0x5a;var gridAlpha=0x32;var showSlider=!![];var showCursor=!![];var showGrid=!![];var showCaptcha=!![];var minimapLocation=0x1;var textDisplay=0x0;var availableFactions=[];var hitzone=0x0;$(document)[_0x1a2f('0xc')](function(){'use strict';loadJsonLoop();loadTemplates();$(_0x1a2f('0xd'))[_0x1a2f('0xe')]()[_0x1a2f('0x7')](minimapHTML);if($[_0x1a2f('0xf')](_0x1a2f('0x10'))==='0'||typeof $[_0x1a2f('0xf')](_0x1a2f('0x10'))===_0x1a2f('0x11'))$('div#minimap-content')[_0x1a2f('0x7')](cookieHTML);setupCookies();setupCanvas();setupEvents();$('#slider-vertical')[_0x1a2f('0x12')](_0x1a2f('0x13'),_zoom);});function setupCookies(){if(typeof $[_0x1a2f('0xf')](_0x1a2f('0x14'))===_0x1a2f('0x11')){$['cookie'](_0x1a2f('0x14'),_0x1a2f('0x15'),{'expires':0x16d});}else{if($[_0x1a2f('0xf')](_0x1a2f('0x14'))===_0x1a2f('0x16')){$(_0x1a2f('0x17'))[_0x1a2f('0x18')]();$(_0x1a2f('0x19'))[_0x1a2f('0x1a')]();}}if(typeof $['cookie'](_0x1a2f('0x1b'))===_0x1a2f('0x11')){getCursorColor('NAVY',!![]);}else{console[_0x1a2f('0x1c')](getCursorColor($[_0x1a2f('0xf')](_0x1a2f('0x1b'))));getCursorColor($[_0x1a2f('0xf')]('cursorColor'));}if(typeof $[_0x1a2f('0xf')](_0x1a2f('0x10'))===_0x1a2f('0x11')){$['cookie'](_0x1a2f('0x10'),0x0,{'expires':0x16d});}if(typeof $[_0x1a2f('0xf')](_0x1a2f('0x1d'))===_0x1a2f('0x11')){$['cookie'](_0x1a2f('0x1d'),cursorAlpha,{'expires':0x16d});}else{cursorAlpha=$[_0x1a2f('0xf')](_0x1a2f('0x1d'));}if(typeof $[_0x1a2f('0xf')](_0x1a2f('0x1e'))===_0x1a2f('0x11')){$[_0x1a2f('0xf')](_0x1a2f('0x1e'),gridAlpha,{'expires':0x16d});}else{gridAlpha=$[_0x1a2f('0xf')](_0x1a2f('0x1e'));}if(typeof $[_0x1a2f('0xf')](_0x1a2f('0x1f'))==='undefined'){$[_0x1a2f('0xf')](_0x1a2f('0x1f'),_0x1a2f('0x15'),{'expires':0x16d});}else{showSlider=$[_0x1a2f('0xf')](_0x1a2f('0x1f'))==='true'?!![]:![];$(_0x1a2f('0x20'))[_0x1a2f('0x21')](!showSlider?_0x1a2f('0x22'):_0x1a2f('0x23'));if(showSlider){$('#slider-vertical')[_0x1a2f('0x1a')]();}else{$(_0x1a2f('0x24'))[_0x1a2f('0x18')]();}}if(typeof $[_0x1a2f('0xf')](_0x1a2f('0x25'))===_0x1a2f('0x11')){$[_0x1a2f('0xf')](_0x1a2f('0x25'),_0x1a2f('0x15'),{'expires':0x16d});}else{showCursor=$['cookie'](_0x1a2f('0x25'))===_0x1a2f('0x15')?!![]:![];$('#config-hidecursor')[_0x1a2f('0x21')](!showCursor?_0x1a2f('0x22'):_0x1a2f('0x23'));}if(typeof $[_0x1a2f('0xf')]('showGrid')==='undefined'){$[_0x1a2f('0xf')](_0x1a2f('0x26'),_0x1a2f('0x15'),{'expires':0x16d});}else{showGrid=$[_0x1a2f('0xf')](_0x1a2f('0x26'))===_0x1a2f('0x15')?!![]:![];$(_0x1a2f('0x27'))[_0x1a2f('0x21')](!showGrid?_0x1a2f('0x22'):_0x1a2f('0x23'));}if(typeof $[_0x1a2f('0xf')]('minimapLocation')===_0x1a2f('0x11')){$[_0x1a2f('0xf')](_0x1a2f('0x28'),minimapLocation,{'expires':0x16d});}else{minimapLocation=$['cookie'](_0x1a2f('0x28'));$(_0x1a2f('0x29'))[_0x1a2f('0x2a')](_0x1a2f('0x2b'),minimapLocation);_displayText=$(_0x1a2f('0x2c'))['text']();if(_displayText==='Right\x20Top'){minimapLocation=0x0;$[_0x1a2f('0xf')](_0x1a2f('0x28'),0x0,{'expires':0x16d});$('#minimap-content')[_0x1a2f('0x2d')](_0x1a2f('0x2e'),_0x1a2f('0x2f'));$(_0x1a2f('0x19'))[_0x1a2f('0x2d')](_0x1a2f('0x2e'),_0x1a2f('0x2f'));}else if(_displayText===_0x1a2f('0x30')){minimapLocation=0x1;$[_0x1a2f('0xf')]('minimapLocation',0x1,{'expires':0x16d});$(_0x1a2f('0x17'))['attr'](_0x1a2f('0x2e'),_0x1a2f('0x31'));$(_0x1a2f('0x19'))[_0x1a2f('0x2d')](_0x1a2f('0x2e'),_0x1a2f('0x31'));}else if(_displayText==='Left\x20Bottom'){minimapLocation=0x2;$[_0x1a2f('0xf')](_0x1a2f('0x28'),0x2,{'expires':0x16d});$(_0x1a2f('0x17'))[_0x1a2f('0x2d')](_0x1a2f('0x2e'),'lbottom');$(_0x1a2f('0x19'))[_0x1a2f('0x2d')](_0x1a2f('0x2e'),_0x1a2f('0x32'));}}if(typeof $[_0x1a2f('0xf')]('textDisplay')==='undefined'){$[_0x1a2f('0xf')](_0x1a2f('0x33'),textDisplay,{'expires':0x16d});}else{textDisplay=$['cookie'](_0x1a2f('0x33'));$(_0x1a2f('0x34'))[_0x1a2f('0x2a')]('selectedIndex',textDisplay);_displayText=$(_0x1a2f('0x35'))['text']();if(_displayText===_0x1a2f('0x36')){textDisplay=0x0;$[_0x1a2f('0xf')](_0x1a2f('0x33'),0x0,{'expires':0x16d});$('.menu-text')[_0x1a2f('0x1a')]();$(_0x1a2f('0x37'))['show']();}else if(_displayText===_0x1a2f('0x38')){textDisplay=0x1;$['cookie']('textDisplay',0x1,{'expires':0x16d});$('.menu-text')[_0x1a2f('0x1a')]();$('.menu-icon')[_0x1a2f('0x18')]();}else if(_displayText===_0x1a2f('0x39')){textDisplay=0x2;$[_0x1a2f('0xf')]('textDisplay',0x2,{'expires':0x16d});$(_0x1a2f('0x3a'))[_0x1a2f('0x18')]();$(_0x1a2f('0x37'))[_0x1a2f('0x1a')]();}}if(typeof $['cookie']('zoom')==='undefined'){$[_0x1a2f('0xf')](_0x1a2f('0x3b'),_zoom,{'expires':0x16d});}else{_zoom=$[_0x1a2f('0xf')](_0x1a2f('0x3b'));FinalZoom=calcZoom(Math[_0x1a2f('0xb')](1.1,_zoom));}if(typeof $['cookie'](_0x1a2f('0x3c'))==='undefined'){$['cookie'](_0x1a2f('0x3c'),'',{'expires':0x16d});}else{var _0x4427c0=$[_0x1a2f('0xf')](_0x1a2f('0x3c'))[_0x1a2f('0x3d')]('\x20');console[_0x1a2f('0x1c')]('Checked\x20categories:\x20'+_0x4427c0+_0x1a2f('0x3e')+$['cookie'](_0x1a2f('0x3c'))+',\x20');_url=dataUrl+_0x1a2f('0x3f');$[_0x1a2f('0x40')]({'type':_0x1a2f('0x41'),'url':_url,'dataType':_0x1a2f('0x42'),'success':function(_0x475048){categories=jQuery[_0x1a2f('0x43')](JSON[_0x1a2f('0x44')](_0x475048))[_0x1a2f('0x45')];categories['sort']();for(var _0x23e655=0x0;_0x23e655<categories[_0x1a2f('0x46')];_0x23e655++){$(_0x1a2f('0x47'))[_0x1a2f('0x7')](_0x1a2f('0x48')+categories[_0x23e655][0x1]+'\x22\x20'+($[_0x1a2f('0x49')](categories[_0x23e655][0x1],_0x4427c0)>-0x1?'checked=true':'')+_0x1a2f('0x4a')+categories[_0x23e655][0x1]+'\x22>'+categories[_0x23e655][0x0]+_0x1a2f('0x4b'));}}});}if(typeof $[_0x1a2f('0xf')](_0x1a2f('0x4c'))===_0x1a2f('0x11')){$['cookie'](_0x1a2f('0x4c'),'true',{'expires':0x16d});}else{showCaptcha=$['cookie']('showCaptcha')===_0x1a2f('0x15')?!![]:![];if(showCaptcha){$(_0x1a2f('0x4d'))[_0x1a2f('0x1a')]();}else{setTimeout(()=>{$(_0x1a2f('0x4d'))[_0x1a2f('0x18')]();},0x226);}$(_0x1a2f('0x4e'))['text'](!showCaptcha?_0x1a2f('0x22'):_0x1a2f('0x23'));}console[_0x1a2f('0x1c')]($[_0x1a2f('0xf')]('cursorAlpha')+'\x20'+$[_0x1a2f('0xf')](_0x1a2f('0x1e'))+'\x20'+$[_0x1a2f('0xf')](_0x1a2f('0x25'))+'\x20'+$[_0x1a2f('0xf')](_0x1a2f('0x26'))+'\x20'+$[_0x1a2f('0xf')](_0x1a2f('0x33'))+'\x20'+$[_0x1a2f('0xf')](_0x1a2f('0x3b')));}function setupEvents(){$(_0x1a2f('0x4f'))['change'](function(){getCursorColor($(this)[_0x1a2f('0x50')](),!![]);});$('#CookiesOk')[_0x1a2f('0x51')](function(){$[_0x1a2f('0xf')](_0x1a2f('0x10'),0x1,{'expires':0x16d});$(_0x1a2f('0x52'))[_0x1a2f('0x53')](0x64);});$(_0x1a2f('0x54'))['click'](function(){window[_0x1a2f('0x55')](_0x1a2f('0x56'),_0x1a2f('0x57'));});$(_0x1a2f('0x58'))[_0x1a2f('0x59')]({'source':availableFactions});$(_0x1a2f('0x5a'))[_0x1a2f('0x51')](function(){inputTxt=$(_0x1a2f('0x58'))[_0x1a2f('0x50')]();if(templateList[_0x1a2f('0x5b')](inputTxt)){var _0x58c91a=Math[_0x1a2f('0x5c')](templateList[inputTxt]['x']+templateList[inputTxt][_0x1a2f('0x5d')]/0x2);var _0x1269c6=Math[_0x1a2f('0x5c')](templateList[inputTxt]['y']+templateList[inputTxt][_0x1a2f('0x5e')]/0x2);window[_0x1a2f('0x5f')][_0x1a2f('0x60')](_0x1a2f('0x61')+_0x58c91a+','+_0x1269c6);}});$('#inputName')[_0x1a2f('0x62')](function(_0x40fd62){if(_0x40fd62[_0x1a2f('0x63')]==0xd){inputTxt=$('#inputName')[_0x1a2f('0x50')]();if(templateList[_0x1a2f('0x5b')](inputTxt)){var _0x34b82a=Math[_0x1a2f('0x5c')](templateList[inputTxt]['x']+templateList[inputTxt][_0x1a2f('0x5d')]/0x2);var _0xa5333e=Math['round'](templateList[inputTxt]['y']+templateList[inputTxt]['height']/0x2);window[_0x1a2f('0x5f')][_0x1a2f('0x60')](_0x1a2f('0x61')+_0x34b82a+','+_0xa5333e);}}});$('#open-goto')[_0x1a2f('0x51')](function(){var _0x3b1b0c=$(_0x1a2f('0x64'));var _0x1f8dc9=$(_0x1a2f('0x65'));if(_0x1f8dc9[_0x1a2f('0x46')]>0x0){$(_0x1a2f('0x65'))['slideUp'](0x1f4);return;}VisibleBoxies();_0x3b1b0c[_0x1a2f('0x66')](0x1f4);});var _0xe28c69=$('#custom-slider-cursor');$(_0x1a2f('0x67'))[_0x1a2f('0x12')]({'range':_0x1a2f('0x68'),'min':0x0,'max':0x64,'value':$[_0x1a2f('0xf')]('cursorAlpha'),'create':function(){val=$(this)[_0x1a2f('0x12')](_0x1a2f('0x13'));_0xe28c69[_0x1a2f('0x21')](val);cursorAlpha=parseInt(val);$[_0x1a2f('0xf')]('cursorAlpha',cursorAlpha,{'expires':0x16d});},'slide':function(_0xf8274e,_0x1f4ee3){val=_0x1f4ee3['value'];_0xe28c69[_0x1a2f('0x21')](_0x1f4ee3[_0x1a2f('0x13')]);cursorAlpha=parseInt(val);$['cookie'](_0x1a2f('0x1d'),cursorAlpha,{'expires':0x16d});}});var _0x136946=$('#custom-slider-grid');$(_0x1a2f('0x69'))[_0x1a2f('0x12')]({'range':_0x1a2f('0x68'),'min':0x0,'max':0x64,'value':$[_0x1a2f('0xf')](_0x1a2f('0x1e')),'create':function(){val=$(this)[_0x1a2f('0x12')](_0x1a2f('0x13'));_0x136946['text']($(this)['slider'](_0x1a2f('0x13')));gridAlpha=parseInt(val);$[_0x1a2f('0xf')](_0x1a2f('0x1e'),gridAlpha,{'expires':0x16d});},'slide':function(_0x3f2a55,_0x4e5e08){val=_0x4e5e08[_0x1a2f('0x13')];_0x136946[_0x1a2f('0x21')](_0x4e5e08[_0x1a2f('0x13')]);gridAlpha=parseInt(val);$[_0x1a2f('0xf')](_0x1a2f('0x1e'),gridAlpha,{'expires':0x16d});}});$(_0x1a2f('0x6a'))[_0x1a2f('0x51')](function(){if(window['confirm'](_0x1a2f('0x6b'))){cursorAlpha=0x5a;cursorColor='NAVY';gridAlpha=0x32;showSlider=!![];showCursor=!![];showGrid=!![];showCaptcha=!![];textDisplay=0x0;_zoom=0x1e;_0xe28c69[_0x1a2f('0x21')](cursorAlpha);_0x136946[_0x1a2f('0x21')](gridAlpha);$['cookie'](_0x1a2f('0x1d'),cursorAlpha,{'expires':0x16d});$[_0x1a2f('0xf')](_0x1a2f('0x1e'),gridAlpha,{'expires':0x16d});$[_0x1a2f('0xf')](_0x1a2f('0x25'),showCursor,{'expires':0x16d});$['cookie'](_0x1a2f('0x26'),showGrid,{'expires':0x16d});$[_0x1a2f('0xf')](_0x1a2f('0x4c'),showCaptcha,{'expires':0x16d});$[_0x1a2f('0xf')](_0x1a2f('0x33'),textDisplay,{'expires':0x16d});$[_0x1a2f('0xf')]('zoom',_zoom,{'expires':0x16d});$[_0x1a2f('0xf')](_0x1a2f('0x3c'),'',{'expires':0x16d});$[_0x1a2f('0xf')]('cursorColor',_0x1a2f('0x6c'),{'expires':0x16d});window[_0x1a2f('0x5f')][_0x1a2f('0x6d')]();}});$(_0x1a2f('0x34'))[_0x1a2f('0x51')](function(){_displayText=$(_0x1a2f('0x35'))[_0x1a2f('0x21')]();console[_0x1a2f('0x1c')](_displayText);if(_displayText==='Icons\x20and\x20Text'){textDisplay=0x0;$[_0x1a2f('0xf')](_0x1a2f('0x33'),0x0,{'expires':0x16d});$(_0x1a2f('0x3a'))['show']();$(_0x1a2f('0x37'))[_0x1a2f('0x1a')]();}else if(_displayText==='Text\x20only'){textDisplay=0x1;$[_0x1a2f('0xf')](_0x1a2f('0x33'),0x1,{'expires':0x16d});$(_0x1a2f('0x3a'))[_0x1a2f('0x1a')]();$(_0x1a2f('0x37'))[_0x1a2f('0x18')]();}else if(_displayText===_0x1a2f('0x39')){textDisplay=0x2;$[_0x1a2f('0xf')](_0x1a2f('0x33'),0x2,{'expires':0x16d});$(_0x1a2f('0x3a'))['hide']();$('.menu-icon')[_0x1a2f('0x1a')]();}});$(_0x1a2f('0x29'))[_0x1a2f('0x51')](function(){_displayText=$(_0x1a2f('0x2c'))[_0x1a2f('0x21')]();console[_0x1a2f('0x1c')](_displayText);if(_displayText==='Right\x20Top'){minimapLocation=0x0;$['cookie'](_0x1a2f('0x28'),0x0,{'expires':0x16d});$('#minimap-content')[_0x1a2f('0x2d')]('class','rtop');$(_0x1a2f('0x19'))[_0x1a2f('0x2d')](_0x1a2f('0x2e'),_0x1a2f('0x2f'));}else if(_displayText===_0x1a2f('0x30')){minimapLocation=0x1;$[_0x1a2f('0xf')]('minimapLocation',0x1,{'expires':0x16d});$(_0x1a2f('0x17'))[_0x1a2f('0x2d')]('class',_0x1a2f('0x31'));$(_0x1a2f('0x19'))[_0x1a2f('0x2d')](_0x1a2f('0x2e'),_0x1a2f('0x31'));}else if(_displayText==='Left\x20Bottom'){minimapLocation=0x2;$[_0x1a2f('0xf')]('minimapLocation',0x2,{'expires':0x16d});$('#minimap-content')[_0x1a2f('0x2d')](_0x1a2f('0x2e'),_0x1a2f('0x32'));$(_0x1a2f('0x19'))[_0x1a2f('0x2d')](_0x1a2f('0x2e'),'lbottom');}});$(_0x1a2f('0x6e'))['click'](function(){showCursor=!showCursor;$(_0x1a2f('0x6e'))[_0x1a2f('0x21')](!showCursor?'Show':'Hide');$[_0x1a2f('0xf')](_0x1a2f('0x25'),showCursor,{'expires':0x16d});});$(_0x1a2f('0x27'))[_0x1a2f('0x51')](function(){showGrid=!showGrid;$('#config-hidegrid')[_0x1a2f('0x21')](!showGrid?_0x1a2f('0x22'):'Hide');$[_0x1a2f('0xf')](_0x1a2f('0x26'),showGrid,{'expires':0x16d});});$(_0x1a2f('0x20'))['click'](function(){showSlider=!showSlider;$(_0x1a2f('0x20'))[_0x1a2f('0x21')](!showSlider?_0x1a2f('0x22'):'Hide');if(showSlider){$(_0x1a2f('0x24'))[_0x1a2f('0x1a')]();}else{$(_0x1a2f('0x24'))['hide']();}$[_0x1a2f('0xf')](_0x1a2f('0x1f'),showSlider,{'expires':0x16d});});$('#config-hidecaptcha')[_0x1a2f('0x51')](function(){showCaptcha=!showCaptcha;$(_0x1a2f('0x4e'))[_0x1a2f('0x21')](!showCaptcha?_0x1a2f('0x22'):_0x1a2f('0x23'));if(showCaptcha){$(_0x1a2f('0x4d'))[_0x1a2f('0x1a')]();}else{$(_0x1a2f('0x4d'))['hide']();}$[_0x1a2f('0xf')](_0x1a2f('0x4c'),showCaptcha,{'expires':0x16d});});$('#slider-vertical')[_0x1a2f('0x12')]({'orientation':_0x1a2f('0x6f'),'range':_0x1a2f('0x68'),'min':0xa,'max':0x3c,'value':0x1e,'slide':function(_0x29943f,_0xe83e02){_zoom=_0xe83e02[_0x1a2f('0x13')];FinalZoom=calcZoom(Math[_0x1a2f('0xb')](1.1,_zoom));$[_0x1a2f('0xf')]('zoom',_zoom,{'expires':0x16d});}});$(_0x1a2f('0x70'))[_0x1a2f('0x51')](function(){var _0x478533=$(_0x1a2f('0x71'));var _0x544503=$(_0x1a2f('0x72'));if(_0x544503[_0x1a2f('0x46')]>0x0){$('.SettingsCss:visible')[_0x1a2f('0x53')](0x1f4);return;}VisibleBoxies();_0x478533['slideDown'](0x1f4);});$('#close-settings')['click'](function(){var _0x22730e=$(_0x1a2f('0x71'));if(_0x22730e['is'](_0x1a2f('0x73'))){_0x22730e[_0x1a2f('0x53')](0x1f4);return;}var _0x47bfc4=$('.SettingsCss:visible');if(_0x47bfc4['length']>0x0){$('.SettingsCss:visible')['slideUp'](0x1f4);}});$('#close-goto')[_0x1a2f('0x51')](function(){var _0x352463=$(_0x1a2f('0x64'));if(_0x352463['is'](':visible')){_0x352463[_0x1a2f('0x53')](0x1f4);return;}var _0x2fdfc8=$(_0x1a2f('0x65'));if(_0x2fdfc8[_0x1a2f('0x46')]>0x0){$('.GotoCss:visible')[_0x1a2f('0x53')](0x1f4);}});$(_0x1a2f('0x17'))[_0x1a2f('0x74')](function(){if($('#minimap-content')[_0x1a2f('0x75')](_0x1a2f('0x76'))){$(_0x1a2f('0x17'))[_0x1a2f('0x77')](_0x1a2f('0x76'));}});$(_0x1a2f('0x78'))[_0x1a2f('0x51')](function(){$(_0x1a2f('0x17'))[_0x1a2f('0x18')]();$(_0x1a2f('0x19'))[_0x1a2f('0x1a')]();$[_0x1a2f('0xf')](_0x1a2f('0x14'),_0x1a2f('0x16'),{'expires':0x16d});});$(_0x1a2f('0x19'))[_0x1a2f('0x51')](function(){$(_0x1a2f('0x17'))[_0x1a2f('0x1a')]();$(_0x1a2f('0x19'))[_0x1a2f('0x18')]();$[_0x1a2f('0xf')](_0x1a2f('0x14'),_0x1a2f('0x15'),{'expires':0x16d});});$(_0x1a2f('0x79'))[_0x1a2f('0x7a')](function(){var _0x117ddd=$(_0x1a2f('0x7b'))[_0x1a2f('0x7c')]()['replace']('x:','')[_0x1a2f('0x60')]('\x20y','');var _0x19342d=_0x117ddd[_0x1a2f('0x3d')](':');curX=parseInt(_0x19342d[0x0]);curY=parseInt(_0x19342d[0x1]);loadTemplates();drawGrid();drawCursor();});}function getCursorColor(_0x3d4887,_0x19cd28=![]){switch(_0x3d4887){default:case'NAVY':{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x7f'));if(_0x19cd28)$['cookie'](_0x1a2f('0x1b'),_0x1a2f('0x6c'),{'expires':0x16d});cursorColor=_0x1a2f('0x7f');return _0x1a2f('0x7f');}break;case _0x1a2f('0x80'):{$('#CursorColor')[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x81'));if(_0x19cd28)$[_0x1a2f('0xf')](_0x1a2f('0x1b'),'BLUE',{'expires':0x16d});cursorColor=_0x1a2f('0x81');return _0x1a2f('0x81');}break;case _0x1a2f('0x82'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x83'));if(_0x19cd28)$[_0x1a2f('0xf')](_0x1a2f('0x1b'),'AQUA',{'expires':0x16d});cursorColor=_0x1a2f('0x83');return _0x1a2f('0x83');}break;case'TEAL':{$('#CursorColor')[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x84'));if(_0x19cd28)$[_0x1a2f('0xf')](_0x1a2f('0x1b'),_0x1a2f('0x85'),{'expires':0x16d});cursorColor=_0x1a2f('0x84');return _0x1a2f('0x84');}break;case _0x1a2f('0x86'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x87'));if(_0x19cd28)$[_0x1a2f('0xf')](_0x1a2f('0x1b'),'OLIVE',{'expires':0x16d});cursorColor=_0x1a2f('0x87');return _0x1a2f('0x87');}break;case _0x1a2f('0x88'):{$('#CursorColor')['css'](_0x1a2f('0x7e'),_0x1a2f('0x89'));if(_0x19cd28)$['cookie'](_0x1a2f('0x1b'),_0x1a2f('0x88'),{'expires':0x16d});cursorColor=_0x1a2f('0x89');return _0x1a2f('0x89');}break;case _0x1a2f('0x8a'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x8b'));if(_0x19cd28)$[_0x1a2f('0xf')]('cursorColor',_0x1a2f('0x8a'),{'expires':0x16d});cursorColor='#01FF70';return _0x1a2f('0x8b');}break;case _0x1a2f('0x8c'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')]('background-color',_0x1a2f('0x8d'));if(_0x19cd28)$[_0x1a2f('0xf')](_0x1a2f('0x1b'),_0x1a2f('0x8c'),{'expires':0x16d});cursorColor='#FFDC00';return'#FFDC00';}break;case _0x1a2f('0x8e'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x8f'));if(_0x19cd28)$[_0x1a2f('0xf')]('cursorColor',_0x1a2f('0x8e'),{'expires':0x16d});cursorColor=_0x1a2f('0x8f');return _0x1a2f('0x8f');}break;case _0x1a2f('0x90'):{$('#CursorColor')[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x91'));if(_0x19cd28)$[_0x1a2f('0xf')]('cursorColor',_0x1a2f('0x90'),{'expires':0x16d});cursorColor=_0x1a2f('0x91');return _0x1a2f('0x91');}break;case _0x1a2f('0x92'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x93'));if(_0x19cd28)$[_0x1a2f('0xf')](_0x1a2f('0x1b'),_0x1a2f('0x92'),{'expires':0x16d});cursorColor='#85144b';return _0x1a2f('0x93');}break;case _0x1a2f('0x94'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')](_0x1a2f('0x7e'),'#F012BE');if(_0x19cd28)$[_0x1a2f('0xf')](_0x1a2f('0x1b'),'FUCHSIA',{'expires':0x16d});cursorColor=_0x1a2f('0x95');return _0x1a2f('0x95');}break;case _0x1a2f('0x96'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')]('background-color',_0x1a2f('0x97'));if(_0x19cd28)$[_0x1a2f('0xf')]('cursorColor',_0x1a2f('0x96'),{'expires':0x16d});cursorColor=_0x1a2f('0x97');return _0x1a2f('0x97');}break;case _0x1a2f('0x98'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')]('background-color',_0x1a2f('0x99'));if(_0x19cd28)$[_0x1a2f('0xf')](_0x1a2f('0x1b'),_0x1a2f('0x98'),{'expires':0x16d});cursorColor=_0x1a2f('0x99');return _0x1a2f('0x99');}break;case _0x1a2f('0x9a'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')](_0x1a2f('0x7e'),'#AAAAAA');if(_0x19cd28)$['cookie'](_0x1a2f('0x1b'),_0x1a2f('0x9a'),{'expires':0x16d});cursorColor=_0x1a2f('0x9b');return _0x1a2f('0x9b');}break;case _0x1a2f('0x9c'):{$(_0x1a2f('0x4f'))[_0x1a2f('0x7d')](_0x1a2f('0x7e'),_0x1a2f('0x9d'));if(_0x19cd28)$[_0x1a2f('0xf')](_0x1a2f('0x1b'),_0x1a2f('0x9c'),{'expires':0x16d});cursorColor=_0x1a2f('0x9d');return _0x1a2f('0x9d');}break;}}function calcZoom(_0xfa710d){return parseInt(Math[_0x1a2f('0x68')](max_zoom,Math[_0x1a2f('0x3')](0x1,_0xfa710d)));}function isMenuVisible(){return!$(_0x1a2f('0x19'))['is'](_0x1a2f('0x73'))&&$('#minimap-content')['is'](_0x1a2f('0x73'));}function VisibleBoxies(){var _0x1a1dce=$(_0x1a2f('0x71'));if(_0x1a1dce['is'](_0x1a2f('0x73'))){_0x1a1dce[_0x1a2f('0x53')](0x1f4);return;}var _0x25fc75=$(_0x1a2f('0x64'));if(_0x25fc75['is'](_0x1a2f('0x73'))){_0x25fc75['slideUp'](0x1f4);return;}}function loadJsonLoop(){console[_0x1a2f('0x1c')](_0x1a2f('0x9e'));_url=dataUrl+_0x1a2f('0x3f');$[_0x1a2f('0x40')]({'type':_0x1a2f('0x41'),'url':_url,'dataType':_0x1a2f('0x42'),'success':function(_0x167b2e){updateTemplates(jQuery[_0x1a2f('0x43')](JSON['stringify'](_0x167b2e))[_0x1a2f('0x9f')]);}});setTimeout(loadJsonLoop,0x3c*0x3c*0x3c);}function hexToRgb(_0x505eda){var _0x57b97a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i[_0x1a2f('0xa0')](_0x505eda);return _0x57b97a?{'r':parseInt(_0x57b97a[0x1],0x10),'g':parseInt(_0x57b97a[0x2],0x10),'b':parseInt(_0x57b97a[0x3],0x10)}:null;}function drawCursor(){_minimap_cursor[_0x1a2f('0xa1')](0x0,0x0,minimap[_0x1a2f('0x5d')],minimap[_0x1a2f('0x5e')]);if(!isMenuVisible()||!showCursor)return;_minimap_cursor[_0x1a2f('0xa2')]();var _0x323abe=minimap[_0x1a2f('0x5d')]+FinalZoom;var _0xb1cbeb=minimap[_0x1a2f('0x5e')]+FinalZoom;var _0x5cf3b7=_0x323abe/0x2;var _0x3d3bb6=_0xb1cbeb/0x2;var _0x318e0d=hexToRgb(cursorColor);_minimap_cursor['lineWidth']=parseInt(0.15*FinalZoom);_minimap_cursor[_0x1a2f('0xa3')]='rgba('+_0x318e0d['r']+',\x20'+_0x318e0d['g']+',\x20'+_0x318e0d['b']+',\x20'+cursorAlpha/0x64+')';_minimap_cursor[_0x1a2f('0xa4')](_0x5cf3b7-FinalZoom/0x2,_0x3d3bb6-FinalZoom/0x2,FinalZoom,FinalZoom);_minimap_cursor[_0x1a2f('0xa5')]();}function drawGrid(){var _0x245423=0x0;_minimap_grid[_0x1a2f('0xa1')](0x0,0x0,minimap['width'],minimap[_0x1a2f('0x5e')]);if(!isMenuVisible()||!showGrid||FinalZoom<0x11){var _0x3fda7a=minimap[_0x1a2f('0x5d')]+FinalZoom;for(var _0x566471=0x0;_0x566471<=_0x3fda7a;_0x566471+=FinalZoom){_0x245423+=0x1;}}else{_minimap_grid[_0x1a2f('0xa2')]();var _0x3fda7a=minimap[_0x1a2f('0x5d')]+FinalZoom;var _0x3f9053=minimap['height']+FinalZoom;var _0x27f3b3=minimap[_0x1a2f('0x5d')]/0x2%FinalZoom-FinalZoom;var _0x176278=minimap[_0x1a2f('0x5e')]/0x2%FinalZoom-FinalZoom;console[_0x1a2f('0x1c')](_0x1a2f('0xa6')+_0x3fda7a+',\x20'+_0x3f9053+_0x1a2f('0xa7')+_0x27f3b3+',\x20'+_0x176278+']');_minimap_grid[_0x1a2f('0xa8')]=_0x1a2f('0xa9')+gridAlpha/0x64+')';var _0x52e31b=0x1;var _0x3c7e07=_0x52e31b%0x2/0x2;_minimap_grid[_0x1a2f('0xaa')](_0x3c7e07,0x0);for(var _0x566471=0x0;_0x566471<=_0x3fda7a;_0x566471+=FinalZoom){_0x245423+=0x1;_minimap_grid['fillRect'](_0x566471+_0x27f3b3,_0x176278,_0x52e31b,_0x3f9053);}_minimap_grid[_0x1a2f('0xaa')](-_0x3c7e07,0x0);_minimap_grid[_0x1a2f('0xaa')](0x0,_0x3c7e07);for(var _0x5a50b4=0x0;_0x5a50b4<=_0x3f9053;_0x5a50b4+=FinalZoom){_minimap_grid[_0x1a2f('0xab')](_0x27f3b3,_0x5a50b4+_0x176278,_0x3fda7a,_0x52e31b);}_minimap_grid[_0x1a2f('0xaa')](0x0,-_0x3c7e07);_minimap_grid[_0x1a2f('0xa5')]();}hitzone=_0x245423;console[_0x1a2f('0x1c')](_0x1a2f('0xac'),hitzone);}function drawImage(_0x3656cd,_0x182614,_0x433975,_0x150f18,_0x48d9f3,_0xa47f4b){attempt=0x0;$(_0x1a2f('0x17'))[_0x1a2f('0x77')]('minimize');var _0x1fc9e6=minimap['width']/FinalZoom/0x2;var _0x9b60cb=minimap[_0x1a2f('0x5e')]/FinalZoom/0x2;var _0x1bbfc4=(_0x1fc9e6+_0x433975)*FinalZoom;var _0x406165=(_0x9b60cb+_0x150f18)*FinalZoom;var _0x263165=FinalZoom*_0x48d9f3;var _0x5d29e5=FinalZoom*_0xa47f4b;console[_0x1a2f('0x1c')](_0x1a2f('0xad')+_0x433975+_0x1a2f('0xae')+_0x150f18+_0x1a2f('0xaf')+_0x48d9f3+_0x1a2f('0xb0')+_0xa47f4b+'\x20|\x20z:\x20('+FinalZoom+_0x1a2f('0xb1')+_zoom+')');if(storedTemplates[_0x1a2f('0x5b')](_0x182614)){_0x3656cd[_0x1a2f('0xb2')](storedTemplates[_0x182614],_0x1bbfc4,_0x406165,_0x263165,_0x5d29e5);}else{var _0x1d0cb2=new Image();_0x1d0cb2['src']=dataUrl+_0x182614+_0x1a2f('0xb3');_0x1d0cb2[_0x1a2f('0xb4')]=function(){_0x3656cd['drawImage'](_0x1d0cb2,_0x1bbfc4,_0x406165,_0x263165,_0x5d29e5);storedTemplates[_0x182614]=_0x1d0cb2;};}}function updateTemplates(_0x4f970a){templateList=_0x4f970a;for(var _0x38cedd in _0x4f970a){if(!availableFactions[_0x1a2f('0xb5')](_0x38cedd)){availableFactions[_0x1a2f('0xb6')](_0x38cedd);}}}function loadTemplates(){arrayAttempt=[];if(!isMenuVisible())return;_minimap[_0x1a2f('0xa1')](0x0,0x0,minimap[_0x1a2f('0x5d')],minimap[_0x1a2f('0x5e')]);for(var _0xd1f0b7 in templateList){if(templateList[_0x1a2f('0x5b')](_0xd1f0b7)){var _0x4c3b65=[];$(_0x1a2f('0xb7'))[_0x1a2f('0xb8')](function(){_0x4c3b65[_0x1a2f('0xb6')]($(this)['attr'](_0x1a2f('0xb9')));});if($[_0x1a2f('0xf')](_0x1a2f('0x3c'))!==_0x4c3b65[_0x1a2f('0xba')]('\x20'))$[_0x1a2f('0xf')](_0x1a2f('0x3c'),_0x4c3b65[_0x1a2f('0xba')]('\x20'),{'expires':0x16d});var _0xfb01fd=$(_0x1a2f('0xbb'))[_0x1a2f('0x5d')]()/0x2;var _0x4f1316=$(_0x1a2f('0xbb'))[_0x1a2f('0x5e')]()/0x2;console[_0x1a2f('0x1c')](_0x1a2f('0xbc')+_0xd1f0b7+_0x1a2f('0xbd')+curX+',\x20'+curY+'].');var _0x22ffb2=[];var _0x266025=templateList[_0xd1f0b7]['x'];var _0x3a8628=templateList[_0xd1f0b7]['y'];var _0x347360=_0x266025+templateList[_0xd1f0b7][_0x1a2f('0x5d')];var _0x183f77=_0x3a8628+templateList[_0xd1f0b7]['height'];var _0x143e22=_0x266025-hitzone;var _0x8566de=_0x347360+hitzone;var _0x3193b7=_0x3a8628-hitzone;var _0x38fa9b=_0x183f77+hitzone;arrayAttempt[_0x1a2f('0xb6')](curX[_0x1a2f('0x1')](_0x143e22,_0x8566de)&&curY[_0x1a2f('0x1')](_0x38fa9b,_0x3193b7)&&_0x4c3b65[_0x1a2f('0xbe')](_0xa46c86=>templateList[_0xd1f0b7]['categories'][_0x1a2f('0xb5')](_0xa46c86)));if(curX[_0x1a2f('0x1')](_0x143e22,_0x8566de)&&curY[_0x1a2f('0x1')](_0x38fa9b,_0x3193b7)&&_0x4c3b65[_0x1a2f('0xbe')](_0x3b68b1=>templateList[_0xd1f0b7][_0x1a2f('0x3c')]['includes'](_0x3b68b1))){attempt=0x0;$('#minimap-content')[_0x1a2f('0x77')]('minimize');console[_0x1a2f('0x1c')](_0x1a2f('0xbf'),_0xd1f0b7);drawImage(_minimap,_0xd1f0b7,_0x266025-curX,_0x3a8628-curY,templateList[_0xd1f0b7][_0x1a2f('0x5d')],templateList[_0xd1f0b7][_0x1a2f('0x5e')]);}}}if(!arrayAttempt[_0x1a2f('0xb5')](!![])){if(attempt<0x3){attempt++;}else{$(_0x1a2f('0x17'))['addClass']('minimize');}}}function setupCanvas(){minimap=$(_0x1a2f('0xbb'))[_0x1a2f('0xc0')](0x0);_minimap=minimap[_0x1a2f('0xc1')]('2d');_minimap['imageSmoothingEnabled']=![];_minimap['webkitImageSmoothingEnabled']=![];_minimap[_0x1a2f('0xc2')]=![];minimap_grid=$(_0x1a2f('0xc3'))[_0x1a2f('0xc0')](0x0);_minimap_grid=minimap_grid[_0x1a2f('0xc1')]('2d');_minimap_grid[_0x1a2f('0xc4')]=![];_minimap_grid[_0x1a2f('0xc5')]=![];_minimap_grid[_0x1a2f('0xc2')]=![];minimap_cursor=$('#minimap-cursor')[_0x1a2f('0xc0')](0x0);_minimap_cursor=minimap_cursor[_0x1a2f('0xc1')]('2d');_minimap_cursor[_0x1a2f('0xc4')]=![];_minimap_cursor[_0x1a2f('0xc5')]=![];_minimap_cursor[_0x1a2f('0xc2')]=![];}function selectColor(_0x47b801,_0x2ddac9,_0xd7a1d1,_0xcf2ecb,_0xf7c326){var _0x390a46=_0x47b801[_0x1a2f('0xc6')](_0x2ddac9,_0xd7a1d1,_0xcf2ecb,_0xf7c326)['data'];var _0xeb08c2=_0x390a46[0x0]+',\x20'+_0x390a46[0x1]+',\x20'+_0x390a46[0x2];return _0xeb08c2;}