`:"")+o,b.classList.remove("moving"),b.offsetWidth,b.classList.add("moving"),h.innerText=z,h.classList.remove("updated"),h.offsetWidth,h.classList.add("updated"),i=d&&(++i,et())}}(t.type,e),await V(1e3),function(){for(var t=0;t=0&&(M[t][e]=null,document.querySelector(`.tile[data-x="${t}"][data-y="${e}"]`).remove())}(),function(){for(var t=0;t0&&null===M[t][a-1];){var n=document.querySelector(`.tile[data-x="${t}"][data-y="${a}"]`);G({tile:n,x:t,y:a-1}),M[t][a-1]=M[t][a],M[t][a]=null,n.setAttribute("data-y",a-1),--a}}(),await V(300),!0)}function et(){v.innerHTML="";for(var t=i;t>=0;--t){var e=N(t);v.append(e)}}function at(){var t=!1;if(!D&&!j&&!$){var e=Date.now();(!A||e-A>=H)&&(A=e,S?d.x<=0||null!==M[d.x-1][d.y]||(d.x-=1,t=!0):C&&(d.x+1>=s||null!==M[d.x+1][d.y]||(d.x+=1,t=!0))),(!T||e-T>=(q?W:O))&&(T=e,d.y-=1,t=!0,q?d.tile.classList.add("speed"):d.tile.classList.remove("speed")),t&&(K(),Q())}$||requestAnimationFrame(at)}"ontouchstart"in document.documentElement||document.querySelectorAll(".touch-control").forEach(t=>t.style.display="none"),B(),w=document.monetization&&"started"===document.monetization.state,document.body.classList.add(w?"subscriber":"not-subscriber"),w||(g.style.display="none"),Z(),U()}();