pages/ludwig/assets/index.67aa62bf.js

16 lines
134 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.f6263579.js";import{Z as x,q as st,C as u,t as w,b1 as fe,aa as U,aE as h,a0 as B,a1 as c,aK as _e,G as ae,w as ye,b2 as St,a8 as o,O as Y,ay as Mt,ar as qe,aG as ot,A as be,_ as O,b6 as R,b8 as kt,bs as _a,aq as tt,bu as at,bb as ta,T as Qa,a7 as v,u as Tt,j as Sa,l as Ce,bv as Bt,aL as Ma,$ as M,aN as ce,J as F,I as Xe,aH as Qe,aF as Se,z as ze,br as ka,aJ as Ta,al as Ut,aC as Da,au as Ra,bc as lt,ao as Va,bn as Pa,be as xa}from"./@vue.4ce677c2.js";import{c as aa}from"./nanoevents.1080beb7.js";import{L as Ie}from"./lz-string.f2f3b7cf.js";import{D as qa}from"./vuedraggable.c3acdf62.js";import{Y as za}from"./vue-next-select.0dc4e443.js";import{p as Fa}from"./vue-textarea-autosize.35804eaf.js";import{s as Ga}from"./semver.83ff78cf.js";import{l as Oa}from"./socket.io-client.79ce0df5.js";import{u as na,s as Ua}from"./vue-toastification.b7cd620e.js";import{A as ia,T as La,R as Ja,B as Ya,u as Wa,E as Lt}from"./@pixi.1eac1889.js";import{v as Xa,n as Ka}from"./workbox-window.8d14e8b7.js";import"./earcut.b6f90e68.js";import"./sortablejs.cbae5b2d.js";import"./lru-cache.9a21e90b.js";import"./yallist.fd762fe7.js";import"./engine.io-client.58517560.js";import"./engine.io-parser.3f360695.js";import"./@socket.io.aec831e2.js";import"./socket.io-parser.544e37d1.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.e51cb87b.js";import"./querystring.23ae9a54.js";const ja=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function a(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=a(i);fetch(i.href,s)}};ja();const Ha="modulepreload",Jt={},Za="./",gt=function(t,a){return!a||a.length===0?t():Promise.all(a.map(n=>{if(n=`${Za}${n}`,n in Jt)return;Jt[n]=!0;const i=n.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${s}`))return;const r=document.createElement("link");if(r.rel=i?"stylesheet":Ha,i||(r.as="script",r.crossOrigin=""),r.href=n,document.head.appendChild(r),i)return new Promise((l,g)=>{r.addEventListener("load",l),r.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},$a="./projInfo-schema.json",en="Super Auto Coots",tn="A project made in Profectus",an="superautocoots",nn="thepaperpilot and crea",sn="",rn="",on="0.0.0",ln="Initial Commit",An=!1,un=!1,cn=2,dn=!0,gn=null,mn="",fn=["main"],hn=3600,vn=1,pn=!0,yn="base64";var G={$schema:$a,title:en,description:tn,id:an,author:nn,discordName:sn,discordLink:rn,versionNumber:on,versionTitle:ln,allowGoBack:An,defaultShowSmall:un,defaultDecimalsShown:cn,useHeader:dn,banner:gn,logo:mn,initialTabs:fn,maxTickLength:hn,offlineLimit:vn,enablePausing:pn,exportEncoding:yn};class bn{constructor(t){this.map=new Map,this.first=void 0,this.last=void 0,this.maxSize=t}get size(){return this.map.size}get(t){const a=this.map.get(t);if(a!==void 0)return a!==this.first&&(a===this.last?(this.last=a.prev,this.last.next=void 0):(a.prev.next=a.next,a.next.prev=a.prev),a.next=this.first,this.first.prev=a,this.first=a),a.value}set(t,a){if(this.maxSize<1)return;if(this.map.has(t))throw new Error("Cannot update existing keys in the cache");const n=new Cn(t,a);for(this.first===void 0?(this.first=n,this.last=n):(n.next=this.first,this.first.prev=n,this.first=n),this.map.set(t,n);this.map.size>this.maxSize;){const i=this.last;this.map.delete(i.key),this.last=i.prev,this.last.next=void 0}}}class Cn{constructor(t,a){this.next=void 0,this.prev=void 0,this.key=t,this.value=a}}const Ct=17,Nn=9e15,Bn=Math.l
`,e),await Ve(Le())}}function Le(){const e=ct(),t=ma({id:e});return re(t),z.saves.push(e),t}function ct(){let e,t=0;do e=`${G.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const $n=w(!1);async function Ve(e){console.info("Loading save",e),$n.value=!0;const{layers:t,removeLayer:a,addLayer:n}=await gt(()=>Promise.resolve().then(function(){return Ei}),void 0),{fixOldSave:i,getInitialLayers:s}=await gt(()=>Promise.resolve().then(function(){return Ro}),void 0);for(const r in t){const l=t[r];l&&a(l)}s(e).forEach(r=>n(r,e)),e=ma(e),e.offlineProd&&e.time!=null&&e.time&&e.devSpeed!==0&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=Math.min(e.offlineTime+(Date.now()-e.time)/1e3,G.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==G.versionNumber&&(i(e.modVersion,e),e.modVersion=G.versionNumber),Object.assign(V,e),z.active=V.id,$.emit("onLoad")}setInterval(()=>{V.autosave&&re()},1e3);window.onbeforeunload=()=>{V.autosave&&re()};window.save=re;const ei=window.hardReset=async()=>{await Ve(Le())};window.deleteLowerSaves=()=>{const e=Object.values(z.saves).indexOf(V.id)+1;Object.values(z.saves).slice(e).forEach(t=>localStorage.removeItem(t)),z.saves=z.saves.slice(0,e)};const nt=st({active:"",saves:[],showTPS:!0,theme:Pt.Nordic,unthrottled:!1,alignUnits:!1,autoplay:!1,fast:!1});fe(nt,e=>{const t=Ie.compressToUTF16(JSON.stringify(e));localStorage.setItem(G.id,t)},{deep:!0});var z=window.settings=nt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Pt.Nordic,alignUnits:!1,autoplay:!1,fast:!1};$.emit("loadSettings",e),Object.assign(nt,e),ei()};function ti(){try{let e=localStorage.getItem(G.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ie.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(nt,t)}$.emit("loadSettings",nt)}catch{}}const fa=st([]);function ai(e){fa.push(e)}const ni=st([]),ii=st([]),si={class:"table"},he=U({__name:"Row",setup(e){const t=x(()=>vt[z.theme].mergeAdjacent);return(a,n)=>(h(),B("div",si,[c("div",{class:ae(["row",{mergeAdjacent:u(t)}])},[_e(a.$slots,"default")],2)]))}});function Ne(e,t="span"){return typeof e=="function"?U({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),U({template:e})):U({render:()=>({})}):e}function Je(e){if(ha(e))return typeof e=="function"?e():Ne(e);const t=e[Rt];return o(t,e[Vt](),null)}function ri(e){if(ha(e))return typeof e=="function"?e():typeof e=="string"?o(Y,null,[e]):o(e,null,null);const t=e[Rt];return o(t,e[Vt](),null)}function ha(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[ft]===!0}function oi(e,t="div"){const a=ye();return St(()=>{a.value=Ne(xe(e),t)}),a}function pt(e,t="div"){const a=ye(null);return St(()=>{const n=xe(e);a.value=n==""||n==null?null:Ne(n,t)}),a}function xe(e){return u(u(e))}function ne(...e){return e.includes(Object)||e.push(Object),e}var K=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a};const li=U({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var y;const a=w({}),n=new ResizeObserver(l),i=w(null);Mt(()=>{const p=i.value;p!=null&&n.observe(p)});let s=!0,r=w((y=i.value)==null?void 0:y.getBoundingClientRect());function l(){s&&(s=!1,qe(()=>{var p;r.value=(p=i.value)==null?void 0:p.getBoundingClientRect(),Object.values(a.value).filter(C=>C).forEach(C=>C.rect=C.element.getBoundingClientRect()),t("updateNodes",a.value),s=!0}))}$.on("fontsLoaded",l);const g={attributes:!1,childList:!0,subtree:!1};ot(qt,(p,C)=>{const N=new MutationObserver(()=>f(p));N.observe(C,g),a.value[p]={element:C,observer:N,rect:C.getBoundingClientRect()},l()}),ot(zt,p=>{var C;(C=a.value[p])==null||C.observer.disconnect(),a.value[p]=void 0,l()}),ot(pa,a),ot(ya,r);function f(p){const C=a.value[p];C!=null&&(C.rect=C.element.getBoundingClientRect(),t("updateNodes",a.value))}return(p,C)=>(h(),B(Y,null,[_e(p.$slots,"default",{},void 0,!0),c("div",{ref_
`).slice(3,5).map(a=>a.trim()).join(`
`))!=null?t:""}function Ht(e,t){var a;if(E.isNaN(t))throw Z.hasNaN||(V.autosave=!1,Z.hasNaN=!0,Z.NaNPath=e[Pe],Z.NaNPersistent=e),console.error("Attempted to save NaN value to",(a=e[Pe])==null?void 0:a.join("."),e),"Attempted to set NaN value. See above for details";e[yt].value=t}function yi(e){const t=Ce(e)?e:w(e);Ce(e)&&(e=e.value);const a=x({get(){return t.value},set(i){Ht(n,i)}});a[Ke]=e;const n={get value(){return t.value},set value(i){Ht(n,i)},__v_isRef:!0,[yt]:t,[Ke]:e,[ht]:pi(),[wt]:!1,[It]:a,[Pe]:void 0};return ue.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",n,`
Created at:
`+n[ht]):Ye[ue[ue.length-1]].add(n),n}function bi(e){return e!=null&&typeof e=="object"&&yt in e}$.on("addLayer",(e,t)=>{const a=[],n=(i,s=[])=>{let r=!1;return Object.keys(i).forEach(l=>{let g=i[l];if(g!=null&&typeof g=="object")if(Re in g&&(g=g[Re]),bi(g)){if(r=!0,g[wt]){console.warn("Deleted persistent ref present in returned object. Ignoring...",g,`
Created at:
`+g[ht]);return}Ye[e.id].delete(g);const f=[e.id,...s,l];g[Pe]!=null&&JSON.stringify(f)!==JSON.stringify(g[Pe])&&console.error(`Persistent ref is being saved to \`${f.join(".")}\` when it's already present at \`${g[Pe].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,g),g[Pe]=f;const y=s.reduce((C,N)=>(N in C||(C[N]={}),C[N]),t),p=y[l];y[l]=g[yt],Sa(y)?p!=null?y[l]=p:y[l]=g[Ke]:p!=null?y[l].value=p:y[l].value=g[Ke]}else!(g instanceof E)&&!Ce(g)&&!a.includes(g)&&(typeof g.type=="symbol"&&a.push(g),n(g,[...s,l])&&(Bt(g)&&!Bt(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.",Re in i?i[Re]:i,l):r=!0))}),r};n(e[Re]),Ye[e.id].forEach(i=>{i[wt]||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[ht])}),Ye[e.id].clear()});const qt=Symbol("RegisterNode"),zt=Symbol("UnregisterNode"),pa=Symbol("Nodes"),ya=Symbol("Bounds"),ee=Tt({});window.layers=ee;const Ye={},ue=[];function ba(e,t){return xt(()=>{const a={},n=a.emitter=aa();if(a.on=n.on.bind(n),a.emit=n.emit.bind(n),a.nodes=w({}),a.id=e,ue.push(e),Ye[e]=new Set,a.minimized=yi(!1),Object.assign(a,t.call(a)),ue[ue.length-1]==null||ue[ue.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${ue}
Trying to pop ${a.id}`;ue.pop(),pe(a,"color"),pe(a,"display"),pe(a,"classes"),pe(a,"style"),pe(a,"name"),et(a,"name",a.id),pe(a,"minWidth"),et(a,"minWidth",600),pe(a,"minimizable"),et(a,"minimizable",!0),pe(a,"minimizedDisplay");const i=a.style;return a.style=x(()=>{var r,l;let s=u(a.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(r=u(i))!=null?r:"",(l=a.minimized)!=null&&l.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:s,flexBasis:s,margin:""}]}),a})}function Ca(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}et(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),ee[e.id]=e,$.emit("addLayer",e,t.layers[e.id])}function Ci(e){return ee[e]}function Na(e){console.info("Removing layer",e.id),$.emit("removeLayer",e),ee[e.id]=void 0}function Ni(e){Na(e),Ca(e,V)}function Bi(e){const t=w(!1);return{openModal:()=>t.value=!0,modal:J(()=>o(Fe,{modelValue:t.value,"onUpdate:modelValue":a=>t.value=a},{header:()=>o("h2",null,[u(e.name)]),body:u(e.display)}))}}$.on("update",function(t){Object.values(ee).forEach(a=>{a==null||a.emit("preUpdate",t)}),Object.values(ee).forEach(a=>{a==null||a.emit("update",t)}),Object.values(ee).forEach(a=>{a==null||a.emit("postUpdate",t)})});var Ei=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:qt,UnregisterNodeInjectionKey:zt,NodesInjectionKey:pa,BoundsInjectionKey:ya,layers:ee,persistentRefs:Ye,addingLayers:ue,createLayer:ba,addLayer:Ca,getLayer:Ci,removeLayer:Na,reloadLayer:Ni,setupLayerModal:Bi},Symbol.toStringTag,{value:"Module"}));const wi=U({components:{Context:va},props:{index:{type:Number,required:!0},display:{type:ne(Object,String,Function),required:!0},minimizedDisplay:ne(Object,String,Function),minimized:{type:Object,required:!0},name:{type:ne(String),required:!0},color:ne(String),minimizable:ne(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:a,minimized:n,minimizedDisplay:i}=be(e),s=oi(t),r=pt(i),l=x(()=>G.allowGoBack&&a.value>0&&!xe(n));function g(){V.tabs.splice(u(e.index),1/0)}function f(y){e.nodes.value=y}return{component:s,minimizedComponent:r,showGoBack:l,updateNodes:f,unref:u,goBack:g}}}),Ii={key:1};function _i(e,t,a,n,i,s){const r=Ma("Context");return h(),B("div",{class:"layer-container",style:Xe({"--layer-color":e.unref(e.color)})},[e.showGoBack?(h(),B("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...l)=>e.goBack&&e.goBack(...l))},"\u274C")):M("",!0),e.unref(e.minimized)?(h(),B("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=l=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(h(),O(ce(e.minimizedComponent),{key:0})):(h(),B("div",Ii,F(e.unref(e.name)),1))])):(h(),B("div",{key:2,class:ae(["layer-tab",{showGoBack:e.showGoBack}])},[o(r,{onUpdateNodes:e.updateNodes},{default:R(()=>[(h(),O(ce(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(h(),B("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=l=>e.$emit("setMinimized",!0))}," \u25BC ")):M("",!0)],4)}var Qi=K(wi,[["render",_i],["__scopeId","data-v-a592996e"]]);const Ba=e=>(Qe("data-v-4b4bda40"),e=e(),Se(),e),Si=Ba(()=>c("h2",null,"Changelog",-1)),Mi=Ba(()=>c("details",{open:""},[c("summary",null,[v("v0.0 Initial Commit - "),c("time",null,"2021-09-04")]),v(" This is the first release :D "),c("ul",null,[c("li",{class:"feature"},"Did everything"),c("li",{class:"fix"},"Had some fun"),c("li",{class:"breaking"},"Removed everything"),c("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),ki=U({__name:"Changelog",setup(e,{expose:t}){const a=w(!1);return t({open(){a.value=!0}}),(n,i)=>(h(),O(Fe,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=s=>a.value=s)},{header:R(()=>[Si]),body:R(()=>[Mi]),_:1},8,["modelValue"]))}});var Ti=K(ki,[["__scopeId","data-v-4b4bda40"]]),Di=U({props:{element:Object,display:{type:ne(Object,String,Function),required:!0},style:ne(Object,String,Array),classes:ne(Obje
${P}
${I}`)}}return f[b]}fe(a,b=>{b&&Object.keys(f).forEach(I=>delete f[I])});const p=x(()=>z.saves.reduce((b,I)=>(b[I]=y(I),b),{}));function C(b){let I;switch(V.id===b?I=ga(V):I=JSON.stringify(p.value[b]),G.exportEncoding){default:console.warn(`Unknown save encoding: ${G.exportEncoding}. Defaulting to lz`);case"lz":I=Ie.compressToUTF16(I);break;case"base64":I=btoa(unescape(encodeURIComponent(I)));break;case"plain":break}const P=document.createElement("textarea");P.value=I,document.body.appendChild(P),P.select(),P.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(P)}function N(b){V.id===b&&re();const I={...p.value[b],id:ct()};re(I),z.saves.push(I.id)}function _(b){z.saves=z.saves.filter(I=>I!==b),localStorage.removeItem(b),f[b]=void 0}function Q(b){p.value[V.id].time=V.time,re(),f[V.id]=void 0,Ve(p.value[b]),f[b]=void 0}function S(b){if(r.value=b,qe(()=>{r.value=null}),b[0]!=="{")if(b[0]==="e")b=decodeURIComponent(escape(atob(b)));else if(b[0]==="\u1BE1")b=Ie.decompressFromUTF16(b);else{console.warn("Unable to determine preset encoding",b);return}const I=JSON.parse(b);I.id=ct(),re(I),z.saves.push(I.id),Q(I.id)}function H(b,I){const P=p.value[b];P!=null&&(P.name=I,V.id===b?(V.name=I,re()):(re(P),f[b]=void 0))}return(b,I)=>(h(),O(Fe,{modelValue:a.value,"onUpdate:modelValue":I[4]||(I[4]=P=>a.value=P),ref_key:"modal",ref:n},{header:R(()=>[Vs]),body:R(({shown:P})=>[P?(h(),O(u(qa),{key:0,list:u(z).saves,handle:".handle",itemKey:te=>te},{item:R(({element:te})=>[o(Rs,{save:u(p)[te],onOpen:ge=>Q(te),onExport:ge=>C(te),onEditName:ge=>H(te,ge),onDuplicate:ge=>N(te),onDelete:ge=>_(te)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):M("",!0)]),footer:R(()=>[c("div",Ps,[o(Ft,{modelValue:s.value,"onUpdate:modelValue":I[0]||(I[0]=P=>s.value=P),title:"Import Save",placeholder:"Paste your save here!",class:ae({importingFailed:i.value})},null,8,["modelValue","class"]),c("div",xs,[qs,c("div",zs,[c("button",{class:"button",onClick:I[1]||(I[1]=P=>Q(u(Le)().id))},"New Game"),Object.keys(u(g)).length>0?(h(),O(as,{key:0,options:u(g),modelValue:r.value,"onUpdate:modelValue":I[2]||(I[2]=P=>S(P)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):M("",!0)])]),c("div",Fs,[Gs,c("button",{class:"button modal-default-button",onClick:I[3]||(I[3]=P=>a.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Ea=K(Os,[["__scopeId","data-v-5b5b1604"]]);const de=e=>(Qe("data-v-269f7a94"),e=e(),Se(),e),Us=["src","alt"],Ls={key:1,class:"title"},Js=de(()=>c("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Ys={class:"discord"},Ws={class:"discord-links"},Xs={key:0},Ks=["href"],js=de(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Hs=de(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Zs={href:"https://forums.moddingtree.com/",target:"_blank"},$s=de(()=>c("span",{class:"material-icons"},"forum",-1)),er=de(()=>c("span",{class:"material-icons"},"info",-1)),tr=de(()=>c("span",{class:"material-icons"},"settings",-1)),ar=de(()=>c("span",{class:"material-icons"},"settings",-1)),nr=de(()=>c("span",{class:"material-icons"},"info",-1)),ir={href:"https://forums.moddingtree.com/",target:"_blank"},sr=de(()=>c("span",{class:"material-icons"},"forum",-1)),rr={class:"discord"},or={class:"discord-links"},lr={key:0},Ar=["href"],ur=de(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),cr=de(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),dr=U({__name:"Nav",setup(e){const t=w(null),a=w(null),n=w(null),i=w(null),{useHeader:s,banner:r,title:l,discordName:g,discordLink:f,versionNumber:y}=G;function p(){window.open(f,"mywindow")}return(C,N)=>(h(),B(Y,null,[u(s)?(h(),B("div",tt({key:0,class:"nav"},C.$attrs),[u(r)?(h(),B("img",{key:0,src:u(r),class:"banner",alt:u(l)},null,8,Us)):(h(),B("div",Ls,F(u(l)),1)),c("div",{onClick:N[0]|
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 Zn();const{globalBus:e}=await gt(()=>Promise.resolve().then(function(){return jn}),void 0),{startGameLoop:t}=await gt(()=>import("./gameLoop.c8b27b43.js"),["assets/gameLoop.c8b27b43.js","assets/@fontsource.f66d05e7.css","assets/vue.f6263579.js","assets/earcut.b6f90e68.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/vuedraggable.c3acdf62.js","assets/sortablejs.cbae5b2d.js","assets/vue-next-select.0dc4e443.js","assets/vue-next-select.9e6f4164.css","assets/vue-textarea-autosize.35804eaf.js","assets/semver.83ff78cf.js","assets/lru-cache.9a21e90b.js","assets/yallist.fd762fe7.js","assets/socket.io-client.79ce0df5.js","assets/engine.io-client.58517560.js","assets/engine.io-parser.3f360695.js","assets/@socket.io.aec831e2.js","assets/socket.io-parser.544e37d1.js","assets/vue-toastification.b7cd620e.js","assets/vue-toastification.4b5f8ac8.css","assets/@pixi.1eac1889.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.e51cb87b.js","assets/querystring.23ae9a54.js","assets/workbox-window.8d14e8b7.js"]),a=window.vue=xa(sl);e.emit("setupVue",a),a.mount("#app"),qe(()=>{const n=na(),{updateServiceWorker:i}=ol({onNeedRefresh(){n.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(){i()}})},onOfflineReady(){n.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(s){s&&setInterval(()=>s.update(),60*60*1e3)}})}),t()});export{E as D,gt as _,Z as a,G as b,Ro as c,$ as g,$n as l,V as p,z as s};