\n\t\tand\n\t\t \n\t\t| \n\t\t',r=c(),b=a("div"),g=a("label"),g.textContent="🚏",h=c(),v=a("input"),$=c(),w=a("div"),k=a("label"),k.textContent="🪐",x=c(),_=a("input"),F=c(),C=a("div"),Y=a("label"),Y.textContent="⚡",S=c(),T=a("input"),M=c(),A=a("div"),B=a("label"),B.textContent="Step distribution frequencies",L=c(),N=a("input"),q=c(),j=a("div"),R=u("SUBMIT"),V=c(),U=a("div"),W=a("span"),f(o,"id","madewith"),f(o,"class","svelte-10lgu2u"),f(g,"for","energy"),f(g,"class","svelte-10lgu2u"),f(v,"id","station"),f(v,"class",y="station input "+(t[5]?"":"invalid")+" svelte-10lgu2u"),f(v,"type","number"),f(v,"placeholder","Station"),f(v,"title","Your current station: value between 0 to 65"),f(b,"class","input-wrapper svelte-10lgu2u"),f(k,"for","energy"),f(k,"class","svelte-10lgu2u"),f(_,"id","planet"),f(_,"class",E="input "+(t[6]?"":"invalid")+" svelte-10lgu2u"),f(_,"type","number"),f(_,"placeholder","Planet"),f(_,"title","Planet you wish to reach: value between 1 to 3"),f(w,"class","input-wrapper svelte-10lgu2u"),f(Y,"for","energy"),f(Y,"class","svelte-10lgu2u"),f(T,"id","energy"),f(T,"class",O="energy input "+(t[7]?"":"invalid")+" svelte-10lgu2u"),f(T,"type","number"),f(T,"placeholder","Energy"),f(T,"title","Energy you currently have: value greater than 0"),f(C,"class","input-wrapper svelte-10lgu2u"),f(B,"for","pd"),f(B,"class","pd-label svelte-10lgu2u"),N.value=z,f(N,"id","pd"),f(N,"class",P="pd input "+(t[8]?"":"invalid")+" svelte-10lgu2u"),f(N,"title",t[11]),f(j,"class",I="pd-submit "+(t[10]&&t[9]?"":"hidden")+" svelte-10lgu2u"),f(j,"title","Only submit if these are the values you OBSERVED while playing and not hypothetical values"),f(A,"class","pd-wrapper svelte-10lgu2u"),f(U,"class",D="result "+(t[9]?"":"hidden")+" svelte-10lgu2u"),f(n,"class","container svelte-10lgu2u")},m(e,i){!function(e,t,n){e.insertBefore(t,n||null)}(e,n,i),s(n,o),s(n,r),s(n,b),s(b,g),s(b,h),s(b,v),m(v,t[0]),s(n,$),s(n,w),s(w,k),s(w,x),s(w,_),m(_,t[1]),s(n,F),s(n,C),s(C,Y),s(C,S),s(C,T),m(T,t[2]),s(n,M),s(n,A),s(A,B),s(A,L),s(A,N),s(A,q),s(A,j),s(j,R),s(n,V),s(n,U),s(U,W),W.innerHTML=t[4],G||(J=[d(v,"input",t[14]),d(v,"input",t[15]),d(_,"input",t[16]),d(_,"input",t[17]),d(T,"input",t[18]),d(T,"input",t[19]),d(N,"input",t[20]),d(j,"click",H)],G=!0)},p(e,[t]){32&t&&y!==(y="station input "+(e[5]?"":"invalid")+" svelte-10lgu2u")&&f(v,"class",y),1&t&&p(v.value)!==e[0]&&m(v,e[0]),64&t&&E!==(E="input "+(e[6]?"":"invalid")+" svelte-10lgu2u")&&f(_,"class",E),2&t&&p(_.value)!==e[1]&&m(_,e[1]),128&t&&O!==(O="energy input "+(e[7]?"":"invalid")+" svelte-10lgu2u")&&f(T,"class",O),4&t&&p(T.value)!==e[2]&&m(T,e[2]),256&t&&P!==(P="pd input "+(e[8]?"":"invalid")+" svelte-10lgu2u")&&f(N,"class",P),2048&t&&f(N,"title",e[11]),1536&t&&I!==(I="pd-submit "+(e[10]&&e[9]?"":"hidden")+" svelte-10lgu2u")&&f(j,"class",I),16&t&&(W.innerHTML=e[4]),512&t&&D!==(D="result "+(e[9]?"":"hidden")+" svelte-10lgu2u")&&f(U,"class",D)},i:e,o:e,d(e){e&&l(n),G=!1,i(J)}}}const z="73,29,19";function H(){confirm("Note you don't need to submit to calculate probability; it should already be visible. This button is there if you wish to send your own OBSERVATIONS of step distribution frequencies to better approximate probability for everyone. Only continue if you understand.")&&(alert("This will open a new forum page where you can send me PM with your observed frequencies."),open("https://en.tankiforum.com/messenger/compose/?to=596262"))}function R(){const e=new URLSearchParams(window.location.search);["station","planet","energy","pd"].forEach(((t,n)=>{let i=document.getElementById(t);const o=e.get(t);null!==o&&(i.value=o),i.dispatchEvent(new Event("input"))})),null===e.get("nobg")&&(document.body.style.background="radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%)")}function I(e,t,n){let i=null,o=null,r=null,s=null,l="",a=!1,u=!1,c=!1,d=!0,f=!1,m=!1,b="";function g(e){switch(e){case"station":n(5,a=null!=i&&0<=i&&i<=65);break;case"planet":n(6,u=1<=o&&o<=3);break;case"energy":n(7,c=8<=r);break;case"pd":n(8,d=3===s.length&&s.reduce(((e,t)=>e&&t>=0),!0))}n(9,f=a&&u&&c&&d)}let h=null;function v(){clearTimeout(h),f&&(n(4,l="···"),h=setTimeout((()=>{const e=B(function(e){switch(e){case 1:return 22;case 2:return 43;case 3:return 65}}(o)-i,Math.floor(r/8),s),t=e<1e-4?(100*e).toPrecision(2):(100*e).toFixed(2);let a=function(e){const t='Assuming a football field sized meteor strikes earth once every 2000 years and using poisson distribution';return 0${(15876189252e-24/e).toFixed(1)} times more likely to witness a meteor strike in any given milli-second! ${t}`:1e-16${(1585487297e-20/e).toFixed(1)} times more likely to witness a meteor strike in any given second! ${t}`:1e-12${(9.5129371047e-10/e).toFixed(1)} times more likely to witness a meteor strike in any given minute! ${t}`:1e-10${(5.7077623961e-8/e).toFixed(1)} times more likely to witness a meteor strike in any given hour! ${t}`:1e-8${(136986207544e-17/e).toFixed(1)} times more likely to witness a meteor strike in any given day! ${t}`:5e-7${(.000499875020831/e).toFixed(1)} times more likely to witness a meteor strike in any given year! ${t}`:2e-4${(.006045949214026602/e).toFixed(1)} times more likely to get a legendary item in containers!`:.003${(L/e).toFixed(1)} times more likely to get an epic item in containers!`:L/2${(N/e).toFixed(1)} times more likely to get a rare item in containers!`:N/2${(P/e).toFixed(1)} times more likely to get an uncommon item in containers!`:P/2${(q/e).toFixed(1)} times more likely to get a common item in containers!`:""}(e);a&&(a=`${a}`),n(4,l=`You have ${t}% chance of reaching 🪐 ${o} with ${r} ⚡.${a}`)}),1e3))}setTimeout(R);return[i,o,r,s,l,a,u,c,d,f,m,b,g,v,function(){i=p(this.value),n(0,i)},()=>{g("station"),v()},function(){o=p(this.value),n(1,o)},()=>{g("planet"),v()},function(){r=p(this.value),n(2,r)},()=>{g("energy"),v()},e=>{n(3,s=e.target.value.split(",").map((e=>parseFloat(e)))),n(10,m=e.target.value!==z),n(11,b=`Current value means ON AVERAGE for every ${s[0]} steps forward you go 2 steps forward ${s[1]} times and 2 steps backward ${s[2]} times`),g("pd"),v()}]}return new class extends class{$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}{constructor(e){super(),T(this,e,I,j,r,{})}}({target:document.body})}();