-
-
- Enter the code you recieved from Telegram
-
-
Enter
-
-
-
-
-
-
- You are prohibited from adding more than 1 account on the current platform by its EULA.
-
-
-
-
-
-
-
Hikka is installed
-
- Hikka is installed. You can close this page now.
-
- It might take a while for installation to fully complete. Please, be patient.
-
- Check Telegram for a message from your inline
- bot
-
-
-
-
-
-
-
- Hikka
-
-
-
-
Incomprehensibly the best userbot Authorized!
-
- {% if not tg_done %}
-
-
-
- Get started
-
-
-
-
-
-
-
- {% else %}
-
-
-
- Add phone
-
-
-
-
-
-
-
- {% endif %}
- {% if skip_creds and not lavhost %}
-
-
-
- Change API Creds
-
-
-
-
-
-
-
- {% endif %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Open Telegram on your phone
-
-
- Go to Settings → Devices → Link Desktop Device
-
-
- Point your phone at this screen to confirm login
-
-
-
-
-
-
-
-
-
-
- Continue
-
-
-
-
-
-
-
-
-
-
- Auth using phone instead
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{% endblock %}
\ No newline at end of file
diff --git a/web-resources/static/Movement.ttf b/web-resources/static/Movement.ttf
deleted file mode 100644
index c84755f..0000000
Binary files a/web-resources/static/Movement.ttf and /dev/null differ
diff --git a/web-resources/static/base.min.css b/web-resources/static/base.min.css
deleted file mode 100644
index b2fde62..0000000
--- a/web-resources/static/base.min.css
+++ /dev/null
@@ -1 +0,0 @@
-@import "https://fonts.googleapis.com/css2?family=Josefin+Sans&family=Open+Sans:wght@300&display=swap";@import "https://fonts.googleapis.com/css2?family=Hubballi&display=swap";@font-face{font-family:'Movement';src:url(/static/Movement.ttf) format("truetype")}body,html{width:100%;height:100%;margin:0;padding:0}body{font-family:Hubballi}.bg{width:100%;height:100%;margin:0;padding:0;position:fixed;z-index:-2;background:#111}.bg_inner{animation:fadein 1s ease-in-out forwards 1s;opacity:0;width:90%;height:90%;padding:0;top:0;left:0;right:0;bottom:0;margin:auto;position:fixed;z-index:-1;border-radius:50%;background:#077958;filter:blur(100px);transition:background-color .5s ease}@keyframes fadein{from{opacity:0}to{opacity:1}}#sky{width:100vw;height:100vh;position:fixed;overflow:hidden;margin:0;padding:0}#shootingstars{margin:0;padding:0;width:150vh;height:100vw;position:fixed;overflow:hidden;transform:translatex(calc(50vw - 50%)) translatey(calc(50vh - 50%)) rotate(120deg)}.wish{height:2px;top:300px;width:100px;margin:0;opacity:0;padding:0;background-color:#fff;position:absolute;background:linear-gradient(-45deg,white,rgba(0,0,255,0));filter:drop-shadow(0 0 6px white);overflow:hidden}.title{font-size:50px;font-family:Hubballi;text-align:center;color:#fff;width:100%;z-index:2;position:relative;height:50px;line-height:50px}.description{font-size:24px;color:#eee;text-align:center;width:100%;z-index:2;position:relative;line-height:1.3;font-family:Hubballi}.wrapper{width:100%;height:100%;position:absolute;justify-content:center;align-items:center;display:flex;flex-direction:column}#root{position:absolute;top:0;right:0;left:0;bottom:0;margin:auto}.darken{position:absolute;width:100%;height:100%;z-index:1;background:rgba(0,0,0,.1);top:0;bottom:0;right:0;left:0;margin:auto}.main_content{display:none}.center{justify-content:center;align-items:center;display:flex;position:relative;z-index:2;margin-top:20px}.blur{padding:3rem 6rem;border-radius:.375rem;background-color:rgba(22,24,29,.5);border:1px solid rgba(42,46,55,1);backdrop-filter:blur(6px);position:relative;z-index:99}@media screen and (max-width: 736px){.blur{width:100%;height:100%;padding:1.5rem;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center}.title{height:auto;line-height:auto}.finish_block,.auth{display:flex;flex-direction:column;align-items:center;justify-content:center}}@keyframes floating{from{transform:translateY(-10px)}50%{transform:translateY(10px)}to{transform:translateY(-10px)}}.button{border-radius:3px;padding:10px 20px;border:none;color:#eee;margin:5px 0;background:transparent;border:1px solid #aaa;cursor:pointer;transition:box-shadow .2s ease;user-select:none;min-height:42px;box-sizing:border-box}.button:hover{box-shadow:inset 3px 3px 1px rgba(255,255,255,.1),inset -3px -3px 1px rgba(255,255,255,.1)}input{outline:none;color:#fff;text-align:center;border-radius:5px;padding:10px 20px;border:none;background:transparent;border:1px solid #aaa;transition:box-shadow .2s ease}input:focus{box-shadow:inset 3px 3px 1px rgba(255,255,255,.1),inset -3px -3px 1px rgba(255,255,255,.1)}label{margin:0 10px;color:#eee;user-select:none}#denyqr,#continue_btn,#block_api_id,#block_api_hash,#block_phone,#block_2fa,#block_custom_bot,#block_qr_login{display:none}.red_state .bg_inner{background:#943737}.horiz_center{justify-content:center;align-items:center;display:flex}.vert_center{justify-content:center;align-items:center;display:flex;flex-direction:column}#installation_icon{height:200px;margin-bottom:35px}.lights{animation:fadein .8s ease-in-out forwards .5s;opacity:0}.light{position:absolute;width:3px;filter:blur(4px);top:100vh;bottom:0;left:0;right:0;margin:auto;z-index:-1;background:#fff}.x1{filter:blur(3px);-webkit-animation:floatUp 4s infinite linear;-moz-animation:floatUp 4s infinite linear;-o-animation:floatUp 4s infinite linear;animation:floatUp 4s infinite linear;-webkit-transform:scale(1.0);-moz-transform:scale(1.0);-o-transform:scale(1.0);transform:scale(1.0)}.x2{filter:blur(3px);-webkit-animation:floatUp 7s infinite linear;-moz-animation:floatUp 7s infinite linear;-o-animation:floatUp 7s infinite linear;animation:floatUp 7s infinite linear;-webkit-transform:scale(1.6);-moz-transform:scale(1.6);-o-transform:scale(1.6);transform:scale(1.6);left:15%}.x3{filter:blur(3px);-webkit-animation:floatUp 2.5s infinite linear;-moz-animation:floatUp 2.5s infinite linear;-o-animation:floatUp 2.5s infinite linear;animation:floatUp 2.5s infinite linear;-webkit-transform:scale(.5);-moz-transform:scale(.5);-o-transform:scale(.5);transform:scale(.5);left:-15%}.x4{filter:blur(5px);-webkit-animation:floatUp 4.5s infinite linear;-moz-animation:floatUp 4.5s infinite linear;-o-animation:floatUp 4.5s infinite linear;animation:floatUp 4.5s infinite linear;-webkit-transform:scale(1.2);-moz-transform:scale(1.2);-o-transform:scale(1.2);transform:scale(1.2);left:-34%}.x5{filter:blur(6px);-webkit-animation:floatUp 8s infinite linear;-moz-animation:floatUp 8s infinite linear;-o-animation:floatUp 8s infinite linear;animation:floatUp 8s infinite linear;-webkit-transform:scale(2.2);-moz-transform:scale(2.2);-o-transform:scale(2.2);transform:scale(2.2);left:-57%}.x6{filter:blur(4px);-webkit-animation:floatUp 3s infinite linear;-moz-animation:floatUp 3s infinite linear;-o-animation:floatUp 3s infinite linear;animation:floatUp 3s infinite linear;-webkit-transform:scale(.8);-moz-transform:scale(.8);-o-transform:scale(.8);transform:scale(.8);left:-81%}.x7{filter:blur(3px);-webkit-animation:floatUp 5.3s infinite linear;-moz-animation:floatUp 5.3s infinite linear;-o-animation:floatUp 5.3s infinite linear;animation:floatUp 5.3s infinite linear;-webkit-transform:scale(3.2);-moz-transform:scale(3.2);-o-transform:scale(3.2);transform:scale(3.2);left:37%}.x8{filter:blur(6px);-webkit-animation:floatUp 4.7s infinite linear;-moz-animation:floatUp 4.7s infinite linear;-o-animation:floatUp 4.7s infinite linear;animation:floatUp 4.7s infinite linear;-webkit-transform:scale(1.7);-moz-transform:scale(1.7);-o-transform:scale(1.7);transform:scale(1.7);left:62%}.x9{filter:blur(3px);-webkit-animation:floatUp 4.1s infinite linear;-moz-animation:floatUp 4.1s infinite linear;-o-animation:floatUp 4.1s infinite linear;animation:floatUp 4.1s infinite linear;-webkit-transform:scale(0.9);-moz-transform:scale(0.9);-o-transform:scale(0.9);transform:scale(0.9);left:85%}@keyframes floatUp{0%{top:100vh;opacity:0}25%{opacity:1}50%{top:0;opacity:.8}75%{opacity:1}100%{top:-100vh;opacity:0}}.gg-smartphone{background:linear-gradient(to left,currentColor 5px,transparent 0) no-repeat 5px 12px/1px 1px;box-sizing:border-box;position:relative;display:block;transform:scale(var(--ggs,1));width:13px;height:20px;border:1px solid;border-radius:2px}.gg-add{box-sizing:border-box;position:relative;display:block;width:20px;height:20px;border:1px solid;transform:scale(var(--ggs,1));border-radius:20px}.gg-add::after,.gg-add::before{content:"";display:block;box-sizing:border-box;position:absolute;width:9px;height:1px;background:currentColor;border-radius:5px;top:9px;left:5px}.gg-add::after{width:1px;height:9px;top:5px;left:9px}.gg-brackets{box-sizing:border-box;position:relative;display:block;transform:scale(var(--ggs,1));width:18px;height:18px;border:1px solid;border-radius:2px}.gg-brackets::after,.gg-brackets::before{content:"";display:block;box-sizing:border-box;position:absolute;border:1px solid;width:4px;height:11px;top:2px}.gg-brackets::before{border-right:0;left:3px}.gg-brackets::after{border-left:0;right:3px}.gg-chevron-right-o{box-sizing:border-box;position:relative;display:block;transform:scale(var(--ggs,1));width:20px;height:20px;border:1px solid;border-radius:100px}.gg-chevron-right-o::after{content:"";display:block;box-sizing:border-box;position:absolute;width:6px;height:6px;border-bottom:1px solid;border-right:1px solid;transform:rotate(-45deg);left:5px;top:6px}.button i{margin-left:.5em}.button{margin:10px 5px}.mountains{display:none}#tg_icon{height:40vh}.auth{position:absolute;top:0;bottom:0;right:0;left:0;margin:auto;width:50%;height:60%;padding:2rem;display:none}@media screen and (max-width: 736px){.auth{width:100%;height:100%;margin:0}}.confirm_auth{font-size:36px;text-align:center;color:#fff;padding:10px 0}.waiting_for_auth{font-size:22px;text-align:center;color:#fff;padding:15px 0}.finish_block{display:none}.lights{width:100%;height:100%;position:fixed;top:0;left:0;right:0;bottom:0;margin:auto;z-index:-1;overflow:hidden}.auth-code-form,.eula-form{display:none;width:60%;height:80%;padding:0;border-radius:15px;position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;z-index:101;text-align:center}.eula-form .code-caption{padding:0 30px}.eula-form{height:60%;width:50%}@media screen and (max-width: 736px){.auth-code-form,.eula-form{width:100%;height:100%;margin:0}}.enter{padding:5px 10px;border:1px solid #dc137b;color:#dc137b;font-size:30px;border-radius:8px;width:50%;margin-left:25%;margin-top:10px;box-sizing:border-box;transition:all .15s ease;display:none}@media screen and (max-width: 736px){.enter{display:block}}.enter.tgcode{display:none}.enter:active{background:#dc137b;color:#fff}#monkey,#monkey-close,#law{height:200px;margin-top:30px}#monkey-close{display:none}.code-input{width:50%;margin-top:25px;height:32px;border-radius:15px;border:1px solid #121212;background:#212121;transition:border .2s ease-in;font-size:18px}.code-input:focus{border:2px solid #8774e1}.code-caption{font-size:26px;color:#fefefe;padding-top:50px}.tg_guide ol li::before{content:counter(item);display:flex;justify-content:center;align-items:center;min-width:1.375rem;height:1.375rem;padding:0;margin:0 .75rem 0 0;background:#8774e1;border-radius:50%;font-size:smaller;color:#fff}.tg_guide ol{list-style:none;counter-reset:item;padding:0 1.75rem}.tg_guide ol li{counter-increment:item;text-align:left;margin:.75rem 0;display:flex;color:#fff;font-size:20px}.qr_inner{display:inline-block;position:relative;left:50%;transform:translateX(-50%);padding:15px;border-radius:15px;background:rgba(255,255,255,.8)}.hikka_label{display:inline-block;background:#fff;padding:10px 15px;border-radius:30px;font-family:"Movement";color:#000;font-size:30px;line-height:30px}.label_inner{display:flex}.moon{height:30px}
\ No newline at end of file
diff --git a/web-resources/static/root.min.js b/web-resources/static/root.min.js
deleted file mode 100644
index 65d55d6..0000000
--- a/web-resources/static/root.min.js
+++ /dev/null
@@ -1 +0,0 @@
-function auth(c){$(".main").fadeOut(250),setTimeout(()=>{$(".auth").hide().fadeIn(250,()=>{$("#tg_icon").html(""),bodymovin.loadAnimation({container:document.getElementById("tg_icon"),renderer:"canvas",loop:!0,autoplay:!0,path:"https://assets9.lottiefiles.com/packages/lf20_bgqoyj8l.json",rendererSettings:{clearCanvas:!0}})}),fetch("/web_auth",{method:"POST",credentials:"include",timeout:25e4}).then(b=>b.text()).then(a=>"TIMEOUT"==a?(error_message("Code waiting timeout exceeded. Reload page and try again."),void $(".auth").fadeOut(250)):a.startsWith("hikka_")?($.cookie("session",a),auth_required=!1,$(".authorized").hide().fadeIn(100),$(".auth").fadeOut(250,()=>{$(".installation").fadeIn(250)}),void c()):void 0)},250)}var qr_interval=null,qr_login=!1,old_qr_sizes=[document.querySelector(".qr_inner").style.width,document.querySelector(".qr_inner").style.height];document.querySelector(".qr_inner").style.width="100px",document.querySelector(".qr_inner").style.height="100px";function login_qr(){$("#continue_btn").fadeOut(100),$("#denyqr").hide().fadeIn(250),$(".title, .description").fadeOut(250),fetch("/init_qr_login",{method:"POST",credentials:"include"}).then(b=>b.text()).then(c=>{const d=new QRCodeStyling({width:window.innerHeight/3,height:window.innerHeight/3,type:"svg",data:c,dotsOptions:{type:"rounded"},cornersSquareOptions:{type:"extra-rounded"},backgroundOptions:{color:"transparent"},imageOptions:{imageSize:.4,margin:8},qrOptions:{errorCorrectionLevel:"M"}});document.querySelector(".qr_inner").innerHTML="",document.querySelector(".qr_inner").style.width=old_qr_sizes[0],document.querySelector(".qr_inner").style.height=old_qr_sizes[1],d.append(document.querySelector(".qr_inner")),qr_interval=setInterval(()=>{fetch("/get_qr_url",{method:"POST",credentials:"include"}).then(b=>b.text()).then(b=>"SUCCESS"==b||"2FA"==b?($("#block_qr_login").fadeOut(250),$("#denyqr").fadeOut(250),$("#continue_btn, .title, .description").hide().fadeIn(250),"SUCCESS"==b&&switch_block("custom_bot"),"2FA"==b&&(show_2fa(),qr_login=!0),void clearInterval(qr_interval)):void d.update({data:b}))},1250)})}$("#get_started").click(()=>{fetch("/can_add",{method:"POST",credentials:"include"}).then(b=>b.ok?auth_required?auth(()=>{$("#get_started").click()}):void($("#continue_btn").hide().fadeIn(250),$("#denyqr").hide(),$("#enter_api").fadeOut(250),$("#get_started").fadeOut(250,()=>{switch_block(_current_block)})):void show_eula())}),$("#enter_api").click(()=>auth_required?auth(()=>{$("#enter_api").click()}):void($("#get_started").fadeOut(250),$("#enter_api").fadeOut(250,()=>{$("#continue_btn").hide().fadeIn(250),switch_block("api_id")})));function isInt(c){var a=parseFloat(c);return!isNaN(c)&&(0|a)===a}function isValidPhone(b){return /^[+]?\d{11,13}$/.test(b)}function finish_login(){fetch("/finish_login",{method:"POST",credentials:"include"}).then(()=>{$(".installation").fadeOut(2e3),setTimeout(()=>{$("#installation_icon").html(""),bodymovin.loadAnimation({container:document.getElementById("installation_icon"),renderer:"canvas",loop:!0,autoplay:!0,path:"https://assets1.lottiefiles.com/packages/lf20_n3jgitst.json",rendererSettings:{clearCanvas:!0}}),$(".finish_block").fadeIn(250)},2e3)}).catch(b=>{error_state(),error_message("Login confirmation error: "+b.toString())})}function show_2fa(){$(".auth-code-form").hide().fadeIn(250,()=>{$("#monkey-close").html(""),anim=bodymovin.loadAnimation({container:document.getElementById("monkey-close"),renderer:"canvas",loop:!0,autoplay:!0,path:"https://assets1.lottiefiles.com/packages/lf20_eg88dyk9.json",rendererSettings:{clearCanvas:!0}}),anim.addEventListener("complete",()=>{setTimeout(()=>{anim.goToAndPlay(0)},2e3)})}),$(".code-input").removeAttr("disabled"),$(".code-input").attr("inputmode","text"),$(".code-input").attr("autocomplete","off"),$(".code-input").attr("autocorrect","off"),$(".code-input").attr("autocapitalize","off"),$(".code-input").attr("spellcheck","false"),$(".code-input").attr("type","password"),$(".enter").hasClass("tgcode")&&$(".enter").removeClass("tgcode"),$(".code-caption").html("Enter your Telegram 2FA password, then press Enter"),cnt_btn.setAttribute("current-step","2fa"),$("#monkey").hide(),$("#monkey-close").hide().fadeIn(100),_current_block="2fa"}function show_eula(){$(".main").fadeOut(250),$(".eula-form").hide().fadeIn(250,()=>{$("#law").html(""),anim=bodymovin.loadAnimation({container:document.getElementById("law"),renderer:"canvas",loop:!0,autoplay:!0,path:"https://static.hikari.gay/forbidden.json",rendererSettings:{clearCanvas:!0}})})}function tg_code(b=!1){return b&&qr_login?void fetch("/qr_2fa",{method:"POST",credentials:"include",body:_2fa_pass}).then(b=>{b.ok?($(".auth-code-form").fadeOut(),$("#block_phone").fadeOut(),switch_block("custom_bot")):($(".code-input").removeAttr("disabled"),b.text().then(b=>{error_state(),Swal.fire("Error",b,"error")}))}):void fetch("/tg_code",{method:"POST",body:`${_tg_pass}\n${_phone}\n${_2fa_pass}`}).then(b=>{b.ok?($(".auth-code-form").fadeOut(),$("#block_phone").fadeOut(),switch_block("custom_bot")):401==b.status?show_2fa():($(".code-input").removeAttr("disabled"),b.text().then(b=>{error_state(),Swal.fire("Error",b,"error")}))}).catch(b=>{Swal.showValidationMessage(`Auth failed: ${b.toString()}`)})}function switch_block(b){cnt_btn.setAttribute("current-step",b);try{$(`#block_${_current_block}`).fadeOut(()=>{$(`#block_${b}`).hide().fadeIn()})}catch{$(`#block_${b}`).hide().fadeIn()}_current_block=b,"qr_login"==_current_block&&login_qr()}function error_message(b){Swal.fire({icon:"error",title:b})}function error_state(){$("body").addClass("red_state"),cnt_btn.disabled=!0,setTimeout(()=>{cnt_btn.disabled=!1,$("body").removeClass("red_state")},1e3)}var _api_id="",_api_hash="",_phone="",_2fa_pass="",_tg_pass="",_current_block=skip_creds?"qr_login":"api_id";function is_phone(){return /Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)}is_phone()&&"qr_login"==_current_block&&(_current_block="phone");const cnt_btn=document.querySelector("#continue_btn");function process_next(){let b=cnt_btn.getAttribute("current-step");if("api_id"==b){let b=document.querySelector("#api_id").value;return 4>b.length||!isInt(b)?void error_state():(_api_id=parseInt(b,10),void switch_block("api_hash"))}if("api_hash"==b){let b=document.querySelector("#api_hash").value;return 32==b.length?(_api_hash=b,void fetch("/set_api",{method:"PUT",body:_api_hash+_api_id,credentials:"include"}).then(b=>b.text()).then(b=>{"ok"==b?switch_block(is_phone()?"phone":"qr_login"):(error_state(),error_message(b))}).catch(b=>{error_state(),error_message("Error occured while saving credentials: "+b.toString())})):void error_state()}if("phone"==b){let b=document.querySelector("#phone").value;if(!isValidPhone(b))return void error_state();_phone=b,fetch("/send_tg_code",{method:"POST",body:_phone,credentials:"include"}).then(b=>{b.ok?($(".auth-code-form").hide().fadeIn(250,()=>{$("#monkey").html(""),anim2=bodymovin.loadAnimation({container:document.getElementById("monkey"),renderer:"canvas",loop:!1,autoplay:!0,path:"https://assets8.lottiefiles.com/private_files/lf30_t52znxni.json",rendererSettings:{clearCanvas:!0}}),anim2.addEventListener("complete",()=>{setTimeout(()=>{anim2.goToAndPlay(0)},2e3)})}),$(".code-input").removeAttr("disabled"),$(".enter").addClass("tgcode"),$(".code-caption").text("Enter the code you recieved in Telegram"),$(".code-input").attr("autocomplete","off"),$(".code-input").attr("autocorrect","off"),$(".code-input").attr("autocapitalize","off"),$(".code-input").attr("spellcheck","false"),$(".code-input").attr("type","number"),cnt_btn.setAttribute("current-step","code"),_current_block="code"):403==b.status?show_eula():b.text().then(b=>{error_state(),error_message(b)})}).catch(b=>{error_state(),error_message("Code send failed: "+b.toString())})}if("2fa"==b){let b=document.querySelector("#_2fa").value;return _2fa_pass=b,void tg_code()}if("custom_bot"==b){let b=document.querySelector("#custom_bot").value;return""!=b&&(!b.toLowerCase().endsWith("bot")||5>b.length)?void Swal.fire({icon:"error",title:"Bot username invalid",text:"It must end with `bot` and be at least 5 symbols in length"}):""==b?void finish_login():void fetch("/custom_bot",{method:"POST",credentials:"include",body:b}).then(b=>b.text()).then(b=>"OCCUPIED"==b?void Swal.fire({icon:"error",title:"This bot username is already occupied!"}):void finish_login()).catch(b=>{error_state(),error_message("Custom bot setting error: "+b.toString())})}}cnt_btn.onclick=()=>cnt_btn.disabled?void 0:auth_required?auth(()=>{cnt_btn.click()}):void process_next(),$("#denyqr").on("click",()=>{qr_interval&&clearInterval(qr_interval),$("#denyqr").fadeOut(250),$("#continue_btn, .title, .description").hide().fadeIn(250),switch_block("phone")}),$(".installation input").on("keyup",b=>cnt_btn.disabled?void 0:auth_required?auth(()=>{cnt_btn.click()}):void(("Enter"===b.key||13===b.keyCode)&&process_next())),$(".code-input").on("keyup",b=>{if("code"==_current_block&&5==$(".code-input").val().length)_tg_pass=$(".code-input").val(),$(".code-input").attr("disabled","true"),$(".code-input").val(""),tg_code();else if("2fa"==_current_block&&("Enter"===b.key||13===b.keyCode)){let b=$(".code-input").val();_2fa_pass=b,$(".code-input").attr("disabled","true"),$(".code-input").val(""),tg_code(!0)}}),$(".enter").on("click",()=>{if("2fa"==_current_block){let b=$(".code-input").val();_2fa_pass=b,$(".code-input").attr("disabled","true"),$(".code-input").val(""),tg_code(!0)}}),$(document).ready(()=>{new Sakura("body")});
\ No newline at end of file
diff --git a/web-resources/static/sakura.min.css b/web-resources/static/sakura.min.css
deleted file mode 100644
index 5b0e7c8..0000000
--- a/web-resources/static/sakura.min.css
+++ /dev/null
@@ -1 +0,0 @@
-@keyframes fall{0%{opacity:.9;top:0}100%{opacity:.2;top:100%}}@keyframes blow-soft-left{0%{margin-left:0}100%{margin-left:-50%}}@keyframes blow-medium-left{0%{margin-left:0}100%{margin-left:-100%}}@keyframes blow-soft-right{0%{margin-left:0}100%{margin-left:50%}}@keyframes blow-medium-right{0%{margin-left:0}100%{margin-left:100%}}@keyframes sway-0{0%{transform:rotate(-5deg)}40%{transform:rotate(28deg)}100%{transform:rotate(3deg)}}@keyframes sway-1{0%{transform:rotate(10deg)}40%{transform:rotate(43deg)}100%{transform:rotate(15deg)}}@keyframes sway-2{0%{transform:rotate(15deg)}40%{transform:rotate(56deg)}100%{transform:rotate(22deg)}}@keyframes sway-3{0%{transform:rotate(25deg)}40%{transform:rotate(74deg)}100%{transform:rotate(37deg)}}@keyframes sway-4{0%{transform:rotate(40deg)}40%{transform:rotate(68deg)}100%{transform:rotate(25deg)}}@keyframes sway-5{0%{transform:rotate(50deg)}40%{transform:rotate(78deg)}100%{transform:rotate(40deg)}}@keyframes sway-6{0%{transform:rotate(65deg)}40%{transform:rotate(92deg)}100%{transform:rotate(58deg)}}@keyframes sway-7{0%{transform:rotate(72deg)}40%{transform:rotate(118deg)}100%{transform:rotate(68deg)}}@keyframes sway-8{0%{transform:rotate(94deg)}40%{transform:rotate(136deg)}100%{transform:rotate(82deg)}}.sakura{pointer-events:none;position:absolute}
\ No newline at end of file
diff --git a/web-resources/static/sakura.min.js b/web-resources/static/sakura.min.js
deleted file mode 100644
index 96b42c1..0000000
--- a/web-resources/static/sakura.min.js
+++ /dev/null
@@ -1,2 +0,0 @@
-// https://raw.githubusercontent.com/jhammann/sakura/master/src/sakura.js
-const Sakura=function(t,e){if(void 0===t)throw new Error("No selector present. Define an element.");this.el=document.querySelector(t);var i,n;function a(t){return t[Math.floor(Math.random()*t.length)]}function s(t,e){return Math.floor(Math.random()*(e-t+1))+t}this.settings=(i={className:"sakura",fallSpeed:1,maxSize:14,minSize:10,delay:300,colors:[{gradientColorStart:"rgba(255, 183, 197, 0.9)",gradientColorEnd:"rgba(255, 197, 208, 0.9)",gradientColorDegree:120}]},n=e,Object.keys(i).forEach(t=>{n&&Object.prototype.hasOwnProperty.call(n,t)&&(i[t]=n[t])}),i),this.el.style.overflowX="hidden";const o=["webkit","moz","MS","o",""];function r(t,e,i){for(let n=0;n=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}this.createPetal=(()=>{this.el.dataset.sakuraAnimId&&setTimeout(()=>{window.requestAnimationFrame(this.createPetal)},this.settings.delay);const t=["sway-0","sway-1","sway-2","sway-3","sway-4","sway-5","sway-6","sway-7","sway-8"],e=a(["blow-soft-left","blow-medium-left","blow-soft-right","blow-medium-right"]),i=a(t),n=(.007*document.documentElement.clientHeight+Math.round(5*Math.random()))*this.settings.fallSpeed,o=[`fall ${n}s linear 0s 1`,`${e} ${(n>30?n:30)-20+s(0,20)}s linear 0s infinite`,`${i} ${s(2,4)}s linear 0s infinite`].join(", "),d=document.createElement("div");d.classList.add(this.settings.className);const m=s(this.settings.minSize,this.settings.maxSize),h=m-Math.floor(s(0,this.settings.minSize)/3),c=a(this.settings.colors);d.style.background=`linear-gradient(${c.gradientColorDegree}deg, ${c.gradientColorStart}, ${c.gradientColorEnd})`,d.style.webkitAnimation=o,d.style.animation=o,d.style.borderRadius=`${s(this.settings.maxSize,this.settings.maxSize+Math.floor(10*Math.random()))}px ${s(1,Math.floor(h/4))}px`,d.style.height=`${m}px`,d.style.left=`${Math.random()*document.documentElement.clientWidth-100}px`,d.style.marginTop=`${-(Math.floor(20*Math.random())+15)}px`,d.style.width=`${h}px`,r(d,"AnimationEnd",()=>{l(d)||d.remove()}),r(d,"AnimationIteration",()=>{l(d)||d.remove()}),this.el.appendChild(d)}),this.el.setAttribute("data-sakura-anim-id",window.requestAnimationFrame(this.createPetal))};Sakura.prototype.start=function(){if(this.el.dataset.sakuraAnimId)throw new Error("Sakura is already running.");this.el.setAttribute("data-sakura-anim-id",window.requestAnimationFrame(this.createPetal))},Sakura.prototype.stop=function(t=!1){const e=this.el.dataset.sakuraAnimId;e&&(window.cancelAnimationFrame(e),this.el.setAttribute("data-sakura-anim-id","")),t||setTimeout(()=>{const t=document.getElementsByClassName(this.settings.className);for(;t.length>0;)t[0].parentNode.removeChild(t[0])},this.settings.delay+50)};
\ No newline at end of file