(()=>{var m=3.36;function g(t){let a=t*m,n=new Intl.NumberFormat(navigator.language||"en-US",{style:"currency",currency:"USD"}).format(a),o=document.getElementById("estimate-result");o.innerHTML=n}function h(t,a){let n=null;return function(o){let i=this;clearTimeout(n),n=setTimeout(()=>{t.apply(i,o)},a)}}function p(){let t=document.getElementById("navbar");window.scrollY>0?t.classList.add("sticky"):t.classList.remove("sticky")}var y={en:"English",zh:"\u7B80\u4F53\u4E2D\u6587",zh_tw:"\u7E41\u4F53\u4E2D\u6587",ja:"\u65E5\u672C\u8A9E"};document.addEventListener("scroll",function(){h(p,100)()});document.addEventListener("DOMContentLoaded",function(){if(location.search&&location.search.indexOf("hide_nav")!==-1&&(document.getElementById("navbar").style.display="none",document.querySelector(".footer").style.display="none"),location.pathname==="/"||location.pathname==="/index.html"){document.querySelectorAll(".estimate-button").forEach(function(e){e.addEventListener("click",function(){let u=e.getAttribute("data-followers");g(u)})});let o=document.getElementById("menu-trigger"),i=document.getElementById("navbar");o.addEventListener("click",function(){i.classList.toggle("expanded")});let d=document.getElementById("language-switch");document.querySelector(".language-switch-trigger").addEventListener("click",function(){d.classList.toggle("expanded")});let s=location.pathname.split("/")[1]||"en",r=y[s]||"English",c=document.querySelector(`.language-switch-menu-item[data-lang="${s}"]`);c&&(c.classList.add("active"),s=c.getAttribute("data-lang"),r=c.getAttribute("data-lang-name")),document.querySelector(".language-switch-trigger-label").innerText=r;let l=document.getElementById("cookies-bar");document.getElementById("cookies-bar-accept-btn").addEventListener("click",function(){localStorage.setItem("cookies-bar-accepted","1"),l.classList.remove("show")}),localStorage.getItem("cookies-bar-accepted")!=="1"&&l.classList.add("show"),fetch("https://api.quail.ink/auxilia/proxy/discord?pathname=v9/invites/VRP27AhMKm&query=with_counts%3Dtrue%26with_expiration%3Dtrue",{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{document.getElementById("discord-online-count").innerText=`${e.approximate_presence_count}/${e.approximate_member_count}`}),fetch("https://api.quail.ink/probe/stat",{method:"GET",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{document.getElementById("probe-stat-users").innerText=e.data.users,document.getElementById("probe-stat-lists").innerText=e.data.lists,document.getElementById("probe-stat-posts").innerText=e.data.posts})}});})();