mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-12-03 13:21:31 +00:00
34 lines
484 KiB
JavaScript
34 lines
484 KiB
JavaScript
|
/* empty css */import"./vue.92681fcb.js";import{Z as b,l as Oi,aa as Ne,t as _,ay as gn,ar as Bl,aE as J,a0 as F,aK as dl,a1 as V,O,aG as Vn,A as Hi,_ as je,a8 as t,b6 as he,b8 as Yn,bs as Js,C as I,aq as Dl,bu as dn,bb as Nn,T as Vt,a7 as o,u as Xn,j as Wt,bv as Qn,q as Zn,b1 as Ki,G as Wi,aC as fs,w as tl,b2 as Di,ao as vt,I as hi,aN as yi,$ as A,J as ze,aH as Rl,aF as Sl,z as ul,al as jn,aL as kl,H as jt,aJ as Cs,bn as Jt,br as ft,be as Ct}from"./@vue.4ce677c2.js";import{c as ws}from"./nanoevents.1080beb7.js";import{L as xl}from"./lz-string.731cedc5.js";import{i as wt}from"./is-plain-object.906d88e8.js";import{Y as Ot}from"./vue-next-select.a2bfab1d.js";import{s as gt,u as Os}from"./vue-toastification.6f567382.js";import{D as Yt}from"./vuedraggable.7949458c.js";import{p as Nt}from"./vue-textarea-autosize.35804eaf.js";import{v as Xt,n as Mt}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const xt=function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const m of a)if(m.type==="childList")for(const r of m.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(a){const m={};return a.integrity&&(m.integrity=a.integrity),a.referrerpolicy&&(m.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?m.credentials="include":a.crossorigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function s(a){if(a.ep)return;a.ep=!0;const m=n(a);fetch(a.href,m)}};xt();const Gt="modulepreload",os={},Ft="./",Jn=function(i,n){return!n||n.length===0?i():Promise.all(n.map(s=>{if(s=`${Ft}${s}`,s in os)return;os[s]=!0;const a=s.endsWith(".css"),m=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${m}`))return;const r=document.createElement("link");if(r.rel=a?"stylesheet":Gt,a||(r.as="script",r.crossOrigin=""),r.href=s,document.head.appendChild(r),a)return new Promise((d,c)=>{r.addEventListener("load",d),r.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>i())},zt="./projInfo-schema.json",kt="Advent Incremental",Rt="An incremental game you play a day at a time, leading up to Christmas!",St="advent-incremental",Ht="thepaperpilot and friends",Lt="",Qt="",Tt="0.5",Ut="Initial Commit",Et=!0,At=!1,Bt=2,Dt=!0,_t=null,Pt="",qt=["main"],$t=3600,Kt=0,ea=!0,ia="base64";var Pe={$schema:zt,title:kt,description:Rt,id:St,author:Ht,discordName:Lt,discordLink:Qt,versionNumber:Tt,versionTitle:Ut,allowGoBack:Et,defaultShowSmall:At,defaultDecimalsShown:Bt,useHeader:Dt,banner:_t,logo:Pt,initialTabs:qt,maxTickLength:$t,offlineLimit:Kt,enablePausing:ea,exportEncoding:ia};const zn=17,la=9e15,na=Math.log10(9e15),sa=1/9e15,ta=308,aa=-324,Is=5,oa=function(){const e=[];for(let n=aa+1;n<=ta;n++)e.push(Number("1e"+n));const i=323;return function(n){return e[n+i]}}(),Ul=[2,Math.E,3,4,5,6,7,8,9,10],Ia=[[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.16709053569725
|
||
|
Stack: ${ml}
|
||
|
Trying to pop ${n.id}`;return ml.pop(),te(n,"color"),te(n,"display"),te(n,"name"),ki(n,"name",n.id),te(n,"minWidth"),ki(n,"minWidth",600),te(n,"minimizable"),ki(n,"minimizable",!0),te(n,"minimizedDisplay"),n})}function Ss(e,i){if(console.info("Adding layer",e.id),xi[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,xi[e.id]);return}ki(i,"layers",{}),i.layers[e.id]==null&&(i.layers[e.id]={}),xi[e.id]=e,di.emit("addLayer",e,i.layers[e.id])}function Sa(e){return xi[e]}function Hs(e){console.info("Removing layer",e.id),di.emit("removeLayer",e),xi[e.id]=void 0}function Ha(e){Hs(e),Ss(e,ye)}function La(e){const i=_(!1);return{openModal:()=>i.value=!0,modal:j(()=>t(Yi,{modelValue:i.value,"onUpdate:modelValue":n=>i.value=n},{header:()=>t("h2",null,[I(e.name)]),body:I(e.display)}))}}di.on("update",function(i){Object.values(xi).forEach(n=>{n==null||n.emit("preUpdate",i)}),Object.values(xi).forEach(n=>{n==null||n.emit("update",i)}),Object.values(xi).forEach(n=>{n==null||n.emit("postUpdate",i)})});var Qa=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:An,UnregisterNodeInjectionKey:Bn,NodesInjectionKey:Dn,BoundsInjectionKey:_n,layers:xi,persistentRefs:$l,addingLayers:ml,createLayer:Ei,addLayer:Ss,getLayer:Sa,removeLayer:Hs,reloadLayer:Ha,setupLayerModal:La},Symbol.toStringTag,{value:"Module"}));const Pn=Symbol("PersistentState"),Fl=Symbol("DefaultValue"),wn=Symbol("StackTrace"),Ls=Symbol("Deleted"),un=Symbol("NonPersistent"),rn=Symbol("SaveDataPath");function Ta(){var e;return((e=new Error().stack)==null?void 0:e.split(`
|
||
|
`).slice(3,5).map(i=>i.trim()).join(`
|
||
|
`))||""}function xe(e){const i=Oi(e)?e:_(e);i[Pn]=i,i[Fl]=Oi(e)?e.value:e,i[wn]=Ta(),i[Ls]=!1;const n=b({get(){return i.value},set(s){i.value=s}});return n[Fl]=i[Fl],i[un]=n,i[rn]=void 0,ml.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",i,`
|
||
|
Created at:
|
||
|
`+i[wn]):$l[ml[ml.length-1]].add(i),i}function Ua(e){return e&&typeof e=="object"&&Pn in e}function R(e){return e[un]}di.on("addLayer",(e,i)=>{const n=[],s=(a,m=[])=>{let r=!1;return Object.keys(a).forEach(d=>{let c=a[d];if(c&&typeof c=="object")if(vi in c&&(c=c[vi]),Ua(c)){if(r=!0,c[Ls]){console.warn("Deleted persistent ref present in returned object. Ignoring...",c,`
|
||
|
Created at:
|
||
|
`+c[wn]);return}$l[e.id].delete(c);const u=[e.id,...m,d];c[rn]!=null&&JSON.stringify(u)!==JSON.stringify(c[rn])&&console.error(`Persistent ref is being saved to \`${u.join(".")}\` when it's already present at \`${c[rn].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,c),c[rn]=u;const h=m.reduce((W,y)=>(y in W||(W[y]={}),W[y]),i),v=h[d];h[d]=c[Pn],Wt(h)?v!=null?h[d]=v:h[d]=c[Fl]:v!=null?h[d].value=v:h[d].value=c[Fl]}else!(c instanceof l)&&!Oi(c)&&!n.includes(c)&&(typeof c.type=="symbol"&&n.push(c),s(c,[...m,d])&&(Qn(c)&&!Qn(a)?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.",vi in a?a[vi]:a,d):r=!0))}),r};s(e[vi]),$l[e.id].forEach(a=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,a,`
|
||
|
Created at:
|
||
|
`+a[wn])}),$l[e.id].clear()});const vi=Symbol("ProxyState"),ql=Symbol("ProxyPath");function _i(e,i={}){const n=i;let s=!1;function a(){return s||(Object.assign(n,e(n)),s=!0),n}return new Proxy(n,{get(m,r){if(r===vi)return a();const d=a()[r];return d&&typeof d=="object"&&un in d?d[un]:d},set(m,r,d){return a()[r]=d,!0},has(m,r){return r===vi?!0:Reflect.has(a(),r)},ownKeys(){return Reflect.ownKeys(a())},getOwnPropertyDescriptor(m,r){return s||(Object.assign(n,e(n)),s=!0),Object.getOwnPropertyDescriptor(m,r)}})}var Ci=window.state=Xn({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const Qs=Zn({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{},autoPause:!0});function Ts(e){return JSON.stringify(e,(i,n)=>I(n))}const Us={get(e,i){var s;if(i===vi||i===ql)return e[i];const n=e[vi][i];if(i!=="value"&&(wt(n)||Array.isArray(n))){if(n!==((s=e[i])==null?void 0:s[vi])){const a=[...e[ql],i];e[i]=new Proxy({[vi]:n,[ql]:a},Us)}return e[i]}return n},set(e,i,n,s){if(!Ci.hasNaN&&(typeof n=="number"&&isNaN(n)||n instanceof l&&(isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)))){const a=e[vi][i];if(!(typeof a=="number"&&isNaN(a)||a instanceof l&&(isNaN(a.sign)||isNaN(a.layer)||isNaN(a.mag))))throw Qs.autosave=!1,Ci.hasNaN=!0,Ci.NaNPath=[...e[ql],i],Ci.NaNReceiver=s,console.error("Attempted to set NaN value",[...e[ql],i],e[vi]),"Attempted to set NaN value. See above for details"}return e[vi][i]=n,!0},ownKeys(e){return Reflect.ownKeys(e[vi])},has(e,i){return Reflect.has(e[vi],i)},getOwnPropertyDescriptor(e,i){return Object.getOwnPropertyDescriptor(e[vi],i)}};var ye=window.player=new Proxy({[vi]:Qs,[ql]:["player"]},Us);function Es(e={}){return Object.assign({id:`${Pe.id}-0`,name:"Default Save",tabs:Pe.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:Pe.id,modVersion:Pe.versionNumber,layers:{}},e)}function $i(e){const i=xl.compressToUTF16(Ts(e!=null?e:ye[vi]));return localStorage.setItem((e!=null?e:ye[vi]).id,i),i}async function Ea(){Ba();try{let e=localStorage.getItem(pi.active);if(e==null){await Al(Kl());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=xl.decompressFromUTF16(e);else throw"Unable to determine save encoding";const i=JSON.parse(e);if(i.modID!==Pe.id){await Al(Kl());return}i.id=pi.active,await Al(i)}catch(e){console.error(`Failed to load save. Falling back to new save.
|
||
|
`,e),await Al(Kl())}}function Kl(){const e=vn(),i=Es({id:e});return $i(i),pi.saves.push(e),i}function vn(){let e,i=0;do e=`${Pe.id}-${i++}`;while(localStorage.getItem(e));return e}const qn=_(!1);async function Al(e){console.info("Loading save",e),qn.value=!0;const{layers:i,removeLayer:n,addLayer:s}=await Jn(()=>Promise.resolve().then(function(){return Qa}),void 0),{fixOldSave:a,getInitialLayers:m}=await Jn(()=>Promise.resolve().then(function(){return UI}),void 0);for(const r in i){const d=i[r];d&&n(d)}m(e).forEach(r=>s(r,e)),e=Es(e),e.offlineProd&&e.time&&e.devSpeed!==0&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=Math.min(e.offlineTime+(Date.now()-e.time)/1e3,Pe.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==Pe.versionNumber&&(a(e.modVersion,e),e.modVersion=Pe.versionNumber),Object.assign(ye,e),pi.active=ye.id,di.emit("onLoad")}setInterval(()=>{ye.autosave&&$i()},1e3);window.onbeforeunload=()=>{ye.autosave&&$i()};window.save=$i;const Aa=window.hardReset=async()=>{await Al(Kl())},bn=Zn({active:"",saves:[],showTPS:!0,theme:En.Nordic,unthrottled:!1,usingLog:!1,alignUnits:!1});Ki(bn,e=>{const i=xl.compressToUTF16(JSON.stringify(e));localStorage.setItem(Pe.id,i)},{deep:!0});var pi=window.settings=bn;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:En.Nordic,usingLog:!1,alignUnits:!1};di.emit("loadSettings",e),Object.assign(bn,e),Aa()};function Ba(){try{let e=localStorage.getItem(Pe.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=xl.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const i=JSON.parse(e);typeof i=="object"&&Object.assign(bn,i)}di.emit("loadSettings",bn)}catch{}}const As=Zn([]);function Da(e){As.push(e)}const Bs=Zn([]);function _a(e){Bs.push(e)}const Pa=Zn([]),qa={class:"table"},Bi=Ne({__name:"Column",setup(e){const i=b(()=>an[pi.theme].mergeAdjacent);return(n,s)=>(J(),F("div",qa,[V("div",{class:Wi(["col",{mergeAdjacent:I(i)}])},[dl(n.$slots,"default")],2)]))}}),$a={class:"table"},nn=Ne({__name:"Row",setup(e){const i=b(()=>an[pi.theme].mergeAdjacent);return(n,s)=>(J(),F("div",$a,[V("div",{class:Wi(["row",{mergeAdjacent:I(i)}])},[dl(n.$slots,"default")],2)]))}});function $n(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!vt(e)}function De(e,i="span"){return typeof e=="function"?Ne({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${i}>${e}</${i}>`),Ne({template:e})):Ne({render:()=>({})}):e}function ue(e){if(wl(e))return typeof e=="function"?e():De(e);const i=e[Hl];return t(i,e[Ll](),null)}function li(...e){let i;return t(nn,null,$n(i=e.map(ue))?i:{default:()=>[i]})}function al(...e){let i;return t(Bi,null,$n(i=e.map(ue))?i:{default:()=>[i]})}function zl(...e){return t("div",{class:"table-grid"},[e.map(i=>t("div",{class:{["row-grid"]:!0,mergeAdjacent:an[pi.theme].mergeAdjacent}},[i.map(ue)]))])}function cl(e){if(wl(e))return typeof e=="function"?e():typeof e=="string"?t(O,null,[e]):t(e,null,null);const i=e[Hl];return t(i,e[Ll](),null)}function Ka(...e){let i;return t(Bi,null,$n(i=e.map(cl))?i:{default:()=>[i]})}function wl(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[cn]===!0}function Ds(e,i,n){const s=_(null),a=_(void 0);function m(c){s.value||(s.value=setInterval(d,250)),a.value=c,n&&(n.value=!0)}function r(){s.value&&(clearInterval(s.value),s.value=null),n&&(n.value=!1)}function d(){i&&i.value?i.value():e&&e.value&&e.value(a.value)}return fs(r),{start:m,stop:r,handleHolding:d}}function eo(e,i){const n=b(()=>e.filter(s=>I(s.visibility)===gi.Visible&&i(s)));return{firstFeature:b(()=>n.value[0]),collapsedContent:j(()=>al(...n.value.slice(1))),hasCollapsedContent:b(()=>n.value.length>1)}}function On(e,i="div"){const n=tl();return Di(()=>{n.value=De(Gi(e),i)}),n}function Ol(e,i="div"){const n=tl(null);return Di(()=>{const s=Gi(e);n.value=s==null?null:De(s,i)}),n}function io(e){return b(()=>Gi(e))}function Gi(e){return I(I(e))}fu
|
||
|
x${U(I(a.christmas1))} to wood production
|
||
|
`)}]}),rainbow:n({name:"Rainbow Wrapping Paper",id:"rainbow",ratio:{red:{base:jl,exponent:fl+.2},green:{base:Jl,exponent:Cl+.1},blue:{base:jl,exponent:fl+.2},yellow:{base:jl,exponent:fl+.2},purple:{base:Jl,exponent:Cl+.1},orange:{base:Jl,exponent:Cl+.1}},background:"linear-gradient(135deg, rgba(255,0,0,1) 0%, rgba(255,0,0,1) 2%, rgba(255,155,0,1) 14%, rgba(255,155,0,1) 18%, rgba(255,254,0,1) 31%, rgba(255,254,0,1) 35%, rgba(100,244,61,1) 48%, rgba(100,244,61,1) 52%, rgba(70,218,234,1) 64%, rgba(70,218,234,1) 68%, rgba(205,0,210,1) 81%, rgba(205,0,210,1) 85%, rgba(255,0,0,1) 98%, rgba(255,0,0,1) 100%)",listedBoosts:[{desc:b(()=>`
|
||
|
/${U(I(a.rainbow1))} to coal buyable cost
|
||
|
`)}]}),jazzy:n({name:"Jazzy Wrapping Paper",id:"jazzy",ratio:{purple:{base:Jl*3,exponent:Cl},orange:{base:Jl*3,exponent:Cl}},background:"linear-gradient(90deg, rgba(255,177,0,1) 10.8%, rgba(189,69,255,1) 11.1%, rgba(189,69,255,1) 21.9%, rgba(255,177,0,1) 22.2%, rgba(255,177,0,1) 33.0%, rgba(189,69,255,1) 33.3%, rgba(189,69,255,1) 44.1%, rgba(255,177,0,1) 44.4%, rgba(255,177,0,1) 55.2%, rgba(189,69,255,1) 55.5%, rgba(189,69,255,1) 66.3%, rgba(255,177,0,1) 66.6%, rgba(255,177,0,1) 77.4%, rgba(189,69,255,1) 77.7%, rgba(189,69,255,1) 88.5%, rgba(255,177,0,1) 88.8%)",listedBoosts:[{desc:b(()=>`
|
||
|
-${U(I(a.jazzy1))} to elf cost scaling
|
||
|
`)}]}),sunshine:n({name:"Sunshine Wrapping Paper",id:"sunshine",ratio:{red:{base:jl*2,exponent:fl+.1},yellow:{base:jl*2,exponent:fl+.1},orange:{base:Jl*2,exponent:Cl+.05}},background:"radial-gradient(circle, rgba(238,250,0,1) 16%, rgba(250,157,0,1) 50%, rgba(255,76,76,1) 83%)",listedBoosts:[{desc:b(()=>`
|
||
|
x${U(I(a.sunshine1))} to paper production
|
||
|
`)}]}),ocean:n({name:"Ocean Wrapping Paper",id:"ocean",ratio:{blue:{base:jl*2,exponent:fl+.1},green:{base:Jl*2,exponent:Cl+.05},purple:{base:Jl*2,exponent:Cl+.05}},background:"linear-gradient(20deg, rgba(0,183,250,0.6) 8%, rgba(0,223,62,0.6) 12%, rgba(0,183,250,0.6) 17%, rgba(0,183,250,0.6) 27%, rgba(124,109,230,0.6) 38%, rgba(0,183,250,0.6) 46%, rgba(0,183,250,0.6) 50%, rgba(0,223,62,0.6) 53%, rgba(0,183,250,0.6) 60%, rgba(124,109,230,0.6) 67%, rgba(0,183,250,0.6) 73%, rgba(0,183,250,0.6) 84%, rgba(0,223,62,0.6) 88%, rgba(0,183,250,0.6) 91%), linear-gradient(340deg, rgba(0,183,250,0.6) 8%, rgba(0,223,62,0.6) 12%, rgba(0,183,250,0.6) 17%, rgba(0,183,250,0.6) 27%, rgba(124,109,230,0.6) 38%, rgba(0,183,250,0.6) 46%, rgba(0,183,250,0.6) 50%, rgba(0,223,62,0.6) 53%, rgba(0,183,250,0.6) 60%, rgba(124,109,230,0.6) 67%, rgba(0,183,250,0.6) 73%, rgba(0,183,250,0.6) 84%, rgba(0,223,62,0.6) 88%, rgba(0,183,250,0.6) 91%)",listedBoosts:[{desc:b(()=>`
|
||
|
/${U(I(a.ocean1))} to box buyable cost
|
||
|
`)}]}),beach:n({name:"Beach Wrapping Paper",id:"beach",ratio:{yellow:{base:jl*3,exponent:fl},blue:{base:jl*3,exponent:fl}},background:"radial-gradient(circle at 80% 10%, rgba(255,255,76,1) 8%, rgba(0,0,0,0) 21%), linear-gradient(180deg, rgba(0,255,246,1) 60%, rgba(0,255,246,0) 61%), linear-gradient(215deg, rgba(0,93,255,0) 0%, rgba(0,93,255,0) 66%, rgba(255,255,76,1) 68%), linear-gradient(180deg, rgba(0,0,0,0) 68%, rgba(0,93,255,1) 70%), linear-gradient(205deg, rgba(0,255,246,1) 0%, rgba(0,255,246,1) 100%)",listedBoosts:[{desc:b(()=>`
|
||
|
/${U(I(a.beach1))} to workshop cost
|
||
|
`)}]})},a={christmas1:b(()=>l.add(s.christmas.buyable.amount.value,1)),rainbow1:b(()=>l.pow(2,s.rainbow.buyable.amount.value)),jazzy1:b(()=>l.ln(l.add(l.ln(l.add(s.jazzy.buyable.amount.value,1)),1))),sunshine1:b(()=>l.add(s.sunshine.buyable.amount.value,1)),ocean1:b(()=>l.pow(1.5,s.ocean.buyable.amount.value)),beach1:b(()=>l.add(s.beach.buyable.amount.value,1))},m=Vi(b(()=>Object.values(s).map(H=>H.buyable.amount.value).reduce(l.add,0)),"Total Wrapping Paper"),r=_(!1),d=j(()=>t(Yi,{modelValue:r.value,"onUpdate:modelValue":H=>r.value=H},{header:()=>t("h2",null,[e,o(" Modifiers")]),body:c})),[c,u]=Il(()=>[]),{total:h,trackerDisplay:v}=Wl({resource:m,goal:1e20,name:e,day:OI,color:i,textColor:"var(--feature-foreground)",modal:{show:r,display:d},ignoreTotal:!0}),W=[6,12,18,24,30,36],y=X(()=>({display:{requirement:W[0]+" Total Wrapping Paper",effectDisplay:"Double primary colour dye gain"},shouldEarn:()=>l.gte(h.value,W[0]),visibility:()=>p(!0)})),Y=X(()=>({display:{requirement:W[1]+" Total Wrapping Paper",effectDisplay:"Double secondary colour dye gain"},shouldEarn:()=>l.gte(h.value,W[1]),visibility:()=>p(y.earned.value)})),x=X(()=>({display:{requirement:W[2]+" Total Wrapping Paper",effectDisplay:"Buy maximum primary colour dyes"},shouldEarn:()=>l.gte(h.value,W[2]),visibility:()=>p(Y.earned.value)})),M=X(()=>({display:{requirement:W[3]+" Total Wrapping Paper",effectDisplay:"Secondary colour dyes don't spend primary colour dyes"},shouldEarn:()=>l.gte(h.value,W[3]),visibility:()=>p(x.earned.value)})),D=X(()=>({display:{requirement:W[4]+" Total Wrapping Paper",effectDisplay:"Buy maximum secondary colour dyes"},shouldEarn:()=>l.gte(h.value,W[4]),visibility:()=>p(M.earned.value)})),g=X(()=>({display:{requirement:W[5]+" Total Wrapping Paper",effectDisplay:"Unlock a new elf to help with dyes"},shouldEarn:()=>l.gte(h.value,W[5]),visibility:()=>p(D.earned.value)})),f={primaryBoost:y,secondaryBoost:Y,buyMaxPrimary:x,secondaryNoReset:M,buyMaxSecondary:D,unlockDyeElf:g},{collapseMilestones:z,display:P}=sn(f);return{name:e,display:j(()=>t("div",{style:"width: 620px"},[ue(v),t(Ri,{resource:m},null),li(s.christmas.display,s.rainbow.display,s.jazzy.display),li(s.christmas.buyable,s.rainbow.buyable,s.jazzy.buyable),t(ve,null,null),li(s.sunshine.display,s.ocean.display,s.beach.display),li(s.sunshine.buyable,s.ocean.buyable,s.beach.buyable),t(ve,null,null),o("button goes here"),t(ve,null,null),P()])),wrappingPaper:s,totalWrappingPaper:h,generalTabCollapsed:u,boosts:a,milestones:f,collapseMilestones:z}}),gI="paper",Sn=5,Q=Ei(gI,function(){const e="Paper",i="#E8DCB8",n=Vi(0,"paper"),s=Vi(b(()=>l.min(l.div(ce.logs.value,1e9),l.div(E.ash.value,qe.value))),"pulp"),a=qs(()=>({scaling:Kn(1,1.2),baseResource:s,gainResource:R(n),roundUpCost:!0,spend(ae,le){ce.logs.value=l.sub(ce.logs.value,l.times(le,1e9)),E.ash.value=l.sub(E.ash.value,l.times(le,qe.value))},gainModifier:We})),m=Ui(()=>({display:j(()=>{const ae=l.gte(a.actualGain.value,1)?a.currentAt.value:a.nextAt.value;return t(O,null,[t("span",{style:"font-size: large"},[o("Create "),ee(a.currentGain.value),o(" "),n.displayName]),t("br",null,null),t("span",{style:"font-size: large"},[o("Cost: "),yn(ce.logs,ae),o(" "),s.displayName,o(" ("),ee(l.times(ae,1e9)),o(" "),ce.logs.displayName,o(";")," ",ee(l.times(ae,qe.value))," ",E.ash.displayName,o(")")])])}),canClick:()=>l.gte(a.actualGain.value,1),onClick(){!I(this.canClick)||a.convert()},style:"width: 600px; min-height: unset"}));function r(ae){const le=Fe(()=>({...ae,display:{title:ae.name,description:`Print a copy of "${ae.name}", which ${ae.elfName} will use to improve their skills! Each copy printed will reduce the "${ae.buyableName}" price scaling by 0.95x and make ${ae.elfName} purchase +10% faster!`,effectDisplay:j(()=>t(O,null,[U(l.pow(.95,le.totalAmount.value)),o("x price scaling,")," ",U(l.div(le.totalAmount.value,10).add(1)),o("x auto-purchase speed")])),showAmount:!1},resource:R(n),cost(){let q=this.amount.value;(ae.elfName==="Star"||ae.elfName==="Bell")&&(q=l.pow(q,2)),l.gte(q,100)&&(q=l.pow(q,2).div(100)),l.gte(q,
|
||
|
<br/>
|
||
|
<br/>
|
||
|
Cost: 50 ${n.displayName}<br/>${fe(1e11)} ${E.coal.displayName}`}})),K=S(()=>({resource:R(n),cost:1e5,display:{title:"Efficient Drills",description:"Use metal and a bunch of R&D to make drilling stuff faster. Double coal and ore mining speed."},visibility:()=>p(ie.depthMilestones[4].earned.value)})),re=Fe(()=>({resource:R(n),cost(){let le=new l(this.amount.value);le=l.pow(.95,Q.books.metalBook.totalAmount.value).times(le);let q=l.pow(1.15,le).times(10);return w.elfTraining.clothElfTraining.milestones[4].earned.value&&(q=l.div(q,l.add(ie.depth.value,1).sqrt())),w.elfTraining.metalElfTraining.milestones[3].earned.value&&(q=l.div(q,10)),q},display:{title:"Metal Drill",description:"An automated machine to help you mine more ore, faster",effectDisplay:j(()=>t(O,null,[o("Mine 2.5x faster. Increase ore mining amount by")," ",Ye(re.amount.value),o(" ore per operation")]))},visibility:()=>p(l.gte(re.amount.value,1)||l.div(m.value,d.value).plus(s.value).gte(10)),style:{width:"200px"}})),We=Fe(()=>({resource:R(n),cost(){let le=new l(this.amount.value);le=l.pow(.95,Q.books.metalBook.totalAmount.value).times(le);let q=l.pow(1.15,l.times(le,10)).times(10);return w.elfTraining.clothElfTraining.milestones[4].earned.value&&(q=l.div(q,l.add(ie.depth.value,1).sqrt())),w.elfTraining.metalElfTraining.milestones[3].earned.value&&(q=l.div(q,10)),q},display:{title:"Industrial Crucible",description:"A giant automated crucible furnace, letting you smelt ore faster",effectDisplay:j(()=>t(O,null,[o("Automatically smelts")," ",Ye(l.times(We.amount.value,10)),o(" ore per second")]))},visibility:()=>p(l.gte(We.amount.value,1)||l.gte(re.amount.value,4)||l.gte(m.value,50)),style:{width:"200px"}})),Je=xe(!0),qe=Fe(()=>({resource:E.coal,cost(){let le=new l(this.amount.value);le=l.pow(.95,Q.books.metalBook.totalAmount.value).times(le);let q=l.pow(10,le).times(1e12);return w.elfTraining.clothElfTraining.milestones[4].earned.value&&(q=l.div(q,l.add(ie.depth.value,1).sqrt())),w.elfTraining.metalElfTraining.milestones[3].earned.value&&(q=l.div(q,10)),q},display:{title:"Hotter Forges",description:"More coal makes the fires burn hotter, getting just a little more metal out of each bit of ore",effectDisplay:j(()=>t(O,null,[o("Gain "),Ye(l.times(Te.value,100)),o("% more metal per ore")]))},visibility:()=>p(l.gte(qe.amount.value,1)||pe.bought.value),style:{width:"200px"}})),Te=b(()=>l.times(qe.amount.value,.25));di.on("update",le=>{z.value=l.times(le,f.value).plus(z.value);const q=z.value.trunc();z.value=z.value.minus(q),a.value=l.add(a.value,l.times(q,D.value)),Je.value&&x(l.min(y.value,l.times(u.value,le)),v.value)});const[$e,Ue]=Il(()=>[{title:"Auto Smelt Speed",modifier:c,base:0,unit:"/s",visible(){return l.gt(We.amount.value,0)}},{title:"Auto Smelt Multiplier",modifier:h,base:1,visible(){return l.gt(v.value,1)}},{title:"Metal per Ore",modifier:r,base:.1},{title:"Ore per Mining Operation",modifier:M,base:1},{title:"Mining Speed",modifier:g,base:.1,unit:"/s"}]),Ge=_(!1),Ee=j(()=>t(Yi,{modelValue:Ge.value,"onUpdate:modelValue":le=>Ge.value=le},{header:()=>t("h2",null,[e,o(" Modifiers")]),body:$e})),{total:Le,trackerDisplay:ae}=Wl({resource:n,goal:25e3,name:e,day:Ws,color:i,modal:{show:Ge,display:Ee}});return{name:e,day:Ws,color:i,ore:a,bestOre:m,oreProgress:z,metal:n,bestMetal:s,totalMetal:Le,simplePickaxe:we,doublePickaxe:Ze,crucible:Oe,coalDrill:Xe,industrialFurnace:pe,efficientDrill:K,oreDrill:re,industrialCrucible:We,autoSmeltEnabled:Je,hotterForge:qe,generalTabCollapsed:Ue,minWidth:700,display:j(()=>t(O,null,[ue(ae),t(ve,null,null),t(Ri,{resource:n,color:i,style:"margin-bottom: 0",sticky:!1,productionDisplay:j(()=>t(O,null,[Je.value&&l.gte(We.amount.value,1)?`+${xs([[u.value,"smelting speed"],[Ie.value,"ore gain"],[l.div(E.computedCoalGain.value,W),"coal gain"]],"/s",l.mul(d.value,v.value))}`:void 0]))},null),t(ve,null,null),ue(Y),l.gte(We.amount.value,1)?t("div",{style:{width:"150px"}},[t(Vl,{title:"Auto Smelt",modelValue:Je.value,"onUpdate:modelValue":le=>Je.value=le},null)]):void 0,t(ve,null,null),t(Ri,{resource:a,color:i,style:"margin-bottom
|
||
|
margin: 10px 0;"/>${P}`:z,n.value=!0},onOpenLayer(){if(H.value=!1,window.matchMedia("(min-width: 1468px)").matches)if(ye.tabs.includes(M!=null?M:"trees")){const T=ye.tabs.lastIndexOf(M!=null?M:"trees");ye.tabs.splice(T,1)}else ye.tabs.push(M!=null?M:"trees"),k.minimized.value=!0;else ye.tabs.splice(1,1/0,M!=null?M:"trees");xi[M!=null?M:"trees"].minimized.value=!1},onUnlockLayer(){M&&(g.value=!0,setTimeout(()=>{var T,Ie;s.value=-1,a.value=I((Ie=(T=xi[M!=null?M:"trees"])==null?void 0:T.name)!=null?Ie:""),m.value=z,ye.autoPause&&(ye.devSpeed=null),n.value=!0},1e3))}}}}})}const d=[r(()=>({day:1,shouldNotify:!1,layer:"trees",symbol:mt,story:"Oh no! Santa forgot about Christmas and it's only 25 days away! He's asked for your help due to your history getting large quantities of things in short amounts of time. Unfortunately you're really starting from scratch here - let's start with getting wood, which you'll need for everything from building workshops to wrapping paper to many of the toys themselves!",completedStory:"Santa looks at all the wood you've gathered and tells you you've done well! He says you should take the rest of the day off so you're refreshed for tomorrow's work. Good Job!"})),r(()=>({day:2,shouldNotify:!1,layer:"workshop",symbol:It,story:"Santa looked over your tree farm and was impressed with how much you could accomplish in just one day. Today's goal is to get a workshop built up for the elves to work in - and apparently, they need quite a lot of space to work!",completedStory:"The workshop complete, Santa once again dismisses you for the day. With a strong foundation, this workshop should suffice for supporting future work toward this impossible mission. Good Job!"})),r(()=>({day:3,shouldNotify:!1,layer:"coal",symbol:et,story:"Santa tells you that unfortunately there are quite a few naughty children out there this year, and he's going to need you to gather as much coal as you can for him to give out.",completedStory:"Santa looks at all the coal you've gathered and tells you you've done well! He says you should take the rest of the day off so you're refreshed for tomorrow's work. Good Job!"})),r(()=>({day:4,shouldNotify:!1,layer:"elves",symbol:lt,story:"Alright, it seems you finally have enough things set up to start bringing in the elves! Unfortunately, it seems they'll need to be retrained on how to help, since they've stopped practicing for 11 months!",completedStory:"The workshop now hums with the bustling elves working on everything. They can take it from here - you deserve a break after such a long day! Good Job!"})),r(()=>({day:5,shouldNotify:!1,layer:"paper",symbol:at,story:"With the elves trained, we're almost ready to start working on these presents! Just a couple more pre-reqs first, starting with turning all this wood into wood pulp and finally into paper, which will be required for wrapping paper later on but in the meantime can be used to help write guides which will help these elves continue their education!",completedStory:"You look upon your rivers of book pulp as you hand out stacks of papers to elves to read through. You've continued getting closer and closer to preparing for Christmas, and can go to bed satisfied with your progress. Good Job!"})),r(()=>({day:6,shouldNotify:!1,layer:"boxes",symbol:$s,story:"You watch all these elves carrying incredibly large loads just in their open elf-sized hands, and realize there's probably a better way. You need to put the toys in boxes anyways, so why don't we get started working on those so the workers can take advantage as well?",completedStory:"Wow, those boxes are really convenient! The workshop feels more and more proper with every day. You tick another requirement on your list and start looking towards tomorrow. Good Job!"})),r(()=>({day:7,shouldNotify:!1,layer:"metal",symbol:st,story:"You woke up ready to make some toys, before realizing most toys these days are made out of more than just wood! You're sure you're close to really getting to work, but there's a few more materials you're going to need - like metal! Lo
|
||
|
`,"./../../saves/Day 08 Complete.txt":"eyJpZCI6ImFkdmVudC1pbmNyZW1lbnRhbC0yIiwiZGV2U3BlZWQiOjAsIm5hbWUiOiJEZWZhdWx0IFNhdmUiLCJ0YWJzIjpbIm1haW4iLCJjbG90aCJdLCJ0aW1lIjoxNjcwOTY2MDM5MjIwLCJhdXRvc2F2ZSI6dHJ1ZSwib2ZmbGluZVByb2QiOnRydWUsIm9mZmxpbmVUaW1lIjowLCJ0aW1lUGxheWVkIjoxNDQ4MS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25lMSI6eyJlYXJuZWQiOnRydWV9LCJhdXRvUGxhbnRNaWxlc3RvbmUxIjp7ImVhcm5lZCI6dHJ1ZX0sImF1dG9DdXRNaWxlc3RvbmUyIjp7ImVhcm5lZCI6dHJ1ZX0sImF1dG9QbGFudE1pbGVzdG9uZTIiOnsiZWFybmVkIjp0cnVlfSwibG9nR2Fpbk1pbGVzdG9uZTIiOnsiZWFybmVkIjp0cnVlfSwibW9yZVBsYW50c01pbGVzdG9uZTEiOnsiZWFybmVkIjp0cnVlfSwibG9nR2Fpbk1pbGVzdG9uZTMiOnsiZWFybmVkIjp0cnVlfX0sImNvbGxhcHNlTWlsZXN0b25lcyI6dHJ1ZX0sImNvYWwiOnsibWluaW1pemVkIjpmYWxzZSwiY29hbCI6IjEuMTk4OTU3MzM0NjIxNDA0NmUzMiIsInRvdGFsQ29hbCI6IjEuMjUxNTEwMDAxODAxODUzNWUzMyIsImFzaCI6IjcuMDYxODA2ODk2OTU1NDQ3NWUxNiIsImFjdGl2ZUZpcmVzIjoiMCIsImJ1
|
||
|
${z}
|
||
|
${f}`)}}return u[g]}Ki(n,g=>{g&&Object.keys(u).forEach(f=>delete u[f])});const v=b(()=>pi.saves.reduce((g,f)=>(g[f]=h(f),g),{}));function W(g){let f;switch(ye.id===g?f=Ts(ye[vi]):f=JSON.stringify(v.value[g]),Pe.exportEncoding){default:console.warn(`Unknown save encoding: ${Pe.exportEncoding}. Defaulting to lz`);case"lz":f=xl.compressToUTF16(f);break;case"base64":f=btoa(unescape(encodeURIComponent(f)));break;case"plain":break}const z=document.createElement("textarea");z.value=f,document.body.appendChild(z),z.select(),z.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(z)}function y(g){ye.id===g&&$i();const f={...v.value[g],id:vn()};$i(f),pi.saves.push(f.id)}function Y(g){pi.saves=pi.saves.filter(f=>f!==g),localStorage.removeItem(g),u[g]=void 0}function x(g){v.value[ye.id].time=ye.time,$i(),u[ye.id]=void 0,Al(v.value[g]),u[g]=void 0}function M(g){if(r.value=g,Bl(()=>{r.value=null}),g[0]!=="{")if(g[0]==="e")g=decodeURIComponent(escape(atob(g)));else if(g[0]==="\u1BE1")g=xl.decompressFromUTF16(g);else{console.warn("Unable to determine preset encoding",g);return}const f=JSON.parse(g);f.id=vn(),$i(f),pi.saves.push(f.id),x(f.id)}function D(g,f){const z=v.value[g];z&&(z.name=f,ye.id===g?(ye.name=f,$i()):($i(z),u[g]=void 0))}return(g,f)=>(J(),je(Yi,{modelValue:n.value,"onUpdate:modelValue":f[4]||(f[4]=z=>n.value=z),ref_key:"modal",ref:s},{header:he(()=>[Zr]),body:he(({shown:z})=>[z?(J(),je(I(Yt),{key:0,list:I(pi).saves,handle:".handle",itemKey:P=>P},{item:he(({element:P})=>[t(br,{save:I(v)[P],onOpen:H=>x(P),onExport:H=>W(P),onEditName:H=>D(P,H),onDuplicate:H=>y(P),onDelete:H=>Y(P)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):A("",!0)]),footer:he(()=>[V("div",pr,[t(ut,{modelValue:m.value,"onUpdate:modelValue":f[0]||(f[0]=z=>m.value=z),title:"Import Save",placeholder:"Paste your save here!",class:Wi({importingFailed:a.value})},null,8,["modelValue","class"]),V("div",yr,[hr,V("div",Vr,[V("button",{class:"button",onClick:f[1]||(f[1]=z=>x(I(Kl)().id))},"New Game"),Object.keys(I(c)).length>0?(J(),je(is,{key:0,options:I(c),modelValue:r.value,"onUpdate:modelValue":f[2]||(f[2]=z=>M(z)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):A("",!0)])]),V("div",Wr,[vr,V("button",{class:"button modal-default-button",onClick:f[3]||(f[3]=z=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var bt=ni(jr,[["__scopeId","data-v-3b9991aa"]]);const el=e=>(Rl("data-v-8495e562"),e=e(),Sl(),e),Jr=["src","alt"],fr={key:1,class:"title"},Cr=el(()=>V("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),wr={class:"discord"},Or={class:"discord-links"},gr={key:0},Yr=["href"],Nr=el(()=>V("li",null,[V("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Xr=el(()=>V("li",null,[V("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Mr={href:"https://forums.moddingtree.com/",target:"_blank"},xr=el(()=>V("span",{class:"material-icons"},"forum",-1)),Gr=el(()=>V("span",{class:"material-icons"},"info",-1)),Fr=el(()=>V("span",{class:"material-icons"},"library_books",-1)),zr=el(()=>V("span",{class:"material-icons"},"settings",-1)),kr=el(()=>V("span",{class:"material-icons"},"library_books",-1)),Rr=el(()=>V("span",{class:"material-icons"},"settings",-1)),Sr=el(()=>V("span",{class:"material-icons"},"info",-1)),Hr={href:"https://forums.moddingtree.com/",target:"_blank"},Lr=el(()=>V("span",{class:"material-icons"},"forum",-1)),Qr={class:"discord"},Tr={class:"discord-links"},Ur={key:0},Er=["href"],Ar=el(()=>V("li",null,[V("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Br=el(()=>V("li",null,[V("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Dr=Ne({__name:"Nav",setup(e){const i=_(null),n=_(null),s=_(null),a=_(null),{useHeader:m,banner:r,title:d,discordName:c,discordLink:u,versionNumber:h}=Pe;function v(){window.open(u,"mywindow")}return(W,y)=>(J(),F(O,null,[I(m)?(J(),F("div",Dl({key:0,class:
|
||
|
Learn more at www.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await Ea();const{globalBus:e}=await Jn(()=>Promise.resolve().then(function(){return ga}),void 0),{startGameLoop:i}=await Jn(()=>import("./gameLoop.1835b850.js"),["assets/gameLoop.1835b850.js","assets/@fontsource.c175eac8.css","assets/vue.92681fcb.js","assets/lz-string.731cedc5.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/is-plain-object.906d88e8.js","assets/vue-next-select.a2bfab1d.js","assets/vue-next-select.9e6f4164.css","assets/vue-toastification.6f567382.js","assets/vue-toastification.4b5f8ac8.css","assets/vuedraggable.7949458c.js","assets/sortablejs.29100d8a.js","assets/vue-textarea-autosize.35804eaf.js","assets/workbox-window.8d14e8b7.js"]),n=window.vue=Ct(Nd);e.emit("setupVue",n),n.mount("#app"),Bl(()=>{const s=Os(),{updateServiceWorker:a}=Md({onNeedRefresh(){s.info("New content available, click here to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){a()}})},onOfflineReady(){s.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(m){m&&setInterval(()=>m.update(),60*60*1e3)}})}),i()});export{l as D,Jn as _,Ci as a,Pe as b,UI as c,di as g,qn as l,ye as p,pi as s};
|