16 lines
108 KiB
JavaScript
16 lines
108 KiB
JavaScript
|
/* empty css */import"./vue.92681fcb.js";import{Z as P,u as Gt,q as ft,C as a,b1 as _e,aa as q,aE as v,a0 as k,a1 as d,aK as ke,G as X,t as E,aC as bn,w as Le,b2 as nt,a8 as m,O as Y,ao as Zn,I as Q,ay as Wt,ar as xe,aG as vt,A as ae,_ as A,b6 as O,b8 as Ht,bs as Jn,aq as lt,bu as ut,bb as $t,T as Xn,a7 as C,j as Qn,l as J,bv as on,z as Se,J as L,aN as te,$ as T,aH as Me,aF as $e,al as ln,aL as He,bn as es,br as ts,aJ as ns,be as ss}from"./@vue.4ce677c2.js";import{i as is}from"./is-plain-object.906d88e8.js";import{c as _n}from"./nanoevents.1080beb7.js";import{L as Ve}from"./lz-string.731cedc5.js";import{Y as rs}from"./vue-next-select.a2bfab1d.js";import{D as as}from"./vuedraggable.7949458c.js";import{p as os}from"./vue-textarea-autosize.35804eaf.js";import{s as ls,u as us}from"./vue-toastification.6f567382.js";import{v as cs,n as ds}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const fs=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&s(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerpolicy&&(r.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?r.credentials="include":i.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}};fs();const ms="modulepreload",un={},hs="./",Nt=function(t,n){return!n||n.length===0?t():Promise.all(n.map(s=>{if(s=`${hs}${s}`,s in un)return;un[s]=!0;const i=s.endsWith(".css"),r=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${r}`))return;const l=document.createElement("link");if(l.rel=i?"stylesheet":ms,i||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),i)return new Promise((o,u)=>{l.addEventListener("load",o),l.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())},ps="./projInfo-schema.json",gs="Advent Incremental",ys="An incremental game you play a day at a time, leading up to Christmas!",vs="advent-incremental",bs="thepaperpilot",_s="",Ns="",ws="0.0",ks="Initial Commit",Ss=!0,Ms=!1,$s=2,Cs=!0,Ps=null,Is="",Ts=["main"],Fs=3600,Os=1,Ds=!0,Es="base64";var R={$schema:ps,title:gs,description:ys,id:vs,author:bs,discordName:_s,discordLink:Ns,versionNumber:ws,versionTitle:ks,allowGoBack:Ss,defaultShowSmall:Ms,defaultDecimalsShown:$s,useHeader:Cs,banner:Ps,logo:Is,initialTabs:Ts,maxTickLength:Fs,offlineLimit:Os,enablePausing:Ds,exportEncoding:Es};const xt=17,Vs=9e15,xs=Math.log10(9e15),Ls=1/9e15,qs=308,As=-324,cn=5,Bs=function(){const e=[];for(let n=As+1;n<=qs;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Ae=[2,Math.E,3,4,5,6,7,8,9,10],Rs=[[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
|
||
|
`,e),await je(Xe())}}function Xe(){const e=_t(),t=Tn({id:e});return fe(t),Z.saves.push(e),t}function _t(){let e,t=0;do e=`${R.id}-${t++}`;while(localStorage.getItem(e));return e}async function je(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:s}=await Nt(()=>Promise.resolve().then(function(){return Vi}),void 0),{fixOldSave:i,getInitialLayers:r}=await Nt(()=>Promise.resolve().then(function(){return Rn}),void 0);for(const l in t){const o=t[l];o&&n(o)}r(e).forEach(l=>s(l,e)),e=Tn(e),e.offlineProd&&e.time&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=(Date.now()-e.time)/1e3),e.time=Date.now(),e.modVersion!==R.versionNumber&&i(e.modVersion,e),Object.assign(M,e),Z.active=M.id,se.emit("onLoad")}setInterval(()=>{M.autosave&&fe()},1e3);window.onbeforeunload=()=>{M.autosave&&fe()};window.save=fe;const di=window.hardReset=async()=>{await je(Xe())},dt=ft({active:"",saves:[],showTPS:!0,theme:zt.Nordic,unthrottled:!1});_e(dt,e=>{const t=Ve.compressToUTF16(JSON.stringify(e));localStorage.setItem(R.id,t)},{deep:!0});var Z=window.settings=dt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:zt.Nordic};se.emit("loadSettings",e),Object.assign(dt,e),di()};function fi(){try{let e=localStorage.getItem(R.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ve.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(dt,t)}se.emit("loadSettings",dt)}catch{}}const mi=ft([]),hi=ft([]),pi=ft([]),gi={class:"table"},yi=q({__name:"Row",setup(e){const t=P(()=>It[Z.theme].mergeAdjacent);return(n,s)=>(v(),k("div",gi,[d("div",{class:X(["row",{mergeAdjacent:a(t)}])},[ke(n.$slots,"default")],2)]))}});function vi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Zn(e)}function z(e,t="span"){return typeof e=="function"?q({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),q({template:e})):q({render:()=>({})}):e}function et(e){if(mt(e))return typeof e=="function"?e():z(e);const t=e[ve];return m(t,e[be](),null)}function at(...e){let t;return m(yi,null,vi(t=e.map(et))?t:{default:()=>[t]})}function tt(e){if(mt(e))return typeof e=="function"?e():typeof e=="string"?m(Y,null,[e]):m(e,null,null);const t=e[ve];return m(t,e[be](),null)}function hn(e,t){return e.reduce((n,s)=>m(Y,null,[n,t,s]))}function mt(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[ct]===!0}function bi(e,t,n){const s=E(null),i=E(void 0);function r(u){s.value||(s.value=setInterval(o,250)),i.value=u,n&&(n.value=!0)}function l(){s.value&&(clearInterval(s.value),s.value=null),console.log(n),n&&(n.value=!1)}function o(){t&&t.value?t.value():e&&e.value&&e.value(i.value)}return bn(l),{start:r,stop:l,handleHolding:o}}function Fn(e,t="div"){const n=Le();return nt(()=>{n.value=z(ne(e),t)}),n}function ht(e,t="div"){const n=Le(null);return nt(()=>{const s=ne(e);n.value=s==null?null:z(s,t)}),n}function _i(e){return P(()=>ne(e))}function ne(e){return a(a(e))}function V(...e){return e.includes(Object)||e.push(Object),e}const Ut=q({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(v(),k("div",{style:Q({width:e.width,height:e.height})},null,4))}});var j=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n};const Ni=q({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var g;const n=E({}),s=new ResizeObserver(o),i=E(null);Wt(()=>{const b=i.value;b!=null&&s.observe(b)});let r=!0,l=E((g=i.value)==null?void 0:g.getBoundingClientRect());function o(){r&&(r=!1,xe(()=>{var b;l.value=(b=i.value)==null?void 0:b.getBoundingClientRect(),Object.values(n.value).filter(p=>p).forEach(p=>p.rect=p.element.getBoundingClientRect()),t("updateNodes",n.value),r=!0}))}se.on("fontsLoaded",o);const u={attributes:!1,childList:!0,subtree:!1};vt(Kt,(b,p)=>{const _=new MutationObserver(()=>c(b));_.observe(p,u),n.value[b]={ele
|
||
|
`).slice(3,5).map(t=>t.trim()).join(`
|
||
|
`))||""}function we(e){const t=J(e)?e:E(e);return t[jt]=t,t[St]=J(e)?e.value:e,t[Mt]=Fi(),t[Dn]=!1,me.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
|
||
|
Created at:
|
||
|
`+t[Mt]):Qe[me[me.length-1]].add(t),t}se.on("addLayer",(e,t)=>{const n=[],s=(i,r=[])=>{let l=!1;return Object.keys(i).forEach(o=>{const u=i[o];if(u&&typeof u=="object")if(jt in u){if(l=!0,u[Dn]){console.warn("Deleted persistent ref present in returned object. Ignoring...",u,`
|
||
|
Created at:
|
||
|
`+u[Mt]);return}Qe[e.id].delete(K in u?u[K]:u);const c=r.reduce((b,p)=>(p in b||(b[p]={}),b[p]),t),g=c[o];c[o]=u[jt],Qn(c)?g!=null?c[o]=g:c[o]=u[St]:g!=null?c[o].value=g:c[o].value=u[St]}else!(u instanceof h)&&!J(u)&&!n.includes(u)&&(typeof u.type=="symbol"&&n.push(u),s(u,[...r,o])&&(on(u)&&!on(i)?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.",K in i?i[K]:i,o):l=!0))}),l};s(e),Qe[e.id].forEach(i=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,i,`
|
||
|
Created at:
|
||
|
`+i[Mt])}),Qe[e.id].clear()});const Kt=Symbol("RegisterNode"),Yt=Symbol("UnregisterNode"),En=Symbol("Nodes"),Vn=Symbol("Bounds"),ee=Gt({});window.layers=ee;const Qe={},me=[];function Zt(e,t){return Ce(()=>{const n={},s=n.emitter=_n();if(n.on=s.on.bind(s),n.emit=s.emit.bind(s),n.nodes=E({}),n.id=e,me.push(e),Qe[e]=new Set,n.minimized=we(!1),Object.assign(n,t.call(n)),me[me.length-1]==null||me[me.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
|
||
|
Stack: ${me}
|
||
|
Trying to pop ${n.id}`;return me.pop(),I(n,"color"),I(n,"display"),I(n,"name"),he(n,"name",n.id),I(n,"minWidth"),he(n,"minWidth",600),I(n,"minimizable"),he(n,"minimizable",!0),n})}function xn(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}he(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),ee[e.id]=e,se.emit("addLayer",e,t.layers[e.id])}function Oi(e){return ee[e]}function Ln(e){console.info("Removing layer",e.id),se.emit("removeLayer",e),ee[e.id]=void 0}function Di(e){Ln(e),xn(e,M)}function Ei(e){const t=E(!1);return{openModal:()=>t.value=!0,modal:H(()=>m(qe,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>m("h2",null,[a(e.name)]),body:a(e.display)}))}}se.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 Vi=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Kt,UnregisterNodeInjectionKey:Yt,NodesInjectionKey:En,BoundsInjectionKey:Vn,layers:ee,persistentRefs:Qe,addingLayers:me,createLayer:Zt,addLayer:xn,getLayer:Oi,removeLayer:Ln,reloadLayer:Di,setupLayerModal:Ei},Symbol.toStringTag,{value:"Module"}));const xi={},Li={class:"notif"};function qi(e,t){return v(),k("div",Li,"!")}var pn=j(xi,[["render",qi],["__scopeId","data-v-66323fd4"]]);const Tt=e=>(Me("data-v-4b5f1e6c"),e=e(),$e(),e),Ai={key:0,class:"day feature dontMerge opened"},Bi={class:"date"},Ri=C("Dec"),Ui=Tt(()=>d("br",null,null,-1)),ji={class:"date"},Gi=C("Dec"),Wi=Tt(()=>d("br",null,null,-1)),Hi={key:0,class:"icon"},zi=Tt(()=>d("div",{class:"doors"},null,-1)),Ki={class:"date"},Yi=C("Dec"),Zi=Tt(()=>d("br",null,null,-1)),Ji={key:0,class:"material-icons lock"},Xi=q({__name:"Day",props:{day:null,symbol:null,opened:null,shouldNotify:null},emits:["openLore","openLayer","unlockLayer"],setup(e,{emit:t}){const n=e,s=Fn(Se(n,"symbol")),i=P(()=>h.gte(ie.day.value,n.day)&&new Date().getMonth()===12&&new Date().getDate()>=n.day);function r(){i.value&&t("unlockLayer")}return(l,o)=>e.opened.value?(v(),k("div",Ai,[m($t,{appear:"",name:"door"},{default:O(()=>[d("div",{class:"doors",onClick:o[0]||(o[0]=u=>t("openLayer"))},[d("div",Bi,[Ri,Ui,C(L(e.day),1)]),d("div",ji,[Gi,Wi,C(L(e.day),1)])])]),_:1}),a(s)?(v(),k("div",Hi,[(v(),A(te(a(s))))])):T("",!0),d("div",{class:"lore",onClick:o[1]||(o[1]=u=>t("openLore"))},"?"),a(e.shouldNotify)?(v(),A(pn,{key:1})):T("",!0)])):(v(),k("div",{key:1,class:X(["day feature dontMerge",{can:a(i),locked:!a(i),canOpen:a(i)}]),onClick:r},[zi,d("div",Ki,[Yi,Zi,C(L(e.day),1)]),a(i)?T("",!0):(v(),k("div",Ji,"lock")),a(i)?(v(),A(pn,{key:1})):T("",!0)],2))}});var Qi=j(Xi,[["__scopeId","data-v-4b5f1e6c"]]);const er={key:0},tr={key:0,class:"mark star"},nr=["src"],sr=q({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(v(),k("div",er,[e.mark===!0?(v(),k("div",tr)):(v(),k("img",{key:1,class:"mark",src:e.mark},null,8,nr))])):T("",!0)}});var Jt=j(sr,[["__scopeId","data-v-2207999f"]]);const ir=q({__name:"Node",props:{id:null},setup(e){const n=ae(e),s=ln(Kt,()=>{}),i=ln(Yt,()=>{}),r=Le(null),l=P(()=>r.value&&r.value.parentElement);return _e([l,n.id],([o,u],[c,g])=>{c&&i(a(g)),o&&s(u,o)}),bn(()=>i(a(n.id))),(o,u)=>(v(),k("div",{class:"node",ref_key:"node",ref:r},null,512))}});var Xt=j(ir,[["__scopeId","data-v-a48cb382"]]);const rr=q({props:{progress:{type:V(String,Object,Number),required:!0},width:{type:V(Number),required:!0},height:{type:V(Number),required:!0},direction:{type:V(String),required:!0},display:V(Object,String,Function),visibility:{type:V(Number),required:!0},style:V(Object,String,Array),classes:V(Object),borderStyle:V(Object,String,Array),textStyle:V(Object,String,Array),baseStyle:V(Object,String,Array),fillStyle:V(Object,String,Array),mark:V(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Jt,Node:Xt},setup(e){const{progress:t,width:n,height:s,direction:i,display:r}=ae(e),l=P(()=>{let c=
|
||
|
${U}
|
||
|
${$}`)}}return c[S]}_e(n,S=>{S&&Object.keys(c).forEach($=>delete c[$])});const b=P(()=>Z.saves.reduce((S,$)=>(S[$]=g($),S),{}));function p(S){let $;switch(M.id===S?$=Pn(M[K]):$=JSON.stringify(b.value[S]),R.exportEncoding){default:console.warn(`Unknown save encoding: ${R.exportEncoding}. Defaulting to lz`);case"lz":$=Ve.compressToUTF16($);break;case"base64":$=btoa(unescape(encodeURIComponent($)));break;case"plain":break}const U=document.createElement("textarea");U.value=$,document.body.appendChild(U),U.select(),U.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(U)}function _(S){M.id===S&&fe();const $={...b.value[S],id:_t()};fe($),Z.saves.push($.id)}function w(S){Z.saves=Z.saves.filter($=>$!==S),localStorage.removeItem(S),c[S]=void 0}function N(S){b.value[M.id].time=M.time,fe(),c[M.id]=void 0,je(b.value[S]),c[S]=void 0}function F(S){if(l.value=S,xe(()=>{l.value=null}),S[0]!=="{")if(S[0]==="e")S=decodeURIComponent(escape(atob(S)));else if(S[0]==="\u1BE1")S=Ve.decompressFromUTF16(S);else{console.warn("Unable to determine preset encoding",S);return}const $=JSON.parse(S);$.id=_t(),fe($),Z.saves.push($.id),N($.id)}function Ie(S,$){const U=b.value[S];U&&(U.name=$,M.id===S?(M.name=$,fe()):(fe(U),c[S]=void 0))}return(S,$)=>(v(),A(qe,{modelValue:n.value,"onUpdate:modelValue":$[4]||($[4]=U=>n.value=U),ref_key:"modal",ref:s},{header:O(()=>[Ua]),body:O(({shown:U})=>[U?(v(),A(a(as),{key:0,list:a(Z).saves,handle:".handle",itemKey:ce=>ce},{item:O(({element:ce})=>[m(Ra,{save:a(b)[ce],onOpen:Te=>N(ce),onExport:Te=>p(ce),onEditName:Te=>Ie(ce,Te),onDuplicate:Te=>_(ce),onDelete:Te=>w(ce)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):T("",!0)]),footer:O(()=>[d("div",ja,[m(Wn,{modelValue:r.value,"onUpdate:modelValue":$[0]||($[0]=U=>r.value=U),title:"Import Save",placeholder:"Paste your save here!",class:X({importingFailed:i.value})},null,8,["modelValue","class"]),d("div",Ga,[Wa,d("div",Ha,[d("button",{class:"button",onClick:$[1]||($[1]=U=>N(a(Xe)().id))},"New Game"),Object.keys(a(u)).length>0?(v(),A(jn,{key:0,options:a(u),modelValue:l.value,"onUpdate:modelValue":$[2]||($[2]=U=>F(U)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):T("",!0)])]),d("div",za,[Ka,d("button",{class:"button modal-default-button",onClick:$[3]||($[3]=U=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Hn=j(Ya,[["__scopeId","data-v-3b9991aa"]]);const oe=e=>(Me("data-v-4a3f8425"),e=e(),$e(),e),Za=["src","alt"],Ja={key:1,class:"title"},Xa=oe(()=>d("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Qa={class:"discord"},eo={class:"discord-links"},to={key:0},no=["href"],so=oe(()=>d("li",null,[d("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),io=oe(()=>d("li",null,[d("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),ro={href:"https://forums.moddingtree.com/",target:"_blank"},ao=oe(()=>d("span",{class:"material-icons"},"forum",-1)),oo=oe(()=>d("span",{class:"material-icons"},"info",-1)),lo=oe(()=>d("span",{class:"material-icons"},"library_books",-1)),uo=oe(()=>d("span",{class:"material-icons"},"settings",-1)),co=oe(()=>d("span",{class:"material-icons"},"library_books",-1)),fo=oe(()=>d("span",{class:"material-icons"},"settings",-1)),mo=oe(()=>d("span",{class:"material-icons"},"info",-1)),ho={href:"https://forums.moddingtree.com/",target:"_blank"},po=oe(()=>d("span",{class:"material-icons"},"forum",-1)),go={class:"discord"},yo={class:"discord-links"},vo={key:0},bo=["href"],_o=oe(()=>d("li",null,[d("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),No=oe(()=>d("li",null,[d("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),wo=q({__name:"Nav",setup(e){const t=E(null),n=E(null),s=E(null),i=E(null),{useHeader:r,banner:l,title:o,discordName:u,discordLink:c,versionNumber:g}=R;function b(){window.open(c,"mywindow")}return(p,_)=>(v(),k(Y,null,[a(r)?(v(),k("div",lt({key:0,class:"nav"},p.$a
|
||
|
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 ci();const{globalBus:e,startGameLoop:t}=await Nt(()=>Promise.resolve().then(function(){return ui}),void 0),n=window.vue=ss(Xo);e.emit("setupVue",n),n.mount("#app"),xe(()=>{const s=us(),{updateServiceWorker:i}=el({onNeedRefresh(){s.info("New content available, click or reload to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){i()}})},onOfflineReady(){s.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(r){r&&setInterval(r.update,60*60*1e3)}})}),t()});
|