· 5 years ago · Jan 13, 2021, 10:06 PM
1var a0_0x2131 = ['building_main/build', 'Assistant\x20Settings', '/game/farm_town_overviews?', '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w35\x22\x20id=\x22header_free_pop\x22><div\x20class=\x22col\x20header\x20free_pop\x22></div></div>', '\x20disabled-box', 'Autofarm_timer', '#place_party', '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w50\x22\x20id=\x22header_storage\x22><div\x20class=\x22col\x20header\x20celebration\x20party\x22></div></div>', 'total_capacity', 'startTimer', 'getElementById', 'Check\x20every:\x20', 'active_alliance', 'double', 'dialogWindow', 'Start\x20Autoattack', '#Autofarm_settings', 'kind', 'callbackSave', 'Send', 'claim', '120', 'checkReady', 'getOpenFirst', '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w40\x22\x20id=\x22header_storage\x22><div\x20class=\x22col\x20header\x20storage\x22></div></div>', 'Stop\x20Autofarm', 'Initialize\x20AutoFarm', 'Please\x20enter\x20a\x20message.', 'windowmgr_slider', '<div\x20class=\x22game_list_footer\x22>', 'symbol', 'each', 'Autoculture', '.celebration.triumph', 'float:left;width:120px;', 'hasConqueror', 'get_7days', '<div\x20class=\x22towninfo\x20small\x20townsoverview\x20col\x20w40\x22>', 'btn_save', 'row1', 'Lowest\x20resources\x20first\x20with\x20more\x20towns\x20on\x20one\x20island.', 'filter', 'enough_resources', 'celebration_type', 'After\x202\x20minutes', 'even', 'checkAutostart', 'The\x20settings\x20were\x20saved!', '<div\x20class=\x22culture_party_row\x22\x20id=\x22culture_party_', '#time_options', 'resolve', 'insertBefore', '<span>(', 'building_queue', 'default_handler', '\x20-\x20[', 'effect\x20js-effect', 'object', 'round', 'model', '<div\x20style=\x22clear:both;\x22></div>', 'grepolis_payment', 'stone', 'item', '\x20.attack_bot_timer', 'updateStatusInChunkTowns', 'add', 'email', 'getTownId', 'buildingElement', 'log', 'members_show', 'locale_lang', 'construction_queue_sprite\x20frame', 'game_border_corner\x20corner3', 'getPremium', 'short_advantages', '\x20v<span\x20style=\x22font-size:\x2010px;\x22>', 'assistant_auto_relogin', 'isPauzed', 'triumph', 'toolbar_activities', 'startFarming', 'div.styledSelect.active', 'doPayment', 'textbox', 'Logs', '#ally_members_body\x20.ally_name\x20a', '#notification_area>.notification.getPremiumNotification', 'margin-top:1px;float:left;', 'initWindow', 'padding:\x205px;', 'Auto\x20re-login:\x20', 'brown', 'satisfaction', '/game/data?', 'hasPremium', '€ 9,99', '5-6\x20seconds', 'extend', 'town_id', 'attackOrderRow', 'premium_time', '.menu_inner\x20li:last-child', '<span\x20style=\x22color:\x20#6FAE30;\x22>', 'send_units', 'input[type=\x22checkbox\x22]', 'settings', 'initWnd', 'hover', 'No\x20premium', 'game_border', 'autobuild\x20toolbar_activities_recruits', 'wrap', 'setAttackQueue', '_config\x20.button_down\x27).css(\x27background-position\x27,\x27-144px\x200px;\x27),\x0a$(\x27#grcrt_', 'Initialize\x20Assistant', 'facebook_wnd', '\x20is\x20activated.', 'disableStart', 'padding:\x205px', 'AutoStart\x20AutoFarm.', 'when', 'Log', 'game_data', '#culture_triumph_', 'href', 'autofarm_settings', 'toLocaleLowerCase', 'success', 'booty', 'autoculture_settings', 'top:\x2010px;', 'SUPPORT', 'toggle', 'resources', 'grepo_slider\x20sound_volume', 'edge.create', 'addMenuItem', '\x20is\x20deactivated.', 'Cannot\x20call\x20a\x20class\x20as\x20a\x20function', '1505555803075328', 'support_textarea', '\x20move\x20to\x20town.', 'css', 'getLinkFragment', 'replace', 'mousePopup', 'center', 'Builder', 'border_r', '<div\x20class=\x22towninfo\x20small\x20townsoverview\x20col\x20w35\x22>', 'prop', '<span\x20style=\x22color:\x20#ff4f23;\x22>[', 'max', 'Assistant', 'randomize', 'update_notification', 'unitsToSend', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,height=650,width=800', 'unit_order_addqueue', 'autobuild_ships_enable', '\x20bottom\x22\x20id=\x22ov_town_', 'contentConsole', 'iTown', 'pop', 'assistant_alliance_names', 'PlayerKillpoints', 'claimLoads', 'animate', 'unitElement', 'building_main/cancel', 'isEnabled', '<span>', '9-10\x20seconds', 'Observer', 'interval', 'mousewheel', 'not_activated', 'layout', '<span/>', 'time_options', 'assistant_town_names', '#Autobuild_settings', 'input', '/game/building_place?', 'substr', 'player_rank', 'queue', 'contentAccount', 'Button', 'paymentOptions', '#Autofarm_onoff', '.culture_triumph_row', 'max_build', 'enabled', 'middle', 'float:\x20right;', 'timerBoxSmall', 'floor', '<div\x20class=\x22towninfo\x20small\x20townsoverview\x20col\x20w50\x22>', 'Autoattack_onoff', 'addAttack', 'PaymentOptions', 'buildUp', '#culture_theater_', 'bind', 'switch_town', 'shouldStart', '600', 'saveAssistant', 'button_new', 'Thank\x20you,\x20your\x20email\x20has\x20been\x20send!', 'recvNotifyData', 'isActive', '<tr/>', 'js-caption', 'missing_research_dependencies', '/game/building_place', 'playerTowns', 'autobuild_building_enable', 'right', 'botEmailWnd', 'indicator', 'width:\x200%;', 'btn_cancel_order\x20button_new\x20square\x20remove\x20js-item-btn-cancel-order\x20build_queue', 'barracks', 'hidden', 'addClass', 'Town', '/game/town_info?', 'AUTHORIZE', 'scroll', 'item_icon\x20unit_icon40x40\x20js-item-icon\x20build_queue\x20', 'arrowActivated', 'same_island', 'unit_icon25x25\x20', '4.0', 'advisors', 'close', 'click', '.culture_party_row', 'scrollHeight', 'body', 'COMMON', ';\x22>Units\x20-\x20', '<textarea/>', 'saveBuild', 'missing_building_dependencies', 'calls', '#unit_order_addqueue', 'bot_culture_triumph_', 'bar', 'Message', 'attributes', '\x20>\x20', 'checkBuildingDepencencies', 'stringify', 'population', 'game_border_bottom', 'index', 'POST', 'message_text', 'building_name', 'ajaxComplete', 'inArray', '<div\x20class=\x22stone', 'test', '-9px', 'outerWidth', 'checkBuildingLevel', 'ul.options', '<input/>', 'checkPopulationBeingBuild', 'departure', 'quest', '<a\x20id=\x22help-button\x22\x20onclick=\x22return\x20false;\x22\x20class=\x22confirm\x22></a>', 'item_name', '<img\x20src=\x22https://bot.grepobot.com/images/facebook_page.png\x22\x20title=\x22Facebook\x20Grepobot\x22/>', 'margin-bottom:9px;', 'game_table_even', 'float:left;\x20width:472px;height:\x20270px;', 'Build', 'lowresfirst', '.nui_left_box', 'diplomacy', 'autostart', 'getJQElement', '.construction_queue_order_container', '#map_towns\x20.flag', 'lootable_at', 'BuildingOrder', '#building_tasks_main\x20.ui_various_orders,\x20.construction_queue_order_container\x20.ui_various_orders', '<span\x20class=\x22construction_queue_sprite\x20arrow_green_ver\x22></span>', 'undefined', 'player_villages', '#unit_orders_queue\x20.js-researches-queue', 'hide', 'isStopped', '#building_tasks_main\x20.various_orders_queue\x20.frame-content\x20.various_orders_content', 'premium-bot', 'text-align', '\x20town_storage_full', '.nui_main_menu', 'Attack', 'Auth', 'checkWhatToStart', 'botPremWnd', 'startBuildBuilding', 'shouldFarm', 'Start\x20', '<div/>', '_config', '\x20recruiting\x20', 'val', '<span\x20class=\x22like-share-text\x22>Like\x20&\x20share\x20and\x20get\x20<b>3\x20days</b>\x20free\x20premium.</span><a\x20href=\x22#\x22\x20class=\x22fb-share\x22><span\x20class=\x22fb-text\x22>Share</spanclass></a><div\x20class=\x22fb_like\x22><div\x20class=\x22fb-like\x22\x20data-href=\x22https://www.facebook.com/BotForGrepolis/\x22\x20data-layout=\x22button\x22\x20data-action=\x22like\x22\x20data-show-faces=\x22false\x22\x20data-share=\x22false\x22></div></div>', 'Deferred', 'loadAttackQueue', 'settings_header', 'url', 'getResearches', 'Disabled', 'Auto\x20', 'serializeArray', 'checked_count', '#Autobuild_onoff', 'float:left;\x20width:472px;', 'subscribe', 'battlepoint_villages', 'contentSupport', 'getModelByNameAndPlayerId', 'protocol', '/game/frontend_bridge?', '#payment-button', 'trial_time', 'domain', 'build_grey', 'attack_planer/attacks', 'callbackAuth', 'map', 'time_autobot', 'currentTown', 'show', '<div\x20class=\x22culture_theater_row\x22\x20id=\x22culture_theater_', '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w40\x22\x20id=\x22header_iron\x22><div\x20class=\x22col\x20header\x20iron\x22></div></div>', 'toHHMMSS', 'captain_active', '90\x20minute\x20farm', 'number', '/start?', 'confirm', 'place', 'Bug\x20report', '/game/', 'width', 'ships_queue', 'capitalize', '#payment\x20#information', 'prototype', 'margin-top:\x200;width:\x20166px;', '#Support_tab', 'building_main_', 'Expired', '+36\x20Days ', 'send_at', 'name', 'image', 'Initialize\x20Autobot', 'game_inner_box', 'float:\x20left;', 'push', 'options', '#unit_orders_queue', 'Initialize\x20Autoattack', 'init', 'Stopped', '/∞)', 'attr', 'title', 'dd:change:value', 'button_send', 'claim_loads', '#unit_order_slider', 'class', 'size1x', 'loadPlayerTowns', 'wnd', 'fbAsyncInit', '<span\x20style=\x22color:\x20#ff9e22;\x22>[', 'getIslandCoordinateX', 'XFBML', 'autofarm_warehousefull', '4\x20Months', 'now', 'building_place', 'town_names', 'origin_town_link', 'naval', 'checkbox', 'Culture', 'game_border_corner\x20corner1', '_config\x20.sound_volume\x27).grepoSlider({\x0amin:\x200,\x0amax:\x20100,\x0astep:\x205,\x0avalue:\x20', 'autofarm_loot', 'setHeight', 'After\x2010\x20minutes', '<ul\x20class=\x22game_list\x20scroll_content\x22>', 'script', 'Autofarm', 'createElement', 'parse', '<span><a\x20href=\x22#', '1200', 'Invalid', '/game/player', '<span\x20style=\x22color:\x20#ffa03d;\x22>', 'string', 'ModuleManager', 'getHandler', 'calculateCapacity', 'total', '<a/>', '.js-tutorial-queue-item', '3-4\x20seconds', '.autoattack_settings', 'big', 'attack_planner', 'sendAttack', 'can_upgrade', 'payment-option', 'shift', '<span\x20class=\x27small\x20notification_date\x27>Version\x20', 'origin_player_link', 'arrow', 'auto_relogin', 'removeClass', 'checkAvailable', '.active', '\x20premium', 'ATTACKMODULE', 'html', 'fixMessage', '\x20not\x20ready\x20yet.', '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w80\x20h25\x22\x20id=\x22header_town\x22></div>', 'initMapTownFeature', 'Please\x20enter\x20your\x20email.', 'toStringTag', 'autofarm_method', 'Autobot-', 'serializeObject', 'height', '<ul/>', 'payment', 'removeItemQueue', '#facebook-jssdk', 'windows', 'initTimer', 'Subject', '#unit_orders_queue\x20h4', 'Autobot\x20Console', 'bottom', 'unit_count\x20text_shadow', 'stopPropagation', 'slider_container', 'active_player', 'text', 'Attack\x20', '\x20getting\x20building\x20information.', 'gameWrapper', 'building_main', 'createNotification', 'notes', 'hasClass', 'botWnd', 'initButtons', 'checkInstantComplete', 'building_level', 'open', 'setToolbox', 'closest', 'start', 'facebook-jssdk', 'exports', 'setSettings', 'enable_building', 'docks', 'AutoStart\x20Autobuild.', 'upgrade3Days', '#Autoculture_onoff', 'odd', 'facebookWnd', 'townId', 'currentFarmCount', 'Settings\x20saved', 'researches', 'buildings', 'frontend_bridge', 'type', 'bot_townsoverview', 'before', 'referenceAmount', 'constructor', 'getContent', 'function', 'assistant_settings', 'checkCaptain', 'hideAjaxLoader', '<ul\x20class=\x22game_list\x22\x20id=\x22townsoverview\x22><li\x20class=\x22even\x22>', 'https://www.facebook.com/BotForGrepolis/', 'getByType', 'obServer', 'value_container', 'getBuildings', 'target_id', 'boolean', '$el', 'Support_tab', 'active', 'match', 'slice', '#countdown_', '<div\x20class=\x22towninfo\x20small\x20townsoverview\x20col\x20w80\x22>', '/game/alliance', 'small_arrow', '<span\x20class=\x22storage\x22>', '<option/>', '\x20added.</span>', 'getTimeLeft', 'ASSISTANT', 'finished', 'building_main/tear_down', 'enable_units', '€ 4,99', 'Show\x20town\x20names\x20on\x20island\x20view.', 'initUnitOrder', 'attack_planer/edit_origin_town', 'toLowerCase', '\x20-\x20', 'price', 'autobuild_timeinterval', '\x20not\x20enough\x20population\x20for\x20', 'skipwhenfull', 'setEmptyItems', 'min', 'autobuild_barracks_enable', 'getTowns', '<label/>', 'ground', 'renderQueue', 'children', 'countRunningAttacks', 'is_running', 'addUnitQueueItem', 'Time\x20before\x20next\x20farm:\x20', 'isEmptyObject', '<span\x20style=\x22color:\x20', '\x20queue_id_', 'responseText', 'v2.4', 'redirect', 'enough_population', 'support_overview', 'supportEmail', 'selectUnit', 'botFacebookWnd', 'checkEnabled', 'getTown', '+120\x20Days ', '\x20not\x20enough\x20resources\x20for\x20', 'setMax', 'Console', 'autofarm_autostart', '<tbody/>', 'heroes', 'publish', 'startBuildUnits', 'getStorage', 'split', 'claimLoad', 'Enable\x20ships\x20queue.', 'iron', 'inputSlider', 'getReadyTime', 'attack_id', '249px', '\x22><div\x20class=\x22game_border\x22><div\x20class=\x22game_border_top\x22></div><div\x20class=\x22game_border_bottom\x22></div><div\x20class=\x22game_border_left\x22></div><div\x20class=\x22game_border_right\x22></div><div\x20class=\x22game_border_top\x22></div><div\x20class=\x22game_border_corner\x20corner1\x22></div><div\x20class=\x22game_border_corner\x20corner2\x22></div><div\x20class=\x22game_border_corner\x20corner3\x22></div><div\x20class=\x22game_border_corner\x20corner4\x22></div><div\x20class=\x22game_header\x20bold\x22\x20id=\x22settings_header\x22>AutoAttack</div><div><div\x20class=\x22attacks_list\x22><ul\x20class=\x22attacks_list\x22></ul></div><div\x20class=\x22game_list_footer\x20autoattack_settings\x22></div></div></div></div>', 'menu', '<td/>', 'thermal', 'menu_wrapper', '<div>', 'hasResearch', '\x20can\x20not\x20be\x20started\x20due\x20dependencies.', 'authenticate', 'grcrt_', 'Success', 'curr', 'Stop\x20loot\x20farm\x20until\x20mood\x20is\x20below\x2080%.', 'checked', 'units_queue', 'message', 'getElementsByTagName', '#unit_order_confirm', 'makeSelectbox', 'size', 'call', 'preventDefault', 'prepend', 'maintenance', 'version', 'support_type', 'startUpgrade', 'login', '#ui_box\x20.ui_construction_queue\x20.construction_queue_order_container', 'instantBuyTown', 'margin-top:\x200;', 'support_input_subject', 'player_id', '\x20disabled', 'startCulture', 'isLogged', '#notification_area>.notification', 'length', 'CULTUREMODULE', 'src', 'oracle', 'initQueue', 'getPoints', 'timerBoxFull', 'Celebration', 'Autoculture_onoff', '.celebration.party', '<li/>', '</li>', 'Initialize\x20Autobuild', 'Stop\x20Autoculture', 'target_town_name', 'count', 'Autobot\x20v', 'build', 'email_validation', 'loot', '<div\x20class=\x22player_name\x22>', '\x20.checkbox_new', 'slow', 'toUpperCase', 'value', 'disableP', 'addItemQueue', '_value', '.gpwindow_content', 'top:\x200;\x20left:\x20360px;\x20visibility:\x20visible;\x20display:\x20none;', 'Email', 'callbackSaveUnits', 'span', 'initFunction', 'finished_at', 'unit_id', 'selectBox', '<fieldset/>', 'openBuyAdvisorsWindow', 'Queue', 'scrollInterval', 'display:\x20none;', 'bot_culture_theater_', '<table/>', 'getPremiumNotification', 'left', '20\x20minute\x20farm', 'terminal', 'edge.remove', 'show_units', 'share', 'building_barracks', 'bot_menu\x20layout_main_sprite', 'scrollTop', 'grepobanner', 'unit', 'world_id', 'Initialize\x20Autoculture', 'Event', 'random', 'claimResources', 'CONSTRUCTMODULE', '#unit_orders_queue\x20.ui_various_orders', '<div\x20class=\x22wood', '</a></span><br>', 'autoculture\x20farm_town_status_0', 'start_celebration', 'captain', 'indexOf', 'Type:\x20', 'Get\x203\x20free\x20days!', 'notifications', '2\x20minutes', 'insertAfter', 'param', 'units', 'premium', 'getMaxBuildForSingleUnit', 'Please\x20enter\x20a\x20subject.', '1\x20Month', 'Autoattack', '<ul\x20/>', 'readyTime', 'models', '1-2\x20seconds', 'farmTowns', 'checkPremium', 'TYPE_BUILDING', '</div>', 'create', 'done', 'handled_farms', '<span\x20style=\x22color:\x20#ff4f23;\x22>', 'lootable_human', '_onoff', 'secondsToTime', 'origin_town_name', '<script/>', '/game/town_info', 'incomming_attacks', '300', 'attack_type32x32\x20', '#attack_order_id_', 'key', '15\x20minutes', '\x20hours\x20', 'building_main_index', 'startQueueing', '_active', 'div.styledSelect', 'hasFreeBuildingSlots', 'next_fetch_in', 'facebook_like', 'claimLoadCallback', 'ConstructionQueueBaseView', 'subject', '\x20checked', 'arrival_at', '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w40\x22\x20id=\x22header_stone\x22><div\x20class=\x22col\x20header\x20stone\x22></div></div>', '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w50\x22\x20id=\x22header_storage\x22><div\x20class=\x22col\x20header\x20celebration\x20theater\x22></div></div>', 'parent', 'formatDateTimeNice', 'error_code', 'top:\x2062px;', 'town', 'styles', 'modules', 'enable_ships', 'startCelebration', 'Grepobot\x20Support', 'writable', 'background-image:\x20url(\x27', '\x20Ptn.)</span>', '.queue_id_', 'openMaintenanceWindow', 's-hidden', 'menu_inner', 'find', '#main_tasks\x20h4', '\x20-\x20Premium', 'apply', 'AutoCulture', 'town_info_attack', 'You\x20have\x20received\x203\x20days\x20premium!\x20Thank\x20you\x20for\x20sharing.', '35px', '</span>', '#autoculture_autostart', 'getMethodTime', 'item_icon\x20building_icon40x40\x20js-item-icon\x20build_queue\x20', '<div\x20id=\x22attack_bot\x22\x20class=\x22attack_bot\x20attack_planner\x20attacks', '#time_options\x20li', 'UnitOrder', 'js-queue-item\x20js-tutorial-queue-item\x20construction_queue_sprite\x20empty_slot', 'initButton', 'after', 'bot_culture_party_', 'appendTo', 'dropdown', 'Enable\x20building\x20queue.', 'amount', 'configurable', 'attack_bot_timer', 'isOn', 'attacks_row\x20', 'tooltips', '/game/farm_town_overviews', 'Financial', 'game_table_odd', 'selector', 'ship', 'farm_town_overviews', 'login_to_game_world', 'submenu_link', 'Nothing\x20is\x20ready\x20yet!', 'mood', 'toggleClass', '<div\x20class=\x22iron', 'delay', 'data', 'GET', 'building_main/index', 'account_property_wrapper', 'Types', 'statue', 'target_town_id', '\x20minutes\x20', '<div\x20class=\x22select\x22></div>', 'checkAttack', 'Autobuild_onoff', 'disabled', 'getIslandCoordinateY', 'timeToSeconds', 'Autobuild_settings', 'building', '\x20queued', 'texts', 'element', 'Module', 'stopTimer', 'width:\x20120px;', 'payment-button', '#attack_bot', 'Other', 'target_town_link', 'small', 'initFarmTowns', 'callbackSaveSettings', 'setContent2', 'wood', 'unbind', 'button', 'claimLoadsCallback', '5400', 'append', 'csrfToken', 'top', 'reference', 'Get\x20Premium', 'construction_queue', 'library', 'support_input_email', '10\x20Months', 'After\x205\x20minutes', 'initAjax', 'option', 'instant_buy', 'error', 'ul.attacks_list', 'RepConv.slider\x20=\x20$(\x27#grcrt_', 'row2', '<li\x20class=\x22', 'Stop\x20', 'order_id', 'volume', 'main_menu', 'default', 'callbackSaveBuilding', '.ui_various_orders', 'initFarmTownsCaptain', 'getUnusedPoints', 'Autobot', 'stop', 'enumerable', '#culture_party_', 'Farm', 'Add\x20to\x20reqruite\x20queue', 'single-progressbar\x20instant_buy\x20js-progressbar\x20type_building_queue', 'width:\x20200px;float:\x20left;', 'getBuildingId', 'island_y', 'storage', 'favor', 'isCaptain', '&player_id=', 'requiredPrem', 'remove', 'json', 'getRelationForFarmTown', 'timebetween', 'relation_status', 'Autobuild', 'culture', 'autobuild_autostart', '#place_theater', '275px', '\x20-\x20Get\x203\x20days\x20free!', 'name_plural', 'rel', '.terminal-output', 'FarmTownPlayerRelation', 'style', 'flag\x20town', ',\x0atemplate:\x20\x27tpl_grcrt_slider\x27\x0a}).on(\x27sl:change:value\x27,\x20function\x20(e,\x20_sl,\x20value)\x20{\x0a$(\x27#grcrt_', '900', '/game/farm_town_info?', 'updateTimer', 'hasOwnProperty', 'information', 'checkbox_new', 'initSettings', 'background-color:\x20#DFCCA6;width:\x2030%;', '_initialize', '#facebook_wnd\x20.fb-share', '+12\x20Days ', 'scrollUpdate', 'left:\x2078px;\x20right:\x2014px', '.button,\x20.button_new', 'defineProperty', 'normal', 'next', 'caption\x20js-caption', '<span\x20style=\x22color:\x20#fff;\x22>', 'refresh', 'width:\x20167px;margin-left:\x2018px;', 'assistant_player_names', 'slider', '10\x20minutes', '<div\x20class=\x22culture_triumph_row\x22\x20id=\x22culture_triumph_', '240\x20minute\x20farm', 'cbx_icon', 'inputMinMax', 'js-tutorial-queue-item\x20queued_building_order\x20last_order\x20', 'theater', 'arrival', 'execute', 'relatedTowns', 'attacks', 'checkAlliance', '#ffe03d', '.ui-dialog\x20#facebook_wnd', 'Facebook_grepobot', '#3dadff', 'towns', '.terminal', 'sort', 'hasNavalUnits', 'autofarm_bewteen', '__esModule', '/game/building_barracks?', '\x20has\x20no\x20farm\x20towns.', '#buildings\x20.button_build.build_grey.build_up.small.bold', 'openAttackPlannerWindow', 'Stop\x20Autobuild', 'concat', 'slow_transport_ship', '/game/building_main', '<span><b>Autobot</b></span>', 'active_town', 'transform:\x20rotate(17deg);', '_value\x27).attr(\x27value\x27,value);\x0aif\x20(RepConv.audio.test\x20!=\x20undefined){\x0aRepConv.audio.test.volume\x20=\x20value/100;\x0a}\x0a}),\x0a$(\x27#grcrt_', 'claim_load', 'Trial:', 'param_str', 'time_row', 'empty', 'game_border_corner\x20corner4', 'isReadyTime', 'setAttackData', '\x22\x20class=\x22gp_town_link\x22>', 'toolbox_element', 'location', 'Farming', 'LogScrollBottom', 'no_results', 'autoculture_autostart', 'building_barracks/index', '_blank', '#Autoattack_onoff', 'Feature\x20request', '<li\x20/>', 'stoplootbelow', 'trade_office', 'isRunning', 'features', '<legend/>', 'saveCulture', 'contentSettings', 'notification', 'float:left;width:33px;', '#bot_townsoverview_table_wrapper\x20input', 'Farm\x20method:\x20', 'Support', 'startBuild', 'scrollLeft', 'alliance_name', 'readyState', 'getHours', 'pollForMapChunksUpdate', 'Autofarm_onoff', 'party', 'autofarm_lowresfirst', 'town_map_info', 'method', '#time_autobot\x20.caption\x20.value_container\x20.curr', 'autobuild_settings', 'getAvailablePopulation', 'timeinterval', 'attacks_timers', 'common', 'player_name', 'plain', 'Account', '#time_autobot\x20.progress\x20.indicator', 'getl10n', 'autofarm\x20farm_town_status_0', 'activateCss', 'terminal-output', ']:\x20', 'isSwitched', 'ajax'];
2var a0_0xeeba = function(_0x213154, _0xeebafe) {
3 _0x213154 = _0x213154 - 0x0;
4 var _0x18a26c = a0_0x2131[_0x213154];
5 return _0x18a26c;
6};
7! function(_0x116a00) {
8 var _0x5b6bc9 = {};
9
10 function _0xfba4a4(_0x4a192c) {
11 if (_0x5b6bc9[_0x4a192c]) return _0x5b6bc9[_0x4a192c][a0_0xeeba('0x1e1')];
12 var _0x5b4f63 = _0x5b6bc9[_0x4a192c] = {
13 'i': _0x4a192c,
14 'l': !0x1,
15 'exports': {}
16 };
17 return _0x116a00[_0x4a192c][a0_0xeeba('0x25c')](_0x5b4f63[a0_0xeeba('0x1e1')], _0x5b4f63, _0x5b4f63[a0_0xeeba('0x1e1')], _0xfba4a4), _0x5b4f63['l'] = !0x0, _0x5b4f63[a0_0xeeba('0x1e1')];
18 }
19 _0xfba4a4['m'] = _0x116a00, _0xfba4a4['c'] = _0x5b6bc9, _0xfba4a4['d'] = function(_0x210111, _0x2809f3, _0x4962d5) {
20 _0xfba4a4['o'](_0x210111, _0x2809f3) || Object[a0_0xeeba('0x38c')](_0x210111, _0x2809f3, {
21 'enumerable': !0x0,
22 'get': _0x4962d5
23 });
24 }, _0xfba4a4['r'] = function(_0x4a7218) {
25 a0_0xeeba('0x126') != typeof Symbol && Symbol[a0_0xeeba('0x1bd')] && Object[a0_0xeeba('0x38c')](_0x4a7218, Symbol[a0_0xeeba('0x1bd')], {
26 'value': a0_0xeeba('0x332')
27 }), Object[a0_0xeeba('0x38c')](_0x4a7218, '__esModule', {
28 'value': !0x0
29 });
30 }, _0xfba4a4['t'] = function(_0x187699, _0x23ba6a) {
31 if (0x1 & _0x23ba6a && (_0x187699 = _0xfba4a4(_0x187699)), 0x8 & _0x23ba6a) return _0x187699;
32 if (0x4 & _0x23ba6a && a0_0xeeba('0x39') == typeof _0x187699 && _0x187699 && _0x187699[a0_0xeeba('0x3aa')]) return _0x187699;
33 var _0x16852b = Object[a0_0xeeba('0x2c6')](null);
34 if (_0xfba4a4['r'](_0x16852b), Object['defineProperty'](_0x16852b, a0_0xeeba('0x358'), {
35 'enumerable': !0x0,
36 'value': _0x187699
37 }), 0x2 & _0x23ba6a && a0_0xeeba('0x19f') != typeof _0x187699)
38 for (var _0x520ecd in _0x187699) _0xfba4a4['d'](_0x16852b, _0x520ecd, function(_0x15e25a) {
39 return _0x187699[_0x15e25a];
40 } [a0_0xeeba('0xce')](null, _0x520ecd));
41 return _0x16852b;
42 }, _0xfba4a4['n'] = function(_0x54c778) {
43 var _0x1de4be = _0x54c778 && _0x54c778['__esModule'] ? function() {
44 return _0x54c778['default'];
45 } : function() {
46 return _0x54c778;
47 };
48 return _0xfba4a4['d'](_0x1de4be, 'a', _0x1de4be), _0x1de4be;
49 }, _0xfba4a4['o'] = function(_0x1f54df, _0x39fc0b) {
50 return Object[a0_0xeeba('0x166')][a0_0xeeba('0x381')]['call'](_0x1f54df, _0x39fc0b);
51 }, _0xfba4a4['p'] = '/', _0xfba4a4(_0xfba4a4['s'] = 0x0);
52}([function(_0x43fa50, _0x18930c, _0x12f64a) {
53 'use strict';
54
55 function _0xac71dc(_0x58fbf4, _0x54e6e1) {
56 for (var _0x7d6bc2 = 0x0; _0x7d6bc2 < _0x54e6e1[a0_0xeeba('0x26d')]; _0x7d6bc2++) {
57 var _0x3859ae = _0x54e6e1[_0x7d6bc2];
58 _0x3859ae['enumerable'] = _0x3859ae[a0_0xeeba('0x35f')] || !0x1, _0x3859ae[a0_0xeeba('0x30d')] = !0x0, a0_0xeeba('0x285') in _0x3859ae && (_0x3859ae[a0_0xeeba('0x2ef')] = !0x0), Object[a0_0xeeba('0x38c')](_0x58fbf4, _0x3859ae['key'], _0x3859ae);
59 }
60 }
61 _0x12f64a['r'](_0x18930c);
62 var _0x3f8845 = function() {
63 function _0x3e8cb7() {
64 ! function(_0x25780f, _0x4a74d7) {
65 if (!(_0x25780f instanceof _0x4a74d7)) throw new TypeError(a0_0xeeba('0x8c'));
66 }(this, _0x3e8cb7);
67 }
68 var _0x5b27c0, _0x586451, _0x133ece;
69 return _0x5b27c0 = _0x3e8cb7, _0x133ece = [{
70 'key': 'Auth',
71 'value': function(_0x2a0deb, _0x518bd9, _0xff2c1e) {
72 $[a0_0xeeba('0x3f2')]({
73 'method': 'POST',
74 'jsonpCallback': _0xff2c1e,
75 'url': _0x27e24c['domain'] + 'api',
76 'dataType': a0_0xeeba('0x36d'),
77 'data': $[a0_0xeeba('0x63')]({
78 'action': _0x2a0deb
79 }, _0x518bd9),
80 'success': function(_0x33f149) {
81 _0xff2c1e(_0x33f149);
82 }
83 });
84 }
85 }, {
86 'key': a0_0xeeba('0xcb'),
87 'value': function(_0x5bf6ca) {
88 $[a0_0xeeba('0x3f2')]({
89 'method': a0_0xeeba('0x320'),
90 'url': _0x27e24c[a0_0xeeba('0x14f')] + a0_0xeeba('0xbf'),
91 'dataType': a0_0xeeba('0x36d'),
92 'success': function(_0x5b4b5b) {
93 _0x5bf6ca(_0x5b4b5b);
94 }
95 });
96 }
97 }, {
98 'key': a0_0xeeba('0x36'),
99 'value': function(_0x180476, _0x2511f3) {
100 return function(_0xdbdb41) {
101 _0x2511f3 = void 0x0 !== _0x2511f3;
102 var _0x5975f9 = _0xdbdb41[a0_0xeeba('0x36d')];
103 return _0x5975f9[a0_0xeeba('0x22e')] ? (window[a0_0xeeba('0x3c1')][a0_0xeeba('0x7e')] = _0x5975f9[a0_0xeeba('0x22e')], void delete _0x5975f9[a0_0xeeba('0x22e')]) : _0x5975f9[a0_0xeeba('0x25f')] ? MaintenanceWindowFactory[a0_0xeeba('0x2f3')](_0x5975f9[a0_0xeeba('0x25f')]) : (_0x5975f9[a0_0xeeba('0x2b4')] && NotificationLoader && (NotificationLoader[a0_0xeeba('0xd5')](_0x5975f9, 'data'), delete _0x5975f9[a0_0xeeba('0x2b4')], delete _0x5975f9[a0_0xeeba('0x2dc')]), _0x180476(_0x2511f3 ? _0xdbdb41 : _0x5975f9));
104 };
105 }
106 }, {
107 'key': a0_0xeeba('0x7c'),
108 'value': function(_0x3fc4ed, _0xc0397f) {
109 var _0x142e02, _0x59802d, _0x272b5c = _0x3fc4ed;
110 _0x142e02 = window['location'][a0_0xeeba('0x14b')] + '//' + document['domain'] + a0_0xeeba('0x5f') + $[a0_0xeeba('0x2b7')]({
111 'town_id': _0x272b5c,
112 'action': 'get',
113 'h': Game[a0_0xeeba('0x343')]
114 }), _0x59802d = {
115 'json': JSON[a0_0xeeba('0x101')]({
116 'types': [{
117 'type': a0_0xeeba('0x153'),
118 'param': {
119 'x': 0x0,
120 'y': 0x0
121 }
122 }, {
123 'type': a0_0xeeba('0xfc')
124 }, {
125 'type': 'backbone'
126 }],
127 'town_id': _0x272b5c,
128 'nl_init': !0x1
129 })
130 }, $[a0_0xeeba('0x3f2')]({
131 'url': _0x142e02,
132 'data': _0x59802d,
133 'method': a0_0xeeba('0x105'),
134 'dataType': 'json',
135 'success': _0x3e8cb7['default_handler'](_0xc0397f)
136 });
137 }
138 }, {
139 'key': a0_0xeeba('0xcf'),
140 'value': function(_0xf5a839, _0x2a9d43) {
141 var _0x15d9d4;
142 _0x15d9d4 = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + '/game/index?' + $['param']({
143 'town_id': _0xf5a839,
144 'action': 'switch_town',
145 'h': Game['csrfToken']
146 }), $[a0_0xeeba('0x3f2')]({
147 'url': _0x15d9d4,
148 'method': a0_0xeeba('0x320'),
149 'dataType': 'json',
150 'success': _0x3e8cb7['default_handler'](_0x2a9d43)
151 });
152 }
153 }, {
154 'key': a0_0xeeba('0x3b7'),
155 'value': function(_0x1ceb08, _0x30b964, _0x565def, _0x2074c8, _0x5be64e) {
156 var _0x67e0ed, _0x14f863, _0x506ac0 = _0x1ceb08,
157 _0x1bf91a = _0x2074c8;
158 _0x67e0ed = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0x37f') + $[a0_0xeeba('0x2b7')]({
159 'town_id': _0x506ac0,
160 'action': a0_0xeeba('0x3b7'),
161 'h': Game[a0_0xeeba('0x343')]
162 }), _0x14f863 = {
163 'json': JSON['stringify']({
164 'target_id': _0x1bf91a,
165 'claim_type': _0x30b964,
166 'time': _0x565def,
167 'town_id': _0x506ac0,
168 'nl_init': !0x0
169 })
170 }, $['ajax']({
171 'url': _0x67e0ed,
172 'data': _0x14f863,
173 'method': 'POST',
174 'dataType': a0_0xeeba('0x36d'),
175 'success': _0x3e8cb7[a0_0xeeba('0x36')](_0x5be64e)
176 });
177 }
178 }, {
179 'key': a0_0xeeba('0x317'),
180 'value': function(_0x174613, _0x4c4801) {
181 var _0x2e53b5, _0x47c534, _0x204b82 = _0x174613;
182 _0x47c534 = {
183 'town_id': Game[a0_0xeeba('0x1ea')],
184 'action': 'get_farm_towns_for_town',
185 'h': Game[a0_0xeeba('0x343')],
186 'json': JSON[a0_0xeeba('0x101')]({
187 'island_x': ITowns[a0_0xeeba('0x3a5')][_0x204b82][a0_0xeeba('0x185')](),
188 'island_y': ITowns[a0_0xeeba('0x3a5')][_0x204b82][a0_0xeeba('0x32b')](),
189 'current_town_id': _0x204b82,
190 'booty_researched': !!ITowns[a0_0xeeba('0x3a5')][_0x204b82][a0_0xeeba('0x1ed')]()[a0_0xeeba('0xfe')][a0_0xeeba('0x82')] || '',
191 'diplomacy_researched': !!ITowns[a0_0xeeba('0x3a5')][_0x204b82][a0_0xeeba('0x1ed')]()[a0_0xeeba('0xfe')][a0_0xeeba('0x11d')] || '',
192 'itrade_office': ITowns[a0_0xeeba('0x3a5')][_0x204b82][a0_0xeeba('0x1ee')]()[a0_0xeeba('0xfe')]['trade_office'],
193 'town_id': Game[a0_0xeeba('0x1ea')],
194 'nl_init': !0x0
195 })
196 }, _0x2e53b5 = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0x312'), $['ajax']({
197 'url': _0x2e53b5,
198 'data': _0x47c534,
199 'method': a0_0xeeba('0x320'),
200 'dataType': a0_0xeeba('0x36d'),
201 'success': _0x3e8cb7[a0_0xeeba('0x36')](_0x4c4801)
202 });
203 }
204 }, {
205 'key': 'claim_loads',
206 'value': function(_0x332f96, _0x36b554, _0x3068d9, _0x3bac98, _0x30ca88) {
207 var _0x16ee05, _0x89bdc6 = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0x2') + $[a0_0xeeba('0x2b7')]({
208 'town_id': Game[a0_0xeeba('0x1ea')],
209 'action': a0_0xeeba('0x17d'),
210 'h': Game[a0_0xeeba('0x343')]
211 });
212 _0x16ee05 = {
213 'json': JSON[a0_0xeeba('0x101')]({
214 'farm_town_ids': _0x36b554,
215 'time_option': _0x3bac98,
216 'claim_factor': _0x3068d9,
217 'current_town_id': _0x332f96,
218 'town_id': Game[a0_0xeeba('0x1ea')],
219 'nl_init': !0x0
220 })
221 }, $[a0_0xeeba('0x3f2')]({
222 'url': _0x89bdc6,
223 'data': _0x16ee05,
224 'method': a0_0xeeba('0x105'),
225 'dataType': a0_0xeeba('0x36d'),
226 'success': _0x3e8cb7[a0_0xeeba('0x36')](_0x30ca88)
227 });
228 }
229 }, {
230 'key': a0_0xeeba('0x18a'),
231 'value': function(_0x3bf629, _0x361634) {
232 var _0x5efde9, _0x39dc87, _0x2105a3 = _0x3bf629;
233 _0x39dc87 = {
234 'town_id': _0x2105a3,
235 'action': a0_0xeeba('0x372'),
236 'h': Game[a0_0xeeba('0x343')],
237 'json': JSON['stringify']({
238 'town_id': _0x2105a3,
239 'nl_init': !0x0
240 })
241 }, _0x5efde9 = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0xda'), $['ajax']({
242 'url': _0x5efde9,
243 'data': _0x39dc87,
244 'method': a0_0xeeba('0x320'),
245 'dataType': a0_0xeeba('0x36d'),
246 'success': _0x3e8cb7[a0_0xeeba('0x36')](_0x361634, !0x0)
247 });
248 }
249 }, {
250 'key': 'building_main',
251 'value': function(_0x197517, _0x259a7e) {
252 var _0x159219, _0x2da205, _0xedacd0 = _0x197517;
253 _0x2da205 = {
254 'town_id': _0xedacd0,
255 'action': a0_0xeeba('0x104'),
256 'h': Game[a0_0xeeba('0x343')],
257 'json': JSON[a0_0xeeba('0x101')]({
258 'town_id': _0xedacd0,
259 'nl_init': !0x0
260 })
261 }, _0x159219 = window['location'][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0x3b2'), $[a0_0xeeba('0x3f2')]({
262 'url': _0x159219,
263 'data': _0x2da205,
264 'method': 'GET',
265 'dataType': 'json',
266 'success': _0x3e8cb7[a0_0xeeba('0x36')](_0x259a7e)
267 });
268 }
269 }, {
270 'key': a0_0xeeba('0x2af'),
271 'value': function(_0x3e4978, _0x33d259, _0x15e42a) {
272 var _0x361bfb, _0x202a17 = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0xb9') + $[a0_0xeeba('0x2b7')]({
273 'town_id': _0x3e4978,
274 'action': a0_0xeeba('0x2af'),
275 'h': Game[a0_0xeeba('0x343')]
276 });
277 _0x361bfb = {
278 'json': JSON[a0_0xeeba('0x101')]({
279 'celebration_type': _0x33d259,
280 'town_id': _0x3e4978,
281 'nl_init': !0x0
282 })
283 }, $[a0_0xeeba('0x3f2')]({
284 'url': _0x202a17,
285 'data': _0x361bfb,
286 'method': a0_0xeeba('0x105'),
287 'dataType': a0_0xeeba('0x36d'),
288 'success': _0x3e8cb7[a0_0xeeba('0x36')](_0x15e42a, !0x0)
289 });
290 }
291 }, {
292 'key': a0_0xeeba('0x27f'),
293 'value': function(_0x32255d) {
294 var _0x5f5a4b = {
295 'town_id': Game['townId'],
296 'action': a0_0xeeba('0x27f'),
297 'h': Game[a0_0xeeba('0x343')],
298 'json': JSON['stringify']({
299 'town_id': Game[a0_0xeeba('0x1ea')],
300 'nl_init': !0x0
301 })
302 },
303 _0x560fe6 = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document['domain'] + a0_0xeeba('0x19d');
304 $[a0_0xeeba('0x3f2')]({
305 'url': _0x560fe6,
306 'data': _0x5f5a4b,
307 'method': a0_0xeeba('0x320'),
308 'dataType': a0_0xeeba('0x36d'),
309 'success': _0x3e8cb7['default_handler'](_0x32255d, !0x0)
310 });
311 }
312 }, {
313 'key': a0_0xeeba('0x47'),
314 'value': function(_0x3a638a) {
315 var _0x3fadc4 = {
316 'town_id': Game[a0_0xeeba('0x1ea')],
317 'action': 'members_show',
318 'h': Game[a0_0xeeba('0x343')],
319 'json': JSON[a0_0xeeba('0x101')]({
320 'town_id': Game[a0_0xeeba('0x1ea')],
321 'nl_init': !0x0
322 })
323 },
324 _0x3dda6f = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0x209');
325 $[a0_0xeeba('0x3f2')]({
326 'url': _0x3dda6f,
327 'data': _0x3fadc4,
328 'method': a0_0xeeba('0x320'),
329 'dataType': a0_0xeeba('0x36d'),
330 'success': _0x3e8cb7[a0_0xeeba('0x36')](_0x3a638a)
331 });
332 }
333 }, {
334 'key': a0_0xeeba('0x318'),
335 'value': function(_0x12d54e) {
336 $['redirect'](window['location']['protocol'] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0x15d') + $[a0_0xeeba('0x2b7')]({
337 'action': 'login_to_game_world'
338 }), {
339 'world': _0x12d54e,
340 'facebook_session': '',
341 'facebook_login': '',
342 'portal_sid': '',
343 'name': '',
344 'password': ''
345 });
346 }
347 }, {
348 'key': a0_0xeeba('0x1ef'),
349 'value': function(_0x4d86dd, _0x1c9df3, _0x1ade5a) {
350 var _0xc3190c = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0x14c') + $[a0_0xeeba('0x2b7')]({
351 'town_id': _0x4d86dd,
352 'action': a0_0xeeba('0x39d'),
353 'h': Game['csrfToken']
354 }),
355 _0x108fa4 = {
356 'json': JSON[a0_0xeeba('0x101')](_0x1c9df3)
357 };
358 $['ajax']({
359 'url': _0xc3190c,
360 'data': _0x108fa4,
361 'method': a0_0xeeba('0x105'),
362 'dataType': a0_0xeeba('0x36d'),
363 'success': _0x3e8cb7['default_handler'](_0x1ade5a)
364 });
365 }
366 }, {
367 'key': a0_0xeeba('0x2a0'),
368 'value': function(_0x3ce4f5, _0x26b1ae, _0x256310) {
369 var _0x2844d7 = window['location']['protocol'] + '//' + document['domain'] + a0_0xeeba('0x3ab') + $[a0_0xeeba('0x2b7')]({
370 'town_id': _0x3ce4f5,
371 'action': a0_0xeeba('0x27e'),
372 'h': Game[a0_0xeeba('0x343')]
373 }),
374 _0x46d24d = {
375 'json': JSON[a0_0xeeba('0x101')](_0x26b1ae)
376 };
377 $['ajax']({
378 'url': _0x2844d7,
379 'data': _0x46d24d,
380 'method': a0_0xeeba('0x105'),
381 'dataType': a0_0xeeba('0x36d'),
382 'success': _0x3e8cb7[a0_0xeeba('0x36')](_0x256310)
383 });
384 }
385 }, {
386 'key': a0_0xeeba('0x1a9'),
387 'value': function(_0x1b6640, _0x2636e1) {
388 var _0x2d5e6d, _0x162511, _0xbe24ff = _0x1b6640;
389 _0x162511 = {
390 'town_id': _0xbe24ff,
391 'action': a0_0xeeba('0x39f'),
392 'h': Game[a0_0xeeba('0x343')],
393 'json': JSON[a0_0xeeba('0x101')]({
394 'town_id': _0xbe24ff,
395 'nl_init': !0x0
396 })
397 }, _0x2d5e6d = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + '/game/attack_planer', $[a0_0xeeba('0x3f2')]({
398 'url': _0x2d5e6d,
399 'data': _0x162511,
400 'method': 'GET',
401 'dataType': a0_0xeeba('0x36d'),
402 'success': _0x3e8cb7['default_handler'](_0x2636e1)
403 });
404 }
405 }, {
406 'key': a0_0xeeba('0x2fb'),
407 'value': function(_0x13da53, _0xdc689a, _0x41f34e) {
408 var _0x27dd4c, _0x5ef98e;
409 _0x5ef98e = {
410 'town_id': _0x13da53,
411 'action': 'attack',
412 'h': Game[a0_0xeeba('0x343')],
413 'json': JSON[a0_0xeeba('0x101')]({
414 'id': _0xdc689a[a0_0xeeba('0x200')],
415 'nl_init': !0x0,
416 'origin_town_id': _0xdc689a[a0_0xeeba('0x64')],
417 'preselect': !0x0,
418 'preselect_units': _0xdc689a[a0_0xeeba('0x2b8')],
419 'town_id': Game[a0_0xeeba('0x1ea')]
420 })
421 }, _0x27dd4c = window[a0_0xeeba('0x3c1')][a0_0xeeba('0x14b')] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0x2cf'), $[a0_0xeeba('0x3f2')]({
422 'url': _0x27dd4c,
423 'data': _0x5ef98e,
424 'method': a0_0xeeba('0x320'),
425 'dataType': a0_0xeeba('0x36d'),
426 'success': _0x3e8cb7[a0_0xeeba('0x36')](_0x41f34e)
427 });
428 }
429 }, {
430 'key': a0_0xeeba('0x69'),
431 'value': function(_0x7cce3f, _0xbf964d, _0x1afb43, _0xd7d5cf, _0x4fefef) {
432 var _0x3454c4 = window[a0_0xeeba('0x3c1')]['protocol'] + '//' + document[a0_0xeeba('0x14f')] + a0_0xeeba('0xe6') + $[a0_0xeeba('0x2b7')]({
433 'town_id': _0x7cce3f,
434 'action': a0_0xeeba('0x69'),
435 'h': Game[a0_0xeeba('0x343')]
436 }),
437 _0x20e746 = {
438 'json': JSON[a0_0xeeba('0x101')]($[a0_0xeeba('0x63')]({
439 'id': _0x1afb43,
440 'type': _0xbf964d,
441 'town_id': _0x7cce3f,
442 'nl_init': !0x0
443 }, _0xd7d5cf))
444 };
445 $[a0_0xeeba('0x3f2')]({
446 'url': _0x3454c4,
447 'data': _0x20e746,
448 'method': 'POST',
449 'dataType': a0_0xeeba('0x36d'),
450 'success': _0x3e8cb7['default_handler'](_0x4fefef)
451 });
452 }
453 }], (_0x586451 = null) && _0xac71dc(_0x5b27c0[a0_0xeeba('0x166')], _0x586451), _0x133ece && _0xac71dc(_0x5b27c0, _0x133ece), _0x3e8cb7;
454 }();
455
456 function _0xbe9d0e(_0x3a4f1c, _0x4b110a) {
457 for (var _0x1e906f = 0x0; _0x1e906f < _0x4b110a['length']; _0x1e906f++) {
458 var _0x1b25f0 = _0x4b110a[_0x1e906f];
459 _0x1b25f0[a0_0xeeba('0x35f')] = _0x1b25f0[a0_0xeeba('0x35f')] || !0x1, _0x1b25f0[a0_0xeeba('0x30d')] = !0x0, a0_0xeeba('0x285') in _0x1b25f0 && (_0x1b25f0[a0_0xeeba('0x2ef')] = !0x0), Object[a0_0xeeba('0x38c')](_0x3a4f1c, _0x1b25f0['key'], _0x1b25f0);
460 }
461 }
462 var _0x4773eb = function() {
463 function _0x5694c3() {
464 ! function(_0x3534ba, _0xdf77e7) {
465 if (!(_0x3534ba instanceof _0xdf77e7)) throw new TypeError(a0_0xeeba('0x8c'));
466 }(this, _0x5694c3);
467 }
468 var _0x15f301, _0x397400, _0x21fcd9;
469 return _0x15f301 = _0x5694c3, _0x21fcd9 = [{
470 'key': a0_0xeeba('0xa3'),
471 'value': function() {
472 var _0x447717 = $('<fieldset/>', {
473 'style': a0_0xeeba('0x146')
474 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x3cf'))[a0_0xeeba('0x1b7')](a0_0xeeba('0x1ca')))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
475 'class': a0_0xeeba('0x29c')
476 })['append']($(a0_0xeeba('0x137'), {
477 'class': a0_0xeeba('0x3ef')
478 }))[a0_0xeeba('0xe8')](function() {
479 _0x5694c3[a0_0xeeba('0x3c3')]();
480 })),
481 _0x42faf7 = _0x447717['find'](a0_0xeeba('0x379'));
482 return $[a0_0xeeba('0x1f')](_0x5694c3['Logs'], function(_0x36c3f7, _0x4f6936) {
483 _0x42faf7[a0_0xeeba('0x342')](_0x4f6936);
484 }), _0x447717;
485 }
486 }, {
487 'key': a0_0xeeba('0x7b'),
488 'value': function(_0x3d3222, _0x4c685a) {
489 function _0x3cf74b(_0x2e4a14) {
490 return _0x2e4a14 < 0xa ? '0' + _0x2e4a14 : _0x2e4a14;
491 }
492 this[a0_0xeeba('0x56')][a0_0xeeba('0x26d')] >= 0x1f4 && this[a0_0xeeba('0x56')][a0_0xeeba('0x1ad')]();
493 var _0x2273ae = new Date(),
494 _0x456225 = _0x3cf74b(_0x2273ae[a0_0xeeba('0x3db')]()) + ':' + _0x3cf74b(_0x2273ae['getMinutes']()) + ':' + _0x3cf74b(_0x2273ae['getSeconds']()),
495 _0x2a35cc = $(a0_0xeeba('0x137'))['append']($(a0_0xeeba('0x137'), {
496 'style': 'width:\x20100%;'
497 })[a0_0xeeba('0x1b7')](_0x456225 + a0_0xeeba('0x37') + _0x5694c3[a0_0xeeba('0x323')][_0x4c685a] + a0_0xeeba('0x3f0') + _0x3d3222));
498 this[a0_0xeeba('0x56')][a0_0xeeba('0x172')](_0x2a35cc);
499 var _0x1636ef = $(a0_0xeeba('0x379'));
500 if (_0x1636ef[a0_0xeeba('0x26d')] && (_0x1636ef[a0_0xeeba('0x342')](_0x2a35cc), this[a0_0xeeba('0x389')])) {
501 var _0x330451 = $('.terminal'),
502 _0x1a1acb = $('.terminal-output')[0x0]['scrollHeight'];
503 _0x330451[a0_0xeeba('0x2a2')](_0x1a1acb);
504 }
505 }
506 }, {
507 'key': a0_0xeeba('0x3c3'),
508 'value': function() {
509 clearInterval(this[a0_0xeeba('0x295')]);
510 var _0x3d9768 = $(a0_0xeeba('0x3a6')),
511 _0x1f1a3b = $('.terminal-output');
512 this[a0_0xeeba('0x389')] = _0x3d9768[a0_0xeeba('0x2a2')]() + _0x3d9768[a0_0xeeba('0x1c1')]() === _0x1f1a3b[a0_0xeeba('0x1c1')]();
513 var _0x2ab26f = _0x1f1a3b[0x0][a0_0xeeba('0xf2')];
514 this[a0_0xeeba('0x295')] = setInterval(function() {
515 _0x3d9768[a0_0xeeba('0x2a2')](_0x2ab26f);
516 }, 0x1b58);
517 }
518 }], (_0x397400 = null) && _0xbe9d0e(_0x15f301[a0_0xeeba('0x166')], _0x397400), _0x21fcd9 && _0xbe9d0e(_0x15f301, _0x21fcd9), _0x5694c3;
519 }();
520 Object[a0_0xeeba('0x38c')](_0x4773eb, 'Logs', {
521 'enumerable': !0x0,
522 'writable': !0x0,
523 'value': []
524 }), Object[a0_0xeeba('0x38c')](_0x4773eb, a0_0xeeba('0x323'), {
525 'enumerable': !0x0,
526 'writable': !0x0,
527 'value': [a0_0xeeba('0x35d'), a0_0xeeba('0x3c2'), a0_0xeeba('0x18f'), a0_0xeeba('0x95'), a0_0xeeba('0x1d1')]
528 }), Object[a0_0xeeba('0x38c')](_0x4773eb, 'scrollInterval', {
529 'enumerable': !0x0,
530 'writable': !0x0,
531 'value': ''
532 }), Object[a0_0xeeba('0x38c')](_0x4773eb, a0_0xeeba('0x389'), {
533 'enumerable': !0x0,
534 'writable': !0x0,
535 'value': !0x0
536 });
537 var _0x217695 = _0x4773eb;
538
539 function _0x463f60(_0x43bbf6, _0x202d4e) {
540 for (var _0x2dbea3 = 0x0; _0x2dbea3 < _0x202d4e[a0_0xeeba('0x26d')]; _0x2dbea3++) {
541 var _0x71c64 = _0x202d4e[_0x2dbea3];
542 _0x71c64[a0_0xeeba('0x35f')] = _0x71c64[a0_0xeeba('0x35f')] || !0x1, _0x71c64[a0_0xeeba('0x30d')] = !0x0, a0_0xeeba('0x285') in _0x71c64 && (_0x71c64['writable'] = !0x0), Object[a0_0xeeba('0x38c')](_0x43bbf6, _0x71c64[a0_0xeeba('0x2d4')], _0x71c64);
543 }
544 }
545 var _0x15022e = function() {
546 function _0xefe6() {
547 ! function(_0x1ab8c9, _0x41e5be) {
548 if (!(_0x1ab8c9 instanceof _0x41e5be)) throw new TypeError(a0_0xeeba('0x8c'));
549 }(this, _0xefe6);
550 }
551 var _0x51914d, _0x21d5de, _0x3c4862;
552 return _0x51914d = _0xefe6, _0x3c4862 = [{
553 'key': a0_0xeeba('0x33f'),
554 'value': function(_0x114ee5) {
555 return $(a0_0xeeba('0x137'))[a0_0xeeba('0x342')]($(a0_0xeeba('0x1a4'), {
556 'class': a0_0xeeba('0xd3') + (_0x114ee5[a0_0xeeba('0x17f')] || ''),
557 'href': '#',
558 'style': a0_0xeeba('0x59') + (_0x114ee5[a0_0xeeba('0x37b')] || '')
559 })[a0_0xeeba('0x342')]($('<span/>', {
560 'class': a0_0xeeba('0x29a')
561 }))['append']($(a0_0xeeba('0xb4'), {
562 'class': a0_0xeeba('0xdd')
563 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
564 'class': a0_0xeeba('0x38f')
565 })[a0_0xeeba('0x1d0')](_0x114ee5[a0_0xeeba('0x16d')])));
566 }
567 }, {
568 'key': a0_0xeeba('0x18e'),
569 'value': function(_0x2a74b3, _0x451a4a, _0x54a7e3) {
570 return $('<div/>', {
571 'class': a0_0xeeba('0x383') + (_0x2a74b3[a0_0xeeba('0x255')] ? a0_0xeeba('0x2e1') : '') + (_0x2a74b3[a0_0xeeba('0x32a')] ? '\x20disabled' : ''),
572 'style': a0_0xeeba('0x5b') + (_0x2a74b3['style'] || '')
573 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x110'), {
574 'type': a0_0xeeba('0x18e'),
575 'name': _0x2a74b3[a0_0xeeba('0x16d')],
576 'id': _0x2a74b3['id'],
577 'checked': _0x2a74b3[a0_0xeeba('0x255')],
578 'style': a0_0xeeba('0x296')
579 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
580 'class': a0_0xeeba('0x398'),
581 'rel': _0x2a74b3[a0_0xeeba('0x16d')]
582 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
583 'class': 'cbx_caption'
584 })['text'](_0x2a74b3['text']))['bind'](a0_0xeeba('0xf0'), function() {
585 $(this)['toggleClass']('checked'), $(this)[a0_0xeeba('0x2f6')]($(a0_0xeeba('0x6a')))[a0_0xeeba('0x98')](a0_0xeeba('0x255'), $(this)[a0_0xeeba('0x1d7')](a0_0xeeba('0x255'))), $(this)[a0_0xeeba('0x1d7')]('checked') ? void 0x0 !== _0x451a4a && _0x451a4a() : void 0x0 !== _0x54a7e3 && _0x54a7e3();
586 });
587 }
588 }, {
589 'key': a0_0xeeba('0xb8'),
590 'value': function(_0x339eab) {
591 return $(a0_0xeeba('0x137'), {
592 'style': a0_0xeeba('0x5b')
593 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x221'), {
594 'for': _0x339eab['id']
595 })[a0_0xeeba('0x1d0')](_0x339eab[a0_0xeeba('0x16d')] + ':\x20'))['append']($(a0_0xeeba('0x137'), {
596 'class': a0_0xeeba('0x55'),
597 'style': _0x339eab[a0_0xeeba('0x37b')]
598 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
599 'class': a0_0xeeba('0x29a')
600 }))[a0_0xeeba('0x342')]($('<div/>', {
601 'class': a0_0xeeba('0xdd')
602 }))['append']($(a0_0xeeba('0x137'), {
603 'class': a0_0xeeba('0xc4')
604 })['append']($(a0_0xeeba('0x137'), {
605 'class': 'ie7fix'
606 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x110'), {
607 'type': _0x339eab[a0_0xeeba('0x1f0')],
608 'tabindex': '1',
609 'id': _0x339eab['id'],
610 'name': _0x339eab['id'],
611 'value': _0x339eab[a0_0xeeba('0x285')]
612 })[a0_0xeeba('0x179')]('size', _0x339eab['size'])))));
613 }
614 }, {
615 'key': 'textarea',
616 'value': function(_0x685402) {
617 return $(a0_0xeeba('0x137'), {
618 'style': a0_0xeeba('0x5b')
619 })['append']($(a0_0xeeba('0x221'), {
620 'for': _0x685402['id']
621 })['text'](_0x685402['name'] + ':\x20'))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'))[a0_0xeeba('0x342')]($(a0_0xeeba('0xf6'), {
622 'name': _0x685402['id'],
623 'id': _0x685402['id']
624 })));
625 }
626 }, {
627 'key': a0_0xeeba('0x399'),
628 'value': function(_0x3d6ba2) {
629 return $('<div/>', {
630 'class': a0_0xeeba('0x55')
631 })[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
632 'class': 'grcrt_spinner_btn\x20grcrt_spinner_down',
633 'rel': _0x3d6ba2[a0_0xeeba('0x16d')]
634 })[a0_0xeeba('0xf0')](function() {
635 var _0x529fc7 = $(this)['parent']()[a0_0xeeba('0x2f6')]('#' + $(this)[a0_0xeeba('0x179')](a0_0xeeba('0x378')));
636 parseInt($(_0x529fc7)[a0_0xeeba('0x179')]('min')) < parseInt($(_0x529fc7)[a0_0xeeba('0x179')]('value')) && $(_0x529fc7)[a0_0xeeba('0x179')](a0_0xeeba('0x285'), parseInt($(_0x529fc7)[a0_0xeeba('0x179')](a0_0xeeba('0x285'))) - 0x1);
637 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
638 'class': a0_0xeeba('0x55'),
639 'style': _0x3d6ba2[a0_0xeeba('0x37b')]
640 })[a0_0xeeba('0x342')]($('<div/>', {
641 'class': a0_0xeeba('0x29a')
642 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
643 'class': a0_0xeeba('0xdd')
644 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
645 'class': a0_0xeeba('0xc4')
646 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
647 'class': 'ie7fix'
648 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x110'), {
649 'type': 'text',
650 'tabindex': '1',
651 'id': _0x3d6ba2[a0_0xeeba('0x16d')],
652 'value': _0x3d6ba2[a0_0xeeba('0x285')],
653 'min': _0x3d6ba2[a0_0xeeba('0x21e')],
654 'max': _0x3d6ba2[a0_0xeeba('0x9a')]
655 })[a0_0xeeba('0x179')](a0_0xeeba('0x25b'), _0x3d6ba2[a0_0xeeba('0x25b')] || 0xa)[a0_0xeeba('0x90')](a0_0xeeba('0x12d'), a0_0xeeba('0xdd'))))))[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
656 'class': 'grcrt_spinner_btn\x20grcrt_spinner_up',
657 'rel': _0x3d6ba2['name']
658 })[a0_0xeeba('0xf0')](function() {
659 var _0x41a99f = $(this)[a0_0xeeba('0x2e5')]()[a0_0xeeba('0x2f6')]('#' + $(this)[a0_0xeeba('0x179')](a0_0xeeba('0x378')));
660 parseInt($(_0x41a99f)[a0_0xeeba('0x179')]('max')) > parseInt($(_0x41a99f)[a0_0xeeba('0x179')]('value')) && $(_0x41a99f)['attr']('value', parseInt($(_0x41a99f)['attr'](a0_0xeeba('0x285'))) + 0x1);
661 }));
662 }
663 }, {
664 'key': a0_0xeeba('0x244'),
665 'value': function(_0x917540) {
666 return $(a0_0xeeba('0x137'), {
667 'id': a0_0xeeba('0x251') + _0x917540[a0_0xeeba('0x16d')] + a0_0xeeba('0x138')
668 })[a0_0xeeba('0x342')]($('<div/>', {
669 'class': a0_0xeeba('0x1ce')
670 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
671 'style': a0_0xeeba('0x22')
672 })[a0_0xeeba('0x1b7')](_0x917540[a0_0xeeba('0x16d')]))['append'](_0xefe6['input']({
673 'name': a0_0xeeba('0x251') + _0x917540[a0_0xeeba('0x16d')] + a0_0xeeba('0x288'),
674 'style': a0_0xeeba('0x3d3')
675 })[a0_0xeeba('0x129')]())[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
676 'class': a0_0xeeba('0x1c'),
677 'style': a0_0xeeba('0x364')
678 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
679 'class': a0_0xeeba('0x88')
680 }))))['append']($(a0_0xeeba('0x2ce'), {
681 'type': 'text/javascript'
682 })[a0_0xeeba('0x1d0')](a0_0xeeba('0x351') + _0x917540['name'] + a0_0xeeba('0x191') + _0x917540[a0_0xeeba('0x356')] + a0_0xeeba('0x37d') + _0x917540[a0_0xeeba('0x16d')] + a0_0xeeba('0x3b6') + _0x917540['name'] + a0_0xeeba('0x73') + _0x917540[a0_0xeeba('0x16d')] + '_config\x20.button_up\x27).css(\x27background-position\x27,\x27-126px\x200px;\x27)\x0a'));
683 }
684 }, {
685 'key': a0_0xeeba('0x291'),
686 'value': function(_0x1ed452) {
687 return $('<div/>', {
688 'style': a0_0xeeba('0x78')
689 })['append']($(a0_0xeeba('0x110'), {
690 'type': a0_0xeeba('0xe3'),
691 'name': _0x1ed452[a0_0xeeba('0x16d')],
692 'id': _0x1ed452['id'],
693 'value': _0x1ed452[a0_0xeeba('0x285')]
694 }))[a0_0xeeba('0x342')]($('<label/>', {
695 'for': _0x1ed452['id']
696 })[a0_0xeeba('0x1d0')](_0x1ed452['label']))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
697 'id': _0x1ed452['id'],
698 'class': 'dropdown\x20default',
699 'style': _0x1ed452[a0_0xeeba('0x2ea')]
700 })[a0_0xeeba('0x30a')]({
701 'list_pos': 'left',
702 'value': _0x1ed452[a0_0xeeba('0x285')],
703 'disabled': _0x1ed452[a0_0xeeba('0x32a')] || !0x1,
704 'options': _0x1ed452[a0_0xeeba('0x173')]
705 })['on'](a0_0xeeba('0x17b'), function(_0x297a53, _0x5d9ec0) {
706 $('#' + _0x1ed452['id'])[a0_0xeeba('0x179')](a0_0xeeba('0x285'), _0x5d9ec0);
707 }));
708 }
709 }, {
710 'key': a0_0xeeba('0x273'),
711 'value': function(_0x2f6ea7) {
712 return $(a0_0xeeba('0x137'), {
713 'class': a0_0xeeba('0x363'),
714 'id': _0x2f6ea7['id'],
715 'style': _0x2f6ea7[a0_0xeeba('0x2ea')]
716 })[a0_0xeeba('0x342')]($('<div/>', {
717 'class': 'border_l'
718 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
719 'class': a0_0xeeba('0x96')
720 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
721 'class': a0_0xeeba('0xf3')
722 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
723 'class': 'progress'
724 })[a0_0xeeba('0x342')]($('<div/>', {
725 'class': a0_0xeeba('0xdf'),
726 'style': a0_0xeeba('0xe0')
727 })))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
728 'class': 'caption'
729 })['append']($(a0_0xeeba('0xb4'), {
730 'class': a0_0xeeba('0x1d0')
731 }))[a0_0xeeba('0x342')]($('<span/>', {
732 'class': a0_0xeeba('0x1fe')
733 })[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
734 'class': a0_0xeeba('0x253')
735 })['html']('0%'))));
736 }
737 }, {
738 'key': a0_0xeeba('0xc6'),
739 'value': function(_0x15cb68) {
740 return $(a0_0xeeba('0x137'), {
741 'class': a0_0xeeba('0x363'),
742 'id': _0x15cb68['id'],
743 'style': _0x15cb68['styles']
744 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
745 'class': 'progress'
746 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
747 'class': a0_0xeeba('0xdf'),
748 'style': a0_0xeeba('0xe0')
749 })))[a0_0xeeba('0x342')]($('<div/>', {
750 'class': 'caption'
751 })[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
752 'class': a0_0xeeba('0x1d0')
753 }))[a0_0xeeba('0x342')]($('<span/>', {
754 'class': a0_0xeeba('0x1fe')
755 })[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
756 'class': 'curr'
757 })[a0_0xeeba('0x1b7')](_0x15cb68[a0_0xeeba('0x1d0')] ? _0x15cb68[a0_0xeeba('0x1d0')] : '-'))));
758 }
759 }, {
760 'key': a0_0xeeba('0x1d3'),
761 'value': function(_0x1871e1, _0x4ec5d4, _0x238a15, _0x39398b) {
762 var _0x22028a = arguments[a0_0xeeba('0x26d')] > 0x4 && void 0x0 !== arguments[0x4] && arguments[0x4];
763 return $('<div/>', {
764 'class': a0_0xeeba('0x170') + (_0x22028a ? a0_0xeeba('0x4') : ''),
765 'style': _0x39398b,
766 'id': _0x4ec5d4
767 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
768 'class': a0_0xeeba('0x6f')
769 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
770 'class': 'game_border_top'
771 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
772 'class': a0_0xeeba('0x103')
773 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
774 'class': 'game_border_left'
775 }))['append']($(a0_0xeeba('0x137'), {
776 'class': 'game_border_right'
777 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
778 'class': 'game_border_top'
779 }))[a0_0xeeba('0x342')]($('<div/>', {
780 'class': a0_0xeeba('0x190')
781 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
782 'class': 'game_border_corner\x20corner2'
783 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
784 'class': a0_0xeeba('0x4a')
785 }))[a0_0xeeba('0x342')]($('<div/>', {
786 'class': a0_0xeeba('0x3bc')
787 }))['append']($(a0_0xeeba('0x137'), {
788 'class': 'game_header\x20bold',
789 'id': a0_0xeeba('0x13e')
790 })[a0_0xeeba('0x1b7')](_0x1871e1))['append']($(a0_0xeeba('0x137'))[a0_0xeeba('0x342')](_0x238a15)));
791 }
792 }], (_0x21d5de = null) && _0x463f60(_0x51914d[a0_0xeeba('0x166')], _0x21d5de), _0x3c4862 && _0x463f60(_0x51914d, _0x3c4862), _0xefe6;
793 }();
794
795 function _0x413bcd(_0x1c54ef, _0x12ce17) {
796 for (var _0x158c95 = 0x0; _0x158c95 < _0x12ce17[a0_0xeeba('0x26d')]; _0x158c95++) {
797 var _0x5242b5 = _0x12ce17[_0x158c95];
798 _0x5242b5['enumerable'] = _0x5242b5[a0_0xeeba('0x35f')] || !0x1, _0x5242b5[a0_0xeeba('0x30d')] = !0x0, 'value' in _0x5242b5 && (_0x5242b5[a0_0xeeba('0x2ef')] = !0x0), Object['defineProperty'](_0x1c54ef, _0x5242b5[a0_0xeeba('0x2d4')], _0x5242b5);
799 }
800 }
801 var _0x774627 = function() {
802 function _0xb17c3a() {
803 ! function(_0x3014cd, _0x2bcf7d) {
804 if (!(_0x3014cd instanceof _0x2bcf7d)) throw new TypeError(a0_0xeeba('0x8c'));
805 }(this, _0xb17c3a);
806 }
807 var _0x17fdbd, _0x43e30b, _0x12572d;
808 return _0x17fdbd = _0xb17c3a, _0x12572d = [{
809 'key': a0_0xeeba('0x176'),
810 'value': function() {
811 _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x74'), 0x0);
812 }
813 }, {
814 'key': a0_0xeeba('0x1e2'),
815 'value': function(_0x1a8e50) {
816 '' !== _0x1a8e50 && null != _0x1a8e50 && $[a0_0xeeba('0x63')](_0xb17c3a[a0_0xeeba('0x6b')], _0x1a8e50), _0xb17c3a[a0_0xeeba('0x384')]();
817 }
818 }, {
819 'key': 'initSettings',
820 'value': function() {
821 _0xb17c3a[a0_0xeeba('0x6b')][a0_0xeeba('0x18b')] ? $('#map_towns\x20.flag')[a0_0xeeba('0xe4')]('active_town') : $(a0_0xeeba('0x121'))[a0_0xeeba('0x1b2')](a0_0xeeba('0x3b4')), _0xb17c3a[a0_0xeeba('0x6b')][a0_0xeeba('0x3e8')] ? $(a0_0xeeba('0x121'))[a0_0xeeba('0xe4')](a0_0xeeba('0x1cf')) : $('#map_towns\x20.flag')[a0_0xeeba('0x1b2')](a0_0xeeba('0x1cf')), _0xb17c3a['settings'][a0_0xeeba('0x3d9')] ? $(a0_0xeeba('0x121'))[a0_0xeeba('0xe4')](a0_0xeeba('0xc')) : $(a0_0xeeba('0x121'))[a0_0xeeba('0x1b2')](a0_0xeeba('0xc'));
822 }
823 }, {
824 'key': 'contentSettings',
825 'value': function() {
826 return $('<fieldset/>', {
827 'id': 'Assistant_settings',
828 'style': a0_0xeeba('0x119')
829 })[a0_0xeeba('0x342')]($('<legend/>')[a0_0xeeba('0x1b7')](a0_0xeeba('0x1')))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x18e')]({
830 'text': a0_0xeeba('0x214'),
831 'id': a0_0xeeba('0xb6'),
832 'name': a0_0xeeba('0xb6'),
833 'checked': _0xb17c3a['settings'][a0_0xeeba('0x18b')]
834 }))['append'](_0x15022e[a0_0xeeba('0x18e')]({
835 'text': 'Show\x20player\x20names\x20on\x20island\x20view.',
836 'id': a0_0xeeba('0x393'),
837 'name': a0_0xeeba('0x393'),
838 'checked': _0xb17c3a[a0_0xeeba('0x6b')]['player_name']
839 }))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x18e')]({
840 'text': 'Show\x20alliance\x20names\x20on\x20island\x20view.',
841 'id': a0_0xeeba('0xa6'),
842 'name': 'assistant_alliance_names',
843 'checked': _0xb17c3a[a0_0xeeba('0x6b')][a0_0xeeba('0x3d9')]
844 }))[a0_0xeeba('0x342')](_0x15022e['selectBox']({
845 'id': a0_0xeeba('0x4e'),
846 'name': a0_0xeeba('0x4e'),
847 'label': a0_0xeeba('0x5c'),
848 'styles': a0_0xeeba('0x334'),
849 'value': _0xb17c3a[a0_0xeeba('0x6b')][a0_0xeeba('0x1b1')],
850 'options': [{
851 'value': '0',
852 'name': a0_0xeeba('0x141')
853 }, {
854 'value': a0_0xeeba('0x15'),
855 'name': a0_0xeeba('0x2c')
856 }, {
857 'value': a0_0xeeba('0x2d1'),
858 'name': a0_0xeeba('0x34b')
859 }, {
860 'value': a0_0xeeba('0xd1'),
861 'name': a0_0xeeba('0x194')
862 }, {
863 'value': '900',
864 'name': 'After\x2015\x20minutes'
865 }]
866 }))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x33f')]({
867 'name': DM[a0_0xeeba('0x3ec')](a0_0xeeba('0x1d6'))[a0_0xeeba('0x26')],
868 'style': 'top:\x20120px;'
869 })['on'](a0_0xeeba('0xf0'), function() {
870 var _0x57c277 = $('#Assistant_settings')[a0_0xeeba('0x1c0')]();
871 _0xb17c3a[a0_0xeeba('0x6b')][a0_0xeeba('0x18b')] = void 0x0 !== _0x57c277[a0_0xeeba('0xb6')], _0xb17c3a[a0_0xeeba('0x6b')][a0_0xeeba('0x3e8')] = void 0x0 !== _0x57c277[a0_0xeeba('0x393')], _0xb17c3a[a0_0xeeba('0x6b')][a0_0xeeba('0x3d9')] = void 0x0 !== _0x57c277[a0_0xeeba('0xa6')], _0xb17c3a[a0_0xeeba('0x6b')][a0_0xeeba('0x1b1')] = parseInt(_0x57c277[a0_0xeeba('0x4e')]), _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0xd2'), {
872 'player_id': _0x27e24c['Account'][a0_0xeeba('0x268')],
873 'world_id': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x2a5')],
874 'csrfToken': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x343')],
875 'assistant_settings': _0x27e24c[a0_0xeeba('0x101')](_0xb17c3a[a0_0xeeba('0x6b')])
876 }, _0xb17c3a[a0_0xeeba('0x12')]);
877 }));
878 }
879 }, {
880 'key': a0_0xeeba('0x12'),
881 'value': function() {
882 HumanMessage[a0_0xeeba('0x81')](a0_0xeeba('0x2f')), _0xb17c3a['initSettings']();
883 }
884 }], (_0x43e30b = null) && _0x413bcd(_0x17fdbd['prototype'], _0x43e30b), _0x12572d && _0x413bcd(_0x17fdbd, _0x12572d), _0xb17c3a;
885 }();
886 Object['defineProperty'](_0x774627, a0_0xeeba('0x6b'), {
887 'enumerable': !0x0,
888 'writable': !0x0,
889 'value': {
890 'town_names': !0x1,
891 'player_name': !0x1,
892 'alliance_name': !0x0,
893 'auto_relogin': 0x0
894 }
895 });
896 var _0x597e98 = _0x774627;
897
898 function _0x30728f(_0x3e8e5a, _0x1c4481) {
899 for (var _0x2f3d84 = 0x0; _0x2f3d84 < _0x1c4481[a0_0xeeba('0x26d')]; _0x2f3d84++) {
900 var _0x24f8ee = _0x1c4481[_0x2f3d84];
901 _0x24f8ee['enumerable'] = _0x24f8ee[a0_0xeeba('0x35f')] || !0x1, _0x24f8ee[a0_0xeeba('0x30d')] = !0x0, a0_0xeeba('0x285') in _0x24f8ee && (_0x24f8ee[a0_0xeeba('0x2ef')] = !0x0), Object[a0_0xeeba('0x38c')](_0x3e8e5a, _0x24f8ee[a0_0xeeba('0x2d4')], _0x24f8ee);
902 }
903 }
904 var _0x251c31 = function() {
905 function _0x560ae1() {
906 ! function(_0x996984, _0x5f3ac1) {
907 if (!(_0x996984 instanceof _0x5f3ac1)) throw new TypeError('Cannot\x20call\x20a\x20class\x20as\x20a\x20function');
908 }(this, _0x560ae1);
909 }
910 var _0x332e66, _0x567079, _0x5361c7;
911 return _0x332e66 = _0x560ae1, _0x5361c7 = [{
912 'key': a0_0xeeba('0x176'),
913 'value': function() {
914 _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x175'), 0x4), _0x560ae1['initButton'](), _0x27e24c['checkPremium']('captain') && _0x560ae1['loadAttackQueue']();
915 }
916 }, {
917 'key': a0_0xeeba('0x1e2'),
918 'value': function(_0x534f4b) {
919 '' !== _0x534f4b && null != _0x534f4b && $[a0_0xeeba('0x63')](_0x560ae1[a0_0xeeba('0x6b')], JSON[a0_0xeeba('0x199')](_0x534f4b));
920 }
921 }, {
922 'key': 'initButton',
923 'value': function() {
924 _0x538336[a0_0xeeba('0x1d9')](a0_0xeeba('0x2bd'));
925 }
926 }, {
927 'key': a0_0xeeba('0x1df'),
928 'value': function() {
929 _0x560ae1[a0_0xeeba('0x3e6')] = [];
930 var _0x5bcb01 = $[a0_0xeeba('0x153')](_0x560ae1[a0_0xeeba('0x39f')], function(_0x18ca4d, _0x4f9c21) {
931 var _0x52e95d = $[a0_0xeeba('0x13c')]();
932 return _0x560ae1[a0_0xeeba('0x328')](_0x18ca4d, _0x4f9c21)['then'](function() {
933 _0x52e95d[a0_0xeeba('0x32')]();
934 }), _0x52e95d;
935 });
936 $[a0_0xeeba('0x7a')][a0_0xeeba('0x2f9')]($, _0x5bcb01)[a0_0xeeba('0x2c7')](function() {
937 _0x560ae1[a0_0xeeba('0x144')] = 0x0;
938 var _0x17c7bf = null;
939 0x0 === _0x560ae1['countRunningAttacks']() ? (_0x17c7bf = DM[a0_0xeeba('0x3ec')]('COMMON')[a0_0xeeba('0x3c4')] + '.', HumanMessage[a0_0xeeba('0x34f')](_0x17c7bf), _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x2c9') + _0x17c7bf + a0_0xeeba('0x2fe'), 0x4), _0x560ae1[a0_0xeeba('0x77')]()) : (_0x17c7bf = DM[a0_0xeeba('0x3ec')]('alliance')[a0_0xeeba('0x104')][a0_0xeeba('0x17c')] + ':\x20' + _0x560ae1[a0_0xeeba('0x225')]() + '\x20' + DM[a0_0xeeba('0x3ec')](a0_0xeeba('0xb3'))[a0_0xeeba('0x51')][a0_0xeeba('0x2d0')][a0_0xeeba('0x80')]() + '.', HumanMessage['success'](_0x17c7bf), _0x217695['Log'](a0_0xeeba('0x2c9') + _0x17c7bf + a0_0xeeba('0x2fe'), 0x4));
940 });
941 }
942 }, {
943 'key': 'checkAttack',
944 'value': function(_0x142ced, _0x5c353b) {
945 var _0xebea0b = $['Deferred']();
946 return _0x142ced[a0_0xeeba('0x16c')] >= Timestamp[a0_0xeeba('0x189')]() ? (_0x560ae1[a0_0xeeba('0x144')]++, setTimeout(function() {
947 _0x3f8845[a0_0xeeba('0x2fb')](_0x142ced[a0_0xeeba('0x64')], _0x142ced, function(_0x3558eb) {
948 if (void 0x0 !== _0x3558eb[a0_0xeeba('0x36d')]) {
949 if (!_0x3558eb[a0_0xeeba('0x36d')][a0_0xeeba('0xeb')] || GameDataUnits[a0_0xeeba('0x3a8')](_0x142ced['units'])) {
950 var _0x54be46 = GameDataUnits[a0_0xeeba('0x1a2')](_0x142ced[a0_0xeeba('0x64')], _0x142ced['units']);
951 if (_0x54be46['needed_capacity'] > _0x54be46[a0_0xeeba('0x8')]) {
952 var _0x17a11d = DM['getl10n'](a0_0xeeba('0x15f'))['support_overview'][a0_0xeeba('0x3b1')];
953 return $('#attack_order_id_' + _0x142ced['id'] + a0_0xeeba('0x40'))[a0_0xeeba('0x1b2')](a0_0xeeba('0x81'))[a0_0xeeba('0x1b7')](_0x17a11d), _0x560ae1['addAttack'](_0x5c353b, _0x17a11d), _0xebea0b[a0_0xeeba('0x32')](), !0x1;
954 }
955 }
956 _0x560ae1[a0_0xeeba('0xca')](_0x5c353b), _0xebea0b[a0_0xeeba('0x32')]();
957 }
958 });
959 }, 0x3e8 * _0x560ae1[a0_0xeeba('0x144')] / 0x2)) : (_0x560ae1['addAttack'](_0x5c353b, a0_0xeeba('0x16a')), $(a0_0xeeba('0x2d3') + _0x142ced['id'] + a0_0xeeba('0x40'))['removeClass'](a0_0xeeba('0x81'))[a0_0xeeba('0x1b7')]('Expired'), _0xebea0b[a0_0xeeba('0x32')]()), _0xebea0b;
960 }
961 }, {
962 'key': 'addAttack',
963 'value': function(_0x3aac40, _0x2222d6) {
964 var _0x49f412 = {
965 'is_running': !0x1,
966 'attack_id': _0x560ae1[a0_0xeeba('0x39f')][_0x3aac40]['id'],
967 'interval': null,
968 'message': '',
969 'message_text': ''
970 };
971 void 0x0 !== _0x2222d6 ? _0x49f412['message_text'] = _0x2222d6 : (_0x49f412['is_running'] = !0x0, _0x49f412['interval'] = setInterval(function() {
972 if (void 0x0 !== _0x560ae1[a0_0xeeba('0x39f')][_0x3aac40]) {
973 var _0x5d40b5 = _0x560ae1['attacks'][_0x3aac40][a0_0xeeba('0x16c')] - Timestamp[a0_0xeeba('0x189')]();
974 _0x49f412[a0_0xeeba('0x257')] = $(a0_0xeeba('0x2d3') + _0x49f412['attack_id'] + a0_0xeeba('0x40')), _0x49f412[a0_0xeeba('0x257')][a0_0xeeba('0x1b7')](_0x27e24c[a0_0xeeba('0x159')](_0x5d40b5)), 0x12c !== _0x5d40b5 && 0x78 !== _0x5d40b5 && 0x3c !== _0x5d40b5 || _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x99') + _0x560ae1[a0_0xeeba('0x39f')][_0x3aac40]['origin_town_name'] + '\x20>\x20' + _0x560ae1[a0_0xeeba('0x39f')][_0x3aac40]['target_town_name'] + ']\x20' + DM[a0_0xeeba('0x3ec')](a0_0xeeba('0x23c'))[a0_0xeeba('0x3e7')][a0_0xeeba('0x112')][a0_0xeeba('0x217')]()[a0_0xeeba('0x92')](':', '') + '\x20' + DM[a0_0xeeba('0x3ec')](a0_0xeeba('0x15f'))[a0_0xeeba('0x230')]['just_in'] + '\x20' + hours_minutes_seconds(_0x5d40b5) + '.</span>', 0x4), _0x560ae1[a0_0xeeba('0x39f')][_0x3aac40][a0_0xeeba('0x16c')] <= Timestamp['now']() && (_0x49f412[a0_0xeeba('0x226')] = !0x1, _0x560ae1[a0_0xeeba('0x1aa')](_0x560ae1[a0_0xeeba('0x39f')][_0x3aac40]), _0x560ae1[a0_0xeeba('0x333')](_0x49f412));
975 } else _0x49f412[a0_0xeeba('0x226')] = !0x1, _0x49f412[a0_0xeeba('0x257')]['html'](a0_0xeeba('0x177')), _0x560ae1[a0_0xeeba('0x333')](_0x49f412);
976 }, 0x3e8)), _0x560ae1[a0_0xeeba('0x3e6')][a0_0xeeba('0x172')](_0x49f412);
977 }
978 }, {
979 'key': a0_0xeeba('0x225'),
980 'value': function() {
981 var _0x24388a = 0x0;
982 return _0x560ae1[a0_0xeeba('0x3e6')]['forEach'](function(_0x4b3d28) {
983 _0x4b3d28[a0_0xeeba('0x226')] && _0x24388a++;
984 }), _0x24388a;
985 }
986 }, {
987 'key': a0_0xeeba('0x333'),
988 'value': function(_0x135078) {
989 clearInterval(_0x135078[a0_0xeeba('0xb0')]), 0x0 === _0x560ae1[a0_0xeeba('0x225')]() && (_0x217695[a0_0xeeba('0x7b')]('<span\x20style=\x22color:\x20#ff4f23;\x22>All\x20finished.</span>', 0x4), _0x560ae1['stop']());
990 }
991 }, {
992 'key': a0_0xeeba('0x35e'),
993 'value': function() {
994 _0x560ae1[a0_0xeeba('0x77')](), _0x560ae1[a0_0xeeba('0x3e6')]['forEach'](function(_0x489c52) {
995 _0x489c52[a0_0xeeba('0x226')] && $('#attack_order_id_' + _0x489c52[a0_0xeeba('0x246')] + a0_0xeeba('0x40'))[a0_0xeeba('0x1b7')](''), clearInterval(_0x489c52[a0_0xeeba('0xb0')]);
996 });
997 }
998 }, {
999 'key': a0_0xeeba('0x77'),
1000 'value': function() {
1001 _0x538336['modules']['Autoattack'][a0_0xeeba('0x30f')] = !0x1, $('#Autoattack_onoff')[a0_0xeeba('0x1b2')]('on')[a0_0xeeba('0x2f6')]('span')[a0_0xeeba('0x93')](new MousePopup(a0_0xeeba('0xf')));
1002 }
1003 }, {
1004 'key': a0_0xeeba('0x1aa'),
1005 'value': function(_0x4f4cfa) {
1006 _0x3f8845[a0_0xeeba('0x69')](_0x4f4cfa[a0_0xeeba('0x64')], _0x4f4cfa['type'], _0x4f4cfa[a0_0xeeba('0x325')], _0x560ae1[a0_0xeeba('0x9e')](_0x4f4cfa[a0_0xeeba('0x2b8')]), function(_0xb9ad23) {
1007 var _0x206dea = _0x560ae1[a0_0xeeba('0x3e6')][a0_0xeeba('0x29')](function(_0x56e5ad) {
1008 return _0x56e5ad[a0_0xeeba('0x246')] === _0x4f4cfa['id'];
1009 });
1010 void 0x0 !== _0xb9ad23[a0_0xeeba('0x81')] && _0x206dea[a0_0xeeba('0x26d')] ? (_0x206dea[0x0][a0_0xeeba('0x106')] = a0_0xeeba('0x252'), _0x206dea[0x0]['message']['addClass'](a0_0xeeba('0x81'))['html'](a0_0xeeba('0x252')), _0x217695['Log'](a0_0xeeba('0x184') + _0x4f4cfa[a0_0xeeba('0x2cd')] + '\x20>\x20' + _0x4f4cfa[a0_0xeeba('0x27b')] + ']\x20' + _0xb9ad23['success'] + a0_0xeeba('0x2fe'), 0x4)) : void 0x0 !== _0xb9ad23['error'] && _0x206dea[a0_0xeeba('0x26d')] && (_0x206dea[0x0][a0_0xeeba('0x106')] = a0_0xeeba('0x19c'), _0x206dea[0x0][a0_0xeeba('0x257')][a0_0xeeba('0x1b7')](a0_0xeeba('0x19c')), _0x217695[a0_0xeeba('0x7b')]('<span\x20style=\x22color:\x20#ff3100;\x22>[' + _0x4f4cfa[a0_0xeeba('0x2cd')] + a0_0xeeba('0xff') + _0x4f4cfa['target_town_name'] + ']\x20' + _0xb9ad23['error'] + a0_0xeeba('0x2fe'), 0x4));
1011 });
1012 }
1013 }, {
1014 'key': a0_0xeeba('0x9e'),
1015 'value': function(_0x2b891b) {
1016 var _0x5432fc = {};
1017 return $[a0_0xeeba('0x1f')](_0x2b891b, function(_0x4ef5a9, _0xa1159c) {
1018 _0xa1159c > 0x0 && (_0x5432fc[_0x4ef5a9] = _0xa1159c);
1019 }), _0x5432fc;
1020 }
1021 }, {
1022 'key': a0_0xeeba('0xf9'),
1023 'value': function(_0x5e01c9, _0x1ac8d4) {
1024 switch (_0x5e01c9) {
1025 case 'attack_planer/add_origin_town':
1026 case a0_0xeeba('0x216'):
1027 _0x560ae1[a0_0xeeba('0x35e')](), _0x560ae1[a0_0xeeba('0x13d')]();
1028 break;
1029 case a0_0xeeba('0x151'):
1030 void 0x0 !== (_0x1ac8d4 = JSON[a0_0xeeba('0x199')](_0x1ac8d4))[a0_0xeeba('0x36d')][a0_0xeeba('0x31f')] && _0x560ae1[a0_0xeeba('0x3be')](_0x1ac8d4[a0_0xeeba('0x36d')]);
1031 }
1032 }
1033 }, {
1034 'key': a0_0xeeba('0x3be'),
1035 'value': function(_0x1bb895) {
1036 _0x27e24c['checkPremium'](a0_0xeeba('0x2b0')) && (_0x560ae1[a0_0xeeba('0x39f')] = void 0x0 !== _0x1bb895[a0_0xeeba('0x31f')][a0_0xeeba('0x39f')] ? _0x1bb895[a0_0xeeba('0x31f')][a0_0xeeba('0x39f')] : []);
1037 }
1038 }, {
1039 'key': 'attackOrderRow',
1040 'value': function(_0x36e7df, _0x1f0a36) {
1041 var _0x1bf57d = $(a0_0xeeba('0x137'), {
1042 'class': 'origin_town_units'
1043 });
1044 void 0x0 !== _0x36e7df[a0_0xeeba('0x2b8')] && $[a0_0xeeba('0x1f')](_0x36e7df['units'], function(_0x692f2f, _0x41c798) {
1045 _0x41c798 > 0x0 && _0x1bf57d[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
1046 'class': a0_0xeeba('0xec') + _0x692f2f
1047 })[a0_0xeeba('0x1b7')](_0x41c798));
1048 });
1049 var _0x502277 = $(a0_0xeeba('0x277'), {
1050 'class': a0_0xeeba('0x310') + (_0x1f0a36 % 0x2 == 0x0 ? a0_0xeeba('0x1e8') : a0_0xeeba('0x2d')),
1051 'id': 'attack_order_id_' + _0x36e7df['id']
1052 });
1053 return _0x36e7df['send_at'] > Timestamp[a0_0xeeba('0x189')]() && _0x502277[a0_0xeeba('0x6d')](function() {
1054 $(this)[a0_0xeeba('0x31c')](a0_0xeeba('0x5d'));
1055 }), _0x502277[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
1056 'class': a0_0xeeba('0x2d2') + _0x36e7df['type']
1057 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
1058 'class': a0_0xeeba('0x1b0')
1059 }))[a0_0xeeba('0x342')]($('<div/>', {
1060 'class': a0_0xeeba('0x27')
1061 })['append']('\x20' + _0x36e7df[a0_0xeeba('0x18c')] + '\x20')[a0_0xeeba('0x342')]('(' + _0x36e7df['origin_player_link'] + ')')[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
1062 'class': a0_0xeeba('0x20a')
1063 }))[a0_0xeeba('0x342')]('\x20' + _0x36e7df[a0_0xeeba('0x338')] + '\x20')[a0_0xeeba('0x342')]('(' + _0x36e7df[a0_0xeeba('0x1af')] + ')\x20'))[a0_0xeeba('0x342')]($('<div/>', {
1064 'class': a0_0xeeba('0x352') + (_0x36e7df[a0_0xeeba('0x16c')] <= Timestamp['now']() ? '\x20expired' : '')
1065 })[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'))['html'](DM[a0_0xeeba('0x3ec')](a0_0xeeba('0x23c'))[a0_0xeeba('0x3e7')][a0_0xeeba('0x112')]))[a0_0xeeba('0x342')]('\x20' + DateHelper[a0_0xeeba('0x2e6')](_0x36e7df[a0_0xeeba('0x16c')]) + '\x20')['append']($('<span/>')['html'](DM['getl10n'](a0_0xeeba('0x23c'))[a0_0xeeba('0x3e7')][a0_0xeeba('0x39c')]))[a0_0xeeba('0x342')]('\x20' + DateHelper['formatDateTimeNice'](_0x36e7df[a0_0xeeba('0x2e2')]) + '\x20'))['append']($(a0_0xeeba('0x137'), {
1066 'class': a0_0xeeba('0x29e')
1067 })['on'](a0_0xeeba('0xf0'), function() {
1068 _0x1bf57d['toggle']();
1069 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
1070 'class': a0_0xeeba('0x30e')
1071 })[a0_0xeeba('0x1b7')](function() {
1072 var _0x402fce = _0x560ae1['attacks_timers'][a0_0xeeba('0x29')](function(_0x3bdce0) {
1073 return _0x3bdce0[a0_0xeeba('0x246')] === _0x36e7df['id'];
1074 });
1075 if (_0x402fce['length']) return _0x402fce[0x0]['is_running'] ? _0x27e24c[a0_0xeeba('0x159')](_0x36e7df[a0_0xeeba('0x16c')] - Timestamp[a0_0xeeba('0x189')]()) : _0x402fce[0x0][a0_0xeeba('0x106')];
1076 }))[a0_0xeeba('0x342')](_0x1bf57d);
1077 }
1078 }, {
1079 'key': 'loadAttackQueue',
1080 'value': function() {
1081 _0x3f8845[a0_0xeeba('0x1a9')](Game[a0_0xeeba('0x1ea')], function(_0x29664b) {
1082 _0x560ae1['setAttackData'](_0x29664b), _0x560ae1[a0_0xeeba('0x72')]($(a0_0xeeba('0x336')));
1083 });
1084 }
1085 }, {
1086 'key': a0_0xeeba('0x72'),
1087 'value': function(_0x176fd0) {
1088 if (_0x176fd0[a0_0xeeba('0x26d')]) {
1089 var _0x58d715 = _0x176fd0[a0_0xeeba('0x2f6')](a0_0xeeba('0x350'));
1090 _0x58d715[a0_0xeeba('0x3bb')](), _0x3f8845[a0_0xeeba('0x1a9')](Game[a0_0xeeba('0x1ea')], function(_0x1bda87) {
1091 _0x560ae1[a0_0xeeba('0x3be')](_0x1bda87), $[a0_0xeeba('0x1f')](_0x560ae1['attacks'], function(_0x4947eb, _0x5d9b09) {
1092 _0x4947eb++, _0x58d715[a0_0xeeba('0x342')](_0x560ae1[a0_0xeeba('0x65')](_0x5d9b09, _0x4947eb));
1093 });
1094 });
1095 }
1096 }
1097 }, {
1098 'key': a0_0xeeba('0x3d1'),
1099 'value': function() {
1100 var _0x4c3581 = $(a0_0xeeba('0x302') + (_0x538336[a0_0xeeba('0x60')] ? '' : a0_0xeeba('0x4')) + a0_0xeeba('0x248'));
1101 return _0x4c3581[a0_0xeeba('0x2f6')](a0_0xeeba('0x1a7'))['append'](function() {
1102 var _0x328699 = _0x15022e[a0_0xeeba('0x33f')]({
1103 'name': DM['getl10n'](a0_0xeeba('0x2b9'))[a0_0xeeba('0xee')][a0_0xeeba('0x4c')]['attack_planner'],
1104 'style': a0_0xeeba('0x171'),
1105 'class': _0x27e24c[a0_0xeeba('0x2c3')](a0_0xeeba('0x2b0')) ? '' : a0_0xeeba('0x269')
1106 });
1107 return _0x27e24c[a0_0xeeba('0x2c3')]('captain') ? _0x328699[a0_0xeeba('0xf0')](function() {
1108 AttackPlannerWindowFactory[a0_0xeeba('0x3ae')]();
1109 }) : _0x328699;
1110 })['append'](function() {
1111 var _0x1cb0c0 = _0x15022e['button']({
1112 'name': DM['getl10n'](a0_0xeeba('0x9d'))[a0_0xeeba('0x391')],
1113 'style': a0_0xeeba('0x171'),
1114 'class': _0x27e24c[a0_0xeeba('0x2c3')]('captain') ? '' : a0_0xeeba('0x269')
1115 });
1116 return _0x27e24c[a0_0xeeba('0x2c3')](a0_0xeeba('0x2b0')) ? _0x1cb0c0[a0_0xeeba('0xf0')](function() {
1117 _0x560ae1[a0_0xeeba('0x72')](_0x4c3581);
1118 }) : _0x1cb0c0;
1119 })[a0_0xeeba('0x342')](function() {
1120 if (!_0x27e24c[a0_0xeeba('0x2c3')]('captain')) return _0x15022e[a0_0xeeba('0x33f')]({
1121 'name': DM[a0_0xeeba('0x3ec')](a0_0xeeba('0x347'))['advisor_banner']['activate'](Game['premium_data'][a0_0xeeba('0x2b0')][a0_0xeeba('0x16d')]),
1122 'style': a0_0xeeba('0xc5')
1123 })[a0_0xeeba('0xf0')](function() {
1124 PremiumWindowFactory[a0_0xeeba('0x293')]();
1125 });
1126 }), _0x560ae1[a0_0xeeba('0x72')](_0x4c3581), _0x4c3581;
1127 }
1128 }], (_0x567079 = null) && _0x30728f(_0x332e66['prototype'], _0x567079), _0x5361c7 && _0x30728f(_0x332e66, _0x5361c7), _0x560ae1;
1129 }();
1130 Object[a0_0xeeba('0x38c')](_0x251c31, a0_0xeeba('0x6b'), {
1131 'enumerable': !0x0,
1132 'writable': !0x0,
1133 'value': {
1134 'autostart': !0x1
1135 }
1136 }), Object[a0_0xeeba('0x38c')](_0x251c31, a0_0xeeba('0x39f'), {
1137 'enumerable': !0x0,
1138 'writable': !0x0,
1139 'value': []
1140 }), Object['defineProperty'](_0x251c31, a0_0xeeba('0x3e6'), {
1141 'enumerable': !0x0,
1142 'writable': !0x0,
1143 'value': []
1144 }), Object[a0_0xeeba('0x38c')](_0x251c31, 'view', {
1145 'enumerable': !0x0,
1146 'writable': !0x0,
1147 'value': null
1148 }), Object[a0_0xeeba('0x38c')](_0x251c31, a0_0xeeba('0x144'), {
1149 'enumerable': !0x0,
1150 'writable': !0x0,
1151 'value': 0x0
1152 });
1153 var _0x1c9958 = _0x251c31;
1154
1155 function _0x3e44b1(_0x39883f, _0x885bee) {
1156 for (var _0x3e8067 = 0x0; _0x3e8067 < _0x885bee['length']; _0x3e8067++) {
1157 var _0x2433eb = _0x885bee[_0x3e8067];
1158 _0x2433eb[a0_0xeeba('0x35f')] = _0x2433eb[a0_0xeeba('0x35f')] || !0x1, _0x2433eb[a0_0xeeba('0x30d')] = !0x0, a0_0xeeba('0x285') in _0x2433eb && (_0x2433eb['writable'] = !0x0), Object[a0_0xeeba('0x38c')](_0x39883f, _0x2433eb['key'], _0x2433eb);
1159 }
1160 }
1161 var _0x12c49e = function() {
1162 function _0xb34b10() {
1163 ! function(_0xc75a83, _0x20af75) {
1164 if (!(_0xc75a83 instanceof _0x20af75)) throw new TypeError(a0_0xeeba('0x8c'));
1165 }(this, _0xb34b10);
1166 }
1167 var _0x4b838d, _0x7a014, _0x33d03e;
1168 return _0x4b838d = _0xb34b10, _0x33d03e = [{
1169 'key': a0_0xeeba('0x16'),
1170 'value': function(_0x59c11d) {
1171 var _0x4686d3 = ITowns[a0_0xeeba('0x3a5')][_0x59c11d['id']];
1172 if (_0x4686d3[a0_0xeeba('0x23')]()) return !0x1;
1173 if (!_0xb34b10['checkEnabled']()) return !0x1;
1174 if (_0x59c11d[a0_0xeeba('0x2eb')]['Autofarm'][a0_0xeeba('0x3bd')] >= Timestamp[a0_0xeeba('0x189')]()) return _0x59c11d['modules'][a0_0xeeba('0x197')][a0_0xeeba('0x3bd')];
1175 var _0x37ee86 = _0x4686d3['resources']();
1176 if (_0x37ee86[a0_0xeeba('0x33d')] === _0x37ee86[a0_0xeeba('0x367')] && _0x37ee86['stone'] === _0x37ee86[a0_0xeeba('0x367')] && _0x37ee86[a0_0xeeba('0x243')] === _0x37ee86['storage'] && _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x21c')]) return !0x1;
1177 var _0x561088 = !0x1;
1178 return $[a0_0xeeba('0x1f')](_0x538336[a0_0xeeba('0x294')][a0_0xeeba('0xbc')], function(_0x3a45c3, _0x3ab6d3) {
1179 if (a0_0xeeba('0x197') === _0x3ab6d3['module'] && -0x1 !== _0x59c11d[a0_0xeeba('0x39e')][a0_0xeeba('0x2b1')](_0x3ab6d3[a0_0xeeba('0x1ea')])) return _0x561088 = !0x0, !0x1;
1180 }), _0xb34b10[a0_0xeeba('0x6b')]['lowresfirst'] && _0x59c11d[a0_0xeeba('0x39e')][a0_0xeeba('0x26d')] > 0x0 && (_0x561088 = !0x1, $[a0_0xeeba('0x1f')](_0x59c11d[a0_0xeeba('0x39e')], function(_0x4fcfd9, _0x1f6d98) {
1181 var _0x4da06f = _0x4686d3['resources'](),
1182 _0xda17d = ITowns['towns'][_0x1f6d98][a0_0xeeba('0x87')]();
1183 if (_0x4da06f['wood'] + _0x4da06f[a0_0xeeba('0x3e')] + _0x4da06f[a0_0xeeba('0x243')] > _0xda17d[a0_0xeeba('0x33d')] + _0xda17d['stone'] + _0xda17d[a0_0xeeba('0x243')]) return _0x561088 = !0x0, !0x1;
1184 })), !_0x561088;
1185 }
1186 }, {
1187 'key': a0_0xeeba('0x286'),
1188 'value': function() {
1189 _0x1c9958['settings'] = {
1190 'autostart': !0x1,
1191 'method': 0x12c,
1192 'timebetween': 0x1,
1193 'skipwhenfull': !0x0,
1194 'lowresfirst': !0x0,
1195 'stoplootbelow': !0x0
1196 };
1197 }
1198 }, {
1199 'key': a0_0xeeba('0x234'),
1200 'value': function() {
1201 return _0x538336[a0_0xeeba('0x2eb')][a0_0xeeba('0x197')][a0_0xeeba('0x30f')];
1202 }
1203 }, {
1204 'key': a0_0xeeba('0x52'),
1205 'value': function(_0x3a5a2b) {
1206 if (!_0xb34b10[a0_0xeeba('0x234')]()) return !0x1;
1207 _0xb34b10[a0_0xeeba('0x2e9')] = _0x3a5a2b, _0xb34b10['shouldFarm'] = [], _0xb34b10[a0_0xeeba('0xa4')] = ITowns[a0_0xeeba('0x3a5')][_0xb34b10['town']['id']];
1208 var _0x4b3c7e = function() {
1209 _0xb34b10[a0_0xeeba('0xb0')] = setTimeout(function() {
1210 _0x217695[a0_0xeeba('0x7b')](_0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + '\x20getting\x20farm\x20information.', 0x1), _0xb34b10[a0_0xeeba('0x369')] ? _0xb34b10[a0_0xeeba('0x35b')](function() {
1211 if (!_0xb34b10[a0_0xeeba('0x234')]()) return !0x1;
1212 _0xb34b10[a0_0xeeba('0x2a9')]();
1213 }) : _0xb34b10[a0_0xeeba('0x33a')](function() {
1214 if (!_0xb34b10[a0_0xeeba('0x234')]()) return !0x1;
1215 _0xb34b10['town']['currentFarmCount'] = 0x0, _0xb34b10[a0_0xeeba('0x2a9')]();
1216 });
1217 }, _0x27e24c[a0_0xeeba('0x9c')](0x3e8, 0x7d0));
1218 };
1219 _0x538336['currentTown'] !== _0xb34b10['town'][a0_0xeeba('0x2d4')] ? _0xb34b10[a0_0xeeba('0xb0')] = setTimeout(function() {
1220 _0x217695['Log'](_0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + '\x20move\x20to\x20town.', 0x1), _0x3f8845[a0_0xeeba('0xcf')](_0xb34b10[a0_0xeeba('0x2e9')]['id'], function() {
1221 if (!_0xb34b10[a0_0xeeba('0x234')]()) return !0x1;
1222 _0x538336[a0_0xeeba('0x155')] = _0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x2d4')], _0x4b3c7e();
1223 }), _0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x3f1')] = !0x0;
1224 }, _0x27e24c[a0_0xeeba('0x9c')](0x3e8, 0x7d0)) : _0x4b3c7e();
1225 }
1226 }, {
1227 'key': a0_0xeeba('0x33a'),
1228 'value': function(_0x5caf3d) {
1229 _0x3f8845[a0_0xeeba('0x7c')](_0xb34b10[a0_0xeeba('0x2e9')]['id'], function(_0x5b2667) {
1230 if (!_0xb34b10['checkEnabled']()) return !0x1;
1231 var _0x1b3977 = _0x5b2667[a0_0xeeba('0x153')][a0_0xeeba('0x31f')]['data'][a0_0xeeba('0x31f')];
1232 $[a0_0xeeba('0x1f')](_0x1b3977, function(_0x5cca63, _0x4db727) {
1233 var _0x2d7093 = [];
1234 $[a0_0xeeba('0x1f')](_0x4db727[a0_0xeeba('0x3a5')], function(_0x34fc8b, _0x212c01) {
1235 _0x212c01['x'] === _0xb34b10['iTown'][a0_0xeeba('0x185')]() && _0x212c01['y'] === _0xb34b10[a0_0xeeba('0xa4')][a0_0xeeba('0x32b')]() && 0x1 === _0x212c01[a0_0xeeba('0x370')] && _0x2d7093[a0_0xeeba('0x172')](_0x212c01);
1236 }), _0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x2c2')] = _0x2d7093;
1237 }), $[a0_0xeeba('0x1f')](_0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x2c2')], function(_0x19f867, _0x2a6612) {
1238 _0x2a6612[a0_0xeeba('0x280')] - Timestamp['now']() <= 0x0 && _0xb34b10['shouldFarm'][a0_0xeeba('0x172')](_0x2a6612);
1239 }), _0x5caf3d(!0x0);
1240 });
1241 }
1242 }, {
1243 'key': a0_0xeeba('0x35b'),
1244 'value': function(_0x108484) {
1245 _0x3f8845[a0_0xeeba('0x317')](_0xb34b10['town']['id'], function(_0x51b8ad) {
1246 if (!_0xb34b10[a0_0xeeba('0x234')]()) return !0x1;
1247 var _0x52c6df = [];
1248 $['each'](_0x51b8ad['farm_town_list'], function(_0x437a9a, _0x4df31b) {
1249 _0x4df31b['island_x'] === _0xb34b10[a0_0xeeba('0xa4')][a0_0xeeba('0x185')]() && _0x4df31b[a0_0xeeba('0x366')] === _0xb34b10[a0_0xeeba('0xa4')]['getIslandCoordinateY']() && 0x1 === _0x4df31b[a0_0xeeba('0x378')] && _0x52c6df[a0_0xeeba('0x172')](_0x4df31b);
1250 }), _0xb34b10[a0_0xeeba('0x2e9')]['farmTowns'] = _0x52c6df, $[a0_0xeeba('0x1f')](_0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x2c2')], function(_0x43466c, _0x505315) {
1251 _0x505315[a0_0xeeba('0x280')] - Timestamp[a0_0xeeba('0x189')]() <= 0x0 && _0xb34b10['shouldFarm'][a0_0xeeba('0x172')](_0x505315);
1252 }), _0x108484(!0x0);
1253 });
1254 }
1255 }, {
1256 'key': a0_0xeeba('0x2a9'),
1257 'value': function() {
1258 if (!_0xb34b10['town']['farmTowns'][0x0]) return _0x217695['Log'](_0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + a0_0xeeba('0x3ac'), 0x1), _0xb34b10[a0_0xeeba('0x210')](0x708), !0x1;
1259 if (_0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x1eb')] < _0xb34b10[a0_0xeeba('0x135')][a0_0xeeba('0x26d')]) _0xb34b10[a0_0xeeba('0xb0')] = setTimeout(function() {
1260 var _0x4287da = 'normal';
1261 if (Game[a0_0xeeba('0x3ce')][a0_0xeeba('0x148')] || (_0xb34b10[a0_0xeeba('0x135')][_0xb34b10[a0_0xeeba('0x2e9')]['currentFarmCount']][a0_0xeeba('0x31b')] >= 0x56 && _0xb34b10['settings']['stoplootbelow'] && (_0x4287da = a0_0xeeba('0xd')), _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x3cb')] || (_0x4287da = 'double')), _0xb34b10['isCaptain']) {
1262 var _0x5a09b0 = [];
1263 $[a0_0xeeba('0x1f')](_0xb34b10[a0_0xeeba('0x135')], function(_0xd46e68, _0x5d46b6) {
1264 _0x5a09b0['push'](_0x5d46b6['id']);
1265 }), _0xb34b10['claimLoads'](_0x5a09b0, _0x4287da, function() {
1266 if (!_0xb34b10[a0_0xeeba('0x234')]()) return !0x1;
1267 _0xb34b10['finished'](_0xb34b10[a0_0xeeba('0x300')](_0xb34b10['town']['id']));
1268 });
1269 } else _0xb34b10[a0_0xeeba('0x241')](_0xb34b10[a0_0xeeba('0x135')][_0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x1eb')]]['id'], _0x4287da, function() {
1270 if (!_0xb34b10[a0_0xeeba('0x234')]()) return !0x1;
1271 _0xb34b10['shouldFarm'][_0xb34b10['town']['currentFarmCount']][a0_0xeeba('0x280')] = Timestamp[a0_0xeeba('0x189')]() + _0xb34b10[a0_0xeeba('0x300')](_0xb34b10[a0_0xeeba('0x2e9')]['id']), _0x538336[a0_0xeeba('0x380')](_0xb34b10[a0_0xeeba('0x135')]['length'], _0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x1eb')]), _0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x1eb')]++, _0xb34b10[a0_0xeeba('0x2a9')]();
1272 });
1273 }, _0x27e24c[a0_0xeeba('0x9c')](0x3e8 * _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x36f')], 0x3e8 * _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x36f')] + 0x3e8));
1274 else {
1275 var _0xbd06bc = null;
1276 $[a0_0xeeba('0x1f')](_0xb34b10[a0_0xeeba('0x2e9')]['farmTowns'], function(_0x5745fb, _0x27da91) {
1277 var _0x2204e3 = _0x27da91['loot'] - Timestamp['now']();
1278 (null == _0xbd06bc || _0x2204e3 <= _0xbd06bc) && (_0xbd06bc = _0x2204e3);
1279 }), _0xb34b10[a0_0xeeba('0x135')]['length'] > 0x0 ? $[a0_0xeeba('0x1f')](_0xb34b10['shouldFarm'], function(_0x51b450, _0x3a4d04) {
1280 var _0x41b313 = _0x3a4d04[a0_0xeeba('0x280')] - Timestamp['now']();
1281 (null == _0xbd06bc || _0x41b313 <= _0xbd06bc) && (_0xbd06bc = _0x41b313);
1282 }) : _0x217695[a0_0xeeba('0x7b')](_0xb34b10['town'][a0_0xeeba('0x16d')] + a0_0xeeba('0x1b9'), 0x1), _0xb34b10['finished'](_0xbd06bc);
1283 }
1284 }
1285 }, {
1286 'key': a0_0xeeba('0x241'),
1287 'value': function(_0x168992, _0x33e7a4, _0x465487) {
1288 Game[a0_0xeeba('0x3ce')][a0_0xeeba('0x148')] ? _0x3f8845[a0_0xeeba('0x1ef')](_0xb34b10[a0_0xeeba('0x2e9')]['id'], {
1289 'model_url': 'FarmTownPlayerRelation/' + MM['getOnlyCollectionByName'](a0_0xeeba('0x37a'))[a0_0xeeba('0x36e')](_0x168992)['id'],
1290 'action_name': a0_0xeeba('0x14'),
1291 'arguments': {
1292 'farm_town_id': _0x168992,
1293 'type': 'resources',
1294 'option': 0x1
1295 }
1296 }, function(_0x37e227) {
1297 _0xb34b10[a0_0xeeba('0x2de')](_0x168992, _0x37e227), _0x465487(_0x37e227);
1298 }) : _0x3f8845[a0_0xeeba('0x3b7')](_0xb34b10[a0_0xeeba('0x2e9')]['id'], _0x33e7a4, _0xb34b10[a0_0xeeba('0x300')](_0xb34b10[a0_0xeeba('0x2e9')]['id']), _0x168992, function(_0x4a3c1e) {
1299 _0xb34b10[a0_0xeeba('0x2de')](_0x168992, _0x4a3c1e), _0x465487(_0x4a3c1e);
1300 });
1301 }
1302 }, {
1303 'key': 'claimLoadCallback',
1304 'value': function(_0x1a07dc, _0x28d462) {
1305 if (_0x28d462[a0_0xeeba('0x81')]) {
1306 var _0xe3eb54 = _0x28d462[a0_0xeeba('0x5e')],
1307 _0x3a2de5 = _0x28d462[a0_0xeeba('0x2ca')];
1308 0x2 === _0x28d462[a0_0xeeba('0x370')] ? (WMap['updateStatusInChunkTowns'](_0x1a07dc['id'], _0xe3eb54, Timestamp[a0_0xeeba('0x189')]() + _0xb34b10['getMethodTime'](_0xb34b10[a0_0xeeba('0x2e9')]['id']), Timestamp['now'](), _0x3a2de5, 0x2), WMap[a0_0xeeba('0x3dc')]()) : WMap['updateStatusInChunkTowns'](_0x1a07dc['id'], _0xe3eb54, Timestamp[a0_0xeeba('0x189')]() + _0xb34b10['getMethodTime'](_0xb34b10[a0_0xeeba('0x2e9')]['id']), Timestamp['now'](), _0x3a2de5), Layout[a0_0xeeba('0x1f9')](), _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x68') + _0x28d462['success'] + a0_0xeeba('0x2fe'), 0x1);
1309 } else _0x28d462[a0_0xeeba('0x34f')] && _0x217695[a0_0xeeba('0x7b')](_0xb34b10[a0_0xeeba('0x2e9')]['name'] + '\x20' + _0x28d462[a0_0xeeba('0x34f')], 0x1);
1310 }
1311 }, {
1312 'key': a0_0xeeba('0xa8'),
1313 'value': function(_0x27f5f7, _0x2bc964, _0x485f8a) {
1314 _0x3f8845[a0_0xeeba('0x17d')](_0xb34b10[a0_0xeeba('0x2e9')]['id'], _0x27f5f7, _0x2bc964, _0xb34b10[a0_0xeeba('0x300')](_0xb34b10['town']['id']), function(_0x32561e) {
1315 _0xb34b10['claimLoadsCallback'](_0x32561e), _0x485f8a(_0x32561e);
1316 });
1317 }
1318 }, {
1319 'key': a0_0xeeba('0x300'),
1320 'value': function(_0x517b15) {
1321 if (Game['features'][a0_0xeeba('0x148')]) {
1322 var _0x4082d6 = _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x3e1')];
1323 return $[a0_0xeeba('0x1f')](MM['getOnlyCollectionByName']('Town')[a0_0xeeba('0x220')](), function(_0x230d11, _0x59ffc6) {
1324 if (_0x59ffc6['id'] === _0x517b15 && _0x59ffc6[a0_0xeeba('0x140')]()[a0_0xeeba('0x24e')](a0_0xeeba('0x82'))) return _0x4082d6 = 0x2 * _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x3e1')], !0x1;
1325 }), _0x4082d6;
1326 }
1327 return _0xb34b10[a0_0xeeba('0x6b')]['method'];
1328 }
1329 }, {
1330 'key': a0_0xeeba('0x340'),
1331 'value': function(_0x4725ef) {
1332 if (_0x4725ef[a0_0xeeba('0x81')]) {
1333 var _0x6ad50 = _0x4725ef[a0_0xeeba('0x2c8')];
1334 $['each'](_0x6ad50, function(_0x31f8e7, _0x5aaa6c) {
1335 0x2 === _0x5aaa6c[a0_0xeeba('0x370')] ? (WMap[a0_0xeeba('0x41')](_0x31f8e7, _0x5aaa6c[a0_0xeeba('0x5e')], Timestamp[a0_0xeeba('0x189')]() + _0xb34b10[a0_0xeeba('0x300')](_0xb34b10[a0_0xeeba('0x2e9')]['id']), Timestamp['now'](), _0x5aaa6c['lootable_at'], 0x2), WMap[a0_0xeeba('0x3dc')]()) : WMap['updateStatusInChunkTowns'](_0x31f8e7, _0x5aaa6c['satisfaction'], Timestamp[a0_0xeeba('0x189')]() + _0xb34b10[a0_0xeeba('0x300')](_0xb34b10[a0_0xeeba('0x2e9')]['id']), Timestamp[a0_0xeeba('0x189')](), _0x5aaa6c[a0_0xeeba('0x122')]);
1336 }), _0x217695['Log'](a0_0xeeba('0x68') + _0x4725ef[a0_0xeeba('0x81')] + a0_0xeeba('0x2fe'), 0x1);
1337 } else _0x4725ef['error'] && _0x217695['Log'](_0xb34b10[a0_0xeeba('0x2e9')]['name'] + '\x20' + _0x4725ef[a0_0xeeba('0x34f')], 0x1);
1338 }
1339 }, {
1340 'key': 'finished',
1341 'value': function(_0x6c8c3a) {
1342 if (!_0xb34b10[a0_0xeeba('0x234')]()) return !0x1;
1343 $[a0_0xeeba('0x1f')](_0x538336[a0_0xeeba('0xdb')], function(_0x298781, _0xc1dd31) {
1344 -0x1 !== _0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x39e')][a0_0xeeba('0x2b1')](_0xc1dd31['id']) && (_0xc1dd31[a0_0xeeba('0x2eb')][a0_0xeeba('0x197')][a0_0xeeba('0x3bd')] = Timestamp[a0_0xeeba('0x189')]() + _0x6c8c3a);
1345 }), _0xb34b10[a0_0xeeba('0x2e9')][a0_0xeeba('0x2eb')]['Autofarm'][a0_0xeeba('0x3bd')] = Timestamp[a0_0xeeba('0x189')]() + _0x6c8c3a, _0x538336[a0_0xeeba('0x294')][a0_0xeeba('0x38e')]();
1346 }
1347 }, {
1348 'key': 'stop',
1349 'value': function() {
1350 clearInterval(_0xb34b10[a0_0xeeba('0xb0')]);
1351 }
1352 }, {
1353 'key': a0_0xeeba('0x176'),
1354 'value': function() {
1355 _0x217695['Log'](a0_0xeeba('0x1a'), 0x1), _0xb34b10[a0_0xeeba('0x306')](), _0xb34b10['checkCaptain']();
1356 }
1357 }, {
1358 'key': 'initButton',
1359 'value': function() {
1360 _0x538336['initButtons']('Autofarm');
1361 }
1362 }, {
1363 'key': 'checkCaptain',
1364 'value': function() {
1365 $('.advisor_frame.captain\x20div')[a0_0xeeba('0x1d7')](a0_0xeeba('0x15a')) && (_0xb34b10[a0_0xeeba('0x369')] = !0x0);
1366 }
1367 }, {
1368 'key': a0_0xeeba('0x1e2'),
1369 'value': function(_0x6835ed) {
1370 '' !== _0x6835ed && null != _0x6835ed && $[a0_0xeeba('0x63')](_0xb34b10[a0_0xeeba('0x6b')], _0x6835ed);
1371 }
1372 }, {
1373 'key': a0_0xeeba('0x3d1'),
1374 'value': function() {
1375 return $(a0_0xeeba('0x292'), {
1376 'id': 'Autofarm_settings',
1377 'style': 'float:left;\x20width:472px;height:\x20270px;'
1378 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x3cf'))[a0_0xeeba('0x1b7')](_0xb34b10['title']))[a0_0xeeba('0x342')](_0x15022e['checkbox']({
1379 'text': a0_0xeeba('0x79'),
1380 'id': 'autofarm_autostart',
1381 'name': a0_0xeeba('0x23a'),
1382 'checked': _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x11e')],
1383 'disabled': !_0x538336[a0_0xeeba('0x60')]
1384 }))[a0_0xeeba('0x342')](function() {
1385 var _0x57af16 = {
1386 'id': a0_0xeeba('0x1be'),
1387 'name': a0_0xeeba('0x1be'),
1388 'label': a0_0xeeba('0x3d5'),
1389 'styles': a0_0xeeba('0x334'),
1390 'value': _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x3e1')],
1391 'options': [{
1392 'value': a0_0xeeba('0x2d1'),
1393 'name': '5\x20minute\x20farm'
1394 }, {
1395 'value': a0_0xeeba('0x19b'),
1396 'name': a0_0xeeba('0x29b')
1397 }, {
1398 'value': a0_0xeeba('0x341'),
1399 'name': a0_0xeeba('0x15b')
1400 }, {
1401 'value': '14400',
1402 'name': a0_0xeeba('0x397')
1403 }],
1404 'disabled': !0x1
1405 };
1406 _0x538336[a0_0xeeba('0x60')] || (_0x57af16 = $[a0_0xeeba('0x63')](_0x57af16, {
1407 'disabled': !0x0
1408 }));
1409 var _0x41da6f = _0x15022e[a0_0xeeba('0x291')](_0x57af16);
1410 return _0x538336[a0_0xeeba('0x60')] || _0x41da6f[a0_0xeeba('0x93')](new MousePopup(_0x538336[a0_0xeeba('0x36b')])), _0x41da6f;
1411 })[a0_0xeeba('0x342')](function() {
1412 var _0x59f1b4 = {
1413 'id': a0_0xeeba('0x3a9'),
1414 'name': a0_0xeeba('0x3a9'),
1415 'label': a0_0xeeba('0x228'),
1416 'styles': a0_0xeeba('0x334'),
1417 'value': _0xb34b10[a0_0xeeba('0x6b')]['timebetween'],
1418 'options': [{
1419 'value': '1',
1420 'name': a0_0xeeba('0x2c1')
1421 }, {
1422 'value': '3',
1423 'name': a0_0xeeba('0x1a6')
1424 }, {
1425 'value': '5',
1426 'name': a0_0xeeba('0x62')
1427 }, {
1428 'value': '7',
1429 'name': '7-8\x20seconds'
1430 }, {
1431 'value': '9',
1432 'name': a0_0xeeba('0xae')
1433 }]
1434 };
1435 _0x538336['hasPremium'] || (_0x59f1b4 = $[a0_0xeeba('0x63')](_0x59f1b4, {
1436 'disabled': !0x0
1437 }));
1438 var _0x4d0f92 = _0x15022e[a0_0xeeba('0x291')](_0x59f1b4);
1439 return _0x538336[a0_0xeeba('0x60')] || _0x4d0f92[a0_0xeeba('0x93')](new MousePopup(_0x538336[a0_0xeeba('0x36b')])), _0x4d0f92;
1440 })['append'](_0x15022e[a0_0xeeba('0x18e')]({
1441 'text': 'Skip\x20farm\x20when\x20warehouse\x20is\x20full.',
1442 'id': a0_0xeeba('0x187'),
1443 'name': a0_0xeeba('0x187'),
1444 'checked': _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x21c')],
1445 'disabled': !_0x538336[a0_0xeeba('0x60')]
1446 }))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x18e')]({
1447 'text': a0_0xeeba('0x28'),
1448 'id': 'autofarm_lowresfirst',
1449 'name': 'autofarm_lowresfirst',
1450 'checked': _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x11b')],
1451 'disabled': !_0x538336['hasPremium']
1452 }))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x18e')]({
1453 'text': a0_0xeeba('0x254'),
1454 'id': a0_0xeeba('0x192'),
1455 'name': a0_0xeeba('0x192'),
1456 'checked': _0xb34b10[a0_0xeeba('0x6b')]['stoplootbelow'],
1457 'disabled': !_0x538336[a0_0xeeba('0x60')]
1458 }))[a0_0xeeba('0x342')](function() {
1459 var _0x5dd7d9 = _0x15022e['button']({
1460 'name': DM['getl10n'](a0_0xeeba('0x1d6'))[a0_0xeeba('0x26')],
1461 'class': _0x538336[a0_0xeeba('0x60')] ? '' : a0_0xeeba('0x269'),
1462 'style': a0_0xeeba('0x2e8')
1463 })['on'](a0_0xeeba('0xf0'), function() {
1464 if (!_0x538336[a0_0xeeba('0x60')]) return !0x1;
1465 var _0x516783 = $(a0_0xeeba('0x10'))[a0_0xeeba('0x1c0')]();
1466 _0xb34b10['settings'][a0_0xeeba('0x11e')] = void 0x0 !== _0x516783['autofarm_autostart'], _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x3e1')] = parseInt(_0x516783[a0_0xeeba('0x1be')]), _0xb34b10[a0_0xeeba('0x6b')][a0_0xeeba('0x36f')] = parseInt(_0x516783[a0_0xeeba('0x3a9')]), _0xb34b10['settings'][a0_0xeeba('0x21c')] = void 0x0 !== _0x516783[a0_0xeeba('0x187')], _0xb34b10[a0_0xeeba('0x6b')]['lowresfirst'] = void 0x0 !== _0x516783[a0_0xeeba('0x3df')], _0xb34b10['settings'][a0_0xeeba('0x3cb')] = void 0x0 !== _0x516783[a0_0xeeba('0x192')], _0x3f8845[a0_0xeeba('0x131')]('saveAutofarm', {
1467 'player_id': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x268')],
1468 'world_id': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x2a5')],
1469 'csrfToken': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x343')],
1470 'autofarm_settings': _0x27e24c['stringify'](_0xb34b10[a0_0xeeba('0x6b')])
1471 }, _0xb34b10[a0_0xeeba('0x12')]);
1472 });
1473 return _0x538336['hasPremium'] || _0x5dd7d9[a0_0xeeba('0x93')](new MousePopup(_0x538336['requiredPrem'])), _0x5dd7d9;
1474 });
1475 }
1476 }, {
1477 'key': a0_0xeeba('0x12'),
1478 'value': function() {
1479 _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x1ec'), 0x1), HumanMessage[a0_0xeeba('0x81')](a0_0xeeba('0x2f'));
1480 }
1481 }], (_0x7a014 = null) && _0x3e44b1(_0x4b838d[a0_0xeeba('0x166')], _0x7a014), _0x33d03e && _0x3e44b1(_0x4b838d, _0x33d03e), _0xb34b10;
1482 }();
1483 Object[a0_0xeeba('0x38c')](_0x12c49e, a0_0xeeba('0x6b'), {
1484 'enumerable': !0x0,
1485 'writable': !0x0,
1486 'value': {
1487 'autostart': !0x1,
1488 'method': 0x4b0,
1489 'timebetween': 0x9,
1490 'skipwhenfull': !0x0,
1491 'lowresfirst': !0x0,
1492 'stoplootbelow': !0x0
1493 }
1494 }), Object[a0_0xeeba('0x38c')](_0x12c49e, a0_0xeeba('0x17a'), {
1495 'enumerable': !0x0,
1496 'writable': !0x0,
1497 'value': 'Autofarm\x20settings'
1498 }), Object['defineProperty'](_0x12c49e, a0_0xeeba('0x2e9'), {
1499 'enumerable': !0x0,
1500 'writable': !0x0,
1501 'value': null
1502 }), Object[a0_0xeeba('0x38c')](_0x12c49e, a0_0xeeba('0x4f'), {
1503 'enumerable': !0x0,
1504 'writable': !0x0,
1505 'value': !0x1
1506 }), Object['defineProperty'](_0x12c49e, a0_0xeeba('0xa4'), {
1507 'enumerable': !0x0,
1508 'writable': !0x0,
1509 'value': null
1510 }), Object['defineProperty'](_0x12c49e, a0_0xeeba('0xb0'), {
1511 'enumerable': !0x0,
1512 'writable': !0x0,
1513 'value': null
1514 }), Object['defineProperty'](_0x12c49e, a0_0xeeba('0x369'), {
1515 'enumerable': !0x0,
1516 'writable': !0x0,
1517 'value': !0x1
1518 }), Object[a0_0xeeba('0x38c')](_0x12c49e, a0_0xeeba('0x135'), {
1519 'enumerable': !0x0,
1520 'writable': !0x0,
1521 'value': []
1522 });
1523 var _0x2d5775 = _0x12c49e;
1524
1525 function _0x25483a(_0x3080f0, _0xe7dfff) {
1526 for (var _0xfb1f95 = 0x0; _0xfb1f95 < _0xe7dfff[a0_0xeeba('0x26d')]; _0xfb1f95++) {
1527 var _0x5a79f8 = _0xe7dfff[_0xfb1f95];
1528 _0x5a79f8[a0_0xeeba('0x35f')] = _0x5a79f8[a0_0xeeba('0x35f')] || !0x1, _0x5a79f8[a0_0xeeba('0x30d')] = !0x0, 'value' in _0x5a79f8 && (_0x5a79f8['writable'] = !0x0), Object[a0_0xeeba('0x38c')](_0x3080f0, _0x5a79f8['key'], _0x5a79f8);
1529 }
1530 }
1531 var _0x4a6138 = function() {
1532 function _0x71853a() {
1533 ! function(_0x3138b4, _0x15aab3) {
1534 if (!(_0x3138b4 instanceof _0x15aab3)) throw new TypeError(a0_0xeeba('0x8c'));
1535 }(this, _0x71853a);
1536 }
1537 var _0x16d79c, _0x24d631, _0x435737;
1538 return _0x16d79c = _0x71853a, _0x435737 = [{
1539 'key': a0_0xeeba('0x176'),
1540 'value': function() {
1541 _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x2a6'), 0x2), _0x71853a[a0_0xeeba('0x306')]();
1542 }
1543 }, {
1544 'key': 'initButton',
1545 'value': function() {
1546 _0x538336['initButtons'](a0_0xeeba('0x20'));
1547 }
1548 }, {
1549 'key': a0_0xeeba('0x1e2'),
1550 'value': function(_0x1aaaeb) {
1551 '' !== _0x1aaaeb && null != _0x1aaaeb && $[a0_0xeeba('0x63')](_0x71853a[a0_0xeeba('0x6b')], _0x1aaaeb);
1552 }
1553 }, {
1554 'key': a0_0xeeba('0x1b3'),
1555 'value': function(_0xdf5b36) {
1556 var _0x584600 = {
1557 'party': !0x1,
1558 'triumph': !0x1,
1559 'theater': !0x1
1560 },
1561 _0x3385e4 = ITowns[a0_0xeeba('0x3a5')][_0xdf5b36][a0_0xeeba('0x1ee')]()[a0_0xeeba('0xfe')],
1562 _0x46c385 = ITowns[a0_0xeeba('0x3a5')][_0xdf5b36][a0_0xeeba('0x87')]();
1563 return _0x3385e4['academy'] >= 0x1e && _0x46c385[a0_0xeeba('0x33d')] >= 0x3a98 && _0x46c385[a0_0xeeba('0x3e')] >= 0x4650 && _0x46c385[a0_0xeeba('0x243')] >= 0x3a98 && (_0x584600['party'] = !0x0), 0x1 === _0x3385e4[a0_0xeeba('0x39b')] && _0x46c385['wood'] >= 0x2710 && _0x46c385[a0_0xeeba('0x3e')] >= 0x2ee0 && _0x46c385['iron'] >= 0x2710 && (_0x584600[a0_0xeeba('0x39b')] = !0x0), MM[a0_0xeeba('0x14a')]('PlayerKillpoints')['getUnusedPoints']() >= 0x12c && (_0x584600[a0_0xeeba('0x50')] = !0x0), _0x584600;
1564 }
1565 }, {
1566 'key': a0_0xeeba('0x16'),
1567 'value': function(_0x23b896) {
1568 return !ITowns[a0_0xeeba('0x3a5')][_0x23b896['id']][a0_0xeeba('0x23')]() && !!_0x538336[a0_0xeeba('0x2eb')][a0_0xeeba('0x20')][a0_0xeeba('0x30f')] && (_0x23b896[a0_0xeeba('0x2eb')]['Autoculture']['isReadyTime'] >= Timestamp[a0_0xeeba('0x189')]() ? _0x23b896[a0_0xeeba('0x2eb')][a0_0xeeba('0x20')][a0_0xeeba('0x3bd')] : !(void 0x0 === _0x71853a['settings']['towns'][_0x23b896['id']] || !(_0x71853a[a0_0xeeba('0x6b')][a0_0xeeba('0x3a5')][_0x23b896['id']][a0_0xeeba('0x3de')] && _0x71853a[a0_0xeeba('0x1b3')](_0x23b896['id'])[a0_0xeeba('0x3de')] || _0x71853a[a0_0xeeba('0x6b')][a0_0xeeba('0x3a5')][_0x23b896['id']][a0_0xeeba('0x50')] && _0x71853a[a0_0xeeba('0x1b3')](_0x23b896['id'])['triumph'] || _0x71853a['settings'][a0_0xeeba('0x3a5')][_0x23b896['id']][a0_0xeeba('0x39b')] && _0x71853a[a0_0xeeba('0x1b3')](_0x23b896['id'])[a0_0xeeba('0x39b')])));
1569 }
1570 }, {
1571 'key': a0_0xeeba('0x26a'),
1572 'value': function(_0x461901) {
1573 return !!_0x71853a[a0_0xeeba('0x234')]() && (_0x538336[a0_0xeeba('0x2eb')][a0_0xeeba('0x20')][a0_0xeeba('0x30f')] ? (_0x71853a[a0_0xeeba('0x2e9')] = _0x461901, _0x71853a[a0_0xeeba('0xa4')] = ITowns[a0_0xeeba('0x3a5')][_0x71853a[a0_0xeeba('0x2e9')]['id']], void(_0x538336[a0_0xeeba('0x155')] !== _0x71853a[a0_0xeeba('0x2e9')][a0_0xeeba('0x2d4')] ? (_0x217695[a0_0xeeba('0x7b')](_0x71853a['town'][a0_0xeeba('0x16d')] + a0_0xeeba('0x8f'), 0x2), _0x3f8845[a0_0xeeba('0xcf')](_0x71853a['town']['id'], function() {
1574 if (!_0x71853a['checkEnabled']()) return !0x1;
1575 _0x538336[a0_0xeeba('0x155')] = _0x71853a[a0_0xeeba('0x2e9')][a0_0xeeba('0x2d4')], _0x71853a[a0_0xeeba('0x1df')]();
1576 })) : _0x71853a['start']())) : (_0x71853a[a0_0xeeba('0x210')](0x0), !0x1));
1577 }
1578 }, {
1579 'key': a0_0xeeba('0x1df'),
1580 'value': function() {
1581 if (!_0x71853a['checkEnabled']()) return !0x1;
1582 _0x71853a['interval'] = setTimeout(function() {
1583 void 0x0 !== _0x71853a['settings'][a0_0xeeba('0x3a5')][_0x71853a[a0_0xeeba('0x2e9')]['id']] && (_0x217695[a0_0xeeba('0x7b')](_0x71853a['town']['name'] + '\x20getting\x20event\x20information.', 0x2), _0x3f8845[a0_0xeeba('0x18a')](_0x71853a['town']['id'], function(_0x3d0923) {
1584 if (!_0x71853a[a0_0xeeba('0x234')]()) return !0x1;
1585 var _0x30589e = [];
1586 _0x30589e[a0_0xeeba('0x172')]({
1587 'name': a0_0xeeba('0x50'),
1588 'waiting': 0x4b00,
1589 'element': $(_0x3d0923[a0_0xeeba('0x3e9')][a0_0xeeba('0x1b7')])[a0_0xeeba('0x2f6')]('#place_triumph')
1590 }), _0x30589e[a0_0xeeba('0x172')]({
1591 'name': a0_0xeeba('0x3de'),
1592 'waiting': 0xe100,
1593 'element': $(_0x3d0923[a0_0xeeba('0x3e9')][a0_0xeeba('0x1b7')])[a0_0xeeba('0x2f6')](a0_0xeeba('0x6'))
1594 }), _0x30589e[a0_0xeeba('0x172')]({
1595 'name': 'theater',
1596 'waiting': 0x459c0,
1597 'element': $(_0x3d0923[a0_0xeeba('0x3e9')][a0_0xeeba('0x1b7')])[a0_0xeeba('0x2f6')](a0_0xeeba('0x374'))
1598 });
1599 var _0x1e208c = !0x1,
1600 _0x35cc5c = 0x0,
1601 _0x278c07 = 0x12c;
1602 ! function _0x535a16(_0x182980) {
1603 if (0x3 === _0x35cc5c) return _0x1e208c || _0x217695[a0_0xeeba('0x7b')](_0x71853a[a0_0xeeba('0x2e9')]['name'] + '\x20not\x20ready\x20yet.', 0x2), _0x71853a[a0_0xeeba('0x210')](_0x278c07), !0x1;
1604 if (a0_0xeeba('0x50') === _0x182980[a0_0xeeba('0x16d')] && (!_0x71853a[a0_0xeeba('0x6b')]['towns'][_0x71853a[a0_0xeeba('0x2e9')]['id']][a0_0xeeba('0x50')] || !_0x71853a[a0_0xeeba('0x1b3')](_0x71853a[a0_0xeeba('0x2e9')]['id'])['triumph'] || MM[a0_0xeeba('0x14a')](a0_0xeeba('0xa7'))[a0_0xeeba('0x35c')]() < 0x12c)) return _0x35cc5c++, _0x535a16(_0x30589e[_0x35cc5c]), !0x1;
1605 if (!('party' !== _0x182980[a0_0xeeba('0x16d')] || _0x71853a['settings']['towns'][_0x71853a[a0_0xeeba('0x2e9')]['id']][a0_0xeeba('0x3de')] && _0x71853a[a0_0xeeba('0x1b3')](_0x71853a['town']['id'])['party'])) return _0x35cc5c++, _0x535a16(_0x30589e[_0x35cc5c]), !0x1;
1606 if (!(a0_0xeeba('0x39b') !== _0x182980[a0_0xeeba('0x16d')] || _0x71853a[a0_0xeeba('0x6b')][a0_0xeeba('0x3a5')][_0x71853a[a0_0xeeba('0x2e9')]['id']][a0_0xeeba('0x39b')] && _0x71853a[a0_0xeeba('0x1b3')](_0x71853a[a0_0xeeba('0x2e9')]['id'])[a0_0xeeba('0x39b')])) return _0x35cc5c++, _0x535a16(_0x30589e[_0x35cc5c]), !0x1;
1607 if (_0x182980[a0_0xeeba('0x331')][a0_0xeeba('0x2f6')](a0_0xeeba('0x207') + _0x182980[a0_0xeeba('0x16d')])[a0_0xeeba('0x26d')]) {
1608 var _0x33730b = _0x27e24c[a0_0xeeba('0x32c')](_0x182980[a0_0xeeba('0x331')][a0_0xeeba('0x2f6')](a0_0xeeba('0x207') + _0x182980['name'])[a0_0xeeba('0x1b7')]());
1609 return (0x12c === _0x278c07 || _0x278c07 > _0x33730b) && (_0x278c07 = _0x33730b), _0x35cc5c++, _0x535a16(_0x30589e[_0x35cc5c]), !0x1;
1610 }
1611 return '1' !== _0x182980[a0_0xeeba('0x331')][a0_0xeeba('0x2f6')](a0_0xeeba('0x38b'))[a0_0xeeba('0x31f')](a0_0xeeba('0xc3')) ? (_0x35cc5c++, _0x535a16(_0x30589e[_0x35cc5c]), !0x1) : '1' === _0x182980[a0_0xeeba('0x331')][a0_0xeeba('0x2f6')](a0_0xeeba('0x38b'))[a0_0xeeba('0x31f')](a0_0xeeba('0xc3')) ? (_0x71853a['interval'] = setTimeout(function() {
1612 _0x1e208c = !0x0, _0x71853a[a0_0xeeba('0x2ed')](_0x182980, function(_0x3bf47f) {
1613 if (_0x71853a['isPauzed']) return !0x1;
1614 (0x12c === _0x278c07 || _0x278c07 >= _0x3bf47f) && (_0x278c07 = _0x3bf47f), _0x35cc5c++, _0x535a16(_0x30589e[_0x35cc5c]);
1615 });
1616 }, (_0x35cc5c + 0x1) * _0x27e24c[a0_0xeeba('0x9c')](0x3e8, 0x7d0)), !0x1) : (_0x35cc5c++, void _0x535a16(_0x30589e[_0x35cc5c]));
1617 }(_0x30589e[_0x35cc5c]);
1618 }));
1619 }, _0x27e24c[a0_0xeeba('0x9c')](0x7d0, 0xfa0));
1620 }
1621 }, {
1622 'key': a0_0xeeba('0x2ed'),
1623 'value': function(_0x1f277d, _0x3e5531) {
1624 if (!_0x71853a[a0_0xeeba('0x234')]()) return !0x1;
1625 _0x3f8845[a0_0xeeba('0x2af')](_0x71853a['town']['id'], _0x1f277d[a0_0xeeba('0x16d')], function(_0x283628) {
1626 if (!_0x71853a[a0_0xeeba('0x234')]()) return !0x1;
1627 var _0x332b69 = 0x0;
1628 if (void 0x0 === _0x283628[a0_0xeeba('0x36d')][a0_0xeeba('0x34f')]) {
1629 var _0x4702e8 = {};
1630 if ($[a0_0xeeba('0x1f')](_0x283628[a0_0xeeba('0x36d')][a0_0xeeba('0x2b4')], function(_0x48de4b, _0x45a870) {
1631 'Celebration' === _0x45a870[a0_0xeeba('0x2e0')] && (_0x4702e8 = JSON[a0_0xeeba('0x199')](_0x45a870[a0_0xeeba('0x3b9')]));
1632 }), _0x71853a[a0_0xeeba('0x2e9')]['id'] === Game[a0_0xeeba('0x1ea')])
1633 for (var _0x48cbf0 = GPWindowMgr[a0_0xeeba('0x1fc')](GPWindowMgr['TYPE_BUILDING']), _0xe4bad2 = 0x0; _0x48cbf0[a0_0xeeba('0x26d')] > _0xe4bad2; _0xe4bad2++) _0x48cbf0[_0xe4bad2][a0_0xeeba('0x1a1')]()[a0_0xeeba('0x391')]();
1634 void 0x0 !== _0x4702e8[a0_0xeeba('0x274')] && (_0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x390') + PopupFactory['texts'][_0x4702e8['Celebration'][a0_0xeeba('0x2b')]] + '\x20is\x20started.</span>', 0x2), _0x332b69 = _0x4702e8[a0_0xeeba('0x274')][a0_0xeeba('0x28f')] - Timestamp[a0_0xeeba('0x189')]());
1635 } else _0x217695['Log'](_0x71853a[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + '\x20' + _0x283628[a0_0xeeba('0x36d')]['error'], 0x2);
1636 _0x3e5531(_0x332b69);
1637 });
1638 }
1639 }, {
1640 'key': a0_0xeeba('0x35e'),
1641 'value': function() {
1642 clearInterval(_0x71853a['interval']), _0x71853a[a0_0xeeba('0x12a')] = !0x0;
1643 }
1644 }, {
1645 'key': a0_0xeeba('0x210'),
1646 'value': function(_0x4d94c5) {
1647 if (!_0x71853a[a0_0xeeba('0x234')]()) return !0x1;
1648 _0x71853a[a0_0xeeba('0x2e9')][a0_0xeeba('0x2eb')][a0_0xeeba('0x20')][a0_0xeeba('0x3bd')] = Timestamp['now']() + _0x4d94c5, _0x538336[a0_0xeeba('0x294')]['next']();
1649 }
1650 }, {
1651 'key': 'checkEnabled',
1652 'value': function() {
1653 return _0x538336[a0_0xeeba('0x2eb')][a0_0xeeba('0x20')][a0_0xeeba('0x30f')];
1654 }
1655 }, {
1656 'key': a0_0xeeba('0x3d1'),
1657 'value': function() {
1658 var _0x9fe1fe = a0_0xeeba('0x1fa');
1659 _0x9fe1fe += a0_0xeeba('0x1ba'), _0x9fe1fe += '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w40\x22\x20id=\x22header_island\x22>\x20Island</div>', _0x9fe1fe += '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w35\x22\x20id=\x22header_wood\x22><div\x20class=\x22col\x20header\x20wood\x22></div></div>', _0x9fe1fe += a0_0xeeba('0x2e3'), _0x9fe1fe += a0_0xeeba('0x158'), _0x9fe1fe += a0_0xeeba('0x3'), _0x9fe1fe += a0_0xeeba('0x18'), _0x9fe1fe += a0_0xeeba('0x7'), _0x9fe1fe += '<div\x20class=\x22towninfo\x20small\x20tag_header\x20col\x20w50\x22\x20id=\x22header_storage\x22><div\x20class=\x22col\x20header\x20celebration\x20triumph\x22></div></div>', _0x9fe1fe += a0_0xeeba('0x2e4'), _0x9fe1fe += a0_0xeeba('0x3c'), _0x9fe1fe += '</li></ul><div\x20id=\x22bot_townsoverview_table_wrapper\x22>', _0x9fe1fe += a0_0xeeba('0x195');
1660 var _0x57fda5 = 0x0;
1661 $[a0_0xeeba('0x1f')](_0x538336[a0_0xeeba('0xdb')], function(_0x1c6b27, _0x193de8) {
1662 var _0x535054 = ITowns[a0_0xeeba('0x3a5')][_0x193de8['id']],
1663 _0x290ac0 = _0x535054[a0_0xeeba('0x185')](),
1664 _0x17bad5 = _0x535054['getIslandCoordinateY'](),
1665 _0x288f37 = _0x535054[a0_0xeeba('0x87')]();
1666 _0x9fe1fe += a0_0xeeba('0x353') + (_0x57fda5 % 0x2 ? a0_0xeeba('0x2d') : a0_0xeeba('0x1e8')) + a0_0xeeba('0xa2') + _0x535054['id'] + '\x22>', _0x9fe1fe += a0_0xeeba('0x208'), _0x9fe1fe += '<div>', _0x9fe1fe += a0_0xeeba('0x19a') + _0x535054[a0_0xeeba('0x91')]() + a0_0xeeba('0x3bf') + _0x535054[a0_0xeeba('0x16d')] + a0_0xeeba('0x2ad'), _0x9fe1fe += a0_0xeeba('0x34') + _0x535054[a0_0xeeba('0x272')]() + a0_0xeeba('0x2f1'), _0x9fe1fe += '</div></div>', _0x9fe1fe += a0_0xeeba('0x25'), _0x9fe1fe += a0_0xeeba('0x24d'), _0x9fe1fe += a0_0xeeba('0xad') + _0x290ac0 + ',' + _0x17bad5 + a0_0xeeba('0x2fe'), _0x9fe1fe += '</div>', _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x25'), _0x9fe1fe += a0_0xeeba('0x2ac') + (_0x288f37[a0_0xeeba('0x33d')] === _0x288f37[a0_0xeeba('0x367')] ? a0_0xeeba('0x12e') : '') + '\x22>', _0x9fe1fe += _0x288f37[a0_0xeeba('0x33d')], _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += '<div\x20class=\x22towninfo\x20small\x20townsoverview\x20col\x20w40\x22>', _0x9fe1fe += a0_0xeeba('0x10a') + (_0x288f37[a0_0xeeba('0x3e')] === _0x288f37[a0_0xeeba('0x367')] ? '\x20town_storage_full' : '') + '\x22>', _0x9fe1fe += _0x288f37[a0_0xeeba('0x3e')], _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x25'), _0x9fe1fe += a0_0xeeba('0x31d') + (_0x288f37[a0_0xeeba('0x243')] === _0x288f37[a0_0xeeba('0x367')] ? '\x20town_storage_full' : '') + '\x22>', _0x9fe1fe += _0x288f37[a0_0xeeba('0x243')], _0x9fe1fe += '</div>', _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x97'), _0x9fe1fe += '<div>', _0x9fe1fe += '<span\x20class=\x22town_population_count\x22>' + _0x288f37[a0_0xeeba('0x102')] + a0_0xeeba('0x2fe'), _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x25'), _0x9fe1fe += '<div>', _0x9fe1fe += a0_0xeeba('0x20b') + _0x288f37[a0_0xeeba('0x367')] + '</span>', _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0xc8'), _0x9fe1fe += a0_0xeeba('0x30') + _0x535054['id'] + '\x22>', _0x9fe1fe += '</div>', _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0xc8'), _0x9fe1fe += a0_0xeeba('0x396') + _0x535054['id'] + '\x22>', _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += '<div\x20class=\x22towninfo\x20small\x20townsoverview\x20col\x20w50\x22>', _0x9fe1fe += a0_0xeeba('0x157') + _0x535054['id'] + '\x22>', _0x9fe1fe += '</div>', _0x9fe1fe += a0_0xeeba('0x2c5'), _0x9fe1fe += a0_0xeeba('0x3c'), _0x9fe1fe += a0_0xeeba('0x278'), _0x57fda5++;
1667 }), _0x9fe1fe += '</ul></div>', _0x9fe1fe += a0_0xeeba('0x1d'), _0x9fe1fe += '<div\x20id=\x22bot_culture_settings\x22></div>', _0x9fe1fe += a0_0xeeba('0x2c5');
1668 var _0x48ba87 = {};
1669
1670 function _0x246187(_0x54c444) {
1671 var _0x38ee11 = $(_0x54c444 + a0_0xeeba('0x282'));
1672 _0x48ba87[_0x54c444] ? (_0x38ee11[a0_0xeeba('0x1b2')](a0_0xeeba('0x255')), _0x38ee11[a0_0xeeba('0x2f6')](a0_0xeeba('0x6a'))['prop']('checked', !0x1), _0x48ba87[_0x54c444] = !0x1) : (_0x38ee11[a0_0xeeba('0xe4')](a0_0xeeba('0x255')), _0x38ee11['find'](a0_0xeeba('0x6a'))[a0_0xeeba('0x98')](a0_0xeeba('0x255'), !0x0), _0x48ba87[_0x54c444] = !0x0);
1673 }
1674 var _0x8e9b61 = $(_0x9fe1fe);
1675 return _0x8e9b61['find'](a0_0xeeba('0x276'))[a0_0xeeba('0x93')](new MousePopup(a0_0xeeba('0x142') + PopupFactory['texts']['party']))['on'](a0_0xeeba('0xf0'), function() {
1676 _0x246187(a0_0xeeba('0xf1'));
1677 }), _0x8e9b61[a0_0xeeba('0x2f6')](a0_0xeeba('0x21'))[a0_0xeeba('0x93')](new MousePopup(a0_0xeeba('0x142') + PopupFactory[a0_0xeeba('0x330')][a0_0xeeba('0x50')]))['on']('click', function() {
1678 _0x246187(a0_0xeeba('0xc1'));
1679 }), _0x8e9b61[a0_0xeeba('0x2f6')]('.celebration.theater')['mousePopup'](new MousePopup(a0_0xeeba('0x142') + PopupFactory[a0_0xeeba('0x330')][a0_0xeeba('0x39b')]))['on'](a0_0xeeba('0xf0'), function() {
1680 _0x246187('.culture_theater_row');
1681 }), $[a0_0xeeba('0x1f')](_0x538336[a0_0xeeba('0xdb')], function(_0x2bb33c, _0x4577f1) {
1682 _0x8e9b61['find'](a0_0xeeba('0x360') + _0x4577f1['id'])[a0_0xeeba('0x1b7')](_0x15022e['checkbox']({
1683 'id': a0_0xeeba('0x308') + _0x4577f1['id'],
1684 'name': 'bot_culture_party_' + _0x4577f1['id'],
1685 'checked': _0x4577f1['id'] in _0x71853a[a0_0xeeba('0x6b')][a0_0xeeba('0x3a5')] && _0x71853a['settings'][a0_0xeeba('0x3a5')][_0x4577f1['id']][a0_0xeeba('0x3de')],
1686 'disabled': !_0x71853a['checkAvailable'](_0x4577f1['id'])[a0_0xeeba('0x3de')]
1687 })), _0x8e9b61[a0_0xeeba('0x2f6')](a0_0xeeba('0x7d') + _0x4577f1['id'])[a0_0xeeba('0x1b7')](_0x15022e['checkbox']({
1688 'id': a0_0xeeba('0xfb') + _0x4577f1['id'],
1689 'name': 'bot_culture_triumph_' + _0x4577f1['id'],
1690 'checked': _0x4577f1['id'] in _0x71853a[a0_0xeeba('0x6b')][a0_0xeeba('0x3a5')] && _0x71853a[a0_0xeeba('0x6b')]['towns'][_0x4577f1['id']][a0_0xeeba('0x50')],
1691 'disabled': !_0x71853a[a0_0xeeba('0x1b3')](_0x4577f1['id'])['triumph']
1692 })), _0x8e9b61[a0_0xeeba('0x2f6')](a0_0xeeba('0xcd') + _0x4577f1['id'])[a0_0xeeba('0x1b7')](_0x15022e[a0_0xeeba('0x18e')]({
1693 'id': a0_0xeeba('0x297') + _0x4577f1['id'],
1694 'name': a0_0xeeba('0x297') + _0x4577f1['id'],
1695 'checked': _0x4577f1['id'] in _0x71853a['settings'][a0_0xeeba('0x3a5')] && _0x71853a['settings'][a0_0xeeba('0x3a5')][_0x4577f1['id']]['theater'],
1696 'disabled': !_0x71853a['checkAvailable'](_0x4577f1['id'])[a0_0xeeba('0x39b')]
1697 }));
1698 }), _0x8e9b61['find']('#bot_culture_settings')['append'](function() {
1699 var _0x1dc92a = _0x15022e[a0_0xeeba('0x33f')]({
1700 'name': DM[a0_0xeeba('0x3ec')](a0_0xeeba('0x1d6'))[a0_0xeeba('0x26')],
1701 'style': a0_0xeeba('0x171'),
1702 'class': _0x538336[a0_0xeeba('0x60')] ? '' : a0_0xeeba('0x269')
1703 })['on'](a0_0xeeba('0xf0'), function() {
1704 if (!_0x538336['hasPremium']) return !0x1;
1705 var _0x566a37 = $(a0_0xeeba('0x3d4'))['serializeObject']();
1706 $['each'](_0x538336[a0_0xeeba('0xdb')], function(_0x156a3d, _0x250308) {
1707 _0x71853a['settings'][a0_0xeeba('0x3a5')][_0x250308['id']] = {
1708 'party': !0x1,
1709 'triumph': !0x1,
1710 'theater': !0x1
1711 };
1712 }), $[a0_0xeeba('0x1f')](_0x566a37, function(_0x59b106, _0x4c57e1) {
1713 _0x59b106['indexOf']('bot_culture_party_') >= 0x0 ? _0x71853a['settings']['towns'][_0x59b106[a0_0xeeba('0x92')](a0_0xeeba('0x308'), '')]['party'] = void 0x0 !== _0x4c57e1 : _0x59b106[a0_0xeeba('0x2b1')](a0_0xeeba('0xfb')) >= 0x0 ? _0x71853a[a0_0xeeba('0x6b')][a0_0xeeba('0x3a5')][_0x59b106[a0_0xeeba('0x92')](a0_0xeeba('0xfb'), '')]['triumph'] = void 0x0 !== _0x4c57e1 : _0x59b106[a0_0xeeba('0x2b1')](a0_0xeeba('0x297')) >= 0x0 && (_0x71853a[a0_0xeeba('0x6b')][a0_0xeeba('0x3a5')][_0x59b106[a0_0xeeba('0x92')](a0_0xeeba('0x297'), '')]['theater'] = void 0x0 !== _0x4c57e1);
1714 }), _0x71853a[a0_0xeeba('0x6b')][a0_0xeeba('0x11e')] = $(a0_0xeeba('0x2ff'))[a0_0xeeba('0x98')](a0_0xeeba('0x255')), _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0x3d0'), {
1715 'player_id': _0x27e24c['Account']['player_id'],
1716 'world_id': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x2a5')],
1717 'csrfToken': _0x27e24c['Account']['csrfToken'],
1718 'autoculture_settings': _0x27e24c[a0_0xeeba('0x101')](_0x71853a[a0_0xeeba('0x6b')])
1719 }, _0x71853a[a0_0xeeba('0x12')]);
1720 });
1721 return _0x538336['hasPremium'] || _0x1dc92a[a0_0xeeba('0x93')](new MousePopup(_0x538336[a0_0xeeba('0x36b')])), _0x1dc92a;
1722 })[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x18e')]({
1723 'text': 'AutoStart\x20AutoCulture.',
1724 'id': a0_0xeeba('0x3c5'),
1725 'name': 'autoculture_autostart',
1726 'checked': _0x71853a[a0_0xeeba('0x6b')][a0_0xeeba('0x11e')]
1727 })), _0x15022e[a0_0xeeba('0x1d3')](a0_0xeeba('0x2fa'), a0_0xeeba('0x1f1'), _0x8e9b61, 'margin-bottom:9px;', !_0x538336['hasPremium']);
1728 }
1729 }, {
1730 'key': 'callbackSave',
1731 'value': function() {
1732 _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x1ec'), 0x2), HumanMessage['success'](a0_0xeeba('0x2f'));
1733 }
1734 }], (_0x24d631 = null) && _0x25483a(_0x16d79c[a0_0xeeba('0x166')], _0x24d631), _0x435737 && _0x25483a(_0x16d79c, _0x435737), _0x71853a;
1735 }();
1736 Object[a0_0xeeba('0x38c')](_0x4a6138, a0_0xeeba('0x6b'), {
1737 'enumerable': !0x0,
1738 'writable': !0x0,
1739 'value': {
1740 'autostart': !0x1,
1741 'towns': {}
1742 }
1743 }), Object[a0_0xeeba('0x38c')](_0x4a6138, a0_0xeeba('0x2e9'), {
1744 'enumerable': !0x0,
1745 'writable': !0x0,
1746 'value': null
1747 }), Object[a0_0xeeba('0x38c')](_0x4a6138, 'iTown', {
1748 'enumerable': !0x0,
1749 'writable': !0x0,
1750 'value': null
1751 }), Object[a0_0xeeba('0x38c')](_0x4a6138, a0_0xeeba('0xb0'), {
1752 'enumerable': !0x0,
1753 'writable': !0x0,
1754 'value': null
1755 }), Object[a0_0xeeba('0x38c')](_0x4a6138, a0_0xeeba('0x12a'), {
1756 'enumerable': !0x0,
1757 'writable': !0x0,
1758 'value': !0x1
1759 });
1760 var _0x163e95 = _0x4a6138;
1761
1762 function _0x5ba80d(_0x4f30cb, _0x44ff9f) {
1763 for (var _0x59ec49 = 0x0; _0x59ec49 < _0x44ff9f[a0_0xeeba('0x26d')]; _0x59ec49++) {
1764 var _0x32171e = _0x44ff9f[_0x59ec49];
1765 _0x32171e[a0_0xeeba('0x35f')] = _0x32171e[a0_0xeeba('0x35f')] || !0x1, _0x32171e[a0_0xeeba('0x30d')] = !0x0, 'value' in _0x32171e && (_0x32171e[a0_0xeeba('0x2ef')] = !0x0), Object[a0_0xeeba('0x38c')](_0x4f30cb, _0x32171e[a0_0xeeba('0x2d4')], _0x32171e);
1766 }
1767 }
1768 var _0x2b2772 = function() {
1769 function _0x2164b8() {
1770 ! function(_0x5d2ad6, _0x19ed7d) {
1771 if (!(_0x5d2ad6 instanceof _0x19ed7d)) throw new TypeError(a0_0xeeba('0x8c'));
1772 }(this, _0x2164b8);
1773 }
1774 var _0xe55898, _0x900bba, _0x253556;
1775 return _0xe55898 = _0x2164b8, _0x253556 = [{
1776 'key': a0_0xeeba('0x176'),
1777 'value': function() {
1778 _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x279'), 0x3), _0x2164b8[a0_0xeeba('0x28e')](), _0x2164b8['initButton'](), _0x2164b8[a0_0xeeba('0x1f8')](), _0x2164b8[a0_0xeeba('0x3ee')]();
1779 }
1780 }, {
1781 'key': 'setSettings',
1782 'value': function(_0x1b99b4) {
1783 '' !== _0x1b99b4 && null != _0x1b99b4 && $[a0_0xeeba('0x63')](_0x2164b8['settings'], _0x1b99b4);
1784 }
1785 }, {
1786 'key': a0_0xeeba('0x3ee'),
1787 'value': function() {
1788 $(a0_0xeeba('0x120'))[a0_0xeeba('0xe4')](a0_0xeeba('0x204'));
1789 }
1790 }, {
1791 'key': 'setQueue',
1792 'value': function(_0x5a778a, _0x3f5f42, _0x691b99) {
1793 '' !== _0x5a778a && null != _0x5a778a && (_0x2164b8['building_queue'] = _0x5a778a, _0x2164b8['initQueue']($(a0_0xeeba('0x120')), 'building')), '' !== _0x3f5f42 && null != _0x3f5f42 && (_0x2164b8[a0_0xeeba('0x256')] = _0x3f5f42), '' !== _0x691b99 && null != _0x691b99 && (_0x2164b8[a0_0xeeba('0x163')] = _0x691b99);
1794 }
1795 }, {
1796 'key': a0_0xeeba('0xf9'),
1797 'value': function(_0xcb96c4) {
1798 switch (_0xcb96c4) {
1799 case a0_0xeeba('0x321'):
1800 case a0_0xeeba('0x0'):
1801 case a0_0xeeba('0xab'):
1802 case a0_0xeeba('0x211'):
1803 _0x2164b8[a0_0xeeba('0x1c6')][a0_0xeeba('0x2d7')](_0xcb96c4);
1804 break;
1805 case a0_0xeeba('0x3c6'):
1806 case 'building_barracks/build':
1807 case 'building_barracks/cancel':
1808 case 'building_barracks/tear_down':
1809 _0x2164b8['windows']['building_barracks_index'](_0xcb96c4);
1810 }
1811 }
1812 }, {
1813 'key': 'initFunction',
1814 'value': function() {
1815 var _0x1b7770;
1816 GameViews[a0_0xeeba('0x2df')][a0_0xeeba('0x166')][a0_0xeeba('0x223')] = (_0x1b7770 = GameViews[a0_0xeeba('0x2df')][a0_0xeeba('0x166')][a0_0xeeba('0x223')], function() {
1817 if (_0x1b7770[a0_0xeeba('0x2f9')](this, arguments), a0_0xeeba('0x12b') !== this['$el'][a0_0xeeba('0x315')] && a0_0xeeba('0x264') !== this[a0_0xeeba('0x202')][a0_0xeeba('0x315')] || _0x2164b8['initQueue'](this[a0_0xeeba('0x202')], a0_0xeeba('0x32e')), a0_0xeeba('0x128') === this[a0_0xeeba('0x202')][a0_0xeeba('0x315')]) {
1818 var _0x3f707f = this[a0_0xeeba('0x202')][a0_0xeeba('0x2f6')](a0_0xeeba('0x35a'));
1819 _0x3f707f[a0_0xeeba('0x1d7')](a0_0xeeba('0xe2')) ? _0x2164b8[a0_0xeeba('0x271')](this['$el'], a0_0xeeba('0x2a4')) : _0x3f707f[a0_0xeeba('0x1d7')](a0_0xeeba('0x1e4')) && _0x2164b8[a0_0xeeba('0x271')](this[a0_0xeeba('0x202')], a0_0xeeba('0x316'));
1820 }
1821 }), UnitOrder[a0_0xeeba('0x232')] = function(_0x547e7a) {
1822 return function() {
1823 _0x547e7a[a0_0xeeba('0x2f9')](this, arguments), this[a0_0xeeba('0xe2')] ? _0x2164b8[a0_0xeeba('0x215')](this, a0_0xeeba('0x2a4')) : this[a0_0xeeba('0xe2')] || _0x2164b8[a0_0xeeba('0x215')](this, 'ship');
1824 };
1825 }(UnitOrder[a0_0xeeba('0x232')]);
1826 }
1827 }, {
1828 'key': 'initButton',
1829 'value': function() {
1830 _0x538336[a0_0xeeba('0x1d9')](a0_0xeeba('0x371'));
1831 }
1832 }, {
1833 'key': a0_0xeeba('0x1f8'),
1834 'value': function() {
1835 $('.advisor_frame.captain\x20div')[a0_0xeeba('0x1d7')](a0_0xeeba('0x15a')) && (_0x2164b8[a0_0xeeba('0x369')] = !0x0), _0x2164b8[a0_0xeeba('0x294')] = _0x2164b8[a0_0xeeba('0x369')] ? 0x7 : 0x2;
1836 }
1837 }, {
1838 'key': 'checkReady',
1839 'value': function(_0x5dd0a8) {
1840 var _0x545ce = ITowns['towns'][_0x5dd0a8['id']];
1841 return !!_0x538336[a0_0xeeba('0x2eb')][a0_0xeeba('0x371')][a0_0xeeba('0x30f')] && !_0x545ce[a0_0xeeba('0x23')]() && !!(_0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x1e3')] || _0x2164b8[a0_0xeeba('0x6b')]['enable_units'] || _0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x2ec')]) && (_0x5dd0a8[a0_0xeeba('0x2eb')][a0_0xeeba('0x371')][a0_0xeeba('0x3bd')] >= Timestamp[a0_0xeeba('0x189')]() ? _0x5dd0a8['modules'][a0_0xeeba('0x371')][a0_0xeeba('0x3bd')] : !(void 0x0 === _0x2164b8['building_queue'][_0x5dd0a8['id']] && void 0x0 === _0x2164b8[a0_0xeeba('0x256')][_0x5dd0a8['id']] && void 0x0 === _0x2164b8['ships_queue'][_0x5dd0a8['id']]));
1842 }
1843 }, {
1844 'key': a0_0xeeba('0x3d7'),
1845 'value': function(_0x4c4e12) {
1846 if (!_0x2164b8[a0_0xeeba('0x234')]()) return !0x1;
1847 _0x2164b8[a0_0xeeba('0x2e9')] = _0x4c4e12, _0x2164b8[a0_0xeeba('0xa4')] = ITowns[a0_0xeeba('0x3a5')][_0x2164b8[a0_0xeeba('0x2e9')]['id']], _0x538336[a0_0xeeba('0x155')] !== _0x2164b8[a0_0xeeba('0x2e9')][a0_0xeeba('0x2d4')] ? (_0x217695['Log'](_0x2164b8[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + a0_0xeeba('0x8f'), 0x3), _0x3f8845['switch_town'](_0x2164b8[a0_0xeeba('0x2e9')]['id'], function() {
1848 _0x538336[a0_0xeeba('0x155')] = _0x2164b8['town'][a0_0xeeba('0x2d4')], _0x2164b8[a0_0xeeba('0x262')]();
1849 })) : _0x2164b8[a0_0xeeba('0x262')]();
1850 }
1851 }, {
1852 'key': a0_0xeeba('0x2d8'),
1853 'value': function() {
1854 if (!_0x2164b8['checkEnabled']()) return !0x1;
1855 void 0x0 === _0x2164b8['building_queue'][_0x2164b8['town']['id']] && void 0x0 === _0x2164b8[a0_0xeeba('0x256')][_0x2164b8[a0_0xeeba('0x2e9')]['id']] && void 0x0 === _0x2164b8[a0_0xeeba('0x163')][_0x2164b8[a0_0xeeba('0x2e9')]['id']] && _0x2164b8['finished']();
1856 var _0x4caaa2 = _0x2164b8[a0_0xeeba('0x245')](_0x2164b8[a0_0xeeba('0x2e9')]['id'])[a0_0xeeba('0xd0')];
1857 a0_0xeeba('0x32e') === _0x4caaa2 ? _0x2164b8[a0_0xeeba('0x134')]() : a0_0xeeba('0x2a4') === _0x4caaa2 || a0_0xeeba('0x316') === _0x4caaa2 ? _0x2164b8['startBuildUnits'](a0_0xeeba('0x2a4') === _0x4caaa2 ? _0x2164b8[a0_0xeeba('0x256')] : _0x2164b8['ships_queue'], _0x4caaa2) : _0x2164b8[a0_0xeeba('0x210')]();
1858 }
1859 }, {
1860 'key': 'startUpgrade',
1861 'value': function() {
1862 if (!_0x2164b8[a0_0xeeba('0x234')]()) return !0x1;
1863 GameDataInstantBuy['isEnabled']() && _0x2164b8[a0_0xeeba('0x1da')](_0x2164b8[a0_0xeeba('0x2e9')]['id']) ? _0x2164b8[a0_0xeeba('0xb0')] = setTimeout(function() {
1864 _0x3f8845['frontend_bridge'](_0x2164b8[a0_0xeeba('0x2e9')]['id'], {
1865 'model_url': 'BuildingOrder/' + _0x2164b8[a0_0xeeba('0x265')][a0_0xeeba('0x355')],
1866 'action_name': 'buyInstant',
1867 'arguments': {
1868 'order_id': _0x2164b8[a0_0xeeba('0x265')][a0_0xeeba('0x355')]
1869 },
1870 'town_id': _0x2164b8[a0_0xeeba('0x2e9')]['id'],
1871 'nl_init': !0x0
1872 }, function(_0x3fc8d4) {
1873 if (_0x3fc8d4[a0_0xeeba('0x81')]) {
1874 if (_0x2164b8[a0_0xeeba('0x2e9')]['id'] === Game[a0_0xeeba('0x1ea')])
1875 for (var _0x428fb8 = GPWindowMgr[a0_0xeeba('0x1fc')](GPWindowMgr[a0_0xeeba('0x2c4')]), _0xd5f23b = 0x0; _0x428fb8[a0_0xeeba('0x26d')] > _0xd5f23b; _0xd5f23b++) _0x428fb8[_0xd5f23b][a0_0xeeba('0x1a1')]()[a0_0xeeba('0x391')]();
1876 _0x217695['Log'](a0_0xeeba('0x19e') + _0x2164b8[a0_0xeeba('0x265')][a0_0xeeba('0x107')][a0_0xeeba('0x164')]() + a0_0xeeba('0x218') + _0x3fc8d4[a0_0xeeba('0x81')] + a0_0xeeba('0x2fe'), 0x3);
1877 }
1878 _0x3fc8d4[a0_0xeeba('0x34f')] && _0x217695[a0_0xeeba('0x7b')](_0x2164b8[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + '\x20' + _0x3fc8d4[a0_0xeeba('0x34f')], 0x3), _0x2164b8[a0_0xeeba('0xb0')] = setTimeout(function() {
1879 _0x2164b8[a0_0xeeba('0x265')] = !0x1, _0x2164b8[a0_0xeeba('0x2d8')]();
1880 }, _0x27e24c['randomize'](0x1f4, 0x2bc));
1881 });
1882 }, _0x27e24c['randomize'](0x3e8, 0x7d0)) : _0x2164b8[a0_0xeeba('0x2d8')]();
1883 }
1884 }, {
1885 'key': a0_0xeeba('0x23e'),
1886 'value': function(_0x86927f, _0xe174c1) {
1887 if (!_0x2164b8[a0_0xeeba('0x234')]()) return !0x1;
1888 if (void 0x0 !== _0x86927f[_0x2164b8['town']['id']])
1889 if (void 0x0 !== _0x86927f[_0x2164b8[a0_0xeeba('0x2e9')]['id']]) {
1890 var _0x30b5d5 = _0x86927f[_0x2164b8['town']['id']][0x0];
1891 GameDataUnits[a0_0xeeba('0x2ba')](_0x30b5d5[a0_0xeeba('0x115')]) >= _0x30b5d5[a0_0xeeba('0x27c')] ? _0x2164b8[a0_0xeeba('0xb0')] = setTimeout(function() {
1892 _0x3f8845[a0_0xeeba('0x2a0')](_0x2164b8[a0_0xeeba('0x2e9')]['id'], {
1893 'unit_id': _0x30b5d5[a0_0xeeba('0x115')],
1894 'amount': _0x30b5d5[a0_0xeeba('0x27c')],
1895 'town_id': _0x2164b8['town']['id'],
1896 'nl_init': !0x0
1897 }, function(_0x5e9935) {
1898 if (_0x5e9935[a0_0xeeba('0x34f')]) _0x217695['Log'](_0x2164b8[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + '\x20' + _0x5e9935[a0_0xeeba('0x34f')], 0x3);
1899 else {
1900 if (_0x2164b8[a0_0xeeba('0x2e9')]['id'] === Game[a0_0xeeba('0x1ea')])
1901 for (var _0x599825 = GPWindowMgr[a0_0xeeba('0x1fc')](GPWindowMgr[a0_0xeeba('0x2c4')]), _0x2fcd58 = 0x0; _0x599825[a0_0xeeba('0x26d')] > _0x2fcd58; _0x2fcd58++) _0x599825[_0x2fcd58][a0_0xeeba('0x1a1')]()[a0_0xeeba('0x391')]();
1902 _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x22a') + (a0_0xeeba('0x2a4') === _0xe174c1 ? a0_0xeeba('0x3a1') : a0_0xeeba('0x3a4')) + a0_0xeeba('0xf5') + _0x30b5d5[a0_0xeeba('0x27c')] + '\x20' + GameData[a0_0xeeba('0x2b8')][_0x30b5d5[a0_0xeeba('0x115')]][a0_0xeeba('0x377')] + a0_0xeeba('0x20d'), 0x3), _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0x1c4'), {
1903 'player_id': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x268')],
1904 'world_id': _0x27e24c[a0_0xeeba('0x3ea')]['world_id'],
1905 'csrfToken': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x343')],
1906 'town_id': _0x2164b8[a0_0xeeba('0x2e9')]['id'],
1907 'item_id': _0x30b5d5['id'],
1908 'type': _0xe174c1
1909 }, _0x2164b8[a0_0xeeba('0x28c')]($(a0_0xeeba('0x2ab')), _0xe174c1)), $(a0_0xeeba('0x2f2') + _0x30b5d5['id'])['remove']();
1910 }
1911 _0x2164b8[a0_0xeeba('0x210')]();
1912 });
1913 }, _0x27e24c[a0_0xeeba('0x9c')](0x3e8, 0x7d0)) : (_0x217695[a0_0xeeba('0x7b')](_0x2164b8[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + a0_0xeeba('0x139') + _0x30b5d5[a0_0xeeba('0x27c')] + '\x20' + GameData[a0_0xeeba('0x2b8')][_0x30b5d5[a0_0xeeba('0x115')]][a0_0xeeba('0x377')] + '\x20not\x20ready.', 0x3), _0x2164b8[a0_0xeeba('0x210')]());
1914 } else _0x2164b8['finished']();
1915 else _0x2164b8[a0_0xeeba('0x210')]();
1916 }
1917 }, {
1918 'key': 'startBuildBuilding',
1919 'value': function() {
1920 if (!_0x2164b8[a0_0xeeba('0x234')]()) return !0x1;
1921 void 0x0 !== _0x2164b8['building_queue'][_0x2164b8[a0_0xeeba('0x2e9')]['id']] && _0x2164b8[a0_0xeeba('0x35')][_0x2164b8[a0_0xeeba('0x2e9')]['id']] ? _0x2164b8[a0_0xeeba('0xb0')] = setTimeout(function() {
1922 _0x217695[a0_0xeeba('0x7b')](_0x2164b8[a0_0xeeba('0x2e9')]['name'] + a0_0xeeba('0x1d2'), 0x3), _0x3f8845[a0_0xeeba('0x1d4')](_0x2164b8['town']['id'], function(_0x362f12) {
1923 if (_0x2164b8[a0_0xeeba('0x2db')](_0x362f12)) {
1924 var _0x57b797 = _0x2164b8[a0_0xeeba('0x35')][_0x2164b8['town']['id']][0x0];
1925 if (void 0x0 !== _0x57b797) {
1926 var _0x11dd72 = _0x2164b8[a0_0xeeba('0x1ff')](_0x362f12)[_0x57b797[a0_0xeeba('0x115')]];
1927 _0x11dd72[a0_0xeeba('0x1ab')] ? _0x3f8845['frontend_bridge'](_0x2164b8[a0_0xeeba('0x2e9')]['id'], {
1928 'model_url': a0_0xeeba('0x123'),
1929 'action_name': a0_0xeeba('0xcc'),
1930 'arguments': {
1931 'building_id': _0x57b797[a0_0xeeba('0x115')]
1932 },
1933 'town_id': _0x2164b8[a0_0xeeba('0x2e9')]['id'],
1934 'nl_init': !0x0
1935 }, function(_0xe0c2a) {
1936 if (_0xe0c2a[a0_0xeeba('0x81')]) {
1937 if (_0x2164b8[a0_0xeeba('0x2e9')]['id'] === Game['townId'])
1938 for (var _0x17887b = GPWindowMgr['getByType'](GPWindowMgr[a0_0xeeba('0x2c4')]), _0xe24028 = 0x0; _0x17887b['length'] > _0xe24028; _0xe24028++) _0x17887b[_0xe24028]['getHandler']()[a0_0xeeba('0x391')]();
1939 _0x217695[a0_0xeeba('0x7b')]('<span\x20style=\x22color:\x20#ffa03d;\x22>' + _0x57b797[a0_0xeeba('0x115')]['capitalize']() + a0_0xeeba('0x218') + _0xe0c2a[a0_0xeeba('0x81')] + a0_0xeeba('0x2fe'), 0x3), _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0x1c4'), {
1940 'player_id': _0x27e24c['Account'][a0_0xeeba('0x268')],
1941 'world_id': _0x27e24c['Account']['world_id'],
1942 'csrfToken': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x343')],
1943 'town_id': _0x2164b8[a0_0xeeba('0x2e9')]['id'],
1944 'item_id': _0x57b797['id'],
1945 'type': a0_0xeeba('0x32e')
1946 }, _0x2164b8['callbackSaveBuilding']($(a0_0xeeba('0x124')))), $('.queue_id_' + _0x57b797['id'])[a0_0xeeba('0x36c')]();
1947 }
1948 _0xe0c2a[a0_0xeeba('0x34f')] && _0x217695[a0_0xeeba('0x7b')](_0x2164b8['town'][a0_0xeeba('0x16d')] + '\x20' + _0xe0c2a[a0_0xeeba('0x34f')], 0x3), _0x2164b8[a0_0xeeba('0x210')]();
1949 }) : _0x11dd72[a0_0xeeba('0x22f')] ? _0x11dd72[a0_0xeeba('0x2a')] ? (_0x217695[a0_0xeeba('0x7b')](_0x2164b8[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + '\x20' + _0x57b797[a0_0xeeba('0x115')] + a0_0xeeba('0x24f'), 0x3), _0x3f8845[a0_0xeeba('0x131')]('removeItemQueue', {
1950 'player_id': _0x27e24c['Account'][a0_0xeeba('0x268')],
1951 'world_id': _0x27e24c[a0_0xeeba('0x3ea')]['world_id'],
1952 'csrfToken': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x343')],
1953 'town_id': _0x2164b8[a0_0xeeba('0x2e9')]['id'],
1954 'item_id': _0x57b797['id'],
1955 'type': 'building'
1956 }, _0x2164b8['callbackSaveBuilding']($(a0_0xeeba('0x124')))), $('.queue_id_' + _0x57b797['id'])[a0_0xeeba('0x36c')](), _0x2164b8[a0_0xeeba('0x210')]()) : (_0x217695['Log'](_0x2164b8['town'][a0_0xeeba('0x16d')] + a0_0xeeba('0x237') + _0x57b797[a0_0xeeba('0x115')] + '.', 0x3), _0x2164b8[a0_0xeeba('0x210')]()) : (_0x217695[a0_0xeeba('0x7b')](_0x2164b8[a0_0xeeba('0x2e9')]['name'] + a0_0xeeba('0x21b') + _0x57b797[a0_0xeeba('0x115')] + '.', 0x3), _0x2164b8[a0_0xeeba('0x210')]());
1957 } else _0x2164b8[a0_0xeeba('0x210')]();
1958 } else _0x217695[a0_0xeeba('0x7b')](_0x2164b8[a0_0xeeba('0x2e9')][a0_0xeeba('0x16d')] + '\x20no\x20free\x20building\x20slots\x20available.', 0x3), _0x2164b8[a0_0xeeba('0x210')]();
1959 });
1960 }, _0x27e24c['randomize'](0x3e8, 0x7d0)) : _0x2164b8[a0_0xeeba('0x210')]();
1961 }
1962 }, {
1963 'key': a0_0xeeba('0x245'),
1964 'value': function(_0x2ac4e2) {
1965 var _0x1b83b2 = {
1966 'building': {
1967 'queue': [],
1968 'timeLeft': 0x0
1969 },
1970 'unit': {
1971 'queue': [],
1972 'timeLeft': 0x0
1973 },
1974 'ship': {
1975 'queue': [],
1976 'timeLeft': 0x0
1977 }
1978 };
1979 $[a0_0xeeba('0x1f')](MM['getOnlyCollectionByName'](a0_0xeeba('0x123'))['models'], function(_0x151b8e, _0x31cd2d) {
1980 _0x2ac4e2 === _0x31cd2d[a0_0xeeba('0x44')]() && _0x1b83b2['building'][a0_0xeeba('0xbc')][a0_0xeeba('0x172')]({
1981 'type': a0_0xeeba('0x32e'),
1982 'model': _0x31cd2d
1983 });
1984 }), $[a0_0xeeba('0x1f')](MM['getOnlyCollectionByName'](a0_0xeeba('0x304'))[a0_0xeeba('0x2c0')], function(_0x142d82, _0x43c6fc) {
1985 _0x2ac4e2 === _0x43c6fc[a0_0xeeba('0xfe')][a0_0xeeba('0x64')] && (a0_0xeeba('0x222') === _0x43c6fc[a0_0xeeba('0xfe')][a0_0xeeba('0x11')] && _0x1b83b2[a0_0xeeba('0x2a4')]['queue'][a0_0xeeba('0x172')]({
1986 'type': a0_0xeeba('0x2a4'),
1987 'model': _0x43c6fc
1988 }), a0_0xeeba('0x18d') === _0x43c6fc[a0_0xeeba('0xfe')][a0_0xeeba('0x11')] && _0x1b83b2[a0_0xeeba('0x316')]['queue'][a0_0xeeba('0x172')]({
1989 'type': a0_0xeeba('0x316'),
1990 'model': _0x43c6fc
1991 }));
1992 });
1993 var _0x5e783c = null,
1994 _0x1b56d6 = 'nothing';
1995 return $[a0_0xeeba('0x1f')](_0x1b83b2, function(_0x2986bb) {
1996 (a0_0xeeba('0x32e') === _0x2986bb && void 0x0 !== _0x2164b8[a0_0xeeba('0x35')][_0x2ac4e2] || a0_0xeeba('0x2a4') === _0x2986bb && void 0x0 !== _0x2164b8[a0_0xeeba('0x256')][_0x2ac4e2] || a0_0xeeba('0x316') === _0x2986bb && void 0x0 !== _0x2164b8[a0_0xeeba('0x163')][_0x2ac4e2]) && (_0x1b56d6 = _0x2986bb);
1997 }), GameDataInstantBuy[a0_0xeeba('0xac')]() && _0x1b83b2[a0_0xeeba('0x32e')][a0_0xeeba('0xbc')]['length'] > 0x0 && (_0x5e783c = _0x1b83b2[a0_0xeeba('0x32e')][a0_0xeeba('0xbc')][0x0][a0_0xeeba('0x3b')][a0_0xeeba('0x20e')]() - 0x12c), {
1998 'readyTime': Timestamp[a0_0xeeba('0x189')]() + (_0x5e783c > 0x0 ? _0x5e783c : +_0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x3e5')]),
1999 'shouldStart': _0x1b56d6
2000 };
2001 }
2002 }, {
2003 'key': a0_0xeeba('0x35e'),
2004 'value': function() {
2005 clearInterval(_0x2164b8[a0_0xeeba('0xb0')]);
2006 }
2007 }, {
2008 'key': a0_0xeeba('0x234'),
2009 'value': function() {
2010 return _0x538336[a0_0xeeba('0x2eb')][a0_0xeeba('0x371')][a0_0xeeba('0x30f')];
2011 }
2012 }, {
2013 'key': a0_0xeeba('0x210'),
2014 'value': function() {
2015 if (!_0x2164b8[a0_0xeeba('0x234')]()) return !0x1;
2016 _0x2164b8[a0_0xeeba('0x2e9')][a0_0xeeba('0x2eb')][a0_0xeeba('0x371')]['isReadyTime'] = _0x2164b8[a0_0xeeba('0x245')](_0x2164b8[a0_0xeeba('0x2e9')]['id'])[a0_0xeeba('0x2bf')], _0x538336[a0_0xeeba('0x294')][a0_0xeeba('0x38e')]();
2017 }
2018 }, {
2019 'key': a0_0xeeba('0x1da'),
2020 'value': function(_0x33c1ea) {
2021 return _0x2164b8[a0_0xeeba('0x265')] = !0x1, $[a0_0xeeba('0x1f')](MM['getOnlyCollectionByName'](a0_0xeeba('0x123'))['models'], function(_0x3a5f11, _0x44820b) {
2022 if (_0x33c1ea === _0x44820b[a0_0xeeba('0x44')]() && _0x44820b[a0_0xeeba('0x20e')]() < 0x12c) return _0x2164b8[a0_0xeeba('0x265')] = {
2023 'order_id': _0x44820b['id'],
2024 'building_name': _0x44820b[a0_0xeeba('0x365')]()
2025 }, !0x1;
2026 }), _0x2164b8['instantBuyTown'];
2027 }
2028 }, {
2029 'key': a0_0xeeba('0x100'),
2030 'value': function(_0x4e45d6, _0x4c877e) {
2031 var _0x743d54 = GameData[a0_0xeeba('0x1ee')][_0x4e45d6]['dependencies'],
2032 _0x2b9c2d = _0x4c877e[a0_0xeeba('0x1ff')]()[a0_0xeeba('0x1ff')](),
2033 _0x537b5a = [];
2034 return $[a0_0xeeba('0x1f')](_0x743d54, function(_0x59f4b3, _0x3c9a26) {
2035 _0x2b9c2d[_0x59f4b3] < _0x3c9a26 && _0x537b5a[a0_0xeeba('0x172')]({
2036 'building_id': _0x59f4b3,
2037 'level': _0x3c9a26
2038 });
2039 }), _0x537b5a;
2040 }
2041 }, {
2042 'key': a0_0xeeba('0x359'),
2043 'value': function(_0x51c803) {
2044 return function(_0x4c6fe) {
2045 _0x51c803[a0_0xeeba('0x1f')](function() {
2046 $(this)[a0_0xeeba('0x2f6')]('.empty_slot')[a0_0xeeba('0x36c')](), _0x4c6fe[a0_0xeeba('0x3f')] ? ($(this)[a0_0xeeba('0x342')](_0x2164b8[a0_0xeeba('0x45')]($(this), _0x4c6fe[a0_0xeeba('0x3f')])), _0x2164b8[a0_0xeeba('0x21d')]($(this))) : _0x2164b8['setEmptyItems']($(this));
2047 }), delete _0x4c6fe[a0_0xeeba('0x3f')], _0x2164b8[a0_0xeeba('0x35')] = _0x4c6fe;
2048 };
2049 }
2050 }, {
2051 'key': 'callbackSaveSettings',
2052 'value': function() {
2053 _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x1ec'), 0x3), HumanMessage[a0_0xeeba('0x81')](a0_0xeeba('0x2f'));
2054 }
2055 }, {
2056 'key': a0_0xeeba('0x2db'),
2057 'value': function(_0x3e00e5) {
2058 var _0x5bbc41 = !0x1;
2059 return void 0x0 !== _0x3e00e5 && /BuildingMain\.full_queue = false;/g [a0_0xeeba('0x10b')](_0x3e00e5[a0_0xeeba('0x1b7')]) && (_0x5bbc41 = !0x0), _0x5bbc41;
2060 }
2061 }, {
2062 'key': 'getBuildings',
2063 'value': function(_0x363f72) {
2064 var _0x91e25b = null;
2065 if (void 0x0 !== _0x363f72[a0_0xeeba('0x1b7')]) {
2066 var _0xe929da = _0x363f72[a0_0xeeba('0x1b7')][a0_0xeeba('0x205')](/BuildingMain\.buildings = (.*);/g);
2067 void 0x0 !== _0xe929da[0x0] && (_0x91e25b = JSON[a0_0xeeba('0x199')](_0xe929da[0x0]['substring'](0x19, _0xe929da[0x0][a0_0xeeba('0x26d')] - 0x1)));
2068 }
2069 return _0x91e25b;
2070 }
2071 }, {
2072 'key': a0_0xeeba('0x271'),
2073 'value': function(_0x11cbec, _0x3afbb3) {
2074 var _0x3403e2 = _0x11cbec['find'](a0_0xeeba('0x35a'));
2075 _0x3403e2[a0_0xeeba('0x2f6')]('.empty_slot')[a0_0xeeba('0x36c')](), a0_0xeeba('0x32e') === _0x3afbb3 && ($('#building_tasks_main')[a0_0xeeba('0xe4')]('active'), void 0x0 !== _0x2164b8[a0_0xeeba('0x35')][Game['townId']] && $['each'](_0x2164b8[a0_0xeeba('0x35')][Game[a0_0xeeba('0x1ea')]], function(_0x5083f3, _0x1953e6) {
2076 _0x3403e2[a0_0xeeba('0x342')](_0x2164b8[a0_0xeeba('0x45')](_0x3403e2, _0x1953e6));
2077 })), 'unit' === _0x3afbb3 && ($(a0_0xeeba('0x174'))[a0_0xeeba('0xe4')](a0_0xeeba('0x204')), void 0x0 !== _0x2164b8['units_queue'][Game[a0_0xeeba('0x1ea')]] && $['each'](_0x2164b8['units_queue'][Game[a0_0xeeba('0x1ea')]], function(_0x1d0a40, _0x36812e) {
2078 _0x3403e2['append'](_0x2164b8['unitElement'](_0x3403e2, _0x36812e, _0x3afbb3));
2079 })), a0_0xeeba('0x316') === _0x3afbb3 && ($(a0_0xeeba('0x174'))[a0_0xeeba('0xe4')](a0_0xeeba('0x204')), void 0x0 !== _0x2164b8[a0_0xeeba('0x163')][Game[a0_0xeeba('0x1ea')]] && $['each'](_0x2164b8['ships_queue'][Game['townId']], function(_0x2708b0, _0x5650da) {
2080 _0x3403e2[a0_0xeeba('0x342')](_0x2164b8[a0_0xeeba('0xaa')](_0x3403e2, _0x5650da, _0x3afbb3));
2081 })), _0x2164b8[a0_0xeeba('0x21d')](_0x3403e2), _0x3403e2[a0_0xeeba('0x2e5')]()[a0_0xeeba('0xb1')](function(_0x52c12f, _0x5403c0) {
2082 this[a0_0xeeba('0x3d8')] -= 0x1e * _0x5403c0, _0x52c12f['preventDefault']();
2083 });
2084 }
2085 }, {
2086 'key': a0_0xeeba('0x215'),
2087 'value': function(_0x20f82c, _0x5b305d) {
2088 var _0x3ba74d = _0x20f82c[a0_0xeeba('0x2b8')][_0x20f82c[a0_0xeeba('0x290')]],
2089 _0x504588 = _0x20f82c[a0_0xeeba('0x202')][a0_0xeeba('0x2f6')](a0_0xeeba('0x259')),
2090 _0x52b7f6 = _0x20f82c['$el']['find'](a0_0xeeba('0xfa')),
2091 _0x521662 = _0x20f82c[a0_0xeeba('0x202')]['find'](a0_0xeeba('0x17e'));
2092 if (_0x52b7f6[a0_0xeeba('0x26d')] >= 0x0 && (_0x3ba74d[a0_0xeeba('0xf8')][a0_0xeeba('0x26d')] >= 0x1 || _0x3ba74d[a0_0xeeba('0xd9')][a0_0xeeba('0x26d')] >= 0x1) && _0x52b7f6[a0_0xeeba('0x129')](), 0x0 === _0x3ba74d[a0_0xeeba('0xf8')][a0_0xeeba('0x26d')] && 0x0 === _0x3ba74d['missing_research_dependencies']['length']) {
2093 var _0x1fc87b = ITowns['towns'][Game['townId']],
2094 _0x5b9b96 = _0x3ba74d[a0_0xeeba('0xc2')],
2095 _0x5b2e5a = Math[a0_0xeeba('0x9a')]['apply'](this, [_0x3ba74d[a0_0xeeba('0x87')][a0_0xeeba('0x33d')], _0x3ba74d['resources']['stone'], _0x3ba74d[a0_0xeeba('0x87')][a0_0xeeba('0x243')]]),
2096 _0x2c83ff = [];
2097 _0x2c83ff[a0_0xeeba('0x172')](Math[a0_0xeeba('0xc7')](_0x1fc87b[a0_0xeeba('0x23f')]() / _0x5b2e5a)), _0x2c83ff['push'](Math[a0_0xeeba('0xc7')]((_0x1fc87b[a0_0xeeba('0x3e4')]() - _0x2164b8[a0_0xeeba('0x111')]()) / _0x3ba74d[a0_0xeeba('0x102')])), _0x3ba74d['favor'] > 0x0 && _0x2c83ff[a0_0xeeba('0x172')](Math[a0_0xeeba('0xc7')](0x1f4 / _0x3ba74d[a0_0xeeba('0x368')]));
2098 var _0x16882c = Math['min'][a0_0xeeba('0x2f9')](this, _0x2c83ff);
2099 _0x16882c > 0x0 && _0x16882c >= _0x5b9b96 && _0x20f82c[a0_0xeeba('0x394')][a0_0xeeba('0x238')](_0x16882c), 0x0 === _0x52b7f6['length'] ? (_0x52b7f6 = $(a0_0xeeba('0x1a4'), {
2100 'href': '#',
2101 'id': a0_0xeeba('0xa0'),
2102 'class': a0_0xeeba('0x15e')
2103 }), _0x504588[a0_0xeeba('0x307')](_0x52b7f6), _0x52b7f6[a0_0xeeba('0x93')](new MousePopup(a0_0xeeba('0x362')))['on'](a0_0xeeba('0xf0'), function(_0x3b8c56) {
2104 _0x3b8c56['preventDefault'](), _0x2164b8[a0_0xeeba('0x227')](_0x3ba74d, _0x5b305d);
2105 })) : (_0x52b7f6[a0_0xeeba('0x33e')](a0_0xeeba('0xf0')), _0x52b7f6['on'](a0_0xeeba('0xf0'), function(_0x2d82b3) {
2106 _0x2d82b3[a0_0xeeba('0x25d')](), _0x2164b8[a0_0xeeba('0x227')](_0x3ba74d, _0x5b305d);
2107 })), _0x16882c <= 0x0 ? _0x52b7f6[a0_0xeeba('0x129')]() : _0x52b7f6[a0_0xeeba('0x156')](), _0x504588[a0_0xeeba('0x156')](), _0x521662['slider']({
2108 'slide': function(_0x8ae903, _0x530d54) {
2109 _0x530d54['value'] > _0x5b9b96 ? _0x504588[a0_0xeeba('0x129')]() : _0x530d54[a0_0xeeba('0x285')] >= 0x0 && _0x530d54[a0_0xeeba('0x285')] <= _0x5b9b96 && _0x504588[a0_0xeeba('0x156')](), 0x0 === _0x530d54['value'] ? _0x52b7f6['hide']() : _0x530d54[a0_0xeeba('0x285')] > 0x0 && _0x16882c > 0x0 && _0x52b7f6['show']();
2110 }
2111 });
2112 }
2113 }
2114 }, {
2115 'key': a0_0xeeba('0x10e'),
2116 'value': function(_0x3c7e72) {
2117 console[a0_0xeeba('0x46')](_0x3c7e72);
2118 var _0x1a1e15 = ITowns[a0_0xeeba('0x3a5')][Game[a0_0xeeba('0x1ea')]]['getBuildings']()[a0_0xeeba('0xfe')][_0x3c7e72['item_name']];
2119 return $['each'](ITowns[a0_0xeeba('0x3a5')][Game[a0_0xeeba('0x1ea')]]['buildingOrders']()['models'], function(_0x3a9f56, _0x47bd19) {
2120 _0x47bd19['attributes']['building_type'] === _0x3c7e72[a0_0xeeba('0x115')] && _0x1a1e15++;
2121 }), void 0x0 !== _0x2164b8['building_queue'][Game[a0_0xeeba('0x1ea')]] && $(_0x2164b8[a0_0xeeba('0x35')][Game[a0_0xeeba('0x1ea')]])[a0_0xeeba('0x1f')](function(_0x27e91f, _0x1e9b2d) {
2122 if (_0x1e9b2d['id'] === _0x3c7e72['id']) return !0x1;
2123 _0x1e9b2d[a0_0xeeba('0x115')] === _0x3c7e72[a0_0xeeba('0x115')] && _0x1a1e15++;
2124 }), ++_0x1a1e15;
2125 }
2126 }, {
2127 'key': a0_0xeeba('0x111'),
2128 'value': function() {
2129 var _0x3f7df3 = 0x0;
2130 return void 0x0 !== _0x2164b8[a0_0xeeba('0x256')][Game['townId']] && $(_0x2164b8[a0_0xeeba('0x256')][Game[a0_0xeeba('0x1ea')]][a0_0xeeba('0x2a4')])['each'](function(_0x1bfc31, _0x4a62c1) {
2131 _0x3f7df3 += _0x4a62c1[a0_0xeeba('0x27c')] * GameData['units'][_0x4a62c1[a0_0xeeba('0x115')]][a0_0xeeba('0x102')];
2132 }), void 0x0 !== _0x2164b8[a0_0xeeba('0x163')][Game[a0_0xeeba('0x1ea')]] && $(_0x2164b8[a0_0xeeba('0x163')][Game[a0_0xeeba('0x1ea')]][a0_0xeeba('0x316')])[a0_0xeeba('0x1f')](function(_0x29225c, _0x2f86b9) {
2133 _0x3f7df3 += _0x2f86b9[a0_0xeeba('0x27c')] * GameData[a0_0xeeba('0x2b8')][_0x2f86b9[a0_0xeeba('0x115')]][a0_0xeeba('0x102')];
2134 }), _0x3f7df3;
2135 }
2136 }, {
2137 'key': 'addUnitQueueItem',
2138 'value': function(_0x4be401, _0x32e4cb) {
2139 _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0x287'), {
2140 'player_id': _0x27e24c['Account'][a0_0xeeba('0x268')],
2141 'world_id': _0x27e24c[a0_0xeeba('0x3ea')]['world_id'],
2142 'csrfToken': _0x27e24c['Account'][a0_0xeeba('0x343')],
2143 'town_id': Game['townId'],
2144 'item_name': _0x4be401['id'],
2145 'type': _0x32e4cb,
2146 'count': UnitOrder[a0_0xeeba('0x394')]['getValue']()
2147 }, _0x2164b8['callbackSaveUnits']($(a0_0xeeba('0x2ab')), _0x32e4cb));
2148 }
2149 }, {
2150 'key': a0_0xeeba('0x28c'),
2151 'value': function(_0x2e97dd, _0x34e4b5) {
2152 return function(_0x109331) {
2153 console[a0_0xeeba('0x46')](_0x109331), a0_0xeeba('0x2a4') === _0x34e4b5 ? _0x2164b8[a0_0xeeba('0x256')] = _0x109331 : a0_0xeeba('0x316') === _0x34e4b5 && (_0x2164b8[a0_0xeeba('0x163')] = _0x109331), _0x2e97dd[a0_0xeeba('0x1f')](function() {
2154 $(this)[a0_0xeeba('0x2f6')]('.empty_slot')[a0_0xeeba('0x36c')](), _0x109331[a0_0xeeba('0x3f')] ? ($(this)[a0_0xeeba('0x342')](_0x2164b8[a0_0xeeba('0xaa')]($(this), _0x109331['item'], _0x34e4b5)), _0x2164b8[a0_0xeeba('0x21d')]($(this)), delete _0x109331['item']) : _0x2164b8['setEmptyItems']($(this)), UnitOrder['selectUnit'](UnitOrder[a0_0xeeba('0x290')]);
2155 });
2156 };
2157 }
2158 }, {
2159 'key': a0_0xeeba('0x21d'),
2160 'value': function(_0x15802b) {
2161 var _0x5a60b4 = 0x0,
2162 _0x1820b1 = _0x15802b['parent']()['width']();
2163 $[a0_0xeeba('0x1f')](_0x15802b[a0_0xeeba('0x2f6')](a0_0xeeba('0x1a5')), function() {
2164 _0x5a60b4 += $(this)[a0_0xeeba('0x10d')](!0x0);
2165 });
2166 var _0x1f58c5 = _0x1820b1 - _0x5a60b4;
2167 if (_0x1f58c5 >= 0x0) {
2168 _0x15802b['width'](_0x1820b1);
2169 for (var _0x10e785 = 0x1; _0x10e785 <= Math[a0_0xeeba('0xc7')](_0x1f58c5) / 0x3c; _0x10e785++) _0x15802b[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2170 'class': a0_0xeeba('0x305')
2171 }));
2172 } else _0x15802b[a0_0xeeba('0x162')](_0x5a60b4 + 0x19);
2173 }
2174 }, {
2175 'key': a0_0xeeba('0x45'),
2176 'value': function(_0x10f3b8, _0x51c49d) {
2177 return $(a0_0xeeba('0x137'), {
2178 'class': a0_0xeeba('0x39a') + _0x51c49d[a0_0xeeba('0x115')] + a0_0xeeba('0x22b') + _0x51c49d['id']
2179 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2180 'class': a0_0xeeba('0x49')
2181 })['mousePopup'](new MousePopup(_0x51c49d[a0_0xeeba('0x115')][a0_0xeeba('0x164')]() + a0_0xeeba('0x32f')))[a0_0xeeba('0x342')]($('<div/>', {
2182 'class': a0_0xeeba('0x301') + _0x51c49d[a0_0xeeba('0x115')]
2183 })['append']($(a0_0xeeba('0x137'), {
2184 'class': a0_0xeeba('0x1db')
2185 })[a0_0xeeba('0x342')](a0_0xeeba('0x125') + _0x2164b8['checkBuildingLevel'](_0x51c49d)))))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2186 'class': 'btn_cancel_order\x20button_new\x20square\x20remove\x20js-item-btn-cancel-order\x20build_queue'
2187 })['on'](a0_0xeeba('0xf0'), function(_0x134b66) {
2188 _0x134b66[a0_0xeeba('0x25d')](), _0x3f8845['Auth'](a0_0xeeba('0x1c4'), {
2189 'player_id': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x268')],
2190 'world_id': _0x27e24c['Account'][a0_0xeeba('0x2a5')],
2191 'csrfToken': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x343')],
2192 'town_id': Game[a0_0xeeba('0x1ea')],
2193 'item_id': _0x51c49d['id'],
2194 'type': a0_0xeeba('0x32e')
2195 }, _0x2164b8[a0_0xeeba('0x359')]($(a0_0xeeba('0x124')))), $('.queue_id_' + _0x51c49d['id'])[a0_0xeeba('0x36c')]();
2196 })[a0_0xeeba('0x342')]($('<div/>', {
2197 'class': a0_0xeeba('0x29a')
2198 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2199 'class': a0_0xeeba('0xdd')
2200 }))[a0_0xeeba('0x342')]($('<div/>', {
2201 'class': a0_0xeeba('0x38f')
2202 })['append']($(a0_0xeeba('0x137'), {
2203 'class': a0_0xeeba('0x38')
2204 }))));
2205 }
2206 }, {
2207 'key': a0_0xeeba('0xaa'),
2208 'value': function(_0x49daae, _0x501494, _0x3f60d9) {
2209 return $(a0_0xeeba('0x137'), {
2210 'class': a0_0xeeba('0x39a') + _0x501494[a0_0xeeba('0x115')] + a0_0xeeba('0x22b') + _0x501494['id']
2211 })[a0_0xeeba('0x342')]($('<div/>', {
2212 'class': 'construction_queue_sprite\x20frame'
2213 })['mousePopup'](new MousePopup(_0x501494[a0_0xeeba('0x115')]['capitalize']()[a0_0xeeba('0x92')]('_', '\x20') + '\x20queued'))['append']($(a0_0xeeba('0x137'), {
2214 'class': a0_0xeeba('0xe9') + _0x501494[a0_0xeeba('0x115')]
2215 })[a0_0xeeba('0x342')]($('<div/>', {
2216 'class': a0_0xeeba('0x1cc')
2217 })[a0_0xeeba('0x1b7')](_0x501494[a0_0xeeba('0x27c')]))))['append']($(a0_0xeeba('0x137'), {
2218 'class': a0_0xeeba('0xe1')
2219 })['on'](a0_0xeeba('0xf0'), function(_0x12212d) {
2220 _0x12212d[a0_0xeeba('0x25d')](), _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0x1c4'), {
2221 'player_id': _0x27e24c[a0_0xeeba('0x3ea')]['player_id'],
2222 'world_id': _0x27e24c[a0_0xeeba('0x3ea')][a0_0xeeba('0x2a5')],
2223 'csrfToken': _0x27e24c['Account'][a0_0xeeba('0x343')],
2224 'town_id': Game[a0_0xeeba('0x1ea')],
2225 'item_id': _0x501494['id'],
2226 'type': _0x3f60d9
2227 }, _0x2164b8[a0_0xeeba('0x28c')]($('#unit_orders_queue\x20.ui_various_orders'), _0x3f60d9)), $('.queue_id_' + _0x501494['id'])[a0_0xeeba('0x36c')]();
2228 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2229 'class': a0_0xeeba('0x29a')
2230 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2231 'class': a0_0xeeba('0xdd')
2232 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2233 'class': a0_0xeeba('0x38f')
2234 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2235 'class': a0_0xeeba('0x38')
2236 }))));
2237 }
2238 }, {
2239 'key': a0_0xeeba('0x3d1'),
2240 'value': function() {
2241 return $(a0_0xeeba('0x292'), {
2242 'id': a0_0xeeba('0x32d'),
2243 'class': _0x538336[a0_0xeeba('0x60')] ? '' : 'disabled-box',
2244 'style': 'float:left;\x20width:472px;\x20height:\x20270px;'
2245 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x3cf'))[a0_0xeeba('0x1b7')]('Autobuild\x20Settings'))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x18e')]({
2246 'text': a0_0xeeba('0x1e5'),
2247 'id': a0_0xeeba('0x373'),
2248 'name': a0_0xeeba('0x373'),
2249 'checked': _0x2164b8[a0_0xeeba('0x6b')]['autostart']
2250 }))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x291')]({
2251 'id': a0_0xeeba('0x21a'),
2252 'name': 'autobuild_timeinterval',
2253 'label': a0_0xeeba('0xb'),
2254 'styles': a0_0xeeba('0x334'),
2255 'value': _0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x3e5')],
2256 'options': [{
2257 'value': '120',
2258 'name': a0_0xeeba('0x2b5')
2259 }, {
2260 'value': '300',
2261 'name': '5\x20minutes'
2262 }, {
2263 'value': a0_0xeeba('0xd1'),
2264 'name': a0_0xeeba('0x395')
2265 }, {
2266 'value': a0_0xeeba('0x37e'),
2267 'name': a0_0xeeba('0x2d5')
2268 }]
2269 }))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x18e')]({
2270 'text': a0_0xeeba('0x30b'),
2271 'id': a0_0xeeba('0xdc'),
2272 'name': a0_0xeeba('0xdc'),
2273 'style': 'width:\x20100%;padding-top:\x2035px;',
2274 'checked': _0x2164b8[a0_0xeeba('0x6b')]['enable_building']
2275 }))[a0_0xeeba('0x342')](_0x15022e['checkbox']({
2276 'text': 'Enable\x20barracks\x20queue.',
2277 'id': a0_0xeeba('0x21f'),
2278 'name': 'autobuild_barracks_enable',
2279 'style': 'width:\x20100%;',
2280 'checked': _0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x212')]
2281 }))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0x18e')]({
2282 'text': a0_0xeeba('0x242'),
2283 'id': a0_0xeeba('0xa1'),
2284 'name': 'autobuild_ships_enable',
2285 'style': 'width:\x20100%;padding-bottom:\x2035px;',
2286 'checked': _0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x2ec')]
2287 }))[a0_0xeeba('0x342')](function() {
2288 var _0x3a86a4 = _0x15022e[a0_0xeeba('0x33f')]({
2289 'name': DM[a0_0xeeba('0x3ec')](a0_0xeeba('0x1d6'))[a0_0xeeba('0x26')],
2290 'style': a0_0xeeba('0x84'),
2291 'class': _0x538336[a0_0xeeba('0x60')] ? '' : '\x20disabled'
2292 })['on'](a0_0xeeba('0xf0'), function() {
2293 if (!_0x538336[a0_0xeeba('0x60')]) return !0x1;
2294 var _0x31020a = $(a0_0xeeba('0xb7'))['serializeObject']();
2295 _0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x11e')] = void 0x0 !== _0x31020a[a0_0xeeba('0x373')], _0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x3e5')] = parseInt(_0x31020a[a0_0xeeba('0x21a')]), _0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x11e')] = void 0x0 !== _0x31020a[a0_0xeeba('0x373')], _0x2164b8[a0_0xeeba('0x6b')]['enable_building'] = void 0x0 !== _0x31020a[a0_0xeeba('0xdc')], _0x2164b8[a0_0xeeba('0x6b')]['enable_units'] = void 0x0 !== _0x31020a['autobuild_barracks_enable'], _0x2164b8[a0_0xeeba('0x6b')]['enable_ships'] = void 0x0 !== _0x31020a[a0_0xeeba('0xa1')], _0x2164b8[a0_0xeeba('0x6b')][a0_0xeeba('0x34e')] = void 0x0 !== _0x31020a['autobuild_instant_buy'], _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0xf7'), {
2296 'player_id': _0x27e24c['Account']['player_id'],
2297 'world_id': _0x27e24c[a0_0xeeba('0x3ea')]['world_id'],
2298 'csrfToken': _0x27e24c['Account']['csrfToken'],
2299 'autobuild_settings': _0x27e24c[a0_0xeeba('0x101')](_0x2164b8[a0_0xeeba('0x6b')])
2300 }, _0x2164b8[a0_0xeeba('0x33b')]);
2301 });
2302 return _0x538336[a0_0xeeba('0x60')] || _0x3a86a4[a0_0xeeba('0x93')](new MousePopup(_0x538336['requiredPrem'])), _0x3a86a4;
2303 });
2304 }
2305 }], (_0x900bba = null) && _0x5ba80d(_0xe55898['prototype'], _0x900bba), _0x253556 && _0x5ba80d(_0xe55898, _0x253556), _0x2164b8;
2306 }();
2307 Object['defineProperty'](_0x2b2772, a0_0xeeba('0x6b'), {
2308 'enumerable': !0x0,
2309 'writable': !0x0,
2310 'value': {
2311 'autostart': !0x1,
2312 'enable_building': !0x0,
2313 'enable_units': !0x0,
2314 'enable_ships': !0x0,
2315 'timeinterval': 0x78,
2316 'instant_buy': !0x0
2317 }
2318 }), Object[a0_0xeeba('0x38c')](_0x2b2772, a0_0xeeba('0x35'), {
2319 'enumerable': !0x0,
2320 'writable': !0x0,
2321 'value': {}
2322 }), Object[a0_0xeeba('0x38c')](_0x2b2772, 'units_queue', {
2323 'enumerable': !0x0,
2324 'writable': !0x0,
2325 'value': {}
2326 }), Object[a0_0xeeba('0x38c')](_0x2b2772, a0_0xeeba('0x163'), {
2327 'enumerable': !0x0,
2328 'writable': !0x0,
2329 'value': {}
2330 }), Object[a0_0xeeba('0x38c')](_0x2b2772, a0_0xeeba('0x2e9'), {
2331 'enumerable': !0x0,
2332 'writable': !0x0,
2333 'value': null
2334 }), Object[a0_0xeeba('0x38c')](_0x2b2772, a0_0xeeba('0xa4'), {
2335 'enumerable': !0x0,
2336 'writable': !0x0,
2337 'value': null
2338 }), Object[a0_0xeeba('0x38c')](_0x2b2772, a0_0xeeba('0xb0'), {
2339 'enumerable': !0x0,
2340 'writable': !0x0,
2341 'value': null
2342 }), Object[a0_0xeeba('0x38c')](_0x2b2772, 'currentWindow', {
2343 'enumerable': !0x0,
2344 'writable': !0x0,
2345 'value': null
2346 }), Object[a0_0xeeba('0x38c')](_0x2b2772, 'isCaptain', {
2347 'enumerable': !0x0,
2348 'writable': !0x0,
2349 'value': !0x1
2350 }), Object[a0_0xeeba('0x38c')](_0x2b2772, a0_0xeeba('0x294'), {
2351 'enumerable': !0x0,
2352 'writable': !0x0,
2353 'value': 0x0
2354 }), Object[a0_0xeeba('0x38c')](_0x2b2772, a0_0xeeba('0x1a0'), {
2355 'enumerable': !0x0,
2356 'writable': !0x0,
2357 'value': void 0x0
2358 }), Object[a0_0xeeba('0x38c')](_0x2b2772, a0_0xeeba('0x1c6'), {
2359 'enumerable': !0x0,
2360 'writable': !0x0,
2361 'value': {
2362 'wndId': null,
2363 'wndContent': null,
2364 'building_main_index': function() {
2365 if (GPWindowMgr && GPWindowMgr['getOpenFirst'](Layout['wnd'][a0_0xeeba('0x2c4')])) {
2366 _0x2b2772['currentWindow'] = GPWindowMgr['getOpenFirst'](Layout[a0_0xeeba('0x182')]['TYPE_BUILDING'])['getJQElement']()[a0_0xeeba('0x2f6')]('.gpwindow_content');
2367 var _0x4d15be = _0x2b2772['currentWindow'][a0_0xeeba('0x2f6')](a0_0xeeba('0x2f7'));
2368 _0x4d15be[a0_0xeeba('0x1b7')](_0x4d15be[a0_0xeeba('0x1b7')]()[a0_0xeeba('0x92')](/\/.*\)/, a0_0xeeba('0x178')));
2369 var _0x5cb964 = [a0_0xeeba('0x39b'), a0_0xeeba('0x24b'), a0_0xeeba('0x348'), 'lighthouse', 'tower', a0_0xeeba('0x324'), a0_0xeeba('0x270'), a0_0xeeba('0x3cc')];
2370 $[a0_0xeeba('0x1f')]($(a0_0xeeba('0x3ad')), function() {
2371 var _0x3c105c = $(this)[a0_0xeeba('0x2e5')]()['parent']()['attr']('id')[a0_0xeeba('0x92')](a0_0xeeba('0x169'), '');
2372 _0x2b2772[a0_0xeeba('0x100')](_0x3c105c, ITowns[a0_0xeeba('0x235')](Game[a0_0xeeba('0x1ea')]))['length'] <= 0x0 && -0x1 === $[a0_0xeeba('0x109')](_0x3c105c, _0x5cb964) && $(this)[a0_0xeeba('0x1b2')](a0_0xeeba('0x150'))[a0_0xeeba('0xe4')](a0_0xeeba('0x27e'))['html']('Add\x20to\x20queue')['on'](a0_0xeeba('0xf0'), function(_0x421cce) {
2373 _0x421cce['preventDefault'](), _0x3f8845['Auth'](a0_0xeeba('0x287'), {
2374 'player_id': _0x27e24c[a0_0xeeba('0x3ea')]['player_id'],
2375 'world_id': _0x27e24c[a0_0xeeba('0x3ea')]['world_id'],
2376 'csrfToken': _0x27e24c['Account'][a0_0xeeba('0x343')],
2377 'town_id': Game[a0_0xeeba('0x1ea')],
2378 'item_name': _0x3c105c,
2379 'count': 0x1,
2380 'type': 'building'
2381 }, _0x2b2772[a0_0xeeba('0x359')]($(a0_0xeeba('0x124'))));
2382 });
2383 });
2384 }
2385 },
2386 'building_barracks_index': function() {
2387 GPWindowMgr && GPWindowMgr[a0_0xeeba('0x17')](Layout[a0_0xeeba('0x182')][a0_0xeeba('0x2c4')]) && (_0x2b2772['currentWindow'] = GPWindowMgr['getOpenFirst'](Layout['wnd'][a0_0xeeba('0x2c4')])[a0_0xeeba('0x11f')]()[a0_0xeeba('0x2f6')]('.gpwindow_content'), _0x2b2772['currentWindow'][a0_0xeeba('0x2f6')](a0_0xeeba('0x1c9'))[a0_0xeeba('0x2f6')]('.js-max-order-queue-count')['html']('∞'));
2388 }
2389 }
2390 });
2391 var _0xbb2559 = _0x2b2772;
2392
2393 function _0x3822c6(_0x318df2, _0x56eb51) {
2394 for (var _0x2058d1 = 0x0; _0x2058d1 < _0x56eb51[a0_0xeeba('0x26d')]; _0x2058d1++) {
2395 var _0x53368f = _0x56eb51[_0x2058d1];
2396 _0x53368f['enumerable'] = _0x53368f[a0_0xeeba('0x35f')] || !0x1, _0x53368f[a0_0xeeba('0x30d')] = !0x0, a0_0xeeba('0x285') in _0x53368f && (_0x53368f[a0_0xeeba('0x2ef')] = !0x0), Object[a0_0xeeba('0x38c')](_0x318df2, _0x53368f[a0_0xeeba('0x2d4')], _0x53368f);
2397 }
2398 }
2399 var _0x3ec542 = function() {
2400 function _0x381c6d() {
2401 ! function(_0x370ba0, _0x24e621) {
2402 if (!(_0x370ba0 instanceof _0x24e621)) throw new TypeError(a0_0xeeba('0x8c'));
2403 }(this, _0x381c6d);
2404 }
2405 var _0x3bcad4, _0x2f9376, _0x18bfdc;
2406 return _0x3bcad4 = _0x381c6d, _0x18bfdc = [{
2407 'key': a0_0xeeba('0x176'),
2408 'value': function() {
2409 _0x381c6d[a0_0xeeba('0x181')](), _0x381c6d[a0_0xeeba('0x1d9')](), _0x381c6d[a0_0xeeba('0x1c7')]();
2410 }
2411 }, {
2412 'key': a0_0xeeba('0x1df'),
2413 'value': function() {
2414 var _0x2c9f1c = !0x1,
2415 _0x3bf2d2 = null;
2416 if ($[a0_0xeeba('0x1f')](_0x381c6d['playerTowns'], function(_0x4c0b19, _0x16686a) {
2417 var _0x25088e = _0x2d5775[a0_0xeeba('0x16')](_0x16686a);
2418 !0x0 === _0x25088e ? (_0x2c9f1c = !0x0, _0x381c6d[a0_0xeeba('0x294')]['add']({
2419 'townId': _0x16686a['id'],
2420 'fx': function() {
2421 _0x16686a[a0_0xeeba('0x52')]();
2422 }
2423 })) : !0x1 !== _0x25088e && (null == _0x3bf2d2 || _0x25088e < _0x3bf2d2) && (_0x3bf2d2 = _0x25088e);
2424 var _0x4fe9fe = _0x163e95[a0_0xeeba('0x16')](_0x16686a);
2425 !0x0 === _0x4fe9fe ? (_0x2c9f1c = !0x0, _0x381c6d[a0_0xeeba('0x294')][a0_0xeeba('0x42')]({
2426 'townId': _0x16686a['id'],
2427 'fx': function() {
2428 _0x16686a[a0_0xeeba('0x26a')]();
2429 }
2430 })) : !0x1 !== _0x4fe9fe && (null == _0x3bf2d2 || _0x4fe9fe < _0x3bf2d2) && (_0x3bf2d2 = _0x4fe9fe);
2431 var _0x404c12 = _0xbb2559[a0_0xeeba('0x16')](_0x16686a);
2432 !0x0 === _0x404c12 ? (_0x2c9f1c = !0x0, _0x381c6d[a0_0xeeba('0x294')]['add']({
2433 'townId': _0x16686a['id'],
2434 'fx': function() {
2435 _0x16686a['startBuild']();
2436 }
2437 })) : !0x1 !== _0x404c12 && (null == _0x3bf2d2 || _0x404c12 < _0x3bf2d2) && (_0x3bf2d2 = _0x404c12);
2438 }), null !== _0x3bf2d2 || _0x2c9f1c)
2439 if (_0x2c9f1c) _0x381c6d[a0_0xeeba('0x294')][a0_0xeeba('0x1df')]();
2440 else {
2441 var _0x1332c3 = _0x3bf2d2 - Timestamp[a0_0xeeba('0x189')]() + 0xa;
2442 _0x381c6d[a0_0xeeba('0x9')](_0x1332c3, function() {
2443 _0x381c6d[a0_0xeeba('0x1df')]();
2444 });
2445 }
2446 else _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x31a'), 0x0), _0x381c6d[a0_0xeeba('0x9')](0x1e, function() {
2447 _0x381c6d[a0_0xeeba('0x1df')]();
2448 });
2449 }
2450 }, {
2451 'key': 'stop',
2452 'value': function() {
2453 clearInterval(_0x381c6d['interval']), _0x381c6d[a0_0xeeba('0x294')][a0_0xeeba('0x35e')](), $('#time_autobot\x20.caption\x20.value_container\x20.curr')[a0_0xeeba('0x1b7')](a0_0xeeba('0x177'));
2454 }
2455 }, {
2456 'key': a0_0xeeba('0x210'),
2457 'value': function() {
2458 _0x381c6d['start']();
2459 }
2460 }, {
2461 'key': 'initTimer',
2462 'value': function() {
2463 $(a0_0xeeba('0x12f'))[a0_0xeeba('0x90')](a0_0xeeba('0x344'), a0_0xeeba('0x375')), $('#time_autobot')[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0xc6')]({
2464 'id': a0_0xeeba('0x5'),
2465 'styles': '',
2466 'text': 'Start\x20Autobot'
2467 }))[a0_0xeeba('0x156')]();
2468 }
2469 }, {
2470 'key': 'updateTimer',
2471 'value': function(_0x1edbb4, _0x1d04c5) {
2472 var _0x298406 = 0x0;
2473 _0x298406 = void 0x0 !== _0x1edbb4 && void 0x0 !== _0x1d04c5 ? (_0x381c6d[a0_0xeeba('0x294')][a0_0xeeba('0x1a3')] - (_0x381c6d['Queue'][a0_0xeeba('0xbc')][a0_0xeeba('0x26d')] + 0x1) + _0x1d04c5 / _0x1edbb4) / _0x381c6d[a0_0xeeba('0x294')][a0_0xeeba('0x1a3')] * 0x64 : (_0x381c6d['Queue'][a0_0xeeba('0x1a3')] - _0x381c6d[a0_0xeeba('0x294')][a0_0xeeba('0xbc')][a0_0xeeba('0x26d')]) / _0x381c6d[a0_0xeeba('0x294')]['total'] * 0x64, isNaN(_0x298406) || ($(a0_0xeeba('0x3eb'))['width'](_0x298406 + '%'), $('#time_autobot\x20.caption\x20.value_container\x20.curr')[a0_0xeeba('0x1b7')](Math[a0_0xeeba('0x3a')](_0x298406) + '%'));
2474 }
2475 }, {
2476 'key': a0_0xeeba('0x2e'),
2477 'value': function() {
2478 if (_0x2d5775['settings'][a0_0xeeba('0x11e')]) {
2479 _0x381c6d[a0_0xeeba('0x2eb')][a0_0xeeba('0x197')][a0_0xeeba('0x30f')] = !0x0;
2480 var _0x2afbb4 = $(a0_0xeeba('0xc0'));
2481 _0x2afbb4[a0_0xeeba('0xe4')]('on'), _0x2afbb4[a0_0xeeba('0x2f6')](a0_0xeeba('0x28d'))['mousePopup'](new MousePopup(a0_0xeeba('0x19')));
2482 }
2483 if (_0x163e95[a0_0xeeba('0x6b')][a0_0xeeba('0x11e')]) {
2484 _0x381c6d[a0_0xeeba('0x2eb')][a0_0xeeba('0x20')][a0_0xeeba('0x30f')] = !0x0;
2485 var _0x179882 = $(a0_0xeeba('0x1e7'));
2486 _0x179882[a0_0xeeba('0xe4')]('on'), _0x179882[a0_0xeeba('0x2f6')](a0_0xeeba('0x28d'))['mousePopup'](new MousePopup(a0_0xeeba('0x27a')));
2487 }
2488 if (_0xbb2559[a0_0xeeba('0x6b')][a0_0xeeba('0x11e')]) {
2489 _0x381c6d[a0_0xeeba('0x2eb')][a0_0xeeba('0x371')][a0_0xeeba('0x30f')] = !0x0;
2490 var _0x3459ab = $(a0_0xeeba('0x145'));
2491 _0x3459ab['addClass']('on'), _0x3459ab[a0_0xeeba('0x2f6')](a0_0xeeba('0x28d'))[a0_0xeeba('0x93')](new MousePopup(a0_0xeeba('0x3af')));
2492 }(_0x2d5775['settings']['autostart'] || _0x163e95[a0_0xeeba('0x6b')][a0_0xeeba('0x11e')] || _0xbb2559[a0_0xeeba('0x6b')][a0_0xeeba('0x11e')]) && _0x381c6d[a0_0xeeba('0x1df')]();
2493 }
2494 }, {
2495 'key': a0_0xeeba('0x9'),
2496 'value': function(_0x5bde13, _0x141292) {
2497 var _0x5977d0 = _0x5bde13;
2498 _0x381c6d['interval'] = setInterval(function() {
2499 $(a0_0xeeba('0x3e2'))[a0_0xeeba('0x1b7')](_0x27e24c[a0_0xeeba('0x159')](_0x5bde13)), $('#time_autobot\x20.progress\x20.indicator')[a0_0xeeba('0x162')]((_0x5977d0 - _0x5bde13) / _0x5977d0 * 0x64 + '%'), --_0x5bde13 < 0x0 && (clearInterval(_0x381c6d['interval']), _0x141292());
2500 }, 0x3e8);
2501 }
2502 }, {
2503 'key': a0_0xeeba('0x1d9'),
2504 'value': function(_0x55bc2c) {
2505 var _0x161192 = $('#' + _0x55bc2c + a0_0xeeba('0x2cb'));
2506 _0x161192[a0_0xeeba('0x1b2')]('disabled'), _0x161192['on'](a0_0xeeba('0xf0'), function(_0x28952c) {
2507 if (_0x28952c[a0_0xeeba('0x25d')](), a0_0xeeba('0x2bd') === _0x55bc2c && !_0x27e24c[a0_0xeeba('0x2c3')]('captain')) return HumanMessage[a0_0xeeba('0x34f')](Game['premium_data'][a0_0xeeba('0x2b0')][a0_0xeeba('0x16d')] + '\x20' + DM['getl10n'](a0_0xeeba('0x2b9'))['advisors'][a0_0xeeba('0xb2')]['toLowerCase']() + '.'), !0x1;
2508 !0x0 === _0x381c6d[a0_0xeeba('0x2eb')][_0x55bc2c][a0_0xeeba('0x30f')] ? (_0x381c6d[a0_0xeeba('0x2eb')][_0x55bc2c][a0_0xeeba('0x30f')] = !0x1, _0x161192['removeClass']('on'), _0x161192['find'](a0_0xeeba('0x28d'))[a0_0xeeba('0x93')](new MousePopup(a0_0xeeba('0x136') + _0x55bc2c)), HumanMessage[a0_0xeeba('0x81')](_0x55bc2c + a0_0xeeba('0x8b')), _0x217695[a0_0xeeba('0x7b')](_0x55bc2c + a0_0xeeba('0x8b'), 0x0), 'Autofarm' === _0x55bc2c ? _0x2d5775[a0_0xeeba('0x35e')]() : a0_0xeeba('0x20') === _0x55bc2c ? _0x163e95['stop']() : a0_0xeeba('0x371') === _0x55bc2c ? _0xbb2559['stop']() : 'Autoattack' === _0x55bc2c && _0x1c9958['stop']()) : !0x1 === _0x381c6d[a0_0xeeba('0x2eb')][_0x55bc2c][a0_0xeeba('0x30f')] && (_0x161192[a0_0xeeba('0xe4')]('on'), HumanMessage['success'](_0x55bc2c + a0_0xeeba('0x76')), _0x217695[a0_0xeeba('0x7b')](_0x55bc2c + a0_0xeeba('0x76'), 0x0), _0x161192[a0_0xeeba('0x2f6')](a0_0xeeba('0x28d'))[a0_0xeeba('0x93')](new MousePopup(a0_0xeeba('0x354') + _0x55bc2c)), _0x381c6d['modules'][_0x55bc2c][a0_0xeeba('0x30f')] = !0x0, a0_0xeeba('0x2bd') === _0x55bc2c && _0x1c9958[a0_0xeeba('0x1df')]()), a0_0xeeba('0x2bd') !== _0x55bc2c && _0x381c6d['checkWhatToStart']();
2509 }), _0x161192['find'](a0_0xeeba('0x28d'))['mousePopup'](new MousePopup('Start\x20' + _0x55bc2c));
2510 }
2511 }, {
2512 'key': a0_0xeeba('0x132'),
2513 'value': function() {
2514 var _0x179275 = 0x0;
2515 $['each'](_0x381c6d[a0_0xeeba('0x2eb')], function(_0x35e399, _0x34ba03) {
2516 _0x34ba03['isOn'] && a0_0xeeba('0x2bd') !== _0x34ba03 && _0x179275++;
2517 }), 0x0 === _0x179275 ? _0x381c6d[a0_0xeeba('0x35e')]() : _0x179275 >= 0x0 && !_0x381c6d[a0_0xeeba('0x294')][a0_0xeeba('0x3cd')]() && (clearInterval(_0x381c6d[a0_0xeeba('0xb0')]), _0x381c6d[a0_0xeeba('0x1df')]());
2518 }
2519 }, {
2520 'key': a0_0xeeba('0x181'),
2521 'value': function() {
2522 var _0x428b56 = 0x0;
2523 $[a0_0xeeba('0x1f')](ITowns['towns'], function(_0x200746, _0x1089bc) {
2524 var _0x4e3985 = new _0x381c6d[(a0_0xeeba('0x2c0'))][(a0_0xeeba('0xe5'))]();
2525 _0x4e3985[a0_0xeeba('0x2d4')] = _0x428b56, _0x4e3985['id'] = _0x1089bc['id'], _0x4e3985['name'] = _0x1089bc['name'], $[a0_0xeeba('0x1f')](ITowns['towns'], function(_0x181a9d, _0x257607) {
2526 _0x1089bc[a0_0xeeba('0x185')]() === _0x257607[a0_0xeeba('0x185')]() && _0x1089bc['getIslandCoordinateY']() === _0x257607[a0_0xeeba('0x32b')]() && _0x1089bc['id'] !== _0x257607['id'] && _0x4e3985[a0_0xeeba('0x39e')][a0_0xeeba('0x172')](_0x257607['id']);
2527 }), _0x381c6d['playerTowns'][a0_0xeeba('0x172')](_0x4e3985), _0x428b56++;
2528 }), _0x381c6d[a0_0xeeba('0xdb')][a0_0xeeba('0x3a7')](function(_0x2832c2, _0xc2f4ec) {
2529 var _0x4cd483 = _0x2832c2[a0_0xeeba('0x16d')],
2530 _0x77b88 = _0xc2f4ec[a0_0xeeba('0x16d')];
2531 return _0x4cd483 === _0x77b88 ? 0x0 : _0x4cd483 > _0x77b88 ? 0x1 : -0x1;
2532 });
2533 }
2534 }, {
2535 'key': 'callbackAuth',
2536 'value': function(_0xd5123a) {
2537 _0x27e24c[a0_0xeeba('0x26b')] = !0x0, _0x27e24c[a0_0xeeba('0x14e')] = _0xd5123a['trial_time'], _0x27e24c[a0_0xeeba('0x66')] = _0xd5123a[a0_0xeeba('0x66')], _0x27e24c[a0_0xeeba('0x2dd')] = _0xd5123a[a0_0xeeba('0x2dd')], '' !== _0xd5123a[a0_0xeeba('0x1f7')] && _0x597e98[a0_0xeeba('0x1e2')](_0xd5123a[a0_0xeeba('0x1f7')]), _0x27e24c['trial_time'] - Timestamp['now']() >= 0x0 || _0x27e24c[a0_0xeeba('0x66')] - Timestamp[a0_0xeeba('0x189')]() >= 0x0 ? (_0x381c6d['hasPremium'] = !0x0, _0x381c6d['init'](), _0x2d5775[a0_0xeeba('0x176')](), _0x2d5775['setSettings'](_0xd5123a[a0_0xeeba('0x7f')]), _0x163e95[a0_0xeeba('0x176')](), _0x163e95['setSettings'](_0xd5123a[a0_0xeeba('0x83')]), _0xbb2559[a0_0xeeba('0x176')](), _0xbb2559[a0_0xeeba('0x1e2')](_0xd5123a[a0_0xeeba('0x3e3')]), _0xbb2559['setQueue'](_0xd5123a[a0_0xeeba('0x35')], _0xd5123a[a0_0xeeba('0x256')], _0xd5123a[a0_0xeeba('0x163')]), _0x1c9958[a0_0xeeba('0x176')](), _0x381c6d[a0_0xeeba('0x2e')]()) : (_0x381c6d['hasPremium'] = !0x1, _0x381c6d[a0_0xeeba('0x176')](), _0x2d5775[a0_0xeeba('0x176')](), $(a0_0xeeba('0x1e7'))[a0_0xeeba('0x93')](new MousePopup(_0x381c6d[a0_0xeeba('0x36b')])), $(a0_0xeeba('0x145'))[a0_0xeeba('0x93')](new MousePopup(_0x381c6d[a0_0xeeba('0x36b')])), $(a0_0xeeba('0x3c8'))[a0_0xeeba('0x93')](new MousePopup(_0x381c6d['requiredPrem'])), _0x27e24c[a0_0xeeba('0x1d5')](a0_0xeeba('0x299'), 'Unfortunately\x20your\x20premium\x20membership\x20is\x20over.\x20Please\x20upgrade\x20now!'));
2538 }
2539 }], (_0x2f9376 = null) && _0x3822c6(_0x3bcad4[a0_0xeeba('0x166')], _0x2f9376), _0x18bfdc && _0x3822c6(_0x3bcad4, _0x18bfdc), _0x381c6d;
2540 }();
2541 Object['defineProperty'](_0x3ec542, 'models', {
2542 'enumerable': !0x0,
2543 'writable': !0x0,
2544 'value': {
2545 'Town': function() {
2546 this['key'] = null, this['id'] = null, this[a0_0xeeba('0x16d')] = null, this[a0_0xeeba('0x2c2')] = {}, this[a0_0xeeba('0x39e')] = [], this[a0_0xeeba('0x1eb')] = 0x0, this[a0_0xeeba('0x2eb')] = {
2547 'Autofarm': {
2548 'isReadyTime': 0x0
2549 },
2550 'Autoculture': {
2551 'isReadyTime': 0x0
2552 },
2553 'Autobuild': {
2554 'isReadyTime': 0x0
2555 }
2556 }, this['startFarming'] = function() {
2557 _0x2d5775['startFarming'](this);
2558 }, this[a0_0xeeba('0x26a')] = function() {
2559 _0x163e95[a0_0xeeba('0x26a')](this);
2560 }, this[a0_0xeeba('0x3d7')] = function() {
2561 _0xbb2559[a0_0xeeba('0x3d7')](this);
2562 };
2563 }
2564 }
2565 }), Object[a0_0xeeba('0x38c')](_0x3ec542, a0_0xeeba('0x294'), {
2566 'enumerable': !0x0,
2567 'writable': !0x0,
2568 'value': {
2569 'total': 0x0,
2570 'queue': [],
2571 'add': function(_0x41b864) {
2572 this[a0_0xeeba('0x1a3')]++, this[a0_0xeeba('0xbc')][a0_0xeeba('0x172')](_0x41b864);
2573 },
2574 'start': function() {
2575 this[a0_0xeeba('0x38e')]();
2576 },
2577 'stop': function() {
2578 this[a0_0xeeba('0xbc')] = [];
2579 },
2580 'isRunning': function() {
2581 return this[a0_0xeeba('0xbc')][a0_0xeeba('0x26d')] > 0x0 || this['total'] > 0x0;
2582 },
2583 'next': function() {
2584 _0x3ec542[a0_0xeeba('0x380')]();
2585 var _0x53211a = this[a0_0xeeba('0xbc')]['shift']();
2586 _0x53211a ? _0x53211a['fx']() : this[a0_0xeeba('0xbc')][a0_0xeeba('0x26d')] <= 0x0 && (this[a0_0xeeba('0x1a3')] = 0x0, _0x3ec542[a0_0xeeba('0x210')]());
2587 }
2588 }
2589 }), Object[a0_0xeeba('0x38c')](_0x3ec542, a0_0xeeba('0x155'), {
2590 'enumerable': !0x0,
2591 'writable': !0x0,
2592 'value': null
2593 }), Object[a0_0xeeba('0x38c')](_0x3ec542, a0_0xeeba('0xdb'), {
2594 'enumerable': !0x0,
2595 'writable': !0x0,
2596 'value': []
2597 }), Object['defineProperty'](_0x3ec542, a0_0xeeba('0xb0'), {
2598 'enumerable': !0x0,
2599 'writable': !0x0,
2600 'value': !0x1
2601 }), Object[a0_0xeeba('0x38c')](_0x3ec542, a0_0xeeba('0x60'), {
2602 'enumerable': !0x0,
2603 'writable': !0x0,
2604 'value': !0x1
2605 }), Object['defineProperty'](_0x3ec542, a0_0xeeba('0x2eb'), {
2606 'enumerable': !0x0,
2607 'writable': !0x0,
2608 'value': {
2609 'Autofarm': {
2610 'isOn': !0x1
2611 },
2612 'Autoculture': {
2613 'isOn': !0x1
2614 },
2615 'Autobuild': {
2616 'isOn': !0x1
2617 },
2618 'Autoattack': {
2619 'isOn': !0x1
2620 }
2621 }
2622 }), Object['defineProperty'](_0x3ec542, a0_0xeeba('0x36b'), {
2623 'enumerable': !0x0,
2624 'writable': !0x0,
2625 'value': DM[a0_0xeeba('0x3ec')](a0_0xeeba('0x311'))['requirements'][a0_0xeeba('0x92')]('.', '') + a0_0xeeba('0x1b5')
2626 });
2627 var _0x538336 = _0x3ec542;
2628
2629 function _0x3cc3f2(_0x479425) {
2630 return (_0x3cc3f2 = 'function' == typeof Symbol && 'symbol' == typeof Symbol['iterator'] ? function(_0x2dcceb) {
2631 return typeof _0x2dcceb;
2632 } : function(_0x5d17dd) {
2633 return _0x5d17dd && a0_0xeeba('0x1f6') == typeof Symbol && _0x5d17dd[a0_0xeeba('0x1f4')] === Symbol && _0x5d17dd !== Symbol[a0_0xeeba('0x166')] ? a0_0xeeba('0x1e') : typeof _0x5d17dd;
2634 })(_0x479425);
2635 }
2636
2637 function _0xe86ef7(_0x3e39ba, _0x45a609) {
2638 for (var _0x1cf4d0 = 0x0; _0x1cf4d0 < _0x45a609[a0_0xeeba('0x26d')]; _0x1cf4d0++) {
2639 var _0x154d98 = _0x45a609[_0x1cf4d0];
2640 _0x154d98[a0_0xeeba('0x35f')] = _0x154d98[a0_0xeeba('0x35f')] || !0x1, _0x154d98['configurable'] = !0x0, a0_0xeeba('0x285') in _0x154d98 && (_0x154d98['writable'] = !0x0), Object[a0_0xeeba('0x38c')](_0x3e39ba, _0x154d98[a0_0xeeba('0x2d4')], _0x154d98);
2641 }
2642 }
2643 var _0x2d3df1 = function() {
2644 function _0x5ccadb() {
2645 ! function(_0x57cbb3, _0x1b9930) {
2646 if (!(_0x57cbb3 instanceof _0x1b9930)) throw new TypeError(a0_0xeeba('0x8c'));
2647 }(this, _0x5ccadb), Object[a0_0xeeba('0x38c')](this, a0_0xeeba('0x14e'), {
2648 'enumerable': !0x0,
2649 'writable': !0x0,
2650 'value': 0x0
2651 }), Object['defineProperty'](this, a0_0xeeba('0x66'), {
2652 'enumerable': !0x0,
2653 'writable': !0x0,
2654 'value': 0x0
2655 }), Object[a0_0xeeba('0x38c')](this, a0_0xeeba('0x2dd'), {
2656 'enumerable': !0x0,
2657 'writable': !0x0,
2658 'value': 0x0
2659 }), Object[a0_0xeeba('0x38c')](this, a0_0xeeba('0x3c0'), {
2660 'enumerable': !0x0,
2661 'writable': !0x0,
2662 'value': null
2663 });
2664 }
2665 var _0x3827f8, _0x2b230e, _0x192b2a;
2666 return _0x3827f8 = _0x5ccadb, _0x192b2a = [{
2667 'key': 'init',
2668 'value': function() {
2669 _0x217695[a0_0xeeba('0x7b')](a0_0xeeba('0x16f'), 0x0), _0x5ccadb[a0_0xeeba('0x250')](), _0x5ccadb[a0_0xeeba('0x1fd')](), _0x5ccadb[a0_0xeeba('0xd6')](), _0x5ccadb[a0_0xeeba('0x1dd')](), _0x5ccadb['initAjax'](), _0x5ccadb[a0_0xeeba('0x1bb')](), _0x5ccadb[a0_0xeeba('0x1b8')](), _0x597e98[a0_0xeeba('0x176')]();
2670 }
2671 }, {
2672 'key': a0_0xeeba('0x1dd'),
2673 'value': function() {
2674 _0x5ccadb['toolbox_element'] = $('.nui_bot_toolbox');
2675 }
2676 }, {
2677 'key': 'authenticate',
2678 'value': function() {
2679 _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0x263'), _0x5ccadb[a0_0xeeba('0x3ea')], _0x538336['callbackAuth']);
2680 }
2681 }, {
2682 'key': 'obServer',
2683 'value': function() {
2684 $[a0_0xeeba('0xaf')](GameEvents[a0_0xeeba('0x3d2')][a0_0xeeba('0x172')])[a0_0xeeba('0x147')]('GRCRTNotification', function() {
2685 $(a0_0xeeba('0x58'))['on']('click', function() {
2686 _0x5ccadb[a0_0xeeba('0x4b')]();
2687 });
2688 });
2689 }
2690 }, {
2691 'key': 'initWnd',
2692 'value': function() {
2693 if (_0x5ccadb[a0_0xeeba('0x26b')]) {
2694 if (void 0x0 !== _0x5ccadb[a0_0xeeba('0x1d8')]) {
2695 try {
2696 _0x5ccadb[a0_0xeeba('0x1d8')][a0_0xeeba('0xef')]();
2697 } catch (_0x66b7c4) {}
2698 _0x5ccadb[a0_0xeeba('0x1d8')] = void 0x0;
2699 }
2700 if (void 0x0 !== _0x5ccadb[a0_0xeeba('0x133')]) {
2701 try {
2702 _0x5ccadb[a0_0xeeba('0x133')][a0_0xeeba('0xef')]();
2703 } catch (_0x16a327) {}
2704 _0x5ccadb[a0_0xeeba('0x133')] = void 0x0;
2705 }
2706 _0x5ccadb[a0_0xeeba('0x1d8')] = Layout['dialogWindow']['open']('', _0x5ccadb['title'] + a0_0xeeba('0x4d') + _0x5ccadb[a0_0xeeba('0x260')] + '</span>', 0x1f4, 0x15e, '', !0x1), _0x5ccadb[a0_0xeeba('0x1d8')][a0_0xeeba('0x193')]([0x15e]), _0x5ccadb['botWnd']['setPosition'](['center', a0_0xeeba('0x94')]);
2707 var _0x569e43 = _0x5ccadb[a0_0xeeba('0x1d8')][a0_0xeeba('0x11f')]();
2708 _0x569e43[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2709 'class': a0_0xeeba('0x24c'),
2710 'style': a0_0xeeba('0x38a')
2711 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x1c2'), {
2712 'class': a0_0xeeba('0x2f5')
2713 })[a0_0xeeba('0x25e')](_0x5ccadb[a0_0xeeba('0x8a')](a0_0xeeba('0xe7'), a0_0xeeba('0x3ea'), a0_0xeeba('0x3ea')))[a0_0xeeba('0x25e')](_0x5ccadb['addMenuItem']('CONSOLE', a0_0xeeba('0x9b'), a0_0xeeba('0x9b')))['prepend'](_0x5ccadb[a0_0xeeba('0x8a')](a0_0xeeba('0x20f'), a0_0xeeba('0x239'), a0_0xeeba('0x239')))[a0_0xeeba('0x25e')](_0x5ccadb[a0_0xeeba('0x8a')](a0_0xeeba('0x85'), a0_0xeeba('0x3d6'), a0_0xeeba('0x3d6'))))), _0x569e43[a0_0xeeba('0x2f6')]('.menu_inner\x20li:last-child')[a0_0xeeba('0x1f2')](_0x5ccadb['addMenuItem'](a0_0xeeba('0x1b6'), a0_0xeeba('0x130'), a0_0xeeba('0x2bd'))), _0x569e43[a0_0xeeba('0x2f6')](a0_0xeeba('0x67'))[a0_0xeeba('0x1f2')](_0x5ccadb[a0_0xeeba('0x8a')](a0_0xeeba('0x2aa'), a0_0xeeba('0x11a'), a0_0xeeba('0x371'))), _0x569e43[a0_0xeeba('0x2f6')](a0_0xeeba('0x67'))['before'](_0x5ccadb[a0_0xeeba('0x8a')](a0_0xeeba('0x26e'), 'Culture', a0_0xeeba('0x20'))), _0x569e43[a0_0xeeba('0x2f6')](a0_0xeeba('0x67'))[a0_0xeeba('0x1f2')](_0x5ccadb[a0_0xeeba('0x8a')]('FARMMODULE', a0_0xeeba('0x361'), a0_0xeeba('0x197'))), $('#Autobot-AUTHORIZE')[a0_0xeeba('0xf0')]();
2714 }
2715 }
2716 }, {
2717 'key': a0_0xeeba('0x8a'),
2718 'value': function(_0x3f4e45, _0x5c401c, _0x3d2aa0, _0x448291) {
2719 return $(a0_0xeeba('0x277'))[a0_0xeeba('0x342')]($(a0_0xeeba('0x1a4'), {
2720 'class': a0_0xeeba('0x319'),
2721 'href': '#',
2722 'id': a0_0xeeba('0x1bf') + _0x3f4e45,
2723 'rel': _0x3d2aa0
2724 })[a0_0xeeba('0xf0')](function() {
2725 if (_0x448291) return !0x1;
2726 if (_0x5ccadb[a0_0xeeba('0x1d8')][a0_0xeeba('0x11f')]()[a0_0xeeba('0x2f6')]('li\x20a.submenu_link')['removeClass'](a0_0xeeba('0x204')), $(this)[a0_0xeeba('0xe4')](a0_0xeeba('0x204')), _0x5ccadb['botWnd'][a0_0xeeba('0x33c')](_0x5ccadb[a0_0xeeba('0x1f5')]($(this)[a0_0xeeba('0x179')](a0_0xeeba('0x378')))), 'Console' === $(this)[a0_0xeeba('0x179')](a0_0xeeba('0x378'))) {
2727 var _0x26a6ce = $(a0_0xeeba('0x3a6')),
2728 _0xf37312 = $(a0_0xeeba('0x379'))[0x0][a0_0xeeba('0xf2')];
2729 _0x26a6ce[a0_0xeeba('0x2a2')](_0xf37312);
2730 }
2731 })[a0_0xeeba('0x342')](function() {
2732 return a0_0xeeba('0x3d6') !== _0x3d2aa0 ? $(a0_0xeeba('0xb4'), {
2733 'class': a0_0xeeba('0x29a')
2734 })[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
2735 'class': a0_0xeeba('0xdd')
2736 })['append']($(a0_0xeeba('0xb4'), {
2737 'class': a0_0xeeba('0xc4')
2738 })[a0_0xeeba('0x1b7')](_0x5c401c))) : a0_0xeeba('0x114');
2739 }));
2740 }
2741 }, {
2742 'key': a0_0xeeba('0x1f5'),
2743 'value': function(_0x6f5a7f) {
2744 return a0_0xeeba('0x239') === _0x6f5a7f ? _0x217695['contentConsole']() : a0_0xeeba('0x3ea') === _0x6f5a7f ? _0x5ccadb[a0_0xeeba('0xbd')]() : a0_0xeeba('0x3d6') === _0x6f5a7f ? _0x5ccadb[a0_0xeeba('0x149')]() : 'Autofarm' === _0x6f5a7f ? _0x2d5775['contentSettings']() : a0_0xeeba('0x371') === _0x6f5a7f ? _0xbb2559['contentSettings']() : a0_0xeeba('0x2bd') === _0x6f5a7f ? _0x1c9958[a0_0xeeba('0x3d1')]() : 'Autoculture' === _0x6f5a7f ? _0x163e95['contentSettings']() : a0_0xeeba('0x9b') === _0x6f5a7f ? _0x597e98['contentSettings']() : void 0x0;
2745 }
2746 }, {
2747 'key': 'contentAccount',
2748 'value': function() {
2749 var _0x2de628 = {
2750 'Name:': Game[a0_0xeeba('0x3e8')],
2751 'World:': Game['world_id'],
2752 'Rank:': Game[a0_0xeeba('0xbb')],
2753 'Towns:': Game[a0_0xeeba('0x127')],
2754 'Language:': Game['locale_lang']
2755 },
2756 _0x3b1730 = $(a0_0xeeba('0x298'), {
2757 'class': 'game_table\x20layout_main_sprite',
2758 'cellspacing': '0',
2759 'width': '100%'
2760 })[a0_0xeeba('0x342')](function() {
2761 var _0x40d903 = 0x0,
2762 _0x1c718f = $(a0_0xeeba('0x23b'));
2763 return $[a0_0xeeba('0x1f')](_0x2de628, function(_0x55e01e, _0x1c171b) {
2764 _0x1c718f[a0_0xeeba('0x342')]($('<tr/>', {
2765 'class': _0x40d903 % 0x2 ? a0_0xeeba('0x118') : a0_0xeeba('0x314')
2766 })[a0_0xeeba('0x342')]($('<td/>', {
2767 'style': a0_0xeeba('0x385')
2768 })[a0_0xeeba('0x1b7')](_0x55e01e))[a0_0xeeba('0x342')]($('<td/>')[a0_0xeeba('0x1b7')](_0x1c171b))), _0x40d903++;
2769 }), _0x1c718f[a0_0xeeba('0x342')]($(a0_0xeeba('0xd7'), {
2770 'class': a0_0xeeba('0x118')
2771 })['append']($('<td/>', {
2772 'style': a0_0xeeba('0x385')
2773 })[a0_0xeeba('0x1b7')]('Premium:'))['append']($(a0_0xeeba('0x24a'))[a0_0xeeba('0x342')](_0x5ccadb['premium_time'] - Timestamp[a0_0xeeba('0x189')]() >= 0x0 ? _0x5ccadb[a0_0xeeba('0x2cc')](_0x5ccadb['premium_time'] - Timestamp[a0_0xeeba('0x189')]()) : a0_0xeeba('0x6e'))[a0_0xeeba('0x342')]($('<div/>', {
2774 'id': a0_0xeeba('0x12c')
2775 })[a0_0xeeba('0x342')]($('<div/>', {
2776 'class': a0_0xeeba('0xd8')
2777 })[a0_0xeeba('0x1b7')](_0x5ccadb['premium_time'] - Timestamp[a0_0xeeba('0x189')]() >= 0x0 ? 'Add\x20days' : a0_0xeeba('0x346')))['on'](a0_0xeeba('0xf0'), function() {
2778 return _0x5ccadb['getPremium']();
2779 })))), _0x1c718f[a0_0xeeba('0x342')]($('<tr/>', {
2780 'class': a0_0xeeba('0x314')
2781 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x24a'), {
2782 'style': a0_0xeeba('0x385')
2783 })[a0_0xeeba('0x1b7')](a0_0xeeba('0x3b8')))['append']($(a0_0xeeba('0x24a'))[a0_0xeeba('0x342')](function() {
2784 return _0x5ccadb[a0_0xeeba('0x14e')] - Timestamp[a0_0xeeba('0x189')]() >= 0x0 ? _0x5ccadb[a0_0xeeba('0x2cc')](_0x5ccadb[a0_0xeeba('0x14e')] - Timestamp[a0_0xeeba('0x189')]()) : 'Trial\x20is\x20over';
2785 })[a0_0xeeba('0x342')](function() {
2786 return 0x0 === _0x5ccadb['facebook_like'] ? $(a0_0xeeba('0x1a4'), {
2787 'id': a0_0xeeba('0x24')
2788 })[a0_0xeeba('0x1b7')](a0_0xeeba('0x2b3'))[a0_0xeeba('0xf0')]('on', function() {
2789 return _0x5ccadb['botFacebookWnd']();
2790 }) : null;
2791 }))), _0x1c718f;
2792 });
2793 return _0x15022e['gameWrapper']('Account', a0_0xeeba('0x322'), _0x3b1730, a0_0xeeba('0x117'))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2794 'id': a0_0xeeba('0x2a3'),
2795 'style': ''
2796 }));
2797 }
2798 }, {
2799 'key': a0_0xeeba('0x149'),
2800 'value': function() {
2801 return $(a0_0xeeba('0x292'), {
2802 'id': a0_0xeeba('0x203'),
2803 'style': a0_0xeeba('0x119')
2804 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x3cf'))['html'](a0_0xeeba('0x2ee')))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2805 'style': a0_0xeeba('0x171')
2806 })[a0_0xeeba('0x342')](_0x15022e['selectBox']({
2807 'id': a0_0xeeba('0x261'),
2808 'name': a0_0xeeba('0x261'),
2809 'label': a0_0xeeba('0x2b2'),
2810 'styles': a0_0xeeba('0x392'),
2811 'value': 'Bug\x20report',
2812 'options': [{
2813 'value': a0_0xeeba('0x160'),
2814 'name': 'Bug\x20report'
2815 }, {
2816 'value': a0_0xeeba('0x3c9'),
2817 'name': a0_0xeeba('0x3c9')
2818 }, {
2819 'value': a0_0xeeba('0x313'),
2820 'name': 'Financial'
2821 }, {
2822 'value': a0_0xeeba('0x337'),
2823 'name': a0_0xeeba('0x337')
2824 }]
2825 }))['append'](_0x15022e[a0_0xeeba('0xb8')]({
2826 'id': a0_0xeeba('0x349'),
2827 'name': a0_0xeeba('0x28b'),
2828 'style': 'margin-left:\x2012px;width:\x20166px;',
2829 'value': '',
2830 'type': a0_0xeeba('0x43')
2831 }))[a0_0xeeba('0x342')](_0x15022e[a0_0xeeba('0xb8')]({
2832 'id': a0_0xeeba('0x267'),
2833 'name': a0_0xeeba('0x1c8'),
2834 'style': a0_0xeeba('0x167'),
2835 'value': '',
2836 'type': 'text'
2837 }))[a0_0xeeba('0x342')](_0x15022e['textarea']({
2838 'id': a0_0xeeba('0x8e'),
2839 'name': a0_0xeeba('0xfd'),
2840 'value': ''
2841 }))['append'](_0x15022e['button']({
2842 'name': a0_0xeeba('0x13'),
2843 'style': a0_0xeeba('0x266')
2844 })['on']('click', function() {
2845 var _0x1f161e = $(a0_0xeeba('0x168'))[a0_0xeeba('0x1c0')](),
2846 _0x2f81d3 = !0x1;
2847 void 0x0 === _0x1f161e[a0_0xeeba('0x349')] || '' === _0x1f161e['support_input_email'] ? _0x2f81d3 = a0_0xeeba('0x1bc') : void 0x0 === _0x1f161e[a0_0xeeba('0x267')] || '' === _0x1f161e['support_input_subject'] ? _0x2f81d3 = a0_0xeeba('0x2bb') : void 0x0 === _0x1f161e[a0_0xeeba('0x8e')] || '' === _0x1f161e[a0_0xeeba('0x8e')] ? _0x2f81d3 = a0_0xeeba('0x1b') : void 0x0 === _0x1f161e[a0_0xeeba('0x349')] || /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/ ['test'](_0x1f161e[a0_0xeeba('0x349')]) || (_0x2f81d3 = 'Your\x20email\x20is\x20not\x20valid!'), _0x2f81d3 ? HumanMessage[a0_0xeeba('0x34f')](_0x2f81d3) : _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0x231'), $[a0_0xeeba('0x63')]({
2848 'csrfToken': _0x5ccadb['Account'][a0_0xeeba('0x343')],
2849 'player_name': _0x5ccadb['Account'][a0_0xeeba('0x3e8')],
2850 'player_id': _0x5ccadb['Account'][a0_0xeeba('0x268')],
2851 'world_id': _0x5ccadb[a0_0xeeba('0x3ea')][a0_0xeeba('0x2a5')]
2852 }, _0x1f161e), function(_0x151a16) {
2853 if (_0x151a16[a0_0xeeba('0x81')]) {
2854 if (void 0x0 !== _0x5ccadb['botWnd']) {
2855 try {
2856 _0x5ccadb[a0_0xeeba('0x1d8')]['close']();
2857 } catch (_0x3db786) {}
2858 _0x5ccadb[a0_0xeeba('0x1d8')] = void 0x0;
2859 }
2860 HumanMessage[a0_0xeeba('0x81')](a0_0xeeba('0xd4'));
2861 }
2862 });
2863 })))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2864 'style': 'float:\x20right;\x20width:\x20215px;'
2865 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x1a4'), {
2866 'id': a0_0xeeba('0x3a3'),
2867 'target': a0_0xeeba('0x3c7'),
2868 'href': a0_0xeeba('0x1fb')
2869 })['html'](a0_0xeeba('0x116'))));
2870 }
2871 }, {
2872 'key': a0_0xeeba('0x3a0'),
2873 'value': function() {
2874 $('.allianceforum.main_menu_item')[a0_0xeeba('0x1d7')](a0_0xeeba('0x32a')) || _0x3f8845[a0_0xeeba('0x47')](function(_0x4c3e1a) {
2875 void 0x0 !== _0x4c3e1a['plain'][a0_0xeeba('0x1b7')] && $[a0_0xeeba('0x1f')]($(_0x4c3e1a[a0_0xeeba('0x3e9')][a0_0xeeba('0x1b7')])[a0_0xeeba('0x2f6')](a0_0xeeba('0x57')), function() {
2876 var _0x593b2e = atob($(this)['attr'](a0_0xeeba('0x7e')));
2877 console[a0_0xeeba('0x46')](JSON[a0_0xeeba('0x199')](_0x593b2e[a0_0xeeba('0xba')](0x0, _0x593b2e[a0_0xeeba('0x26d')] - 0x3)));
2878 });
2879 });
2880 }
2881 }, {
2882 'key': a0_0xeeba('0x1b8'),
2883 'value': function() {
2884 var _0x55b996;
2885 HumanMessage[a0_0xeeba('0x386')] = (_0x55b996 = HumanMessage['_initialize'], function() {
2886 _0x55b996[a0_0xeeba('0x2f9')](this, arguments), $(window)[a0_0xeeba('0x33e')]('click');
2887 });
2888 }
2889 }, {
2890 'key': a0_0xeeba('0x4b'),
2891 'value': function() {
2892 var _0x1c6858 = this;
2893 if (_0x5ccadb['isLogged']) {
2894 if ($[a0_0xeeba('0xaf')](GameEvents[a0_0xeeba('0x249')][a0_0xeeba('0xf0')])[a0_0xeeba('0x23d')]({
2895 'option_id': a0_0xeeba('0x2b9')
2896 }), void 0x0 !== _0x5ccadb[a0_0xeeba('0x133')]) {
2897 try {
2898 _0x5ccadb[a0_0xeeba('0x133')][a0_0xeeba('0xef')]();
2899 } catch (_0x74d2fd) {}
2900 _0x5ccadb[a0_0xeeba('0x133')] = void 0x0;
2901 }
2902 if (void 0x0 !== _0x5ccadb[a0_0xeeba('0x1d8')]) {
2903 try {
2904 _0x5ccadb[a0_0xeeba('0x1d8')]['close']();
2905 } catch (_0x3c90ed) {}
2906 _0x5ccadb['botWnd'] = void 0x0;
2907 }
2908 _0x5ccadb['botPremWnd'] = Layout[a0_0xeeba('0xe')]['open']('', a0_0xeeba('0x27d') + _0x5ccadb[a0_0xeeba('0x260')] + a0_0xeeba('0x2f8'), 0x1f4, 0x15e, '', !0x1), _0x5ccadb['botPremWnd']['setHeight']([0x15e]), _0x5ccadb[a0_0xeeba('0x133')]['setPosition']([a0_0xeeba('0x94'), 'center']);
2909 var _0x1efc94 = $(a0_0xeeba('0x137'), {
2910 'id': a0_0xeeba('0x1c3')
2911 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2912 'id': a0_0xeeba('0x29a')
2913 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x1c2'), {
2914 'id': a0_0xeeba('0xb5')
2915 })['append']($(a0_0xeeba('0x277'), {
2916 'class': a0_0xeeba('0x204')
2917 })['append']($(a0_0xeeba('0xb4'), {
2918 'class': a0_0xeeba('0x30c')
2919 })[a0_0xeeba('0x1b7')](a0_0xeeba('0x2bc')))[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
2920 'class': a0_0xeeba('0x219')
2921 })['html'](a0_0xeeba('0x213'))))[a0_0xeeba('0x342')]($(a0_0xeeba('0x277'))[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
2922 'class': a0_0xeeba('0x30c')
2923 })[a0_0xeeba('0x1b7')]('2\x20Month'))[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
2924 'class': 'price'
2925 })[a0_0xeeba('0x1b7')](a0_0xeeba('0x61')))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2926 'class': a0_0xeeba('0x1f3')
2927 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2928 'class': a0_0xeeba('0x345'),
2929 'style': a0_0xeeba('0x3b5')
2930 })[a0_0xeeba('0x1b7')](a0_0xeeba('0x388')))))['append']($('<li/>')[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
2931 'class': a0_0xeeba('0x30c')
2932 })['html'](a0_0xeeba('0x188')))[a0_0xeeba('0x342')]($('<span/>', {
2933 'class': a0_0xeeba('0x219')
2934 })['html']('€ 19,99'))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2935 'class': 'referenceAmount'
2936 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2937 'class': a0_0xeeba('0x345'),
2938 'style': a0_0xeeba('0x3b5')
2939 })[a0_0xeeba('0x1b7')](a0_0xeeba('0x16b')))))['append']($(a0_0xeeba('0x277'))['append']($(a0_0xeeba('0xb4'), {
2940 'class': 'amount'
2941 })[a0_0xeeba('0x1b7')](a0_0xeeba('0x34a')))[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
2942 'class': a0_0xeeba('0x219')
2943 })[a0_0xeeba('0x1b7')]('€ 49,99'))['append']($(a0_0xeeba('0x137'), {
2944 'class': 'referenceAmount'
2945 })[a0_0xeeba('0x342')]($('<div/>', {
2946 'class': a0_0xeeba('0x345'),
2947 'style': a0_0xeeba('0x3b5')
2948 })[a0_0xeeba('0x1b7')](a0_0xeeba('0x236')))))))['append']($(a0_0xeeba('0x137'), {
2949 'id': a0_0xeeba('0xdd')
2950 })[a0_0xeeba('0x342')]($('<div/>', {
2951 'id': 'pothead'
2952 }))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
2953 'id': a0_0xeeba('0x382')
2954 })));
2955 _0x5ccadb[a0_0xeeba('0x133')][a0_0xeeba('0x33c')](_0x1efc94), $(a0_0xeeba('0x303'))['on'](a0_0xeeba('0xf0'), function() {
2956 $(a0_0xeeba('0x303'))[a0_0xeeba('0x1b2')](a0_0xeeba('0x204')), $(this)['addClass'](a0_0xeeba('0x204'));
2957 }), _0x3f8845['PaymentOptions'](function(_0x3886c3) {
2958 _0x1c6858['makeSelectbox'](_0x3886c3);
2959 });
2960 }
2961 }
2962 }, {
2963 'key': a0_0xeeba('0x25a'),
2964 'value': function(_0x141756) {
2965 var _0x214b89 = {},
2966 _0x2c552b = $('<select/>', {
2967 'id': 'paymentSelect'
2968 })[a0_0xeeba('0x342')](function() {
2969 for (var _0x21a6d4 = [], _0x33287c = 0x0; _0x33287c < _0x141756[a0_0xeeba('0x26d')]; _0x33287c++) {
2970 var _0x6ec274 = _0x141756[_0x33287c];
2971 _0x214b89[_0x6ec274['id']] = {
2972 'small': _0x6ec274['image'][a0_0xeeba('0x180')],
2973 'big': _0x6ec274[a0_0xeeba('0x16e')]['size2x']
2974 }, _0x21a6d4[a0_0xeeba('0x172')]($(a0_0xeeba('0x20c'), {
2975 'value': _0x6ec274['id']
2976 })['html'](_0x6ec274['description'][a0_0xeeba('0x92')](a0_0xeeba('0xbe'), '')));
2977 }
2978 return _0x21a6d4;
2979 });
2980 $(a0_0xeeba('0x165'))['append'](_0x2c552b);
2981 var _0x5d3b2c = _0x2c552b,
2982 _0x14e02f = _0x2c552b[a0_0xeeba('0x224')](a0_0xeeba('0x34d'))[a0_0xeeba('0x26d')];
2983 _0x2c552b['addClass'](a0_0xeeba('0x2f4')), _0x5d3b2c[a0_0xeeba('0x71')](a0_0xeeba('0x327')), _0x5d3b2c['after']('<div\x20class=\x22styledSelect\x22></div>');
2984 var _0x307d58 = _0x5d3b2c[a0_0xeeba('0x38e')](a0_0xeeba('0x2da'));
2985 _0x307d58[a0_0xeeba('0x1d0')](_0x5d3b2c[a0_0xeeba('0x224')](a0_0xeeba('0x34d'))['eq'](0x0)[a0_0xeeba('0x1d0')]()), $(a0_0xeeba('0x165'))[a0_0xeeba('0x342')](function() {
2986 var _0x362fb2 = _0x5d3b2c[a0_0xeeba('0x224')]('option')['eq'](0x0)[a0_0xeeba('0x13a')]();
2987 return $(a0_0xeeba('0x137'), {
2988 'id': a0_0xeeba('0x335'),
2989 'style': a0_0xeeba('0x2f0')[a0_0xeeba('0x3b0')](_0x214b89[_0x362fb2][a0_0xeeba('0x1a8')], '\x27)')
2990 })['on'](a0_0xeeba('0xf0'), function() {
2991 return _0x5ccadb[a0_0xeeba('0x54')]($(a0_0xeeba('0x31'))[a0_0xeeba('0x224')]('.active')['index']() + 0x1, _0x362fb2);
2992 });
2993 });
2994 for (var _0x3bcff9 = $(a0_0xeeba('0x2be'), {
2995 'class': a0_0xeeba('0x173')
2996 })['insertAfter'](_0x307d58), _0x49956f = 0x0; _0x49956f < _0x14e02f; _0x49956f++) {
2997 var _0x3c96ea = _0x5d3b2c[a0_0xeeba('0x224')]('option')['eq'](_0x49956f)[a0_0xeeba('0x13a')]();
2998 $(a0_0xeeba('0x3ca'), {
2999 'text': _0x5d3b2c[a0_0xeeba('0x224')](a0_0xeeba('0x34d'))['eq'](_0x49956f)[a0_0xeeba('0x1d0')](),
3000 'rel': _0x3c96ea
3001 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
3002 'class': a0_0xeeba('0x1ac'),
3003 'style': a0_0xeeba('0x2f0')['concat'](_0x214b89[_0x3c96ea][a0_0xeeba('0x339')], '\x27)')
3004 }))[a0_0xeeba('0x309')](_0x3bcff9);
3005 }
3006 var _0x495111 = _0x3bcff9[a0_0xeeba('0x224')]('li');
3007 _0x307d58['click'](function(_0x76f018) {
3008 _0x76f018[a0_0xeeba('0x1cd')](), $(a0_0xeeba('0x53'))[a0_0xeeba('0x1f')](function() {
3009 $(this)['removeClass'](a0_0xeeba('0x204'))[a0_0xeeba('0x38e')](a0_0xeeba('0x10f'))[a0_0xeeba('0x129')]();
3010 }), $(this)[a0_0xeeba('0x31c')](a0_0xeeba('0x204'))[a0_0xeeba('0x38e')](a0_0xeeba('0x10f'))[a0_0xeeba('0x86')]();
3011 }), _0x495111[a0_0xeeba('0xf0')](function(_0x1a9ba9) {
3012 var _0x1610d3 = this;
3013 _0x1a9ba9['stopPropagation'](), $(a0_0xeeba('0x14d'))[a0_0xeeba('0x36c')](), _0x307d58[a0_0xeeba('0x1d0')]($(this)['text']())[a0_0xeeba('0x1b2')](a0_0xeeba('0x204')), $(a0_0xeeba('0x165'))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
3014 'id': a0_0xeeba('0x335'),
3015 'style': a0_0xeeba('0x2f0')[a0_0xeeba('0x3b0')](_0x214b89[$(this)[a0_0xeeba('0x179')]('rel')][a0_0xeeba('0x1a8')], '\x27)')
3016 })['on']('click', function() {
3017 return _0x5ccadb[a0_0xeeba('0x54')]($(a0_0xeeba('0x31'))[a0_0xeeba('0x224')](a0_0xeeba('0x1b4'))[a0_0xeeba('0x104')]() + 0x1, $(_0x1610d3)[a0_0xeeba('0x179')](a0_0xeeba('0x378')));
3018 })), _0x5d3b2c[a0_0xeeba('0x13a')]($(this)[a0_0xeeba('0x179')](a0_0xeeba('0x378'))), _0x3bcff9['hide']();
3019 }), $(document)['click'](function() {
3020 _0x307d58['removeClass']('active'), _0x3bcff9[a0_0xeeba('0x129')]();
3021 });
3022 }
3023 }, {
3024 'key': a0_0xeeba('0x54'),
3025 'value': function(_0x441132, _0x1df024) {
3026 window[a0_0xeeba('0x1dc')](_0x5ccadb[a0_0xeeba('0x14f')] + 'payment?option=' + _0x441132 + '&method=' + _0x1df024 + a0_0xeeba('0x36a') + _0x5ccadb[a0_0xeeba('0x3ea')][a0_0xeeba('0x268')], a0_0xeeba('0x3d'), a0_0xeeba('0x9f'));
3027 }
3028 }, {
3029 'key': a0_0xeeba('0x233'),
3030 'value': function() {
3031 if (_0x5ccadb['isLogged'] && 0x0 === _0x5ccadb['facebook_like']) {
3032 if (void 0x0 !== _0x5ccadb[a0_0xeeba('0x1e9')]) {
3033 try {
3034 _0x5ccadb[a0_0xeeba('0x1e9')][a0_0xeeba('0xef')]();
3035 } catch (_0x394014) {}
3036 _0x5ccadb[a0_0xeeba('0x1e9')] = void 0x0;
3037 }
3038 _0x5ccadb[a0_0xeeba('0x1e9')] = Layout['dialogWindow'][a0_0xeeba('0x1dc')]('', 'Autobot\x20v' + _0x5ccadb['version'] + a0_0xeeba('0x376'), 0x113, 0x7d, '', !0x1), _0x5ccadb['facebookWnd']['setHeight']([0x7d]), _0x5ccadb[a0_0xeeba('0x1e9')]['setPosition']([a0_0xeeba('0x94'), a0_0xeeba('0x94')]);
3039 var _0x2e9b81 = $(a0_0xeeba('0x137'), {
3040 'id': a0_0xeeba('0x75')
3041 })[a0_0xeeba('0x342')](a0_0xeeba('0x13b'));
3042 _0x5ccadb['facebookWnd']['setContent2'](_0x2e9b81), $(a0_0xeeba('0x3a2'))[a0_0xeeba('0x1de')](a0_0xeeba('0x289'))['css']({
3043 'left': a0_0xeeba('0x10c'),
3044 'right': a0_0xeeba('0x10c'),
3045 'top': a0_0xeeba('0x2fd')
3046 });
3047 var _0x1cc2f2 = !0x1,
3048 _0x69d2bb = !0x1,
3049 _0xba6529 = function() {
3050 if ((_0x1cc2f2 || _0x69d2bb) && _0x5ccadb[a0_0xeeba('0x1e6')](), _0x1cc2f2 && _0x69d2bb) {
3051 if ($['Observer'](GameEvents['window'][a0_0xeeba('0x113')][a0_0xeeba('0x1dc')])[a0_0xeeba('0x23d')]({
3052 'quest_type': 'hermes'
3053 }), HumanMessage[a0_0xeeba('0x81')](a0_0xeeba('0x2fc')), void 0x0 !== _0x5ccadb[a0_0xeeba('0x1e9')]) {
3054 try {
3055 _0x5ccadb[a0_0xeeba('0x1e9')][a0_0xeeba('0xef')]();
3056 } catch (_0x2e5991) {}
3057 _0x5ccadb[a0_0xeeba('0x1e9')] = void 0x0;
3058 }
3059 if (void 0x0 !== _0x5ccadb[a0_0xeeba('0x1d8')]) {
3060 try {
3061 _0x5ccadb[a0_0xeeba('0x1d8')][a0_0xeeba('0xef')]();
3062 } catch (_0x1e3d3b) {}
3063 _0x5ccadb['botWnd'] = void 0x0;
3064 }
3065 }
3066 };
3067 void 0x0 === window[a0_0xeeba('0x183')] && (window[a0_0xeeba('0x183')] = function() {
3068 FB[a0_0xeeba('0x176')]({
3069 'appId': a0_0xeeba('0x8d'),
3070 'xfbml': !0x0,
3071 'version': a0_0xeeba('0x22d')
3072 }), FB[a0_0xeeba('0x2a7')][a0_0xeeba('0x147')](a0_0xeeba('0x89'), function() {
3073 _0x69d2bb = !0x0, _0xba6529();
3074 }), FB['Event'][a0_0xeeba('0x147')](a0_0xeeba('0x29d'), function() {
3075 _0x69d2bb = !0x1;
3076 });
3077 }), $(a0_0xeeba('0x1c5'))[a0_0xeeba('0x26d')] <= 0x0 ? (_0x8d5b36 = document, _0x2c0cd1 = a0_0xeeba('0x196'), _0xca261c = a0_0xeeba('0x1e0'), _0x1d1202 = _0x8d5b36[a0_0xeeba('0x258')](_0x2c0cd1)[0x0], _0x8d5b36[a0_0xeeba('0xa')](_0xca261c) || ((_0x5a1580 = _0x8d5b36[a0_0xeeba('0x198')](_0x2c0cd1))['id'] = _0xca261c, _0x5a1580[a0_0xeeba('0x26f')] = '//connect.facebook.net/en_US/sdk.js', _0x1d1202['parentNode'][a0_0xeeba('0x33')](_0x5a1580, _0x1d1202))) : FB[a0_0xeeba('0x186')]['parse'](), $(a0_0xeeba('0x387'))['on'](a0_0xeeba('0xf0'), function() {
3078 FB['ui']({
3079 'method': a0_0xeeba('0x29f'),
3080 'href': a0_0xeeba('0x1fb')
3081 }, function(_0x156418) {
3082 _0x156418 && !_0x156418[a0_0xeeba('0x2e7')] && (_0x1cc2f2 = !0x0, _0xba6529());
3083 });
3084 });
3085 }
3086 var _0x8d5b36, _0x2c0cd1, _0xca261c, _0x5a1580, _0x1d1202;
3087 }
3088 }, {
3089 'key': a0_0xeeba('0x1e6'),
3090 'value': function() {
3091 _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0x1e6'), _0x5ccadb['Account'], function(_0x484f00) {
3092 _0x484f00[a0_0xeeba('0x81')] && _0x3f8845[a0_0xeeba('0x131')](a0_0xeeba('0x263'), _0x5ccadb[a0_0xeeba('0x3ea')], _0x538336[a0_0xeeba('0x152')]);
3093 });
3094 }
3095 }, {
3096 'key': a0_0xeeba('0x34c'),
3097 'value': function() {
3098 $(document)[a0_0xeeba('0x108')](function(_0xe1e422, _0x52b7c2, _0x54c18c) {
3099 if (-0x1 === _0x54c18c['url'][a0_0xeeba('0x2b1')](_0x5ccadb[a0_0xeeba('0x14f')]) && -0x1 !== _0x54c18c[a0_0xeeba('0x13f')][a0_0xeeba('0x2b1')](a0_0xeeba('0x161')) && 0x4 === _0x52b7c2[a0_0xeeba('0x3da')] && 0xc8 === _0x52b7c2['status']) {
3100 var _0x28fc21 = _0x54c18c[a0_0xeeba('0x13f')][a0_0xeeba('0x240')]('?'),
3101 _0x4d50d8 = _0x28fc21[0x0][a0_0xeeba('0xba')](0x6) + '/' + _0x28fc21[0x1][a0_0xeeba('0x240')]('&')[0x1][a0_0xeeba('0xba')](0x7);
3102 void 0x0 !== _0xbb2559 && _0xbb2559[a0_0xeeba('0xf9')](_0x4d50d8), void 0x0 !== _0x1c9958 && _0x1c9958[a0_0xeeba('0xf9')](_0x4d50d8, _0x52b7c2[a0_0xeeba('0x22c')]);
3103 }
3104 });
3105 }
3106 }, {
3107 'key': a0_0xeeba('0x9c'),
3108 'value': function(_0x5c808a, _0x386915) {
3109 return Math['floor'](Math[a0_0xeeba('0x2a8')]() * (_0x386915 - _0x5c808a + 0x1)) + _0x5c808a;
3110 }
3111 }, {
3112 'key': a0_0xeeba('0x2cc'),
3113 'value': function(_0x353eca) {
3114 var _0x3b3e9f = Math['floor'](_0x353eca / 0x15180),
3115 _0x4ef5f8 = Math[a0_0xeeba('0xc7')](_0x353eca % 0x15180 / 0xe10),
3116 _0x433f18 = Math[a0_0xeeba('0xc7')](_0x353eca % 0x15180 % 0xe10 / 0x3c);
3117 return (_0x3b3e9f ? _0x3b3e9f + '\x20days\x20' : '') + (_0x4ef5f8 ? _0x4ef5f8 + a0_0xeeba('0x2d6') : '') + (_0x433f18 ? _0x433f18 + a0_0xeeba('0x326') : '');
3118 }
3119 }, {
3120 'key': a0_0xeeba('0x32c'),
3121 'value': function(_0x3872ef) {
3122 for (var _0x49373d = _0x3872ef[a0_0xeeba('0x240')](':'), _0x3f9a2d = 0x0, _0x495aa3 = 0x1; _0x49373d[a0_0xeeba('0x26d')] > 0x0;) _0x3f9a2d += _0x495aa3 * parseInt(_0x49373d[a0_0xeeba('0xa5')](), 0xa), _0x495aa3 *= 0x3c;
3123 return _0x3f9a2d;
3124 }
3125 }, {
3126 'key': a0_0xeeba('0xea'),
3127 'value': function() {
3128 var _0x60c508 = $(a0_0xeeba('0x137'), {
3129 'class': 'helpers\x20helper_arrow\x20group_quest\x20d_w\x20animate\x20bounce',
3130 'data-direction': 'w',
3131 'style': a0_0xeeba('0x28a')
3132 });
3133 _0x5ccadb[a0_0xeeba('0x3c0')][a0_0xeeba('0x342')](_0x60c508), _0x60c508['show']()[a0_0xeeba('0xa9')]({
3134 'left': '138px'
3135 }, a0_0xeeba('0x283'))[a0_0xeeba('0x31e')](0x2710)['fadeOut'](a0_0xeeba('0x38d')), setTimeout(function() {
3136 _0x5ccadb[a0_0xeeba('0x233')]();
3137 }, 0x61a8);
3138 }
3139 }, {
3140 'key': a0_0xeeba('0x1d5'),
3141 'value': function(_0x1a11c9, _0x15b8ac) {
3142 (void 0x0 === Layout['notify'] ? new NotificationHandler() : Layout)['notify']($(a0_0xeeba('0x26c'))['length'] + 0x1, _0x1a11c9, a0_0xeeba('0x3b3') + _0x15b8ac + a0_0xeeba('0x1ae') + _0x5ccadb[a0_0xeeba('0x260')] + a0_0xeeba('0x2fe'));
3143 }
3144 }, {
3145 'key': a0_0xeeba('0x159'),
3146 'value': function(_0x508777) {
3147 var _0x2c3876 = ~~(_0x508777 / 0xe10),
3148 _0x268681 = ~~(_0x508777 % 0xe10 / 0x3c),
3149 _0x5057c9 = _0x508777 % 0x3c,
3150 _0x50c9fb = '';
3151 return _0x2c3876 > 0x0 && (_0x50c9fb += _0x2c3876 + ':' + (_0x268681 < 0xa ? '0' : '')), _0x50c9fb += _0x268681 + ':' + (_0x5057c9 < 0xa ? '0' : ''), _0x50c9fb += '' + _0x5057c9;
3152 }
3153 }, {
3154 'key': a0_0xeeba('0x101'),
3155 'value': function(_0x231336) {
3156 var _0x23180b = _0x3cc3f2(_0x231336);
3157 if (a0_0xeeba('0x19f') === _0x23180b) return '\x22' + _0x231336 + '\x22';
3158 if (a0_0xeeba('0x201') === _0x23180b || a0_0xeeba('0x15c') === _0x23180b) return _0x231336;
3159 if ('function' === _0x23180b) return _0x231336['toString']();
3160 var _0x58d430 = [];
3161 for (var _0x3d7e49 in _0x231336) _0x58d430[a0_0xeeba('0x172')]('\x22' + _0x3d7e49 + '\x22:' + this['stringify'](_0x231336[_0x3d7e49]));
3162 return '{' + _0x58d430['join'](',') + '}';
3163 }
3164 }, {
3165 'key': 'isActive',
3166 'value': function() {
3167 setTimeout(function() {
3168 _0x3f8845['Auth'](a0_0xeeba('0xd6'), _0x5ccadb[a0_0xeeba('0x3ea')], _0x5ccadb[a0_0xeeba('0xd6')]);
3169 }, 0xea60);
3170 }
3171 }, {
3172 'key': a0_0xeeba('0x3e0'),
3173 'value': function(_0x5cd6fe, _0x296e91) {
3174 if (void 0x0 !== _0x5cd6fe && _0x5cd6fe['length'] > 0x0 && _0x296e91[a0_0xeeba('0x3e8')])
3175 for (var _0x5b2211 = 0x0; _0x5b2211 < _0x5cd6fe[a0_0xeeba('0x26d')]; _0x5b2211++)
3176 if (a0_0xeeba('0x37c') === _0x5cd6fe[_0x5b2211]['className']) {
3177 void 0x0 !== _0x597e98 && (_0x597e98[a0_0xeeba('0x6b')][a0_0xeeba('0x18b')] && $(_0x5cd6fe[_0x5b2211])['addClass'](a0_0xeeba('0x3b4')), _0x597e98['settings'][a0_0xeeba('0x3e8')] && $(_0x5cd6fe[_0x5b2211])[a0_0xeeba('0xe4')]('active_player'), _0x597e98[a0_0xeeba('0x6b')][a0_0xeeba('0x3d9')] && $(_0x5cd6fe[_0x5b2211])['addClass'](a0_0xeeba('0xc'))), $(_0x5cd6fe[_0x5b2211])[a0_0xeeba('0x342')](a0_0xeeba('0x281') + (_0x296e91[a0_0xeeba('0x3e8')] || '') + a0_0xeeba('0x2c5')), $(_0x5cd6fe[_0x5b2211])['append']('<div\x20class=\x22town_name\x22>' + _0x296e91[a0_0xeeba('0x16d')] + a0_0xeeba('0x2c5')), $(_0x5cd6fe[_0x5b2211])[a0_0xeeba('0x342')]('<div\x20class=\x22alliance_name\x22>' + (_0x296e91[a0_0xeeba('0x3d9')] || '') + a0_0xeeba('0x2c5'));
3178 break;
3179 } return _0x5cd6fe;
3180 }
3181 }, {
3182 'key': a0_0xeeba('0x2c3'),
3183 'value': function(_0x5580e4) {
3184 return $('.advisor_frame.' + _0x5580e4 + '\x20div')[a0_0xeeba('0x1d7')](_0x5580e4 + a0_0xeeba('0x2d9'));
3185 }
3186 }, {
3187 'key': a0_0xeeba('0x5a'),
3188 'value': function() {
3189 $(a0_0xeeba('0x12f'))[a0_0xeeba('0x90')](a0_0xeeba('0x344'), a0_0xeeba('0x247')), $(a0_0xeeba('0x137'), {
3190 'class': 'nui_bot_toolbox'
3191 })[a0_0xeeba('0x342')]($('<div/>', {
3192 'class': a0_0xeeba('0x2a1')
3193 })[a0_0xeeba('0x342')]($(a0_0xeeba('0x1c2'))['append']($('<li/>', {
3194 'id': a0_0xeeba('0x3dd'),
3195 'class': a0_0xeeba('0x32a')
3196 })[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
3197 'class': a0_0xeeba('0x3ed')
3198 })))[a0_0xeeba('0x342')]($(a0_0xeeba('0x277'), {
3199 'id': a0_0xeeba('0x275'),
3200 'class': 'disabled'
3201 })['append']($('<span/>', {
3202 'class': a0_0xeeba('0x2ae')
3203 })))[a0_0xeeba('0x342')]($('<li/>', {
3204 'id': a0_0xeeba('0x329'),
3205 'class': 'disabled'
3206 })[a0_0xeeba('0x342')]($('<span/>', {
3207 'class': a0_0xeeba('0x70')
3208 })))[a0_0xeeba('0x342')]($(a0_0xeeba('0x277'), {
3209 'id': a0_0xeeba('0xc9'),
3210 'class': a0_0xeeba('0x32a')
3211 })[a0_0xeeba('0x342')]($(a0_0xeeba('0xb4'), {
3212 'class': 'autoattack\x20sword_icon'
3213 })))[a0_0xeeba('0x342')]($(a0_0xeeba('0x277'))['append']($(a0_0xeeba('0xb4'), {
3214 'href': '#',
3215 'class': 'botsettings\x20circle_button_settings'
3216 })['on']('click', function() {
3217 _0x5ccadb[a0_0xeeba('0x26b')] && _0x5ccadb[a0_0xeeba('0x6c')]();
3218 })['mousePopup'](new MousePopup(DM[a0_0xeeba('0x3ec')](a0_0xeeba('0xf4'))[a0_0xeeba('0x357')][a0_0xeeba('0x6b')]))))))[a0_0xeeba('0x342')]($(a0_0xeeba('0x137'), {
3219 'id': a0_0xeeba('0x154'),
3220 'class': a0_0xeeba('0x3ba')
3221 }))[a0_0xeeba('0x342')]($('<div/>', {
3222 'class': a0_0xeeba('0x1cb')
3223 }))[a0_0xeeba('0x2b6')](a0_0xeeba('0x11c'));
3224 }
3225 }, {
3226 'key': a0_0xeeba('0x1bb'),
3227 'value': function() {
3228 var _0x3c642d;
3229 MapTiles['createTownDiv'] = (_0x3c642d = MapTiles['createTownDiv'], function() {
3230 var _0x9da045 = _0x3c642d['apply'](this, arguments);
3231 return _0x5ccadb['town_map_info'](_0x9da045, arguments[0x0]);
3232 });
3233 }
3234 }], (_0x2b230e = null) && _0xe86ef7(_0x3827f8[a0_0xeeba('0x166')], _0x2b230e), _0x192b2a && _0xe86ef7(_0x3827f8, _0x192b2a), _0x5ccadb;
3235 }();
3236 Object[a0_0xeeba('0x38c')](_0x2d3df1, a0_0xeeba('0x17a'), {
3237 'enumerable': !0x0,
3238 'writable': !0x0,
3239 'value': a0_0xeeba('0x35d')
3240 }), Object[a0_0xeeba('0x38c')](_0x2d3df1, a0_0xeeba('0x260'), {
3241 'enumerable': !0x0,
3242 'writable': !0x0,
3243 'value': a0_0xeeba('0xed')
3244 }), Object[a0_0xeeba('0x38c')](_0x2d3df1, 'domain', {
3245 'enumerable': !0x0,
3246 'writable': !0x0,
3247 'value': 'https://bot.grepobot.com/'
3248 }), Object[a0_0xeeba('0x38c')](_0x2d3df1, a0_0xeeba('0x1d8'), {
3249 'enumerable': !0x0,
3250 'writable': !0x0,
3251 'value': ''
3252 }), Object[a0_0xeeba('0x38c')](_0x2d3df1, a0_0xeeba('0x133'), {
3253 'enumerable': !0x0,
3254 'writable': !0x0,
3255 'value': ''
3256 }), Object['defineProperty'](_0x2d3df1, a0_0xeeba('0xde'), {
3257 'enumerable': !0x0,
3258 'writable': !0x0,
3259 'value': ''
3260 }), Object[a0_0xeeba('0x38c')](_0x2d3df1, 'facebookWnd', {
3261 'enumerable': !0x0,
3262 'writable': !0x0,
3263 'value': ''
3264 }), Object[a0_0xeeba('0x38c')](_0x2d3df1, a0_0xeeba('0x26b'), {
3265 'enumerable': !0x0,
3266 'writable': !0x0,
3267 'value': !0x1
3268 }), Object[a0_0xeeba('0x38c')](_0x2d3df1, a0_0xeeba('0x3ea'), {
3269 'enumerable': !0x0,
3270 'writable': !0x0,
3271 'value': {
3272 'player_id': Game[a0_0xeeba('0x268')],
3273 'player_name': Game[a0_0xeeba('0x3e8')],
3274 'world_id': Game[a0_0xeeba('0x2a5')],
3275 'locale_lang': Game[a0_0xeeba('0x48')],
3276 'premium_grepolis': Game['premium_user'],
3277 'csrfToken': Game[a0_0xeeba('0x343')]
3278 }
3279 }),
3280 function() {
3281 String['prototype'][a0_0xeeba('0x164')] = function() {
3282 return this['charAt'](0x0)[a0_0xeeba('0x284')]() + this[a0_0xeeba('0x206')](0x1);
3283 }, $['fn'][a0_0xeeba('0x1c0')] = function() {
3284 var _0x37e242 = {},
3285 _0x40c267 = this[a0_0xeeba('0x143')]();
3286 return $[a0_0xeeba('0x1f')](_0x40c267, function() {
3287 void 0x0 !== _0x37e242[this[a0_0xeeba('0x16d')]] ? (_0x37e242[this['name']][a0_0xeeba('0x172')] || (_0x37e242[this[a0_0xeeba('0x16d')]] = [_0x37e242[this[a0_0xeeba('0x16d')]]]), _0x37e242[this[a0_0xeeba('0x16d')]][a0_0xeeba('0x172')](this[a0_0xeeba('0x285')] || '')) : _0x37e242[this[a0_0xeeba('0x16d')]] = this['value'] || '';
3288 }), _0x37e242;
3289 };
3290 var _0x47752d = setInterval(function() {
3291 void 0x0 !== window['$'] && $(a0_0xeeba('0x12f'))[a0_0xeeba('0x26d')] && !$[a0_0xeeba('0x229')](ITowns[a0_0xeeba('0x3a5')]) && (clearInterval(_0x47752d), _0x2d3df1['initWindow'](), _0x2d3df1[a0_0xeeba('0x1bb')](), _0x2d3df1[a0_0xeeba('0x176')]());
3292 }, 0x64);
3293 }();
3294 var _0x27e24c = _0x18930c['default'] = _0x2d3df1;
3295}]);