(function(t){function e(e){for(var i,s,o=e[0],u=e[1],l=e[2],h=0,f=[];h1&&void 0!==arguments[1]?arguments[1]:1e-10;if(!Number.isFinite(t))return t;if(0===t)return t;if(1===t)return.5671432904097838;e=t<10?0:Math.log(t)-Math.log(Math.log(t));for(var r=0;r<100;++r){if(n=(t*Math.exp(-e)+e*e)/(e+1),Math.abs(n-e)1&&void 0!==arguments[1]?arguments[1]:2,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(1,0,1);return n(t).tetrate(e,i)},l.iteratedexp=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(1,0,1);return n(t).iteratedexp(e,i)},l.iteratedlog=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return n(t).iteratedlog(e,i)},l.layeradd10=function(t,e){return n(t).layeradd10(e)},l.layeradd=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return n(t).layeradd(e,i)},l.slog=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return n(t).slog(e)},l.lambertw=function(t){return n(t).lambertw()},l.ssqrt=function(t){return n(t).ssqrt()},l.pentate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(1,0,1);return n(t).pentate(e,i)},l.affordGeometricSeries=function(t,e,i,r){return this.affordGeometricSeries_core(n(t),n(e),n(i),r)},l.sumGeometricSeries=function(t,e,i,r){return this.sumGeometricSeries_core(t,n(e),n(i),r)},l.affordArithmeticSeries=function(t,e,i,r){return this.affordArithmeticSeries_core(n(t),n(e),n(i),n(r))},l.sumArithmeticSeries=function(t,e,i,r){return this.sumArithmeticSeries_core(n(t),n(e),n(i),n(r))},l.efficiencyOfPurchase=function(t,e,i){return this.efficiencyOfPurchase_core(n(t),n(e),n(i))},l.randomDecimalForTesting=function(t){if(20*Math.random()<1)return r(0,0,0);var e=Math.random()>.5?1:-1;if(20*Math.random()<1)return r(e,0,1);var n=Math.floor(Math.random()*(t+1)),a=0===n?616*Math.random()-308:16*Math.random();Math.random()>.9&&(a=Math.trunc(a));var s=Math.pow(10,a);return Math.random()>.9&&(s=Math.trunc(s)),i(e,n,s)},l.affordGeometricSeries_core=function(t,e,n,i){var r=e.mul(n.pow(i));return l.floor(t.div(r).mul(n.sub(1)).add(1).log10().div(n.log10()))},l.sumGeometricSeries_core=function(t,e,n,i){return e.mul(n.pow(i)).mul(l.sub(1,n.pow(t))).div(l.sub(1,n))},l.affordArithmeticSeries_core=function(t,e,n,i){var r=e.add(i.mul(n)).sub(n.div(2)),a=r.pow(2);return r.neg().add(a.add(n.mul(t).mul(2)).sqrt()).div(n).floor()},l.sumArithmeticSeries_core=function(t,e,n,i){var r=e.add(i.mul(n));return t.div(2).mul(r.mul(2).plus(t.sub(1).mul(n)))},l.efficiencyOfPurchase_core=function(t,e,n){return t.div(e).add(t.div(n))},l.prototype.normalize=function(){if(0===this.sign||0===this.mag&&0===this.layer)return this.sign=0,this.mag=0,this.layer=0,this;if(0===this.layer&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),0===this.layer&&this.mag<1/9e15)return this.layer+=1,this.mag=Math.log10(this.mag),this;var e=Math.abs(this.mag),n=Math.sign(this.mag);if(e>=9e15)return this.layer+=1,this.mag=n*Math.log10(e),this;for(;e0;)this.layer-=1,0===this.layer?this.mag=Math.pow(10,this.mag):(this.mag=n*Math.pow(10,e),e=Math.abs(this.mag),n=Math.sign(this.mag));return 0===this.layer&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):0===this.mag&&(this.sign=0)),this},l.prototype.fromComponents=function(t,e,n){return this.sign=t,this.layer=e,this.mag=n,this.normalize(),this},l.prototype.fromComponents_noNormalize=function(t,e,n){return this.sign=t,this.layer=e,this.mag=n,this},l.prototype.fromMantissaExponent=function(t,e){return this.layer=1,this.sign=Math.sign(t),t=Math.abs(t),this.mag=e+Math.log10(t),this.normalize(),this},l.prototype.fromMantissaExponent_noNormalize=function(t,e){return this.fromMantissaExponent(t,e),this},l.prototype.fromDecimal=function(t){return this.sign=t.sign,this.layer=t.layer,this.mag=t.mag,this},l.prototype.fromNumber=function(t){return this.mag=Math.abs(t),this.sign=Math.sign(t),this.layer=0,this.normalize(),this},l.prototype.fromString=function(t){var e=(t=t.replace(",","")).split("^^^");if(2===e.length){var r=parseFloat(e[0]),a=parseFloat(e[1]),s=1;if(2===(c=e[1].split(";")).length&&(s=parseFloat(c[1]),isFinite(s)||(s=1)),isFinite(r)&&isFinite(a)){var u=l.pentate(r,a,s);return this.sign=u.sign,this.layer=u.layer,this.mag=u.mag,this}}var c,h=t.split("^^");if(2===h.length&&(r=parseFloat(h[0]),a=parseFloat(h[1]),2===(c=h[1].split(";")).length&&(s=parseFloat(c[1]),isFinite(s)||(s=1)),isFinite(r)&&isFinite(a)))return u=l.tetrate(r,a,s),this.sign=u.sign,this.layer=u.layer,this.mag=u.mag,this;var f,g=t.split("^");if(2===g.length){r=parseFloat(g[0]);var m=parseFloat(g[1]);if(isFinite(r)&&isFinite(m))return u=l.pow(r,m),this.sign=u.sign,this.layer=u.layer,this.mag=u.mag,this}if(2===(f=(t=t.trim().toLowerCase()).split("pt")).length&&(r=10,a=parseFloat(f[0]),f[1]=f[1].replace("(",""),f[1]=f[1].replace(")",""),s=parseFloat(f[1]),isFinite(s)||(s=1),isFinite(r)&&isFinite(a)))return u=l.tetrate(r,a,s),this.sign=u.sign,this.layer=u.layer,this.mag=u.mag,this;if(2===(f=t.split("p")).length&&(r=10,a=parseFloat(f[0]),f[1]=f[1].replace("(",""),f[1]=f[1].replace(")",""),s=parseFloat(f[1]),isFinite(s)||(s=1),isFinite(r)&&isFinite(a)))return u=l.tetrate(r,a,s),this.sign=u.sign,this.layer=u.layer,this.mag=u.mag,this;var d=t.split("e"),p=d.length-1;if(0===p){var y=parseFloat(t);if(isFinite(y))return this.fromNumber(y)}else if(1===p&&(y=parseFloat(t),isFinite(y)&&0!==y))return this.fromNumber(y);var v=t.split("e^");if(2===v.length){this.sign=1,"-"==v[0].charAt(0)&&(this.sign=-1);for(var b="",w=0;w=43&&_<=57||101===_))return this.layer=parseFloat(b),this.mag=parseFloat(v[1].substr(w+1)),this.normalize(),this;b+=v[1].charAt(w)}}if(p<1)return this.sign=0,this.layer=0,this.mag=0,this;var C=parseFloat(d[0]);if(0===C)return this.sign=0,this.layer=0,this.mag=0,this;if(m=parseFloat(d[d.length-1]),p>=2){var k=parseFloat(d[d.length-2]);isFinite(k)&&(m*=Math.sign(k),m+=o(k))}if(isFinite(C))if(1===p)this.sign=Math.sign(C),this.layer=1,this.mag=m+Math.log10(Math.abs(C));else{if(this.sign=Math.sign(C),this.layer=p,2===p)return u=l.mul(i(1,2,m),n(C)),this.sign=u.sign,this.layer=u.layer,this.mag=u.mag,this;this.mag=m}else this.sign="-"===d[0]?-1:1,this.layer=p,this.mag=m;return this.normalize(),this},l.prototype.fromValue=function(t){return s(t,l)?this.fromDecimal(t):"number"==typeof t?this.fromNumber(t):"string"==typeof t?this.fromString(t):(this.sign=0,this.layer=0,this.mag=0,this)},l.prototype.toNumber=function(){return Number.isFinite(this.layer)?0===this.layer?this.sign*this.mag:1===this.layer?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN},l.prototype.mantissaWithDecimalPlaces=function(t){return isNaN(this.m)?Number.NaN:0===this.m?0:a(this.m,t)},l.prototype.magnitudeWithDecimalPlaces=function(t){return isNaN(this.mag)?Number.NaN:0===this.mag?0:a(this.mag,t)},l.prototype.toString=function(){return 0===this.layer?this.mag<1e21&&this.mag>1e-7||0===this.mag?(this.sign*this.mag).toString():this.m+"e"+this.e:1===this.layer?this.m+"e"+this.e:this.layer<=5?(-1===this.sign?"-":"")+"e".repeat(this.layer)+this.mag:(-1===this.sign?"-":"")+"(e^"+this.layer+")"+this.mag},l.prototype.toExponential=function(t){return 0===this.layer?(this.sign*this.mag).toExponential(t):this.toStringWithDecimalPlaces(t)},l.prototype.toFixed=function(t){return 0===this.layer?(this.sign*this.mag).toFixed(t):this.toStringWithDecimalPlaces(t)},l.prototype.toPrecision=function(t){return this.e<=-7?this.toExponential(t-1):t>this.e?this.toFixed(t-this.exponent-1):this.toExponential(t-1)},l.prototype.valueOf=function(){return this.toString()},l.prototype.toJSON=function(){return this.toString()},l.prototype.toStringWithDecimalPlaces=function(t){return 0===this.layer?this.mag<1e21&&this.mag>1e-7||0===this.mag?(this.sign*this.mag).toFixed(t):a(this.m,t)+"e"+a(this.e,t):1===this.layer?a(this.m,t)+"e"+a(this.e,t):this.layer<=5?(-1===this.sign?"-":"")+"e".repeat(this.layer)+a(this.mag,t):(-1===this.sign?"-":"")+"(e^"+this.layer+")"+a(this.mag,t)},l.prototype.abs=function(){return r(0===this.sign?0:1,this.layer,this.mag)},l.prototype.neg=function(){return r(-this.sign,this.layer,this.mag)},l.prototype.negate=function(){return this.neg()},l.prototype.negated=function(){return this.neg()},l.prototype.sign=function(){return this.sign},l.prototype.sgn=function(){return this.sign},l.prototype.round=function(){return this.mag<0?l.dZero:0===this.layer?i(this.sign,0,Math.round(this.mag)):this},l.prototype.floor=function(){return this.mag<0?l.dZero:0===this.layer?i(this.sign,0,Math.floor(this.mag)):this},l.prototype.ceil=function(){return this.mag<0?l.dZero:0===this.layer?i(this.sign,0,Math.ceil(this.mag)):this},l.prototype.trunc=function(){return this.mag<0?l.dZero:0===this.layer?i(this.sign,0,Math.trunc(this.mag)):this},l.prototype.add=function(t){var e,a,s=n(t);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(s.layer))return s;if(0===this.sign)return s;if(0===s.sign)return this;if(this.sign===-s.sign&&this.layer===s.layer&&this.mag===s.mag)return r(0,0,0);if(this.layer>=2||s.layer>=2)return this.maxabs(s);if(l.cmpabs(this,s)>0?(e=this,a=s):(e=s,a=this),0===e.layer&&0===a.layer)return n(e.sign*e.mag+a.sign*a.mag);var o=e.layer*Math.sign(e.mag),u=a.layer*Math.sign(a.mag);if(o-u>=2)return e;if(0===o&&-1===u){if(Math.abs(a.mag-Math.log10(e.mag))>17)return e;var c=Math.pow(10,Math.log10(e.mag)-a.mag),h=a.sign+e.sign*c;return i(Math.sign(h),1,a.mag+Math.log10(Math.abs(h)))}return 1===o&&0===u?Math.abs(e.mag-Math.log10(a.mag))>17?e:(c=Math.pow(10,e.mag-Math.log10(a.mag)),h=a.sign+e.sign*c,i(Math.sign(h),1,Math.log10(a.mag)+Math.log10(Math.abs(h)))):Math.abs(e.mag-a.mag)>17?e:(c=Math.pow(10,e.mag-a.mag),h=a.sign+e.sign*c,i(Math.sign(h),1,a.mag+Math.log10(Math.abs(h))))},l.prototype.plus=function(t){return this.add(t)},l.prototype.sub=function(t){return this.add(n(t).neg())},l.prototype.subtract=function(t){return this.sub(t)},l.prototype.minus=function(t){return this.sub(t)},l.prototype.mul=function(t){var e,a,s=n(t);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(s.layer))return s;if(0===this.sign||0===s.sign)return r(0,0,0);if(this.layer===s.layer&&this.mag===-s.mag)return r(this.sign*s.sign,0,1);if(this.layer>s.layer||this.layer==s.layer&&Math.abs(this.mag)>Math.abs(s.mag)?(e=this,a=s):(e=s,a=this),0===e.layer&&0===a.layer)return n(e.sign*a.sign*e.mag*a.mag);if(e.layer>=3||e.layer-a.layer>=2)return i(e.sign*a.sign,e.layer,e.mag);if(1===e.layer&&0===a.layer)return i(e.sign*a.sign,1,e.mag+Math.log10(a.mag));if(1===e.layer&&1===a.layer)return i(e.sign*a.sign,1,e.mag+a.mag);if(2===e.layer&&1===a.layer){var o=i(Math.sign(e.mag),e.layer-1,Math.abs(e.mag)).add(i(Math.sign(a.mag),a.layer-1,Math.abs(a.mag)));return i(e.sign*a.sign,o.layer+1,o.sign*o.mag)}if(2===e.layer&&2===a.layer)return o=i(Math.sign(e.mag),e.layer-1,Math.abs(e.mag)).add(i(Math.sign(a.mag),a.layer-1,Math.abs(a.mag))),i(e.sign*a.sign,o.layer+1,o.sign*o.mag);throw Error("Bad arguments to mul: "+this+", "+t)},l.prototype.multiply=function(t){return this.mul(t)},l.prototype.times=function(t){return this.mul(t)},l.prototype.div=function(t){var e=n(t);return this.mul(e.recip())},l.prototype.divide=function(t){return this.div(t)},l.prototype.divideBy=function(t){return this.div(t)},l.prototype.dividedBy=function(t){return this.div(t)},l.prototype.recip=function(){return 0===this.mag?l.dNaN:0===this.layer?i(this.sign,0,1/this.mag):i(this.sign,this.layer,-this.mag)},l.prototype.reciprocal=function(){return this.recip()},l.prototype.reciprocate=function(){return this.recip()},l.prototype.cmp=function(t){var e=n(t);return this.sign>e.sign?1:this.sign0?this.layer:-this.layer,r=e.mag>0?e.layer:-e.layer;return i>r?1:ie.mag?1:this.mag0?e:this},l.prototype.clamp=function(t,e){return this.max(t).min(e)},l.prototype.clampMin=function(t){return this.max(t)},l.prototype.clampMax=function(t){return this.min(t)},l.prototype.cmp_tolerance=function(t,e){var i=n(t);return this.eq_tolerance(i,e)?0:this.cmp(i)},l.prototype.compare_tolerance=function(t,e){return this.cmp_tolerance(t,e)},l.prototype.eq_tolerance=function(t,e){var i=n(t);if(null==e&&(e=1e-7),this.sign!==i.sign)return!1;if(Math.abs(this.layer-i.layer)>1)return!1;var r=this.mag,a=i.mag;return this.layer>i.layer&&(a=o(a)),this.layer0?i(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):i(1,0,Math.log10(this.mag))},l.prototype.log10=function(){return this.sign<=0?l.dNaN:this.layer>0?i(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):i(this.sign,0,Math.log10(this.mag))},l.prototype.log=function(t){return t=n(t),this.sign<=0||t.sign<=0||1===t.sign&&0===t.layer&&1===t.mag?l.dNaN:0===this.layer&&0===t.layer?i(this.sign,0,Math.log(this.mag)/Math.log(t.mag)):l.div(this.log10(),t.log10())},l.prototype.log2=function(){return this.sign<=0?l.dNaN:0===this.layer?i(this.sign,0,Math.log2(this.mag)):1===this.layer?i(Math.sign(this.mag),0,3.321928094887362*Math.abs(this.mag)):2===this.layer?i(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):i(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))},l.prototype.ln=function(){return this.sign<=0?l.dNaN:0===this.layer?i(this.sign,0,Math.log(this.mag)):1===this.layer?i(Math.sign(this.mag),0,2.302585092994046*Math.abs(this.mag)):2===this.layer?i(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):i(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))},l.prototype.logarithm=function(t){return this.log(t)},l.prototype.pow=function(t){var e=this,i=n(t);if(0===e.sign)return e;if(1===e.sign&&0===e.layer&&1===e.mag)return e;if(0===i.sign)return r(1,0,1);if(1===i.sign&&0===i.layer&&1===i.mag)return e;var a=e.absLog10().mul(i).pow10();return-1===this.sign&&i.toNumber()%2==1?a.neg():a},l.prototype.pow10=function(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return l.dNaN;var t=this;if(0===t.layer){var e=Math.pow(10,t.sign*t.mag);if(Number.isFinite(e)&&Math.abs(e)>.1)return i(1,0,e);if(0===t.sign)return l.dOne;t=r(t.sign,t.layer+1,Math.log10(t.mag))}return t.sign>0&&t.mag>0?i(t.sign,t.layer+1,t.mag):t.sign<0&&t.mag>0?i(-t.sign,t.layer+1,-t.mag):l.dOne},l.prototype.pow_base=function(t){return n(t).pow(this)},l.prototype.root=function(t){var e=n(t);return this.pow(e.recip())},l.prototype.factorial=function(){return this.mag<0?this.toNumber().add(1).gamma():0===this.layer?this.add(1).gamma():1===this.layer?l.exp(l.mul(this,l.ln(this).sub(1))):l.exp(this)},l.prototype.gamma=function(){if(this.mag<0)return this.recip();if(0===this.layer){if(this.lt(r(1,0,24)))return n(function(t){if(!isFinite(t))return t;if(t<-50)return t===Math.trunc(t)?Number.NEGATIVE_INFINITY:0;for(var e=1;t<10;)e*=t,++t;var n=.9189385332046727;n+=(.5+(t-=1))*Math.log(t),n-=t;var i=t*t,r=t;return n+=1/(12*r),n+=1/(360*(r*=i)),n+=1/(1260*(r*=i)),n+=1/(1680*(r*=i)),n+=1/(1188*(r*=i)),n+=691/(360360*(r*=i)),n+=7/(1092*(r*=i)),n+=3617/(122400*(r*=i)),Math.exp(n)/e}(this.sign*this.mag));var t=this.mag-1,e=.9189385332046727;e+=(t+.5)*Math.log(t);var i=t*t,a=t,s=12*a,o=1/s,u=(e-=t)+o;if(u===e)return l.exp(e);if((u=(e=u)-(o=1/(s=360*(a*=i))))===e)return l.exp(e);e=u;var c=1/(s=1260*(a*=i));return e+=c,e-=c=1/(s=1680*(a*=i)),l.exp(e)}return 1===this.layer?l.exp(l.mul(this,l.ln(this).sub(1))):l.exp(this)},l.prototype.lngamma=function(){return this.gamma().ln()},l.prototype.exp=function(){return this.mag<0?l.dOne:0===this.layer&&this.mag<=709.7?n(Math.exp(this.sign*this.mag)):0===this.layer?i(1,1,this.sign*Math.log10(Math.E)*this.mag):1===this.layer?i(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):i(1,this.layer+1,this.sign*this.mag)},l.prototype.sqr=function(){return this.pow(2)},l.prototype.sqrt=function(){if(0===this.layer)return n(Math.sqrt(this.sign*this.mag));if(1===this.layer)return i(1,2,Math.log10(this.mag)-.3010299956639812);var t=l.div(r(this.sign,this.layer-1,this.mag),r(1,0,2));return t.layer+=1,t.normalize(),t},l.prototype.cube=function(){return this.pow(3)},l.prototype.cbrt=function(){return this.pow(1/3)},l.prototype.tetrate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(1,0,1);if(t===Number.POSITIVE_INFINITY){var i=l.ln(this).neg();return i.lambertw().div(i)}if(t<0)return l.iteratedlog(e,this,-t);e=n(e);var a=t-(t=Math.trunc(t));0!==a&&(e.eq(l.dOne)?(++t,e=new l(a)):e=this.eq(10)?e.layeradd10(a):e.layeradd(a,this));for(var s=0;s3)return r(e.sign,e.layer+(t-s-1),e.mag);if(s>100)return e}return e},l.prototype.iteratedexp=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(1,0,1);return this.tetrate(t,e)},l.prototype.iteratedlog=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e<0)return l.tetrate(t,-e,this);t=n(t);var i=n(this),r=e-(e=Math.trunc(e));if(i.layer-t.layer>3){var a=Math.min(e,i.layer-t.layer-3);e-=a,i.layer-=a}for(var s=0;s100)return i}return r>0&&r<1&&(i=t.eq(10)?i.layeradd10(-r):i.layeradd(-r,t)),i},l.prototype.slog=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;if(this.mag<0)return l.dNegOne;t=n(t);var e=0,i=n(this);if(i.layer-t.layer>3){var r=i.layer-t.layer-3;e+=r,i.layer-=r}for(var a=0;a<100;++a)if(i.lt(l.dZero))i=l.pow(t,i),e-=1;else{if(i.lte(l.dOne))return n(e+i.toNumber()-1);e+=1,i=l.log(i,t)}return n(e)},l.prototype.layeradd10=function(t){t=l.fromValue_noAlloc(t).toNumber();var e,i=n(this);if(t>=1&&(t-=e=Math.trunc(t),i.layer+=e),t<=-1&&(t-=e=Math.trunc(t),i.layer+=e,i.layer<0))for(var r=0;r<100;++r){if(i.layer++,i.mag=Math.log10(i.mag),!isFinite(i.mag))return i;if(i.layer>=0)break}if(t>0){for(var a=0;Number.isFinite(i.mag)&&i.mag<10;)i.mag=Math.pow(10,i.mag),++a;for(i.mag>1e10&&(i.mag=Math.log10(i.mag),i.layer++),(s=Math.log10(Math.log(1e10)/Math.log(i.mag),10))0;)i.mag=Math.log10(i.mag),--a}else if(t<0){for(a=0;Number.isFinite(i.mag)&&i.mag<10;)i.mag=Math.pow(10,i.mag),++a;var s;for(i.mag>1e10&&(i.mag=Math.log10(i.mag),i.layer++),(s=Math.log10(1/Math.log10(i.mag)))>t&&(i.mag=1e10,i.layer--,t-=s),i.mag=Math.pow(i.mag,Math.pow(10,t));a>0;)i.mag=Math.log10(i.mag),--a}for(;i.layer<0;)i.layer++,i.mag=Math.log10(i.mag);return i.normalize(),i},l.prototype.layeradd=function(t,e){var n=this.slog(e).toNumber()+t;return n>=0?l.tetrate(e,n):Number.isFinite(n)?n>=-1?l.log(l.tetrate(e,n+1),e):void l.log(l.log(l.tetrate(e,n+2),e),e):l.dNaN},l.prototype.lambertw=function(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");return this.mag<0?n(u(this.toNumber())):0===this.layer?n(u(this.sign*this.mag)):1===this.layer||2===this.layer?c(this):this.layer>=3?r(this.sign,this.layer-1,this.mag):void 0};var c=function(t){var e,n,i,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e-10;if(!Number.isFinite(t.mag))return t;if(0===t)return t;if(1===t)return.5671432904097838;l.abs(t),e=l.ln(t);for(var s=0;s<100;++s){if(n=l.exp(-e),i=e.sub(t.mul(n)),r=e.sub(i.div(e.add(1).sub(e.add(2).mul(i).div(l.mul(2,e).add(2))))),l.abs(r.sub(e)).lt(l.abs(r).mul(a)))return r;e=r}throw Error("Iteration failed to converge: "+t)};return l.prototype.ssqrt=function(){if(1==this.sign&&this.layer>=3)return r(this.sign,this.layer-1,this.mag);var t=this.ln();return t.div(t.lambertw())},l.prototype.pentate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(1,0,1);e=n(e);var i=t-(t=Math.trunc(t));0!==i&&(e.eq(l.dOne)?(++t,e=new l(i)):e=this.eq(10)?e.layeradd10(i):e.layeradd(i,this));for(var a=0;a10)return e}return e},l.prototype.sin=function(){return this.mag<0?this:0===this.layer?n(Math.sin(this.sign*this.mag)):r(0,0,0)},l.prototype.cos=function(){return this.mag<0?l.dOne:0===this.layer?n(Math.cos(this.sign*this.mag)):r(0,0,0)},l.prototype.tan=function(){return this.mag<0?this:0===this.layer?n(Math.tan(this.sign*this.mag)):r(0,0,0)},l.prototype.asin=function(){return this.mag<0?this:0===this.layer?n(Math.asin(this.sign*this.mag)):r(Number.NaN,Number.NaN,Number.NaN)},l.prototype.acos=function(){return this.mag<0?n(Math.acos(this.toNumber())):0===this.layer?n(Math.acos(this.sign*this.mag)):r(Number.NaN,Number.NaN,Number.NaN)},l.prototype.atan=function(){return this.mag<0?this:0===this.layer?n(Math.atan(this.sign*this.mag)):n(Math.atan(1/0*this.sign))},l.prototype.sinh=function(){return this.exp().sub(this.negate().exp()).div(2)},l.prototype.cosh=function(){return this.exp().add(this.negate().exp()).div(2)},l.prototype.tanh=function(){return this.sinh().div(this.cosh())},l.prototype.asinh=function(){return l.ln(this.add(this.sqr().add(1).sqrt()))},l.prototype.acosh=function(){return l.ln(this.add(this.sqr().sub(1).sqrt()))},l.prototype.atanh=function(){return this.abs().gte(1)?r(Number.NaN,Number.NaN,Number.NaN):l.ln(this.add(1).div(n(1).sub(this))).div(2)},l.prototype.ascensionPenalty=function(t){return 0===t?this:this.root(l.pow(10,t))},l.prototype.egg=function(){return this.add(9)},l.prototype.lessThanOrEqualTo=function(t){return this.cmp(t)<1},l.prototype.lessThan=function(t){return this.cmp(t)<0},l.prototype.greaterThanOrEqualTo=function(t){return this.cmp(t)>-1},l.prototype.greaterThan=function(t){return this.cmp(t)>0},l}();return l.dZero=r(0,0,0),l.dOne=r(1,0,1),l.dNegOne=r(-1,0,1),l.dTwo=r(1,0,2),l.dTen=r(1,0,10),l.dNaN=r(Number.NaN,Number.NaN,Number.NaN),l.dInf=r(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),l.dNegInf=r(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY),l.dNumberMax=i(1,0,Number.MAX_VALUE),l.dNumberMin=i(1,0,Number.MIN_VALUE),l}))},5894:function(t,e,n){t.exports=n.p+"img/discord.872a595c.png"},"5ad7":function(t,e,n){t.exports=n.p+"img/logo.76d0d8bf.png"},"665c":function(t,e,n){"use strict";n("b544")},6692:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAABVlJREFUeJztm1uIVVUYgL+zx5x0Zo4zZpldxiYltasVpYxjmFERQhAV0RWh7DL4Ug8DQRe7oUZNmmC99mBQYEVk+FAaRTeCgvJSk9GJmpysRmvOwaxxpod/n+ac3dp7r3/fzg764Idhz7/+yzp77b3W+tcukD6dwGLgfGA+cBowE2gHml2dI8Ah4CegBOwFPgM+BH7IIMZEKQA9wEZgHzAeU74GNgBLXNu5pQPoA74hftJBndGH3D25YTqwDiiTXuJeGQHWIp3eMBxgNTBMdol75Veg140lU+YBH8UIPGn5ADgj1YxrWAlUUkwmqpSBW9NLG5qATTlINEyeIYUh0Qy8loPkbOUVYHKSyW/PQVJaeTOJTmjiv/XLe2UrMYfDszlIIq70R01+ZQ6CT0pu9kvSb249D/gUmBrQQWPAFcBh4BzgKlcSe/j4cAQZ39uBXUCr+3fQOqGMLMb22ThwsJvkvGdoewLwKPCbRXutHAQeBmYY/NrE+z6GTppkMNYLLDJc9/K24doB4CHk2fEEsKrGaQX4EvgW2I8sfw+7/5uCrClOArqQO3CK+78x4HngQWTabWKnRczdwF2uLV+mYz+3vy7EIciy+G7gTHRP4yZkWPW6gYdxk2XMPxOyklxnaWgcWKpIKG2WYx/3Y35GOtAtaXtSSSUay7CP+3dgWrVh7W25CmhRODU9jBrF8QrdNiRXYKIDCsgDQsO5Sv00OVupf6f3Qg/619KO6PEmzjvo419ca2CjsvFfwCWppqRjGTCKLoenag1od28fTzefSKxFl8OeasNOZcMfmZik5IkWpK6gyWWWg2csWLCZiRlcnqgAzynbdDvIIkHDFqV+lryo1F/oIOUqW0rIXD6vDACDCv0FDlKrs+ULVTiNYZdCt8tBCpW2DCmDaQT7FbozHXR1tlFlMI1AE2OHw0SJ2oY8vv68BO1ieWl2kA0HW1qVwTQCTYxjDrp3+qnKYBpBp0K34iB7ALbMUQaTNQXgdIV+2UH33pyhdJA184GiQn/QAb5TOlmu1M+SS5X6JQf4StnoBqV+lmhjGwC4Bt0KagxYkEy8iXIe+k2RqwFOjtBwazY5qXgDfR6zqo33Rmh8ffo5WWNbF6iVujXD0xEMjAAXppqWHRcT7cjOk7VGuiMYGEfKW5elmFwYlyP7/FFi/1cpbSCioaNIb2Y5TS4idf+jEWPebTLa56O8Byl49hP8rDgAPIAUONOiE1gD/BIQh43cazI+DXNZ+1XqCyi3IePfz/goUopeA1wJnBgx2QKy9liBVJo/Rl7BcRIfR4q/vner39byW8ApNXoXhXSCV7YhFV9bjkFK3nGTNckjQY7bkRKyqeEg9YuhWywdVqjvPFu6gD8STn4IqQ0Gck+Agc+p30CxOUEWeCAhhBciJuont9s4dZDjL35G7q/RLSLndIOcrtDn/Q/XKpILk50ovjeYi/9ZgWHqy+jNyLjyPpnLwMvEO9I+NyAhjYwgQ0pF0PRytUG/CSlTLwXOQh5kcWkLiEEjkaft/T4Gh8lmY+RYH/8aWR8nAAe5jU2GS8DCOMYtmOrj21a2kMB3RpORg4kmB38ixdILfBxptqdMtPj4tZHXSWYYAtIJL4U4PIScLn0X+AT43r1uOotoS2uIz6BfPo5fIw7Rls1xfoViBH/rSfnzuhvRHafTVJ68aDpghAw3aeYgt7pNYJpSlZd2Sx870FW5E8FBjpuFHUvRnD30clyI7SFketvQL0qLyPHTg5iDjPMm8OuAYWT2GbqwyZI24D5kA6UaaIl4v84k5FBW1d5uZDMj90XaRcitGWUZ7GU2cAey+fk/SfM3fwVWkQmXJ1MAAAAASUVORK5CYII="},b544:function(t,e,n){},dc06:function(t,e,n){"use strict";n.r(e);var i,r=n("bab4"),a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{dark:t.darkMode}},[n("igt-notifications"),n("igt-sidebar",{attrs:{title:"Voidlings Sphere"}},[n("igt-sidebar-currency",{attrs:{currency:t.CurrencyType.Voidlings}}),n("igt-sidebar-currency",{attrs:{currency:t.CurrencyType.CombatBots,label:"Nanobots"}}),n("igt-sidebar-currency",{attrs:{currency:t.CurrencyType.VoidBatteries,label:"Void Batteries"}}),n("igt-tab",{attrs:{name:"Combat",selected:!0}},[n("igt-combat-feature")],1),n("igt-tab",{attrs:{name:"Factory",visible:t.factoryRequirement.isCompleted}},[n("igt-factory-feature")],1),n("igt-tab",{attrs:{name:"Wheel",visible:t.wheelRequirement.isCompleted}},[n("igt-wheel-feature")],1),n("igt-tab",{attrs:{name:"Accomplishments"}},[n("igt-key-items")],1),n("igt-tab",{attrs:{name:"Settings"}},[n("igt-settings")],1),t.showDevPanel?n("igt-sidebar-category",{attrs:{name:"Other"}}):t._e(),t.showDevPanel?n("igt-tab",{attrs:{name:"Developer Panel"}},[n("igt-developer-panel")],1):t._e(),n("igt-sidebar-category",{attrs:{name:"Socials"}}),n("igt-sidebar-external-link",{attrs:{name:"Discord",link:"https://discord.gg/WzejVAx",image:"socials/discord.png"}}),n("igt-sidebar-external-link",{attrs:{name:"GitHub",link:"https://github.com/thepaperpilot/incremental-game-template",image:"socials/github.png"}}),n("igt-sidebar-external-link",{attrs:{name:"Made with IGT",link:"https://github.com/123ishaTest/incremental-game-template",image:"socials/isha.png"}})],1)],1)},s=[],o=n("526b"),u=n("fd18"),l=(n("452e"),n("23c8"),n("6eda"));(function(t){t["Launching"]="Launching",t["Playing"]="Playing",t["Paused"]="Paused",t["Stopped"]="Stopped"})(i||(i={}));var c,h=function(){function t(){Object(o["a"])(this,t)}return Object(u["a"])(t,null,[{key:"store",value:function(t,e){localStorage.setItem(t,JSON.stringify(e))}},{key:"get",value:function(t){return JSON.parse(localStorage.getItem(t))}},{key:"delete",value:function(t){localStorage.removeItem(t)}}]),t}(),f=function t(e){Object(o["a"])(this,t),this.tabs=e},g=function(){function t(e,n){Object(o["a"])(this,t),this.label=e,this.children=n}return Object(u["a"])(t,[{key:"isEmpty",value:function(){return 0==this.children.length}}]),t}(),m=n("d109"),d=n("0c9f"),p=function(){function t(e,n){Object(o["a"])(this,t),this.propertyName=e,this.label=n,this.cssClass="btn-green"}return Object(u["a"])(t,[{key:"displayLabel",get:function(){var t;return null!==(t=this.label)&&void 0!==t?t:this.propertyName}},{key:"value",get:function(){return void 0==this.object?(console.warn("Cannot get warning as object is undefined for AbstractField ".concat(this.propertyName)),""):this.object[this.propertyName]},set:function(t){this.object[this.propertyName]=t}},{key:"setObject",value:function(t){return this.object=t,this}},{key:"setCssClass",value:function(t){return this.cssClass=t,this}},{key:"setComponentName",value:function(t){return this.componentName=t,this}}]),t}(),y=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t,i){var r;return Object(o["a"])(this,n),r=e.call(this,"",i),r.func=t,r.setComponentName("igt-button-field"),r}return n}(p),v=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t,i){var r;return Object(o["a"])(this,n),r=e.call(this,t,i),r.setComponentName("igt-display-field"),r}return n}(p),b=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t,i,r){var a;return Object(o["a"])(this,n),a=e.call(this,t,r),a.options=i,a.setComponentName("igt-choice-field"),a}return n}(p),w=function(){function t(e){Object(o["a"])(this,t),this._tickInterval=-1,this.TICK_DURATION=.05,this.SAVE_INTERVAL=30,this._nextSave=this.SAVE_INTERVAL,this.gameSpeed=1,this._lastUpdate=0,this.SAVE_KEY="thepaperpilot.voidlings",this.features=e,this.state=i.Launching}return Object(u["a"])(t,[{key:"getDeveloperPanel",value:function(){var t,e=this,n=[new g("Game",[new v("state","State").setObject(this),new b("gameSpeed",[["0.5x",.5],["1x",1],["2x",2],["4x",4]],"Game speed").setObject(this),new y((function(){e.start()}),"Start").setCssClass("btn-green"),new y((function(){e.pause()}),"Pause").setCssClass("btn-blue"),new y((function(){e.resume()}),"Resume").setCssClass("btn-green"),new y((function(){e.stop()}),"Stop").setCssClass("btn-red")])],i=Object(l["a"])(this.featureList);try{for(i.s();!(t=i.n()).done;){var r,a=t.value,s=a.getDeveloperPanelFields(),o=Object(l["a"])(s);try{for(o.s();!(r=o.n()).done;){var u=r.value;u.setObject(a)}}catch(h){o.e(h)}finally{o.f()}var c=new g(a.saveKey,s);c.isEmpty()||n.push(c)}}catch(h){i.e(h)}finally{i.f()}return new f(n)}},{key:"update",value:function(){var t=(new Date).getTime()/1e3,e=Math.max(0,t-this._lastUpdate);if(this.state==i.Playing){var n,r=e*this.gameSpeed,a=Object(l["a"])(this.featureList);try{for(a.s();!(n=a.n()).done;){var s=n.value;s.update(r)}}catch(o){a.e(o)}finally{a.f()}this._lastUpdate=t,this._nextSave-=r,this._nextSave<=0&&(this.save(),this._nextSave=this.SAVE_INTERVAL)}}},{key:"getTotalCurrencyMultiplier",value:function(t){var e,n=1,i=Object(l["a"])(this.featureList);try{for(i.s();!(e=i.n()).done;){var r=e.value;n*=r.getTotalCurrencyMultiplier(t)}}catch(a){i.e(a)}finally{i.f()}return n}},{key:"initialize",value:function(){var t,e=Object(l["a"])(this.featureList);try{for(e.s();!(t=e.n()).done;){var n=t.value;n.initialize(this.features)}}catch(i){e.e(i)}finally{e.f()}}},{key:"start",value:function(){var t=this;if(this.state===i.Stopped||this.state===i.Launching){var e,n=Object(l["a"])(this.featureList);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.start()}}catch(a){n.e(a)}finally{n.f()}this._lastUpdate=(new Date).getTime()/1e3,this._tickInterval=setInterval((function(){return t.update()}),1e3*this.TICK_DURATION),this.state=i.Playing,console.debug("Game Started")}else this.printStateWarning("Cannot start the game twice.")}},{key:"pause",value:function(){this.state===i.Playing?(clearInterval(this._tickInterval),this.state=i.Paused,console.debug("Game Paused")):this.printStateWarning("Cannot pause the game if we're not playing.")}},{key:"resume",value:function(){var t=this;this.state===i.Paused?(this._lastUpdate=(new Date).getTime()/1e3,this._tickInterval=setInterval((function(){return t.update()}),1e3*this.TICK_DURATION),this.state=i.Playing,console.debug("Game Resumed")):this.printStateWarning("Cannot resume the game if we're not paused.")}},{key:"stop",value:function(){if(this.state!==i.Stopped){clearInterval(this._tickInterval);var t,e=Object(l["a"])(this.featureList);try{for(e.s();!(t=e.n()).done;){var n=t.value;n.stop()}}catch(r){e.e(r)}finally{e.f()}this.state=i.Stopped,console.debug("Stopped")}else this.printStateWarning("Cannot stop the game if we're already stopped.")}},{key:"save",value:function(){var t,e={},n=Object(l["a"])(this.featureList);try{for(n.s();!(t=n.n()).done;){var i=t.value;e[i.saveKey]=i.save()}}catch(r){n.e(r)}finally{n.f()}h.store(this.SAVE_KEY,e)}},{key:"deleteSave",value:function(){h.delete(this.SAVE_KEY)}},{key:"load",value:function(){var t=h.get(this.SAVE_KEY);if(null!=t){var e,n=Object(l["a"])(this.featureList);try{for(n.s();!(e=n.n()).done;){var i=e.value,r=t[i.saveKey];null!=r&&i.load(r)}}catch(a){n.e(a)}finally{n.f()}}}},{key:"printStateWarning",value:function(t){console.warn("Current state = ".concat(this.state,"."),t)}},{key:"featureList",get:function(){return Object.values(this.features)}}]),t}(),_=(n("8efc"),n("0a4d"),n("22f9"),n("9a42"),n("506e")),C=n.n(_),k=function(){function t(e){Object(o["a"])(this,t),this.saveKey=e}return Object(u["a"])(t,[{key:"getDeveloperPanelFields",value:function(){return[]}},{key:"initialize",value:function(t){}},{key:"start",value:function(){}},{key:"stop",value:function(){}},{key:"canAccess",value:function(){return!1}},{key:"getTotalCurrencyMultiplier",value:function(t){return 1}},{key:"update",value:function(t){}}]),t}();(function(t){t["Voidlings"]="Voidlings",t["CombatBots"]="CombatBots",t["VoidBatteries"]="VoidBatteries"})(c||(c={}));var x,M=n("8cf2"),O=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t,i){var r;return Object(o["a"])(this,n),r=e.call(this,t,i),r.setComponentName("igt-number-field"),r}return n}(p),N=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t){var i;Object(o["a"])(this,n),i=e.call(this,"wallet"),i._currencies={},i._multipliers={},i._onCurrencyGain=new M["SimpleEventDispatcher"],i._supportedCurrencies=t;var r,a=Object(l["a"])(i._supportedCurrencies);try{for(a.s();!(r=a.n()).done;){var s=r.value;i._currencies[s]=new C.a(0),i._multipliers[s]=new C.a(1)}}catch(u){a.e(u)}finally{a.f()}return i._currencies[c.Voidlings]=new C.a(1e6),i._currencies[c.CombatBots]=new C.a(1),i}return Object(u["a"])(n,[{key:"getAmount",value:function(t){return this.supportsCurrencyType(t)?this._currencies[t]:new C.a(0)}},{key:"gainCurrency",value:function(t){t.amount.gt(0)&&(t.amount=t.amount.multiply(this.getCurrencyMultiplier(t.type))),t.isValid()&&this.supportsCurrencyType(t.type)?(this._onCurrencyGain.dispatch(t),this._currencies[t.type]=this._currencies[t.type].add(t.amount)):console.warn("Could not add currency ".concat(t.toString()))}},{key:"hasCurrencies",value:function(t){var e,n=Object(l["a"])(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(!this.hasCurrency(i))return!1}}catch(r){n.e(r)}finally{n.f()}return!0}},{key:"hasCurrency",value:function(t){return!!this.supportsCurrencyType(t.type)&&this._currencies[t.type].gte(t.amount)}},{key:"loseCurrency",value:function(t){t.isValid()&&this.supportsCurrencyType(t.type)?this._currencies[t.type]=this._currencies[t.type].sub(t.amount):console.warn("Could not lose currency ".concat(t.toString()))}},{key:"loseMultipleCurrencies",value:function(t){var e,n=Object(l["a"])(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.loseCurrency(i)}}catch(r){n.e(r)}finally{n.f()}}},{key:"payMultipleIfPossible",value:function(t){return!!this.hasCurrencies(t)&&(this.loseMultipleCurrencies(t),!0)}},{key:"payIfPossible",value:function(t){return!!this.hasCurrency(t)&&(this.loseCurrency(t),!0)}},{key:"getCurrencyMultiplier",value:function(t){var e;return null!==(e=this._multipliers[t])&&void 0!==e?e:new C.a(1)}},{key:"setCurrencyMultiplier",value:function(t,e){t=new C.a(t),t.lte(0)||isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)||!this.supportsCurrencyType(e)||(this._multipliers[e]=t)}},{key:"supportsCurrencyType",value:function(t){return this._supportedCurrencies.includes(t)}},{key:"canAccess",value:function(){return!0}},{key:"save",value:function(){return{voidlings:this._currencies[c.Voidlings].toString(),combatBots:this._currencies[c.CombatBots].toString(),batteries:this._currencies[c.VoidBatteries].toString(),combatBotsMod:this._multipliers[c.CombatBots].toString()}}},{key:"load",value:function(t){this._currencies[c.Voidlings]=new C.a(t.voidlings),this._currencies[c.CombatBots]=new C.a(t.combatBots),this._currencies[c.VoidBatteries]=new C.a(t.batteries),this._multipliers[c.CombatBots]=new C.a(t.combatBotsMod)}},{key:"onCurrencyGain",get:function(){return this._onCurrencyGain.asEvent()}},{key:"voidlings",get:function(){return this._currencies.Voidlings},set:function(t){this._currencies.Voidlings=t}},{key:"combatBots",get:function(){return this._currencies.CombatBots},set:function(t){this._currencies.CombatBots=t}},{key:"getDeveloperPanelFields",value:function(){var t=this;return[new O("voidlings","Voidlings"),new y((function(){t.voidlings=new C.a(1e6)}),"Set voidlins to 1e6").setCssClass("btn-blue")]}}]),n}(k);n("079d");(function(t){t["DarkMode"]="dark-mode",t["ExampleMultipleChoiceSetting"]="multiple-choice"})(x||(x={}));n("22f5"),n("bc19");var S,j=function(){function t(e,n){Object(o["a"])(this,t),this.actual=new C.a(e),this.target=new C.a(n)}return Object(u["a"])(t,[{key:"getPercentage",value:function(){return this.actual.div(this.target).clamp(0,1).toNumber()}}]),t}(),I=function(){function t(){Object(o["a"])(this,t)}return Object(u["a"])(t,[{key:"isCompleted",get:function(){return C.a.gte(this.actualValue,this.targetValue)}},{key:"progress",get:function(){return new j(C.a.min(this.actualValue,this.targetValue),this.targetValue)}}]),t}(),F=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(){return Object(o["a"])(this,n),e.apply(this,arguments)}return Object(u["a"])(n,[{key:"isCompleted",get:function(){return!0}},{key:"actualValue",get:function(){return 0}},{key:"hint",get:function(){return""}},{key:"targetValue",get:function(){return 0}}]),n}(I),A=function(){function t(e,n,i,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new F;Object(o["a"])(this,t),this.id=e,this.displayName=n,this.options=i,this.defaultValue=r,this.value=r,this.requirement=a}return Object(u["a"])(t,[{key:"set",value:function(t){this.canAccess&&(this.validValue(t)?this.value=t:console.warn("".concat(t," is not a valid value for setting ").concat(this.id,". It could be that the option is not yet unlocked.")))}},{key:"validValue",value:function(t){var e=this.options.find((function(e){return e.value===t}));return!(void 0==e||!e.canAccess)}},{key:"isSelected",value:function(t){return this.value===t}},{key:"canAccess",get:function(){return this.requirement.isCompleted}}]),t}(),B=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t,i,r,a,s){var u;if(Object(o["a"])(this,n),u=e.call(this,t,i,r,a,s),!u.validValue(u.defaultValue))throw new RangeError("".concat(u.defaultValue," is not a valid value for setting ").concat(u.id,"."));return u}return n}(A),q=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new F;Object(o["a"])(this,t),this.displayText=e,this.value=n,this.requirement=i}return Object(u["a"])(t,[{key:"canAccess",get:function(){return this.requirement.isCompleted}}]),t}(),E=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t,i,r,a){return Object(o["a"])(this,n),e.call(this,t,i,[new q("On",!0),new q("Off",!1)],r,a)}return Object(u["a"])(n,[{key:"toggle",value:function(){this.value=!this.value}}]),n}(A),V=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(){var t;return Object(o["a"])(this,n),t=e.call(this,"settings"),t.list=[],t.darkMode={},t}return Object(u["a"])(n,[{key:"registerSetting",value:function(t){return this.getSetting(t.id)||this.list.push(t),t}},{key:"initialize",value:function(){this.darkMode=this.registerSetting(new E(x.DarkMode,"Dark Mode",!0)),this.registerSetting(new B(x.ExampleMultipleChoiceSetting,"Example setting",[new q("Option 1",1),new q("Option 2",2),new q("Option 3",3)],2))}},{key:"setSetting",value:function(t,e){var n=this.getSetting(t);n?n.set(e):console.warn("Setting ".concat(t," does not exist"))}},{key:"getSetting",value:function(t){for(var e=0;e3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:new F;Object(o["a"])(this,t),this.isUnlocked=!1,this.id=e,this.name=n,this.description=i,this.unlockHint=r,this.image=a,this.requirement=s}return Object(u["a"])(t,[{key:"unlock",value:function(){return!(!this.requirement.isCompleted||this.isUnlocked)&&(this.isUnlocked=!0,!0)}}]),t}());(function(t){t["Factory"]="Factory",t["StrongerWeapons"]="StrongerWeapons",t["CombatEfficiency"]="CombatEfficiency",t["WheelOfFortune"]="WheelOfFortune",t["WheelOfButter"]="WheelOfButter",t["Synergy"]="Synergy",t["Wheel"]="Wheel",t["MassMurder"]="MassMurder",t["Victory"]="Victory"})(S||(S={}));var P,W,D=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(){var t;return Object(o["a"])(this,n),t=e.call(this,"key-items"),t._onKeyItemGain=new M["SimpleEventDispatcher"],t.list={},t}return Object(u["a"])(n,[{key:"initialize",value:function(){this.registerKeyItem(new T(S.Factory,"Factory","Grants access to the factory","Defeat 1 voidling","logo.png")),this.registerKeyItem(new T(S.Wheel,"Wheel","Grants access to the mystic wheel","Defeat 10 voidlings","logo.png")),this.registerKeyItem(new T(S.StrongerWeapons,"Stronger weapons","Empowers you to kill voidlings with fewer nanobots","Defeat 100 voidlings","logo.png")),this.registerKeyItem(new T(S.CombatEfficiency,"Combat Efficiency","Empowers you to kill voidlings quicker","Defeat 500 voidlings","logo.png")),this.registerKeyItem(new T(S.WheelOfFortune,"Wheel of Fortune","Empowers you to increase the effect of wheel rewards","Defeat 1,000 voidlings","logo.png")),this.registerKeyItem(new T(S.WheelOfButter,"Wheel of Butter","Empowers you to increase the speed of the wheel, and make it auto-spin","Defeat 2,500 voidlings","logo.png")),this.registerKeyItem(new T(S.Synergy,"Synergy","Empowers you to increase the efficiency of your factory","Defeat 10,000 voidlings","logo.png")),this.registerKeyItem(new T(S.MassMurder,"Mass Murder","Empowers you to kill more voidlings at once","Defeat 100,000 voidlings","logo.png")),this.registerKeyItem(new T(S.Victory,"Victory","You've won the game!","Defeat 1,000,000 voidlings","logo.png"))}},{key:"registerKeyItem",value:function(t){return this.list[t.id]=t,t}},{key:"hasKeyItem",value:function(t){var e;return null===(e=this.getKeyItem(t))||void 0===e?void 0:e.isUnlocked}},{key:"getKeyItem",value:function(t){return this.list[t]}},{key:"gainKeyItem",value:function(t){var e=this.getKeyItem(t);if(e){var n=e.unlock();n&&this._onKeyItemGain.dispatch(e)}else console.warn("Key Item with id ".concat(t," could not be found"))}},{key:"onKeyItemGain",get:function(){return this._onKeyItemGain.asEvent()}},{key:"load",value:function(t){var e,n=this;null===(e=t.list)||void 0===e||e.forEach((function(t){var e=n.getKeyItem(t);e&&(e.isUnlocked=!0)}))}},{key:"save",value:function(){var t=[];for(var e in this.list)this.list[e].isUnlocked&&t.push(e);return{list:t}}}]),n}(k),L=n("dccb"),U=n("c6e1"),K=n("a608"),R=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return Object(o["a"])(this,n),i=e.call(this,t),i._wallet=null,i.upgrades=r,i}return Object(u["a"])(n,[{key:"initialize",value:function(t){this._wallet=t.wallet}},{key:"getUpgrade",value:function(t){return this.upgrades.find((function(e){return e.id===t}))}},{key:"buyUpgrade",value:function(t){return this._wallet?!!t.canBuy(this._wallet)&&t.buy(this._wallet):(console.warn("Wallet not found, are you sure it is initialized?"),!1)}},{key:"canAfford",value:function(t){return t.canAfford(this._wallet)}},{key:"load",value:function(t){var e,n=this;null===(e=t.upgrades)||void 0===e||e.forEach((function(t){var e;null===(e=n.getUpgrade(t.id))||void 0===e||e.load(t)}))}},{key:"save",value:function(){return{upgrades:this.upgrades.map((function(t){return t.save()}))}}}]),n}(k),G=(n("0192"),function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new F;Object(o["a"])(this,t),this.isStarted=!1,this.currentProgress=0,this._onCompletion=new M["SimpleEventDispatcher"],this.description=e,this.durationFunc=n,this.repeat=i,this.requirement=r}return Object(u["a"])(t,[{key:"perform",value:function(t){this.isStarted&&(this.currentProgress+=t,this.canBeCompleted()&&this.complete())}},{key:"canBeCompleted",value:function(){return this.isStarted&&this.currentProgress>=this.durationFunc()}},{key:"complete",value:function(){this._onCompletion.dispatch(new C.a(1));var t=this.gainReward();t&&this.repeat>0?this.repeatAction():this.stop()}},{key:"getProgress",value:function(){return new j(this.currentProgress,this.durationFunc())}},{key:"repeatAction",value:function(){this.repeat--,this.currentProgress=0}},{key:"canPerform",value:function(){return this.requirement.isCompleted}},{key:"toggle",value:function(){this.isStarted?this.stop():this.start()}},{key:"start",value:function(){return this.canPerform()?(this.isStarted=!0,!0):(console.log("Can't start action ".concat(this.description)),!1)}},{key:"stop",value:function(){this.currentProgress=0,this.isStarted=!1}},{key:"onCompletion",get:function(){return this._onCompletion.asEvent()}}]),t}()),Y=function(){function t(e,n){Object(o["a"])(this,t),this.amount=new C.a(e),this.type=n}return Object(u["a"])(t,[{key:"isValid",value:function(){return!(isNaN(this.amount.sign)||isNaN(this.amount.layer)||isNaN(this.amount.mag))}},{key:"toString",value:function(){return"Currency(".concat(this.amount,", ").concat(this.type,")")}}]),t}(),z=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t,i,r,a,s,u){var l,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new F;return Object(o["a"])(this,n),l=e.call(this,r,a,1/0),l._wallet=null,l._combat=null,l._wallet=t,l._combat=i,l.durationFunc=a,l.costFunc=s,l.multiCompleteFunc=u,l.requirement=c,l}return Object(u["a"])(n,[{key:"complete",value:function(){var t=C.a.floor(C.a.div(this.currentProgress,this.durationFunc())).times(this.multiCompleteFunc());t=C.a.min(t,this.repeat),t=C.a.min(t,C.a.affordGeometricSeries(this._wallet.getAmount(c.CombatBots),1,C.a.times(.1,this._combat.stronger.getBonus()).add(1),C.a.sub(1e6,this._wallet.getAmount(c.Voidlings)).add(1)).add(1).toNumber()),this._onCompletion.dispatch(t);var e=this.handleCompletions(t);e&&t.lt(this.repeat)?this.repeatAction():this.stop()}},{key:"getCombatCost",value:function(){return this.costFunc(C.a.sub(1e6,this._wallet.getAmount(c.Voidlings)))}},{key:"canPerform",value:function(){if(this.isStarted){if(this._wallet.getAmount(c.CombatBots).lt(0))return!1}else if(this._wallet.getAmount(c.CombatBots).lt(this.getCombatCost()))return!1;return Object(U["a"])(Object(K["a"])(n.prototype),"canPerform",this).call(this)}},{key:"start",value:function(){var t=Object(U["a"])(Object(K["a"])(n.prototype),"start",this).call(this);return t&&this._wallet.gainCurrency(new Y(this.getCombatCost().neg(),c.CombatBots)),t}},{key:"stop",value:function(){Object(U["a"])(Object(K["a"])(n.prototype),"stop",this).call(this),this._wallet.gainCurrency(new Y(this.getCombatCost().div(this._wallet.getCurrencyMultiplier(c.CombatBots)),c.CombatBots)),this._wallet.getAmount(c.CombatBots).lt(0)&&this._wallet.gainCurrency(new Y(this._wallet.getAmount(c.CombatBots).neg().div(this._wallet.getCurrencyMultiplier(c.CombatBots)),c.CombatBots))}},{key:"handleCompletions",value:function(t){return t.gt(1)&&this._wallet.gainCurrency(new Y(C.a.sumGeometricSeries(t.sub(1),1,C.a.times(.1,this._combat.stronger.getBonus()).add(1),C.a.sub(1e6,this._wallet.getAmount(c.Voidlings))).neg(),c.CombatBots)),this._wallet.gainCurrency(new Y(this.getCombatCost().neg(),c.CombatBots)),!!this.canPerform()}},{key:"gainReward",value:function(){return!1}}]),n}(G),$=function(){function t(e,n,i,r){Object(o["a"])(this,t),this.saveKey=this.id,this.id=e,this.type=n,this.displayName=i,this.maxLevel=new C.a(r),this.level=new C.a(0)}return Object(u["a"])(t,[{key:"getBonus",value:function(){return this.getBonusForLevel(this.level)}},{key:"getUpgradeBonus",value:function(){return this.isMaxLevel()?new C.a(0):this.getBonusForLevel(this.level.add(1)).sub(this.getBonusForLevel(this.level))}},{key:"isMaxLevel",value:function(){return this.level.gte(this.maxLevel)}},{key:"canAfford",value:function(t){return t.hasCurrency(this.getCost())}},{key:"canBuy",value:function(t){return this.level.lt(this.maxLevel)&&this.canAfford(t)}},{key:"buy",value:function(t){return!!this.canBuy(t)&&(t.loseCurrency(this.getCost()),this.levelUp(),!0)}},{key:"levelUp",value:function(){this.level=this.level.add(1)}},{key:"load",value:function(t){this.level=C.a.fromString(t.level)}},{key:"save",value:function(){return{id:this.id,level:this.level.toString()}}}]),t}(),Q=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t,i,r,a,s,u){var l;return Object(o["a"])(this,n),l=e.call(this,t,i,r,a),l.bonusFunc=s,l.costFunc=u,l}return Object(u["a"])(n,[{key:"getBonusForLevel",value:function(t){return this.bonusFunc(t)}},{key:"getCost",value:function(){return this.costFunc(this.level)}}]),n}($);(function(t){t["Factory"]="Factory",t["FactorySquared"]="FactorySquared",t["FactoryCubed"]="FactoryCubed",t["FactoryTesseracted"]="FactoryTesseracted",t["Synergy"]="Synergy",t["StrongerWeapons"]="StrongerWeapons",t["CombatEfficiency"]="CombatEfficiency",t["MassMurder"]="MassMurder",t["MultiSpin"]="MultiSpin",t["Grease"]="Grease"})(P||(P={})),function(t){t[t["None"]=0]="None",t[t["VoidBatteries"]=1]="VoidBatteries",t[t["Nanobots"]=2]="Nanobots"}(W||(W={}));var H=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(){var t;return Object(o["a"])(this,n),t=e.call(this,"combat-feature"),t._keyItems=null,t.combatAction=void 0,t.stronger=null,t.efficiency=null,t.mass=null,t}return Object(u["a"])(n,[{key:"initialize",value:function(t){var e=this;this._wallet=t.wallet,this._keyItems=t.keyItems,this.combatAction=new z(t.wallet,this,"Destroy a voidling",(function(){return new C.a(5).divide(e.efficiency.getBonus()).toNumber()}),(function(t){return C.a.pow(C.a.times(.1,e.stronger.getBonus()).add(1),t).div(e.stronger.getBonus())}),(function(){return e.mass.getBonus()})),this.combatAction.onCompletion.sub((function(t){e._wallet.gainCurrency(new Y(t,c.VoidBatteries)),e._wallet.gainCurrency(new Y(t.neg(),c.Voidlings));var n=C.a.sub(1e6,e._wallet.getAmount(c.Voidlings)).add(1);n.gte(1)&&e._keyItems.gainKeyItem(S.Factory),n.gte(10)&&e._keyItems.gainKeyItem(S.Wheel),n.gte(100)&&e._keyItems.gainKeyItem(S.StrongerWeapons),n.gte(500)&&e._keyItems.gainKeyItem(S.CombatEfficiency),n.gte(1e3)&&e._keyItems.gainKeyItem(S.WheelOfFortune),n.gte(2500)&&(e._keyItems.gainKeyItem(S.WheelOfButter),it.game.features.wheel.spin()),n.gte(1e4)&&e._keyItems.gainKeyItem(S.Synergy),n.gte(1e5)&&e._keyItems.gainKeyItem(S.MassMurder),n.gte(1e6)&&(e._keyItems.gainKeyItem(S.Victory),it.game.pause())})),this.stronger=new Q(P.StrongerWeapons,W.VoidBatteries,"Stronger Weapons",10,(function(t){return C.a.pow(.6,t)}),(function(t){return new Y(C.a.pow(10,t.add(2)),c.VoidBatteries)})),this.efficiency=new Q(P.CombatEfficiency,W.Nanobots,"Combat efficiency",5,(function(t){return C.a.pow(2,t)}),(function(t){return new Y(C.a.pow(100,t.add(5)),c.CombatBots)})),this.mass=new Q(P.MassMurder,W.VoidBatteries,"Mass Murder",5,(function(t){return C.a.pow(2,t)}),(function(t){return new Y(C.a.pow(10,t.add(3)),c.VoidBatteries)})),this.upgrades=[this.stronger,this.efficiency,this.mass]}},{key:"update",value:function(t){this.combatAction.perform(t)}},{key:"save",value:function(){return Object(L["a"])(Object(L["a"])({},Object(U["a"])(Object(K["a"])(n.prototype),"save",this).call(this)),{},{combatProgress:this.combatAction.currentProgress,combatStarted:this.combatAction.isStarted})}},{key:"load",value:function(t){Object(U["a"])(Object(K["a"])(n.prototype),"load",this).call(this,t),this.combatAction.currentProgress=t.combatProgress?t.combatProgress:0,this.combatAction.isStarted=t.combatStarted}}]),n}(R),X=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(){var t;return Object(o["a"])(this,n),t=e.call(this,"factory-feature"),t.factories=new C.a(0),t.factoriesSquared=new C.a(0),t.factoriesCubed=new C.a(0),t.factory=new Q(P.Factory,W.VoidBatteries,"Nanobots Factory",1/0,(function(t){return t.add(1)}),(function(t){return new Y(C.a.pow(5,t),c.VoidBatteries)})),t.factorySquared=new Q(P.FactorySquared,W.VoidBatteries,"Nanobots Factory Squared",1/0,(function(t){return t.add(1)}),(function(t){return new Y(C.a.pow(10,t.add(2)),c.VoidBatteries)})),t.factoryCubed=new Q(P.FactoryCubed,W.VoidBatteries,"Nanobots Factory Cubed",1/0,(function(t){return t.add(1)}),(function(t){return new Y(C.a.pow(20,t.add(3)),c.VoidBatteries)})),t.factoryTesseracted=new Q(P.FactoryTesseracted,W.VoidBatteries,"Nanobots Factory Tesseracted",1/0,(function(t){return t.add(1)}),(function(t){return new Y(C.a.pow(40,t.add(4)),c.VoidBatteries)})),t.synergy=new Q(P.Synergy,W.VoidBatteries,"Synergize all factories",10,(function(t){return t.add(1)}),(function(t){return new Y(C.a.pow(1e3,t.add(2)),c.VoidBatteries)})),t.upgrades=[t.factory,t.factorySquared,t.factoryCubed,t.factoryTesseracted,t.synergy],t}return Object(u["a"])(n,[{key:"update",value:function(t){var e=this.synergy.getBonus(),n=this.factoryTesseracted.getBonus().pow(e).sub(1);this.factoriesCubed=this.factoriesCubed.add(n.times(t).times(C.a.pow(2,n)));var i=this.factoryCubed.getBonus().pow(e).sub(1);this.factoriesSquared=this.factoriesSquared.add(this.factoriesCubed.add(i).times(t).times(C.a.pow(2,i)));var r=this.factorySquared.getBonus().pow(e).sub(1);this.factories=this.factories.add(this.factoriesSquared.add(r).times(t).times(C.a.pow(2,r)));var a=this.factory.getBonus().pow(e).sub(1);this._wallet.gainCurrency(new Y(this.factories.add(a).times(t).times(C.a.pow(2,a)),c.CombatBots))}},{key:"save",value:function(){return Object(L["a"])(Object(L["a"])({},Object(U["a"])(Object(K["a"])(n.prototype),"save",this).call(this)),{},{factories:this.factories.toString(),factoriesSquared:this.factoriesSquared.toString(),factoriesCubed:this.factoriesCubed.toString()})}},{key:"load",value:function(t){Object(U["a"])(Object(K["a"])(n.prototype),"load",this).call(this,t),this.factories=t.factories?C.a.fromString(t.factories):new C.a(0),this.factoriesSquared=t.factoriesSquared?C.a.fromString(t.factoriesSquared):new C.a(0),this.factoriesCubed=t.factoriesCubed?C.a.fromString(t.factoriesCubed):new C.a(0)}}]),n}(R),Z=(n("a18e"),n("d293"),function(){function t(){Object(o["a"])(this,t)}return Object(u["a"])(t,null,[{key:"intBetween",value:function(t,e){return Math.floor(Math.random()*(e-t)+t)}},{key:"booleanWithProbability",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&(t<0||t>1)?(console.warn("Trying to generate a boolean with probability ".concat(t," outside of [0,1].\n Run this method with requireNormalizedProbability=false if you're okay with this.")),!1):Math.random()0&&void 0!==arguments[0]?arguments[0]:[];Object(o["a"])(this,t),this.outcomes=e}return Object(u["a"])(t,[{key:"outcomesWithMetRequirements",value:function(){return this.outcomes.filter((function(t){return t.canGet()}))}},{key:"draw",value:function(t){if(0===this.outcomesWithMetRequirements().length)throw new Error("Cannot draw from empty distribution");var e=this.getTotalWeight();t=null==t?Z.floatBetween(0,e):e*t;var n,i=0,r=Object(l["a"])(this.outcomesWithMetRequirements());try{for(r.s();!(n=r.n()).done;){var a=n.value;if(i+=a.weight,t<=i)return a.item}}catch(s){r.e(s)}finally{r.f()}return console.error("Could not draw an item for random ".concat(t,". This should never happen")),Z.fromArray(this.outcomesWithMetRequirements()).item}},{key:"getTotalWeight",value:function(){var t,e=0,n=Object(l["a"])(this.outcomesWithMetRequirements());try{for(n.s();!(t=n.n()).done;){var i=t.value;e+=i.weight}}catch(r){n.e(r)}finally{n.f()}return e}},{key:"addOutcome",value:function(t){this.outcomes.push(t)}},{key:"removeOutcome",value:function(t){var e=this.outcomes.indexOf(t);-1!==e&&this.outcomes.splice(e,1)}}]),t}(),tt=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new F;Object(o["a"])(this,t),this.item=e,this.weight=n,this.requirement=i}return Object(u["a"])(t,[{key:"canGet",value:function(){return this.requirement.isCompleted}}]),t}(),et=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t){var i;return Object(o["a"])(this,n),i=e.call(this,"wheel"),i.initial=0,i.progress=0,i.target=0,i.spins=new C.a(-1),i.multispin=null,i.grease=null,i.distribution=t,i.multispin=new Q(P.MultiSpin,W.Nanobots,"Multi Spin",25,(function(t){return t.add(1)}),(function(t){return new Y(C.a.pow(10,t.add(10)),c.CombatBots)})),i.grease=new Q(P.Grease,W.VoidBatteries,"Grease",5,(function(t){return C.a.pow(2,t)}),(function(t){return new Y(C.a.pow(10,t.add(4)),c.VoidBatteries)})),i.upgrades=[i.multispin,i.grease],i}return Object(u["a"])(n,[{key:"spin",value:function(){this.spins.neq(0)&&!this.isSpinning()&&(this.initial=this.current,this.progress=0,this.target=Z.floatBetween(2,4),this.spins=this.spins.sub(1))}},{key:"isSpinning",value:function(){return this.current!==this.target}},{key:"update",value:function(t){this.initial!==this.target&&(this.progress+=t,this.progress>this.duration&&(this.initial=this.target=this.target%1,this.distribution.draw(this.current).func(),it.game.features.keyItems.hasKeyItem(S.WheelOfButter)&&this.spin()))}},{key:"save",value:function(){return Object(L["a"])(Object(L["a"])({},Object(U["a"])(Object(K["a"])(n.prototype),"save",this).call(this)),{},{initial:this.initial,progress:this.progress,target:this.target,spins:this.spins.toString()})}},{key:"load",value:function(t){Object(U["a"])(Object(K["a"])(n.prototype),"load",this).call(this,t),this.initial=t.initial||0,this.progress=t.progress||0,this.target=t.target||0,this.spins=t.spins?C.a.fromString(t.spins):new C.a(0)}},{key:"current",get:function(){return this.initial+(this.target-this.initial)*this.ease(this.progress/this.duration)}},{key:"ease",value:function(t){return 1-Math.pow(1-t,4)}},{key:"duration",get:function(){return C.a.div(4,this.grease.getBonus()).toNumber()}}]),n}(R),nt=function t(e,n){Object(o["a"])(this,t),this.func=e,this.description=n},it=function(){function t(){Object(o["a"])(this,t)}return Object(u["a"])(t,null,[{key:"start",value:function(){this.game=this.getDefaultGame(),this.game.initialize(),this.game.load(),this.game.start()}},{key:"getDefaultGame",value:function(){return new w({wallet:new N([c.Voidlings,c.CombatBots,c.VoidBatteries]),combat:new H,factory:new X,wheel:new et(new J([new tt(new nt((function(){return t.game.features.wallet.gainCurrency(new Y(C.a.sub(1e6,t.game.features.wallet.voidlings).div(4).times(t.game.features.wheel.multispin.getBonus()),c.VoidBatteries))}),"Gain some batteries based on killed voidlings"),5),new tt(new nt((function(){return t.game.features.wallet.gainCurrency(new Y(C.a.sub(1e6,t.game.features.wallet.voidlings).times(t.game.features.wheel.multispin.getBonus()),c.VoidBatteries))}),"Gain many batteries based on killed voidlings"),2),new tt(new nt((function(){for(var e=0,n=Object.values(t.game.features);e1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,u=arguments.length>4?arguments[4]:void 0;return Object(o["a"])(this,n),i=e.call(this,t,u),i.min=r,i.max=a,i.step=s,i.setComponentName("igt-range-field"),i}return n}(p),Yt={name:"igt-range-field",props:{field:{type:Gt,required:!0}}},zt=Yt,$t=Object(ut["a"])(zt,Kt,Rt,!1,null,"265de67a",null),Qt=$t.exports,Ht=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"tabs"},[n("ul",{staticClass:"flex flex-row"},t._l(t.tabs,(function(e,i){return n("li",{key:"tab"+i,staticClass:"p-2",class:{"text-green-500":e.isActive}},[n("a",{staticClass:"text-lg",attrs:{href:e.href},on:{click:function(n){return t.selectTab(e)}}},[t._v(t._s(e.name))])])})),0)]),n("hr"),n("br"),n("div",{staticClass:"tabs-details"},[t._t("default")],2)])},Xt=[],Zt={name:"igt-tabs",data:function(){return{tabs:[]}},created:function(){this.tabs=this.$children},methods:{selectTab:function(t){this.tabs.forEach((function(e){e.isActive=e.name===t.name}))}}},Jt=Zt,te=Object(ut["a"])(Jt,Ht,Xt,!1,null,"6b4f20d2",null),ee=te.exports,ne=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"text-lg"},[t._v(t._s(t.field.displayLabel)+": "+t._s(t.field.value)+" ")])},ie=[],re={name:"igt-display-field",props:{field:{type:v,required:!0}}},ae=re,se=Object(ut["a"])(ae,ne,ie,!1,null,"15aabec4",null),oe=se.exports,ue=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-row"},[n("div",{staticClass:"align-middle m-2"},[t._v(t._s(t.field.displayLabel))]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.field.value,expression:"field.value"}],on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.field,"value",e.target.multiple?n:n[0])}}},t._l(t.field.options,(function(e){return n("option",{key:e.value,domProps:{value:e[1]}},[t._v(" "+t._s(e[0])+" ")])})),0)])},le=[],ce={name:"igt-choice-field",props:{field:{type:b,required:!0}}},he=ce,fe=Object(ut["a"])(he,ue,le,!1,null,"799c53f7",null),ge=fe.exports,me=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"feature-tab",class:t.containerClass},[t._t("default")],2)},de=[],pe={name:"igt-feature",props:{containerClass:{type:String,default:"bg-gray-200 dark:bg-gray-700"}}},ye=pe,ve=Object(ut["a"])(ye,me,de,!1,null,"b9bea2f4",null),be=ve.exports,we={name:"igt-developer-panel",components:{IgtFeature:be,IgtChoiceField:ge,IgtDisplayField:oe,IgtTab:pt,IgtTabs:ee,IgtRangeField:Qt,IgtButtonField:Ut,IgtNumberField:Vt},data:function(){return{developerPanel:it.game.getDeveloperPanel()}},computed:{}},_e=we,Ce=Object(ut["a"])(_e,jt,It,!1,null,"34e95240",null),ke=Ce.exports,xe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}]})},Me=[],Oe={name:"igt-sidebar-category",props:{name:{required:!0},selected:{default:!1}},data:function(){return{isCategory:!0,isActive:!1}}},Ne=Oe,Se=Object(ut["a"])(Ne,xe,Me,!1,null,"1323ddac",null),je=Se.exports,Ie=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}]})},Fe=[],Ae={name:"igt-sidebar-external-link",props:{name:{required:!0},link:{type:String,required:!0},image:{type:String,default:""}},data:function(){return{isExternalLink:!0,isActive:!1}}},Be=Ae,qe=Object(ut["a"])(Be,Ie,Fe,!1,null,"b0bc8d86",null),Ee=qe.exports,Ve=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("igt-feature",[n("igt-boolean-setting",{attrs:{setting:t.darkMode,"true-icon":"fa-moon","false-icon":"fa-sun"}}),n("button",{staticClass:"btn btn-red",on:{click:t.resetSave}},[t._v("Reset Save")])],1)},Te=[],Pe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("button",{staticClass:"btn btn-blue",on:{click:t.toggle}},[n("div",{staticClass:"flex flex-row items-center"},[t.icon?n("span",{staticClass:"fa text-lg p-2 w-8",class:t.icon}):t._e(),n("span",[t._v(t._s(t.setting.displayName))])])])])},We=[],De={name:"igt-boolean-setting",props:{setting:{type:E,required:!0},trueIcon:{type:String,default:""},falseIcon:{type:String,default:""}},methods:{toggle:function(){this.setting.toggle()}},computed:{icon:function(){return this.setting.value?this.trueIcon:this.falseIcon}}},Le=De,Ue=Object(ut["a"])(Le,Pe,We,!1,null,"7093dd88",null),Ke=Ue.exports,Re={name:"igt-settings",components:{IgtBooleanSetting:Ke,IgtFeature:be},data:function(){return{settings:it.game.features.settings}},methods:{resetSave:function(){var t=confirm("Are you sure you want to delete your save? This will not give you any rewards");t&&(it.game.deleteSave(),location.reload())}},computed:{darkMode:function(){return this.settings.darkMode}}},Ge=Re,Ye=(n("3549"),Object(ut["a"])(Ge,Ve,Te,!1,null,"5a724c9b",null)),ze=Ye.exports,$e=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("igt-feature",[n("div",{staticClass:"flex flex-row flex-wrap"},t._l(t.items,(function(t){return n("igt-key-item",{key:t.id,attrs:{item:t}})})),1)])},Qe=[],He=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flex flex-col border-2 m-2 p-2 h-56 w-36 justify-between shadow-md",class:{"bg-gray-400":!t.item.isUnlocked,"bg-green-500":t.item.isUnlocked},attrs:{title:t.item.isUnlocked?t.item.description:t.item.unlockHint}},[i("div",[i("p",{staticClass:"text-lg text-center font-semibold"},[t._v(" "+t._s(t.item.name))]),i("hr"),i("div",{staticClass:"mt-2 w-16 h-16 mx-auto"},[t.item.image?i("img",{class:{"filter-grayscale":!t.item.isUnlocked},attrs:{src:n("1771")("./"+t.item.image),alt:t.item.image}}):t._e()]),i("p",{staticClass:"text-sm"},[t._v(" "+t._s(t.item.description))])])])},Xe=[],Ze={name:"igt-key-item",props:{item:{type:T,required:!0}}},Je=Ze,tn=Object(ut["a"])(Je,He,Xe,!1,null,"765b0b79",null),en=tn.exports,nn=function(t){Object(m["a"])(n,t);var e=Object(d["a"])(n);function n(t,i){var r;return Object(o["a"])(this,n),r=e.call(this),r._keyItems=t,r.itemId=i,r}return Object(u["a"])(n,[{key:"actualValue",get:function(){return this._keyItems.hasKeyItem(this.itemId)?1:0}},{key:"hint",get:function(){return"Unlock the ".concat(this._keyItems.getKeyItem(this.itemId).name)}},{key:"targetValue",get:function(){return 1}}]),n}(I),rn={name:"igt-key-items",components:{IgtKeyItem:en,IgtFeature:be},data:function(){return{keyItems:it.game.features.keyItems}},computed:{items:function(){return this.keyItems.list}},methods:{gainItem1:function(){this.keyItems.gainKeyItem(S.Factory)}},mounted:function(){var t=this;this.keyItems.onKeyItemGain.subscribe((function(e){t.$notify({title:"Accomplishment: ".concat(e.name),text:e.description,type:"success",group:"top-left"},4e3)}))}},an=rn,sn=Object(ut["a"])(an,$e,Qe,!1,null,"0c951a6e",null),on=sn.exports,un=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("div"):t._e()},ln=[],cn=(n("4e7e"),n("80be"),function(){function t(){Object(o["a"])(this,t)}return Object(u["a"])(t,null,[{key:"format",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(e=new C.a(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+t.format(e.neg(),n);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte("eeee1000")){var i=e.slog();return i.gte(1e6)?"F"+t.format(i.floor()):C.a.pow(10,i.sub(i.floor())).toStringWithDecimalPlaces(3)+"F"+t.commaFormat(i.floor(),0)}return e.gte("1e100000")?t.exponentialFormat(e,0,!1):e.gte("1e1000")?t.exponentialFormat(e,0):e.gte(1e9)?t.exponentialFormat(e,n):e.gte(1e3)?t.commaFormat(e,0):t.regularFormat(e,n)}},{key:"formatWhole",value:function(e){return e=new C.a(e),e.sign<0?"-"+t.formatWhole(e.neg()):e.gte(1e9)||e.lte(.98)&&!e.eq(0)?t.format(e,2):t.format(e,0)}},{key:"exponentialFormat",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=new C.a(e);var r=e.log10().floor(),a=e.div(C.a.pow(10,r));"10"===a.toStringWithDecimalPlaces(n)&&(a=new C.a(1),r=r.add(1));var s=t.commaFormat(r);return i?a.toStringWithDecimalPlaces(n)+"e"+s:"e"+s}},{key:"commaFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(null===t||void 0===t)return"NaN";if(t=new C.a(t),t.mag<.001)return(0).toFixed(e);if(void 0===e){if(t.layer>1){var n=C.a.fromComponents(t.sign,t.layer,Math.floor(t.mag)),i=C.a.fromComponents(t.sign,0,t.mag-n.mag);return n.floor().toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")+i.toStringWithDecimalPlaces(2).substr(1)}return t.floor().toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")}return t.toStringWithDecimalPlaces(e).replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")}},{key:"regularFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return null===t||void 0===t?"NaN":(t=new C.a(t),t.eq(0)?(0).toFixed(e):t.mag<.001?t.toExponential(e):t.toStringWithDecimalPlaces(e))}}]),t}()),hn={name:"igt-sidebar-currency",data:function(){return{wallet:it.game.features.wallet,isCategory:!0,isActive:!1,containerStyle:{marginBottom:"1em"},classes:"text-xl font-bold"}},props:{currency:{required:!0},label:String},computed:{name:function(){return"".concat(cn.formatWhole(this.wallet._currencies[this.currency])," ").concat(this.label||this.currency)},visible:function(){return this.wallet._currencies[this.currency].neq(0)}}},fn=hn,gn=Object(ut["a"])(fn,un,ln,!1,null,"a74b2af2",null),mn=gn.exports,dn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("igt-feature",[n("div",{staticClass:"flex flex-row flex-wrap"},[n("igt-action",{attrs:{action:t.combat.combatAction,description:t.combatCost+" Nanobots"}})],1),n("div",{staticStyle:{"font-size":"x-large",margin:"10px 0"}},[t._v("Next accomplishment at "+t._s(t._f("numberFormatWhole")(t.nextUnlock))+" killed voidlings ("+t._s(t._f("numberFormatWhole")(t.currentKills))+" killed so far)")]),n("div",{staticClass:"flex flex-row flex-wrap"},[t.strongerRequirement.isCompleted?n("igt-upgrade",{attrs:{upgrade:t.combat.stronger,"currency-name":"Void Batteries","can-buy":t.combat.stronger.level.lt(t.combat.stronger.maxLevel)&&t.combat.canAfford(t.combat.stronger)},nativeOn:{click:function(e){return t.combat.buyUpgrade(t.combat.stronger)}}}):t._e(),t.efficiencyRequirement.isCompleted?n("igt-upgrade",{attrs:{upgrade:t.combat.efficiency,"currency-name":"Nanobots","can-buy":t.combat.efficiency.level.lt(t.combat.efficiency.maxLevel)&&t.combat.canAfford(t.combat.efficiency)},nativeOn:{click:function(e){return t.combat.buyUpgrade(t.combat.efficiency)}}}):t._e(),t.massRequirement.isCompleted?n("igt-upgrade",{attrs:{upgrade:t.combat.mass,"can-buy":t.combat.mass.level.lt(t.combat.mass.maxLevel)&&t.combat.canAfford(t.combat.mass)},nativeOn:{click:function(e){return t.combat.buyUpgrade(t.combat.mass)}}}):t._e()],1)])},pn=[],yn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{"p-4 w-72 h-36 border-green-700 border-4 shadow-lg hover-highlight flex flex-row items-center":!0,"bg-green-500":t.canPerform||t.isStarted,"bg-red-500":!(t.canPerform||t.isStarted)},on:{click:function(e){return t.action.toggle()}}},[n("div",{staticClass:"flex flex-col w-full space-y-1"},[n("p",{staticClass:"text-center text-white"},[t._v(t._s(t.action.description)),t.description?n("br"):t._e(),t._v(t._s(t.description))]),n("span",{staticClass:"text-center text-white"},[n("span",{staticClass:"fa fa-clock"}),t._v(" "+t._s(t._f("numberFormat")(t.action.durationFunc())))]),n("igt-progress-bar",{attrs:{percentage:t.progressPercentage}})],1)])},vn=[],bn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"overflow-hidden h-2 mb-4 text-xs flex rounded",class:t.bgClass},[n("div",{staticClass:"shadow-none flex flex-col text-center whitespace-nowrap text-white justify-center",class:t.fgClass,style:{width:100*t.percentage+"%"}})])},wn=[],_n={name:"igt-progress-bar",props:{percentage:{type:Number,required:!0},bgClass:{type:String,default:"bg-pink-200"},fgClass:{type:String,default:"bg-pink-500"}}},Cn=_n,kn=Object(ut["a"])(Cn,bn,wn,!1,null,"5cd368c3",null),xn=kn.exports,Mn={name:"igt-action",components:{IgtProgressBar:xn},props:{action:{type:G,required:!0},description:String},computed:{progress:function(){return this.action.getProgress()},progressPercentage:function(){return this.progress.getPercentage()},canPerform:function(){return this.action.canPerform()},isStarted:function(){return this.action.isStarted}}},On=Mn,Nn=Object(ut["a"])(On,yn,vn,!1,null,"371eaeed",null),Sn=Nn.exports,jn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"btn btn-blue",attrs:{disabled:!t.canBuy}},[n("span",{staticClass:"flex flex-col"},[n("span",[t._v(t._s(t.upgrade.displayName))]),t.hasMax?n("span",[t._v("Lvl. "+t._s(t._f("numberFormatWhole")(t.upgrade.level))+" / "+t._s(t._f("numberFormatWhole")(t.upgrade.maxLevel)))]):n("span",[t._v("Lvl. "+t._s(t._f("numberFormatWhole")(t.upgrade.level)))]),t.upgrade.isMaxLevel()?n("span",[t._v("Max")]):n("span",[t._v(t._s(t._f("numberFormatWhole")(t.upgrade.getCost().amount))+" "+t._s(t.currencyName||t.upgrade.getCost().type))])])])},In=[],Fn={name:"igt-upgrade",props:{upgrade:{type:$,required:!0},canBuy:{type:Boolean,required:!0},currencyName:String},computed:{hasMax:function(){return this.upgrade.maxLevel.neq(C.a.dNumberMax)&&this.upgrade.maxLevel.neq(1/0)}}},An=Fn,Bn=Object(ut["a"])(An,jn,In,!1,null,"55a454b4",null),qn=Bn.exports,En={name:"igt-combat-feature",components:{IgtUpgrade:qn,IgtAction:Sn,IgtFeature:be},data:function(){return{combat:it.game.features.combat,strongerRequirement:new nn(it.game.features.keyItems,S.StrongerWeapons),efficiencyRequirement:new nn(it.game.features.keyItems,S.CombatEfficiency),massRequirement:new nn(it.game.features.keyItems,S.MassMurder)}},computed:{nextUnlock:function(){return[1,10,100,500,1e3,2500,1e4,1e5,1e6].find((function(t){return C.a.sub(1e6,it.game.features.wallet.getAmount(c.Voidlings)).lt(t)}))},currentKills:function(){return C.a.sub(1e6,it.game.features.wallet.getAmount(c.Voidlings))},combatCost:function(){return cn.formatWhole(it.game.features.combat.combatAction.getCombatCost().floor())},combatBots:function(){return it.game.features.wallet.getAmount(c.CombatBots).floor()}}},Vn=En,Tn=Object(ut["a"])(Vn,dn,pn,!1,null,"5a62b0c3",null),Pn=Tn.exports,Wn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("igt-feature",[n("div",{staticClass:"flex flex-row flex-wrap justify-center sm:justify-start"},t._l(t.factory.upgrades.slice(0,4),(function(e,i){return n("div",{key:e.id,staticClass:"factory"},[n("igt-upgrade",{attrs:{upgrade:e,"currency-name":"Void Batteries","can-buy":t.factory.canAfford(e)},nativeOn:{click:function(n){return t.buyUpgrade(e)}}}),n("div",{staticClass:"details"},[n("span",[t._v(t._s(t._f("numberFormatWhole")(t.amounts[i]))+" "+t._s(t.displayNames[i]))]),n("span",[t._v("+"+t._s(t._f("numberFormat")(t.gains[i]))+" "+t._s(t.gainResources[i])+"/s")])])],1)})),0),t.synergyRequirement.isCompleted?n("igt-upgrade",{attrs:{upgrade:t.synergy,"currency-name":"Void Batteries","can-buy":t.factory.canAfford(t.synergy)},nativeOn:{click:function(e){return t.buyUpgrade(t.synergy)}}}):t._e()],1)},Dn=[],Ln={name:"igt-feature-feature",components:{IgtUpgrade:qn,IgtFeature:be},data:function(){return{factory:it.game.features.factory,displayNames:["Factories","Factories Squared","Factories Cubed","Factories Tesseracted"],gainResources:["Nanobots","Factories","Factories Squared","Factories Cubed"],synergyRequirement:new nn(it.game.features.keyItems,S.Synergy)}},methods:{buyUpgrade:function(t){this.factory.buyUpgrade(t)}},computed:{amounts:function(){return[it.game.features.factory.factories.add(it.game.features.factory.factory.getBonus()),it.game.features.factory.factoriesSquared.add(it.game.features.factory.factorySquared.getBonus()),it.game.features.factory.factoriesCubed.add(it.game.features.factory.factoryCubed.getBonus()),it.game.features.factory.factoryTesseracted.getBonus()]},gains:function(){var t=it.game.features.factory.synergy.getBonus(),e=it.game.features.factory.factory.getBonus().pow(t),n=it.game.features.factory.factorySquared.getBonus().pow(t),i=it.game.features.factory.factoryCubed.getBonus().pow(t),r=it.game.features.factory.factoryTesseracted.getBonus().pow(t);return[it.game.features.factory.factories.add(e).times(C.a.pow(2,e)).times(it.game.features.wallet.getCurrencyMultiplier(c.CombatBots)),it.game.features.factory.factoriesSquared.add(n).times(C.a.pow(2,n)),it.game.features.factory.factoriesCubed.add(i).times(C.a.pow(2,i)),r.times(C.a.pow(2,r))]},synergy:function(){return this.factory.synergy}}},Un=Ln,Kn=(n("3f9b"),Object(ut["a"])(Un,Wn,Dn,!1,null,"bb4c6242",null)),Rn=Kn.exports,Gn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("igt-feature",[n("div",{staticClass:"result",class:{isStopped:t.isStopped}},[t._v(t._s(t.currentResult.description))]),t._e(),n("div",{staticClass:"wheel-2",style:{transform:"rotate("+360*-t.current+"deg)",background:"conic-gradient("+t.options.slice(1).reduce((function(e,n,i){return{weight:e.weight+n.weight,gradient:e.gradient+", hsl("+360*(i+1)/t.options.length+", 100%, 50%) "+360*e.weight/t.totalWeight+"deg "+360*(e.weight+n.weight)/t.totalWeight+"deg"}}),{weight:t.options[0].weight,gradient:"red "+360*t.options[0].weight/t.totalWeight+"deg"}).gradient+")"}}),n("button",{staticClass:"wheel-btn btn btn-blue",attrs:{disabled:!t.isStopped},on:{click:function(e){return t.spin()}}},[t._v(" Spin! ")]),t.multispinRequirement.isCompleted?n("igt-upgrade",{attrs:{upgrade:t.multispin,"currency-name":"Nanobots","can-buy":t.multispin.level.lt(t.multispin.maxLevel)&&t.wheel.canAfford(t.multispin)},nativeOn:{click:function(e){return t.wheel.buyUpgrade(t.multispin)}}}):t._e(),t.greaseRequirement.isCompleted?n("igt-upgrade",{attrs:{upgrade:t.grease,"currency-name":"Void Batteries","can-buy":t.grease.level.lt(t.grease.maxLevel)&&t.wheel.canAfford(t.grease)},nativeOn:{click:function(e){return t.wheel.buyUpgrade(t.grease)}}}):t._e()],1)},Yn=[],zn={name:"igt-wheel-feature",components:{IgtUpgrade:qn,IgtFeature:be},data:function(){return{wheel:it.game.features.wheel,multispinRequirement:new nn(it.game.features.keyItems,S.WheelOfFortune),greaseRequirement:new nn(it.game.features.keyItems,S.WheelOfButter)}},computed:{options:function(){return it.game.features.wheel.distribution.outcomes},totalWeight:function(){return it.game.features.wheel.distribution.getTotalWeight()},currentResult:function(){return it.game.features.wheel.distribution.draw(it.game.features.wheel.current%1)},isStopped:function(){return!it.game.features.wheel.isSpinning()},current:function(){return it.game.features.wheel.current%1},multispin:function(){return it.game.features.wheel.multispin},grease:function(){return it.game.features.wheel.grease}},methods:{spin:function(){it.game.features.wheel.spin()}}},$n=zn,Qn=(n("1907"),Object(ut["a"])($n,Gn,Yn,!1,null,"7694784a",null)),Hn=Qn.exports,Xn={components:{IgtCombatFeature:Pn,IgtFactoryFeature:Rn,IgtWheelFeature:Hn,IgtSidebarCurrency:mn,IgtKeyItems:on,IgtSettings:ze,IgtSidebarExternalLink:Ee,IgtSidebarCategory:je,IgtDeveloperPanel:ke,IgtNotifications:St,IgtTab:pt,IgtSidebar:ct},data:function(){return{game:it.game,CurrencyType:c,factoryRequirement:new nn(it.game.features.keyItems,S.Factory),wheelRequirement:new nn(it.game.features.keyItems,S.Wheel)}},computed:{showDevPanel:function(){return!it.inProduction},darkMode:function(){return it.game.features.settings.darkMode.value}}},Zn=Xn,Jn=Object(ut["a"])(Zn,a,s,!1,null,null,null),ti=Jn.exports,ei=n("5611");n("9a56");r["a"].filter("numberFormat",(function(t){return cn.format(t)})),r["a"].filter("numberFormatWhole",(function(t){return cn.formatWhole(t)})),r["a"].filter("dateFormat",(function(t){if(void 0==t)return"";var e=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"long"}).format(t),i=new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t),r=t.getHours(),a=r<10?"0".concat(r):"".concat(r),s=t.getMinutes(),o=s<10?"0".concat(s):"".concat(s);return"".concat(i," ").concat(n," ").concat(e," ").concat(a,":").concat(o)})),r["a"].filter("humanizeString",(function(t){return void 0==t?"":(t=t.charAt(0).toUpperCase()+t.slice(1),t.replace("_"," ").replace("-"," "),t)}));n("07e0");r["a"].config.productionTip=!1,r["a"].use(ei["a"]),window.onload=function(){it.start(),console.log("Exposing App to console"),window.App=it,console.log("Launched"),new r["a"]({render:function(t){return t(ti)}}).$mount("#app")}},f391:function(t,e,n){},ffb8:function(t,e,n){}}); //# sourceMappingURL=index.7410a362.js.map