pages/ludwig/assets/index.ec3aa6b1.js

16 lines
134 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.f6263579.js";import{Z as x,q as rt,C as u,t as w,b1 as fe,aa as U,aE as h,a0 as E,a1 as c,aK as _e,G as ae,w as ye,b2 as Qt,a8 as A,O as Y,ay as St,ar as qe,aG as ot,A as be,_ as O,b6 as R,b8 as Mt,bs as Ia,aq as tt,bu as at,bb as ea,T as _a,a7 as p,u as kt,j as Qa,l as Ce,bv as Nt,aL as Sa,$ as M,aN as ce,J as F,I as Xe,aH as Qe,aF as Se,z as ze,br as Ma,aJ as ka,au as Ta,al as Ot,aC as Da,bc as lt,ao as Ra,bn as Va,be as Pa}from"./@vue.4ce677c2.js";import{c as ta}from"./nanoevents.1080beb7.js";import{L as Ie}from"./lz-string.f2f3b7cf.js";import{D as xa}from"./vuedraggable.c3acdf62.js";import{Y as qa}from"./vue-next-select.0dc4e443.js";import{p as za}from"./vue-textarea-autosize.35804eaf.js";import{A as aa,T as Fa,R as Ga,B as Oa,u as Ua,E as Ut}from"./@pixi.1eac1889.js";import{s as La}from"./semver.83ff78cf.js";import{l as Ja}from"./socket.io-client.79ce0df5.js";import{u as na,s as Ya}from"./vue-toastification.b7cd620e.js";import{v as Wa,n as Xa}from"./workbox-window.8d14e8b7.js";import"./earcut.b6f90e68.js";import"./sortablejs.cbae5b2d.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.e51cb87b.js";import"./querystring.23ae9a54.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";const Ka=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 r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function a(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 n(i){if(i.ep)return;i.ep=!0;const r=a(i);fetch(i.href,r)}};Ka();const ja="modulepreload",Lt={},Ha="./",dt=function(t,a){return!a||a.length===0?t():Promise.all(a.map(n=>{if(n=`${Ha}${n}`,n in Lt)return;Lt[n]=!0;const i=n.endsWith(".css"),r=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${r}`))return;const s=document.createElement("link");if(s.rel=i?"stylesheet":ja,i||(s.as="script",s.crossOrigin=""),s.href=n,document.head.appendChild(s),i)return new Promise((o,d)=>{s.addEventListener("load",o),s.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},Za="./projInfo-schema.json",$a="Super Auto Coots",en="A project made in Profectus",tn="superautocoots",an="thepaperpilot and crea",nn="",rn="",sn="0.0.0",on="Initial Commit",ln=!1,An=!1,un=2,cn=!0,dn=null,gn="",mn=["main"],fn=3600,hn=1,vn=!0,pn="base64";var G={$schema:Za,title:$a,description:en,id:tn,author:an,discordName:nn,discordLink:rn,versionNumber:sn,versionTitle:on,allowGoBack:ln,defaultShowSmall:An,defaultDecimalsShown:un,useHeader:cn,banner:dn,logo:gn,initialTabs:mn,maxTickLength:fn,offlineLimit:hn,enablePausing:vn,exportEncoding:pn};class yn{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 bn(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 bn{constructor(t,a){this.next=void 0,this.prev=void 0,this.key=t,this.value=a}}const bt=17,Cn=9e15,Nn=Math.l
`,e),await Ve(Le())}}function Le(){const e=ct(),t=ga({id:e});return se(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 Zn=w(!1);async function Ve(e){console.info("Loading save",e),Zn.value=!0;const{layers:t,removeLayer:a,addLayer:n}=await dt(()=>Promise.resolve().then(function(){return Ei}),void 0),{fixOldSave:i,getInitialLayers:r}=await dt(()=>Promise.resolve().then(function(){return Ro}),void 0);for(const s in t){const o=t[s];o&&a(o)}r(e).forEach(s=>n(s,e)),e=ga(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&&se()},1e3);window.onbeforeunload=()=>{V.autosave&&se()};window.save=se;const $n=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=rt({active:"",saves:[],showTPS:!0,theme:Vt.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:Vt.Nordic,alignUnits:!1,autoplay:!1,fast:!1};$.emit("loadSettings",e),Object.assign(nt,e),$n()};function ei(){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 ma=rt([]);function ti(e){ma.push(e)}const ai=rt([]),ni=rt([]),ii={class:"table"},he=U({__name:"Row",setup(e){const t=x(()=>ht[z.theme].mergeAdjacent);return(a,n)=>(h(),E("div",ii,[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(fa(e))return typeof e=="function"?e():Ne(e);const t=e[Dt];return A(t,e[Rt](),null)}function ri(e){if(fa(e))return typeof e=="function"?e():typeof e=="string"?A(Y,null,[e]):A(e,null,null);const t=e[Dt];return A(t,e[Rt](),null)}function fa(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[mt]===!0}function si(e,t="div"){const a=ye();return Qt(()=>{a.value=Ne(xe(e),t)}),a}function vt(e,t="div"){const a=ye(null);return Qt(()=>{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 oi=U({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var b;const a=w({}),n=new ResizeObserver(o),i=w(null);St(()=>{const v=i.value;v!=null&&n.observe(v)});let r=!0,s=w((b=i.value)==null?void 0:b.getBoundingClientRect());function o(){r&&(r=!1,qe(()=>{var v;s.value=(v=i.value)==null?void 0:v.getBoundingClientRect(),Object.values(a.value).filter(N=>N).forEach(N=>N.rect=N.element.getBoundingClientRect()),t("updateNodes",a.value),r=!0}))}$.on("fontsLoaded",o);const d={attributes:!1,childList:!0,subtree:!1};ot(xt,(v,N)=>{const y=new MutationObserver(()=>f(v));y.observe(N,d),a.value[v]={element:N,observer:y,rect:N.getBoundingClientRect()},o()}),ot(qt,v=>{var N;(N=a.value[v])==null||N.observer.disconnect(),a.value[v]=void 0,o()}),ot(va,a),ot(pa,s);function f(v){const N=a.value[v];N!=null&&(N.rect=N.element.getBoundingClientRect(),t("updateNodes",a.value))}return(v,N)=>(h(),E(Y,null,[_e(v.$slots,"default",{},void 0,!0),c("div",{ref_
`).slice(3,5).map(a=>a.trim()).join(`
`))!=null?t:""}function jt(e,t){var a;if(B.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[pt].value=t}function pi(e){const t=Ce(e)?e:w(e);Ce(e)&&(e=e.value);const a=x({get(){return t.value},set(i){jt(n,i)}});a[Ke]=e;const n={get value(){return t.value},set value(i){jt(n,i)},__v_isRef:!0,[pt]:t,[Ke]:e,[ft]:vi(),[Bt]:!1,[wt]: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[ft]):Ye[ue[ue.length-1]].add(n),n}function yi(e){return e!=null&&typeof e=="object"&&pt in e}$.on("addLayer",(e,t)=>{const a=[],n=(i,r=[])=>{let s=!1;return Object.keys(i).forEach(o=>{let d=i[o];if(d!=null&&typeof d=="object")if(Re in d&&(d=d[Re]),yi(d)){if(s=!0,d[Bt]){console.warn("Deleted persistent ref present in returned object. Ignoring...",d,`
Created at:
`+d[ft]);return}Ye[e.id].delete(d);const f=[e.id,...r,o];d[Pe]!=null&&JSON.stringify(f)!==JSON.stringify(d[Pe])&&console.error(`Persistent ref is being saved to \`${f.join(".")}\` when it's already present at \`${d[Pe].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,d),d[Pe]=f;const b=r.reduce((N,y)=>(y in N||(N[y]={}),N[y]),t),v=b[o];b[o]=d[pt],Qa(b)?v!=null?b[o]=v:b[o]=d[Ke]:v!=null?b[o].value=v:b[o].value=d[Ke]}else!(d instanceof B)&&!Ce(d)&&!a.includes(d)&&(typeof d.type=="symbol"&&a.push(d),n(d,[...r,o])&&(Nt(d)&&!Nt(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,o):s=!0))}),s};n(e[Re]),Ye[e.id].forEach(i=>{i[Bt]||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[ft])}),Ye[e.id].clear()});const xt=Symbol("RegisterNode"),qt=Symbol("UnregisterNode"),va=Symbol("Nodes"),pa=Symbol("Bounds"),ee=kt({});window.layers=ee;const Ye={},ue=[];function ya(e,t){return Pt(()=>{const a={},n=a.emitter=ta();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=pi(!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 s,o;let r=u(a.minWidth);return(typeof r=="number"||!Number.isNaN(parseInt(r)))&&(r=r+"px"),[(s=u(i))!=null?s:"",(o=a.minimized)!=null&&o.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:r,flexBasis:r,margin:""}]}),a})}function ba(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 bi(e){return ee[e]}function Ca(e){console.info("Removing layer",e.id),$.emit("removeLayer",e),ee[e.id]=void 0}function Ci(e){Ca(e),ba(e,V)}function Ni(e){const t=w(!1);return{openModal:()=>t.value=!0,modal:J(()=>A(Fe,{modelValue:t.value,"onUpdate:modelValue":a=>t.value=a},{header:()=>A("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:xt,UnregisterNodeInjectionKey:qt,NodesInjectionKey:va,BoundsInjectionKey:pa,layers:ee,persistentRefs:Ye,addingLayers:ue,createLayer:ya,addLayer:ba,getLayer:bi,removeLayer:Ca,reloadLayer:Ci,setupLayerModal:Ni},Symbol.toStringTag,{value:"Module"}));const Bi=U({components:{Context:ha},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),r=si(t),s=vt(i),o=x(()=>G.allowGoBack&&a.value>0&&!xe(n));function d(){V.tabs.splice(u(e.index),1/0)}function f(b){e.nodes.value=b}return{component:r,minimizedComponent:s,showGoBack:o,updateNodes:f,unref:u,goBack:d}}}),wi={key:1};function Ii(e,t,a,n,i,r){const s=Sa("Context");return h(),E("div",{class:"layer-container",style:Xe({"--layer-color":e.unref(e.color)})},[e.showGoBack?(h(),E("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...o)=>e.goBack&&e.goBack(...o))},"\u274C")):M("",!0),e.unref(e.minimized)?(h(),E("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=o=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(h(),O(ce(e.minimizedComponent),{key:0})):(h(),E("div",wi,F(e.unref(e.name)),1))])):(h(),E("div",{key:2,class:ae(["layer-tab",{showGoBack:e.showGoBack}])},[A(s,{onUpdateNodes:e.updateNodes},{default:R(()=>[(h(),O(ce(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(h(),E("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=o=>e.$emit("setMinimized",!0))}," \u25BC ")):M("",!0)],4)}var _i=K(Bi,[["render",Ii],["__scopeId","data-v-a592996e"]]);const Na=e=>(Qe("data-v-4b4bda40"),e=e(),Se(),e),Qi=Na(()=>c("h2",null,"Changelog",-1)),Si=Na(()=>c("details",{open:""},[c("summary",null,[p("v0.0 Initial Commit - "),c("time",null,"2021-09-04")]),p(" 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)),Mi=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]=r=>a.value=r)},{header:R(()=>[Qi]),body:R(()=>[Si]),_:1},8,["modelValue"]))}});var ki=K(Mi,[["__scopeId","data-v-4b4bda40"]]),Ti=U({props:{element:Object,display:{type:ne(Object,String,Function),required:!0},style:ne(Object,String,Array),classes:ne(Obje
${P}
${_}`)}}return f[C]}fe(a,C=>{C&&Object.keys(f).forEach(_=>delete f[_])});const v=x(()=>z.saves.reduce((C,_)=>(C[_]=b(_),C),{}));function N(C){let _;switch(V.id===C?_=da(V):_=JSON.stringify(v.value[C]),G.exportEncoding){default:console.warn(`Unknown save encoding: ${G.exportEncoding}. Defaulting to lz`);case"lz":_=Ie.compressToUTF16(_);break;case"base64":_=btoa(unescape(encodeURIComponent(_)));break;case"plain":break}const P=document.createElement("textarea");P.value=_,document.body.appendChild(P),P.select(),P.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(P)}function y(C){V.id===C&&se();const _={...v.value[C],id:ct()};se(_),z.saves.push(_.id)}function I(C){z.saves=z.saves.filter(_=>_!==C),localStorage.removeItem(C),f[C]=void 0}function Q(C){v.value[V.id].time=V.time,se(),f[V.id]=void 0,Ve(v.value[C]),f[C]=void 0}function S(C){if(s.value=C,qe(()=>{s.value=null}),C[0]!=="{")if(C[0]==="e")C=decodeURIComponent(escape(atob(C)));else if(C[0]==="\u1BE1")C=Ie.decompressFromUTF16(C);else{console.warn("Unable to determine preset encoding",C);return}const _=JSON.parse(C);_.id=ct(),se(_),z.saves.push(_.id),Q(_.id)}function H(C,_){const P=v.value[C];P!=null&&(P.name=_,V.id===C?(V.name=_,se()):(se(P),f[C]=void 0))}return(C,_)=>(h(),O(Fe,{modelValue:a.value,"onUpdate:modelValue":_[4]||(_[4]=P=>a.value=P),ref_key:"modal",ref:n},{header:R(()=>[Rr]),body:R(({shown:P})=>[P?(h(),O(u(xa),{key:0,list:u(z).saves,handle:".handle",itemKey:te=>te},{item:R(({element:te})=>[A(Dr,{save:u(v)[te],onOpen:ge=>Q(te),onExport:ge=>N(te),onEditName:ge=>H(te,ge),onDuplicate:ge=>y(te),onDelete:ge=>I(te)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):M("",!0)]),footer:R(()=>[c("div",Vr,[A(zt,{modelValue:r.value,"onUpdate:modelValue":_[0]||(_[0]=P=>r.value=P),title:"Import Save",placeholder:"Paste your save here!",class:ae({importingFailed:i.value})},null,8,["modelValue","class"]),c("div",Pr,[xr,c("div",qr,[c("button",{class:"button",onClick:_[1]||(_[1]=P=>Q(u(Le)().id))},"New Game"),Object.keys(u(d)).length>0?(h(),O(tr,{key:0,options:u(d),modelValue:s.value,"onUpdate:modelValue":_[2]||(_[2]=P=>S(P)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):M("",!0)])]),c("div",zr,[Fr,c("button",{class:"button modal-default-button",onClick:_[3]||(_[3]=P=>a.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Ea=K(Gr,[["__scopeId","data-v-5b5b1604"]]);const de=e=>(Qe("data-v-269f7a94"),e=e(),Se(),e),Or=["src","alt"],Ur={key:1,class:"title"},Lr=de(()=>c("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Jr={class:"discord"},Yr={class:"discord-links"},Wr={key:0},Xr=["href"],Kr=de(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),jr=de(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Hr={href:"https://forums.moddingtree.com/",target:"_blank"},Zr=de(()=>c("span",{class:"material-icons"},"forum",-1)),$r=de(()=>c("span",{class:"material-icons"},"info",-1)),es=de(()=>c("span",{class:"material-icons"},"settings",-1)),ts=de(()=>c("span",{class:"material-icons"},"settings",-1)),as=de(()=>c("span",{class:"material-icons"},"info",-1)),ns={href:"https://forums.moddingtree.com/",target:"_blank"},is=de(()=>c("span",{class:"material-icons"},"forum",-1)),rs={class:"discord"},ss={class:"discord-links"},os={key:0},ls=["href"],As=de(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),us=de(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),cs=U({__name:"Nav",setup(e){const t=w(null),a=w(null),n=w(null),i=w(null),{useHeader:r,banner:s,title:o,discordName:d,discordLink:f,versionNumber:b}=G;function v(){window.open(f,"mywindow")}return(N,y)=>(h(),E(Y,null,[u(r)?(h(),E("div",tt({key:0,class:"nav"},N.$attrs),[u(s)?(h(),E("img",{key:0,src:u(s),class:"banner",alt:u(o)},null,8,Or)):(h(),E("div",Ur,F(u(o)),1)),c("div",{onClick:y[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 Hn();const{globalBus:e}=await dt(()=>Promise.resolve().then(function(){return Kn}),void 0),{startGameLoop:t}=await dt(()=>import("./gameLoop.41741529.js"),["assets/gameLoop.41741529.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/@pixi.1eac1889.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.e51cb87b.js","assets/querystring.23ae9a54.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/workbox-window.8d14e8b7.js"]),a=window.vue=Pa(rl);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(r){r&&setInterval(()=>r.update(),60*60*1e3)}})}),t()});export{B as D,dt as _,Z as a,G as b,Ro as c,$ as g,Zn as l,V as p,z as s};