Advent-Incremental/assets/index.5284aea9.js

36 lines
550 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.92681fcb.js";import{Z,l as ki,aa as Qe,t as me,ay as Fn,ar as _l,aE as g,a0 as S,aK as yl,a1 as w,O as C,aG as Cn,A as Ai,_ as ke,a8 as t,b6 as Ge,b8 as kn,bs as Gs,C as m,aq as ql,bu as hn,bb as zn,T as Gt,a7 as o,j as Ft,bv as is,u as Rn,q as jn,b1 as hl,G as wi,aC as Fs,w as Il,b2 as Pi,ao as kt,I as Ni,aN as fi,$ as te,J as qe,aH as Ql,aF as Ul,z as Vl,al as Nn,aL as Tl,H as zt,aJ as ks,bn as Rt,br as St,be as Ht}from"./@vue.4ce677c2.js";import{c as zs}from"./nanoevents.1080beb7.js";import{L as Sl}from"./lz-string.731cedc5.js";import{i as Lt}from"./is-plain-object.906d88e8.js";import{Y as Tt}from"./vue-next-select.a2bfab1d.js";import{s as Qt,u as Rs}from"./vue-toastification.6f567382.js";import{D as Ut}from"./vuedraggable.7949458c.js";import{p as Et}from"./vue-textarea-autosize.35804eaf.js";import{v as At,n as Dt}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const Bt=function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const r of a)if(r.type==="childList")for(const d of r.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function n(a){const r={};return a.integrity&&(r.integrity=a.integrity),a.referrerpolicy&&(r.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?r.credentials="include":a.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(a){if(a.ep)return;a.ep=!0;const r=n(a);fetch(a.href,r)}};Bt();const Pt="modulepreload",js={},_t="./",Yn=function(l,n){return!n||n.length===0?l():Promise.all(n.map(s=>{if(s=`${_t}${s}`,s in js)return;js[s]=!0;const a=s.endsWith(".css"),r=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${r}`))return;const d=document.createElement("link");if(d.rel=a?"stylesheet":Pt,a||(d.as="script",d.crossOrigin=""),d.href=s,document.head.appendChild(d),a)return new Promise((u,c)=>{d.addEventListener("load",u),d.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>l())},qt="./projInfo-schema.json",$t="Advent Incremental",Kt="An incremental game you play a day at a time, leading up to Christmas!",ea="advent-incremental",ia="thepaperpilot and friends",la="",na="",sa="0.5",ta="Initial Commit",aa=!0,oa=!1,Ia=2,ma=!0,ra=null,da="",ua=["main"],ca=3600,ba=0,Za=!0,ya="base64";var Ii={$schema:qt,title:$t,description:Kt,id:ea,author:ia,discordName:la,discordLink:na,versionNumber:sa,versionTitle:ta,allowGoBack:aa,defaultShowSmall:oa,defaultDecimalsShown:Ia,useHeader:ma,banner:ra,logo:da,initialTabs:ua,maxTickLength:ca,offlineLimit:ba,enablePausing:Za,exportEncoding:ya};const Qn=17,pa=9e15,ha=Math.log10(9e15),Va=1/9e15,Wa=308,va=-324,Js=5,ja=function(){const e=[];for(let n=va+1;n<=Wa;n++)e.push(Number("1e"+n));const l=323;return function(n){return e[n+l]}}(),Dl=[2,Math.E,3,4,5,6,7,8,9,10],Ja=[[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.167090535697
`).slice(3,5).map(l=>l.trim()).join(`
`))||""}function I(e){const l=ki(e)?e:me(e);l[ts]=l,l[Ll]=ki(e)?e.value:e,l[xn]=Ka(),l[_s]=!1;const n=Z({get(){return l.value},set(s){l.value=s}});return n[Ll]=l[Ll],l[Wn]=n,l[pn]=void 0,cl.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",l,`
Created at:
`+l[xn]):an[cl[cl.length-1]].add(l),l}function qs(e){return e&&typeof e=="object"&&ts in e}function A(e){return e[Wn]}yi.on("addLayer",(e,l)=>{const n=[],s=(a,r=[])=>{let d=!1;return Object.keys(a).forEach(u=>{let c=a[u];if(c&&typeof c=="object")if(Xi in c&&(c=c[Xi]),qs(c)){if(d=!0,c[_s]){console.warn("Deleted persistent ref present in returned object. Ignoring...",c,`
Created at:
`+c[xn]);return}an[e.id].delete(c);const b=[e.id,...r,u];c[pn]!=null&&JSON.stringify(b)!==JSON.stringify(c[pn])&&console.error(`Persistent ref is being saved to \`${b.join(".")}\` when it's already present at \`${c[pn].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,c),c[pn]=b;const J=r.reduce((W,j)=>(j in W||(W[j]={}),W[j]),l),h=J[u];J[u]=c[ts],Ft(J)?h!=null?J[u]=h:J[u]=c[Ll]:h!=null?J[u].value=h:J[u].value=c[Ll]}else!(c instanceof i)&&!ki(c)&&!n.includes(c)&&(typeof c.type=="symbol"&&n.push(c),s(c,[...r,u])&&(is(c)&&!is(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.",Xi in a?a[Xi]:a,u):d=!0))}),d};s(e[Xi]),an[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[xn])}),an[e.id].clear()});var Gi=window.state=Rn({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const $s=jn({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{},autoPause:!0});function Ks(e){return JSON.stringify(e,(l,n)=>m(n))}const et={get(e,l){var s;if(l===Xi||l===sn)return e[l];const n=e[Xi][l];if(l!=="value"&&(Lt(n)||Array.isArray(n))){if(n!==((s=e[l])==null?void 0:s[Xi])){const a=[...e[sn],l];e[l]=new Proxy({[Xi]:n,[sn]:a},et)}return e[l]}return n},set(e,l,n,s){if(!Gi.hasNaN&&(typeof n=="number"&&isNaN(n)||n instanceof i&&(isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)))){const a=e[Xi][l];if(!(typeof a=="number"&&isNaN(a)||a instanceof i&&(isNaN(a.sign)||isNaN(a.layer)||isNaN(a.mag))))throw $s.autosave=!1,Gi.hasNaN=!0,Gi.NaNPath=[...e[sn],l],Gi.NaNReceiver=s,console.error("Attempted to set NaN value",[...e[sn],l],e[Xi]),"Attempted to set NaN value. See above for details"}return e[Xi][l]=n,!0},ownKeys(e){return Reflect.ownKeys(e[Xi])},has(e,l){return Reflect.has(e[Xi],l)},getOwnPropertyDescriptor(e,l){return Object.getOwnPropertyDescriptor(e[Xi],l)}};var Me=window.player=new Proxy({[Xi]:$s,[sn]:["player"]},et);const as=Symbol("RegisterNode"),os=Symbol("UnregisterNode"),Is=Symbol("Nodes"),ms=Symbol("Bounds"),oi=Rn({});window.layers=oi;const an={},cl=[];function Di(e,l){return nl(()=>{const n={},s=n.emitter=zs();if(n.on=s.on.bind(s),n.emit=s.emit.bind(s),n.nodes=me({}),n.id=e,cl.push(e),an[e]=new Set,n.minimized=I(!1),Object.assign(n,l.call(n)),cl[cl.length-1]==null||cl[cl.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${cl}
Trying to pop ${n.id}`;return cl.pop(),ve(n,"color"),ve(n,"display"),ve(n,"name"),Ei(n,"name",n.id),ve(n,"minWidth"),Ei(n,"minWidth",600),ve(n,"minimizable"),Ei(n,"minimizable",!0),ve(n,"minimizedDisplay"),n})}function it(e,l){if(console.info("Adding layer",e.id),oi[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,oi[e.id]);return}Ei(l,"layers",{}),l.layers[e.id]==null&&(l.layers[e.id]={}),oi[e.id]=e,yi.emit("addLayer",e,l.layers[e.id])}function eo(e){return oi[e]}function lt(e){console.info("Removing layer",e.id),yi.emit("removeLayer",e),oi[e.id]=void 0}function io(e){lt(e),it(e,Me)}function lo(e){const l=me(!1);return{openModal:()=>l.value=!0,modal:f(()=>t(Si,{modelValue:l.value,"onUpdate:modelValue":n=>l.value=n},{header:()=>t("h2",null,[m(e.name)]),body:m(e.display)}))}}yi.on("update",function(l){Object.values(oi).forEach(n=>{n==null||n.emit("preUpdate",l)}),Object.values(oi).forEach(n=>{n==null||n.emit("update",l)}),Object.values(oi).forEach(n=>{n==null||n.emit("postUpdate",l)})});var no=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:as,UnregisterNodeInjectionKey:os,NodesInjectionKey:Is,BoundsInjectionKey:ms,layers:oi,persistentRefs:an,addingLayers:cl,createLayer:Di,addLayer:it,getLayer:eo,removeLayer:lt,reloadLayer:io,setupLayerModal:lo},Symbol.toStringTag,{value:"Module"}));function nt(e={}){return Object.assign({id:`${Ii.id}-0`,name:"Default Save",tabs:Ii.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:Ii.id,modVersion:Ii.versionNumber,layers:{}},e)}function il(e){const l=Sl.compressToUTF16(Ks(e!=null?e:Me[Xi]));return localStorage.setItem((e!=null?e:Me[Xi]).id,l),l}async function so(){ao();try{let e=localStorage.getItem(hi.active);if(e==null){await Pl(on());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Sl.decompressFromUTF16(e);else throw"Unable to determine save encoding";const l=JSON.parse(e);if(l.modID!==Ii.id){await Pl(on());return}l.id=hi.active,await Pl(l)}catch(e){console.error(`Failed to load save. Falling back to new save.
`,e),await Pl(on())}}function on(){const e=On(),l=nt({id:e});return il(l),hi.saves.push(e),l}function On(){let e,l=0;do e=`${Ii.id}-${l++}`;while(localStorage.getItem(e));return e}const rs=me(!1);async function Pl(e){console.info("Loading save",e),rs.value=!0;const{layers:l,removeLayer:n,addLayer:s}=await Yn(()=>Promise.resolve().then(function(){return no}),void 0),{fixOldSave:a,getInitialLayers:r}=await Yn(()=>Promise.resolve().then(function(){return nm}),void 0);for(const d in l){const u=l[d];u&&n(u)}r(e).forEach(d=>s(d,e)),e=nt(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,Ii.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==Ii.versionNumber&&(a(e.modVersion,e),e.modVersion=Ii.versionNumber),Object.assign(Me,e),hi.active=Me.id,yi.emit("onLoad")}setInterval(()=>{Me.autosave&&oi.main.days[oi.main.day.value-1].opened.value&&il()},1e3);window.onbeforeunload=()=>{Me.autosave&&oi.main.days[oi.main.day.value-1].opened.value&&il()};window.save=il;const to=window.hardReset=async()=>{await Pl(on())},vn=jn({active:"",saves:[],showTPS:!0,theme:ss.Nordic,unthrottled:!1,usingLog:!1,alignUnits:!1});hl(vn,e=>{const l=Sl.compressToUTF16(JSON.stringify(e));localStorage.setItem(Ii.id,l)},{deep:!0});var hi=window.settings=vn;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:ss.Nordic,usingLog:!1,alignUnits:!1};yi.emit("loadSettings",e),Object.assign(vn,e),to()};function ao(){try{let e=localStorage.getItem(Ii.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Sl.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const l=JSON.parse(e);typeof l=="object"&&Object.assign(vn,l)}yi.emit("loadSettings",vn)}catch{}}const st=jn([]);function oo(e){st.push(e)}const tt=jn([]);function Io(e){tt.push(e)}const mo=jn([]),ro={class:"table"},ll=Qe({__name:"Column",setup(e){const l=Z(()=>bn[hi.theme].mergeAdjacent);return(n,s)=>(g(),S("div",ro,[w("div",{class:wi(["col",{mergeAdjacent:m(l)}])},[yl(n.$slots,"default")],2)]))}}),uo={class:"table"},rn=Qe({__name:"Row",setup(e){const l=Z(()=>bn[hi.theme].mergeAdjacent);return(n,s)=>(g(),S("div",uo,[w("div",{class:wi(["row",{mergeAdjacent:m(l)}])},[yl(n.$slots,"default")],2)]))}});function ds(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!kt(e)}function ti(e,l="span"){return typeof e=="function"?Qe({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${l}>${e}</${l}>`),Qe({template:e})):Qe({render:()=>({})}):e}function We(e){if(xl(e))return typeof e=="function"?e():ti(e);const l=e[El];return t(l,e[Al](),null)}function ci(...e){let l;return t(rn,null,ds(l=e.map(We))?l:{default:()=>[l]})}function ml(...e){let l;return t(ll,null,ds(l=e.map(We))?l:{default:()=>[l]})}function fl(...e){return t("div",{class:"table-grid"},[e.map(l=>t("div",{class:{["row-grid"]:!0,mergeAdjacent:bn[hi.theme].mergeAdjacent}},[l.map(We)]))])}function pl(e){if(xl(e))return typeof e=="function"?e():typeof e=="string"?t(C,null,[e]):t(e,null,null);const l=e[El];return t(l,e[Al](),null)}function co(...e){let l;return t(ll,null,ds(l=e.map(pl))?l:{default:()=>[l]})}function xl(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Vn]===!0}function at(e,l,n){const s=me(null),a=me(void 0);function r(c){s.value||(s.value=setInterval(u,250)),a.value=c,n&&(n.value=!0)}function d(){s.value&&(clearInterval(s.value),s.value=null),n&&(n.value=!1)}function u(){l&&l.value?l.value():e&&e.value&&e.value(a.value)}return Fs(d),{start:r,stop:d,handleHolding:u}}function bo(e,l){const n=Z(()=>e.filter(s=>m(s.visibility)===Ji.Visible&&l(s)));return{firstFeature:Z(()=>n.value[0]),collapsedContent:f(()=>ml(...n.value.slice(1))),hasCollapsedContent:Z(()=>n.value.length>1)}}function Gn(e,l="div"){const n=Il();return Pi(()=>{n.value=ti(Ti(e),l)}),n}function Gl(e,l="div"){const n=Il(null);return Pi(()=>{const s=Ti(e);n
x${le(m(a.christmas1))} to wood production
`)}]}),rainbow:n({name:"Rainbow Wrapping Paper",id:"rainbow",ratio:{red:{base:Nl,exponent:Ml+.2},green:{base:Yl,exponent:Xl+.1},blue:{base:Nl,exponent:Ml+.2},yellow:{base:Nl,exponent:Ml+.2},purple:{base:Yl,exponent:Xl+.1},orange:{base:Yl,exponent:Xl+.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:Z(()=>`
/${le(m(a.rainbow1))} to coal buyable cost
`)}]}),jazzy:n({name:"Jazzy Wrapping Paper",id:"jazzy",ratio:{purple:{base:Yl*3,exponent:Xl},orange:{base:Yl*3,exponent:Xl}},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:Z(()=>`
x${le(m(a.jazzy1))} to auto-smelting speed
`)}]}),sunshine:n({name:"Sunshine Wrapping Paper",id:"sunshine",ratio:{red:{base:Nl*2,exponent:Ml+.1},yellow:{base:Nl*2,exponent:Ml+.1},orange:{base:Yl*2,exponent:Xl+.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:Z(()=>`
x${le(m(a.sunshine1))} to paper production
`)}]}),ocean:n({name:"Ocean Wrapping Paper",id:"ocean",ratio:{blue:{base:Nl*2,exponent:Ml+.1},green:{base:Yl*2,exponent:Xl+.05},purple:{base:Yl*2,exponent:Xl+.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:Z(()=>`
/${le(m(a.ocean1))} to box buyable cost
`)}]}),beach:n({name:"Beach Wrapping Paper",id:"beach",ratio:{yellow:{base:Nl*3,exponent:Ml},blue:{base:Nl*3,exponent:Ml}},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:Z(()=>`
/${le(m(a.beach1))} to workshop cost
`)}]})},a={christmas1:Z(()=>V.isMastery.value?1:i.add(s.christmas.buyable.amount.value,1)),rainbow1:Z(()=>V.isMastery.value?1:i.pow(2,s.rainbow.buyable.amount.value)),jazzy1:Z(()=>V.isMastery.value?1:i.add(s.jazzy.buyable.amount.value,1)),sunshine1:Z(()=>V.isMastery.value?1:i.add(s.sunshine.buyable.amount.value,1)),ocean1:Z(()=>V.isMastery.value?1:i.pow(1.5,s.ocean.buyable.amount.value)),beach1:Z(()=>V.isMastery.value?1:i.add(s.beach.buyable.amount.value,1))},r=Vi(Z(()=>Object.values(s).map(h=>h.buyable.amount.value).reduce(i.add,0)),"Total Wrapping Paper"),d=G(()=>({display:{requirement:"80 Total Wrapping Paper",effectDisplay:"Unlock a new elf to help with dyes"},shouldEarn:()=>i.gte(r.value,80),onComplete(){V.days[3].recentlyUpdated.value=!0}})),u=Z(()=>i.add(b.value,1).pow(.6).times(10).add(120)),c=Qi(()=>({display:()=>{var h;return{title:`${V.isMastery.value?"Stop Decorating":"Begin Decorating"} ${(h=Object.values(oi).find(W=>{var j;return m(W.mastered)===!1&&!["Elves","Management"].includes(m((j=W==null?void 0:W.name)!=null?j:""))}))==null?void 0:h.name}`,description:f(()=>t(C,null,[t("br",null,null),o("Decorating brings you to a separate version of each day that only allows layers that are decorated or being decorated to work. These days will have a new decoration effect that applies outside of decorating as well."),t("br",null,null),o("You can safely start and stop decorating without losing progress"),V.isMastery.value?null:t(C,null,[t("br",null,null),t("br",null,null),o("Requires "),re(u.value),o(" total wrapping paper")])]))}},visibility:()=>y(V.day.value===en),canClick(){return V.isMastery.value||i.gte(r.value,u.value)},onClick(){var W,j;if(!m(c.canClick))return;V.toggleMastery();const h=(j=(W=V.currentlyMastering.value)==null?void 0:W.id)!=null?j:"trees";Me.tabs.includes(h)||V.openDay(h),h==="paper"&&(ye.elves.cuttersElf.bought.value=!0,ye.elves.plantersElf.bought.value=!0,ye.elves.expandersElf.bought.value=!0,ye.elves.heatedCuttersElf.bought.value=!0,ye.elves.heatedPlantersElf.bought.value=!0,ye.elves.fertilizerElf.bought.value=!0)},style:{width:"300px",minHeight:"160px"}})),b=Z(()=>Object.values(oi).filter(h=>h&&"mastered"in h).findIndex(h=>h.mastered.value===!1)),J=qi(()=>({direction:Be.Right,width:600,height:25,fillStyle:`backgroundColor: ${l}`,textStyle:"color: var(--feature-foreground)",progress:()=>V.day.value===en?i.div(b.value,6):1,display:f(()=>V.day.value===en?t(C,null,[b.value,o("/6 days decorated")]):"")}));return Pi(()=>{V.day.value===en&&i.gte(b.value,6)&&V.showLoreModal.value===!1&&V.completeDay()}),{name:e,day:en,color:l,display:f(()=>t("div",{style:"width: 620px"},[t("div",null,[V.day.value===en?"Decorate 6 previous days to complete the day":`${e} Complete!`]),We(J),t(pe,null,null),t(Ui,{resource:r},null),ci(s.christmas.display,s.rainbow.display,s.jazzy.display),ci(s.christmas.buyable,s.rainbow.buyable,s.jazzy.buyable),t(pe,null,null),ci(s.sunshine.display,s.ocean.display,s.beach.display),ci(s.sunshine.buyable,s.ocean.buyable,s.beach.buyable),t(pe,null,null),We(c),t(pe,null,null),We(d)])),wrappingPaper:s,boosts:a,unlockDyeElfMilestone:d,minWidth:700}}),TI="workshop",Zn=2,di=Di(TI,function(){const e="Workshop",l="#D66B02",n="#D66B02",s=Vi(0,"foundation progress"),a=be(()=>[p(()=>({multiplier:Z(()=>i.recip(zi.boosts.beach1.value)),description:"Beach Wrapping Paper",enabled:Z(()=>i.gt(zi.boosts.beach1.value,1))})),tl(()=>({exponent:.99,description:"Holly Level 5",enabled:v.elfTraining.cutterElfTraining.milestones[4].earned}))]),r=fe=>Z(()=>a.apply(fe)),d=nI(()=>({scaling:sI(Ns(Ns(us(r(250),1.5),r(5423),1/1e10),r(1e20),3e8),Z(()=>v.elfTraining.expandersElfTraining.milestones[2].earned.value?1e3:100)),baseResource:ge.logs,gainResource:A(s),roundUpCost:!0,spend(fe,we){Ne.value||(ge.logs.value=i.sub(ge.logs.value,we))}})),u=Qi(()=>({display:f(()=>t(C,null,[t("b",{style:"font-size: x-large"},[o("Build "),re(d.actualGain.value),o("% of the foundation")]),t("br",null,null),t("br",null,null),t("span",{style:"font-size: large"},[Ne.value?"Requirement":"Cost",o(":")," ",fn(ge.logs
<br/>
<br/>
Cost: 50 ${n.displayName}<br/>${Te(1e11)} ${ee.coal.displayName}`}})),ue=B(()=>({resource:A(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:()=>y(ce.depthMilestones[4].earned.value)})),x=Ae(()=>({resource:A(n),cost(){let E=new i(this.amount.value);E=i.pow(.95,z.books.metalBook.totalAmount.value).times(E);let oe=i.pow(1.15,E).times(10);return v.elfTraining.metalElfTraining.milestones[4].earned.value&&(oe=i.div(oe,i.add(ce.depth.value,1).sqrt())),v.elfTraining.metalElfTraining.milestones[3].earned.value&&(oe=i.div(oe,10)),oe},inverseCost(E){v.elfTraining.metalElfTraining.milestones[3].earned.value&&(E=i.mul(E,10)),v.elfTraining.metalElfTraining.milestones[4].earned.value&&(E=i.mul(E,i.add(ce.depth.value,1).sqrt()));let oe=i.div(E,10).log(1.15);return oe=oe.div(i.pow(.95,z.books.metalBook.totalAmount.value)),i.isNaN(oe)?i.dZero:oe.floor().max(0)},display:{title:"Metal Drill",description:"An automated machine to help you mine more ore, faster",effectDisplay:f(()=>t(C,null,[o("Mine 2.5x faster. Increase ore mining amount by")," ",Se(x.amount.value),o(" ore per operation")]))},visibility:()=>y(i.gte(x.amount.value,1)||i.div(r.value,b.value).plus(s.value).gte(10)),style:{width:"200px"}})),$=Ae(()=>({resource:A(n),cost(){let E=new i(this.amount.value);E=i.pow(.95,z.books.metalBook.totalAmount.value).times(E);let oe=i.pow(1.15,i.times(E,10)).times(10);return v.elfTraining.metalElfTraining.milestones[4].earned.value&&(oe=i.div(oe,i.add(ce.depth.value,1).sqrt())),v.elfTraining.metalElfTraining.milestones[3].earned.value&&(oe=i.div(oe,10)),oe},inverseCost(E){v.elfTraining.metalElfTraining.milestones[3].earned.value&&(E=i.mul(E,10)),v.elfTraining.metalElfTraining.milestones[4].earned.value&&(E=i.mul(E,i.add(ce.depth.value,1).sqrt()));let oe=i.div(E,10).log(1.15).div(10);return oe=oe.div(i.pow(.95,z.books.metalBook.totalAmount.value)),i.isNaN(oe)?i.dZero:oe.floor().max(0)},display:{title:"Industrial Crucible",description:"A giant automated crucible furnace, letting you smelt ore faster",effectDisplay:f(()=>t(C,null,[o("Automatically smelts")," ",Se(i.times($.amount.value,10)),o(" ore per second")]))},visibility:()=>y(i.gte($.amount.value,1)||i.gte(x.amount.value,4)||i.gte(r.value,50)),style:{width:"200px"}})),Ie=I(!0),Wi=Ae(()=>({resource:ee.coal,cost(){let E=new i(this.amount.value);E=i.pow(.95,z.books.metalBook.totalAmount.value).times(E);let oe=i.pow(10,E).times(1e12);return v.elfTraining.metalElfTraining.milestones[4].earned.value&&(oe=i.div(oe,i.add(ce.depth.value,1).sqrt())),v.elfTraining.metalElfTraining.milestones[3].earned.value&&(oe=i.div(oe,10)),oe},inverseCost(E){v.elfTraining.metalElfTraining.milestones[3].earned.value&&(E=i.mul(E,10)),v.elfTraining.metalElfTraining.milestones[4].earned.value&&(E=i.mul(E,i.add(ce.depth.value,1).sqrt()));let oe=i.div(E,1e12).log(10);return oe=oe.div(i.pow(.95,z.books.metalBook.totalAmount.value)),i.isNaN(oe)?i.dZero:oe.floor().max(0)},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:f(()=>t(C,null,[o("Gain "),Se(i.times(ei.value,100)),o("% more metal per ore")]))},visibility:()=>y(i.gte(Wi.amount.value,1)||Fe.bought.value),style:{width:"200px"}})),ei=Z(()=>i.times(Wi.amount.value,.25));yi.on("update",E=>{var vi;if(i.lt(V.day.value,qn)||V.isMastery.value&&!he.value&&((vi=V.currentlyMastering.value)==null?void 0:vi.name)!==e)return;const oe=i.sub(i.times(de.value,k.value),i.sub(u.value,d.value).max(0)),Ve=i.sub(h.value,i.sub(d.value,u.value).max(0));d.value=i.isNaN(oe)?0:oe,u.value=i.isNaN(Ve)?0:Ve,_.value=i.times(E,de.value).plus(_.value);const Hi=_.value.trunc();_.value=_.value.minus(Hi),a.value=i.add(a.value,i.times(Hi,k.value)),Ie.value&&T(i.min(X.value,i.times(h.value,E)),j.value)});const[De,Ee]=rl(()=>[{title:"Auto Smelt Speed",modifier:J,base:0,unit:"/s",visible(){return i.gt($.amount.value,0)||Re.value}},{title:"Auto Smelt Multiplier",modifier:W,base:1
margin: 10px 0;"/>${Ze}<hr style="
margin: 10px 0;"/>${Ne}`:`${Ce}<hr style="
margin: 10px 0;"/>${Ze}`:Ce,n.value=!0},onOpenLayer(){fe.value=!1,h(Q!=null?Q:"trees")},onUnlockLayer(){Q&&(ie.value=!0,setTimeout(()=>{var ue,x;s.value=-1,a.value=m((x=(ue=oi[Q!=null?Q:"trees"])==null?void 0:ue.name)!=null?x:""),r.value=Ce,Me.autoPause&&(Me.devSpeed=null),n.value=!0},1e3))}}}}})}const j=[W(()=>({day:1,shouldNotify:!1,layer:"trees",symbol:Jt,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!",masteredStory:"As you repeat the basic actions again, you feel like you've learned something that you didn't know the first time around. Santa is impressed at your new knowledge and inspires you to attempt this with more jobs."})),W(()=>({day:2,shouldNotify:!1,layer:"workshop",symbol:jt,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!",masteredStory:"As you attempt to build the workshop again with your newfound experiences and resources, you realize you could have built the workshop a little bit better. As you keep building and building, you realize that you could've built it without wasting any resources."})),W(()=>({day:3,shouldNotify:!1,layer:"coal",symbol:ut,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!",masteredStory:"It's another typical day, attempting to redo your work again, but this time for coal. While doing this tedious task, an elf comes up to you. It gives you a improved blueprint on how to make small fires. You try it, and you realize that it's a lot more efficent than your old buildings designs. You thank the elf, and resume your work."})),W(()=>({day:4,shouldNotify:!1,layer:"elves",symbol:bt,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!",masteredStory:"This place feels a lot more better, with less naughty elves who are more excited than ever before to do something! As you collapse into a chair thinking of all of your hard work, Santa comes by yet again to congratulate you on your hard work. You feel a pang of jealousy as Santa is taking all the credit for your work, but you decide that saving Christmas is worth it."})),W(()=>({day:5,shouldNotify:!1,layer:"paper",symbol:Vt,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 throug
`,"./../../saves/Day 08 Complete.txt":"eyJpZCI6ImFkdmVudC1pbmNyZW1lbnRhbC0yIiwiZGV2U3BlZWQiOjAsIm5hbWUiOiJEZWZhdWx0IFNhdmUiLCJ0YWJzIjpbIm1haW4iLCJjbG90aCJdLCJ0aW1lIjoxNjcwOTY2MDM5MjIwLCJhdXRvc2F2ZSI6dHJ1ZSwib2ZmbGluZVByb2QiOnRydWUsIm9mZmxpbmVUaW1lIjowLCJ0aW1lUGxheWVkIjoxNDQ4MS43NzkwMDAwMDAxMzMsImtlZXBHb2luZyI6ZmFsc2UsIm1vZElEIjoiYWR2ZW50LWluY3JlbWVudGFsIiwibW9kVmVyc2lvbiI6IjAuNSIsImxheWVycyI6eyJtYWluIjp7Im1pbmltaXplZCI6ZmFsc2UsImRheXMiOnsiMCI6eyJvcGVuZWQiOnRydWUsInJlY2VudGx5VXBkYXRlZCI6ZmFsc2V9LCIxIjp7Im9wZW5lZCI6dHJ1ZSwicmVjZW50bHlVcGRhdGVkIjpmYWxzZX0sIjIiOnsib3BlbmVkIjp0cnVlLCJyZWNlbnRseVVwZGF0ZWQiOmZhbHNlfSwiMyI6eyJvcGVuZWQiOnRydWUsInJlY2VudGx5VXBkYXRlZCI6ZmFsc2V9LCI0Ijp7Im9wZW5lZCI6dHJ1ZSwicmVjZW50bHlVcGRhdGVkIjpmYWxzZX0sIjUiOnsib3BlbmVkIjp0cnVlLCJyZWNlbnRseVVwZGF0ZWQiOmZhbHNlfSwiNiI6eyJvcGVuZWQiOnRydWUsInJ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CIsImJ1
${D}
${k}`)}}return b[O]}hl(n,O=>{O&&Object.keys(b).forEach(k=>delete b[k])});const h=Z(()=>hi.saves.reduce((O,k)=>(O[k]=J(k),O),{}));function W(O){let k;switch(Me.id===O?k=Ks(Me[Xi]):k=JSON.stringify(h.value[O]),Ii.exportEncoding){default:console.warn(`Unknown save encoding: ${Ii.exportEncoding}. Defaulting to lz`);case"lz":k=Sl.compressToUTF16(k);break;case"base64":k=btoa(unescape(encodeURIComponent(k)));break;case"plain":break}const D=document.createElement("textarea");D.value=k,document.body.appendChild(D),D.select(),D.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(D)}function j(O){Me.id===O&&il();const k={...h.value[O],id:On()};il(k),hi.saves.push(k.id)}function F(O){hi.saves=hi.saves.filter(k=>k!==O),localStorage.removeItem(O),b[O]=void 0}function X(O){h.value[Me.id].time=Me.time,il(),b[Me.id]=void 0,Pl(h.value[O]),b[O]=void 0}function M(O){if(d.value=O,_l(()=>{d.value=null}),O[0]!=="{")if(O[0]==="e")O=decodeURIComponent(escape(atob(O)));else if(O[0]==="\u1BE1")O=Sl.decompressFromUTF16(O);else{console.warn("Unable to determine preset encoding",O);return}const k=JSON.parse(O);k.id=On(),il(k),hi.saves.push(k.id),X(k.id)}function T(O,k){const D=h.value[O];D&&(D.name=k,Me.id===O?(Me.name=k,il()):(il(D),b[O]=void 0))}return(O,k)=>(g(),ke(Si,{modelValue:n.value,"onUpdate:modelValue":k[4]||(k[4]=D=>n.value=D),ref_key:"modal",ref:s},{header:Ge(()=>[xr]),body:Ge(({shown:D})=>[D?(g(),ke(m(Ut),{key:0,list:m(hi).saves,handle:".handle",itemKey:de=>de},{item:Ge(({element:de})=>[t(Xr,{save:m(h)[de],onOpen:_=>X(de),onExport:_=>W(de),onEditName:_=>T(de,_),onDuplicate:_=>j(de),onDelete:_=>F(de)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):te("",!0)]),footer:Ge(()=>[w("div",Gr,[t(Ot,{modelValue:r.value,"onUpdate:modelValue":k[0]||(k[0]=D=>r.value=D),title:"Import Save",placeholder:"Paste your save here!",class:wi({importingFailed:a.value})},null,8,["modelValue","class"]),w("div",Fr,[kr,w("div",zr,[w("button",{class:"button",onClick:k[1]||(k[1]=D=>X(m(on)().id))},"New Game"),Object.keys(m(c)).length>0?(g(),ke(bs,{key:0,options:m(c),modelValue:d.value,"onUpdate:modelValue":k[2]||(k[2]=D=>M(D)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):te("",!0)])]),w("div",Rr,[Sr,w("button",{class:"button modal-default-button",onClick:k[3]||(k[3]=D=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Nt=ui(Hr,[["__scopeId","data-v-3b9991aa"]]);const al=e=>(Ql("data-v-8495e562"),e=e(),Ul(),e),Lr=["src","alt"],Tr={key:1,class:"title"},Qr=al(()=>w("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Ur={class:"discord"},Er={class:"discord-links"},Ar={key:0},Dr=["href"],Br=al(()=>w("li",null,[w("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Pr=al(()=>w("li",null,[w("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),_r={href:"https://forums.moddingtree.com/",target:"_blank"},qr=al(()=>w("span",{class:"material-icons"},"forum",-1)),$r=al(()=>w("span",{class:"material-icons"},"info",-1)),Kr=al(()=>w("span",{class:"material-icons"},"library_books",-1)),ed=al(()=>w("span",{class:"material-icons"},"settings",-1)),id=al(()=>w("span",{class:"material-icons"},"library_books",-1)),ld=al(()=>w("span",{class:"material-icons"},"settings",-1)),nd=al(()=>w("span",{class:"material-icons"},"info",-1)),sd={href:"https://forums.moddingtree.com/",target:"_blank"},td=al(()=>w("span",{class:"material-icons"},"forum",-1)),ad={class:"discord"},od={class:"discord-links"},Id={key:0},md=["href"],rd=al(()=>w("li",null,[w("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),dd=al(()=>w("li",null,[w("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),ud=Qe({__name:"Nav",setup(e){const l=me(null),n=me(null),s=me(null),a=me(null),{useHeader:r,banner:d,title:u,discordName:c,discordLink:b,versionNumber:J}=Ii;function h(){window.open(b,"mywindow")}return(W,j)=>(g(),S(C,null,[m(r)?(g(),S("div",q
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 so();const{globalBus:e}=await Yn(()=>Promise.resolve().then(function(){return Ta}),void 0),{startGameLoop:l}=await Yn(()=>import("./gameLoop.e338d6a8.js"),["assets/gameLoop.e338d6a8.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=Ht(Bd);e.emit("setupVue",n),n.mount("#app"),_l(()=>{const s=Rs(),{updateServiceWorker:a}=_d({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(r){r&&setInterval(()=>r.update(),60*60*1e3)}})}),l()});export{i as D,Yn as _,Gi as a,Ii as b,nm as c,yi as g,rs as l,Me as p,hi as s};