console.log(document.querySelectorAll("*").length);const hamburger=document.querySelector("#hamburger"),closeNavHam=document.querySelector("#close-nav-ham"),appscmsToolbar=document.querySelector(".appscms-toolbar"),appscmsToolbarListItems=document.querySelectorAll(".appscms-toolbar-list-item-span");closeNavHam.addEventListener("click",(()=>{"1"===hamburger.dataset.open&&(hamburger.dataset.open="0",appscmsToolbar.style.right="-272px",appscmsToolbar.style.display="none",hamburger.innerHTML=' <svg\n        style="font-size:25px"\n          stroke="currentColor"\n          fill="currentColor"\n          stroke-width="0"\n          viewBox="0 0 512 512"\n          aria-hidden="true"\n          focusable="false"\n          height="50px"\n          width="1em"\n          xmlns="http://www.w3.org/2000/svg"\n        >\n          <path\n            fill="none"\n            stroke-linecap="round"\n            stroke-miterlimit="10"\n            stroke-width="48"\n            d="M88 152h336M88 256h336M88 360h336"\n          ></path>\n        </svg>')})),hamburger.addEventListener("click",(()=>{"1"===hamburger.dataset.open?(hamburger.dataset.open="0",appscmsToolbar.style.right="-272px",appscmsToolbar.style.display="none",hamburger.innerHTML=' <svg\n        style="font-size:25px"\n          stroke="currentColor"\n          fill="currentColor"\n          stroke-width="0"\n          viewBox="0 0 512 512"\n          aria-hidden="true"\n          focusable="false"\n          height="50px"\n          width="1em"\n          xmlns="http://www.w3.org/2000/svg"\n        >\n          <path\n            fill="none"\n            stroke-linecap="round"\n            stroke-miterlimit="10"\n            stroke-width="48"\n            d="M88 152h336M88 256h336M88 360h336"\n          ></path>\n        </svg>'):(hamburger.dataset.open="1",appscmsToolbar.style.right="0px",appscmsToolbar.style.display="block",hamburger.innerHTML='<svg  height="50px"\n        width="1em"  style="font-size:25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g clip-path="url(#clip0_429_11083)"> <path d="M7 7.00006L17 17.0001M7 17.0001L17 7.00006" stroke="#ffffff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path> </g> <defs> <clipPath id="clip0_429_11083"> <rect width="24" height="24" fill="white"></rect> </clipPath> </defs> </g></svg>')})),Array.from(appscmsToolbarListItems).map((e=>{e.addEventListener("click",(t=>{t.preventDefault();var n=window.getComputedStyle(e.nextElementSibling).getPropertyValue("max-height");console.log(n),n&&"0px"!==n?(e.nextElementSibling.style.maxHeight="0",e.nextElementSibling.style.opacity="0",e.nextElementSibling.style.height="0"):(e.nextElementSibling.style.maxHeight=e.nextElementSibling.scrollHeight+"px",e.nextElementSibling.style.opacity="1",e.nextElementSibling.style.height="auto")}))}));const auto_val_adding=()=>{var e=window.location.href.replace(/^.*\//,"").split("-");document.querySelector("#flip_input").value=e[1]};auto_val_adding();var url=window.location.href,coin_div_height=window.innerHeight-100;let sound=new Audio("../coinflip.mp3");function t_timer(e,t){var n=document.querySelector(".error_msg");n.style.visibility="visible",n.innerHTML=e,setTimeout((function(){flip_process(url),n.style.visibility="hidden"}),t)}function gtag(){dataLayer.push(arguments)}function flip_process(e){window.location.href="#";var t=document.querySelector("#flip_input").value;if(""==t||null==t)document.querySelector(".error_msg").style.visibility="visible",document.querySelector(".error_msg").innerHTML="Enter a value",setTimeout((function(){document.querySelector(".error_msg").style.visibility="hidden"}),3e3);else{document.querySelector(".options_div").style.visibility="visible";var n=document.querySelector(".coin_div");n.innerHTML="";for(let e=0;e<parseInt(t);e++)n.innerHTML=n.innerHTML+'<div class="coin"><div class="coin_inner"><p>$</p></div> </div>';coin_toss()}gtag("event","page_view",{page_location:window.location.pathname+location.search})}function coin_toss(){document.querySelector(".coin_div").style.borderTop="2px solid rgba(220,220,220)",document.querySelector(".coin_div").style.borderBottom="2px solid rgba(220,220,220)",document.querySelector(".options_div").innerHTML='<button class="reset" href="" onclick="location.reload()">Reset</button><button class="flip_again">Flip again</button> <div class="result" id="heads_div"> <div>Heads&nbsp;&nbsp;:&nbsp;&nbsp;<span id="head_prob">0</span></div> <br /> </div> <div class="result" id="tails_div"> <div>Tails&nbsp;&nbsp;:&nbsp;&nbsp;<span id="tail_prob">0</span></div> </div>',document.querySelector(".flip_again").onclick=function(){coin_toss()};var e=[],t=[],n=document.querySelectorAll(".coin");for(let i=0;i<n.length;i++){Math.floor(7*Math.random())<3?(n[i].setAttribute("id","H"),e.push("H")):(n[i].setAttribute("id","T"),t.push("T")),n[i].setAttribute("class","coin fliping")}sound.play(),setTimeout((function(){for(let e=0;e<n.length;e++)n[e].setAttribute("class","coin"),n[e].querySelector(".coin_inner p").innerHTML=n[e].id,sound.pause(),"H"==n[e].id?(n[e].querySelector(".coin_inner p").style.fontSize="45px",n[e].querySelector(".coin_inner p").style.top="6px",n[e].querySelector(".coin_inner p").style.left="23px"):(n[e].querySelector(".coin_inner p").style.fontSize="45px",n[e].querySelector(".coin_inner p").style.top="6px",n[e].querySelector(".coin_inner p").style.left="28px");document.querySelector("#head_prob").innerHTML=e.length,document.querySelector("#tail_prob").innerHTML=t.length}),1220)}document.querySelector("#start_button").onclick=function(){var e=document.querySelector("#flip_input");parseInt(e.value)>=300&&parseInt(e.value)<=500?t_timer("Loading....",3e3):parseInt(e.value)>500?t_timer("Loading....",5e3):flip_process(url)},window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","UA-179965937-24");