/* empty css */import"./vue.92681fcb.js";import{ZasI,lasNe,uasNn,qason,Caso,b1asJe,aaasL,aEasb,a0asM,a1asm,aKasnt,Gasye,tasx,aCasdi,wasze,b2asxe,a8asr,OasF,aoasts,Iasbe,ayasCn,arasPt,aGaspn,AasSe,_asU,b6asq,b8asVn,bsasns,aqas$t,buastn,bbasSn,Tasis,a7asg,jasss,bvasii,Jasz,$asP,aHasot,aFasrt,alasyn,aLasyt,aNasMe,zaslt,Hasas,aJasfi,bnasls,brasos,beasrs}from"./@vue.4ce677c2.js";import{iasus}from"./is-plain-object.906d88e8.js";import{casmi}from"./nanoevents.1080beb7.js";import{Lasgt}from"./lz-string.731cedc5.js";import{Yascs}from"./vue-next-select.a2bfab1d.js";import{sasds,uaspi}from"./vue-toastification.6f567382.js";import{Dasfs}from"./vuedraggable.7949458c.js";import{pasms}from"./vue-textarea-autosize.35804eaf.js";import{vasps,nashs}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";constgs=function(){constt=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(constsofdocument.querySelectorAll('link[rel="modulepreload"]'))i(s);newMutationObserver(s=>{for(constlofs)if(l.type==="childList")for(constuofl.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});functionn(s){constl={};returns.integrity&&(l.integrity=s.integrity),s.referrerpolicy&&(l.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?l.credentials="include":s.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}functioni(s){if(s.ep)return;s.ep=!0;constl=n(s);fetch(s.href,l)}};gs();constvs="modulepreload",si={},ys="./",bn=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${ys}${i}`,iinsi)return;si[i]=!0;consts=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${l}`))return;constu=document.createElement("link");if(u.rel=s?"stylesheet":vs,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)returnnewPromise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(newError(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},bs="./projInfo-schema.json",_s="Advent Incremental",ws="An incremental game you play a day at a time, leading up to Christmas!",ks="advent-incremental",Ns="thepaperpilot and friends",Cs="",Ss="",Ms="0.3",Is="Initial Commit",As=!0,Ps=!1,$s=2,Es=!0,Ts=null,xs="",Bs=["main"],Fs=3600,Ds=0,Os=!0,Rs="base64";varK={$schema:bs,title:_s,description:ws,id:ks,author:Ns,discordName:Cs,discordLink:Ss,versionNumber:Ms,versionTitle:Is,allowGoBack:As,defaultShowSmall:Ps,defaultDecimalsShown:$s,useHeader:Es,banner:Ts,logo:xs,initialTabs:Bs,maxTickLength:Fs,offlineLimit:Ds,enablePausing:Os,exportEncoding:Rs};constDn=17,qs=9e15,Vs=Math.log10(9e15),Ls=1/9e15,Gs=308,Hs=-324,ai=5,Us=function(){conste=[];for(letn=Hs+1;n<=Gs;n++)e.push(Number("1e"+n));constt=323;returnfunction(n){returne[n+t]}}(),St=[2,Math.E,3,4,5,6,7,8,9,10],js=[[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
`))||""}function Fe(e){const t=Ne(e)?e:x(e);return t[an]=t,t[ln]=Ne(e)?e.value:e,t[kn]=Ta(),t[Bi]=!1,Ke.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
Createdat:
`+t[kn]):qt[Ke[Ke.length-1]].add(t),t}re.on("addLayer",(e,t)=>{const n=[],i=(s,l=[])=>{let u=!1;return Object.keys(s).forEach(c=>{const f=s[c];if(f&&typeof f=="object")if(an in f){if(u=!0,f[Bi]){console.warn("Deleted persistent ref present in returned object. Ignoring...",f,`
Createdat:
`+f[kn]);return}qt[e.id].delete(de in f?f[de]:f);const d=l.reduce((y,v)=>(v in y||(y[v]={}),y[v]),t),_=d[c];d[c]=f[an],ss(d)?_!=null?d[c]=_:d[c]=f[ln]:_!=null?d[c].value=_:d[c].value=f[ln]}else!(f instanceof a)&&!Ne(f)&&!n.includes(f)&&(typeof f.type=="symbol"&&n.push(f),i(f,[...l,c])&&(ii(f)&&!ii(s)?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.",de in s?s[de]:s,c):u=!0))}),u};i(e),qt[e.id].forEach(s=>{console.error(`Createdpersistentrefin${e.id}withoutregisteringittothelayer!Makesuretoincludeeverythingpersistentinthereturnedobject`,s,`
Tryingtopop${n.id}`;return Ke.pop(),$(n,"color"),$(n,"display"),$(n,"name"),Ce(n,"name",n.id),$(n,"minWidth"),Ce(n,"minWidth",600),$(n,"minimizable"),Ce(n,"minimizable",!0),n})}function Fi(e,t){if(console.info("Adding layer",e.id),Ee[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,Ee[e.id]);return}Ce(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),Ee[e.id]=e,re.emit("addLayer",e,t.layers[e.id])}function xa(e){return Ee[e]}function Di(e){console.info("Removing layer",e.id),re.emit("removeLayer",e),Ee[e.id]=void 0}function Ba(e){Di(e),Fi(e,A)}function Fa(e){const t=x(!1);return{openModal:()=>t.value=!0,modal:B(()=>r(Xe,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>r("h2",null,[o(e.name)]),body:o(e.display)}))}}re.on("update",function(t){Object.values(Ee).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(Ee).forEach(n=>{n==null||n.emit("update",t)}),Object.values(Ee).forEach(n=>{n==null||n.emit("postUpdate",t)})});var Da=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Hn,UnregisterNodeInjectionKey:Un,NodesInjectionKey:jn,BoundsInjectionKey:zn,layers:Ee,persistentRefs:qt,addingLayers:Ke,createLayer:Tt,addLayer:Fi,getLayer:xa,removeLayer:Di,reloadLayer:Ba,setupLayerModal:Fa},Symbol.toStringTag,{value:"Module"}));const Oa={},Ra={class:"notif"};function qa(e,t){return b(),M("div",Ra,"!")}var ui=ee(Oa,[["render",qa],["__scopeId","data-v-66323fd4"]]);const In=e=>(ot("data-v-949cc93c"),e=e(),rt(),e),Va={key:0,class:"day feature dontMerge opened"},La={class:"date"},Ga=g("Dec"),Ha=In(()=>m("br",null,null,-1)),Ua={class:"date"},ja=g("Dec"),za=In(()=>m("br",null,null,-1)),Wa=In(()=>m("div",{class:"doors"},null,-1)),Qa={class:"date"},Ka=g("Dec"),Ja=In(()=>m("br",null,null,-1)),Xa={key:0,class:"material-icons lock"},Za=L({__name:"Day",props:{day:null,symbol:null,opened:null,shouldNotify:null},emits:["openLore","openLayer","unlockLayer"],setup(e,{emit:t}){const n=e,i=I(()=>a.gte(G.day.value,n.day)&&new Date().getMonth()===11&&new Date().getDate()>=n.day);function s(){i.value&&t("unlockLayer")}return(l,u)=>e.opened.value?(b(),M("div",Va,[r(Sn,{appear:"",name:"door"},{default:q(()=>[m("div",{class:"doors",onClick:u[0]||(u[0]=c=>t("openLayer"))},[m("div",La,[Ga,Ha,g(z(e.day),1)]),m("div",Ua,[ja,za,g(z(e.day),1)])])]),_:1}),m("div",{class:"icon",style:be({backgroundImage:`url(${e.symbol})`})},null,4),m("div",{class:"lore",onClick:u[1]||(u[1]=c=>t("openLore"))},"?"),o(e.shouldNotify)?(b(),U(ui,{key:0})):P("",!0)])):(b(),M("div",{key:1,class:ye(["day feature dontMerge",{can:o(i),locked:!o(i),canOpen:o(i)}]),onClick:s},[Wa,m("div",Qa,[Ka,Ja,g(z(e.day),1)]),o(i)?P("",!0):(b(),M("div",Xa,"lock")),o(i)?(b(),U(ui,{key:1})):P("",!0)],2))}});var Ya=ee(Za,[["__scopeId","data-v-949cc93c"]]);const el={key:0},tl={key:0,class:"mark star"},nl=["src"],il=L({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(b(),M("div",el,[e.mark===!0?(b(),M("div",tl)):(b(),M("img",{key:1,class:"mark",src:e.mark},null,8,nl))])):P("",!0)}});var An=ee(il,[["__scopeId","data-v-2207999f"]]);const sl=L({__name:"Node",props:{id:null},setup(e){const n=Se(e),i=yn(Hn,()=>{}),s=yn(Un,()=>{}),l=ze(null),u=I(()=>l.value&&l.value.parentElement);return Je([u,n.id],([c,f],[d,_])=>{d&&s(o(_)),c&&i(f,c)}),di(()=>s(o(n.id))),(c,f)=>(b(),M("div",{class:"node",ref_key:"node",ref:l},null,512))}});var un=ee(sl,[["__scopeId","data-v-a48cb382"]]),al=L({props:{display:{type:E(Object,String,Function),required:!0},visibility:{type:E(Number),required:!0},style:E(Object,String,Array),classes:E(Object),onClick:Function,onHold:Function,canClick:{type:E(Boolean),required:!0},small:Boolean,mark:E(Boolean,String),id:{type:String,required:!0},isHolding:Object},components:{Node:un,MarkNode:An},setup(e){const{display:t,onClick:n,onHold:i}=Se(e),s=ze("");xe(()=>{const c=_e(t);if(c==null){s.value="";return}if(wt(c)){s.value=X(c);return}const f=X(c.title||"","h3"),d=X(c.description,"div");s.value=X(B(()=>r("span",null,[c.title?r("div",null,[r(f,null,null)]):null,r(d,null,nul
margin:10px0;"/>${C}`:ae,t.value=!0},onOpenLayer(){if(window.matchMedia("(min-width:1468px)").matches)if(A.tabs.includes(p!=null?p:"trees")){const N=A.tabs.lastIndexOf(p!=null?p:"trees");A.tabs.splice(N,1)}else A.tabs.push(p!=null?p:"trees"),G.minimized.value=!0;else A.tabs.splice(1,1/0,p!=null?p:"trees")},onUnlockLayer(){S.value=!0,setTimeout(()=>{var N,O;n.value=-1,i.value=o((O=(N=Ee[p!=null?p:"trees"])==null?void 0:N.name)!=null?O:""),s.value=ae,A.devSpeed=null,t.value=!0},1e3)}}}}})}const u=[l(()=>({day:1,shouldNotify:!1,layer:"trees",symbol:Li,story:"Ohno!SantaforgotaboutChristmasandit's only 25 days away! He'saskedforyourhelpduetoyourhistorygettinglargequantitiesofthingsinshortamountsoftime.Unfortunatelyyou're really starting from scratch here - let'sstartwithgettingwood,whichyou'll need for everything from building workshops to wrapping paper to many of the toys themselves!",completedStory:"Santa looks at all the wood you'vegatheredandtellsyouyou've done well! He says you should take the rest of the day off so you'rerefreshedfortomorrow's work. Good Job!"})),l(()=>({day:2,shouldNotify:!1,layer:"workshop",symbol:Gi,story:"Santa looked over your tree farm and was impressed with how much you could accomplish in just one day. Today'sgoalistogetaworkshopbuiltupfortheelvestoworkin-andapparently,theyneedquitealotofspacetowork!",completedStory:"Theworkshopcomplete,Santaonceagaindismissesyoufortheday.Withastrongfoundation,thisworkshopshouldsufficeforsupportingfutureworktowardthisimpossiblemission.GoodJob!"})),l(()=>({day:3,shouldNotify:!1,layer:"coal",symbol:Hi,story:"Santatellsyouthatunfortunatelytherearequiteafewnaughtychildrenouttherethisyear,andhe'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'vegatheredandtellsyouyou've done well! He says you should take the rest of the day off so you'rerefreshedfortomorrow's work. Good Job!"})),l(()=>({day:4,shouldNotify:!1,layer:"elves",symbol:Ui,story:"Alright, it seems you finally have enough things setup to start bringing in the elves! Unfortunately, it seems they'llneedtoberetrainedonhowtohelp,sincethey're out of practice by 11 months!",completedStory:"The workshop now hums with the bustling elves working everything. They can take it from here - you deserve a break after such a long day! Good Job!"})),l(()=>({day:5,shouldNotify:!1,layer:"paper",symbol:ji,story:"With the elves trained, we'realmostreadytostartworkingonthesepresents!Justacouplemorepre-reqsfirst,startingwithturningallthiswoodintowoodpulpandfinallyintopaper,whichwillberequiredforwrappingpaperlateronbutinthemeantimecanbeusedtohelpwriteguidestohelptheseelvescontinuetheireducation!",completedStory:"Youlookuponyourriversofbookpulpasyouhandoutstacksofpaperstoelvestoreadthrough.You'vecontinuedgettingcloserandclosertopreparingforChristmas,andcangotobedsatisfiedwithyourprogress.GoodJob!"})),l(()=>({day:6,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:7,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:8,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:9,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:10,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:11,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:12,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:13,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:14,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:15,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:16,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:17,shouldNotify