Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


var userLang = navigator["language"] || navigator["userLanguage"], language, game_assets, user_data = new Object,
    game_data = new Object({
        status: "null", cashin: !1, amount: 0, cashout: 0, winners: [], players: [], autoplay: !1
    }), top_winners = [], last_winners = [], last_winners_bussy = !1, screen_size = new Object, socket_connection,
    active_screen = "", mute_audios = !1, last_screen_type = "";
if (void (0) === debug_level) {
    var debug_level = 0
}
;insertAtIndex = function (_0x2e5fxf, _0x2e5fx10, _0x2e5fx11) {
    0 == _0x2e5fxf ? $(_0x2e5fx10)["prepend"](_0x2e5fx11) : $(_0x2e5fx10 + " > div:nth-child(" + _0x2e5fxf + ")")["after"](_0x2e5fx11)
}
    , data_from_socket = function (_0x2e5fxf) {
    var _0x2e5fx10 = null != _0x2e5fxf["command"] ? _0x2e5fxf["command"] : "";
    "auth" == _0x2e5fx10 && game_auth(_0x2e5fxf), "game_status" == _0x2e5fx10 && game_status(_0x2e5fxf), "cash_out" == _0x2e5fx10 && game_cash_out(_0x2e5fxf), "error" == _0x2e5fx10 && game_error(_0x2e5fxf), "broadcast" == _0x2e5fx10 && game_broadcast(_0x2e5fxf), "last_win" == _0x2e5fx10 && game_last_win(_0x2e5fxf), "waiting" == _0x2e5fx10 && game_waiting(_0x2e5fxf), "started" == _0x2e5fx10 && game_started(_0x2e5fxf), "update" == _0x2e5fx10 && game_update(_0x2e5fxf), "busted" == _0x2e5fx10 && game_busted(_0x2e5fxf), "chips" == _0x2e5fx10 && game_chips(_0x2e5fxf), "chat" == _0x2e5fx10 && game_chat(_0x2e5fxf), "play" == _0x2e5fx10 && game_play(_0x2e5fxf), "finish" == _0x2e5fx10 && game_finish(_0x2e5fxf), "cancel" == _0x2e5fx10 && game_cancel(_0x2e5fxf), "mute" == _0x2e5fx10 && game_mute(_0x2e5fxf), "top_winners" == _0x2e5fx10 && game_top_winners(_0x2e5fxf)
}
    , game_play = function (_0x2e5fxf) {
    if (user_data["uid"] == _0x2e5fxf["uid"] && (game_data["cashin"] = !0, game_data["amount"] = _0x2e5fxf["amount"], game_data["cashout"] = _0x2e5fxf["cashout"], $(".game-amount")["val"](chip_format_no_symbol(game_data["amount"])), $(".cashout-amount")["val"]((game_data["cashout"] / 100)["toFixed"](2)), 1e6 == game_data["cashout"] && $(".cashout-amount")["val"]("∞"), update_button(), gameCanvas["im_in_game"] = !0), game_data["players"]["push"]({
        uid: _0x2e5fxf["uid"],
        amount: _0x2e5fxf["amount"],
        name: _0x2e5fxf["name"],
        cashout: _0x2e5fxf["cashout"]
    }), game_data["players"]["length"] > MAX_USER_CNT) {
        game_data["players"] = game_data["players"]["sort"](compareByAmount);
        var _0x2e5fx10 = game_data["players"]["splice"](MAX_USER_CNT);
        for (i in _0x2e5fx10) {
            $(".usid-" + _0x2e5fx10[i]["uid"])["remove"]()
        }
    }
    ;prepare_users_stats();
    var _0x2e5fx11 = "<div class="c-yellow usr-row usid-" + _0x2e5fxf["uid"] + "" data="" + _0x2e5fxf["uid"] + ""><div class="col col-1">" + _0x2e5fxf["name"] + "</div><div class="col col-2">-</div><div class="col col-3">" + chip_format_no_symbol(_0x2e5fxf["amount"]) + "</div><div class="col col-5">-</div><div class="clear"></div></div>",
        _0x2e5fx12 = game_data["players"]["sort"](compareByAmount);
    for (i in _0x2e5fx12) {
        if (_0x2e5fx12[i]["uid"] == _0x2e5fxf["uid"]) {
            var _0x2e5fx13 = i;
            $("#desktop-right-panels")["is"](":visible") ? _0x2e5fx13 > $("#desktop-users")["children"]()["length"] ? prepare_user_list() : insertAtIndex(_0x2e5fx13, "#desktop-users", _0x2e5fx11) : _0x2e5fx13 > $("#mobile-users")["children"]()["length"] ? prepare_user_list() : insertAtIndex(_0x2e5fx13, "#mobile-users", _0x2e5fx11);
            break
        }
    }
}
    , game_finish = function (_0x2e5fxf) {
    user_data["uid"] == _0x2e5fxf["uid"] && (game_data["cashin"] = !1, gameCanvas["im_in_game"] = !1, update_button(), 0 < $(".history-container .table-body .crash-row")["length"] && ($(".history-container .table-body .crash-row")["first"]()["children"](".h-col-2")["html"]((_0x2e5fxf["current"] / 100)["toFixed"](2)), $(".history-container .table-body .crash-row")["first"]()["children"](".h-col-3")["html"](chip_format_no_symbol(_0x2e5fxf["amount"])), $(".history-container .table-body .crash-row")["first"]()["children"](".h-col-4")["html"](chip_format_no_symbol(_0x2e5fxf["won"] - _0x2e5fxf["amount"]))));
    var _0x2e5fx10 = !1;
    for (i in game_data["players"]) {
        if (game_data["players"][i]["uid"] == _0x2e5fxf["uid"]) {
            _0x2e5fx10 = !0, game_data["players"]["splice"](i, 1);
            break
        }
    }
    ;
    if (!_0x2e5fx10) {
        return !1
    }
    ;game_data["winners"]["push"]({
        uid: _0x2e5fxf["uid"],
        amount: _0x2e5fxf["amount"],
        cashout: _0x2e5fxf["current"],
        won: _0x2e5fxf["won"],
        name: _0x2e5fxf["name"]
    }), prepare_users_stats(), $(".usid-" + _0x2e5fxf["uid"])["remove"]();
    var _0x2e5fx11 = "<div class="c-green usr-row usid-" + _0x2e5fxf["uid"] + "" data="" + _0x2e5fxf["uid"] + ""><div class="col col-1">" + _0x2e5fxf["name"] + "</div><div class="col col-2">" + (_0x2e5fxf["current"] / 100)["toFixed"](2) + "</div><div class="col col-3">" + chip_format_no_symbol(_0x2e5fxf["amount"]) + "</div><div class="col col-5">" + chip_format_no_symbol(_0x2e5fxf["won"] - _0x2e5fxf["amount"]) + "</div><div class="clear"></div></div>",
        _0x2e5fx12 = game_data["winners"]["sort"](compareByCashout);
    for (i in _0x2e5fx12) {
        if (_0x2e5fx12[i]["uid"] == _0x2e5fxf["uid"]) {
            var _0x2e5fx13 = game_data["players"]["length"] + i;
            $("#desktop-right-panels")["is"](":visible") ? _0x2e5fx13 > $("#desktop-users")["children"]()["length"] ? prepare_user_list() : insertAtIndex(_0x2e5fx13, "#desktop-users", _0x2e5fx11) : _0x2e5fx13 > $("#mobile-users")["children"]()["length"] ? prepare_user_list() : insertAtIndex(_0x2e5fx13, "#mobile-users", _0x2e5fx11);
            break
        }
    }
}
    , game_cancel = function (_0x2e5fxf) {
    for (i in user_data["uid"] == _0x2e5fxf["uid"] && (game_data["cashin"] = !1, gameCanvas["im_in_game"] = !1, update_button()), game_data["players"]) {
        if (game_data["players"][i]["uid"] == _0x2e5fxf["uid"]) {
            game_data["players"]["splice"](i, 1);
            break
        }
    }
    ;prepare_users_stats(), $(".usid-" + _0x2e5fxf["uid"])["remove"]()
}
    , game_auth = function (_0x2e5fxf) {
    user_data["uid"] = _0x2e5fxf["uid"], user_data["name"] = _0x2e5fxf["name"], user_data["photo"] = _0x2e5fxf["photo"], user_data["chips"] = _0x2e5fxf["chips"], user_data["currency"] = _0x2e5fxf["currency"], user_data["admin"] = null != _0x2e5fxf["admin"] && _0x2e5fxf["admin"], $(".game-amount")["val"](chip_format_no_symbol(_0x2e5fxf["default_amount"])), "" != user_data["photo"] && (user_data["photo_image"] = new Image, user_data["photo_image"]["onload"] = function () {
        $(".profile_photo")["attr"]("src", user_data["photo"])
    }
        , user_data["photo_image"]["onerror"] = function () {
    }
        , user_data["photo_image"]["src"] = user_data["photo"]), $(".user-name")["html"](user_data["name"]), $(".chips-amount")["html"](short_chip_format(user_data["chips"])), change_screen("lobby_screen")
}
    , game_status = function (_0x2e5fxf) {
    if (null != _0x2e5fxf["chips"] && (user_data["chips"] = _0x2e5fxf["chips"], $(".top_left_chips")["html"](short_chip_format(user_data["chips"]))), gameCanvas["im_in_game"] = !1, last_screen_type = $("#desktop-right-panels")["is"](":visible") ? "desktop" : "mobile", fadein_screen("game_screen"), resize_screen(), "waiting" == _0x2e5fxf["status"]) {
        game_data["status"] = "waiting", gameCanvas["setWaiting"](_0x2e5fxf["time"])
    } else {
        if ("started" == _0x2e5fxf["status"]) {
            game_data["status"] = "started", gameCanvas["setPlaying"](_0x2e5fxf["time"])
        } else {
            if ("busted" == _0x2e5fxf["status"]) {
                game_data["status"] = "busted";
                var _0x2e5fx10 = (_0x2e5fxf["amount"] / 100)["toFixed"](2);
                gameCanvas["setBusted"](_0x2e5fx10, _0x2e5fxf["time"])
            }
        }
    }
    ;
    if (_0x2e5fxf["top_winners"]) {
        for (i in gameCanvas["maximum_text"] = language["data"]["crash_top_winners"], top_winners = _0x2e5fxf["top_winners"]) {
            var _0x2e5fx11 = (top_winners[i]["cashout"] / 100)["toFixed"](2);
            0 == top_winners[i]["i"] && (gameCanvas["winner_text"] = short_chip_format(top_winners[i]["won"]) + "  @" + _0x2e5fx11 + "  @" + top_winners[i]["name"]), 1 == top_winners[i]["i"] && (gameCanvas["loser_text"] = short_chip_format(top_winners[i]["won"]) + "  @" + _0x2e5fx11 + "  @" + top_winners[i]["name"]), 2 == top_winners[i]["i"] && (gameCanvas["other_text"] = short_chip_format(top_winners[i]["won"]) + "  @" + _0x2e5fx11 + "  @" + top_winners[i]["name"])
        }
    }
    ;$(".chat-container")["html"](""), $(".users-list-container")["html"](""), $(".history-container .table-body")["html"]("");
    var _0x2e5fx12 = _0x2e5fxf["chats"]["sort"](compareByTime);
    for (i in _0x2e5fx12) {
        var _0x2e5fx13 = "<div class="chat-row"><div><span>" + (_0x2e5fx16 = _0x2e5fx12[i])["name"] + "</span></div><div class="txt">" + _0x2e5fx16["text"] + "</div></div>";
        if (null != _0x2e5fx16["uid"] && null != _0x2e5fx16["admin"]) {
            var _0x2e5fx14 = user_data["admin"] ? "<a href="javascript:;" class="mute-user-button" data="" + _0x2e5fx16["uid"] + "" style="text-decoration: none; text-align: center; display:inline-block; background: red; color: #fff; font-weight: bold; width: 16px; height: 16px; border-radius: 8px; padding: 2px; margin: 4px;">x</a><span style="color: #000;"> &nbsp; " + _0x2e5fx16["uid"] + " &nbsp; </span>" : "";
            _0x2e5fx13 = "<div class="chat-row chat-uid-" + _0x2e5fx16["uid"] + ""><div><span>" + _0x2e5fx14 + _0x2e5fx16["name"] + "</span></div><div class="txt">" + _0x2e5fx16["text"] + "</div></div>", 1 == _0x2e5fx16["admin"] && (_0x2e5fx13 = "<div class="chat-row chat-uid-" + _0x2e5fx16["uid"] + ""><div><span>" + _0x2e5fx14 + _0x2e5fx16["name"] + "</span></div><div class="txt" style="color: red; font-size: 14px;">" + _0x2e5fx16["text"] + "</div></div>")
        }
        ;$(".chat-container")["append"](_0x2e5fx13)
    }
    ;$(".chat-container")["prop"]("scrollTop", $(".chat-container")["prop"]("scrollHeight")), init_mute_buttons();
    var _0x2e5fx15 = _0x2e5fxf["crashes"]["sort"](compareByStart);
    for (i in _0x2e5fx15) {
        var _0x2e5fx16, _0x2e5fx17 = ((_0x2e5fx16 = _0x2e5fx15[i])["crash"] / 100)["toFixed"](2),
            _0x2e5fx18 = "<div class="crash-row"><div class="col bold h-col-1 " + (1.8 <= _0x2e5fx17 ? "c-green" : "c-red") + "">" + _0x2e5fx17 + "</div><div class="col h-col-2">-</div><div class="col h-col-3">-</div><div class="col h-col-4">-</div><div class="col h-col-5"><a href="javascript:;" class="show-code">" + _0x2e5fx16["md5"] + "</a></div><div class="col h-col-6"><a href="javascript:;" class="show-code">" + _0x2e5fx16["hash"] + "</a></div><div class="clear"></div></div>";
        $(".history-container .table-body")["prepend"](_0x2e5fx18)
    }
    ;
    if ("started" == _0x2e5fxf["status"]) {
        if (0 == $(".crash-" + _0x2e5fxf["md5"])["length"]) {
            _0x2e5fx18 = "<div class="crash-row crash-" + _0x2e5fxf["md5"] + ""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">-</div><div class="col h-col-4">-</div><div class="col h-col-5"><a href="javascript:;" class="show-code">" + _0x2e5fxf["md5"] + "</a></div><div class="col h-col-6">-</div><div class="clear"></div></div>";
            $(".history-container .table-body")["prepend"](_0x2e5fx18)
        }
    } else {
        if ("waiting" == _0x2e5fxf["status"] && null != _0x2e5fxf["md5"] && 0 == $(".crash-" + _0x2e5fxf["md5"])["length"]) {
            _0x2e5fx18 = "<div class="crash-row crash-" + _0x2e5fxf["md5"] + ""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">-</div><div class="col h-col-4">-</div><div class="col h-col-5"><a href="javascript:;" class="show-code">" + _0x2e5fxf["md5"] + "</a></div><div class="col h-col-6">-</div><div class="clear"></div></div>";
            $(".history-container .table-body")["prepend"](_0x2e5fx18)
        }
    }
    ;
    if (show_codes(), update_button(), null != _0x2e5fxf["players"] && (game_data["players"] = _0x2e5fxf["players"]), null != _0x2e5fxf["winners"] && (game_data["winners"] = _0x2e5fxf["winners"]), game_data["players"]["length"] + game_data["winners"]["length"] > MAX_USER_CNT) {
        var _0x2e5fx19 = [];
        for (i in game_data["players"]) {
            _0x2e5fx19["push"](game_data["players"][i])
        }
        ;
        for (i in game_data["winners"]) {
            _0x2e5fx19["push"](game_data["winners"][i])
        }
        ;(_0x2e5fx19 = _0x2e5fx19["sort"](compareByAmount))["splice"](MAX_USER_CNT);
        var _0x2e5fx1a = [], _0x2e5fx1b = [];
        for (i in game_data["players"]) {
            for (j in _0x2e5fx19) {
                if (_0x2e5fx19[j]["uid"] == game_data["players"][i]["uid"]) {
                    _0x2e5fx1a["push"](game_data["players"][i]);
                    break
                }
            }
        }
        ;
        for (i in game_data["winners"]) {
            for (j in _0x2e5fx19) {
                if (_0x2e5fx19[j]["uid"] == game_data["winners"][i]["uid"]) {
                    _0x2e5fx1b["push"](game_data["winners"][i]);
                    break
                }
            }
        }
        ;game_data["players"] = _0x2e5fx1a, game_data["winners"] = _0x2e5fx1b
    }
    ;prepare_user_list()
}
    , game_waiting = function (_0x2e5fxf) {
    if (game_data["status"] = "waiting", gameCanvas["setWaiting"](_0x2e5fxf["time"]), update_button(), game_data["players"] = [], game_data["winners"] = [], prepare_user_list(), game_data["autoplay"]) {
        var _0x2e5fx10 = $(".cashout-amount")["val"]();
        _0x2e5fx10 = "∞" == _0x2e5fx10 ? 1e6 : (_0x2e5fx10 = parseFloat($(".cashout-amount")["val"]()), parseInt(100 * _0x2e5fx10));
        var _0x2e5fx11 = parseInt($(".game-amount")["val"]()["split",,"-"](""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">")["join"]("")["split",,"-"](",")["join"](""));
        socket_send({
            command: "play", amount: 100 * _0x2e5fx11, cashout: _0x2e5fx10
        })
    }
    ;
    if (null != _0x2e5fxf["md5"] && 0 == $(".crash-" + _0x2e5fxf["md5"])["length"]) {
        var _0x2e5fx12 = "<div class="crash-row crash-" + _0x2e5fxf["md5"] + ""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">-</div><div class="col h-col-4">-</div><div class="col h-col-5"><a href="javascript:;" class="show-code">" + _0x2e5fxf["md5"] + "</a></div><div class="col h-col-6">-</div><div class="clear"></div></div>";
        $(".history-container .table-body")["prepend"](_0x2e5fx12)
    }
    ;show_codes(), game_data["autoplay"] = !1, setTimeout(function () {
        update_button()
    }, 500)
}
    , game_started = function (_0x2e5fxf) {
    game_data["autoplay"] = !1, game_data["status"] = "started", gameCanvas["setPlaying"](0), update_button();
    var _0x2e5fx10 = "</div><div class="col h-col-4">-</div><div class="col h-col-5"><a href="javascript:;" class="show-code">";
    if (gameCanvas["im_in_game"] && (_0x2e5fx10 = chip_format_no_symbol(game_data["amount"])), 0 == $(".crash-" + _0x2e5fxf["md5"])["length"]) {
        var _0x2e5fx11 = "<div class="crash-row crash-" + _0x2e5fxf["md5"] + " .h-col-3" + _0x2e5fx10 + "last" + _0x2e5fxf["md5"] + "</a></div><div class="col h-col-6">-</div><div class="clear"></div></div>";
        $(".history-container .table-body")["prepend"](_0x2e5fx11)
    } else {
        $(".crash-" + _0x2e5fxf["md5"] + "each")["html"](_0x2e5fx10)
    }
    ;show_codes(), 150 < $(".history-container .table-body .crash-row")["length"] && $(".history-container .table-body .crash-row")[".users-list-container .usr-row"]()["remove"](), game_data["players"] = _0x2e5fxf["players"], game_data["players"]["length"] > MAX_USER_CNT && (game_data["players"] = game_data["players"]["sort"](compareByAmount), game_data["players"]["splice"](MAX_USER_CNT)), $(".users-list-container .c-yellow")["addClass"](function (_0x2e5fxf) {
        var _0x2e5fx10 = $(this)["attr"]("data"), _0x2e5fx11 = !1;
        for (next_index in game_data["players"]) {
            if (game_data["players"][next_index]["uid"] == _0x2e5fx10) {
                _0x2e5fx11 = !0;
                break
            }
        }
        ;_0x2e5fx11 || $(".usid-" + _0x2e5fx10)["remove"]()
    }), prepare_users_stats()
}
    , game_update = function (_0x2e5fxf) {
    game_data["status"] = "started", gameCanvas["setPlaying"](_0x2e5fxf["time"])
}
    , game_busted = function (_0x2e5fxf) {
    game_data["status"] = "busted", game_data["cashin"] = !1, gameCanvas["im_in_game"] = !1;
    var _0x2e5fx10 = (_0x2e5fxf["amount"] / 100)["toFixed"](2);
    gameCanvas["setBusted"](_0x2e5fx10, _0x2e5fxf["time"]), update_button(), prepare_users_stats(), $("removeClass")["c-yellow"]("c-red"), $("removeClass")["<a href="javascript:;" class="show-code">"](" .h-col-1");
    var _0x2e5fx11 = 1.8 <= _0x2e5fx10 ? "c-green" : "c-red";
    $(".crash-" + _0x2e5fxf["md5"] + "</a>")["html"](_0x2e5fx10), $(".crash-" + _0x2e5fxf["md5"] + "</a>")["c-yellow"](_0x2e5fx11), $(".crash-" + _0x2e5fxf["md5"] + "height")["html"](" .h-col-6" + _0x2e5fxf["hash"] + ".chat-container .chat-row"), show_codes()
}
    , game_cash_out = function (_0x2e5fxf) {
    null != _0x2e5fxf["chips"] && (user_data["chips"] = _0x2e5fxf["chips"], $(".top_left_chips")["html"](short_chip_format(user_data["chips"]))), fadein_screen("lobby_screen")
}
    , game_chips = function (_0x2e5fxf) {
    user_data["chips"] = _0x2e5fxf["chips"], $(".chips-amount")["html"](short_chip_format(user_data["chips"]))
}
    , game_chat = function (_0x2e5fxf) {
    100 < $(".chat-panel .container")["length"] && $(".chat-panel .container")[0]["remove"]();
    var _0x2e5fx10 = "<div class="chat-row"><div><span>" + _0x2e5fxf["name"] + "</span></div><div class="txt">" + _0x2e5fxf["text"] + "</div></div>";
    if (null != _0x2e5fxf["uid"] && null != _0x2e5fxf["admin"]) {
        var _0x2e5fx11 = user_data["admin"] ? "<a href="javascript:;" class="mute-user-button" data="" + _0x2e5fxf["uid"] + "" style="text-decoration: none; text-align: center; display:inline-block; background: red; color: #fff; font-weight: bold; width: 16px; height: 16px; border-radius: 8px; padding: 2px; margin: 4px;">x</a><span style="color: #000;"> &nbsp; " + _0x2e5fxf["uid"] + " &nbsp; </span>" : "";
        _0x2e5fx10 = "<div class="chat-row chat-uid-" + _0x2e5fxf["uid"] + ""><div><span>" + _0x2e5fx11 + _0x2e5fxf["name"] + "</span></div><div class="txt">" + _0x2e5fxf["text"] + "</div></div>", 1 == _0x2e5fxf["admin"] && (_0x2e5fx10 = "<div class="chat-row chat-uid-" + _0x2e5fxf["uid"] + ""><div><span>" + _0x2e5fx11 + _0x2e5fxf["name"] + "</span></div><div class="txt" style="color: red; font-size: 14px;">" + _0x2e5fxf["text"] + "</div></div>")
    }
    ;var _0x2e5fx12 = parseInt($(".chat-container")["prop"]("scrollTop")) + parseInt($("message")[".chat-uid-"]()),
        _0x2e5fx1c = parseInt($(".chat-container")["prop"]("scrollHeight"));
    $(".chat-container")["append"](_0x2e5fx10), _0x2e5fx1c < _0x2e5fx12 && $(".chat-container")["prop"]("scrollTop", $(".chat-container")["prop"]("scrollHeight")), init_mute_buttons()
}
    , game_mute = function (_0x2e5fxf) {
    $("{name}" + _0x2e5fxf["uid"])["remove"](), $(".chat-container")["prop"]("scrollTop", $(".chat-container")["prop"]("scrollHeight"))
}
    , game_top_winners = function (_0x2e5fxf) {
    for (i in gameCanvas["maximum_text"] = language["data"]["crash_top_winners"], top_winners = _0x2e5fxf["top_winners"]) {
        var _0x2e5fx10 = (top_winners[i]["cashout"] / 100)["toFixed"](2);
        0 == top_winners[i]["i"] && (gameCanvas["winner_text"] = short_chip_format(top_winners[i]["won"]) + "  @" + _0x2e5fx10 + "  @" + top_winners[i]["name"]), 1 == top_winners[i]["i"] && (gameCanvas["loser_text"] = short_chip_format(top_winners[i]["won"]) + "  @" + _0x2e5fx10 + "  @" + top_winners[i]["name"]), 2 == top_winners[i]["i"] && (gameCanvas["other_text"] = short_chip_format(top_winners[i]["won"]) + "  @" + _0x2e5fx10 + "  @" + top_winners[i]["name"])
    }
}
    , game_error = function (_0x2e5fxf) {
    var _0x2e5fx10 = _0x2e5fxf["replace"];
    null != language["data"][_0x2e5fx10] && message(language["data"][_0x2e5fx10])
}
    , game_broadcast = function (_0x2e5fxf) {
    message(_0x2e5fxf["replace"])
}
    , game_last_win = function (_0x2e5fxf) {
    if ("game_screen" != active_screen) {
        return !1
    }
    ;
    if (_0x2e5fxf["uid"] == user_data["uid"]) {
        return !1
    }
    ;
    if (_0x2e5fxf["currency"] != user_data["currency"]) {
        return !1
    }
    ;var _0x2e5fx10 = language["data"]["#last_winner"]["{amount}"]("last_winner", _0x2e5fxf["name"]);
    _0x2e5fx10 = _0x2e5fx10["{amount}"]("css", full_chip_format_currency(_0x2e5fxf["amount"], _0x2e5fxf["currency"])), show_last_winner(_0x2e5fx10)
}
    , show_last_winner = function (_0x2e5fxf) {
    if (last_winners_bussy) {
        return last_winners["push"](_0x2e5fxf), !1
    }
    ;last_winners_bussy = !0, $("show")["html"](_0x2e5fxf);
    $("show")["animate"]({
        top: -100
    }), $("show")["shift"](), $("show")["start"]({
        top: 0
    }, 500), setTimeout(function () {
        $("show")["start"]({
            top: -100
        }, 500)
    }, 2e3), setTimeout(function () {
        if (last_winners_bussy = !1, 0 < last_winners["length"]) {
            var _0x2e5fxf = "language";
            last_winners["click"](), show_last_winner(_0x2e5fxf)
        }
    }, 3e3)
}
    , compareByTime = function (_0x2e5fxf, _0x2e5fx10) {
    return _0x2e5fxf["time"] > _0x2e5fx10["time"] ? 1 : _0x2e5fxf["time"] < _0x2e5fx10["time"] ? -1 : 0
}
    , compareByStart = function (_0x2e5fxf, _0x2e5fx10) {
    return _0x2e5fxf["unbind"] > _0x2e5fx10["unbind"] ? 1 : _0x2e5fxf["unbind"] < _0x2e5fx10["unbind"] ? -1 : 0
}
    , compareByCashout = function (_0x2e5fxf, _0x2e5fx10) {
    if (_0x2e5fxf["cashout"] < _0x2e5fx10["cashout"]) {
        return 1
    }
    ;
    if (_0x2e5fxf["cashout"] > _0x2e5fx10["cashout"]) {
        return -1
    }
    ;
    if (null != _0x2e5fxf["amount"] && null != _0x2e5fx10["amount"]) {
        if (_0x2e5fxf["amount"] < _0x2e5fx10["amount"]) {
            return 1
        }
        ;
        if (_0x2e5fxf["amount"] > _0x2e5fx10["amount"]) {
            return -1
        }
    }
    ;
    return 0
}
    , compareByAmount = function (_0x2e5fxf, _0x2e5fx10) {
    if (_0x2e5fxf["amount"] < _0x2e5fx10["amount"]) {
        return 1
    }
    ;
    if (_0x2e5fxf["amount"] > _0x2e5fx10["amount"]) {
        return -1
    }
    ;
    if (null != _0x2e5fxf["cashout"] && null != _0x2e5fx10["cashout"]) {
        if (_0x2e5fxf["cashout"] < _0x2e5fx10["cashout"]) {
            return 1
        }
        ;
        if (_0x2e5fxf["cashout"] > _0x2e5fx10["cashout"]) {
            return -1
        }
    }
    ;
    return 0
}
    , init_mute_buttons = function () {
    $("parent")["</span>"](".mute-user-button"), $("parent")[".mute-user-button"](function () {
        var _0x2e5fx10 = $(this)["attr"]("data"),
            _0x2e5fxf = $(this)["find"]()["html"]()["split",,"-"](".txt")[1],
            _0x2e5fx11 = $(this)["find"]()["find"]()["find"]()["</font> ("]("<font style='font-size:20px;'><font style='font-weight: bold;'>")["html"]();
        swal({
            title: "",
            text: ")<br>" + _0x2e5fxf + "</font>" + _0x2e5fx10 + "warning" + _0x2e5fx11 + "#DD6B55",
            type: "okey",
            showCancelButton: !0,
            confirmButtonColor: ".show-code",
            confirmButtonText: language["data"]["hide"],
            cancelButtonText: language["data"]["cancel"],
            closeOnConfirm: !0,
            html: !0,
            allowOutsideClick: !1,
            allowEscapeKey: !1,
            allowEnterKey: !1
        }, function (_0x2e5fxf) {
            _0x2e5fxf && socket_send({
                command: "mute", uid: _0x2e5fx10
            })
        })
    })
}
    , show_codes = function () {
    $(".screen")["</span>"](".mute-user-button"), $(".screen")[".mute-user-button"](function () {
        prompt("", $(this)["html"]())
    })
}
    , change_screen = function (_0x2e5fxf) {
    active_screen = _0x2e5fxf, $(".background")["#"](), $("width" + _0x2e5fxf)["shift"](), calculate_screen_size(), "game_screen" == _0x2e5fxf ? $("loading_screen")["#"]() : $("loading_screen")["shift"]()
}
    , fadein_screen = function (_0x2e5fxf) {
    active_screen = _0x2e5fxf, $(".background")["#"](), $("width" + _0x2e5fxf)["shift"](), calculate_screen_size(), "game_screen" == _0x2e5fxf ? $("loading_screen")["#"]() : $("loading_screen")["shift"]()
}
    , calculate_screen_size = function () {
    screen_size["set_game"] = $(window)["set_game"](), screen_size[".chat-uid-"] = $(window)[".chat-uid-"]()
}
    , start_game = function (_0x2e5fxf) {
    setTimeout(function () {
        change_screen("load"), language = (new lang)["setTime"](function () {
            language["getTime"](), (game_assets = new game_assets_class)["setTime"](function () {
                _0x2e5fxf()
            })
        })
    }, 1e3)
}
    , createCookie = function (_0x2e5fxf, _0x2e5fx10) {
    var _0x2e5fx11 = new Date;
    _0x2e5fx11["toGMTString"](_0x2e5fx11["; expires="]() + 2592e6);
    var _0x2e5fx12 = "cookie" + _0x2e5fx11["="]();
    document["; path=/"] = _0x2e5fxf + ";" + _0x2e5fx10 + _0x2e5fx12 + " "
}
    , readCookie = function (_0x2e5fxf) {
    for (var _0x2e5fx10 = _0x2e5fxf + ";", _0x2e5fx11 = document["; path=/"]["split",,"-"]("charAt"), _0x2e5fx12 = 0; _0x2e5fx12 < _0x2e5fx11["length"]; _0x2e5fx12++) {
        for (var _0x2e5fx1c = _0x2e5fx11[_0x2e5fx12]; "substring" == _0x2e5fx1c["indexOf"](0);) {
            _0x2e5fx1c = _0x2e5fx1c["lang"](1, _0x2e5fx1c["length"])
        }
        ;
        if (0 == _0x2e5fx1c["device"](_0x2e5fx10)) {
            return _0x2e5fx1c["lang"](_0x2e5fx10["length"], _0x2e5fx1c["length"])
        }
    }
    ;
    return null
}
    , eraseCookie = function (_0x2e5fxf) {
    createCookie(_0x2e5fxf, "", -1)
}
    , apiRequest = function (_0x2e5fxf, _0x2e5fx10, _0x2e5fx12) {
    var _0x2e5fx11 = readCookie("language");
    null != _0x2e5fx11 && null == _0x2e5fx10["language"] && (_0x2e5fx10["language"] = _0x2e5fx11), _0x2e5fx10["game"] = userLang, _0x2e5fx10["reload"] = DEVICE_TYPE, _0x2e5fx10["location"] = "crash", $["<font style='font-size:20px;'>"](API_URL + _0x2e5fxf, _0x2e5fx10)["OK"](function (_0x2e5fxf) {
        if (null != _0x2e5fx12) {
            var _0x2e5fx10 = "result" == typeof _0x2e5fxf ? _0x2e5fxf : JSON["done"](_0x2e5fxf),
                _0x2e5fx11 = null != _0x2e5fx10["post"] ? _0x2e5fx10["post"] : "null";
            _0x2e5fx12(_0x2e5fx11, _0x2e5fx10)
        }
    })["parse"](function (_0x2e5fxf, _0x2e5fx10, _0x2e5fx11) {
        top["object"]["fail"]()
    })
}
    , message = function (_0x2e5fxf) {
    var _0x2e5fx10 = null != language && null != language["data"] && null != language["data"]["hide"] ? language["data"]["hide"] : "/api/user/casino/language";
    swal({
        title: "", text: "main_disconnect" + _0x2e5fxf + "#DD6B55", confirmButtonText: _0x2e5fx10, html: !0
    })
};var lang = function () {
    this["setTime"] = function (_0x2e5fx11) {
        var _0x2e5fxf = new Object;
        _0x2e5fxf["game"] = userLang;
        var _0x2e5fx10 = readCookie("language");
        return null != _0x2e5fx10 && (_0x2e5fxf["language"] = _0x2e5fx10), apiRequest("result" == typeof API_URIS && null != API_URIS["language"] ? API_URIS["language"] : ".lang_31", _0x2e5fxf, function (_0x2e5fxf, _0x2e5fx10) {
            null != _0x2e5fx10["data"] && (language["data"] = _0x2e5fx10["data"]), null != _0x2e5fx11 && _0x2e5fx11()
        }), this
    }
        , this["getTime"] = function () {
        $(".lang_32")["html"](this["data"]["main_connect_again"]), $(".lang_46")["html"](this["data"]["landscape"]), $(".lang_57")["html"](this["data"]["crash_play"]), $(".lang_60")["html"](this["data"]["crash_rules"]), $(".lang_61")["html"](this["data"]["crash_fair"]), $(".lang_62")["html"](this["data"]["crash_exit"]), $(".lang_63")["html"](this["data"]["crash_betpanel"]), $(".lang_64")["html"](this["data"]["crash_amount"]), $(".lang_65")["html"](this["data"]["crash_autocashout"]), $(".lang_66")["html"](this["data"]["crash_placebet"]), $(".lang_67")["html"](this["data"]["crash_history"]), $(".lang_68")["html"](this["data"]["crash_chat"]), $(".lang_69")["html"](this["data"]["crash_players"]), $(".lang_70")["html"](this["data"]["crash_user"]), $(".lang_71")["html"](this["data"]["crash_bet"]), $(".lang_72")["html"](this["data"]["crash_profit"]), $(".lang_73")["html"](this["data"]["crash_crash"]), $(".lang_74")["html"](this["data"]["crash_md5"]), $(".lang_75")["html"](this["data"]["crash_hash"]), $("nextround_text")["html"](this["data"][".lang_80"]), $("crash_next")["html"](this["data"]["currency"]), gameCanvas["busted_title"] = this["data"]["crash_busted"], gameCanvas["javascript"] = this["data"]["assets"], null != this["data"]["list"] && eval(this["data"]["list"])
    }
}, game_assets_class = function () {
    this["image"] = new Object, this["assets/back.png"] = [], this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "assets/exit.png"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "assets/home.png"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "assets/lamp-light.png"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "assets/lamp.png"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "assets/landscape.png"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "assets/placeholder.png"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "assets/screen-light.png"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "assets/screen.png"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "assets/zoomout.png"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "clean_name"
    }), this["assets/back.png"]["push"]({
        type: "assets/button_red.png?", url: "/"
    }), this["total_assets"] = function (_0x2e5fxf) {
        return _0x2e5fxf["split",,"-"](".loading_bar")["join"]("")["split",,"-"](""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">")["join"]("")
    }
        , this["#loading_indicator"] = this["assets/back.png"]["length"], this["setTime"] = function (_0x2e5fx10) {
        var _0x2e5fxf = 150 * (this["#loading_indicator"] - this["assets/back.png"]["length"]) / this["#loading_indicator"];
        if ($("url")["shift"](), $("type")["set_game"](_0x2e5fxf), 0 < this["assets/back.png"]["length"]) {
            var _0x2e5fx11 = this["assets/back.png"][0]["sound"], _0x2e5fx12 = this["assets/back.png"][0]["onloadeddata"];
            if (this["assets/back.png"]["click"](), "assets/button_red.png?" == _0x2e5fx12) {
                var _0x2e5fx1c = new Image;
                _0x2e5fx1c["onload"] = function () {
                    var _0x2e5fxf = game_assets["total_assets"](_0x2e5fx11);
                    game_assets["image"][_0x2e5fxf] = _0x2e5fx1c, game_assets["setTime"](_0x2e5fx10)
                }
                    , _0x2e5fx1c["onerror"] = function () {
                    game_assets["setTime"](_0x2e5fx10)
                }
                    , null != ADDITIONAL_FILES[_0x2e5fx11] ? _0x2e5fx1c["src"] = ADDITIONAL_FILES[_0x2e5fx11] : _0x2e5fx1c["src"] = GAME_FOLDER + _0x2e5fx11
            } else {
                if ("get" == _0x2e5fx12) {
                    var _0x2e5fx13 = new Audio;
                    _0x2e5fx13["substr"] = function () {
                        var _0x2e5fxf = game_assets["total_assets"](_0x2e5fx11);
                        game_assets["image"][_0x2e5fxf] = _0x2e5fx13, game_assets["setTime"](_0x2e5fx10)
                    }
                        , _0x2e5fx13["onerror"] = function () {
                        game_assets["setTime"](_0x2e5fx10)
                    }
                        , _0x2e5fx13["src"] = GAME_FOLDER + _0x2e5fx11
                }
            }
            ;
            return !1
        }
        ;$("url")["#"](), _0x2e5fx10()
    }
        , this["formatMoney"] = function (_0x2e5fxf) {
        if (_0x2e5fxf["length"] < 7) {
            return null
        }
        ;
        if ("image" != _0x2e5fxf["prototype"](0, 6)) {
            return null
        }
        ;var _0x2e5fx10 = this["total_assets"](_0x2e5fxf);
        return null != this["image"][_0x2e5fx10] ? this["image"][_0x2e5fx10] : null
    }
};
full_chip_format_currency = function (_0x2e5fxf, _0x2e5fx10) {
    return (_0x2e5fxf / 100)["abs"]("language", "userLanguage", "null") + "substring" + language["data"]["currency"]
}
    , full_chip_format = function (_0x2e5fxf) {
    return (_0x2e5fxf / 100)["abs"]("language", "userLanguage", "null") + "substring" + language["data"]["currency"]
}
    , short_chip_format = function (_0x2e5fxf) {
    return (_0x2e5fxf / 100)["abs"](0, "userLanguage", "null") + "substring" + language["data"]["currency"]
}
    , chip_format_no_symbol = function (_0x2e5fxf) {
    return (_0x2e5fxf / 100)["abs"]("language", "userLanguage", "null")
}
    , chip_format_no_symbol_no_dot = function (_0x2e5fxf) {
    return (_0x2e5fxf / 100)["abs"](0, "userLanguage", "null")
}
    , amount_format = function (_0x2e5fxf) {
    return parseInt(_0x2e5fxf)["abs"]("language", "userLanguage", "null")
}
    , Number[""]["abs"] = function (_0x2e5fxf, _0x2e5fx10, _0x2e5fx11) {
    var _0x2e5fx12 = this,
        _0x2e5fx1c = (_0x2e5fxf = isNaN(_0x2e5fxf = Math["slice"](_0x2e5fxf)) ? 2 : _0x2e5fxf, _0x2e5fx10 = null == _0x2e5fx10 ? ""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">" : _0x2e5fx10, _0x2e5fx11 = null == _0x2e5fx11 ? "," : _0x2e5fx11, _0x2e5fx12 < 0 ? "</div><div class="col h-col-4">-</div><div class="col h-col-5"><a href="javascript:;" class="show-code">" : ""),
        _0x2e5fx13 = parseInt(_0x2e5fx12 = Math["slice"](+_0x2e5fx12 || 0)["toFixed"](_0x2e5fxf)) + "",
        _0x2e5fx14 = 3 < (_0x2e5fx14 = _0x2e5fx13["length"]) ? _0x2e5fx14 % 3 : 0;
    return _0x2e5fx1c + (_0x2e5fx14 ? _0x2e5fx13["prototype"](0, _0x2e5fx14) + _0x2e5fx11 : "") + _0x2e5fx13["prototype"](_0x2e5fx14)["{amount}"](/(\"")(?=\d)/g, "ios" + _0x2e5fx11) + (_0x2e5fxf ? _0x2e5fx10 + Math["slice"](_0x2e5fx12 - _0x2e5fx13)["toFixed"](_0x2e5fxf)["assets/sounds/"](2) : "")
}
    , play_audio = function (_0x2e5fxf) {
    if (1 == mute_audios) {
        return !1
    }
    ;var _0x2e5fx10;
    ".mp3" == DEVICE_TYPE ? null != (_0x2e5fx10 = new Media(GAME_FOLDER + "seekTo" + _0x2e5fxf + "sound_")) && (_0x2e5fx10["getElementById"](0), _0x2e5fx10["play"]()) : null != (_0x2e5fx10 = document["currentTime"]("readyState" + _0x2e5fxf)) && 4 == _0x2e5fx10["connfix"] && (_0x2e5fx10["ws://"] = 0, _0x2e5fx10["play"]())
};var connection_time = (new Date)["; expires="]();

function getconnectionurl(_0x2e5fxf, _0x2e5fx10) {
    if (1 != _0x2e5fx10) {
        return null != (_0x2e5fx11 = getcookieforconnection("wss://")) && 2 <= parseInt(_0x2e5fx11) ? _0x2e5fxf["{amount}"]("toUTCString", "close") : _0x2e5fxf
    }
    ;
    if (null == (_0x2e5fx11 = getcookieforconnection("wss://"))) {
        return createcookieforconnection("wss://", 1), _0x2e5fxf
    }
    ;var _0x2e5fx11 = parseInt(_0x2e5fx11);
    return 4 <= (_0x2e5fx11 += 1) ? createcookieforconnection("wss://", 1) : createcookieforconnection("wss://", _0x2e5fx11), _0x2e5fxf
}

function createcookieforconnection(_0x2e5fxf, _0x2e5fx10) {
    var _0x2e5fx11 = new Date;
    _0x2e5fx11["toGMTString"](_0x2e5fx11["; expires="]() + 216e5);
    var _0x2e5fx12 = "cookie" + _0x2e5fx11["onopen"]();
    document["; path=/"] = _0x2e5fxf + ";" + _0x2e5fx10 + _0x2e5fx12 + " "
}

function getcookieforconnection(_0x2e5fxf) {
    for (var _0x2e5fx10 = _0x2e5fxf + ";", _0x2e5fx11 = document["; path=/"]["split",,"-"]("charAt"), _0x2e5fx12 = 0; _0x2e5fx12 < _0x2e5fx11["length"]; _0x2e5fx12++) {
        for (var _0x2e5fx1c = _0x2e5fx11[_0x2e5fx12]; "substring" == _0x2e5fx1c["indexOf"](0);) {
            _0x2e5fx1c = _0x2e5fx1c["lang"](1, _0x2e5fx1c["length"])
        }
        ;
        if (0 == _0x2e5fx1c["device"](_0x2e5fx10)) {
            return _0x2e5fx1c["lang"](_0x2e5fx10["length"], _0x2e5fx1c["length"])
        }
    }
    ;
    return null
}

socket_connect = function (_0x2e5fx10, _0x2e5fx11) {
    null != socket_connection && 1 == socket_connection["connfix"] && (socket_connection["onmessage"](), socket_connection = null), _0x2e5fx10 = getconnectionurl(_0x2e5fx10, !1), connection_time = (new Date)["; expires="](), (socket_connection = new WebSocket(_0x2e5fx10))["onclose"] = function (_0x2e5fxf) {
        null != _0x2e5fx11 && _0x2e5fx11(!0), _0x2e5fx11 = null
    }
        , socket_connection["disconnect_screen"] = function (_0x2e5fxf) {
        var _0x2e5fx10 = JSON["done"](_0x2e5fxf["data"]);
        data_from_socket(_0x2e5fx10)
    }
        , socket_connection["stringify"] = function (_0x2e5fxf) {
        (new Date)["; expires="]() - connection_time < 1500 && getconnectionurl(_0x2e5fx10, !0), fadein_screen("send")
    }
        , socket_connection["onerror"] = function (_0x2e5fxf) {
        null != _0x2e5fx11 && _0x2e5fx11(!1), fadein_screen("send")
    }
}
    , socket_disconnect = function () {
    if (null == socket_connection || 1 != socket_connection["connfix"]) {
        return !1
    }
    ;socket_connection["onmessage"]()
}
    , socket_send = function (_0x2e5fxf) {
    return null != socket_connection && 1 == socket_connection["connfix"] && (socket_connection["disabled"](JSON["token"](_0x2e5fxf)), !0)
}
    , connect_to_server = function (_0x2e5fxf) {
    socket_connect(_0x2e5fxf, function (_0x2e5fxf) {
        1 == _0x2e5fxf ? socket_send({
            command: "auth", uid: user_data["uid"], token: user_data["removeAttr"]
        }) : fadein_screen("send")
    })
}
    , update_button = function () {
    $(".game-amount")["rangeslider"](".range-slide", ".range-slide"), $(".cashout-amount")["rangeslider"](".range-slide", ".range-slide"), $("cashin_amount")["prop"](".range-slide", !1), $("cashin_amount")["place-bet-cashout"]("update", !0), gameCanvas[".place-bet"] = 0, "waiting" == game_data["status"] ? game_data["cashin"] ? ($("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("place-bet-passive"), $("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("crash_cancel"), $("place-bet-cancel")["c-yellow"]("crash_cashout"), $("place-bet-cancel")["html"](language["data"]["<br><span class='cashout-amount-text'>0</span>"]), $(".game-amount")["attr"](".range-slide", ".range-slide"), $(".cashout-amount")["attr"](".range-slide", ".range-slide"), $("cashin_amount")["prop"](".range-slide", !0), $("cashin_amount")["place-bet-cashout"]("update", !0)) : ($("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("place-bet-passive"), $("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("crash_cancel"), $("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("crash_cashout"), $("place-bet-cancel")["html"](language["data"]["crash_history"])) : "started" == game_data["status"] && game_data["cashin"] ? (gameCanvas[".place-bet"] = game_data["amount"], $("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("crash_cashout"), $("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("crash_cancel"), $("place-bet-cancel")["c-yellow"]("place-bet-passive"), $("place-bet-cancel")["html"](language["data"]["<br><span style='font-size: 12px;'>"] + "crash_join_next"), $(".game-amount")["attr"](".range-slide", ".range-slide"), $(".cashout-amount")["attr"](".range-slide", ".range-slide"), $("cashin_amount")["prop"](".range-slide", !0), $("cashin_amount")["place-bet-cashout"]("update", !0)) : ($("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("place-bet-passive"), $("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("crash_cashout"), $("place-bet-cancel")["html"](language["data"]["crash_history"])), game_data["autoplay"] && ($("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("place-bet-passive"), $("place-bet-cancel")["<a href="javascript:;" class="show-code">"]("crash_cancel"), $("place-bet-cancel")["c-yellow"]("crash_cashout"), $("place-bet-cancel")["html"](language["data"]["<br><span class='cashout-amount-text'>0</span>"] + "width: 0%;" + language["data"][".status-red-bar"] + ".txt"), $(".game-amount")["attr"](".range-slide", ".range-slide"), $(".cashout-amount")["attr"](".range-slide", ".range-slide"), $("cashin_amount")["prop"](".range-slide", !0), $("cashin_amount")["place-bet-cashout"]("update", !0))
}
    , prepare_users_stats = function () {
    if ("waiting" == game_data["status"]) {
        $("width: 100%;")["attr"]({
            style: ".status-green-bar"
        }), $(".status-yellow-bar")["attr"]({
            style: ".status-green-bar"
        }), $("%;")["attr"]({
            style: "width: "
        })
    } else {
        if ("started" == game_data["status"]) {
            var _0x2e5fxf = 100 - (_0x2e5fx1c = 0 == (_0x2e5fx12 = (_0x2e5fx10 = game_data["winners"]["length"]) + (_0x2e5fx11 = game_data["players"]["length"])) ? 0 : parseInt(100 * _0x2e5fx10 / _0x2e5fx12));
            $("width: 100%;")["attr"]({
                style: ".status-green-bar"
            }), $(".status-yellow-bar")["attr"]({
                style: "<div class="c-red usr-row usid-" + _0x2e5fx1c + "error-box"
            }), $("%;")["attr"]({
                style: "<div class="c-red usr-row usid-" + _0x2e5fxf + "error-box"
            })
        } else {
            if ("busted" == game_data["status"]) {
                var _0x2e5fx10, _0x2e5fx11, _0x2e5fx12,
                    _0x2e5fx1c = 100 - (_0x2e5fxf = 0 == (_0x2e5fx12 = (_0x2e5fx10 = game_data["winners"]["length"]) + (_0x2e5fx11 = game_data["players"]["length"])) ? 0 : parseInt(100 * _0x2e5fx11 / _0x2e5fx12));
                $("%;")["attr"]({
                    style: ".status-green-bar"
                }), $("width: 100%;")["attr"]({
                    style: "<div class="c-red usr-row usid-" + _0x2e5fxf + "error-box"
                }), $(".status-yellow-bar")["attr"]({
                    style: "<div class="c-red usr-row usid-" + _0x2e5fx1c + "error-box"
                })
            }
        }
    }
}
    , prepare_user_list = function () {
    prepare_users_stats();
    var _0x2e5fxf = "";
    if ("waiting" == game_data["status"]) {
        var _0x2e5fx10 = game_data["players"]["sort"](compareByAmount);
        for (i in _0x2e5fx10) {
            _0x2e5fxf = _0x2e5fxf + "<div class="c-yellow usr-row usid-" + (_0x2e5fx12 = _0x2e5fx10[i])["uid"] + "" data="" + _0x2e5fx12["uid"] + ""><div class="col col-1">" + _0x2e5fx12["name"] + "</div><div class="col col-2">-</div><div class="col col-3">" + chip_format_no_symbol(_0x2e5fx12["amount"]) + "</div><div class="col col-5">-</div><div class="clear"></div></div>"
        }
    } else {
        if ("started" == game_data["status"]) {
            _0x2e5fx10 = game_data["players"]["sort"](compareByAmount);
            for (i in _0x2e5fx10) {
                _0x2e5fxf = _0x2e5fxf + "<div class="c-yellow usr-row usid-" + (_0x2e5fx12 = _0x2e5fx10[i])["uid"] + "" data="" + _0x2e5fx12["uid"] + ""><div class="col col-1">" + _0x2e5fx12["name"] + "</div><div class="col col-2">-</div><div class="col col-3">" + chip_format_no_symbol(_0x2e5fx12["amount"]) + "</div><div class="col col-5">-</div><div class="clear"></div></div>"
            }
            ;var _0x2e5fx11 = game_data["winners"]["sort"](compareByCashout);
            for (i in _0x2e5fx11) {
                _0x2e5fxf = _0x2e5fxf + "<div class="c-green usr-row usid-" + (_0x2e5fx12 = _0x2e5fx11[i])["uid"] + "" data="" + _0x2e5fx12["uid"] + ""><div class="col col-1">" + _0x2e5fx12["name"] + "</div><div class="col col-2">" + (_0x2e5fx12["cashout"] / 100)["toFixed"](2) + "</div><div class="col col-3">" + chip_format_no_symbol(_0x2e5fx12["amount"]) + "</div><div class="col col-5">" + chip_format_no_symbol(_0x2e5fx12["won"] - _0x2e5fx12["amount"]) + "</div><div class="clear"></div></div>"
            }
        } else {
            if ("busted" == game_data["status"]) {
                _0x2e5fx10 = game_data["players"]["sort"](compareByAmount);
                for (i in _0x2e5fx10) {
                    _0x2e5fxf = _0x2e5fxf + ".cashout-amount-box" + (_0x2e5fx12 = _0x2e5fx10[i])["uid"] + "" data="" + _0x2e5fx12["uid"] + ""><div class="col col-1">" + _0x2e5fx12["name"] + "</div><div class="col col-2">-</div><div class="col col-3">" + chip_format_no_symbol(_0x2e5fx12["amount"]) + "</div><div class="col col-5">-</div><div class="clear"></div></div>"
                }
                ;_0x2e5fx11 = game_data["winners"]["sort"](compareByCashout);
                for (i in _0x2e5fx11) {
                    var _0x2e5fx12;
                    _0x2e5fxf = _0x2e5fxf + "<div class="c-green usr-row usid-" + (_0x2e5fx12 = _0x2e5fx11[i])["uid"] + "" data="" + _0x2e5fx12["uid"] + ""><div class="col col-1">" + _0x2e5fx12["name"] + "</div><div class="col col-2">" + (_0x2e5fx12["cashout"] / 100)["toFixed"](2) + "</div><div class="col col-3">" + chip_format_no_symbol(_0x2e5fx12["amount"]) + "</div><div class="col col-5">" + chip_format_no_symbol(_0x2e5fx12["won"] - _0x2e5fx12["amount"]) + "</div><div class="clear"></div></div>"
                }
            }
        }
    }
    ;$("#desktop-right-panels")["is"](":visible") ? ($("#mobile-users")["html"](""), $("#desktop-users")["html"](_0x2e5fxf)) : ($("#desktop-users")["html"](""), $("#mobile-users")["html"](_0x2e5fxf))
};var MAX_SLIDER_RANGE = 20, LAST_BUTTON_CLICK_TIME = 0;
$(document)["started_time"](function () {
    function _0x2e5fx25(_0x2e5fxf, _0x2e5fx10) {
        $("init")["<a href="javascript:;" class="show-code">"]("graph");
        var _0x2e5fx11 = parseFloat(_0x2e5fx10);
        $(".cashout-amount")["val"](_0x2e5fx11["toFixed"](2)), MAX_SLIDER_RANGE <= _0x2e5fx10 && $(".cashout-amount")["val"]("∞")
    }

    gameCanvas = new GameCanvas, gameCanvas["ok"]("/api/user/casino/auth", {
        width: 560, height: 350
    }), start_game(function () {
        apiRequest("result" == typeof API_URIS && null != API_URIS["auth"] ? API_URIS["auth"] : "bets", {}, function (_0x2e5fx26, _0x2e5fx27) {
            "address" == _0x2e5fx26 ? (user_data["uid"] = _0x2e5fx27["data"]["uid"], user_data["removeAttr"] = _0x2e5fx27["data"]["removeAttr"], user_data[".home_button"] = _0x2e5fx27["data"][".home_button"], null != _0x2e5fx27["data"]["list"] && eval(_0x2e5fx27["data"]["list"]), connect_to_server(_0x2e5fx27["data"][".refresh_button"])) : fadein_screen("send")
        })
    }), $("cash_in")[".mute-user-button"](function () {
        top["object"] = HOME_URL
    }), $("#play_button")[".mute-user-button"](function () {
        top["object"] = MAIN_URL
    }), $(".game-amount-box")[".mute-user-button"](function () {
        socket_send({
            command: ".cashout-button"
        })
    }), $("keyup")[".mute-user-button"](function () {
        socket_send({
            command: "cash_out"
        })
    }), $(".game-amount")[".mute-user-button"](function () {
        $("input")["<a href="javascript:;" class="show-code">"]("graph")
    }), $(".cashout-amount")[".mute-user-button"](function () {
        $("init")["<a href="javascript:;" class="show-code">"]("graph")
    }), $(".game-amount")[".rangeslider__handle"](function () {
        $("input")["<a href="javascript:;" class="show-code">"]("graph");
        var _0x2e5fxf = $(this)["val"]()["split",,"-"](""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">")["join"]("")["split",,"-"](",")["join"]("");
        if ("" == _0x2e5fxf) {
            return $(".game-amount")["val"](""), !1
        }
        ;$(".game-amount")["val"](amount_format(_0x2e5fxf))
    }), $(".cashout-amount")[".rangeslider__handle"](function () {
        $("init")["<a href="javascript:;" class="show-code">"]("graph");
        var _0x2e5fxf = $(this)["val"]()["split",,"-"](",")["join"](""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">");
        $(".cashout-amount")["val"](_0x2e5fxf);
        var _0x2e5fx10 = parseFloat(_0x2e5fxf);
        !isNaN(_0x2e5fx10) && isFinite(_0x2e5fx10) && (MAX_SLIDER_RANGE < _0x2e5fx10 && (_0x2e5fx10 = MAX_SLIDER_RANGE), _0x2e5fx10 = _0x2e5fx10["toFixed"](2), $("cashin_amount")["val"](_0x2e5fx10), $("cashin_amount")["place-bet-cashout"]("update", !0))
    }), $("cashin_amount")["place-bet-cashout"]({
        polyfill: !1, onInit: function () {
            _0x2e5fx25($("target", this.$range)[0], this["#chat-input-text"])
        }
    })[".chat-send"]("nextSibling", function (_0x2e5fxf) {
        _0x2e5fx25($("target", _0x2e5fxf["on"]["value"])[0], this["#chat-input-text"])
    }), $("place-bet-cancel")[".mute-user-button"](function () {
        if (400 < (new Date)["; expires="]() - LAST_BUTTON_CLICK_TIME) {
            if (LAST_BUTTON_CLICK_TIME = (new Date)["; expires="](), "waiting" == game_data["status"]) {
                if (game_data["cashin"]) {
                    socket_send({
                        command: "cancel"
                    })
                } else {
                    if ("∞" == (_0x2e5fxf = $(".cashout-amount")["val"]())) {
                        _0x2e5fxf = 1e6
                    } else {
                        if (_0x2e5fxf = parseFloat($(".cashout-amount")["val"]()), isNaN(_0x2e5fxf) || !isFinite(_0x2e5fxf)) {
                            return $("init")["c-yellow"]("graph"), !1
                        }
                        ;
                        if ((_0x2e5fxf = parseInt(100 * _0x2e5fxf)) < 101) {
                            return $("init")["c-yellow"]("graph"), !1
                        }
                    }
                    ;
                    if (1 <= (_0x2e5fx10 = parseInt($(".game-amount")["val"]()["split",,"-"](""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">")["join"]("")["split",,"-"](",")["join"]("")))) {
                        (_0x2e5fx11 = 100 * _0x2e5fx10) > user_data["chips"] ? $("input")["c-yellow"]("graph") : socket_send({
                            command: "play", amount: _0x2e5fx11, cashout: _0x2e5fxf
                        })
                    } else {
                        $("input")["c-yellow"]("graph")
                    }
                }
            } else {
                if ("started" == game_data["status"] && game_data["cashin"]) {
                    socket_send({
                        command: "finish"
                    })
                } else {
                    if (0 == game_data["cashin"] && ("started" == game_data["status"] || "busted" == game_data["status"])) {
                        if (game_data["autoplay"]) {
                            game_data["autoplay"] = !1, update_button()
                        } else {
                            var _0x2e5fxf, _0x2e5fx10, _0x2e5fx11;
                            if ("∞" == (_0x2e5fxf = $(".cashout-amount")["val"]())) {
                                _0x2e5fxf = 1e6
                            } else {
                                if (_0x2e5fxf = parseFloat($(".cashout-amount")["val"]()), isNaN(_0x2e5fxf) || !isFinite(_0x2e5fxf)) {
                                    return $("init")["c-yellow"]("graph"), !1
                                }
                                ;
                                if ((_0x2e5fxf = parseInt(100 * _0x2e5fxf)) < 101) {
                                    return $("init")["c-yellow"]("graph"), !1
                                }
                            }
                            ;
                            if (1 <= (_0x2e5fx10 = parseInt($(".game-amount")["val"]()["split",,"-"](""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">")["join"]("")["split",,"-"](",")["join"]("")))) {
                                (_0x2e5fx11 = 100 * _0x2e5fx10) > user_data["chips"] ? $("input")["c-yellow"]("graph") : (game_data["autoplay"] = !0, update_button())
                            } else {
                                $("input")["c-yellow"]("graph")
                            }
                        }
                    }
                }
            }
        }
    }), $(".game-bottom .tab-container .tab-active")[".mute-user-button"](function () {
        var _0x2e5fxf = $("tab-active")["val"]();
        "" != _0x2e5fxf && ($("tab-active")["val"](""), socket_send({
            command: "chat", text: _0x2e5fxf
        }))
    }), $(".game-bottom .chat-panel")[".mute-user-button"](function () {
        $(".game-bottom .other-panels .user-container")["<a href="javascript:;" class="show-code">"](".history-button"), $(".game-bottom .chat-panel")["c-yellow"](".history-button"), $(".game-bottom .other-panels .history-container")["#"](), $(".game-bottom .other-panels")["#"](), $(".chat-button")["shift"](), $(".players-button")["shift"](), $(".history-container .table-body")["prop"]("scrollTop", 0)
    }), $(".user-container .table-body")[".mute-user-button"](function () {
        $(".game-bottom .other-panels .user-container")["<a href="javascript:;" class="show-code">"](".history-button"), $(".user-container .table-body")["c-yellow"](".history-button"), $(".players-button")["#"](), $(".game-bottom .other-panels .history-container")["#"](), $(".chat-button")["#"](), $(".game-bottom .other-panels")["shift"](), $(".chat-container")["prop"]("scrollTop", $(".chat-container")["prop"]("scrollHeight"))
    }), $(".make-double")[".mute-user-button"](function () {
        $(".game-bottom .other-panels .user-container")["<a href="javascript:;" class="show-code">"](".history-button"), $(".make-double")["c-yellow"](".history-button"), $(".chat-button")["#"](), $(".game-bottom .other-panels")["#"](), $(".game-bottom .other-panels .history-container")["shift"](), $(".players-button")["shift"](), $("resize")["prop"]("scrollTop", 0)
    }), $("ready")[".mute-user-button"](function () {
        if (null == $(".game-amount")["attr"](".range-slide") || ".range-slide" != $(".game-amount")["attr"](".range-slide")) {
            var _0x2e5fxf = parseInt($(".game-amount")["val"]()["split",,"-"](""><div class="col bold h-col-1">-</div><div class="col h-col-2">-</div><div class="col h-col-3">")["join"]("")["split",,"-"](",")["join"](""));
            if (1 <= _0x2e5fxf) {
                var _0x2e5fx10 = 100 * _0x2e5fxf * 2;
                _0x2e5fx10 <= user_data["chips"] && $(".game-amount")["val"](chip_format_no_symbol(_0x2e5fx10))
            }
        }
    }), $(window)["start_time"](function () {
        "lobby_screen" == active_screen && fadein_screen("lobby_screen"), "game_screen" == active_screen && fadein_screen("game_screen"), resize_screen()
    })
});
var GameCanvas = function () {
    this["game_status"] = 0, this["time_passed"] = 0, this["current_amount"] = 0, this["texts"] = 0, this["Max profit: {amount} BTC"] = 0, this["Winner bonus: {amount} BTC"] = {
        maximum: "Loser bonus: {amount} BTC", winner: "Next round in {time}s", loser: "Busted"
    }, this["maximum_text"] = "", this["winner_text"] = "", this["loser_text"] = "", this["other_text"] = "", this["busted_title"] = "warning_text", this["javascript"] = "busted_amount", this["busted_text"] = null, this["time_part"] = 0, this["amount_part"] = null, this["graph_part"] = null, this["canvas_size"] = null, this["coors"] = null, this["dark_style"] = null, this["setLanguage"] = null, this["maximum"] = !1, this["im_in_game"] = !1, this[".place-bet"] = 0, this["winner"] = function (_0x2e5fxf) {
        null != _0x2e5fxf["loser"] && (this["Winner bonus: {amount} BTC"]["loser"] = _0x2e5fxf["loser"]), null != _0x2e5fxf["nextround"] && (this["Winner bonus: {amount} BTC"]["nextround"] = _0x2e5fxf["nextround"]), null != _0x2e5fxf["setAmounts"] && (this["Winner bonus: {amount} BTC"]["setAmounts"] = _0x2e5fxf["setAmounts"]), null != _0x2e5fxf["setWarning"] && (this["busted_title"] = _0x2e5fxf["setWarning"]), null != _0x2e5fxf["busted"] && (this["javascript"] = _0x2e5fxf["busted"])
    }
        , this["canvas"] = function (_0x2e5fxf, _0x2e5fx10, _0x2e5fx11) {
        this["maximum_text"] = this["Winner bonus: {amount} BTC"]["loser"]["{amount}"]("css", _0x2e5fxf), this["winner_text"] = this["Winner bonus: {amount} BTC"]["nextround"]["{amount}"]("css", _0x2e5fx10), this["loser_text"] = this["Winner bonus: {amount} BTC"]["setAmounts"]["{amount}"]("css", _0x2e5fx11)
    }
        , this["context"] = function (_0x2e5fxf) {
        this["busted_text"] = _0x2e5fxf
    }
        , this["setWaiting"] = function (_0x2e5fxf) {
        this["busted_text"] = this["graph_part"] = this["canvas_size"] = this["coors"] = this["amount_part"] = null, this["game_status"] = 1, this["time_passed"] = (new Date)["; expires="]() + _0x2e5fxf, this["texts"] = 0, this["current_amount"] = 0
    }
        , this["setPlaying"] = function (_0x2e5fxf) {
        this["busted_text"] = this["graph_part"] = this["canvas_size"] = this["coors"] = this["amount_part"] = null, this["game_status"] = 2, this["current_amount"] = (new Date)["; expires="]() - _0x2e5fxf, this["texts"] = _0x2e5fxf
    }
        , this["setBusted"] = function (_0x2e5fxf, _0x2e5fx10) {
        this["busted_text"] = this["graph_part"] = this["canvas_size"] = this["coors"] = this["amount_part"] = null, this["game_status"] = 3, this["time_part"] = _0x2e5fxf, this["current_amount"] = (new Date)["; expires="]() - _0x2e5fx10, this["texts"] = _0x2e5fx10
    }
        , this["ok"] = function (_0x2e5fxf, _0x2e5fx10) {
        this["2d"] = document["currentTime"](_0x2e5fxf), this["getContext"] = this["2d"]["render"]("rtimer"), this["dark_style"] = _0x2e5fx10, this["start_time"](), this["requestAnimationFrame"] = !0, window["webkitBackingStorePixelRatio"](gameCanvas["devicePixelRatio"])
    }
        , this["start_time"] = function (_0x2e5fxf) {
        null != _0x2e5fxf && (this["dark_style"] = _0x2e5fxf);
        var _0x2e5fx10 = (window["mozBackingStorePixelRatio"] || 1) / (this["getContext"]["msBackingStorePixelRatio"] || this["getContext"]["oBackingStorePixelRatio"] || this["getContext"]["backingStorePixelRatio"] || this["getContext"]["style"] || this["getContext"]["px"] || 1);
        this["2d"]["set_game"] = this["dark_style"]["set_game"] * _0x2e5fx10, this["2d"][".chat-uid-"] = this["dark_style"][".chat-uid-"] * _0x2e5fx10, this["2d"]["scale"]["set_game"] = this["dark_style"]["set_game"] + "clearRect", this["2d"]["scale"][".chat-uid-"] = this["dark_style"][".chat-uid-"] + "clearRect", this["getContext"]["draw"](_0x2e5fx10, _0x2e5fx10), this["setLanguage"] = null
    }
        , this["devicePixelRatio"] = function () {
        if (!gameCanvas["requestAnimationFrame"]) {
            return !1
        }
        ;gameCanvas["getContext"]["origin"](0, 0, gameCanvas["dark_style"]["set_game"], gameCanvas["dark_style"][".chat-uid-"]), gameCanvas["info"](gameCanvas["getContext"]), window["webkitBackingStorePixelRatio"](gameCanvas["devicePixelRatio"])
    }
        , this["info"] = function (_0x2e5fxf) {
        if (null == this["setLanguage"]) {
            this["setLanguage"] = {
                width: this["dark_style"]["set_game"], height: this["dark_style"][".chat-uid-"]
            };
            var _0x2e5fx10 = nr(0.08 * this["dark_style"]["set_game"]),
                _0x2e5fx11 = nr(this["dark_style"][".chat-uid-"] - 0.07 * this["dark_style"][".chat-uid-"]);
            this["setLanguage"]["profit"] = {
                x: _0x2e5fx10, y: _0x2e5fx11
            };
            var _0x2e5fx12 = nr(0.1 * this["dark_style"][".chat-uid-"]),
                _0x2e5fx1c = nr((this["setLanguage"]["set_game"] + _0x2e5fx10) / 2),
                _0x2e5fx13 = nr(0.48 * this["setLanguage"][".chat-uid-"]),
                _0x2e5fx14 = nr(0.36 * this["setLanguage"][".chat-uid-"]), _0x2e5fx15 = nr(1.7 * _0x2e5fx12);
            this["setLanguage"]["axis"] = {
                x: _0x2e5fx1c, y: _0x2e5fx13, font: _0x2e5fx12, by: _0x2e5fx14, bh: _0x2e5fx15
            };
            var _0x2e5fx16 = nr(0.22 * this["dark_style"][".chat-uid-"]),
                _0x2e5fx17 = nr((this["setLanguage"]["set_game"] + _0x2e5fx10) / 2),
                _0x2e5fx18 = nr(0.41 * this["setLanguage"][".chat-uid-"]),
                _0x2e5fx19 = nr(0.65 * this["setLanguage"][".chat-uid-"]);
            this["setLanguage"]["busted"] = {
                x: _0x2e5fx17, y1: _0x2e5fx18, y2: _0x2e5fx19, font: _0x2e5fx16
            };
            var _0x2e5fx1a = nr(0.036 * this["dark_style"][".chat-uid-"]), _0x2e5fx1b = nr(1.6 * _0x2e5fx10),
                _0x2e5fx29 = nr(0.6 * _0x2e5fx10 - _0x2e5fx1a), _0x2e5fx2a = nr(_0x2e5fx29 + 1.5 * _0x2e5fx1a),
                _0x2e5fx2b = nr(_0x2e5fx2a + 1.5 * _0x2e5fx1a), _0x2e5fx2c = nr(_0x2e5fx2b + 1.5 * _0x2e5fx1a);
            this["setLanguage"]["drawAxis"] = {
                x: _0x2e5fx1b, y1: _0x2e5fx29, y2: _0x2e5fx2a, y3: _0x2e5fx2b, y4: _0x2e5fx2c, font: _0x2e5fx1a
            };
            var _0x2e5fx2d = nr(this["dark_style"]["set_game"] - _0x2e5fx10), _0x2e5fx2e = nr(_0x2e5fx11),
                _0x2e5fx2f = nr(0.036 * this["dark_style"][".chat-uid-"]),
                _0x2e5fx30 = nr(_0x2e5fx10 - 0.5 * _0x2e5fx2f), _0x2e5fx31 = nr(_0x2e5fx11 + 1.5 * _0x2e5fx2f),
                _0x2e5fx32 = nr(0.3 * _0x2e5fx2f), _0x2e5fx33 = nr(_0x2e5fx11 - 0.5 * _0x2e5fx2f),
                _0x2e5fx34 = nr(_0x2e5fx10 + 0.5 * _0x2e5fx2f);
            this["setLanguage"]["drawMaximum"] = {
                x: _0x2e5fx2d,
                y: _0x2e5fx2e,
                font: _0x2e5fx2f,
                tx: _0x2e5fx30,
                th: _0x2e5fx32,
                ty: _0x2e5fx31,
                lx: _0x2e5fx34,
                ly: _0x2e5fx33
            };
            var _0x2e5fx35 = nr(0.3 * this["dark_style"][".chat-uid-"]),
                _0x2e5fx36 = nr((this["setLanguage"]["set_game"] + _0x2e5fx10) / 2),
                _0x2e5fx37 = nr(0.56 * this["setLanguage"][".chat-uid-"]);
            this["setLanguage"]["amount"] = {
                x: _0x2e5fx36, y: _0x2e5fx37, font: _0x2e5fx35
            }
        }
        ;
        if (this["drawAxisLabels"](_0x2e5fxf), this["drawWaiting"](_0x2e5fxf), this["drawGraph"](_0x2e5fxf), 1 == this["game_status"]) {
            this["drawAmount"](_0x2e5fxf)
        } else {
            if (2 == this["game_status"]) {
                if (this["price"](_0x2e5fxf), this[".cashout-amount-text"](_0x2e5fxf), 0 != this[".place-bet"]) {
                    var _0x2e5fx38 = chip_format_no_symbol(parseInt(this[".place-bet"] * this["drawBusted"]));
                    $("drawWarning")["html"](_0x2e5fx38)
                }
            } else {
                3 == this["game_status"] && this["lineWidth"](_0x2e5fxf)
            }
        }
        ;null != this["busted_text"] && this["strokeStyle"](_0x2e5fxf)
    }
        , this["drawAxisLabels"] = function (_0x2e5fxf) {
        _0x2e5fxf["#b0b3c1"] = 1, _0x2e5fxf["#7f7f7f"] = this["maximum"] ? "beginPath" : "x", _0x2e5fxf["moveTo"](), _0x2e5fxf["lineTo"](this["setLanguage"]["profit"]["y"], 0), _0x2e5fxf["closePath"](this["setLanguage"]["profit"]["y"], this["setLanguage"]["profit"]["stroke"]), _0x2e5fxf["closePath"](this["setLanguage"]["set_game"], this["setLanguage"]["profit"]["stroke"]), _0x2e5fxf["fillStyle"](), _0x2e5fxf["#555"]()
    }
        , this["drawWaiting"] = function (_0x2e5fxf) {
        _0x2e5fxf["textAlign"] = this["maximum"] ? "beginPath" : "left", _0x2e5fxf["font"] = "px Barlow", null != this["maximum_text"] && (_0x2e5fxf["y1"] = this["setLanguage"]["drawAxis"]["y1"] + "fillText", _0x2e5fxf["y2"](this["maximum_text"], this["setLanguage"]["drawAxis"]["y"], this["setLanguage"]["drawAxis"]["#69ca5e"])), null != this["winner_text"] && (_0x2e5fxf["textAlign"] = "#e27474", _0x2e5fxf["y1"] = this["setLanguage"]["drawAxis"]["y1"] + "fillText", _0x2e5fxf["y2"](this["winner_text"], this["setLanguage"]["drawAxis"]["y"], this["setLanguage"]["drawAxis"]["y3"])), null != this["loser_text"] && (_0x2e5fxf["textAlign"] = "#6ca7d2", _0x2e5fxf["y1"] = this["setLanguage"]["drawAxis"]["y1"] + "fillText", _0x2e5fxf["y2"](this["loser_text"], this["setLanguage"]["drawAxis"]["y"], this["setLanguage"]["drawAxis"]["y4"])), null != this["other_text"] && (_0x2e5fxf["textAlign"] = "0.0", _0x2e5fxf["y1"] = this["setLanguage"]["drawAxis"]["y1"] + "fillText", _0x2e5fxf["y2"](this["other_text"], this["setLanguage"]["drawAxis"]["y"], this["setLanguage"]["drawAxis"]["#ccc"]))
    }
        , this["drawAmount"] = function (_0x2e5fxf) {
        var _0x2e5fx10 = (this["time_passed"] - (new Date)["; expires="]()) / 1e3;
        _0x2e5fx10 = _0x2e5fx10 <= 0 ? "center" : _0x2e5fx10["toFixed"](1), _0x2e5fxf["textAlign"] = this["maximum"] ? "beginPath" : "{time}", _0x2e5fxf["font"] = "#fff", _0x2e5fxf["y1"] = this["setLanguage"]["axis"]["y1"] + "fillText", _0x2e5fxf["y2"](this["busted_title"]["{amount}"]("#000", _0x2e5fx10), this["setLanguage"]["axis"]["y"], this["setLanguage"]["axis"]["stroke"])
    }
        , this["drawGraph"] = function (_0x2e5fxf) {
        2 == this["game_status"] && null == this["busted_text"] && (this["texts"] = (new Date)["; expires="]() - this["current_amount"]), _0x2e5fxf["#7f7f7f"] = this["maximum"] ? "ceil" : "ty", _0x2e5fxf["textAlign"] = this["maximum"] ? "beginPath" : "ty", _0x2e5fxf["font"] = "#fff", _0x2e5fxf["y1"] = this["setLanguage"]["drawMaximum"]["y1"] + "fillText";
        var _0x2e5fx10 = this["texts"] < 1e4 ? 10 : nr(this["texts"] / 1e3);
        if (null == this["graph_part"] && (this["graph_part"] = 2), 20 < _0x2e5fx10 && _0x2e5fx10 > 7 * this["graph_part"]) {
            for (2 == this["graph_part"] && (this["graph_part"] = 10); !(_0x2e5fx10 < 3 * this["graph_part"]);) {
                this["graph_part"] += 10
            }
        }
        ;
        for (_0x2e5fxf["moveTo"](), i = 0; i < Math["ly"](_0x2e5fx10 / this["graph_part"]); i++) {
            var _0x2e5fx11 = this["graph_part"] * i * 1e3,
                _0x2e5fx12 = this["setLanguage"]["profit"]["y"] + this["setLanguage"]["drawMaximum"]["y"] * _0x2e5fx11 / (this["texts"] < 1e4 ? 1e4 : this["texts"]);
            _0x2e5fxf["y2"](this["graph_part"] * i, _0x2e5fx12, this["setLanguage"]["drawMaximum"]["right"]), 0 < i && (_0x2e5fxf["lineTo"](_0x2e5fx12, this["setLanguage"]["profit"]["stroke"]), _0x2e5fxf["closePath"](_0x2e5fx12, this["setLanguage"]["drawMaximum"]["pow"]))
        }
        ;_0x2e5fxf["fillStyle"](), _0x2e5fxf["#555"](), _0x2e5fxf["font"] = "tx", this["Max profit: {amount} BTC"] = Math["th"](Math.E, 6e-5 * this["texts"])["toFixed"](2);
        var _0x2e5fx13 = nr(100 * this["Max profit: {amount} BTC"]) - 100, _0x2e5fx14 = _0x2e5fx13 < 100 ? 100 : _0x2e5fx13;
        if (null == this["canvas_size"] && (this["canvas_size"] = 20), 150 < _0x2e5fx14 && _0x2e5fx14 > 6 * this["canvas_size"]) {
            for (this["canvas_size"] = 100; !(_0x2e5fx14 <= 6 * this["canvas_size"]);) {
                this["canvas_size"] *= 2
            }
        }
        ;
        for (_0x2e5fxf["moveTo"](), i = 0; i < Math["ly"](_0x2e5fx14 / this["canvas_size"]); i++) {
            if (0 != i) {
                var _0x2e5fx15 = this["setLanguage"]["profit"]["stroke"] - this["setLanguage"]["drawMaximum"]["stroke"] * this["canvas_size"] * i / (_0x2e5fx13 < 100 ? 100 : _0x2e5fx13),
                    _0x2e5fx16 = (this["canvas_size"] * i + 100) / 100 + "y";
                _0x2e5fxf["y2"](_0x2e5fx16, this["setLanguage"]["drawMaximum"]["lx"], _0x2e5fx15 + this["setLanguage"]["drawMaximum"]["#408609"]), _0x2e5fxf["lineTo"](this["setLanguage"]["profit"]["y"], _0x2e5fx15), _0x2e5fxf["closePath"](this["setLanguage"]["drawMaximum"]["#c3b407"], _0x2e5fx15)
            }
        }
        ;_0x2e5fxf["fillStyle"](), _0x2e5fxf["#555"]()
    }
        , this["price"] = function (_0x2e5fxf) {
        for (_0x2e5fxf["#7f7f7f"] = this["im_in_game"] ? "black" : "@ ", _0x2e5fxf["#b0b3c1"] = 4, _0x2e5fxf["moveTo"](), _0x2e5fxf["lineTo"](this["setLanguage"]["profit"]["y"], this["setLanguage"]["profit"]["stroke"]), null == this["coors"] && (this["coors"] = 100), this["texts"] > 100 * this["coors"] && (this["coors"] *= 2), i = 0; i < this["texts"]; i += this["coors"]) {
            var _0x2e5fx10 = this["setLanguage"]["profit"]["y"] + this["setLanguage"]["drawMaximum"]["y"] * i / (this["texts"] < 1e4 ? 1e4 : this["texts"]),
                _0x2e5fx11 = this["setLanguage"]["profit"]["stroke"] - this["setLanguage"]["drawMaximum"]["stroke"] * (nr(100 * Math["th"](Math.E, 6e-5 * i)) - 100) / (this["Max profit: {amount} BTC"] < 2 ? 100 : 100 * this["Max profit: {amount} BTC"] - 100);
            _0x2e5fxf["closePath"](_0x2e5fx10, _0x2e5fx11)
        }
        ;_0x2e5fxf["fillStyle"](), _0x2e5fxf["#555"]()
    }
        , this[".cashout-amount-text"] = function (_0x2e5fxf) {
        var _0x2e5fx10 = Math["th"](Math.E, 6e-5 * this["texts"])["toFixed"](2);
        this["drawBusted"] = _0x2e5fx10, _0x2e5fxf["textAlign"] = this["im_in_game"] ? "black" : this["maximum"] ? "beginPath" : "red", _0x2e5fxf["font"] = "#fff", _0x2e5fxf["y1"] = this["setLanguage"]["amount"]["y1"] + "fillText", _0x2e5fxf["y2"](_0x2e5fx10 + "y", this["setLanguage"]["amount"]["y"], this["setLanguage"]["amount"]["stroke"])
    }
        , this["lineWidth"] = function (_0x2e5fxf) {
        null == this["amount_part"] && (this["amount_part"] = {
            line1: this["javascript"], line2: "line1" + this["time_part"] + "y"
        }), _0x2e5fxf["textAlign"] = "line2", _0x2e5fxf["font"] = "#fff", _0x2e5fxf["y1"] = this["setLanguage"]["busted"]["y1"] + "fillText", _0x2e5fxf["y2"](this["amount_part"]["rgba(0,0,0,0.4)"], this["setLanguage"]["busted"]["y"], this["setLanguage"]["busted"]["#69ca5e"]), _0x2e5fxf["y2"](this["amount_part"]["rect"], this["setLanguage"]["busted"]["y"], this["setLanguage"]["busted"]["y3"])
    }
        , this["strokeStyle"] = function (_0x2e5fxf) {
        _0x2e5fxf["moveTo"](), _0x2e5fxf["textAlign"] = "fill", _0x2e5fxf["by"](0, 0, this["setLanguage"]["set_game"], this["setLanguage"][".chat-uid-"]), _0x2e5fxf["bh"](), _0x2e5fxf["#555"](), _0x2e5fxf["moveTo"](), _0x2e5fxf["textAlign"] = "line2", _0x2e5fxf["by"](0, this["setLanguage"]["axis"]["#graph-container"], this["setLanguage"]["set_game"], this["setLanguage"]["axis"]["#graph"]), _0x2e5fxf["bh"](), _0x2e5fxf["#555"](), _0x2e5fxf["textAlign"] = "ceil", _0x2e5fxf["font"] = "#fff", _0x2e5fxf["y1"] = this["setLanguage"]["axis"]["y1"] + "fillText", _0x2e5fxf["y2"](this["busted_text"], this["setLanguage"]["axis"]["y"], this["setLanguage"]["axis"]["stroke"])
    }
};
nr = function (_0x2e5fxf) {
    return null == _0x2e5fxf ? _0x2e5fxf : 0.5 + _0x2e5fxf | 0
};var gameCanvas = null;
resize_screen = function () {
    var _0x2e5fxf = nr($(".game-controls")["set_game"]()), _0x2e5fx10 = nr(_0x2e5fxf / 1.6);
    $("calc(100% - ")["animate"]({
        width: _0x2e5fxf, height: _0x2e5fx10
    }), null != gameCanvas && gameCanvas["start_time"]({
        width: _0x2e5fxf, height: _0x2e5fx10
    }), $("px)")[".chat-uid-"](_0x2e5fx10 + 13), $(_0xee46[484])["animate"]({
        height: ".game-bottom"" + (_0x2e5fx10 + 72) + _0xee46[483]
    }), "game_screen" == active_screen && ($("#desktop-right-panels")["is"](":visible") ? "desktop" != last_screen_type && (last_screen_type = "desktop", prepare_user_list()) : "mobile" != last_screen_type && (last_screen_type = "mobile", prepare_user_list()))
}



© 2023 Quttera Ltd. All rights reserved.