(function(){var n={5679:function(n,e,o){"use strict";o.d(e,{b:function(){return r}});var r,t=o(5082),l={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#eee","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},stackedInfoboxes:!1,floatingTabs:!0,showSingleTab:!1,mergeAdjacent:!0};(function(n){n["Classic"]="classic",n["Paper"]="paper",n["Nordic"]="nordic",n["Aqua"]="aqua"})(r||(r={})),e["Z"]={classic:l,paper:(0,t.Z)((0,t.Z)({},l),{},{variables:(0,t.Z)((0,t.Z)({},l.variables),{},{"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"}),stackedInfoboxes:!0,floatingTabs:!1}),nordic:(0,t.Z)((0,t.Z)({},l),{},{variables:(0,t.Z)((0,t.Z)({},l.variables),{},{"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"}),stackedInfoboxes:!0,floatingTabs:!1}),aqua:(0,t.Z)((0,t.Z)({},l),{},{variables:(0,t.Z)((0,t.Z)({},l.variables),{},{"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"})})}},6113:function(n,e,o){"use strict";o.d(e,{wA:function(){return l},tj:function(){return i},QI:function(){return a},EE:function(){return r},tZ:function(){return f},Rh:function(){return m}});o(3336),o(2526),o(1817),o(1539),o(4747),o(7941),o(9706);var r,t=o(9583),l=(o(4865),Symbol("Component")),i=Symbol("GatherProps"),u=0;function a(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:"feature-";return function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](u++):e+u++}()}function f(n){return n[t.mM]=!0,n}function m(n,e,o){void 0===n[e]&&function(){return void 0!==o&&null!==o&&o[Symbol.for("!=")]?o[Symbol.for("!=")](void 0):void 0!=o}()&&(n[e]=o)}(function(n){n[n["Visible"]=0]="Visible",n[n["Hidden"]=1]="Hidden",n[n["None"]=2]="None"})(r||(r={}))},630:function(n,e,o){"use strict";o.d(e,{Z:function(){return r},w:function(){return t}});o(2526),o(1817),o(1539);var r=Symbol("RegisterLinkNode"),t=Symbol("UnregisterLinkNode")},7302:function(n,e,o){"use strict";o.r(e),o.d(e,{globalBus:function(){return m},startGameLoop:function(){return d}});var r=o(8534),t=(o(5666),o(2526),o(1817),o(1539),o(7042),o(86),o(8783),o(3948),o(2345)),l=o(9706),i=o(8111),u=o(5967),a=o(9266),f=o(3032),m=(0,i.i)(),s=null,c=null;function y(){var n,e=Date.now(),o=function(){return e-u.Z.time!==void 0&&e-u.Z.time!==null&&(e-u.Z.time)[Symbol.for("/")]?(e-u.Z.time)[Symbol.for("/")](1e3):(e-u.Z.time)/1e3}();u.Z.time=e;var r=o;if(f.Z.lastTenTicks.push(r),function(){return void 0!==f.Z.lastTenTicks.length&&null!==f.Z.lastTenTicks.length&&f.Z.lastTenTicks.length[Symbol.for(">")]?f.Z.lastTenTicks.length[Symbol.for(">")](10):f.Z.lastTenTicks.length>10}()&&(f.Z.lastTenTicks=f.Z.lastTenTicks.slice(1)),!(function(){return void 0!==(n=c)&&null!==(n=c)&&(n=c)[Symbol.for("!==")]?(n=c)[Symbol.for("!==")](null):null!==(n=c)}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](void 0):void 0!==n}()&&n.value&&function(){return void 0!==u.Z.keepGoing&&null!==u.Z.keepGoing&&u.Z.keepGoing[Symbol.for("!")]?u.Z.keepGoing[Symbol.for("!")]():!u.Z.keepGoing}())&&!f.Z.hasNaN&&(o=new l.ZP(o).max(0),0!==u.Z.devSpeed)){if(function(){return void 0!==u.Z.offlineTime&&null!==u.Z.offlineTime&&u.Z.offlineTime[Symbol.for("!=")]?u.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=u.Z.offlineTime}()){if(l.ZP.gt(u.Z.offlineTime,function(){return void 0!==t.offlineLimit&&null!==t.offlineLimit&&t.offlineLimit[Symbol.for("*")]?t.offlineLimit[Symbol.for("*")](3600):3600*t.offlineLimit}())&&(u.Z.offlineTime=new l.ZP(function(){return void 0!==t.offlineLimit&&null!==t.offlineLimit&&t.offlineLimit[Symbol.for("*")]?t.offlineLimit[Symbol.for("*")](3600):3600*t.offlineLimit}())),l.ZP.gt(u.Z.offlineTime,0)&&function(){return void 0!==u.Z.devSpeed&&null!==u.Z.devSpeed&&u.Z.devSpeed[Symbol.for("!==")]?u.Z.devSpeed[Symbol.for("!==")](0):0!==u.Z.devSpeed}()){var i=l.ZP.div(u.Z.offlineTime,10).max(o);u.Z.offlineTime=l.ZP.sub(u.Z.offlineTime,i),o=o.add(i)}else 0===u.Z.devSpeed&&(u.Z.offlineTime=l.ZP.add(u.Z.offlineTime,o));(function(){return void 0!==u.Z.offlineProd&&null!==u.Z.offlineProd&&u.Z.offlineProd[Symbol.for("!")]?u.Z.offlineProd[Symbol.for("!")]():!u.Z.offlineProd}()||l.ZP.lt(u.Z.offlineTime,0))&&(u.Z.offlineTime=null)}o=l.ZP.min(o,t.maxTickLength),function(){return void 0!==u.Z.devSpeed&&null!==u.Z.devSpeed&&u.Z.devSpeed[Symbol.for("!=")]?u.Z.devSpeed[Symbol.for("!=")](void 0):void 0!=u.Z.devSpeed}()&&(o=o.times(u.Z.devSpeed)),o.eq(0)||(u.Z.timePlayed=l.ZP.add(u.Z.timePlayed,o),m.emit("update",o,r),a.ZP.unthrottled?(requestAnimationFrame(y),function(){return void 0!==s&&null!==s&&s[Symbol.for("!=")]?s[Symbol.for("!=")](null):null!=s}()&&(clearInterval(s),s=null)):function(){return void 0!==s&&null!==s&&s[Symbol.for("==")]?s[Symbol.for("==")](null):null==s}()&&(s=setInterval(y,50)))}}function d(){return b.apply(this,arguments)}function b(){return b=(0,r.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Promise.resolve().then(o.bind(o,8097));case 2:c=n.sent.hasWon,a.ZP.unthrottled?requestAnimationFrame(y):s=setInterval(y,50);case 4:case"end":return n.stop()}}),n)}))),b.apply(this,arguments)}},4061:function(n,e,o){"use strict";o.d(e,{ax:function(){return c}});var r=o(9584),t=o(3336),l=(o(2526),o(1817),o(1539),o(4747),o(7941),o(6699),o(2222),o(7302)),i=o(9706),u=o(3273),a=o(3577),f=o(4865),m=Symbol("PersistentState"),s=Symbol("DefaultValue");function c(n){var e=(0,f.isRef)(n)?n:(0,f.ref)(n);return e[m]=e,e[s]=(0,f.isRef)(n)?n.value:n,e}l.globalBus.on("addLayer",(function(n,e){var o=[],l=function n(l){var c=arguments,y=function(){return void 0!==c.length&&null!==c.length&&c.length[Symbol.for(">")]?c.length[Symbol.for(">")](1):c.length>1}()&&function(){return void 0!==c[1]&&null!==c[1]&&c[1][Symbol.for("!==")]?c[1][Symbol.for("!==")](void 0):void 0!==c[1]}()?arguments[1]:[],d=!1;return Object.keys(l).forEach((function(c){var b=l[c];if(b&&"object"===(0,t.Z)(b))if(function(){return void 0!==m&&null!==m&&m[Symbol.for("in")]?m[Symbol.for("in")](b):m in b}()){d=!0;var v=y.reduce((function(n,e){return function(){return e in n!==void 0&&e in n!==null&&(e in n)[Symbol.for("!")]?(e in n)[Symbol.for("!")]():!(e in n)}()&&(n[e]={}),n[e]}),e),S=v[c];v[c]=b[m],!function(){return void 0!==S&&null!==S&&S[Symbol.for("!=")]?S[Symbol.for("!=")](null):null!=S}()?v[c].value=b[s]:v[c].value=S}else if(function(){return b instanceof i.ZP!==void 0&&b instanceof i.ZP!==null&&(b instanceof i.ZP)[Symbol.for("!")]?(b instanceof i.ZP)[Symbol.for("!")]():!(b instanceof i.ZP)}()&&function(){return void 0!==(0,f.isRef)(b)&&null!==(0,f.isRef)(b)&&(0,f.isRef)(b)[Symbol.for("!")]?(0,f.isRef)(b)[Symbol.for("!")]():!(0,f.isRef)(b)}()&&function(){return void 0!==o.includes(b)&&null!==o.includes(b)&&o.includes(b)[Symbol.for("!")]?o.includes(b)[Symbol.for("!")]():!o.includes(b)}()){"symbol"===(0,t.Z)(b.type)&&o.push(b);var g=n(b,[].concat((0,r.Z)(y),[c]));g&&((0,a.kJ)(b)&&function(){return void 0!==(0,a.kJ)(l)&&null!==(0,a.kJ)(l)&&(0,a.kJ)(l)[Symbol.for("!")]?(0,a.kJ)(l)[Symbol.for("!")]():!(0,a.kJ)(l)}()?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",function(){return void 0!==u.Le&&null!==u.Le&&u.Le[Symbol.for("in")]?u.Le[Symbol.for("in")](l):u.Le in l}()?l[u.Le]:l,c):d=!0)}})),d};l(n)}))},5967:function(n,e,o){"use strict";o.d(e,{U:function(){return c}});var r,t=o(2482),l=o(9584),i=(o(2526),o(1817),o(1539),o(8862),o(2222),o(7556),o(1299),o(1037),o(5003),o(9706)),u=o(1349),a=o(3273),f=o(4865),m=o(3032),s=(0,f.reactive)({id:"",devSpeed:null,name:"",tabs:[],time:function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:new i.ZP(0),keepGoing:!1,modID:"",modVersion:"",layers:{}});function c(n){return JSON.stringify(n,(function(n,e){return(0,f.unref)(e)}))}var y={get:function(n,e){if(e===a.Le||e===a.c4)return n[e];var o=n[a.Le][e];if(function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")]("value"):"value"!==e}()&&(0,u.PO)(o)&&function(){return o instanceof i.ZP!==void 0&&o instanceof i.ZP!==null&&(o instanceof i.ZP)[Symbol.for("!")]?(o instanceof i.ZP)[Symbol.for("!")]():!(o instanceof i.ZP)}()){if(function(){var r,t;return void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](null===(r=n[e])||void 0===r?void 0:r[a.Le]):o!==(null===(t=n[e])||void 0===t?void 0:t[a.Le])}()){var r,f=[].concat((0,l.Z)(n[a.c4]),[e]);n[e]=new Proxy((r={},(0,t.Z)(r,a.Le,o),(0,t.Z)(r,a.c4,f),r),y)}return n[e]}return o},set:function(n,e,o,r){if(function(){return void 0!==m.Z.hasNaN&&null!==m.Z.hasNaN&&m.Z.hasNaN[Symbol.for("!")]?m.Z.hasNaN[Symbol.for("!")]():!m.Z.hasNaN}()&&("number"===typeof o&&isNaN(o)||o instanceof i.ZP&&(isNaN(o.sign)||isNaN(o.layer)||isNaN(o.mag)))){var t=n[a.Le][e];if(function(){return void 0!==("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&null!==("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))&&("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]?("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))[Symbol.for("!")]():!("number"===typeof t&&isNaN(t)||t instanceof i.ZP&&(isNaN(t.sign)||isNaN(t.layer)||isNaN(t.mag)))}())throw s.autosave=!1,m.Z.hasNaN=!0,m.Z.NaNPath=[].concat((0,l.Z)(n[a.c4]),[e]),m.Z.NaNReceiver=r,console.error("Attempted to set NaN value",[].concat((0,l.Z)(n[a.c4]),[e]),n[a.Le]),"Attempted to set NaN value. See above for details"}return n[a.Le][e]=o,!0},ownKeys:function(n){return Reflect.ownKeys(n[a.Le])},has:function(n,e){return Reflect.has(n[a.Le],e)},getOwnPropertyDescriptor:function(n,e){return Object.getOwnPropertyDescriptor(n[a.Le],e)}};e["Z"]=window.player=new Proxy((r={},(0,t.Z)(r,a.Le,s),(0,t.Z)(r,a.c4,["player"]),r),y)},9266:function(n,e,o){"use strict";o.d(e,{ri:function(){return m},V$:function(){return s}});var r=o(3336),t=(o(8862),o(2526),o(1817),o(1539),o(2345)),l=o(5679),i=o(7302),u=o(463),a=o(4865),f=(0,a.reactive)({active:"",saves:[],showTPS:!0,theme:l.b.Nordic,unthrottled:!1});function m(){try{var n=localStorage.getItem(t.id);if(function(){return void 0!==n&&null!==n&&n[Symbol.for("!=")]?n[Symbol.for("!=")](null):null!=n}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](""):""!==n}()){var e=JSON.parse(decodeURIComponent(escape(atob(n))));"object"===(0,r.Z)(e)&&Object.assign(f,e)}i.globalBus.emit("loadSettings",f)}catch(o){}}(0,a.watch)(f,(function(n){return localStorage.setItem(t.id,btoa(unescape(encodeURIComponent(JSON.stringify(n)))))}),{deep:!0}),e["ZP"]=window.settings=f;window.hardResetSettings=function(){var n={active:"",saves:[],showTPS:!0,theme:l.b.Nordic};i.globalBus.emit("loadSettings",n),Object.assign(f,n),(0,u.y6)()};var s=(0,a.reactive)([])},3032:function(n,e,o){"use strict";var r=o(4865);e["Z"]=window.state=(0,r.shallowReactive)({lastTenTicks:[],hasNaN:!1,NaNPath:[]})},1008:function(n,e,o){"use strict";o.d(e,{Z:function(){return W}});var r,t,l,i,u,a,f,m,s,c,y,d=o(3087),b=o(2833),v=o(2482),S=o(3336),g=(o(658),o(2526),o(1817),o(1539),o(9653),o(6977),o(2420),o(3689),o(5192),o(1703),o(9714),o(86),o(4916),o(5306),o(3123),o(3210),o(2481),o(1354),o(4914),17),h=9e15,p=Math.log10(9e15),N=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](9e15):1/9e15}(),k=308,M=function(){return 324[Symbol.for("minus")]?324[Symbol.for("minus")]():-324}(),Z=5,V=!0,w=!1,x=function(){for(var n=[],e=function(){return void 0!==M&&null!==M&&M[Symbol.for("+")]?M[Symbol.for("+")](1):M+1}();function(){return void 0!==e&&null!==e&&e[Symbol.for("<=")]?e[Symbol.for("<=")](k):e<=k}();function(){return void 0!==e&&null!==e&&"object"===(0,S.Z)(e)&&e[Symbol.for("postfix-increment")]?e[Symbol.for("postfix-increment")]():e++}())n.push(Number(function(){return"1e"[Symbol.for("+")]?"1e"[Symbol.for("+")](e):"1e"+e}()));var o=323;return function(e){return n[function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](o):e+o}()]}}(),C=[2,Math.E,3,4,5,6,7,8,9,10],E=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],B=[[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.9194161097107025[Symbol.for("minus")]?.9194161097107025[Symbol.for("minus")]():-.9194161097107025}(),function(){return.8335625019330468[Symbol.for("minus")]?.8335625019330468[Symbol.for("minus")]():-.8335625019330468}(),function(){return.7425599821143978[Symbol.for("minus")]?.7425599821143978[Symbol.for("minus")]():-.7425599821143978}(),function(){return.6466611521029437[Symbol.for("minus")]?.6466611521029437[Symbol.for("minus")]():-.6466611521029437}(),function(){return.5462617907227869[Symbol.for("minus")]?.5462617907227869[Symbol.for("minus")]():-.5462617907227869}(),function(){return.4419033816638769[Symbol.for("minus")]?.4419033816638769[Symbol.for("minus")]():-.4419033816638769}(),function(){return.3342645487554494[Symbol.for("minus")]?.3342645487554494[Symbol.for("minus")]():-.3342645487554494}(),function(){return.224140440909962[Symbol.for("minus")]?.224140440909962[Symbol.for("minus")]():-.224140440909962}(),function(){return.11241087890006762[Symbol.for("minus")]?.11241087890006762[Symbol.for("minus")]():-.11241087890006762}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.90603157029014[Symbol.for("minus")]?.90603157029014[Symbol.for("minus")]():-.90603157029014}(),function(){return.80786507256596[Symbol.for("minus")]?.80786507256596[Symbol.for("minus")]():-.80786507256596}(),function(){return.7064666939634[Symbol.for("minus")]?.7064666939634[Symbol.for("minus")]():-.7064666939634}(),function(){return.60294836853664[Symbol.for("minus")]?.60294836853664[Symbol.for("minus")]():-.60294836853664}(),function(){return.49849837513117[Symbol.for("minus")]?.49849837513117[Symbol.for("minus")]():-.49849837513117}(),function(){return.39430303318768[Symbol.for("minus")]?.39430303318768[Symbol.for("minus")]():-.39430303318768}(),function(){return.29147201034755[Symbol.for("minus")]?.29147201034755[Symbol.for("minus")]():-.29147201034755}(),function(){return.19097820800866[Symbol.for("minus")]?.19097820800866[Symbol.for("minus")]():-.19097820800866}(),function(){return.09361896280296[Symbol.for("minus")]?.09361896280296[Symbol.for("minus")]():-.09361896280296}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.9021579584316141[Symbol.for("minus")]?.9021579584316141[Symbol.for("minus")]():-.9021579584316141}(),function(){return.8005762598234203[Symbol.for("minus")]?.8005762598234203[Symbol.for("minus")]():-.8005762598234203}(),function(){return.6964780623319391[Symbol.for("minus")]?.6964780623319391[Symbol.for("minus")]():-.6964780623319391}(),function(){return.5911906810998454[Symbol.for("minus")]?.5911906810998454[Symbol.for("minus")]():-.5911906810998454}(),function(){return.486050182576545[Symbol.for("minus")]?.486050182576545[Symbol.for("minus")]():-.486050182576545}(),function(){return.3823089430815083[Symbol.for("minus")]?.3823089430815083[Symbol.for("minus")]():-.3823089430815083}(),function(){return.28106046722897615[Symbol.for("minus")]?.28106046722897615[Symbol.for("minus")]():-.28106046722897615}(),function(){return.1831906535795894[Symbol.for("minus")]?.1831906535795894[Symbol.for("minus")]():-.1831906535795894}(),function(){return.08935809204418144[Symbol.for("minus")]?.08935809204418144[Symbol.for("minus")]():-.08935809204418144}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8917227442365535[Symbol.for("minus")]?.8917227442365535[Symbol.for("minus")]():-.8917227442365535}(),function(){return.781258746326964[Symbol.for("minus")]?.781258746326964[Symbol.for("minus")]():-.781258746326964}(),function(){return.6705130326902455[Symbol.for("minus")]?.6705130326902455[Symbol.for("minus")]():-.6705130326902455}(),function(){return.5612813129406509[Symbol.for("minus")]?.5612813129406509[Symbol.for("minus")]():-.5612813129406509}(),function(){return.4551067709033134[Symbol.for("minus")]?.4551067709033134[Symbol.for("minus")]():-.4551067709033134}(),function(){return.35319256652135966[Symbol.for("minus")]?.35319256652135966[Symbol.for("minus")]():-.35319256652135966}(),function(){return.2563741554088552[Symbol.for("minus")]?.2563741554088552[Symbol.for("minus")]():-.2563741554088552}(),function(){return.1651412821106526[Symbol.for("minus")]?.1651412821106526[Symbol.for("minus")]():-.1651412821106526}(),function(){return.0796919581982668[Symbol.for("minus")]?.0796919581982668[Symbol.for("minus")]():-.0796919581982668}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8843387974366064[Symbol.for("minus")]?.8843387974366064[Symbol.for("minus")]():-.8843387974366064}(),function(){return.7678744063886243[Symbol.for("minus")]?.7678744063886243[Symbol.for("minus")]():-.7678744063886243}(),function(){return.6529563724510552[Symbol.for("minus")]?.6529563724510552[Symbol.for("minus")]():-.6529563724510552}(),function(){return.5415870994657841[Symbol.for("minus")]?.5415870994657841[Symbol.for("minus")]():-.5415870994657841}(),function(){return.4352842206588936[Symbol.for("minus")]?.4352842206588936[Symbol.for("minus")]():-.4352842206588936}(),function(){return.33504449124791424[Symbol.for("minus")]?.33504449124791424[Symbol.for("minus")]():-.33504449124791424}(),function(){return.24138853420685147[Symbol.for("minus")]?.24138853420685147[Symbol.for("minus")]():-.24138853420685147}(),function(){return.15445285440944467[Symbol.for("minus")]?.15445285440944467[Symbol.for("minus")]():-.15445285440944467}(),function(){return.07409659641336663[Symbol.for("minus")]?.07409659641336663[Symbol.for("minus")]():-.07409659641336663}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8786709358426346[Symbol.for("minus")]?.8786709358426346[Symbol.for("minus")]():-.8786709358426346}(),function(){return.7577735191184886[Symbol.for("minus")]?.7577735191184886[Symbol.for("minus")]():-.7577735191184886}(),function(){return.6399546189952064[Symbol.for("minus")]?.6399546189952064[Symbol.for("minus")]():-.6399546189952064}(),function(){return.527284921869926[Symbol.for("minus")]?.527284921869926[Symbol.for("minus")]():-.527284921869926}(),function(){return.4211627631006314[Symbol.for("minus")]?.4211627631006314[Symbol.for("minus")]():-.4211627631006314}(),function(){return.3223479611761232[Symbol.for("minus")]?.3223479611761232[Symbol.for("minus")]():-.3223479611761232}(),function(){return.23107655627789858[Symbol.for("minus")]?.23107655627789858[Symbol.for("minus")]():-.23107655627789858}(),function(){return.1472057700818259[Symbol.for("minus")]?.1472057700818259[Symbol.for("minus")]():-.1472057700818259}(),function(){return.07035171210706326[Symbol.for("minus")]?.07035171210706326[Symbol.for("minus")]():-.07035171210706326}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8740862815291583[Symbol.for("minus")]?.8740862815291583[Symbol.for("minus")]():-.8740862815291583}(),function(){return.7497032990976209[Symbol.for("minus")]?.7497032990976209[Symbol.for("minus")]():-.7497032990976209}(),function(){return.6297119746181752[Symbol.for("minus")]?.6297119746181752[Symbol.for("minus")]():-.6297119746181752}(),function(){return.5161838335958787[Symbol.for("minus")]?.5161838335958787[Symbol.for("minus")]():-.5161838335958787}(),function(){return.41036238255751956[Symbol.for("minus")]?.41036238255751956[Symbol.for("minus")]():-.41036238255751956}(),function(){return.31277212146489963[Symbol.for("minus")]?.31277212146489963[Symbol.for("minus")]():-.31277212146489963}(),function(){return.2233976621705518[Symbol.for("minus")]?.2233976621705518[Symbol.for("minus")]():-.2233976621705518}(),function(){return.1418697367979619[Symbol.for("minus")]?.1418697367979619[Symbol.for("minus")]():-.1418697367979619}(),function(){return.06762117662323441[Symbol.for("minus")]?.06762117662323441[Symbol.for("minus")]():-.06762117662323441}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8702632331800649[Symbol.for("minus")]?.8702632331800649[Symbol.for("minus")]():-.8702632331800649}(),function(){return.7430366914122081[Symbol.for("minus")]?.7430366914122081[Symbol.for("minus")]():-.7430366914122081}(),function(){return.6213373075161548[Symbol.for("minus")]?.6213373075161548[Symbol.for("minus")]():-.6213373075161548}(),function(){return.5072025698095242[Symbol.for("minus")]?.5072025698095242[Symbol.for("minus")]():-.5072025698095242}(),function(){return.40171437727184167[Symbol.for("minus")]?.40171437727184167[Symbol.for("minus")]():-.40171437727184167}(),function(){return.30517930701410456[Symbol.for("minus")]?.30517930701410456[Symbol.for("minus")]():-.30517930701410456}(),function(){return.21736343968190863[Symbol.for("minus")]?.21736343968190863[Symbol.for("minus")]():-.21736343968190863}(),function(){return.137710238299109[Symbol.for("minus")]?.137710238299109[Symbol.for("minus")]():-.137710238299109}(),function(){return.06550774483471955[Symbol.for("minus")]?.06550774483471955[Symbol.for("minus")]():-.06550774483471955}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8670016295947213[Symbol.for("minus")]?.8670016295947213[Symbol.for("minus")]():-.8670016295947213}(),function(){return.7373984232432306[Symbol.for("minus")]?.7373984232432306[Symbol.for("minus")]():-.7373984232432306}(),function(){return.6143173985094293[Symbol.for("minus")]?.6143173985094293[Symbol.for("minus")]():-.6143173985094293}(),function(){return.49973884395492807[Symbol.for("minus")]?.49973884395492807[Symbol.for("minus")]():-.49973884395492807}(),function(){return.394584953527678[Symbol.for("minus")]?.394584953527678[Symbol.for("minus")]():-.394584953527678}(),function(){return.2989649949848695[Symbol.for("minus")]?.2989649949848695[Symbol.for("minus")]():-.2989649949848695}(),function(){return.21245647317021688[Symbol.for("minus")]?.21245647317021688[Symbol.for("minus")]():-.21245647317021688}(),function(){return.13434688362382652[Symbol.for("minus")]?.13434688362382652[Symbol.for("minus")]():-.13434688362382652}(),function(){return.0638072667348083[Symbol.for("minus")]?.0638072667348083[Symbol.for("minus")]():-.0638072667348083}(),0],[function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),function(){return.8641642839543857[Symbol.for("minus")]?.8641642839543857[Symbol.for("minus")]():-.8641642839543857}(),function(){return.732534623168535[Symbol.for("minus")]?.732534623168535[Symbol.for("minus")]():-.732534623168535}(),function(){return.6083127477059322[Symbol.for("minus")]?.6083127477059322[Symbol.for("minus")]():-.6083127477059322}(),function(){return.4934049257184696[Symbol.for("minus")]?.4934049257184696[Symbol.for("minus")]():-.4934049257184696}(),function(){return.3885773075899922[Symbol.for("minus")]?.3885773075899922[Symbol.for("minus")]():-.3885773075899922}(),function(){return.29376029055315767[Symbol.for("minus")]?.29376029055315767[Symbol.for("minus")]():-.29376029055315767}(),function(){return.2083678561173622[Symbol.for("minus")]?.2083678561173622[Symbol.for("minus")]():-.2083678561173622}(),function(){return.13155653399373268[Symbol.for("minus")]?.13155653399373268[Symbol.for("minus")]():-.13155653399373268}(),function(){return.062401588652553186[Symbol.for("minus")]?.062401588652553186[Symbol.for("minus")]():-.062401588652553186}(),0]],I=function(n){return W.fromValue_noAlloc(n)},P=function(n,e,o){return W.fromComponents(n,e,o)},F=function(n,e,o){return W.fromComponents_noNormalize(n,e,o)},D=function(n,e){var o=function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](1):e+1}(),r=Math.ceil(Math.log10(Math.abs(n))),t=function(){return void 0!==Math.round(n*Math.pow(10,o-r))&&null!==Math.round(n*Math.pow(10,o-r))&&Math.round(n*Math.pow(10,o-r))[Symbol.for("*")]?Math.round(n*Math.pow(10,o-r))[Symbol.for("*")](Math.pow(10,r-o)):Math.round(n*Math.pow(10,o-r))*Math.pow(10,r-o)}();return parseFloat(t.toFixed(Math.max(function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](r):o-r}(),0)))},T=function(n){return function(){return void 0!==Math.sign(n)&&null!==Math.sign(n)&&Math.sign(n)[Symbol.for("*")]?Math.sign(n)[Symbol.for("*")](Math.log10(Math.abs(n))):Math.sign(n)*Math.log10(Math.abs(n))}()},_=function(n){if(function(){return void 0!==isFinite(n)&&null!==isFinite(n)&&isFinite(n)[Symbol.for("!")]?isFinite(n)[Symbol.for("!")]():!isFinite(n)}())return n;if(function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](-50):n<-50}())return n===Math.trunc(n)?Number.NEGATIVE_INFINITY:0;var e=1;while(function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](10):n<10}())e=function(){return void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](n):e*n}(),function(){void 0!==n&&null!==n&&"object"===(0,S.Z)(n)&&n[Symbol.for("prefix-increment")]?n[Symbol.for("prefix-increment")]():++n}();n=function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](1):n-1}();var o=.9189385332046727;o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]((n+.5)*Math.log(n)):o+(n+.5)*Math.log(n)}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](n):o-n}();var r=function(){return void 0!==n&&null!==n&&n[Symbol.for("*")]?n[Symbol.for("*")](n):n*n}(),t=n;return o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(12*t)):o+1/(12*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(360*t)):o+1/(360*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(1260*t)):o+1/(1260*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(1680*t)):o+1/(1680*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](1/(1188*t)):o+1/(1188*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](691/(360360*t)):o+691/(360360*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](7/(1092*t)):o+7/(1092*t)}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](3617/(122400*t)):o+3617/(122400*t)}(),function(){return void 0!==Math.exp(o)&&null!==Math.exp(o)&&Math.exp(o)[Symbol.for("/")]?Math.exp(o)[Symbol.for("/")](e):Math.exp(o)/e}()},O=.5671432904097838,R=function(n){var e,o,r=arguments,t=function(){return void 0!==r.length&&null!==r.length&&r.length[Symbol.for(">")]?r.length[Symbol.for(">")](1):r.length>1}()&&function(){return void 0!==r[1]&&null!==r[1]&&r[1][Symbol.for("!==")]?r[1][Symbol.for("!==")](void 0):void 0!==r[1]}()?arguments[1]:1e-10;if(function(){return void 0!==Number.isFinite(n)&&null!==Number.isFinite(n)&&Number.isFinite(n)[Symbol.for("!")]?Number.isFinite(n)[Symbol.for("!")]():!Number.isFinite(n)}())return n;if(0===n)return n;if(1===n)return O;e=function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](10):n<10}()?0:function(){return void 0!==Math.log(n)&&null!==Math.log(n)&&Math.log(n)[Symbol.for("-")]?Math.log(n)[Symbol.for("-")](Math.log(Math.log(n))):Math.log(n)-Math.log(Math.log(n))}();for(var l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](100):l<100}();function(){return void 0!==l&&null!==l&&"object"===(0,S.Z)(l)&&l[Symbol.for("prefix-increment")]?l[Symbol.for("prefix-increment")]():++l}()){if(o=function(){return n*Math.exp(-e)+e*e!==void 0&&n*Math.exp(-e)+e*e!==null&&(n*Math.exp(-e)+e*e)[Symbol.for("/")]?(n*Math.exp(-e)+e*e)[Symbol.for("/")](e+1):(n*Math.exp(-e)+e*e)/(e+1)}(),function(){return void 0!==Math.abs(o-e)&&null!==Math.abs(o-e)&&Math.abs(o-e)[Symbol.for("<")]?Math.abs(o-e)[Symbol.for("<")](t*Math.abs(o)):Math.abs(o-e)")]?l.length[Symbol.for(">")](1):l.length>1}()&&function(){return void 0!==l[1]&&null!==l[1]&&l[1][Symbol.for("!==")]?l[1][Symbol.for("!==")](void 0):void 0!==l[1]}()?arguments[1]:1e-10;if(function(){return void 0!==Number.isFinite(n.mag)&&null!==Number.isFinite(n.mag)&&Number.isFinite(n.mag)[Symbol.for("!")]?Number.isFinite(n.mag)[Symbol.for("!")]():!Number.isFinite(n.mag)}())return n;if(n===W.dZero)return n;if(n===W.dOne)return I(O);W.abs(n);e=W.ln(n);for(var u=0;function(){return void 0!==u&&null!==u&&u[Symbol.for("<")]?u[Symbol.for("<")](100):u<100}();function(){return void 0!==u&&null!==u&&"object"===(0,S.Z)(u)&&u[Symbol.for("prefix-increment")]?u[Symbol.for("prefix-increment")]():++u}()){if(o=W.exp(function(){return void 0!==e&&null!==e&&e[Symbol.for("minus")]?e[Symbol.for("minus")]():-e}()),r=e.sub(n.mul(o)),t=e.sub(r.div(e.add(1).sub(e.add(2).mul(r).div(W.mul(2,e).add(2))))),W.abs(t.sub(e)).lt(W.abs(t).mul(i)))return t;e=t}throw Error("Iteration failed to converge: ".concat(n.toString()))}r=Symbol.for("+"),t=Symbol.for("-"),l=Symbol.for("*"),i=Symbol.for("/"),u=Symbol.for("minus"),a=Symbol.for("=="),f=Symbol.for(">"),m=Symbol.for("<"),s=Symbol.for(">="),c=Symbol.for("<="),y=Symbol.for("!=");var W=function(n,e,o,r,t,l,i,u,a,f,m){function s(n){(0,d.Z)(this,s),(0,v.Z)(this,"sign",Number.NaN),(0,v.Z)(this,"mag",Number.NaN),(0,v.Z)(this,"layer",Number.NaN),n instanceof s||function(){return void 0!==n&&null!==n&&n[Symbol.for("!=")]?n[Symbol.for("!=")](null):null!=n}()&&"object"===(0,S.Z)(n)&&function(){return"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](n):"sign"in n}()&&function(){return"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](n):"mag"in n}()&&function(){return"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](n):"layer"in n}()?this.fromDecimal(n):"number"===typeof n?this.fromNumber(n):"string"===typeof n?this.fromString(n):(this.sign=0,this.layer=0,this.mag=0)}return(0,b.Z)(s,[{key:"m",get:function(){var n=this;if(0===this.sign)return 0;if(0===this.layer){var e,o=Math.floor(Math.log10(this.mag));return e=5e-324===this.mag?5:function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("/")]?n.mag[Symbol.for("/")](x(o)):n.mag/x(o)}(),function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](e):n.sign*e}()}if(1===this.layer){var r=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("-")]?n.mag[Symbol.for("-")](Math.floor(n.mag)):n.mag-Math.floor(n.mag)}();return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](Math.pow(10,r)):n.sign*Math.pow(10,r)}()}return this.sign},set:function(n){var e=this;!function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<=")]?e.layer[Symbol.for("<=")](2):e.layer<=2}()?(this.sign=Math.sign(n),0===this.sign&&(this.layer,this.exponent)):this.fromMantissaExponent(n,this.e)}},{key:"e",get:function(){var n=this;return 0===this.sign?0:0===this.layer?Math.floor(Math.log10(this.mag)):1===this.layer?Math.floor(this.mag):2===this.layer?Math.floor(function(){return void 0!==Math.sign(n.mag)&&null!==Math.sign(n.mag)&&Math.sign(n.mag)[Symbol.for("*")]?Math.sign(n.mag)[Symbol.for("*")](Math.pow(10,Math.abs(n.mag))):Math.sign(n.mag)*Math.pow(10,Math.abs(n.mag))}()):function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("*")]?n.mag[Symbol.for("*")](Number.POSITIVE_INFINITY):n.mag*Number.POSITIVE_INFINITY}()},set:function(n){this.fromMantissaExponent(this.m,n)}},{key:"s",get:function(){return this.sign},set:function(n){0===n?(this.sign=0,this.layer=0,this.mag=0):this.sign=n}},{key:"mantissa",get:function(){return this.m},set:function(n){this.m=n}},{key:"exponent",get:function(){return this.e},set:function(n){this.e=n}},{key:n,value:function(n){return this.add(n)}},{key:e,value:function(n){return this.sub(n)}},{key:o,value:function(n){return this.times(n)}},{key:r,value:function(n){return this.div(n)}},{key:t,value:function(){return this.neg()}},{key:l,value:function(n){return this.eq(n)}},{key:i,value:function(n){return this.gt(n)}},{key:u,value:function(n){return this.lt(n)}},{key:a,value:function(n){return this.gte(n)}},{key:f,value:function(n){return this.lte(n)}},{key:m,value:function(n){return this.neq(n)}},{key:"normalize",value:function(){var n=this;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&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()&&(this.mag=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("minus")]?n.mag[Symbol.for("minus")]():-n.mag}(),this.sign=function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("minus")]?n.sign[Symbol.for("minus")]():-n.sign}()),0===this.layer&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](N):n.mag=")]?e[Symbol.for(">=")](h):e>=h}())return n.layer=function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](1):n.layer+1}(),this.mag=function(){return void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.log10(e)):o*Math.log10(e)}(),this;while(function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](p):e")]?n.layer[Symbol.for(">")](0):n.layer>0}())n.layer=function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),0===this.layer?this.mag=Math.pow(10,this.mag):(this.mag=function(){return void 0!==o&&null!==o&&o[Symbol.for("*")]?o[Symbol.for("*")](Math.pow(10,e)):o*Math.pow(10,e)}(),e=Math.abs(this.mag),o=Math.sign(this.mag));return 0===this.layer&&(!function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?0===this.mag&&(this.sign=0):(this.mag=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("minus")]?n.mag[Symbol.for("minus")]():-n.mag}(),this.sign=function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("minus")]?n.sign[Symbol.for("minus")]():-n.sign}())),this}},{key:"fromComponents",value:function(n,e,o){return this.sign=n,this.layer=e,this.mag=o,this.normalize(),this}},{key:"fromComponents_noNormalize",value:function(n,e,o){return this.sign=n,this.layer=e,this.mag=o,this}},{key:"fromMantissaExponent",value:function(n,e){return this.layer=1,this.sign=Math.sign(n),n=Math.abs(n),this.mag=function(){return void 0!==e&&null!==e&&e[Symbol.for("+")]?e[Symbol.for("+")](Math.log10(n)):e+Math.log10(n)}(),this.normalize(),this}},{key:"fromMantissaExponent_noNormalize",value:function(n,e){return this.fromMantissaExponent(n,e),this}},{key:"fromDecimal",value:function(n){return this.sign=n.sign,this.layer=n.layer,this.mag=n.mag,this}},{key:"fromNumber",value:function(n){return this.mag=Math.abs(n),this.sign=Math.sign(n),this.layer=0,this.normalize(),this}},{key:"fromString",value:function(n){V?n=n.replace(",",""):w&&(n=n.replace(",","."));var e=n.split("^^^");if(2===e.length){var o=parseFloat(e[0]),r=parseFloat(e[1]),t=e[1].split(";"),l=1;if(2===t.length&&(l=parseFloat(t[1]),function(){return void 0!==isFinite(l)&&null!==isFinite(l)&&isFinite(l)[Symbol.for("!")]?isFinite(l)[Symbol.for("!")]():!isFinite(l)}()&&(l=1)),isFinite(o)&&isFinite(r)){var i=s.pentate(o,r,l);return this.sign=i.sign,this.layer=i.layer,this.mag=i.mag,this}}var u=n.split("^^");if(2===u.length){var a=parseFloat(u[0]),f=parseFloat(u[1]),m=u[1].split(";"),c=1;if(2===m.length&&(c=parseFloat(m[1]),function(){return void 0!==isFinite(c)&&null!==isFinite(c)&&isFinite(c)[Symbol.for("!")]?isFinite(c)[Symbol.for("!")]():!isFinite(c)}()&&(c=1)),isFinite(a)&&isFinite(f)){var y=s.tetrate(a,f,c);return this.sign=y.sign,this.layer=y.layer,this.mag=y.mag,this}}var d,b,v=n.split("^");if(2===v.length){var g=parseFloat(v[0]),h=parseFloat(v[1]);if(isFinite(g)&&isFinite(h)){var p=s.pow(g,h);return this.sign=p.sign,this.layer=p.layer,this.mag=p.mag,this}}n=n.trim().toLowerCase();var N=n.split("pt");if(2===N.length){d=10,b=parseFloat(N[0]),N[1]=N[1].replace("(",""),N[1]=N[1].replace(")","");var k=parseFloat(N[1]);if(function(){return void 0!==isFinite(k)&&null!==isFinite(k)&&isFinite(k)[Symbol.for("!")]?isFinite(k)[Symbol.for("!")]():!isFinite(k)}()&&(k=1),isFinite(d)&&isFinite(b)){var M=s.tetrate(d,b,k);return this.sign=M.sign,this.layer=M.layer,this.mag=M.mag,this}}if(N=n.split("p"),2===N.length){d=10,b=parseFloat(N[0]),N[1]=N[1].replace("(",""),N[1]=N[1].replace(")","");var Z=parseFloat(N[1]);if(function(){return void 0!==isFinite(Z)&&null!==isFinite(Z)&&isFinite(Z)[Symbol.for("!")]?isFinite(Z)[Symbol.for("!")]():!isFinite(Z)}()&&(Z=1),isFinite(d)&&isFinite(b)){var x=s.tetrate(d,b,Z);return this.sign=x.sign,this.layer=x.layer,this.mag=x.mag,this}}var C=n.split("e"),E=function(){return void 0!==C.length&&null!==C.length&&C.length[Symbol.for("-")]?C.length[Symbol.for("-")](1):C.length-1}();if(0===E){var B=parseFloat(n);if(isFinite(B))return this.fromNumber(B)}else if(1===E){var F=parseFloat(n);if(isFinite(F)&&function(){return void 0!==F&&null!==F&&F[Symbol.for("!==")]?F[Symbol.for("!==")](0):0!==F}())return this.fromNumber(F)}var D=n.split("e^");if(2===D.length){this.sign=1,function(){return void 0!==D[0].charAt(0)&&null!==D[0].charAt(0)&&D[0].charAt(0)[Symbol.for("==")]?D[0].charAt(0)[Symbol.for("==")]("-"):"-"==D[0].charAt(0)}()&&(this.sign=function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}());for(var _="",O=0;function(){return void 0!==O&&null!==O&&O[Symbol.for("<")]?O[Symbol.for("<")](D[1].length):O=")]?R[Symbol.for(">=")](43):R>=43}()&&function(){return void 0!==R&&null!==R&&R[Symbol.for("<=")]?R[Symbol.for("<=")](57):R<=57}()||101===R))return this.layer=parseFloat(_),this.mag=parseFloat(D[1].substr(function(){return void 0!==O&&null!==O&&O[Symbol.for("+")]?O[Symbol.for("+")](1):O+1}())),this.normalize(),this;_=function(){return void 0!==_&&null!==_&&_[Symbol.for("+")]?_[Symbol.for("+")](D[1].charAt(O)):_+D[1].charAt(O)}()}}if(function(){return void 0!==E&&null!==E&&E[Symbol.for("<")]?E[Symbol.for("<")](1):E<1}())return this.sign=0,this.layer=0,this.mag=0,this;var j=parseFloat(C[0]);if(0===j)return this.sign=0,this.layer=0,this.mag=0,this;var W=parseFloat(C[function(){return void 0!==C.length&&null!==C.length&&C.length[Symbol.for("-")]?C.length[Symbol.for("-")](1):C.length-1}()]);if(function(){return void 0!==E&&null!==E&&E[Symbol.for(">=")]?E[Symbol.for(">=")](2):E>=2}()){var q=parseFloat(C[function(){return void 0!==C.length&&null!==C.length&&C.length[Symbol.for("-")]?C.length[Symbol.for("-")](2):C.length-2}()]);isFinite(q)&&(W=function(){return void 0!==W&&null!==W&&W[Symbol.for("*")]?W[Symbol.for("*")](Math.sign(q)):W*Math.sign(q)}(),W=function(){return void 0!==W&&null!==W&&W[Symbol.for("+")]?W[Symbol.for("+")](T(q)):W+T(q)}())}if(function(){return void 0!==isFinite(j)&&null!==isFinite(j)&&isFinite(j)[Symbol.for("!")]?isFinite(j)[Symbol.for("!")]():!isFinite(j)}())this.sign="-"===C[0]?function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}():1,this.layer=E,this.mag=W;else if(1===E)this.sign=Math.sign(j),this.layer=1,this.mag=function(){return void 0!==W&&null!==W&&W[Symbol.for("+")]?W[Symbol.for("+")](Math.log10(Math.abs(j))):W+Math.log10(Math.abs(j))}();else{if(this.sign=Math.sign(j),this.layer=E,2===E){var A=s.mul(P(1,2,W),I(j));return this.sign=A.sign,this.layer=A.layer,this.mag=A.mag,this}this.mag=W}return this.normalize(),this}},{key:"fromValue",value:function(n){return n instanceof s||function(){return void 0!==n&&null!==n&&n[Symbol.for("!=")]?n[Symbol.for("!=")](null):null!=n}()&&"object"===(0,S.Z)(n)&&function(){return"sign"[Symbol.for("in")]?"sign"[Symbol.for("in")](n):"sign"in n}()&&function(){return"mag"[Symbol.for("in")]?"mag"[Symbol.for("in")](n):"mag"in n}()&&function(){return"layer"[Symbol.for("in")]?"layer"[Symbol.for("in")](n):"layer"in n}()?this.fromDecimal(n):"number"===typeof n?this.fromNumber(n):"string"===typeof n?this.fromString(n):(this.sign=0,this.layer=0,this.mag=0,this)}},{key:"toNumber",value:function(){var n=this;return function(){return void 0!==Number.isFinite(n.layer)&&null!==Number.isFinite(n.layer)&&Number.isFinite(n.layer)[Symbol.for("!")]?Number.isFinite(n.layer)[Symbol.for("!")]():!Number.isFinite(n.layer)}()?Number.NaN:0===this.layer?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}():1===this.layer?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](Math.pow(10,n.mag)):n.sign*Math.pow(10,n.mag)}():function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for(">")]?n.mag[Symbol.for(">")](0):n.mag>0}()?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for(">")]?n.sign[Symbol.for(">")](0):n.sign>0}()?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0}},{key:"mantissaWithDecimalPlaces",value:function(n){return isNaN(this.m)?Number.NaN:0===this.m?0:D(this.m,n)}},{key:"magnitudeWithDecimalPlaces",value:function(n){return isNaN(this.mag)?Number.NaN:0===this.mag?0:D(this.mag,n)}},{key:"toString",value:function(){var n=this;return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?1===this.sign?"Infinity":"-Infinity":0===this.layer?function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](1e21):n.mag<1e21}()&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for(">")]?n.mag[Symbol.for(">")](1e-7):n.mag>1e-7}()||0===this.mag?function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}().toString():function(){return n.m+"e"!==void 0&&n.m+"e"!==null&&(n.m+"e")[Symbol.for("+")]?(n.m+"e")[Symbol.for("+")](n.e):n.m+"e"+n.e}():1===this.layer?function(){return n.m+"e"!==void 0&&n.m+"e"!==null&&(n.m+"e")[Symbol.for("+")]?(n.m+"e")[Symbol.for("+")](n.e):n.m+"e"+n.e}():function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("<=")]?n.layer[Symbol.for("<=")](Z):n.layer<=Z}()?function(){return(-1===n.sign?"-":"")+"e".repeat(n.layer)!==void 0&&(-1===n.sign?"-":"")+"e".repeat(n.layer)!==null&&((-1===n.sign?"-":"")+"e".repeat(n.layer))[Symbol.for("+")]?((-1===n.sign?"-":"")+"e".repeat(n.layer))[Symbol.for("+")](n.mag):(-1===n.sign?"-":"")+"e".repeat(n.layer)+n.mag}():function(){return(-1===n.sign?"-":"")+"(e^"+n.layer+")"!==void 0&&(-1===n.sign?"-":"")+"(e^"+n.layer+")"!==null&&((-1===n.sign?"-":"")+"(e^"+n.layer+")")[Symbol.for("+")]?((-1===n.sign?"-":"")+"(e^"+n.layer+")")[Symbol.for("+")](n.mag):(-1===n.sign?"-":"")+"(e^"+n.layer+")"+n.mag}()}},{key:"toExponential",value:function(n){var e=this;return 0===this.layer?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}().toExponential(n):this.toStringWithDecimalPlaces(n)}},{key:"toFixed",value:function(n){var e=this;return 0===this.layer?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}().toFixed(n):this.toStringWithDecimalPlaces(n)}},{key:"toPrecision",value:function(n){var e=this;return function(){return void 0!==e.e&&null!==e.e&&e.e[Symbol.for("<=")]?e.e[Symbol.for("<=")](-7):e.e<=-7}()?this.toExponential(function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](1):n-1}()):function(){return void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](e.e):n>e.e}()?this.toFixed(function(){return n-e.exponent!==void 0&&n-e.exponent!==null&&(n-e.exponent)[Symbol.for("-")]?(n-e.exponent)[Symbol.for("-")](1):n-e.exponent-1}()):this.toExponential(function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](1):n-1}())}},{key:"valueOf",value:function(){return this.toString()}},{key:"toJSON",value:function(){return this.toString()}},{key:"toStringWithDecimalPlaces",value:function(n){var e=this;return 0===this.layer?function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](1e21):e.mag<1e21}()&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">")]?e.mag[Symbol.for(">")](1e-7):e.mag>1e-7}()||0===this.mag?function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}().toFixed(n):function(){return D(e.m,n)+"e"!==void 0&&D(e.m,n)+"e"!==null&&(D(e.m,n)+"e")[Symbol.for("+")]?(D(e.m,n)+"e")[Symbol.for("+")](D(e.e,n)):D(e.m,n)+"e"+D(e.e,n)}():1===this.layer?function(){return D(e.m,n)+"e"!==void 0&&D(e.m,n)+"e"!==null&&(D(e.m,n)+"e")[Symbol.for("+")]?(D(e.m,n)+"e")[Symbol.for("+")](D(e.e,n)):D(e.m,n)+"e"+D(e.e,n)}():function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<=")]?e.layer[Symbol.for("<=")](Z):e.layer<=Z}()?function(){return(-1===e.sign?"-":"")+"e".repeat(e.layer)!==void 0&&(-1===e.sign?"-":"")+"e".repeat(e.layer)!==null&&((-1===e.sign?"-":"")+"e".repeat(e.layer))[Symbol.for("+")]?((-1===e.sign?"-":"")+"e".repeat(e.layer))[Symbol.for("+")](D(e.mag,n)):(-1===e.sign?"-":"")+"e".repeat(e.layer)+D(e.mag,n)}():function(){return(-1===e.sign?"-":"")+"(e^"+e.layer+")"!==void 0&&(-1===e.sign?"-":"")+"(e^"+e.layer+")"!==null&&((-1===e.sign?"-":"")+"(e^"+e.layer+")")[Symbol.for("+")]?((-1===e.sign?"-":"")+"(e^"+e.layer+")")[Symbol.for("+")](D(e.mag,n)):(-1===e.sign?"-":"")+"(e^"+e.layer+")"+D(e.mag,n)}()}},{key:"abs",value:function(){return F(0===this.sign?0:1,this.layer,this.mag)}},{key:"neg",value:function(){var n=this;return F(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("minus")]?n.sign[Symbol.for("minus")]():-n.sign}(),this.layer,this.mag)}},{key:"negate",value:function(){return this.neg()}},{key:"negated",value:function(){return this.neg()}},{key:"sgn",value:function(){return this.sign}},{key:"round",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dZero:0===this.layer?P(this.sign,0,Math.round(this.mag)):this}},{key:"floor",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dZero:0===this.layer?P(this.sign,0,Math.floor(this.mag)):this}},{key:"ceil",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dZero:0===this.layer?P(this.sign,0,Math.ceil(this.mag)):this}},{key:"trunc",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dZero:0===this.layer?P(this.sign,0,Math.trunc(this.mag)):this}},{key:"add",value:function(n){var e,o,r=this,t=I(n);if(function(){return void 0!==Number.isFinite(r.layer)&&null!==Number.isFinite(r.layer)&&Number.isFinite(r.layer)[Symbol.for("!")]?Number.isFinite(r.layer)[Symbol.for("!")]():!Number.isFinite(r.layer)}())return this;if(function(){return void 0!==Number.isFinite(t.layer)&&null!==Number.isFinite(t.layer)&&Number.isFinite(t.layer)[Symbol.for("!")]?Number.isFinite(t.layer)[Symbol.for("!")]():!Number.isFinite(t.layer)}())return t;if(0===this.sign)return t;if(0===t.sign)return this;if(this.sign===function(){return void 0!==t.sign&&null!==t.sign&&t.sign[Symbol.for("minus")]?t.sign[Symbol.for("minus")]():-t.sign}()&&this.layer===t.layer&&this.mag===t.mag)return F(0,0,0);if(function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for(">=")]?r.layer[Symbol.for(">=")](2):r.layer>=2}()||function(){return void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for(">=")]?t.layer[Symbol.for(">=")](2):t.layer>=2}())return this.maxabs(t);if(!function(){return void 0!==s.cmpabs(r,t)&&null!==s.cmpabs(r,t)&&s.cmpabs(r,t)[Symbol.for(">")]?s.cmpabs(r,t)[Symbol.for(">")](0):s.cmpabs(r,t)>0}()?(e=t,o=this):(e=this,o=t),0===e.layer&&0===o.layer)return I(function(){return e.sign*e.mag!==void 0&&e.sign*e.mag!==null&&(e.sign*e.mag)[Symbol.for("+")]?(e.sign*e.mag)[Symbol.for("+")](o.sign*o.mag):e.sign*e.mag+o.sign*o.mag}());var l=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("*")]?e.layer[Symbol.for("*")](Math.sign(e.mag)):e.layer*Math.sign(e.mag)}(),i=function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("*")]?o.layer[Symbol.for("*")](Math.sign(o.mag)):o.layer*Math.sign(o.mag)}();if(function(){return l-i!==void 0&&l-i!==null&&(l-i)[Symbol.for(">=")]?(l-i)[Symbol.for(">=")](2):l-i>=2}())return e;if(0===l&&i===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()){if(function(){return void 0!==Math.abs(o.mag-Math.log10(e.mag))&&null!==Math.abs(o.mag-Math.log10(e.mag))&&Math.abs(o.mag-Math.log10(e.mag))[Symbol.for(">")]?Math.abs(o.mag-Math.log10(e.mag))[Symbol.for(">")](g):Math.abs(o.mag-Math.log10(e.mag))>g}())return e;var u=Math.pow(10,function(){return void 0!==Math.log10(e.mag)&&null!==Math.log10(e.mag)&&Math.log10(e.mag)[Symbol.for("-")]?Math.log10(e.mag)[Symbol.for("-")](o.mag):Math.log10(e.mag)-o.mag}()),a=function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("+")]?o.sign[Symbol.for("+")](e.sign*u):o.sign+e.sign*u}();return P(Math.sign(a),1,function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("+")]?o.mag[Symbol.for("+")](Math.log10(Math.abs(a))):o.mag+Math.log10(Math.abs(a))}())}if(1===l&&0===i){if(function(){return void 0!==Math.abs(e.mag-Math.log10(o.mag))&&null!==Math.abs(e.mag-Math.log10(o.mag))&&Math.abs(e.mag-Math.log10(o.mag))[Symbol.for(">")]?Math.abs(e.mag-Math.log10(o.mag))[Symbol.for(">")](g):Math.abs(e.mag-Math.log10(o.mag))>g}())return e;var f=Math.pow(10,function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("-")]?e.mag[Symbol.for("-")](Math.log10(o.mag)):e.mag-Math.log10(o.mag)}()),m=function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("+")]?o.sign[Symbol.for("+")](e.sign*f):o.sign+e.sign*f}();return P(Math.sign(m),1,function(){return void 0!==Math.log10(o.mag)&&null!==Math.log10(o.mag)&&Math.log10(o.mag)[Symbol.for("+")]?Math.log10(o.mag)[Symbol.for("+")](Math.log10(Math.abs(m))):Math.log10(o.mag)+Math.log10(Math.abs(m))}())}if(function(){return void 0!==Math.abs(e.mag-o.mag)&&null!==Math.abs(e.mag-o.mag)&&Math.abs(e.mag-o.mag)[Symbol.for(">")]?Math.abs(e.mag-o.mag)[Symbol.for(">")](g):Math.abs(e.mag-o.mag)>g}())return e;var c=Math.pow(10,function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("-")]?e.mag[Symbol.for("-")](o.mag):e.mag-o.mag}()),y=function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("+")]?o.sign[Symbol.for("+")](e.sign*c):o.sign+e.sign*c}();return P(Math.sign(y),1,function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for("+")]?o.mag[Symbol.for("+")](Math.log10(Math.abs(y))):o.mag+Math.log10(Math.abs(y))}())}},{key:"plus",value:function(n){return this.add(n)}},{key:"sub",value:function(n){return this.add(I(n).neg())}},{key:"subtract",value:function(n){return this.sub(n)}},{key:"minus",value:function(n){return this.sub(n)}},{key:"mul",value:function(n){var e,o,r=this,t=I(n);if(function(){return void 0!==Number.isFinite(r.layer)&&null!==Number.isFinite(r.layer)&&Number.isFinite(r.layer)[Symbol.for("!")]?Number.isFinite(r.layer)[Symbol.for("!")]():!Number.isFinite(r.layer)}())return this;if(function(){return void 0!==Number.isFinite(t.layer)&&null!==Number.isFinite(t.layer)&&Number.isFinite(t.layer)[Symbol.for("!")]?Number.isFinite(t.layer)[Symbol.for("!")]():!Number.isFinite(t.layer)}())return t;if(0===this.sign||0===t.sign)return F(0,0,0);if(this.layer===t.layer&&this.mag===function(){return void 0!==t.mag&&null!==t.mag&&t.mag[Symbol.for("minus")]?t.mag[Symbol.for("minus")]():-t.mag}())return F(function(){return void 0!==r.sign&&null!==r.sign&&r.sign[Symbol.for("*")]?r.sign[Symbol.for("*")](t.sign):r.sign*t.sign}(),0,1);if(function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for(">")]?r.layer[Symbol.for(">")](t.layer):r.layer>t.layer}()||function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("==")]?r.layer[Symbol.for("==")](t.layer):r.layer==t.layer}()&&function(){return void 0!==Math.abs(r.mag)&&null!==Math.abs(r.mag)&&Math.abs(r.mag)[Symbol.for(">")]?Math.abs(r.mag)[Symbol.for(">")](Math.abs(t.mag)):Math.abs(r.mag)>Math.abs(t.mag)}()?(e=this,o=t):(e=t,o=this),0===e.layer&&0===o.layer)return I(function(){return e.sign*o.sign*e.mag!==void 0&&e.sign*o.sign*e.mag!==null&&(e.sign*o.sign*e.mag)[Symbol.for("*")]?(e.sign*o.sign*e.mag)[Symbol.for("*")](o.mag):e.sign*o.sign*e.mag*o.mag}());if(function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">=")]?e.layer[Symbol.for(">=")](3):e.layer>=3}()||function(){return e.layer-o.layer!==void 0&&e.layer-o.layer!==null&&(e.layer-o.layer)[Symbol.for(">=")]?(e.layer-o.layer)[Symbol.for(">=")](2):e.layer-o.layer>=2}())return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),e.layer,e.mag);if(1===e.layer&&0===o.layer)return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),1,function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("+")]?e.mag[Symbol.for("+")](Math.log10(o.mag)):e.mag+Math.log10(o.mag)}());if(1===e.layer&&1===o.layer)return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),1,function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("+")]?e.mag[Symbol.for("+")](o.mag):e.mag+o.mag}());if(2===e.layer&&1===o.layer){var l=P(Math.sign(e.mag),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),Math.abs(e.mag)).add(P(Math.sign(o.mag),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1}(),Math.abs(o.mag)));return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),function(){return void 0!==l.layer&&null!==l.layer&&l.layer[Symbol.for("+")]?l.layer[Symbol.for("+")](1):l.layer+1}(),function(){return void 0!==l.sign&&null!==l.sign&&l.sign[Symbol.for("*")]?l.sign[Symbol.for("*")](l.mag):l.sign*l.mag}())}if(2===e.layer&&2===o.layer){var i=P(Math.sign(e.mag),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),Math.abs(e.mag)).add(P(Math.sign(o.mag),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("-")]?o.layer[Symbol.for("-")](1):o.layer-1}(),Math.abs(o.mag)));return P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](o.sign):e.sign*o.sign}(),function(){return void 0!==i.layer&&null!==i.layer&&i.layer[Symbol.for("+")]?i.layer[Symbol.for("+")](1):i.layer+1}(),function(){return void 0!==i.sign&&null!==i.sign&&i.sign[Symbol.for("*")]?i.sign[Symbol.for("*")](i.mag):i.sign*i.mag}())}throw Error(function(){return"Bad arguments to mul: "+r+", "!==void 0&&"Bad arguments to mul: "+r+", "!==null&&("Bad arguments to mul: "+r+", ")[Symbol.for("+")]?("Bad arguments to mul: "+r+", ")[Symbol.for("+")](n):"Bad arguments to mul: "+r+", "+n}())}},{key:"multiply",value:function(n){return this.mul(n)}},{key:"times",value:function(n){return this.mul(n)}},{key:"div",value:function(n){var e=I(n);return this.mul(e.recip())}},{key:"divide",value:function(n){return this.div(n)}},{key:"divideBy",value:function(n){return this.div(n)}},{key:"dividedBy",value:function(n){return this.div(n)}},{key:"recip",value:function(){var n=this;return 0===this.mag?s.dNaN:0===this.layer?P(this.sign,0,function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](n.mag):1/n.mag}()):P(this.sign,this.layer,function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("minus")]?n.mag[Symbol.for("minus")]():-n.mag}())}},{key:"reciprocal",value:function(){return this.recip()}},{key:"reciprocate",value:function(){return this.recip()}},{key:"cmp",value:function(n){var e=this,o=I(n);return function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for(">")]?e.sign[Symbol.for(">")](o.sign):e.sign>o.sign}()?1:function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](o.sign):e.sign")]?e.mag[Symbol.for(">")](0):e.mag>0}()?this.layer:function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("minus")]?e.layer[Symbol.for("minus")]():-e.layer}(),t=function(){return void 0!==o.mag&&null!==o.mag&&o.mag[Symbol.for(">")]?o.mag[Symbol.for(">")](0):o.mag>0}()?o.layer:function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("minus")]?o.layer[Symbol.for("minus")]():-o.layer}();return function(){return void 0!==r&&null!==r&&r[Symbol.for(">")]?r[Symbol.for(">")](t):r>t}()?1:function(){return void 0!==r&&null!==r&&r[Symbol.for("<")]?r[Symbol.for("<")](t):r")]?e.mag[Symbol.for(">")](o.mag):e.mag>o.mag}()?1:function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](o.mag):e.mag")]?e.cmpabs(o)[Symbol.for(">")](0):e.cmpabs(o)>0}()?o:this}},{key:"clamp",value:function(n,e){return this.max(n).min(e)}},{key:"clampMin",value:function(n){return this.max(n)}},{key:"clampMax",value:function(n){return this.min(n)}},{key:"cmp_tolerance",value:function(n,e){var o=I(n);return this.eq_tolerance(o,e)?0:this.cmp(o)}},{key:"compare_tolerance",value:function(n,e){return this.cmp_tolerance(n,e)}},{key:"eq_tolerance",value:function(n,e){var o=this,r=I(n);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()&&(e=1e-7),function(){return void 0!==o.sign&&null!==o.sign&&o.sign[Symbol.for("!==")]?o.sign[Symbol.for("!==")](r.sign):o.sign!==r.sign}())return!1;if(function(){return void 0!==Math.abs(o.layer-r.layer)&&null!==Math.abs(o.layer-r.layer)&&Math.abs(o.layer-r.layer)[Symbol.for(">")]?Math.abs(o.layer-r.layer)[Symbol.for(">")](1):Math.abs(o.layer-r.layer)>1}())return!1;var t=this.mag,l=r.mag;return function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for(">")]?o.layer[Symbol.for(">")](r.layer):o.layer>r.layer}()&&(l=T(l)),function(){return void 0!==o.layer&&null!==o.layer&&o.layer[Symbol.for("<")]?o.layer[Symbol.for("<")](r.layer):o.layer")]?n.layer[Symbol.for(">")](0):n.layer>0}()?P(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag)):P(1,0,Math.log10(this.mag))}},{key:"log10",value:function(){var n=this;return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()?s.dNaN:function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">")]?n.layer[Symbol.for(">")](0):n.layer>0}()?P(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag)):P(this.sign,0,Math.log10(this.mag))}},{key:"log",value:function(n){var e=this;return n=I(n),function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<=")]?e.sign[Symbol.for("<=")](0):e.sign<=0}()||function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()||1===n.sign&&0===n.layer&&1===n.mag?s.dNaN:0===this.layer&&0===n.layer?P(this.sign,0,function(){return void 0!==Math.log(e.mag)&&null!==Math.log(e.mag)&&Math.log(e.mag)[Symbol.for("/")]?Math.log(e.mag)[Symbol.for("/")](Math.log(n.mag)):Math.log(e.mag)/Math.log(n.mag)}()):s.div(this.log10(),n.log10())}},{key:"log2",value:function(){var n=this;return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()?s.dNaN:0===this.layer?P(this.sign,0,Math.log2(this.mag)):1===this.layer?P(Math.sign(this.mag),0,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("*")]?Math.abs(n.mag)[Symbol.for("*")](3.321928094887362):3.321928094887362*Math.abs(n.mag)}()):2===this.layer?P(Math.sign(this.mag),1,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("+")]?Math.abs(n.mag)[Symbol.for("+")](.5213902276543247):Math.abs(n.mag)+.5213902276543247}()):P(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag))}},{key:"ln",value:function(){var n=this;return function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<=")]?n.sign[Symbol.for("<=")](0):n.sign<=0}()?s.dNaN:0===this.layer?P(this.sign,0,Math.log(this.mag)):1===this.layer?P(Math.sign(this.mag),0,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("*")]?Math.abs(n.mag)[Symbol.for("*")](2.302585092994046):2.302585092994046*Math.abs(n.mag)}()):2===this.layer?P(Math.sign(this.mag),1,function(){return void 0!==Math.abs(n.mag)&&null!==Math.abs(n.mag)&&Math.abs(n.mag)[Symbol.for("+")]?Math.abs(n.mag)[Symbol.for("+")](.36221568869946325):Math.abs(n.mag)+.36221568869946325}()):P(Math.sign(this.mag),function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),Math.abs(this.mag))}},{key:"logarithm",value:function(n){return this.log(n)}},{key:"pow",value:function(n){var e=I(n),o=this,r=e;if(0===o.sign)return r.eq(0)?F(1,0,1):o;if(1===o.sign&&0===o.layer&&1===o.mag)return o;if(0===r.sign)return F(1,0,1);if(1===r.sign&&0===r.layer&&1===r.mag)return o;var t=o.absLog10().mul(r).pow10();return this.sign===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()?1===function(){return void 0!==Math.abs(r.toNumber()%2)&&null!==Math.abs(r.toNumber()%2)&&Math.abs(r.toNumber()%2)[Symbol.for("%")]?Math.abs(r.toNumber()%2)[Symbol.for("%")](2):Math.abs(r.toNumber()%2)%2}()?t.neg():0===function(){return void 0!==Math.abs(r.toNumber()%2)&&null!==Math.abs(r.toNumber()%2)&&Math.abs(r.toNumber()%2)[Symbol.for("%")]?Math.abs(r.toNumber()%2)[Symbol.for("%")](2):Math.abs(r.toNumber()%2)%2}()?t:s.dNaN:t}},{key:"pow10",value:function(){var n=this;if(function(){return void 0!==Number.isFinite(n.layer)&&null!==Number.isFinite(n.layer)&&Number.isFinite(n.layer)[Symbol.for("!")]?Number.isFinite(n.layer)[Symbol.for("!")]():!Number.isFinite(n.layer)}()||function(){return void 0!==Number.isFinite(n.mag)&&null!==Number.isFinite(n.mag)&&Number.isFinite(n.mag)[Symbol.for("!")]?Number.isFinite(n.mag)[Symbol.for("!")]():!Number.isFinite(n.mag)}())return s.dNaN;var e=this;if(0===e.layer){var o=Math.pow(10,function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("*")]?e.sign[Symbol.for("*")](e.mag):e.sign*e.mag}());if(Number.isFinite(o)&&function(){return void 0!==Math.abs(o)&&null!==Math.abs(o)&&Math.abs(o)[Symbol.for(">=")]?Math.abs(o)[Symbol.for(">=")](.1):Math.abs(o)>=.1}())return P(1,0,o);if(0===e.sign)return s.dOne;e=F(e.sign,function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),Math.log10(e.mag))}return function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for(">")]?e.sign[Symbol.for(">")](0):e.sign>0}()&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0}()?P(e.sign,function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),e.mag):function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("<")]?e.sign[Symbol.for("<")](0):e.sign<0}()&&function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for(">=")]?e.mag[Symbol.for(">=")](0):e.mag>=0}()?P(function(){return void 0!==e.sign&&null!==e.sign&&e.sign[Symbol.for("minus")]?e.sign[Symbol.for("minus")]():-e.sign}(),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag}()):s.dOne}},{key:"pow_base",value:function(n){return I(n).pow(this)}},{key:"root",value:function(n){var e=I(n);return this.pow(e.recip())}},{key:"factorial",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()||0===this.layer?this.add(1).gamma():1===this.layer?s.exp(s.mul(this,s.ln(this).sub(1))):s.exp(this)}},{key:"gamma",value:function(){var n=this;if(function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}())return this.recip();if(0===this.layer){if(this.lt(F(1,0,24)))return I(_(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}()));var e=function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("-")]?n.mag[Symbol.for("-")](1):n.mag-1}(),o=.9189385332046727;o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")]((e+.5)*Math.log(e)):o+(e+.5)*Math.log(e)}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](e):o-e}();var r=function(){return void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](e):e*e}(),t=e,l=function(){return 12[Symbol.for("*")]?12[Symbol.for("*")](t):12*t}(),i=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}(),u=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](i):o+i}();if(u===o)return s.exp(o);if(o=u,t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),l=function(){return 360[Symbol.for("*")]?360[Symbol.for("*")](t):360*t}(),i=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}(),u=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](i):o-i}(),u===o)return s.exp(o);o=u,t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),l=function(){return 1260[Symbol.for("*")]?1260[Symbol.for("*")](t):1260*t}();var a=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}();return o=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](a):o+a}(),t=function(){return void 0!==t&&null!==t&&t[Symbol.for("*")]?t[Symbol.for("*")](r):t*r}(),l=function(){return 1680[Symbol.for("*")]?1680[Symbol.for("*")](t):1680*t}(),a=function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](l):1/l}(),o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](a):o-a}(),s.exp(o)}return 1===this.layer?s.exp(s.mul(this,s.ln(this).sub(1))):s.exp(this)}},{key:"lngamma",value:function(){return this.gamma().ln()}},{key:"exp",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dOne:0===this.layer&&function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<=")]?n.mag[Symbol.for("<=")](709.7):n.mag<=709.7}()?I(Math.exp(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):0===this.layer?P(1,1,function(){return n.sign*Math.log10(Math.E)!==void 0&&n.sign*Math.log10(Math.E)!==null&&(n.sign*Math.log10(Math.E))[Symbol.for("*")]?(n.sign*Math.log10(Math.E))[Symbol.for("*")](n.mag):n.sign*Math.log10(Math.E)*n.mag}()):1===this.layer?P(1,2,function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](Math.log10(.4342944819032518)+n.mag):n.sign*(Math.log10(.4342944819032518)+n.mag)}()):P(1,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("+")]?n.layer[Symbol.for("+")](1):n.layer+1}(),function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())}},{key:"sqr",value:function(){return this.pow(2)}},{key:"sqrt",value:function(){var n=this;if(0===this.layer)return I(Math.sqrt(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}()));if(1===this.layer)return P(1,2,function(){return void 0!==Math.log10(n.mag)&&null!==Math.log10(n.mag)&&Math.log10(n.mag)[Symbol.for("-")]?Math.log10(n.mag)[Symbol.for("-")](.3010299956639812):Math.log10(n.mag)-.3010299956639812}());var e=s.div(F(this.sign,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),this.mag),F(1,0,2));return e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](1):e.layer+1}(),e.normalize(),e}},{key:"cube",value:function(){return this.pow(3)}},{key:"cbrt",value:function(){return this.pow(function(){return 1[Symbol.for("/")]?1[Symbol.for("/")](3):1/3}())}},{key:"tetrate",value:function(){var n=arguments,e=this,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:2,r=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:F(1,0,1);if(1===o)return s.pow(this,r);if(0===o)return new s(r);if(this.eq(s.dOne))return s.dOne;if(this.eq(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()))return s.pow(this,r);if(o===Number.POSITIVE_INFINITY){var t=this.toNumber();if(function(){return void 0!==t&&null!==t&&t[Symbol.for("<=")]?t[Symbol.for("<=")](1.444667861009766):t<=1.444667861009766}()&&function(){return void 0!==t&&null!==t&&t[Symbol.for(">=")]?t[Symbol.for(">=")](.06598803584531254):t>=.06598803584531254}()){if(function(){return void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](1.444667861009099):t>1.444667861009099}())return new s(Math.E);var l=s.ln(this).neg();return l.lambertw().div(l)}return function(){return void 0!==t&&null!==t&&t[Symbol.for(">")]?t[Symbol.for(">")](1.444667861009766):t>1.444667861009766}()?new s(Number.POSITIVE_INFINITY):s.dNaN}if(this.eq(s.dZero)){var i=Math.abs(function(){return o+1!==void 0&&o+1!==null&&(o+1)[Symbol.for("%")]?(o+1)[Symbol.for("%")](2):(o+1)%2}());return function(){return void 0!==i&&null!==i&&i[Symbol.for(">")]?i[Symbol.for(">")](1):i>1}()&&(i=function(){return 2[Symbol.for("-")]?2[Symbol.for("-")](i):2-i}()),new s(i)}if(function(){return void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0}())return s.iteratedlog(r,this,function(){return void 0!==o&&null!==o&&o[Symbol.for("minus")]?o[Symbol.for("minus")]():-o}());r=I(r);var u=o;o=Math.trunc(o);var a=function(){return void 0!==u&&null!==u&&u[Symbol.for("-")]?u[Symbol.for("-")](o):u-o}();if(this.gt(s.dZero)&&this.lte(1.444667861009766)){o=Math.min(1e4,o);for(var f=0;function(){return void 0!==f&&null!==f&&f[Symbol.for("<")]?f[Symbol.for("<")](o):f")]?(r.layer-e.layer)[Symbol.for(">")](3):r.layer-e.layer>3}())return F(r.sign,function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("+")]?r.layer[Symbol.for("+")](o-y-1):r.layer+(o-y-1)}(),r.mag);if(function(){return void 0!==y&&null!==y&&y[Symbol.for(">")]?y[Symbol.for(">")](1e4):y>1e4}())return r}return r}},{key:"iteratedexp",value:function(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:2,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:F(1,0,1);return this.tetrate(e,o)}},{key:"iteratedlog",value:function(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:10,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:1;if(function(){return void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](0):o<0}())return s.tetrate(e,function(){return void 0!==o&&null!==o&&o[Symbol.for("minus")]?o[Symbol.for("minus")]():-o}(),this);e=I(e);var r=I(this),t=o;o=Math.trunc(o);var l=function(){return void 0!==t&&null!==t&&t[Symbol.for("-")]?t[Symbol.for("-")](o):t-o}();if(function(){return r.layer-e.layer!==void 0&&r.layer-e.layer!==null&&(r.layer-e.layer)[Symbol.for(">")]?(r.layer-e.layer)[Symbol.for(">")](3):r.layer-e.layer>3}()){var i=Math.min(o,function(){return r.layer-e.layer!==void 0&&r.layer-e.layer!==null&&(r.layer-e.layer)[Symbol.for("-")]?(r.layer-e.layer)[Symbol.for("-")](3):r.layer-e.layer-3}());o=function(){return void 0!==o&&null!==o&&o[Symbol.for("-")]?o[Symbol.for("-")](i):o-i}(),r.layer=function(){return void 0!==r.layer&&null!==r.layer&&r.layer[Symbol.for("-")]?r.layer[Symbol.for("-")](i):r.layer-i}()}for(var u=0;function(){return void 0!==u&&null!==u&&u[Symbol.for("<")]?u[Symbol.for("<")](o):u")]?u[Symbol.for(">")](1e4):u>1e4}())return r}return function(){return void 0!==l&&null!==l&&l[Symbol.for(">")]?l[Symbol.for(">")](0):l>0}()&&function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](1):l<1}()&&(r=e.eq(10)?r.layeradd10(function(){return void 0!==l&&null!==l&&l[Symbol.for("minus")]?l[Symbol.for("minus")]():-l}()):r.layeradd(function(){return void 0!==l&&null!==l&&l[Symbol.for("minus")]?l[Symbol.for("minus")]():-l}(),e)),r}},{key:"slog",value:function(){var n=arguments,e=this,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:10;if(o=I(o),o.lte(s.dZero))return s.dNaN;if(o.eq(s.dOne))return s.dNaN;if(o.lt(s.dOne))return this.eq(s.dOne)?s.dZero:this.eq(s.dZero)?s.dNegOne:s.dNaN;if(function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0}()||this.eq(s.dZero))return s.dNegOne;var r=0,t=I(this);if(function(){return t.layer-o.layer!==void 0&&t.layer-o.layer!==null&&(t.layer-o.layer)[Symbol.for(">")]?(t.layer-o.layer)[Symbol.for(">")](3):t.layer-o.layer>3}()){var l=function(){return t.layer-o.layer!==void 0&&t.layer-o.layer!==null&&(t.layer-o.layer)[Symbol.for("-")]?(t.layer-o.layer)[Symbol.for("-")](3):t.layer-o.layer-3}();r=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](l):r+l}(),t.layer=function(){return void 0!==t.layer&&null!==t.layer&&t.layer[Symbol.for("-")]?t.layer[Symbol.for("-")](l):t.layer-l}()}for(var i=0;function(){return void 0!==i&&null!==i&&i[Symbol.for("<")]?i[Symbol.for("<")](100):i<100}();function(){return void 0!==i&&null!==i&&"object"===(0,S.Z)(i)&&i[Symbol.for("prefix-increment")]?i[Symbol.for("prefix-increment")]():++i}())if(t.lt(s.dZero))t=s.pow(o,t),r=function(){return void 0!==r&&null!==r&&r[Symbol.for("-")]?r[Symbol.for("-")](1):r-1}();else{if(t.lte(s.dOne))return I(function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](s.slog_critical(o.toNumber(),t.toNumber())):r+s.slog_critical(o.toNumber(),t.toNumber())}());r=function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](1):r+1}(),t=s.log(t,o)}return I(r)}},{key:"layeradd10",value:function(n){n=s.fromValue_noAlloc(n).toNumber();var e=I(this);if(function(){return void 0!==n&&null!==n&&n[Symbol.for(">=")]?n[Symbol.for(">=")](1):n>=1}()){(function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("<")]?e.mag[Symbol.for("<")](0):e.mag<0})()&&function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">")]?e.layer[Symbol.for(">")](0):e.layer>0}()?(e.sign=0,e.mag=0,e.layer=0):e.sign===function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()&&function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("==")]?e.layer[Symbol.for("==")](0):0==e.layer}()&&(e.sign=1,e.mag=function(){return void 0!==e.mag&&null!==e.mag&&e.mag[Symbol.for("minus")]?e.mag[Symbol.for("minus")]():-e.mag}());var o=Math.trunc(n);n=function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](o):n-o}(),e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](o):e.layer+o}()}if(function(){return void 0!==n&&null!==n&&n[Symbol.for("<=")]?n[Symbol.for("<=")](-1):n<=-1}()){var r=Math.trunc(n);if(n=function(){return void 0!==n&&null!==n&&n[Symbol.for("-")]?n[Symbol.for("-")](r):n-r}(),e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("+")]?e.layer[Symbol.for("+")](r):e.layer+r}(),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<")]?e.layer[Symbol.for("<")](0):e.layer<0}())for(var t=0;function(){return void 0!==t&&null!==t&&t[Symbol.for("<")]?t[Symbol.for("<")](100):t<100}();function(){return void 0!==t&&null!==t&&"object"===(0,S.Z)(t)&&t[Symbol.for("prefix-increment")]?t[Symbol.for("prefix-increment")]():++t}()){if(function(){void 0!==e.layer&&null!==e.layer&&"object"===(0,S.Z)(e.layer)&&e.layer[Symbol.for("postfix-increment")]?e.layer[Symbol.for("postfix-increment")]():e.layer++}(),e.mag=Math.log10(e.mag),function(){return void 0!==isFinite(e.mag)&&null!==isFinite(e.mag)&&isFinite(e.mag)[Symbol.for("!")]?isFinite(e.mag)[Symbol.for("!")]():!isFinite(e.mag)}())return 0===e.sign&&(e.sign=1),function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<")]?e.layer[Symbol.for("<")](0):e.layer<0}()&&(e.layer=0),e.normalize();if(function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">=")]?e.layer[Symbol.for(">=")](0):e.layer>=0}())break}}while(function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("<")]?e.layer[Symbol.for("<")](0):e.layer<0}())(function(){void 0!==e.layer&&null!==e.layer&&"object"===(0,S.Z)(e.layer)&&e.layer[Symbol.for("postfix-increment")]?e.layer[Symbol.for("postfix-increment")]():e.layer++})(),e.mag=Math.log10(e.mag);return 0===e.sign&&(e.sign=1,0===e.mag&&function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for(">=")]?e.layer[Symbol.for(">=")](1):e.layer>=1}()&&(e.layer=function(){return void 0!==e.layer&&null!==e.layer&&e.layer[Symbol.for("-")]?e.layer[Symbol.for("-")](1):e.layer-1}(),e.mag=1)),e.normalize(),function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](0):0!==n}()?e.layeradd(n,10):e}},{key:"layeradd",value:function(n,e){var o=this.slog(e).toNumber(),r=function(){return void 0!==o&&null!==o&&o[Symbol.for("+")]?o[Symbol.for("+")](n):o+n}();return function(){return void 0!==r&&null!==r&&r[Symbol.for(">=")]?r[Symbol.for(">=")](0):r>=0}()?s.tetrate(e,r):function(){return void 0!==Number.isFinite(r)&&null!==Number.isFinite(r)&&Number.isFinite(r)[Symbol.for("!")]?Number.isFinite(r)[Symbol.for("!")]():!Number.isFinite(r)}()?s.dNaN:function(){return void 0!==r&&null!==r&&r[Symbol.for(">=")]?r[Symbol.for(">=")](-1):r>=-1}()?s.log(s.tetrate(e,function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](1):r+1}()),e):s.log(s.log(s.tetrate(e,function(){return void 0!==r&&null!==r&&r[Symbol.for("+")]?r[Symbol.for("+")](2):r+2}()),e),e)}},{key:"lambertw",value:function(){var n=this;if(this.lt(function(){return.3678794411710499[Symbol.for("minus")]?.3678794411710499[Symbol.for("minus")]():-.3678794411710499}()))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}())return I(R(this.toNumber()));if(0===this.layer)return I(R(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}()));if(1===this.layer)return j(this);if(2===this.layer)return j(this);if(function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">=")]?n.layer[Symbol.for(">=")](3):n.layer>=3}())return F(this.sign,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),this.mag);throw"Unhandled behavior in lambertw()"}},{key:"ssqrt",value:function(){var n=this;if(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("==")]?n.sign[Symbol.for("==")](1):1==n.sign}()&&function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for(">=")]?n.layer[Symbol.for(">=")](3):n.layer>=3}())return F(this.sign,function(){return void 0!==n.layer&&null!==n.layer&&n.layer[Symbol.for("-")]?n.layer[Symbol.for("-")](1):n.layer-1}(),this.mag);var e=this.ln();return e.div(e.lambertw())}},{key:"pentate",value:function(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:2,o=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](1):n.length>1}()&&function(){return void 0!==n[1]&&null!==n[1]&&n[1][Symbol.for("!==")]?n[1][Symbol.for("!==")](void 0):void 0!==n[1]}()?arguments[1]:F(1,0,1);o=I(o);var r=e;e=Math.trunc(e);var t=function(){return void 0!==r&&null!==r&&r[Symbol.for("-")]?r[Symbol.for("-")](e):r-e}();(function(){return void 0!==t&&null!==t&&t[Symbol.for("!==")]?t[Symbol.for("!==")](0):0!==t})()&&(o.eq(s.dOne)?(function(){void 0!==e&&null!==e&&"object"===(0,S.Z)(e)&&e[Symbol.for("prefix-increment")]?e[Symbol.for("prefix-increment")]():++e}(),o=new s(t)):o=this.eq(10)?o.layeradd10(t):o.layeradd(t,this));for(var l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](e):l")]?l[Symbol.for(">")](10):l>10}())return o}return o}},{key:"sin",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?this:0===this.layer?I(Math.sin(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(0,0,0)}},{key:"cos",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?s.dOne:0===this.layer?I(Math.cos(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(0,0,0)}},{key:"tan",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?this:0===this.layer?I(Math.tan(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(0,0,0)}},{key:"asin",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?this:0===this.layer?I(Math.asin(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(Number.NaN,Number.NaN,Number.NaN)}},{key:"acos",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?I(Math.acos(this.toNumber())):0===this.layer?I(Math.acos(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):F(Number.NaN,Number.NaN,Number.NaN)}},{key:"atan",value:function(){var n=this;return function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](0):n.mag<0}()?this:0===this.layer?I(Math.atan(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](n.mag):n.sign*n.mag}())):I(Math.atan(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("*")]?n.sign[Symbol.for("*")](Infinity):Infinity*n.sign}()))}},{key:"sinh",value:function(){return this.exp().sub(this.negate().exp()).div(2)}},{key:"cosh",value:function(){return this.exp().add(this.negate().exp()).div(2)}},{key:"tanh",value:function(){return this.sinh().div(this.cosh())}},{key:"asinh",value:function(){return s.ln(this.add(this.sqr().add(1).sqrt()))}},{key:"acosh",value:function(){return s.ln(this.add(this.sqr().sub(1).sqrt()))}},{key:"atanh",value:function(){return this.abs().gte(1)?F(Number.NaN,Number.NaN,Number.NaN):s.ln(this.add(1).div(I(1).sub(this))).div(2)}},{key:"ascensionPenalty",value:function(n){return 0===n?this:this.root(s.pow(10,n))}},{key:"egg",value:function(){return this.add(9)}},{key:"lessThanOrEqualTo",value:function(n){var e=this;return function(){return void 0!==e.cmp(n)&&null!==e.cmp(n)&&e.cmp(n)[Symbol.for("<")]?e.cmp(n)[Symbol.for("<")](1):e.cmp(n)<1}()}},{key:"lessThan",value:function(n){var e=this;return function(){return void 0!==e.cmp(n)&&null!==e.cmp(n)&&e.cmp(n)[Symbol.for("<")]?e.cmp(n)[Symbol.for("<")](0):e.cmp(n)<0}()}},{key:"greaterThanOrEqualTo",value:function(n){var e=this;return function(){return void 0!==e.cmp(n)&&null!==e.cmp(n)&&e.cmp(n)[Symbol.for(">")]?e.cmp(n)[Symbol.for(">")](-1):e.cmp(n)>-1}()}},{key:"greaterThan",value:function(n){var e=this;return function(){return void 0!==e.cmp(n)&&null!==e.cmp(n)&&e.cmp(n)[Symbol.for(">")]?e.cmp(n)[Symbol.for(">")](0):e.cmp(n)>0}()}}],[{key:"fromComponents",value:function(n,e,o){return(new s).fromComponents(n,e,o)}},{key:"fromComponents_noNormalize",value:function(n,e,o){return(new s).fromComponents_noNormalize(n,e,o)}},{key:"fromMantissaExponent",value:function(n,e){return(new s).fromMantissaExponent(n,e)}},{key:"fromMantissaExponent_noNormalize",value:function(n,e){return(new s).fromMantissaExponent_noNormalize(n,e)}},{key:"fromDecimal",value:function(n){return(new s).fromDecimal(n)}},{key:"fromNumber",value:function(n){return(new s).fromNumber(n)}},{key:"fromString",value:function(n){return(new s).fromString(n)}},{key:"fromValue",value:function(n){return(new s).fromValue(n)}},{key:"fromValue_noAlloc",value:function(n){return n instanceof s?n:new s(n)}},{key:"abs",value:function(n){return I(n).abs()}},{key:"neg",value:function(n){return I(n).neg()}},{key:"negate",value:function(n){return I(n).neg()}},{key:"negated",value:function(n){return I(n).neg()}},{key:"sign",value:function(n){return I(n).sign}},{key:"sgn",value:function(n){return I(n).sign}},{key:"round",value:function(n){return I(n).round()}},{key:"floor",value:function(n){return I(n).floor()}},{key:"ceil",value:function(n){return I(n).ceil()}},{key:"trunc",value:function(n){return I(n).trunc()}},{key:"add",value:function(n,e){return I(n).add(e)}},{key:"plus",value:function(n,e){return I(n).add(e)}},{key:"sub",value:function(n,e){return I(n).sub(e)}},{key:"subtract",value:function(n,e){return I(n).sub(e)}},{key:"minus",value:function(n,e){return I(n).sub(e)}},{key:"mul",value:function(n,e){return I(n).mul(e)}},{key:"multiply",value:function(n,e){return I(n).mul(e)}},{key:"times",value:function(n,e){return I(n).mul(e)}},{key:"div",value:function(n,e){return I(n).div(e)}},{key:"divide",value:function(n,e){return I(n).div(e)}},{key:"recip",value:function(n){return I(n).recip()}},{key:"reciprocal",value:function(n){return I(n).recip()}},{key:"reciprocate",value:function(n){return I(n).reciprocate()}},{key:"cmp",value:function(n,e){return I(n).cmp(e)}},{key:"cmpabs",value:function(n,e){return I(n).cmpabs(e)}},{key:"compare",value:function(n,e){return I(n).cmp(e)}},{key:"isNaN",value:function(n){function e(e){return n.apply(this,arguments)}return e.toString=function(){return n.toString()},e}((function(n){return n=I(n),isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)}))},{key:"isFinite",value:function(n){function e(e){return n.apply(this,arguments)}return e.toString=function(){return n.toString()},e}((function(n){return n=I(n),isFinite(n.sign)&&isFinite(n.layer)&&isFinite(n.mag)}))},{key:"eq",value:function(n,e){return I(n).eq(e)}},{key:"equals",value:function(n,e){return I(n).eq(e)}},{key:"neq",value:function(n,e){return I(n).neq(e)}},{key:"notEquals",value:function(n,e){return I(n).notEquals(e)}},{key:"lt",value:function(n,e){return I(n).lt(e)}},{key:"lte",value:function(n,e){return I(n).lte(e)}},{key:"gt",value:function(n,e){return I(n).gt(e)}},{key:"gte",value:function(n,e){return I(n).gte(e)}},{key:"max",value:function(n,e){return I(n).max(e)}},{key:"min",value:function(n,e){return I(n).min(e)}},{key:"minabs",value:function(n,e){return I(n).minabs(e)}},{key:"maxabs",value:function(n,e){return I(n).maxabs(e)}},{key:"clamp",value:function(n,e,o){return I(n).clamp(e,o)}},{key:"clampMin",value:function(n,e){return I(n).clampMin(e)}},{key:"clampMax",value:function(n,e){return I(n).clampMax(e)}},{key:"cmp_tolerance",value:function(n,e,o){return I(n).cmp_tolerance(e,o)}},{key:"compare_tolerance",value:function(n,e,o){return I(n).cmp_tolerance(e,o)}},{key:"eq_tolerance",value:function(n,e,o){return I(n).eq_tolerance(e,o)}},{key:"equals_tolerance",value:function(n,e,o){return I(n).eq_tolerance(e,o)}},{key:"neq_tolerance",value:function(n,e,o){return I(n).neq_tolerance(e,o)}},{key:"notEquals_tolerance",value:function(n,e,o){return I(n).notEquals_tolerance(e,o)}},{key:"lt_tolerance",value:function(n,e,o){return I(n).lt_tolerance(e,o)}},{key:"lte_tolerance",value:function(n,e,o){return I(n).lte_tolerance(e,o)}},{key:"gt_tolerance",value:function(n,e,o){return I(n).gt_tolerance(e,o)}},{key:"gte_tolerance",value:function(n,e,o){return I(n).gte_tolerance(e,o)}},{key:"pLog10",value:function(n){return I(n).pLog10()}},{key:"absLog10",value:function(n){return I(n).absLog10()}},{key:"log10",value:function(n){return I(n).log10()}},{key:"log",value:function(n,e){return I(n).log(e)}},{key:"log2",value:function(n){return I(n).log2()}},{key:"ln",value:function(n){return I(n).ln()}},{key:"logarithm",value:function(n,e){return I(n).logarithm(e)}},{key:"pow",value:function(n,e){return I(n).pow(e)}},{key:"pow10",value:function(n){return I(n).pow10()}},{key:"root",value:function(n,e){return I(n).root(e)}},{key:"factorial",value:function(n,e){return I(n).factorial()}},{key:"gamma",value:function(n,e){return I(n).gamma()}},{key:"lngamma",value:function(n,e){return I(n).lngamma()}},{key:"exp",value:function(n){return I(n).exp()}},{key:"sqr",value:function(n){return I(n).sqr()}},{key:"sqrt",value:function(n){return I(n).sqrt()}},{key:"cube",value:function(n){return I(n).cube()}},{key:"cbrt",value:function(n){return I(n).cbrt()}},{key:"tetrate",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:2,r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:F(1,0,1);return I(n).tetrate(o,r)}},{key:"iteratedexp",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:2,r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:F(1,0,1);return I(n).iteratedexp(o,r)}},{key:"iteratedlog",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:10,r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:1;return I(n).iteratedlog(o,r)}},{key:"layeradd10",value:function(n,e){return I(n).layeradd10(e)}},{key:"layeradd",value:function(n,e){var o=arguments,r=function(){return void 0!==o.length&&null!==o.length&&o.length[Symbol.for(">")]?o.length[Symbol.for(">")](2):o.length>2}()&&function(){return void 0!==o[2]&&null!==o[2]&&o[2][Symbol.for("!==")]?o[2][Symbol.for("!==")](void 0):void 0!==o[2]}()?arguments[2]:10;return I(n).layeradd(e,r)}},{key:"slog",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:10;return I(n).slog(o)}},{key:"lambertw",value:function(n){return I(n).lambertw()}},{key:"ssqrt",value:function(n){return I(n).ssqrt()}},{key:"pentate",value:function(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:2,r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:F(1,0,1);return I(n).pentate(o,r)}},{key:"affordGeometricSeries",value:function(n,e,o,r){return this.affordGeometricSeries_core(I(n),I(e),I(o),r)}},{key:"sumGeometricSeries",value:function(n,e,o,r){return this.sumGeometricSeries_core(n,I(e),I(o),r)}},{key:"affordArithmeticSeries",value:function(n,e,o,r){return this.affordArithmeticSeries_core(I(n),I(e),I(o),I(r))}},{key:"sumArithmeticSeries",value:function(n,e,o,r){return this.sumArithmeticSeries_core(I(n),I(e),I(o),I(r))}},{key:"efficiencyOfPurchase",value:function(n,e,o){return this.efficiencyOfPurchase_core(I(n),I(e),I(o))}},{key:"randomDecimalForTesting",value:function(n){if(function(){return 20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1}())return F(0,0,0);var e=function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.5):Math.random()>.5}()?1:function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}();if(function(){return 20*Math.random()!==void 0&&20*Math.random()!==null&&(20*Math.random())[Symbol.for("<")]?(20*Math.random())[Symbol.for("<")](1):20*Math.random()<1}())return F(e,0,1);var o=Math.floor(function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](n+1):Math.random()*(n+1)}()),r=0===o?function(){return 616*Math.random()!==void 0&&616*Math.random()!==null&&(616*Math.random())[Symbol.for("-")]?(616*Math.random())[Symbol.for("-")](308):616*Math.random()-308}():function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for("*")]?Math.random()[Symbol.for("*")](16):16*Math.random()}();(function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9})()&&(r=Math.trunc(r));var t=Math.pow(10,r);return function(){return void 0!==Math.random()&&null!==Math.random()&&Math.random()[Symbol.for(">")]?Math.random()[Symbol.for(">")](.9):Math.random()>.9}()&&(t=Math.trunc(t)),P(e,o,t)}},{key:"affordGeometricSeries_core",value:function(n,e,o,r){var t=e.mul(o.pow(r));return s.floor(n.div(t).mul(o.sub(1)).add(1).log10().div(o.log10()))}},{key:"sumGeometricSeries_core",value:function(n,e,o,r){return e.mul(o.pow(r)).mul(s.sub(1,o.pow(n))).div(s.sub(1,o))}},{key:"affordArithmeticSeries_core",value:function(n,e,o,r){var t=e.add(r.mul(o)),l=t.sub(o.div(2)),i=l.pow(2);return l.neg().add(i.add(o.mul(n).mul(2)).sqrt()).div(o).floor()}},{key:"sumArithmeticSeries_core",value:function(n,e,o,r){var t=e.add(r.mul(o));return n.div(2).mul(t.mul(2).plus(n.sub(1).mul(o)))}},{key:"efficiencyOfPurchase_core",value:function(n,e,o){return n.div(e).add(n.div(o))}},{key:"slog_critical",value:function(n,e){return function(){return void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](10):n>10}()?function(){return void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](1):e-1}():s.critical_section(n,e,B)}},{key:"tetrate_critical",value:function(n,e){return s.critical_section(n,e,E)}},{key:"critical_section",value:function(n,e,o){e=function(){return void 0!==e&&null!==e&&e[Symbol.for("*")]?e[Symbol.for("*")](10):10*e}(),function(){return void 0!==e&&null!==e&&e[Symbol.for("<")]?e[Symbol.for("<")](0):e<0}()&&(e=0),function(){return void 0!==e&&null!==e&&e[Symbol.for(">")]?e[Symbol.for(">")](10):e>10}()&&(e=10),function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](2):n<2}()&&(n=2),function(){return void 0!==n&&null!==n&&n[Symbol.for(">")]?n[Symbol.for(">")](10):n>10}()&&(n=10);for(var r=0,t=0,l=0;function(){return void 0!==l&&null!==l&&l[Symbol.for("<")]?l[Symbol.for("<")](C.length):l")]?C[l+1][Symbol.for(">")](n):C[l+1]>n}()){var i=function(){return n-C[l]!==void 0&&n-C[l]!==null&&(n-C[l])[Symbol.for("/")]?(n-C[l])[Symbol.for("/")](C[l+1]-C[l]):(n-C[l])/(C[l+1]-C[l])}();r=function(){return o[l][Math.floor(e)]*(1-i)!==void 0&&o[l][Math.floor(e)]*(1-i)!==null&&(o[l][Math.floor(e)]*(1-i))[Symbol.for("+")]?(o[l][Math.floor(e)]*(1-i))[Symbol.for("+")](o[l+1][Math.floor(e)]*i):o[l][Math.floor(e)]*(1-i)+o[l+1][Math.floor(e)]*i}(),t=function(){return o[l][Math.ceil(e)]*(1-i)!==void 0&&o[l][Math.ceil(e)]*(1-i)!==null&&(o[l][Math.ceil(e)]*(1-i))[Symbol.for("+")]?(o[l][Math.ceil(e)]*(1-i))[Symbol.for("+")](o[l+1][Math.ceil(e)]*i):o[l][Math.ceil(e)]*(1-i)+o[l+1][Math.ceil(e)]*i}();break}}var u=function(){return void 0!==e&&null!==e&&e[Symbol.for("-")]?e[Symbol.for("-")](Math.floor(e)):e-Math.floor(e)}(),a=function(){return r*(1-u)!==void 0&&r*(1-u)!==null&&(r*(1-u))[Symbol.for("+")]?(r*(1-u))[Symbol.for("+")](t*u):r*(1-u)+t*u}();return a}}]),s}(r,t,l,i,u,a,f,m,s,c,y);(0,v.Z)(W,"dZero",F(0,0,0)),(0,v.Z)(W,"dOne",F(1,0,1)),(0,v.Z)(W,"dNegOne",F(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),0,1)),(0,v.Z)(W,"dTwo",F(1,0,2)),(0,v.Z)(W,"dTen",F(1,0,10)),(0,v.Z)(W,"dNaN",F(Number.NaN,Number.NaN,Number.NaN)),(0,v.Z)(W,"dInf",F(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY)),(0,v.Z)(W,"dNegInf",F(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}(),Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY)),(0,v.Z)(W,"dNumberMax",P(1,0,Number.MAX_VALUE)),(0,v.Z)(W,"dNumberMin",P(1,0,Number.MIN_VALUE))},5634:function(n,e,o){"use strict";var r=o(5082),t=o(8534),l=(o(6992),o(8674),o(9601),o(7727),o(5666),o(4865)),i=(o(7941),o(8309),o(2526),o(1817),o(1539),o(6699),o(2023),o(2345)),u=o(9365),a=o(5967);function f(n,e,o,r,t,i){var u=(0,l.resolveComponent)("Links");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"layer-container",style:(0,l.normalizeStyle)({"--layer-color":n.unref(n.color)})},[n.showGoBack?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,class:"goBack",onClick:e[0]||(e[0]=function(){return n.goBack&&n.goBack.apply(n,arguments)})},"←")):(0,l.createCommentVNode)("",!0),n.minimized.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"layer-tab minimized",onClick:e[1]||(e[1]=function(e){return n.minimized.value=!1})},[(0,l.createElementVNode)("div",null,(0,l.toDisplayString)(n.unref(n.name)),1)])):((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:2,class:(0,l.normalizeClass)(["layer-tab",[{showGoBack:n.showGoBack},n.unref(n.classes)]]),style:(0,l.normalizeStyle)(n.unref(n.style))},[(0,l.createVNode)(u,{links:n.unref(n.links)},{default:(0,l.withCtx)((function(){return[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(n.component)))]})),_:1},8,["links"])],6)),n.unref(n.minimizable)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:3,class:"minimize",onClick:e[2]||(e[2]=function(e){return n.minimized.value=!0})}," ▼ ")):(0,l.createCommentVNode)("",!0)],4)}var m=o(6084),s=(o(9653),o(561),o(5389)),c=o(8755),y=(0,l.defineComponent)({components:{Links:s.Z},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:(0,c.P5)(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:(0,c.P5)(Number),required:!0},name:{type:(0,c.P5)(String),required:!0},color:(0,c.P5)(String),style:(0,c.P5)(String,Object,Array),classes:(0,c.P5)(Object),links:(0,c.P5)(Array),minimizable:(0,c.P5)(Boolean)},setup:function(n){var e=(0,l.toRefs)(n),o=e.display,r=e.index,t=e.minimized,u=e.minWidth,f=e.tab,s=(0,c.vq)(o),y=(0,l.computed)((function(){return i.allowGoBack&&function(){return void 0!==r.value&&null!==r.value&&r.value[Symbol.for(">")]?r.value[Symbol.for(">")](0):r.value>0}()&&function(){return void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value}()}));function d(){a.Z.tabs.splice((0,l.unref)(n.index),1/0)}function b(n,e){var o=f.value();(function(){return void 0!==o&&null!==o&&o[Symbol.for("!=")]?o[Symbol.for("!=")](void 0):void 0!=o})()&&(n?(o.style.flexGrow="0",o.style.flexShrink="0",o.style.width="60px",o.style.minWidth=o.style.flexBasis="",o.style.margin="0"):(o.style.flexGrow="",o.style.flexShrink="",o.style.width="",o.style.minWidth=o.style.flexBasis="".concat(e,"px"),o.style.margin=""))}return(0,l.nextTick)((function(){return b(t.value,(0,l.unref)(u.value))})),(0,l.watch)([t,(0,c.o9)(u)],(function(n){var e=(0,m.Z)(n,2),o=e[0],r=e[1];return b(o,r)})),{component:s,showGoBack:y,unref:l.unref,goBack:d}}}),d=o(3744);const b=(0,d.Z)(y,[["render",f],["__scopeId","data-v-666ada59"]]);var v=b,S=o(7286),g=function(n){return(0,l.pushScopeId)("data-v-3303e3d5"),n=n(),(0,l.popScopeId)(),n},h=g((function(){return(0,l.createElementVNode)("h2",null,"Changelog",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),p=g((function(){return(0,l.createElementVNode)("details",{open:""},[(0,l.createElementVNode)("summary",null,[(0,l.createTextVNode)("v0.0 Initial Commit - "),(0,l.createElementVNode)("time",null,"2021-09-04")]),(0,l.createTextVNode)(" This is the first release :D "),(0,l.createElementVNode)("ul",null,[(0,l.createElementVNode)("li",{class:"feature"},"Did everything"),(0,l.createElementVNode)("li",{class:"fix"},"Had some fun"),(0,l.createElementVNode)("li",{class:"breaking"},"Removed everything"),(0,l.createElementVNode)("li",{class:"balancing"},"Created some bugs to fix later")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),N=(0,l.defineComponent)({setup:function(n,e){var o=e.expose,r=(0,l.ref)(!1);return o({open:function(){r.value=!0}}),function(n,e){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:r.value,"onUpdate:modelValue":e[0]||(e[0]=function(n){return r.value=n})},{header:(0,l.withCtx)((function(){return[h]})),body:(0,l.withCtx)((function(){return[p]})),_:1},8,["modelValue"])}}});const k=(0,d.Z)(N,[["__scopeId","data-v-3303e3d5"]]);var M=k,Z=o(9706),V=function(n){return(0,l.pushScopeId)("data-v-0b3812f2"),n=n(),(0,l.popScopeId)(),n},w={class:"info-modal-header"},x=["src","alt"],C={class:"info-modal-title"},E={key:0},B={key:0},I=V((function(){return(0,l.createElementVNode)("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),P=V((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),F=V((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),D=["href"],T=V((function(){return(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),_=V((function(){return(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Paper Pilot Community ")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),O=V((function(){return(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[(0,l.createElementVNode)("span",{class:"material-icons info-modal-discord"},"discord"),(0,l.createTextVNode)(" The Modding Tree ")])],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),R=V((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),j=(0,l.defineComponent)({props:{changelog:null},setup:function(n,e){var o=e.expose,r=n,t=i.title,u=i.logo,f=i.author,m=i.discordName,s=i.discordLink,c=i.versionNumber,y=i.versionTitle,d=(0,l.toRefs)(r),b=(0,l.ref)(!1),v=(0,l.computed)((function(){return(0,Z.mr)(a.Z.timePlayed)}));function g(){var n;null===(n=(0,l.unref)(d.changelog))||void 0===n||n.open()}return o({open:function(){b.value=!0}}),function(n,e){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:b.value,"onUpdate:modelValue":e[0]||(e[0]=function(n){return b.value=n})},{header:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",w,[(0,l.unref)(u)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"info-modal-logo",src:(0,l.unref)(u),alt:(0,l.unref)(t)},null,8,x)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",C,[(0,l.createElementVNode)("h2",null,(0,l.toDisplayString)((0,l.unref)(t)),1),(0,l.createElementVNode)("h4",null,function(){return"v"+(0,l.toDisplayString)((0,l.unref)(c))+": "!==void 0&&"v"+(0,l.toDisplayString)((0,l.unref)(c))+": "!==null&&("v"+(0,l.toDisplayString)((0,l.unref)(c))+": ")[Symbol.for("+")]?("v"+(0,l.toDisplayString)((0,l.unref)(c))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(y))):"v"+(0,l.toDisplayString)((0,l.unref)(c))+": "+(0,l.toDisplayString)((0,l.unref)(y))}(),1)])])]})),body:(0,l.withCtx)((function(n){var e=n.shown;return[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",E,[(0,l.unref)(f)?((0,l.openBlock)(),(0,l.createElementBlock)("div",B,function(){return"By "[Symbol.for("+")]?"By "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"By "+(0,l.toDisplayString)((0,l.unref)(f))}(),1)):(0,l.createCommentVNode)("",!0),I,P,(0,l.createElementVNode)("div",{class:"link",onClick:g},"Changelog"),F,(0,l.createElementVNode)("div",null,[function(){return void 0!==(0,l.unref)(s)&&null!==(0,l.unref)(s)&&(0,l.unref)(s)[Symbol.for("!==")]?(0,l.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(s)}()?((0,l.openBlock)(),(0,l.createElementBlock)("a",{key:0,href:(0,l.unref)(s),class:"info-modal-discord-link"},[T,(0,l.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(m))):" "+(0,l.toDisplayString)((0,l.unref)(m))}(),1)],8,D)):(0,l.createCommentVNode)("",!0)]),_,O,R,(0,l.createElementVNode)("div",null,function(){return"Time Played: "[Symbol.for("+")]?"Time Played: "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(v))):"Time Played: "+(0,l.toDisplayString)((0,l.unref)(v))}(),1)])):(0,l.createCommentVNode)("",!0)]})),_:1},8,["modelValue"])}}});const W=(0,d.Z)(j,[["__scopeId","data-v-0b3812f2"]]);var q=W,A=(o(1249),o(5679)),L=o(9266),z=o(1349),U={class:"field"},G=(0,l.defineComponent)({props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup:function(n,e){var o=e.emit,r=n,t=(0,l.computed)((function(){return(0,c.MM)((0,l.unref)(r.title)||"","span")})),i=(0,l.computed)({get:function(){return function(){return void 0!==!r.modelValue&&null!==!r.modelValue&&(!r.modelValue)[Symbol.for("!")]?(!r.modelValue)[Symbol.for("!")]():!!r.modelValue}()},set:function(n){o("update:modelValue",n)}});return function(n,e){return(0,l.openBlock)(),(0,l.createElementBlock)("label",U,[(0,l.withDirectives)((0,l.createElementVNode)("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":e[0]||(e[0]=function(n){return(0,l.isRef)(i)?i.value=n:null})},null,512),[[l.vModelCheckbox,(0,l.unref)(i)]]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(t))))])}}});const J=(0,d.Z)(G,[["__scopeId","data-v-7db643c6"]]);var Y=J,H=(o(9826),o(9179)),X={class:"field"},$={key:0,class:"field-title"},Q=(0,l.defineComponent)({props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup:function(n,e){var o=e.emit,r=n,t=(0,c.KO)((0,l.toRef)(r,"title"),"span"),i=(0,l.ref)(r.options.find((function(n){return n.value===r.modelValue})));function u(n){o("update:modelValue",n.value)}return(0,l.watch)((0,l.toRef)(r,"modelValue"),(function(n){(function(){var e,o,r,t,l;return void 0!==(null===(e=i.value)||void 0===e?void 0:e.value)&&null!==(null===(o=i.value)||void 0===o?void 0:o.value)&&(null===(r=i.value)||void 0===r?void 0:r.value)[Symbol.for("!==")]?(null===(t=i.value)||void 0===t?void 0:t.value)[Symbol.for("!==")](n):(null===(l=i.value)||void 0===l?void 0:l.value)!==n})()&&(i.value=r.options.find((function(e){return e.value===n})))})),function(e,o){return(0,l.openBlock)(),(0,l.createElementBlock)("div",X,[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createElementBlock)("span",$,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(t))))])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(H.Z),{options:n.options,modelValue:i.value,"onUpdate:modelValue":[o[0]||(o[0]=function(n){return i.value=n}),u],min:1,"label-by":"label",placeholder:n.placeholder,"close-on-select":n.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])])}}});const K=Q;var nn=K,en=o(5939),on=o(6113),rn=function(n){return(0,l.pushScopeId)("data-v-54e795a4"),n=n(),(0,l.popScopeId)(),n},tn=rn((function(){return(0,l.createElementVNode)("div",{class:"header"},[(0,l.createElementVNode)("h2",null,"Options")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ln=rn((function(){return(0,l.createElementVNode)("hr",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),un=(0,l.defineComponent)({setup:function(n,e){var o=e.expose,r=(0,l.ref)(!1);o({open:function(){r.value=!0}});var t=Object.keys(A.Z).map((function(n){return{label:(0,z.IJ)(n),value:n}})),i=(0,l.computed)((function(){return(0,c.MM)((0,on.tZ)((function(){return(0,l.createVNode)(l.Fragment,null,[L.V$.map(c.sY)])})))})),u=(0,l.toRefs)(L.ZP),f=u.showTPS,m=u.theme,s=u.unthrottled,y=(0,l.toRefs)(a.Z),d=y.autosave,b=y.offlineProd,v=(0,l.computed)({get:function(){return 0===a.Z.devSpeed},set:function(n){a.Z.devSpeed=n?0:null}}),g=(0,on.tZ)((function(){return(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Offline Production"),(0,l.createVNode)(en.Z,{display:"Save-specific"},{default:function(){return[(0,l.createTextVNode)("*")]}})])})),h=(0,on.tZ)((function(){return(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Autosave"),(0,l.createVNode)(en.Z,{display:"Save-specific"},{default:function(){return[(0,l.createTextVNode)("*")]}})])})),p=(0,on.tZ)((function(){return(0,l.createVNode)("span",null,[(0,l.createTextVNode)("Pause game"),(0,l.createVNode)(en.Z,{display:"Save-specific"},{default:function(){return[(0,l.createTextVNode)("*")]}})])}));return function(n,e){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:r.value,"onUpdate:modelValue":e[6]||(e[6]=function(n){return r.value=n})},{header:(0,l.withCtx)((function(){return[tn]})),body:(0,l.withCtx)((function(){return[(0,l.createVNode)(nn,{title:"Theme",options:(0,l.unref)(t),modelValue:(0,l.unref)(m),"onUpdate:modelValue":e[0]||(e[0]=function(n){return(0,l.isRef)(m)?m.value=n:null})},null,8,["options","modelValue"]),((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(i)))),(0,l.createVNode)(Y,{title:"Show TPS",modelValue:(0,l.unref)(f),"onUpdate:modelValue":e[1]||(e[1]=function(n){return(0,l.isRef)(f)?f.value=n:null})},null,8,["modelValue"]),ln,(0,l.createVNode)(Y,{title:"Unthrottled",modelValue:(0,l.unref)(s),"onUpdate:modelValue":e[2]||(e[2]=function(n){return(0,l.isRef)(s)?s.value=n:null})},null,8,["modelValue"]),(0,l.createVNode)(Y,{title:(0,l.unref)(g),modelValue:(0,l.unref)(b),"onUpdate:modelValue":e[3]||(e[3]=function(n){return(0,l.isRef)(b)?b.value=n:null})},null,8,["title","modelValue"]),(0,l.createVNode)(Y,{title:(0,l.unref)(h),modelValue:(0,l.unref)(d),"onUpdate:modelValue":e[4]||(e[4]=function(n){return(0,l.isRef)(d)?d.value=n:null})},null,8,["title","modelValue"]),(0,l.createVNode)(Y,{title:(0,l.unref)(p),modelValue:(0,l.unref)(v),"onUpdate:modelValue":e[5]||(e[5]=function(n){return(0,l.isRef)(v)?v.value=n:null})},null,8,["title","modelValue"])]})),_:1},8,["modelValue"])}}});const an=(0,d.Z)(un,[["__scopeId","data-v-54e795a4"]]);var fn=an,mn=o(3336),sn=(o(8862),o(3948),o(7042),o(2222),o(4747),o(7327),o(463)),cn=o(7197),yn=["onSubmit"],dn={class:"field"},bn={key:0,class:"field-title"},vn=["placeholder"],Sn=(0,l.defineComponent)({props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup:function(n,e){var o=e.emit,r=n,t=(0,l.toRefs)(r),i=(0,l.computed)((function(){var n;return(null===(n=t.title)||void 0===n?void 0:n.value)&&(0,c.MM)((0,l.unref)(t.title.value),"span")})),u=(0,l.ref)(null);(0,l.onMounted)((function(){var n;null===(n=u.value)||void 0===n||n.focus()}));var a=(0,l.computed)({get:function(){return(0,l.unref)(t.modelValue)||""},set:function(n){o("update:modelValue",n)}});function f(){o("submit")}return function(e,o){return(0,l.openBlock)(),(0,l.createElementBlock)("form",{onSubmit:(0,l.withModifiers)(f,["prevent"])},[(0,l.createElementVNode)("div",dn,[(0,l.unref)(i)?((0,l.openBlock)(),(0,l.createElementBlock)("span",bn,[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(i))))])):(0,l.createCommentVNode)("",!0),n.textArea?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(cn.Z),{key:1,modelValue:(0,l.unref)(a),"onUpdate:modelValue":o[0]||(o[0]=function(n){return(0,l.isRef)(a)?a.value=n:null}),placeholder:n.placeholder,maxHeight:n.maxHeight,onBlur:f,ref_key:"field",ref:u},null,8,["modelValue","placeholder","maxHeight"])):(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createElementBlock)("input",{key:2,type:"text","onUpdate:modelValue":o[1]||(o[1]=function(n){return(0,l.isRef)(a)?a.value=n:null}),placeholder:n.placeholder,class:(0,l.normalizeClass)({fullWidth:function(){return void 0!==n.title&&null!==n.title&&n.title[Symbol.for("!")]?n.title[Symbol.for("!")]():!n.title}()}),onBlur:f,ref_key:"field",ref:u},null,42,vn)),[[l.vModelText,(0,l.unref)(a)]])])],40,yn)}}});const gn=(0,d.Z)(Sn,[["__scopeId","data-v-540fa62c"]]);var hn=gn,pn={key:0},Nn=["onClick","disabled"],kn={key:0},Mn=["onClick"],Zn=(0,l.defineComponent)({props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup:function(n,e){var o=e.emit,r=n,t=(0,l.toRefs)(r),i=(0,l.ref)(!1);function u(){(0,l.unref)(t.skipConfirm)?o("click"):(i.value&&o("click"),i.value=function(){return void 0!==i.value&&null!==i.value&&i.value[Symbol.for("!")]?i.value[Symbol.for("!")]():!i.value}())}function a(){i.value=!1}return(0,l.watch)(i,(function(n){o("confirmingChanged",n)})),function(e,o){return(0,l.openBlock)(),(0,l.createElementBlock)("span",{class:(0,l.normalizeClass)(["container",{confirming:i.value}])},[i.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",pn,"Are you sure?")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:(0,l.withModifiers)(u,["stop"]),class:"button danger",disabled:n.disabled},[i.value?((0,l.openBlock)(),(0,l.createElementBlock)("span",kn,"Yes")):(0,l.renderSlot)(e.$slots,"default",{key:1})],8,Nn),i.value?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,class:"button",onClick:(0,l.withModifiers)(a,["stop"])},"No",8,Mn)):(0,l.createCommentVNode)("",!0)],2)}}});const Vn=(0,d.Z)(Zn,[["__scopeId","data-v-bf59fca4"]]);var wn=Vn,xn=["onClick"],Cn=(0,l.defineComponent)({props:{left:{type:Boolean}},emits:["click"],setup:function(n,e){var o=e.emit,r=(0,l.ref)(!1),t=(0,l.ref)(null);function i(){o("click"),t.value&&clearTimeout(t.value),r.value=!1,(0,l.nextTick)((function(){r.value=!0,t.value=setTimeout((function(){return r.value=!1}),500)}))}return function(e,o){return(0,l.openBlock)(),(0,l.createElementBlock)("button",{onClick:(0,l.withModifiers)(i,["stop"]),class:(0,l.normalizeClass)(["feedback",{activated:r.value,left:n.left}])},[(0,l.renderSlot)(e.$slots,"default")],10,xn)}}});const En=(0,d.Z)(Cn,[["__scopeId","data-v-5bbcedd3"]]);var Bn=En,In=function(n){return(0,l.pushScopeId)("data-v-4c4580ca"),n=n(),(0,l.popScopeId)(),n},Pn=In((function(){return(0,l.createElementVNode)("div",{class:"handle material-icons"},"drag_handle",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Fn={key:0,class:"actions"},Dn=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"content_paste",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Tn=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"content_copy",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),_n=[Tn],On=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"edit",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Rn=[On],jn=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons",style:{margin:"-2px"}},"delete",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Wn={key:1,class:"actions"},qn=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"check",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),An=[qn],Ln=In((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"close",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),zn=[Ln],Un={key:2,class:"details"},Gn={class:"save-version"},Jn=In((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Yn={key:0},Hn={key:3,class:"details"},Xn={key:4,class:"details error"},$n=In((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Qn=(0,l.defineComponent)({props:{save:null},emits:["export","open","duplicate","delete","editName"],setup:function(n,e){var o=e.emit,r=n,t=(0,l.toRefs)(r),i=t.save,u=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),f=(0,l.ref)(!1),m=(0,l.ref)(!1),s=(0,l.ref)("");(0,l.watch)(f,(function(){return s.value=i.value.name||""}));var c=(0,l.computed)((function(){return i.value&&i.value.id===a.Z.id})),y=(0,l.computed)((function(){return c.value?a.Z.time:i.value&&i.value.time||0}));function d(){o("editName",s.value),f.value=!1}return function(n,e){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["save",{active:(0,l.unref)(c)}])},[Pn,function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Fn,[function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==m.value&&null!==m.value&&m.value[Symbol.for("!")]?m.value[Symbol.for("!")]():!m.value}()?((0,l.openBlock)(),(0,l.createBlock)(Bn,{key:0,onClick:e[0]||(e[0]=function(n){return o("export")}),class:"button",left:""},{default:(0,l.withCtx)((function(){return[Dn]})),_:1})):(0,l.createCommentVNode)("",!0),function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==m.value&&null!==m.value&&m.value[Symbol.for("!")]?m.value[Symbol.for("!")]():!m.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:1,onClick:e[1]||(e[1]=function(n){return o("duplicate")}),class:"button"},_n)):(0,l.createCommentVNode)("",!0),function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==m.value&&null!==m.value&&m.value[Symbol.for("!")]?m.value[Symbol.for("!")]():!m.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:2,onClick:e[2]||(e[2]=function(n){return f.value=function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()}),class:"button"},Rn)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(wn,{disabled:(0,l.unref)(c),onClick:e[3]||(e[3]=function(n){return o("delete")}),onConfirmingChanged:e[4]||(e[4]=function(n){return m.value=n})},{default:(0,l.withCtx)((function(){return[jn]})),_:1},8,["disabled"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Wn,[(0,l.createElementVNode)("button",{onClick:d,class:"button"},An),(0,l.createElementVNode)("button",{onClick:e[5]||(e[5]=function(n){return f.value=function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()}),class:"button"},zn)])),function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&function(){return void 0!==f.value&&null!==f.value&&f.value[Symbol.for("!")]?f.value[Symbol.for("!")]():!f.value}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Un,[(0,l.createElementVNode)("button",{class:"button open",onClick:e[6]||(e[6]=function(n){return o("open")})},[(0,l.createElementVNode)("h3",null,(0,l.toDisplayString)((0,l.unref)(i).name),1)]),(0,l.createElementVNode)("span",Gn,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(i).modVersion)):"v"+(0,l.toDisplayString)((0,l.unref)(i).modVersion)}(),1),Jn,(0,l.unref)(y)?((0,l.openBlock)(),(0,l.createElementBlock)("div",Yn,function(){return"Last played "[Symbol.for("+")]?"Last played "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(u).format((0,l.unref)(y)))):"Last played "+(0,l.toDisplayString)((0,l.unref)(u).format((0,l.unref)(y)))}(),1)):(0,l.createCommentVNode)("",!0)])):function(){return void 0!==(0,l.unref)(i).error&&null!==(0,l.unref)(i).error&&(0,l.unref)(i).error[Symbol.for("==")]?(0,l.unref)(i).error[Symbol.for("==")](void 0):void 0==(0,l.unref)(i).error}()&&f.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",Hn,[(0,l.createVNode)(hn,{modelValue:s.value,"onUpdate:modelValue":e[7]||(e[7]=function(n){return s.value=n}),class:"editname",onSubmit:d},null,8,["modelValue"])])):((0,l.openBlock)(),(0,l.createElementBlock)("div",Xn,[(0,l.createTextVNode)(function(){return" Error: Failed to load save with id "[Symbol.for("+")]?" Error: Failed to load save with id "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(i).id)):" Error: Failed to load save with id "+(0,l.toDisplayString)((0,l.unref)(i).id)}(),1),$n,(0,l.createTextVNode)((0,l.toDisplayString)((0,l.unref)(i).error),1)]))],2)}}});const Kn=(0,d.Z)(Qn,[["__scopeId","data-v-4c4580ca"]]);var ne=Kn,ee=o(9980),oe=o.n(ee),re=function(n){return(0,l.pushScopeId)("data-v-199ffea0"),n=n(),(0,l.popScopeId)(),n},te=re((function(){return(0,l.createElementVNode)("h2",null,"Saves Manager",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),le={class:"modal-footer"},ie={class:"field"},ue=re((function(){return(0,l.createElementVNode)("span",{class:"field-title"},"Create Save",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ae={class:"field-buttons"},fe={class:"footer"},me=re((function(){return(0,l.createElementVNode)("div",{style:{"flex-grow":"1"}},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),se=(0,l.defineComponent)({setup:function(n,e){var t=e.expose,i=(0,l.ref)(!1),u=(0,l.ref)(null);t({open:function(){i.value=!0}});var f=(0,l.ref)(!1),m=(0,l.ref)("");(0,l.watch)(m,(function(n){n?(0,l.nextTick)((function(){try{var e=JSON.parse(decodeURIComponent(escape(atob(n))));if(function(){return void 0!==(0,mn.Z)(e)&&null!==typeof e&&(0,mn.Z)(e)[Symbol.for("!==")]?(0,mn.Z)(e)[Symbol.for("!==")]("object"):"object"!==(0,mn.Z)(e)}())return void(f.value=!0);var o=(0,sn.QI)();e.id=o,localStorage.setItem(o,btoa(unescape(encodeURIComponent(JSON.stringify(e))))),m.value="",f.value=!1,L.ZP.saves.push(o)}catch(r){f.value=!0}})):f.value=!1}));var s=o(7634),c=(0,l.ref)(s.keys().reduce((function(n,e){return n.push({label:e.slice(2,function(){return 4[Symbol.for("minus")]?4[Symbol.for("minus")]():-4}()),value:s(e).default}),n}),[])),y=(0,l.shallowReactive)({});function d(n){if(function(){return void 0!==y[n]&&null!==y[n]&&y[n][Symbol.for("==")]?y[n][Symbol.for("==")](null):null==y[n]}()){var e=localStorage.getItem(n);if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}())y[n]={error:"Save doesn't exist in localStorage",id:n};else if("dW5kZWZpbmVk"===e)y[n]={error:"Save is undefined",id:n};else try{y[n]=(0,r.Z)((0,r.Z)({},JSON.parse(decodeURIComponent(escape(atob(e))))),{},{id:n})}catch(o){y[n]={error:o,id:n},console.warn("SavesManager: Failed to load info about save with id ".concat(n,":\n").concat(o,"\n").concat(e))}}return y[n]}(0,l.watch)(i,(function(n){n&&Object.keys(y).forEach((function(n){return function(){return void 0!==y&&null!==y&&y[Symbol.for("delete")]?y[Symbol.for("delete")]("key"):delete y.key}()}))}));var b=(0,l.computed)((function(){return L.ZP.saves.reduce((function(n,e){return n[e]=d(e),n}),{})}));function v(n){var e;e=a.Z.id===n?(0,sn.a1)():btoa(unescape(encodeURIComponent(JSON.stringify(b.value[n]))));var o=document.createElement("textarea");o.value=e,document.body.appendChild(o),o.select(),o.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(o)}function g(n){a.Z.id===n&&(0,sn.a1)();var e=(0,r.Z)((0,r.Z)({},b.value[n]),{},{id:(0,sn.QI)()});localStorage.setItem(e.id,btoa(unescape(encodeURIComponent(JSON.stringify(e))))),L.ZP.saves.push(e.id)}function h(n){L.ZP.saves=L.ZP.saves.filter((function(e){return function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](n):e!==n}()})),localStorage.removeItem(n),y[n]=void 0}function p(n){b.value[a.Z.id].time=a.Z.time,(0,sn.a1)(),(0,sn.uW)(b.value[n]),y[n]=void 0}function N(n){var e=JSON.parse(decodeURIComponent(escape(atob(n))));e.id=(0,sn.QI)(),localStorage.setItem(e.id,btoa(unescape(encodeURIComponent(JSON.stringify(e))))),L.ZP.saves.push(e.id)}function k(n,e){var o=b.value[n];o&&(o.name=e,a.Z.id===n?(a.Z.name=e,(0,sn.a1)()):(localStorage.setItem(n,btoa(unescape(encodeURIComponent(JSON.stringify(o))))),y[n]=void 0))}return function(n,e){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{modelValue:i.value,"onUpdate:modelValue":e[4]||(e[4]=function(n){return i.value=n}),ref_key:"modal",ref:u},{header:(0,l.withCtx)((function(){return[te]})),body:(0,l.withCtx)((function(){var n;return[(0,l.unref)(null===(n=u.value)||void 0===n?void 0:n.isOpen)?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(oe()),{key:0,list:(0,l.unref)(L.ZP).saves,handle:".handle",itemKey:function(n){return n}},{item:(0,l.withCtx)((function(n){var e=n.element;return[(0,l.createVNode)(ne,{save:(0,l.unref)(b)[e],onOpen:function(n){return p(e)},onExport:function(n){return v(e)},onEditName:function(n){return k(e,n)},onDuplicate:function(n){return g(e)},onDelete:function(n){return h(e)}},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]})),_:1},8,["list","itemKey"])):(0,l.createCommentVNode)("",!0)]})),footer:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",le,[(0,l.createVNode)(hn,{modelValue:m.value,"onUpdate:modelValue":e[0]||(e[0]=function(n){return m.value=n}),title:"Import Save",placeholder:"Paste your save here!",class:(0,l.normalizeClass)({importingFailed:f.value})},null,8,["modelValue","class"]),(0,l.createElementVNode)("div",ie,[ue,(0,l.createElementVNode)("div",ae,[(0,l.createElementVNode)("button",{class:"button",onClick:e[1]||(e[1]=function(){return(0,l.unref)(sn.xM)&&(0,l.unref)(sn.xM).apply(void 0,arguments)})},"New Game"),function(){return void 0!==Object.keys((0,l.unref)(c)).length&&null!==Object.keys((0,l.unref)(c)).length&&Object.keys((0,l.unref)(c)).length[Symbol.for(">")]?Object.keys((0,l.unref)(c)).length[Symbol.for(">")](0):Object.keys((0,l.unref)(c)).length>0}()?((0,l.openBlock)(),(0,l.createBlock)(nn,{key:0,options:(0,l.unref)(c),modelValue:void 0,"onUpdate:modelValue":e[2]||(e[2]=function(n){return N(n)}),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options"])):(0,l.createCommentVNode)("",!0)])]),(0,l.createElementVNode)("div",fe,[me,(0,l.createElementVNode)("button",{class:"button modal-default-button",onClick:e[3]||(e[3]=function(n){return i.value=!1})}," Close ")])])]})),_:1},8,["modelValue"])}}});const ce=(0,d.Z)(se,[["__scopeId","data-v-199ffea0"]]);var ye=ce,de=function(n){return(0,l.pushScopeId)("data-v-72eb8c78"),n=n(),(0,l.popScopeId)(),n},be=["src","alt"],ve={key:1,class:"title"},Se=de((function(){return(0,l.createElementVNode)("div",{style:{"flex-grow":"1",cursor:"unset"}},null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ge={class:"discord"},he={class:"discord-links"},pe={key:0},Ne=["href"],ke=de((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Me=de((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ze={href:"https://forums.moddingtree.com/",target:"_blank"},Ve=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"forum",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),we=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"info",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),xe=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ce=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"settings",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ee=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"library_books",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Be=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"settings",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Ie=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"info",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),Pe={href:"https://forums.moddingtree.com/",target:"_blank"},Fe=de((function(){return(0,l.createElementVNode)("span",{class:"material-icons"},"forum",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),De={class:"discord"},Te={class:"discord-links"},_e={key:0},Oe=["href"],Re=de((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),je=de((function(){return(0,l.createElementVNode)("li",null,[(0,l.createElementVNode)("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),We=(0,l.defineComponent)({setup:function(n){var e=(0,l.ref)(null),o=(0,l.ref)(null),r=(0,l.ref)(null),t=(0,l.ref)(null),u=i.useHeader,a=i.banner,f=i.title,m=i.discordName,s=i.discordLink,c=i.versionNumber;function y(){window.open(s,"mywindow")}return function(n,i){return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.unref)(u)?((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:0,class:"nav"},n.$attrs),[(0,l.unref)(a)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,src:(0,l.unref)(a),height:"100%",alt:(0,l.unref)(f)},null,8,be)):((0,l.openBlock)(),(0,l.createElementBlock)("div",ve,(0,l.toDisplayString)((0,l.unref)(f)),1)),(0,l.createElementVNode)("div",{onClick:i[0]||(i[0]=function(n){var e;return null===(e=t.value)||void 0===e?void 0:e.open()}),class:"version-container"},[(0,l.createVNode)(en.Z,{display:"Changelog",bottom:"",class:"version"},{default:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("span",null,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(c))):"v"+(0,l.toDisplayString)((0,l.unref)(c))}(),1)]})),_:1})]),Se,(0,l.createElementVNode)("div",ge,[(0,l.createElementVNode)("span",{onClick:y,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",he,[function(){return void 0!==(0,l.unref)(s)&&null!==(0,l.unref)(s)&&(0,l.unref)(s)[Symbol.for("!==")]?(0,l.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(s)}()?((0,l.openBlock)(),(0,l.createElementBlock)("li",pe,[(0,l.createElementVNode)("a",{href:(0,l.unref)(s),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(m)),9,Ne)])):(0,l.createCommentVNode)("",!0),ke,Me])]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",Ze,[(0,l.createVNode)(en.Z,{display:"Forums",bottom:"",yoffset:"5px"},{default:(0,l.withCtx)((function(){return[Ve]})),_:1})])]),(0,l.createElementVNode)("div",{onClick:i[1]||(i[1]=function(n){var o;return null===(o=e.value)||void 0===o?void 0:o.open()})},[(0,l.createVNode)(en.Z,{display:"Info",bottom:"",class:"info"},{default:(0,l.withCtx)((function(){return[we]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[2]||(i[2]=function(n){var e;return null===(e=o.value)||void 0===e?void 0:e.open()})},[(0,l.createVNode)(en.Z,{display:"Saves",bottom:"",xoffset:"-20px"},{default:(0,l.withCtx)((function(){return[xe]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[3]||(i[3]=function(n){var e;return null===(e=r.value)||void 0===e?void 0:e.open()})},[(0,l.createVNode)(en.Z,{display:"Options",bottom:"",xoffset:"-66px"},{default:(0,l.withCtx)((function(){return[Ce]})),_:1})])],16)):((0,l.openBlock)(),(0,l.createElementBlock)("div",(0,l.mergeProps)({key:1,class:"overlay-nav"},n.$attrs),[(0,l.createElementVNode)("div",{onClick:i[4]||(i[4]=function(n){var e;return null===(e=t.value)||void 0===e?void 0:e.open()}),class:"version-container"},[(0,l.createVNode)(en.Z,{display:"Changelog",right:"",xoffset:"25%",class:"version"},{default:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("span",null,function(){return"v"[Symbol.for("+")]?"v"[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(c))):"v"+(0,l.toDisplayString)((0,l.unref)(c))}(),1)]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[5]||(i[5]=function(n){var e;return null===(e=o.value)||void 0===e?void 0:e.open()})},[(0,l.createVNode)(en.Z,{display:"Saves",right:""},{default:(0,l.withCtx)((function(){return[Ee]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[6]||(i[6]=function(n){var e;return null===(e=r.value)||void 0===e?void 0:e.open()})},[(0,l.createVNode)(en.Z,{display:"Options",right:""},{default:(0,l.withCtx)((function(){return[Be]})),_:1})]),(0,l.createElementVNode)("div",{onClick:i[7]||(i[7]=function(n){var o;return null===(o=e.value)||void 0===o?void 0:o.open()})},[(0,l.createVNode)(en.Z,{display:"Info",right:""},{default:(0,l.withCtx)((function(){return[Ie]})),_:1})]),(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",Pe,[(0,l.createVNode)(en.Z,{display:"Forums",right:"",xoffset:"7px"},{default:(0,l.withCtx)((function(){return[Fe]})),_:1})])]),(0,l.createElementVNode)("div",De,[(0,l.createElementVNode)("span",{onClick:y,class:"material-icons"},"discord"),(0,l.createElementVNode)("ul",Te,[function(){return void 0!==(0,l.unref)(s)&&null!==(0,l.unref)(s)&&(0,l.unref)(s)[Symbol.for("!==")]?(0,l.unref)(s)[Symbol.for("!==")]("https://discord.gg/WzejVAx"):"https://discord.gg/WzejVAx"!==(0,l.unref)(s)}()?((0,l.openBlock)(),(0,l.createElementBlock)("li",_e,[(0,l.createElementVNode)("a",{href:(0,l.unref)(s),target:"_blank"},(0,l.toDisplayString)((0,l.unref)(m)),9,Oe)])):(0,l.createCommentVNode)("",!0),Re,je])])],16)),(0,l.createVNode)(q,{ref_key:"info",ref:e,changelog:t.value},null,8,["changelog"]),(0,l.createVNode)(ye,{ref_key:"savesManager",ref:o},null,512),(0,l.createVNode)(fn,{ref_key:"options",ref:r},null,512),(0,l.createVNode)(M,{ref_key:"changelog",ref:t},null,512)],64)}}});const qe=(0,d.Z)(We,[["__scopeId","data-v-72eb8c78"]]);var Ae=qe,Le={class:"tabs-container"},ze={class:"inner-tab"},Ue={key:1,class:"separator"},Ge=(0,l.defineComponent)({setup:function(n){var e=(0,l.toRef)(a.Z,"tabs"),o=(0,l.computed)((function(){return Object.keys(u.layers)})),r=i.useHeader;function t(n){var e=n.display,o=n.minimized,r=n.minWidth,t=n.name,l=n.color,i=n.style,u=n.classes,a=n.links,f=n.minimizable;return{display:e,minimized:o,minWidth:r,name:t,color:l,style:i,classes:u,links:a,minimizable:f}}return function(n,i){return(0,l.openBlock)(),(0,l.createElementBlock)("div",Le,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(e),(function(i,a){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{key:a,class:"tab",ref_for:!0,ref:"tab-".concat(a)},[0===a&&function(){return void 0!==(0,l.unref)(r)&&null!==(0,l.unref)(r)&&(0,l.unref)(r)[Symbol.for("!")]?(0,l.unref)(r)[Symbol.for("!")]():!(0,l.unref)(r)}()?((0,l.openBlock)(),(0,l.createBlock)(Ae,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",ze,[(0,l.unref)(o).includes(i)?((0,l.openBlock)(),(0,l.createBlock)(v,(0,l.mergeProps)({key:0},t((0,l.unref)(u.layers)[i]),{index:a,tab:function(){var e;return null===(e=n.$refs["tab-".concat(a)])||void 0===e?void 0:e[0]}}),null,16,["index","tab"])):((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(i),{key:1,index:a},null,8,["index"]))]),function(){return void 0!==a&&null!==a&&a[Symbol.for("!==")]?a[Symbol.for("!==")]((0,l.unref)(e).length-1):a!==(0,l.unref)(e).length-1}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Ue)):(0,l.createCommentVNode)("",!0)])})),128))])}}});const Je=(0,d.Z)(Ge,[["__scopeId","data-v-6bcb9872"]]);var Ye=Je,He=o(8097),Xe=function(n){return(0,l.pushScopeId)("data-v-364b55bc"),n=n(),(0,l.popScopeId)(),n},$e={class:"game-over-modal-header"},Qe=["src","alt"],Ke={class:"game-over-modal-title"},no=Xe((function(){return(0,l.createElementVNode)("h2",null,"Congratulations!",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),eo={key:0},oo=Xe((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ro=Xe((function(){return(0,l.createElementVNode)("div",null," Please check the Discord to discuss the game or to check for new content updates! ",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),to=Xe((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),lo=["href"],io=Xe((function(){return(0,l.createElementVNode)("span",{class:"material-icons game-over-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),uo=(0,l.defineComponent)({setup:function(n){var e=i.title,o=i.logo,r=i.discordName,t=i.discordLink,u=i.versionNumber,f=i.versionTitle,m=(0,l.computed)((function(){return(0,Z.mr)(a.Z.timePlayed)})),s=(0,l.computed)((function(){return He.hasWon.value&&function(){return void 0!==a.Z.keepGoing&&null!==a.Z.keepGoing&&a.Z.keepGoing[Symbol.for("!")]?a.Z.keepGoing[Symbol.for("!")]():!a.Z.keepGoing}()})),c=(0,l.toRef)(a.Z,"autosave");function y(){a.Z.keepGoing=!0}function d(){(0,sn.uW)((0,sn.xM)())}return function(n,i){return(0,l.openBlock)(),(0,l.createBlock)(S.Z,{"model-value":(0,l.unref)(s)},{header:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",$e,[(0,l.unref)(o)?((0,l.openBlock)(),(0,l.createElementBlock)("img",{key:0,class:"game-over-modal-logo",src:(0,l.unref)(o),alt:(0,l.unref)(e)},null,8,Qe)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",Ke,[no,(0,l.createElementVNode)("h4",null,function(){return"You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": "!==void 0&&"You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": "!==null&&("You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": ")[Symbol.for("+")]?("You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": ")[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(f))):"You've beaten "+(0,l.toDisplayString)((0,l.unref)(e))+" v"+(0,l.toDisplayString)((0,l.unref)(u))+": "+(0,l.toDisplayString)((0,l.unref)(f))}(),1)])])]})),body:(0,l.withCtx)((function(n){var e=n.shown;return[e?((0,l.openBlock)(),(0,l.createElementBlock)("div",eo,[(0,l.createElementVNode)("div",null,function(){return"It took you "+(0,l.toDisplayString)((0,l.unref)(m))!==void 0&&"It took you "+(0,l.toDisplayString)((0,l.unref)(m))!==null&&("It took you "+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")]?("It took you "+(0,l.toDisplayString)((0,l.unref)(m)))[Symbol.for("+")](" to beat the game."):"It took you "+(0,l.toDisplayString)((0,l.unref)(m))+" to beat the game."}(),1),oo,ro,to,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(t),class:"game-over-modal-discord-link"},[io,(0,l.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(r))):" "+(0,l.toDisplayString)((0,l.unref)(r))}(),1)],8,lo)]),(0,l.createVNode)(Y,{title:"Autosave",modelValue:(0,l.unref)(c),"onUpdate:modelValue":i[0]||(i[0]=function(n){return(0,l.isRef)(c)?c.value=n:null})},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0)]})),footer:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",{class:"game-over-footer"},[(0,l.createElementVNode)("button",{onClick:y,class:"button"},"Keep Going"),(0,l.createElementVNode)("button",{onClick:d,class:"button danger"},"Play Again")])]})),_:1},8,["model-value"])}}});const ao=(0,d.Z)(uo,[["__scopeId","data-v-364b55bc"]]);var fo=ao,mo=(o(9600),o(3032)),so=function(n){return(0,l.pushScopeId)("data-v-0f93e378"),n=n(),(0,l.popScopeId)(),n},co=so((function(){return(0,l.createElementVNode)("div",{class:"nan-modal-header"},[(0,l.createElementVNode)("h2",null,"NaN value detected!")],function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),yo={key:0},bo=so((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),vo=["href"],So=so((function(){return(0,l.createElementVNode)("span",{class:"material-icons nan-modal-discord"},"discord",function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),go=so((function(){return(0,l.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())})),ho={class:"nan-footer"},po=(0,l.defineComponent)({setup:function(n){var e=i.discordName,o=i.discordLink,r=(0,l.toRef)(a.Z,"autosave"),t=(0,l.toRef)(mo.Z,"hasNaN"),u=(0,l.ref)(null),f=(0,l.computed)((function(){var n;return null===(n=mo.Z.NaNPath)||void 0===n?void 0:n.join(".")})),m=(0,l.computed)((function(){var n;return null===(n=mo.Z.NaNPath)||void 0===n?void 0:n.slice(function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}())[0]})),s=(0,l.computed)((function(){return mo.Z.NaNReceiver&&m.value?mo.Z.NaNReceiver[m.value]:null})),c=(0,l.computed)({get:function(){return 0===a.Z.devSpeed},set:function(n){a.Z.devSpeed=n?null:0}});function y(){mo.Z.NaNReceiver&&m.value&&(mo.Z.NaNReceiver[m.value]=new Z.ZP(0),mo.Z.hasNaN=!1)}function d(){mo.Z.NaNReceiver&&m.value&&(mo.Z.NaNReceiver[m.value]=new Z.ZP(1),mo.Z.hasNaN=!1)}function b(){mo.Z.NaNReceiver&&m.value&&(mo.Z.NaNReceiver[m.value]=new Z.ZP(NaN),mo.Z.hasNaN=!1)}return function(n,i){return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(S.Z,(0,l.mergeProps)({modelValue:(0,l.unref)(t),"onUpdate:modelValue":i[4]||(i[4]=function(n){return(0,l.isRef)(t)?t.value=n:null})},n.$attrs),{header:(0,l.withCtx)((function(){return[co]})),body:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",null,[(0,l.createTextVNode)(function(){return' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f))!==void 0&&' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f))!==null&&(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f)))[Symbol.for("+")]?(' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f)))[Symbol.for("+")]('" to NaN'):' Attempted to assign "'+(0,l.toDisplayString)((0,l.unref)(f))+'" to NaN'}(),1),(0,l.unref)(s)?((0,l.openBlock)(),(0,l.createElementBlock)("span",yo,function(){return(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s)))!==void 0&&(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s)))!==null&&((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s))))[Symbol.for("+")]?((0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s))))[Symbol.for("+")](")"):(0,l.toDisplayString)(" ")+"(previously "+(0,l.toDisplayString)((0,l.unref)(Z.WU)((0,l.unref)(s)))+")"}(),1)):(0,l.createCommentVNode)("",!0),(0,l.createTextVNode)(function(){return". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled")!==void 0&&". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled")!==null&&(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled"))[Symbol.for("+")]?(". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled"))[Symbol.for("+")](". Check the console for more details, and consider sharing it with the developers on discord. "):". Auto-saving has been "+(0,l.toDisplayString)((0,l.unref)(r)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. "}(),1)]),bo,(0,l.createElementVNode)("div",null,[(0,l.createElementVNode)("a",{href:(0,l.unref)(o),class:"nan-modal-discord-link"},[So,(0,l.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,l.toDisplayString)((0,l.unref)(e))):" "+(0,l.toDisplayString)((0,l.unref)(e))}(),1)],8,vo)]),go,(0,l.createVNode)(Y,{title:"Autosave",modelValue:(0,l.unref)(r),"onUpdate:modelValue":i[0]||(i[0]=function(n){return(0,l.isRef)(r)?r.value=n:null})},null,8,["modelValue"]),(0,l.createVNode)(Y,{title:"Pause game",modelValue:(0,l.unref)(c),"onUpdate:modelValue":i[1]||(i[1]=function(n){return(0,l.isRef)(c)?c.value=n:null})},null,8,["modelValue"])]})),footer:(0,l.withCtx)((function(){return[(0,l.createElementVNode)("div",ho,[(0,l.createElementVNode)("button",{onClick:i[2]||(i[2]=function(n){var e;return null===(e=u.value)||void 0===e?void 0:e.open()}),class:"button"},"Open Saves Manager"),(0,l.createElementVNode)("button",{onClick:y,class:"button"},"Set to 0"),(0,l.createElementVNode)("button",{onClick:d,class:"button"},"Set to 1"),(0,l.unref)(s)&&(0,l.unref)(Z.ZP).neq((0,l.unref)(s),0)&&(0,l.unref)(Z.ZP).neq((0,l.unref)(s),1)?((0,l.openBlock)(),(0,l.createElementBlock)("button",{key:0,onClick:i[3]||(i[3]=function(n){return t.value=!1}),class:"button"}," Set to previous ")):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("button",{onClick:b,class:"button danger"},"Ignore")])]})),_:1},16,["modelValue"]),(0,l.createVNode)(ye,{ref_key:"savesManager",ref:u},null,512)],64)}}});const No=(0,d.Z)(po,[["__scopeId","data-v-0f93e378"]]);var ko=No,Mo=(o(86),{key:0,class:"tpsDisplay"}),Zo={key:0,class:"low"},Vo=(0,l.defineComponent)({setup:function(n){var e=(0,l.computed)((function(){return Z.ZP.div(mo.Z.lastTenTicks.length,mo.Z.lastTenTicks.reduce((function(n,e){return function(){return void 0!==n&&null!==n&&n[Symbol.for("+")]?n[Symbol.for("+")](e):n+e}()}),0))})),o=(0,l.ref)([]);(0,l.watchEffect)((function(){o.value.push(Math.round(e.value.toNumber())),function(){return void 0!==o.value.length&&null!==o.value.length&&o.value.length[Symbol.for(">")]?o.value.length[Symbol.for(">")](10):o.value.length>10}()&&(o.value=o.value.slice(1))}));var r=(0,l.computed)((function(){return o.value.reduce((function(n,e){return Z.ZP.max(n,e)}),0)})),t=(0,l.computed)((function(){return Z.ZP.sub(e.value,r.value).gt(1)}));return function(n,o){return function(){return void 0!==(0,l.unref)(e).isNan()&&null!==(0,l.unref)(e).isNan()&&(0,l.unref)(e).isNan()[Symbol.for("!")]?(0,l.unref)(e).isNan()[Symbol.for("!")]():!(0,l.unref)(e).isNan()}()?((0,l.openBlock)(),(0,l.createElementBlock)("div",Mo,[(0,l.createTextVNode)(function(){return" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e)))!==void 0&&" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e)))!==null&&(" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e))))[Symbol.for("+")]?(" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e))))[Symbol.for("+")](" "):" TPS: "+(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(e)))+" "}(),1),(0,l.createVNode)(l.Transition,{name:"fade"},{default:(0,l.withCtx)((function(){return[(0,l.unref)(t)?((0,l.openBlock)(),(0,l.createElementBlock)("span",Zo,(0,l.toDisplayString)((0,l.unref)(Z.Ht)((0,l.unref)(r))),1)):(0,l.createCommentVNode)("",!0)]})),_:1})])):(0,l.createCommentVNode)("",!0)}}});const wo=(0,d.Z)(Vo,[["__scopeId","data-v-323f9b12"]]);var xo=wo,Co=(0,l.defineComponent)({setup:function(n){function e(){}var o=i.useHeader,r=(0,l.computed)((function(){return A.Z[L.ZP.theme].variables})),t=(0,l.toRef)(L.ZP,"showTPS");return function(n,i){return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createElementVNode)("div",{id:"modal-root",style:(0,l.normalizeStyle)((0,l.unref)(r))},null,4),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["app",{useHeader:(0,l.unref)(o)}]),onMousemove:e,style:(0,l.normalizeStyle)((0,l.unref)(r))},[(0,l.unref)(o)?((0,l.openBlock)(),(0,l.createBlock)(Ae,{key:0})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Ye),(0,l.unref)((0,l.unref)(t))?((0,l.openBlock)(),(0,l.createBlock)(xo,{key:1})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(fo),(0,l.createVNode)(ko)],38)],64)}}});const Eo=(0,d.Z)(Co,[["__scopeId","data-v-e0e491f6"]]);var Bo=Eo;requestAnimationFrame((0,t.Z)(regeneratorRuntime.mark((function n(){var e,t,u,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.log("%cMade in Profectus%c\nLearn more at www.moddingtree.com","font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),n.next=3,(0,sn.zD)();case 3:return n.next=5,o(7302);case 5:e=n.sent,t=e.globalBus,u=e.startGameLoop,a=window.vue=(0,l.createApp)((0,r.Z)({},Bo)),t.emit("setupVue",a),a.mount("#app"),document.title=i.title,u();case 13:case"end":return n.stop()}}),n)})))),window.modInfo=i},9706:function(n,e,o){"use strict";o.d(e,{WU:function(){return u},Ht:function(){return a},mr:function(){return f}});var r=o(3243),t=r.m6,l=r.Qv,i=r.hm,u=r.WU,a=r.Ht,f=r.mr,m=r.FP,s=r.T3,c=r.Hv;window.Decimal=r.ZP,window.exponentialFormat=t,window.commaFormat=l,window.regularFormat=i,window.format=u,window.formatWhole=a,window.formatTime=f,window.toPlaces=m,window.formatSmall=s,window.invertOOM=c,e["ZP"]=r.ZP},3243:function(n,e,o){"use strict";o.d(e,{m6:function(){return i},Qv:function(){return u},hm:function(){return a},WU:function(){return f},Ht:function(){return m},mr:function(){return s},FP:function(){return c},T3:function(){return y},Hv:function(){return d}});o(2526),o(1817),o(1539),o(6977),o(4916),o(3123),o(5306),o(9653),o(86);var r=o(1008),t=o(2345);e["ZP"]=r.Z;var l=new r.Z(1);function i(n,e){var o=arguments,i=!function(){return void 0!==o.length&&null!==o.length&&o.length[Symbol.for(">")]?o.length[Symbol.for(">")](2):o.length>2}()||!function(){return void 0!==o[2]&&null!==o[2]&&o[2][Symbol.for("!==")]?o[2][Symbol.for("!==")](void 0):void 0!==o[2]}()||arguments[2],a=r.Z.log10(n).floor(),m=r.Z.div(n,r.Z.pow(10,a));"10"===m.toStringWithDecimalPlaces(e)&&(m=l,a=a.add(1));var s=a.gte(1e9)?f(a,Math.max(Math.max(e,3),t.defaultDecimalsShown)):a.gte(1e4)?u(a,0):a.toStringWithDecimalPlaces(0);return i?function(){return m.toStringWithDecimalPlaces(e)+"e"!==void 0&&m.toStringWithDecimalPlaces(e)+"e"!==null&&(m.toStringWithDecimalPlaces(e)+"e")[Symbol.for("+")]?(m.toStringWithDecimalPlaces(e)+"e")[Symbol.for("+")](s):m.toStringWithDecimalPlaces(e)+"e"+s}():function(){return"e"[Symbol.for("+")]?"e"[Symbol.for("+")](s):"e"+s}()}function u(n,e){if(null===n||void 0===n)return"NaN";if(n=new r.Z(n),function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](.001):n.mag<.001}())return(0).toFixed(e);var o=n.toStringWithDecimalPlaces(e),t=o.split(".");return t[0]=t[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),function(){return void 0!==t.length&&null!==t.length&&t.length[Symbol.for("==")]?t.length[Symbol.for("==")](1):1==t.length}()?t[0]:function(){return t[0]+"."!==void 0&&t[0]+"."!==null&&(t[0]+".")[Symbol.for("+")]?(t[0]+".")[Symbol.for("+")](t[1]):t[0]+"."+t[1]}()}function a(n,e){return null===n||void 0===n?"NaN":(n=new r.Z(n),function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](1e-4):n.mag<1e-4}()?(0).toFixed(e):(function(){return void 0!==n.mag&&null!==n.mag&&n.mag[Symbol.for("<")]?n.mag[Symbol.for("<")](.1):n.mag<.1}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](0):0!==e}()&&(e=Math.max(Math.max(e,4),t.defaultDecimalsShown)),n.toStringWithDecimalPlaces(e)))}function f(n,e,o){if(function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()&&(e=t.defaultDecimalsShown),o=o||t.allowSmall,n=new r.Z(n),isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag))return"NaN";if(function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<")]?n.sign[Symbol.for("<")](0):n.sign<0}())return function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](f(n.neg(),e)):"-"+f(n.neg(),e)}();if(n.mag===Number.POSITIVE_INFINITY)return"Infinity";if(n.gte("eeee1000")){var l=n.slog();return l.gte(1e6)?function(){return"F"[Symbol.for("+")]?"F"[Symbol.for("+")](f(l.floor())):"F"+f(l.floor())}():function(){return r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F"!==void 0&&r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F"!==null&&(r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")]?(r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F")[Symbol.for("+")](u(l.floor(),0)):r.Z.pow(10,l.sub(l.floor())).toStringWithDecimalPlaces(3)+"F"+u(l.floor(),0)}()}if(n.gte("1e100000"))return i(n,0,!1);if(n.gte("1e1000"))return i(n,0);if(n.gte(1e9))return i(n,e);if(n.gte(1e3))return u(n,0);if(n.gte(.001)||function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}())return a(n,e);if(n.eq(0))return(0).toFixed(e);if(n=d(n),n.lt("1e1000")){var m=i(n,e);return m.replace(/([^(?:e|F)]*)$/,"-$1")}return function(){return void 0!==f(n,e)&&null!==f(n,e)&&f(n,e)[Symbol.for("+")]?f(n,e)[Symbol.for("+")]("⁻¹"):f(n,e)+"⁻¹"}()}function m(n){return n=new r.Z(n),function(){return void 0!==n.sign&&null!==n.sign&&n.sign[Symbol.for("<")]?n.sign[Symbol.for("<")](0):n.sign<0}()?function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](m(n.neg())):"-"+m(n.neg())}():n.gte(1e9)||n.lte(.98)&&function(){return void 0!==n.eq(0)&&null!==n.eq(0)&&n.eq(0)[Symbol.for("!")]?n.eq(0)[Symbol.for("!")]():!n.eq(0)}()?f(n):f(n,0)}function s(n){return r.Z.lt(n,0)?function(){return"-"[Symbol.for("+")]?"-"[Symbol.for("+")](s(r.Z.neg(n))):"-"+s(r.Z.neg(n))}():r.Z.gt(n,function(){return 2[Symbol.for("**")]?2[Symbol.for("**")](51):Math.pow(2,51)}())?function(){return void 0!==f(r.Z.div(n,31536e3))&&null!==f(r.Z.div(n,31536e3))&&f(r.Z.div(n,31536e3))[Symbol.for("+")]?f(r.Z.div(n,31536e3))[Symbol.for("+")]("y"):f(r.Z.div(n,31536e3))+"y"}():(n=new r.Z(n).toNumber(),function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](60):n<60}()?function(){return void 0!==f(n)&&null!==f(n)&&f(n)[Symbol.for("+")]?f(n)[Symbol.for("+")]("s"):f(n)+"s"}():function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](3600):n<3600}()?function(){return m(Math.floor(n/60))+"m "+f(n%60)!==void 0&&m(Math.floor(n/60))+"m "+f(n%60)!==null&&(m(Math.floor(n/60))+"m "+f(n%60))[Symbol.for("+")]?(m(Math.floor(n/60))+"m "+f(n%60))[Symbol.for("+")]("s"):m(Math.floor(n/60))+"m "+f(n%60)+"s"}():function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](86400):n<86400}()?function(){return m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60)!==void 0&&m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60)!==null&&(m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60))[Symbol.for("+")]?(m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60))[Symbol.for("+")]("s"):m(Math.floor(n/3600))+"h "+m(Math.floor(n/60)%60)+"m "+m(n%60)+"s"}():function(){return void 0!==n&&null!==n&&n[Symbol.for("<")]?n[Symbol.for("<")](31536e3):n<31536e3}()?function(){return m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60)!==void 0&&m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60)!==null&&(m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60))[Symbol.for("+")]?(m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60))[Symbol.for("+")]("m"):m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h "+m(Math.floor(n/60)%60)+"m"}():function(){return m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)!==void 0&&m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)!==null&&(m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24))[Symbol.for("+")]?(m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24))[Symbol.for("+")]("h"):m(Math.floor(n/31536e3))+"y "+m(Math.floor(n/84600)%365)+"d "+m(Math.floor(n/3600)%24)+"h"}())}function c(n,e,o){n=new r.Z(n);var t=n.toStringWithDecimalPlaces(e);return new r.Z(t).gte(o)&&(t=r.Z.sub(o,Math.pow(.1,e)).toStringWithDecimalPlaces(e)),t}function y(n,e){return f(n,e,!0)}function d(n){var e=r.Z.log10(n).ceil(),o=r.Z.div(n,r.Z.pow(10,e));return e=e.neg(),n=new r.Z(10).pow(e).times(o),n}},1349:function(n,e,o){"use strict";o.d(e,{IJ:function(){return r},PO:function(){return t},mf:function(){return l}});o(4916),o(5306),o(2526),o(1817),o(1539),o(7042);function r(n){var e=n.replace(/([A-Z])/g," $1");return e=function(){return void 0!==e.charAt(0).toUpperCase()&&null!==e.charAt(0).toUpperCase()&&e.charAt(0).toUpperCase()[Symbol.for("+")]?e.charAt(0).toUpperCase()[Symbol.for("+")](e.slice(1)):e.charAt(0).toUpperCase()+e.slice(1)}(),e}function t(n){return"[object Object]"===Object.prototype.toString.call(n)}function l(n){return"function"===typeof n}},9583:function(n,e,o){"use strict";o.d(e,{mM:function(){return l},yB:function(){return i}});o(2526),o(1817),o(1539);var r=o(4865),t=o(1349),l=Symbol("DoNotCache");function i(n,e){var o=n[e];(0,t.mf)(o)&&0===o.length&&function(){return void 0!==o[l]&&null!==o[l]&&o[l][Symbol.for("!")]?o[l][Symbol.for("!")]():!o[l]}()&&(n[e]=(0,r.computed)(o.bind(n)))}},3273:function(n,e,o){"use strict";o.d(e,{Le:function(){return r},c4:function(){return t},z2:function(){return l}});o(2526),o(1817),o(1539),o(1037),o(1299),o(7556),o(5003);var r=Symbol("ProxyState"),t=Symbol("ProxyPath");function l(n){var e={},o=!1;function t(){return function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}()&&(Object.assign(e,n()),o=!0),e}return new Proxy(e,{get:function(n,e){return e===r?t():t()[e]},set:function(){return console.error("Layers and features are shallow readonly"),!1},has:function(n,e){return e===r||Reflect.has(t(),e)},ownKeys:function(){return Reflect.ownKeys(t())},getOwnPropertyDescriptor:function(r,t){return function(){return void 0!==o&&null!==o&&o[Symbol.for("!")]?o[Symbol.for("!")]():!o}()&&(Object.assign(e,n()),o=!0),Object.getOwnPropertyDescriptor(r,t)}})}},463:function(n,e,o){"use strict";o.d(e,{a1:function(){return s},zD:function(){return c},xM:function(){return d},QI:function(){return b},uW:function(){return v},y6:function(){return g}});var r=o(3336),t=o(8534),l=(o(5666),o(2526),o(1817),o(1539),o(7042),o(2222),o(8783),o(3948),o(4747),o(2345)),i=o(5967),u=o(9266),a=o(9706),f=o(3273);function m(){var n=arguments,e=function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()&&function(){return void 0!==n[0]&&null!==n[0]&&n[0][Symbol.for("!==")]?n[0][Symbol.for("!==")](void 0):void 0!==n[0]}()?arguments[0]:{};return Object.assign({id:"".concat(l.id,"-0"),name:"Default Save",tabs:l.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:new a.ZP(0),timePlayed:new a.ZP(0),keepGoing:!1,modID:l.id,modVersion:l.versionNumber,layers:{}},e)}function s(){var n=btoa(unescape(encodeURIComponent((0,i.U)(i.Z[f.Le]))));return localStorage.setItem(i.Z.id,n),n}function c(){return y.apply(this,arguments)}function y(){return y=(0,t.Z)(regeneratorRuntime.mark((function n(){var e,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if((0,u.ri)(),n.prev=1,e=localStorage.getItem(u.ZP.active),function(){return void 0!==function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()&&null!==function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()[Symbol.for("!")]?function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()[Symbol.for("!")]():!function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()}()){n.next=7;break}return n.next=6,v(d());case 6:return n.abrupt("return");case 7:if(o=JSON.parse(decodeURIComponent(escape(atob(e)))),function(){return void 0!==function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()&&null!==function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()&&function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()[Symbol.for("!")]?function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()[Symbol.for("!")]():!function(){return void 0!==o.modID&&null!==o.modID&&o.modID[Symbol.for("!==")]?o.modID[Symbol.for("!==")](l.id):o.modID!==l.id}()}()){n.next=12;break}return n.next=11,v(d());case 11:return n.abrupt("return");case 12:return o.id=u.ZP.active,n.next=15,v(o);case 15:n.next=22;break;case 17:return n.prev=17,n.t0=n["catch"](1),console.error("Failed to load save. Falling back to new save.\n",n.t0),n.next=22,v(d());case 22:case"end":return n.stop()}}),n,null,[[1,17]])}))),y.apply(this,arguments)}function d(){var n=b(),e=m({id:n});return localStorage.setItem(n,btoa(unescape(encodeURIComponent((0,i.U)(e))))),u.ZP.saves.push(n),e}function b(){var n,e=0;do{n="".concat(l.id,"-").concat(function(){return void 0!==e&&null!==e&&"object"===(0,r.Z)(e)&&e[Symbol.for("postfix-increment")]?e[Symbol.for("postfix-increment")]():e++}())}while(localStorage.getItem(n));return n}function v(n){return S.apply(this,arguments)}function S(){return S=(0,t.Z)(regeneratorRuntime.mark((function n(e){var r,t,f,s,c,y,d,b;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return console.info("Loading save",e),n.next=3,Promise.resolve().then(o.bind(o,9365));case 3:return r=n.sent,t=r.layers,f=r.removeLayer,s=r.addLayer,n.next=9,Promise.resolve().then(o.bind(o,8097));case 9:for(b in c=n.sent,y=c.fixOldSave,d=c.getInitialLayers,t)f(t[b]);d(e).forEach((function(n){return s(n,e)})),e=m(e),e.offlineProd&&e.time&&(function(){return void 0!==e.offlineTime&&null!==e.offlineTime&&e.offlineTime[Symbol.for("==")]?e.offlineTime[Symbol.for("==")](void 0):void 0==e.offlineTime}()&&(e.offlineTime=new a.ZP(0)),e.offlineTime=a.ZP.add(e.offlineTime,function(){return Date.now()-e.time!==void 0&&Date.now()-e.time!==null&&(Date.now()-e.time)[Symbol.for("/")]?(Date.now()-e.time)[Symbol.for("/")](1e3):(Date.now()-e.time)/1e3}())),e.time=Date.now(),function(){return void 0!==e.modVersion&&null!==e.modVersion&&e.modVersion[Symbol.for("!==")]?e.modVersion[Symbol.for("!==")](l.versionNumber):e.modVersion!==l.versionNumber}()&&y(e.modVersion,e),Object.assign(i.Z,e),u.ZP.active=i.Z.id;case 20:case"end":return n.stop()}}),n)}))),S.apply(this,arguments)}setInterval((function(){i.Z.autosave&&s()}),1e3),window.onbeforeunload=function(){i.Z.autosave&&s()},window.save=s;var g=window.hardReset=(0,t.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,v(d());case 2:case"end":return n.stop()}}),n)})))},8097:function(n,e,o){"use strict";o.r(e),o.d(e,{fixOldSave:function(){return Fn},getInitialLayers:function(){return In},hasWon:function(){return Pn},main:function(){return Bn}});var r=o(4865),t=(o(2526),o(1817),o(1539),(0,r.defineComponent)({props:{width:{default:"8px"},height:{default:"17px"}},setup:function(n){return function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{style:(0,r.normalizeStyle)({width:n.width,height:n.height})},null,4)}}}));const l=t;var i=l,u=o(6113),a=o(3336),f=(o(7268),o(86),o(9706)),m=o(7302),s=o(4061);function c(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:"points",r=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](2):e.length>2}()&&function(){return void 0!==e[2]&&null!==e[2]&&e[2][Symbol.for("!==")]?e[2][Symbol.for("!==")](void 0):void 0!==e[2]}()?arguments[2]:0,t=!(!function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](3):e.length>3}()||!function(){return void 0!==e[3]&&null!==e[3]&&e[3][Symbol.for("!==")]?e[3][Symbol.for("!==")](void 0):void 0!==e[3]}())&&arguments[3],l=(0,s.ax)(n);return l.displayName=o,l.precision=r,l.small=t,l}function y(n){var e=(0,s.ax)(n.value);return(0,r.watch)(n,(function(n){f.ZP.gt(n,e.value)&&(e.value=n)})),e}function d(n){var e=(0,s.ax)(n.value);return(0,r.watch)(n,(function(n,o){f.ZP.gt(n,o)&&(e.value=f.ZP.add(e.value,f.ZP.sub(n,o)))})),e}function b(n,e){var o=(0,r.ref)(0),t=(0,r.ref)(0),l=(0,r.ref)(0);m.globalBus.on("update",(function(e){if(t.value=0,f.ZP.lte(n.value,1e100))l.value=n.value;else{var r=n.value,i=l.value;if(l.value=r,f.ZP.gt(r,i))if(f.ZP.gte(r,"10^^8"))r=f.ZP.slog(r,1e10),i=f.ZP.slog(i,1e10),o.value=r.sub(i).div(e),t.value=function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}();else while(f.ZP.div(r,i).log(10).div(e).gte("100")&&function(){return void 0!==t.value&&null!==t.value&&t.value[Symbol.for("<=")]?t.value[Symbol.for("<=")](5):t.value<=5}()&&f.ZP.gt(i,0))r=f.ZP.log10(r),i=f.ZP.log10(i),o.value=r.sub(i).div(e),function(){void 0!==t.value&&null!==t.value&&"object"===(0,a.Z)(t.value)&&t.value[Symbol.for("postfix-increment")]?t.value[Symbol.for("postfix-increment")]():t.value++}()}}));var i=(0,r.computed)((function(){return 0===t.value?e?function(){return(0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName!==void 0&&(0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName!==null&&((0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName)[Symbol.for("+")]?((0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName)[Symbol.for("+")]("/s"):(0,f.WU)(e.value,n.precision,n.small)+" "+n.displayName+"/s"}():"":function(){return(0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)!==void 0&&(0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)!==null&&((0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value))[Symbol.for("+")]?((0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value))[Symbol.for("+")]("s/sec"):(0,f.WU)(o.value)+" OOM"+(t.value<0?"^OOM":"^"+t.value)+"s/sec"}()}));return i}function v(n,e){var o=function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](null):null!==e}()&&function(){return void 0!==e&&null!==e&&e[Symbol.for("!==")]?e[Symbol.for("!==")](void 0):void 0!==e}()?e:n.value;return f.ZP.eq(n.precision,0)?(0,f.Ht)(o):(0,f.WU)(o,n.precision,n.small)}var S=o(9584),g=(o(4553),o(6699),o(2023),o(4747),o(7327),o(1249),o(2222),{key:0,class:"left-side-nodes"}),h={key:1,class:"side-nodes"};function p(n,e,o,t,l,i){var u=(0,r.resolveComponent)("TreeNode");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.unref(n.nodes),(function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("span",(0,r.mergeProps)({class:"row",key:o},n.$attrs),[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(function(e,o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},n.gatherNodeProps(e),{"force-tooltip":e.forceTooltip}),null,16,["force-tooltip"])})),128))],16)})),128)),n.unref(n.leftSideNodes)?((0,r.openBlock)(),(0,r.createElementBlock)("span",g,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.unref(n.leftSideNodes),(function(e,o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},n.gatherNodeProps(e),{"force-tooltip":e.forceTooltip,small:""}),null,16,["force-tooltip"])})),128))])):(0,r.createCommentVNode)("",!0),n.unref(n.rightSideNodes)?((0,r.openBlock)(),(0,r.createElementBlock)("span",h,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.unref(n.rightSideNodes),(function(e,o){return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({key:o},n.gatherNodeProps(e),{"force-tooltip":e.forceTooltip,small:""}),null,16,["force-tooltip"])})),128))])):(0,r.createCommentVNode)("",!0)],64)}var N=o(8755),k=o(5082),M=["disabled"];function Z(n,e,o,t,l,i){var u=(0,r.resolveComponent)("MarkNode"),a=(0,r.resolveComponent)("LinkNode"),f=(0,r.resolveComponent)("Tooltip");return function(){return void 0!==n.unref(n.visibility)&&null!==n.unref(n.visibility)&&n.unref(n.visibility)[Symbol.for("!==")]?n.unref(n.visibility)[Symbol.for("!==")](n.Visibility.None):n.unref(n.visibility)!==n.Visibility.None}()?((0,r.openBlock)(),(0,r.createBlock)(f,(0,r.mergeProps)({key:0},n.tooltipToBind&&n.gatherTooltipProps(n.tooltipToBind),{display:n.tooltipDisplay,force:n.forceTooltip,style:{visibility:n.unref(n.visibility)===n.Visibility.Hidden?"hidden":void 0},class:(0,k.Z)({treeNode:!0,can:n.unref(n.canClick),small:n.unref(n.small)},n.unref(n.classes))}),{default:(0,r.withCtx)((function(){var o;return[(0,r.createElementVNode)("button",{onClick:e[0]||(e[0]=function(){return n.click&&n.click.apply(n,arguments)}),onMousedown:e[1]||(e[1]=function(){return n.start&&n.start.apply(n,arguments)}),onMouseleave:e[2]||(e[2]=function(){return n.stop&&n.stop.apply(n,arguments)}),onMouseup:e[3]||(e[3]=function(){return n.stop&&n.stop.apply(n,arguments)}),onTouchstart:e[4]||(e[4]=function(){return n.start&&n.start.apply(n,arguments)}),onTouchend:e[5]||(e[5]=function(){return n.stop&&n.stop.apply(n,arguments)}),onTouchcancel:e[6]||(e[6]=function(){return n.stop&&n.stop.apply(n,arguments)}),style:(0,r.normalizeStyle)([{backgroundColor:n.unref(n.color),boxShadow:"-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ".concat(n.unref(n.glowColor))},function(){return void 0!==(o=n.unref(n.style))&&null!==(o=n.unref(n.style))&&(o=n.unref(n.style))[Symbol.for("!==")]?(o=n.unref(n.style))[Symbol.for("!==")](null):null!==(o=n.unref(n.style))}()&&function(){return void 0!==o&&null!==o&&o[Symbol.for("!==")]?o[Symbol.for("!==")](void 0):void 0!==o}()?o:[]]),disabled:function(){return void 0!==n.unref(n.canClick)&&null!==n.unref(n.canClick)&&n.unref(n.canClick)[Symbol.for("!")]?n.unref(n.canClick)[Symbol.for("!")]():!n.unref(n.canClick)}()},[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(n.unref(n.comp))))],44,M),(0,r.createVNode)(u,{mark:n.unref(n.mark)},null,8,["mark"]),(0,r.createVNode)(a,{id:n.id},null,8,["id"])]})),_:1},16,["display","force","style","class"])):(0,r.createCommentVNode)("",!0)}o(9653);var V=o(6084),w=o(630),x=(0,r.defineComponent)({props:{id:null},setup:function(n){var e=n,o=(0,r.toRefs)(e),t=(0,r.inject)(w.Z),l=(0,r.inject)(w.w),i=(0,r.ref)(null),u=(0,r.computed)((function(){return i.value&&i.value.parentElement}));return t&&l&&((0,r.watch)([u,o.id],(function(n,e){var o=(0,V.Z)(n,2),i=o[0],u=o[1],a=(0,V.Z)(e,2),f=a[0],m=a[1];f&&l((0,r.unref)(m)),i&&t(u,i)})),(0,r.onUnmounted)((function(){return l((0,r.unref)(o.id))}))),function(n,e){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"branch",ref_key:"node",ref:i},null,512)}}}),C=o(3744);const E=(0,C.Z)(x,[["__scopeId","data-v-1318daf7"]]);var B=E,I={key:0},P={key:0,class:"mark star"},F=["src"],D=(0,r.defineComponent)({props:{mark:{type:[Boolean,String]}},setup:function(n){return function(e,o){return n.mark?((0,r.openBlock)(),(0,r.createElementBlock)("div",I,[!0===n.mark?((0,r.openBlock)(),(0,r.createElementBlock)("div",P)):((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:1,class:"mark",src:n.mark},null,8,F))])):(0,r.createCommentVNode)("",!0)}}});const T=(0,C.Z)(D,[["__scopeId","data-v-c476c56a"]]);var _=T,O=o(5939);function R(n){var e=n.display,o=n.top,r=n.left,t=n.right,l=n.bottom,i=n.xoffset,u=n.yoffset,a=n.force;return{display:e,top:o,left:r,right:t,bottom:l,xoffset:i,yoffset:u,force:a}}var j=(0,r.defineComponent)({props:{display:(0,N.P5)(Object,String,Function),visibility:{type:(0,N.P5)(Number),required:!0},style:(0,N.P5)(String,Object,Array),classes:(0,N.P5)(Object),tooltip:(0,N.P5)(Object,String,Function),onClick:Function,onHold:Function,color:(0,N.P5)(String),glowColor:(0,N.P5)(String),forceTooltip:{type:Object,required:!0},canClick:{type:(0,N.P5)(Boolean),required:!0},mark:(0,N.P5)(Boolean,String),id:{type:String,required:!0},small:(0,N.P5)(Boolean)},components:{Tooltip:O.Z,MarkNode:_,LinkNode:B},setup:function(n){var e=(0,r.toRefs)(n),o=e.tooltip,t=e.forceTooltip,l=e.onClick,i=e.onHold,f=e.display;function m(n){var e;n.shiftKey&&o?t.value=function(){return void 0!==t.value&&null!==t.value&&t.value[Symbol.for("!")]?t.value[Symbol.for("!")]():!t.value}():null===(e=(0,r.unref)(l))||void 0===e||e()}var s=(0,N.KO)(f),c=(0,r.shallowRef)(void 0);(0,r.watchEffect)((function(){var n=(0,N.Uv)(o);"object"===(0,a.Z)(n)&&function(){return void 0!==(0,N.RU)(n)&&null!==(0,N.RU)(n)&&(0,N.RU)(n)[Symbol.for("!")]?(0,N.RU)(n)[Symbol.for("!")]():!(0,N.RU)(n)}()?c.value=n.display:c.value=n}));var y=(0,r.computed)((function(){var n=(0,N.Uv)(o);return"object"===(0,a.Z)(n)&&function(){return void 0!==(0,N.RU)(n)&&null!==(0,N.RU)(n)&&(0,N.RU)(n)[Symbol.for("!")]?(0,N.RU)(n)[Symbol.for("!")]():!(0,N.RU)(n)}()?n:null})),d=(0,N.ix)(l,i),b=d.start,v=d.stop;return{click:m,start:b,stop:v,comp:s,tooltipDisplay:c,tooltipToBind:y,unref:r.unref,Visibility:u.EE,gatherTooltipProps:R,isCoercableComponent:N.RU}}});const W=(0,C.Z)(j,[["render",Z],["__scopeId","data-v-176052a6"]]);var q=W,A=(0,r.defineComponent)({props:{nodes:{type:(0,N.P5)(Array),required:!0},leftSideNodes:(0,N.P5)(Array),rightSideNodes:(0,N.P5)(Array)},components:{TreeNode:q},setup:function(){function n(n){var e=n.display,o=n.visibility,r=n.style,t=n.classes,l=n.tooltip,i=n.onClick,u=n.onHold,a=n.color,f=n.glowColor,m=n.forceTooltip,s=n.canClick,c=n.mark,y=n.id;return{display:e,visibility:o,style:r,classes:t,tooltip:l,onClick:i,onHold:u,color:a,glowColor:f,forceTooltip:m,canClick:s,mark:c,id:y}}return{gatherNodeProps:n,unref:r.unref}}});const L=(0,C.Z)(A,[["render",p],["__scopeId","data-v-e6ef63ea"]]);var z=L,U=(o(3243),o(9583)),G=o(3273),J=Symbol("TreeNode"),Y=Symbol("Tree");function H(n){return(0,G.z2)((function(){var e=n();return e.id=(0,u.QI)("treeNode-"),e.type=J,e.tooltip?e.forceTooltip=(0,s.ax)(!1):e.forceTooltip=(0,r.ref)(!1),(0,U.yB)(e,"visibility"),(0,u.Rh)(e,"visibility",u.EE.Visible),(0,U.yB)(e,"canClick"),(0,u.Rh)(e,"canClick",!0),(0,U.yB)(e,"color"),(0,U.yB)(e,"display"),(0,U.yB)(e,"tooltip"),(0,U.yB)(e,"glowColor"),(0,U.yB)(e,"classes"),(0,U.yB)(e,"style"),(0,U.yB)(e,"mark"),e}))}function X(n){return(0,G.z2)((function(){var e=n();return e.id=(0,u.QI)("tree-"),e.type=Y,e[u.wA]=z,e.isResetting=(0,r.ref)(!1),e.resettingNode=(0,r.ref)(null),e.reset=function(n){var o,r,t=e;t.isResetting.value=!0,t.resettingNode.value=n,null===(o=t.resetPropagation)||void 0===o||o.call(t,t,n),null===(r=t.onReset)||void 0===r||r.call(t,n),t.isResetting.value=!1,t.resettingNode.value=null},e.links=(0,r.computed)((function(){var n,o=e;return function(){return void 0!==(n=(0,r.unref)(o.branches))&&null!==(n=(0,r.unref)(o.branches))&&(n=(0,r.unref)(o.branches))[Symbol.for("!==")]?(n=(0,r.unref)(o.branches))[Symbol.for("!==")](null):null!==(n=(0,r.unref)(o.branches))}()&&function(){return void 0!==n&&null!==n&&n[Symbol.for("!==")]?n[Symbol.for("!==")](void 0):void 0!==n}()?n:[]})),(0,U.yB)(e,"visibility"),(0,u.Rh)(e,"visibility",u.EE.Visible),(0,U.yB)(e,"nodes"),(0,U.yB)(e,"leftSideNodes"),(0,U.yB)(e,"rightSideNodes"),(0,U.yB)(e,"branches"),e[u.tj]=function(){var n=this.nodes,e=this.leftSideNodes,o=this.rightSideNodes;return{nodes:n,leftSideNodes:e,rightSideNodes:o}},e}))}var $=function(n,e){var o=[e],t=[e];(function(){return void 0!==n.branches&&null!==n.branches&&n.branches[Symbol.for("!=")]?n.branches[Symbol.for("!=")](null):null!=n.branches})()&&function(){var e=(0,r.unref)(n.branches),l=function(){var n=[];t.forEach((function(r){e.filter((function(n){return n.startNode===r||n.endNode===r})).map((function(n){return n.startNode===r?n.endNode:n.startNode})).filter((function(n){return function(){return void 0!==o.includes(n)&&null!==o.includes(n)&&o.includes(n)[Symbol.for("!")]?o.includes(n)[Symbol.for("!")]():!o.includes(n)}()})).forEach((function(e){var o;(function(){return void 0!==n.includes(e)&&null!==n.includes(e)&&n.includes(e)[Symbol.for("!")]?n.includes(e)[Symbol.for("!")]():!n.includes(e)})()&&(n.push(e),null===(o=e.reset)||void 0===o||o.reset())}))})),t=n,o.push.apply(o,(0,S.Z)(t))};while(function(){return void 0!==t.length&&null!==t.length&&t.length[Symbol.for(">")]?t.length[Symbol.for(">")](0):t.length>0}())l()}()};var Q=o(9365),K=o(5967);function nn(n){return(0,G.z2)((function(){var e=n();return function(){return void 0!==e.currentGain&&null!==e.currentGain&&e.currentGain[Symbol.for("==")]?e.currentGain[Symbol.for("==")](null):null==e.currentGain}()&&(e.currentGain=(0,r.computed)((function(){return e.scaling.currentGain(e)}))),function(){return void 0!==e.nextAt&&null!==e.nextAt&&e.nextAt[Symbol.for("==")]?e.nextAt[Symbol.for("==")](null):null==e.nextAt}()&&(e.nextAt=(0,r.computed)((function(){return e.scaling.nextAt(e)}))),function(){return void 0!==e.convert&&null!==e.convert&&e.convert[Symbol.for("==")]?e.convert[Symbol.for("==")](null):null==e.convert}()&&(e.convert=function(){e.gainResource.value=f.ZP.add(e.gainResource.value,e.modifyGainAmount?e.modifyGainAmount((0,r.unref)(e.currentGain)):(0,r.unref)(e.currentGain)),e.baseResource.value=0}),(0,U.yB)(e,"currentGain"),(0,U.yB)(e,"nextAt"),(0,U.yB)(e,"buyMax"),(0,u.Rh)(e,"buyMax",!0),(0,U.yB)(e,"roundUpCost"),(0,u.Rh)(e,"roundUpCost",!0),e}))}function en(n,e,o){return{currentGain:function(e){var t=f.ZP.div(e.baseResource.value,(0,r.unref)(n)).pow((0,r.unref)(o)).floor().max(0);return t.isNan()?new f.ZP(0):(function(){return void 0!==e.buyMax&&null!==e.buyMax&&e.buyMax[Symbol.for("!")]?e.buyMax[Symbol.for("!")]():!e.buyMax}()&&(t=t.min(1)),t)},nextAt:function(e){var t=f.ZP.add((0,r.unref)(e.currentGain),1).root((0,r.unref)(o)).times((0,r.unref)(n)).max((0,r.unref)(n));return e.roundUpCost&&(t=t.ceil()),t}}}function on(n){return nn(n)}o(2479);var rn=o(1008),tn=Symbol("Reset");function ln(n){return(0,G.z2)((function(){var e=n();return e.id=(0,u.QI)("reset-"),e.type=tn,e.reset=function(){var n,o=function n(e){e&&"object"===(0,a.Z)(e)&&(!function(){return void 0!==u.PersistentState&&null!==u.PersistentState&&u.PersistentState[Symbol.for("in")]?u.PersistentState[Symbol.for("in")](e):u.PersistentState in e}()?function(){return e instanceof rn.Z!==void 0&&e instanceof rn.Z!==null&&(e instanceof rn.Z)[Symbol.for("!")]?(e instanceof rn.Z)[Symbol.for("!")]():!(e instanceof rn.Z)}()&&function(){return void 0!==(0,r.isRef)(e)&&null!==(0,r.isRef)(e)&&(0,r.isRef)(e)[Symbol.for("!")]?(0,r.isRef)(e)[Symbol.for("!")]():!(0,r.isRef)(e)}()&&Object.values(e).forEach((function(e){return n(e)})):e[u.PersistentState].value=e[u.DefaultValue])};(0,r.unref)(e.thingsToReset).forEach(o),m.globalBus.emit("reset",e),null===(n=e.onReset)||void 0===n||n.call(e)},(0,U.yB)(e,"thingsToReset"),e}))}var un={};m.globalBus.on("removeLayer",(function(n){var e;null===(e=un[n.id])||void 0===e||e.call(un),un[n.id]=void 0}));var an=(0,r.defineComponent)({props:{resource:null,color:null},setup:function(n){var e=n,o=(0,r.computed)((function(){return v(e.resource)}));return function(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("h2",{style:(0,r.normalizeStyle)({color:n.color,"text-shadow":function(){return"0px 0px 10px "[Symbol.for("+")]?"0px 0px 10px "[Symbol.for("+")](n.color):"0px 0px 10px "+n.color}()})},(0,r.toDisplayString)((0,r.unref)(o)),5)}}});const fn=an;var mn=fn,sn={key:0},cn={key:1},yn=(0,r.createTextVNode)(", "),dn=(0,r.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),bn=(0,r.createElementVNode)("br",null,null,function(){return 1[Symbol.for("minus")]?1[Symbol.for("minus")]():-1}()),vn=(0,r.defineComponent)({props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup:function(n){var e=n,o=(0,r.toRefs)(e),t=(0,N.KO)(o.effectDisplay),l=(0,r.computed)((function(){return f.ZP.lt(o.resource.value,"1e1000")}));return function(e,o){return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.unref)(l)?((0,r.openBlock)(),(0,r.createElementBlock)("span",sn,"You have ")):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(mn,{resource:n.resource,color:n.color||"white"},null,8,["resource","color"]),(0,r.createTextVNode)(function(){return" "[Symbol.for("+")]?" "[Symbol.for("+")]((0,r.toDisplayString)(n.resource.displayName)):" "+(0,r.toDisplayString)(n.resource.displayName)}(),1),(0,r.unref)(t)?((0,r.openBlock)(),(0,r.createElementBlock)("span",cn,[yn,((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)((0,r.unref)(t))))])):(0,r.createCommentVNode)("",!0),dn,bn])}}});const Sn=vn;var gn=Sn,hn=(o(561),["disabled"]);function pn(n,e,o,t,l,i){var u=(0,r.resolveComponent)("MarkNode"),a=(0,r.resolveComponent)("LinkNode");return function(){return void 0!==n.unref(n.visibility)&&null!==n.unref(n.visibility)&&n.unref(n.visibility)[Symbol.for("!==")]?n.unref(n.visibility)[Symbol.for("!==")](n.Visibility.None):n.unref(n.visibility)!==n.Visibility.None}()?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,style:(0,r.normalizeStyle)({visibility:n.unref(n.visibility)===n.Visibility.Hidden?"hidden":void 0})},[(0,r.createElementVNode)("button",{style:(0,r.normalizeStyle)(n.unref(n.style)),onClick:e[0]||(e[0]=function(){return n.onClick&&n.onClick.apply(n,arguments)}),onMousedown:e[1]||(e[1]=function(){return n.start&&n.start.apply(n,arguments)}),onMouseleave:e[2]||(e[2]=function(){return n.stop&&n.stop.apply(n,arguments)}),onMouseup:e[3]||(e[3]=function(){return n.stop&&n.stop.apply(n,arguments)}),onTouchstart:e[4]||(e[4]=function(){return n.start&&n.start.apply(n,arguments)}),onTouchend:e[5]||(e[5]=function(){return n.stop&&n.stop.apply(n,arguments)}),onTouchcancel:e[6]||(e[6]=function(){return n.stop&&n.stop.apply(n,arguments)}),disabled:function(){return void 0!==n.unref(n.canClick)&&null!==n.unref(n.canClick)&&n.unref(n.canClick)[Symbol.for("!")]?n.unref(n.canClick)[Symbol.for("!")]():!n.unref(n.canClick)}(),class:(0,r.normalizeClass)((0,k.Z)({feature:!0,clickable:!0,can:n.unref(n.canClick),locked:function(){return void 0!==n.unref(n.canClick)&&null!==n.unref(n.canClick)&&n.unref(n.canClick)[Symbol.for("!")]?n.unref(n.canClick)[Symbol.for("!")]():!n.unref(n.canClick)}(),small:n.small},n.unref(n.classes)))},[n.unref(n.comp)?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(n.unref(n.comp)),{key:0})):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(u,{mark:n.unref(n.mark)},null,8,["mark"]),(0,r.createVNode)(a,{id:n.id},null,8,["id"])],46,hn)],4)):(0,r.createCommentVNode)("",!0)}var Nn=(0,r.defineComponent)({props:{display:{type:(0,N.P5)(Object,String,Function),required:!0},visibility:{type:(0,N.P5)(Number),required:!0},style:(0,N.P5)(Object,String,Array),classes:(0,N.P5)(Object),onClick:Function,onHold:Function,canClick:{type:(0,N.P5)(Boolean),required:!0},small:Boolean,mark:(0,N.P5)(Boolean,String),id:{type:String,required:!0}},components:{LinkNode:B,MarkNode:_},setup:function(n){var e=(0,r.toRefs)(n),o=e.display,t=e.onClick,l=e.onHold,i=(0,r.shallowRef)("");(0,r.watchEffect)((function(){var n=(0,N.Uv)(o);if(function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}())i.value="";else if((0,N.RU)(n))i.value=(0,N.MM)(n);else{var e=(0,N.MM)(n.title||"","h3"),t=(0,N.MM)(n.description,"div");i.value=(0,N.MM)((0,u.tZ)((function(){return(0,r.createVNode)("span",null,[n.title?(0,r.createVNode)("div",null,[(0,r.createVNode)(e,null,null)]):null,(0,r.createVNode)(t,null,null)])})))}}));var a=(0,N.ix)(t,l),f=a.start,m=a.stop;return{start:f,stop:m,comp:i,Visibility:u.EE,unref:r.unref}}});const kn=(0,C.Z)(Nn,[["render",pn],["__scopeId","data-v-2d81e1cc"]]);var Mn=kn,Zn=Symbol("Clickable");function Vn(n){return(0,G.z2)((function(){var e=n();return e.id=(0,u.QI)("clickable-"),e.type=Zn,e[u.wA]=Mn,(0,U.yB)(e,"visibility"),(0,u.Rh)(e,"visibility",u.EE.Visible),(0,U.yB)(e,"canClick"),(0,u.Rh)(e,"canClick",!0),(0,U.yB)(e,"classes"),(0,U.yB)(e,"style"),(0,U.yB)(e,"mark"),(0,U.yB)(e,"display"),e[u.tj]=function(){var n=this.display,e=this.visibility,o=this.style,r=this.classes,t=this.onClick,l=this.onHold,i=this.canClick,u=this.small,a=this.mark,f=this.id;return{display:n,visibility:e,style:o,classes:r,onClick:t,onHold:l,canClick:i,small:u,mark:a,id:f}},e}))}function wn(n){return Vn((function(){var e=n();(0,U.yB)(e,"showNextAt"),(0,u.Rh)(e,"showNextAt",!0),!function(){return void 0!==e.resetDescription&&null!==e.resetDescription&&e.resetDescription[Symbol.for("==")]?e.resetDescription[Symbol.for("==")](null):null==e.resetDescription}()?(0,U.yB)(e,"resetDescription"):e.resetDescription=(0,r.computed)((function(){return f.ZP.lt(e.conversion.gainResource.value,1e3)?"Reset for ":""})),function(){return void 0!==e.display&&null!==e.display&&e.display[Symbol.for("==")]?e.display[Symbol.for("==")](null):null==e.display}()&&(e.display=(0,u.tZ)((function(){return(0,r.createVNode)("span",null,[(0,r.unref)(e.resetDescription),(0,r.createVNode)("b",null,[v(e.conversion.gainResource,(0,r.unref)(e.conversion.currentGain))])," ",e.conversion.gainResource.displayName,(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createVNode)("br",null,null),(0,r.createTextVNode)("Next:")," ",v(e.conversion.baseResource,(0,r.unref)(e.conversion.nextAt))," ",e.conversion.baseResource.displayName]),[[r.vShow,(0,r.unref)(e.showNextAt)]])])}))),function(){return void 0!==e.canClick&&null!==e.canClick&&e.canClick[Symbol.for("==")]?e.canClick[Symbol.for("==")](null):null==e.canClick}()&&(e.canClick=(0,r.computed)((function(){return f.ZP.gt((0,r.unref)(e.conversion.currentGain),0)})));var o=e.onClick;return e.onClick=function(){e.conversion.convert(),e.tree.reset(e.treeNode),null===o||void 0===o||o()},e}))}function xn(n){return H((function(){var e=n();return(0,U.yB)(e,"append"),(0,k.Z)((0,k.Z)({},e),{},{display:e.layerID,onClick:function(){return void 0!==e.append&&null!==e.append&&e.append[Symbol.for("!=")]?e.append[Symbol.for("!=")](null):null!=e.append}()&&e.append?function(){if(K.Z.tabs.includes(e.layerID)){var n=K.Z.tabs.lastIndexOf(e.layerID);K.Z.tabs.splice(n,1)}else K.Z.tabs.push(e.layerID)}:function(){K.Z.tabs.splice(1,1,e.layerID)}})}))}var Cn=(0,Q.createLayer)((function(){var n="p",e="Prestige",o="#4BDC13",t=c(0,"prestige points"),l=on((function(){return{scaling:en(10,5,.5),baseResource:Bn.points,gainResource:t,roundUpCost:!0}})),i=ln((function(){return{thingsToReset:function(){return[Cn]}}})),a=xn((function(){return{layerID:n,color:o,reset:i}})),f=wn((function(){return{conversion:l,tree:Bn.tree,treeNode:a}}));return{id:n,name:e,color:o,points:t,display:(0,u.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,r.createVNode)(gn,{resource:t,color:o},null),(0,N.sY)(f)])})),treeNode:a}})),En=Cn,Bn=(0,Q.createLayer)((function(){var n=c(10),e=y(n),o=d(n),t=(0,r.computed)((function(){var n=new f.ZP(1);return n}));m.globalBus.on("update",(function(e){n.value=f.ZP.add(n.value,f.ZP.times(t.value,e))}));var l=b(n,t),a=X((function(){return{nodes:[[En.treeNode]],branches:[],onReset:function(){n.value=(0,r.toRaw)(this.resettingNode.value)===(0,r.toRaw)(En.treeNode)?0:10,e.value=n.value,o.value=n.value},resetPropagation:$}}));return{id:"main",name:"Tree",links:a.links,display:(0,u.tZ)((function(){return(0,r.createVNode)(r.Fragment,null,[(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Game Paused")]),[[r.vShow,0===K.Z.devSpeed]]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Dev Speed: "),(0,f.WU)(K.Z.devSpeed||0),(0,r.createTextVNode)("x")]),[[r.vShow,K.Z.devSpeed&&function(){return void 0!==K.Z.devSpeed&&null!==K.Z.devSpeed&&K.Z.devSpeed[Symbol.for("!==")]?K.Z.devSpeed[Symbol.for("!==")](1):1!==K.Z.devSpeed}()]]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("Offline Time: "),(0,f.mr)(K.Z.offlineTime||0)]),[[r.vShow,function(){return void 0!==K.Z.offlineTime&&null!==K.Z.offlineTime&&K.Z.offlineTime[Symbol.for("!=")]?K.Z.offlineTime[Symbol.for("!=")](void 0):void 0!=K.Z.offlineTime}()]]),(0,r.createVNode)("div",null,[(0,r.withDirectives)((0,r.createVNode)("span",null,[(0,r.createTextVNode)("You have ")]),[[r.vShow,f.ZP.lt(n.value,"1e1000")]]),(0,r.createVNode)("h2",null,[(0,f.WU)(n.value)]),(0,r.withDirectives)((0,r.createVNode)("span",null,[(0,r.createTextVNode)(" points")]),[[r.vShow,f.ZP.lt(n.value,"1e1e6")]])]),(0,r.withDirectives)((0,r.createVNode)("div",null,[(0,r.createTextVNode)("("),l.value,(0,r.createTextVNode)(")")]),[[r.vShow,f.ZP.gt(t.value,0)]]),(0,r.createVNode)(i,null,null),(0,N.sY)(a)])})),points:n,best:e,total:o,oomps:l,tree:a}})),In=function(n){return[Bn,En]},Pn=(0,r.computed)((function(){return!1}));function Fn(n,e){}},9365:function(n,e,o){"use strict";o.r(e),o.d(e,{layers:function(){return c},createLayer:function(){return y},addLayer:function(){return d},getLayer:function(){return b},removeLayer:function(){return v},reloadLayer:function(){return S},setupLayerModal:function(){return g}});var r=o(4865),t=(o(2526),o(1817),o(1539),o(8309),o(4747),o(2479),o(7286)),l=o(6113),i=o(9583),u=o(3273),a=o(8111),f=o(7302),m=o(4061),s=o(5967),c={};function y(n){return(0,u.z2)((function(){var e=n(),o=e.emitter=(0,a.i)();return e.on=o.on.bind(o),e.emit=o.emit.bind(o),e.minimized=(0,m.ax)(!1),(0,i.yB)(e,"color"),(0,i.yB)(e,"display"),(0,i.yB)(e,"name"),(0,l.Rh)(e,"name",e.id),(0,i.yB)(e,"minWidth"),(0,l.Rh)(e,"minWidth",600),(0,i.yB)(e,"minimizable"),(0,l.Rh)(e,"minimizable",!0),(0,i.yB)(e,"links"),e}))}function d(n,e){console.info("Adding layer",n.id),c[n.id]?console.error("Attempted to add layer with same ID as existing layer",n.id,c[n.id]):((0,l.Rh)(e,"layers",{}),function(){return void 0!==e.layers[n.id]&&null!==e.layers[n.id]&&e.layers[n.id][Symbol.for("==")]?e.layers[n.id][Symbol.for("==")](null):null==e.layers[n.id]}()&&(e.layers[n.id]={}),c[n.id]=n,f.globalBus.emit("addLayer",n,e.layers[n.id]))}function b(n){return c[n]}function v(n){console.info("Removing layer",n.id),f.globalBus.emit("removeLayer",n),c[n.id]=void 0}function S(n){v(n),d(n,s.Z)}function g(n){var e=(0,r.ref)(!1);return{openModal:function(){return e.value=!0},modal:(0,l.tZ)((function(){return(0,r.createVNode)(t.Z,{modelValue:e.value,"onUpdate:modelValue":function(n){return e.value=n}},{header:function(){return(0,r.createVNode)("h2",null,[(0,r.unref)(n.name)])},body:(0,r.unref)(n.display)})}))}}window.layers=c,f.globalBus.on("update",(function(n){Object.values(c).forEach((function(e){null===e||void 0===e||e.emit("preUpdate",n)})),Object.values(c).forEach((function(e){null===e||void 0===e||e.emit("update",n)})),Object.values(c).forEach((function(e){null===e||void 0===e||e.emit("postUpdate",n)}))}))},8755:function(n,e,o){"use strict";o.d(e,{MM:function(){return u},vq:function(){return s},KO:function(){return c},RU:function(){return f},P5:function(){return b},sY:function(){return a},ix:function(){return m},Uv:function(){return d},o9:function(){return y}});var r=o(3336),t=o(4865);o(2526),o(1817),o(1539),o(3210),o(2222),o(1249),o(6699),o(2023),o(5679),o(9266);var l=o(6113),i=o(9583);function u(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:"span";return"function"===typeof n?(0,t.defineComponent)({render:n}):"string"===typeof n?function(){return void 0!==n.length&&null!==n.length&&n.length[Symbol.for(">")]?n.length[Symbol.for(">")](0):n.length>0}()?(n=n.trim(),function(){return void 0!==n.charAt(0)&&null!==n.charAt(0)&&n.charAt(0)[Symbol.for("!==")]?n.charAt(0)[Symbol.for("!==")]("<"):"<"!==n.charAt(0)}()&&(n="<".concat(o,">").concat(n,"")),(0,t.defineComponent)({template:n})):(0,t.defineComponent)({render:function(){return{}}}):n}function a(n){if(f(n))return"function"===typeof n?n():u(n);var e=n[l.wA];return(0,t.createVNode)(e,n[l.tj](),null)}function f(n){return"string"===typeof n||("object"===(0,r.Z)(n)?!function(){return void 0!==n&&null!==n&&n[Symbol.for("==")]?n[Symbol.for("==")](null):null==n}()&&(function(){return"render"[Symbol.for("in")]?"render"[Symbol.for("in")](n):"render"in n}()||function(){return"component"[Symbol.for("in")]?"component"[Symbol.for("in")](n):"component"in n}()):"function"===typeof n&&!0===n[i.mM])}function m(n,e){var o=(0,t.ref)(null);function r(){(function(){return void 0!==o.value&&null!==o.value&&o.value[Symbol.for("!")]?o.value[Symbol.for("!")]():!o.value})()&&(o.value=setInterval(i,250))}function l(){o.value&&(clearInterval(o.value),o.value=null)}function i(){e&&e.value?e.value():n&&n.value&&n.value()}return{start:r,stop:l,handleHolding:i}}function s(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:"div",r=(0,t.shallowRef)();return(0,t.watchEffect)((function(){r.value=u(d(n),o)})),r}function c(n){var e=arguments,o=function(){return void 0!==e.length&&null!==e.length&&e.length[Symbol.for(">")]?e.length[Symbol.for(">")](1):e.length>1}()&&function(){return void 0!==e[1]&&null!==e[1]&&e[1][Symbol.for("!==")]?e[1][Symbol.for("!==")](void 0):void 0!==e[1]}()?arguments[1]:"div",r=(0,t.shallowRef)(null);return(0,t.watchEffect)((function(){var e=d(n);r.value=function(){return void 0!==e&&null!==e&&e[Symbol.for("==")]?e[Symbol.for("==")](null):null==e}()?null:u(e,o)})),r}function y(n){return(0,t.computed)((function(){return d(n)}))}function d(n){return(0,t.unref)((0,t.unref)(n))}function b(){for(var n=arguments.length,e=new Array(n),o=0;function(){return void 0!==o&&null!==o&&o[Symbol.for("<")]?o[Symbol.for("<")](n):o=l)&&Object.keys(o.O).every((function(n){return o.O[n](r[a])}))?r.splice(a--,1):(u=!1,l0&&n[m-1][2]>l;m--)n[m]=n[m-1];n[m]=[r,t,l]}}(),function(){o.n=function(n){var e=n&&n.__esModule?function(){return n["default"]}:function(){return n};return o.d(e,{a:e}),e}}(),function(){o.d=function(n,e){for(var r in e)o.o(e,r)&&!o.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){o.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}}(),function(){o.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}}(),function(){var n={143:0};o.O.j=function(e){return 0===n[e]};var e=function(e,r){var t,l,i=r[0],u=r[1],a=r[2],f=0;if(i.some((function(e){return 0!==n[e]}))){for(t in u)o.o(u,t)&&(o.m[t]=u[t]);if(a)var m=a(o)}for(e&&e(r);f