pages/ludwig/assets/index.624ae6e9.js

16 lines
121 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.5bd9f35e.js";import{Z as x,q as $e,C as u,t as _,b1 as de,aa as U,aE as m,a0 as E,a1 as c,aK as pe,G as $,w as et,b2 as Et,a8 as A,O as ne,ay as zt,ar as Xe,aG as at,A as ye,_ as z,b6 as T,b8 as Bt,bs as va,aq as je,bu as He,bb as Ut,T as pa,a7 as I,u as _t,j as ya,l as ge,bv as vt,aL as ba,$ as M,aN as Ae,J as G,I as Fe,aH as be,aF as Ne,z as Me,br as Na,aJ as Ca,bc as nt,ao as Ea,bn as Ba,be as _a}from"./@vue.4ce677c2.js";import{c as Ot}from"./nanoevents.1080beb7.js";import{L as ve}from"./lz-string.f2f3b7cf.js";import{D as wa}from"./vuedraggable.832ed13e.js";import{Y as Ia}from"./vue-next-select.8d9e0122.js";import{p as Sa}from"./vue-textarea-autosize.35804eaf.js";import{s as Qa}from"./semver.d101e2be.js";import{l as Ma}from"./socket.io-client.79ce0df5.js";import{u as Yt,s as ka}from"./vue-toastification.b272a510.js";import{v as Ta,n as Da}from"./workbox-window.8d14e8b7.js";import"./lru-cache.9506e0ec.js";import"./yallist.fd762fe7.js";import"./sortablejs.80af5380.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 Ra=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 o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).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)}};Ra();const Va="modulepreload",Tt={},qa="./",ot=function(t,a){return!a||a.length===0?t():Promise.all(a.map(n=>{if(n=`${qa}${n}`,n in Tt)return;Tt[n]=!0;const i=n.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${s}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":Va,i||(o.as="script",o.crossOrigin=""),o.href=n,document.head.appendChild(o),i)return new Promise((l,g)=>{o.addEventListener("load",l),o.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},Ga="./projInfo-schema.json",Pa="Super Auto Coots",xa="A project made in Profectus",Fa="superautocoots",za="thepaperpilot and crea",Ua="",Oa="",Ya="0.0.0",Ja="Initial Commit",La=!1,Wa=!1,Xa=2,ja=!0,Ha=null,Ka="",Za=["main"],$a=3600,en=1,tn=!0,an="base64";var P={$schema:Ga,title:Pa,description:xa,id:Fa,author:za,discordName:Ua,discordLink:Oa,versionNumber:Ya,versionTitle:Ja,allowGoBack:La,defaultShowSmall:Wa,defaultDecimalsShown:Xa,useHeader:ja,banner:Ha,logo:Ka,initialTabs:Za,maxTickLength:$a,offlineLimit:en,enablePausing:tn,exportEncoding:an};class nn{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 sn(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 sn{constructor(t,a){this.next=void 0,this.prev=void 0,this.key=t,this.value=a}}const ft=17,rn=9e15,on=Math.log10(9e15),ln=1/9e15,An=308,un=-324,Dt=5,cn=(1<<10)-1,dn=function(){const e=[];for(let a=un+1;a<=An;a++)e.push(Number("1e"+a));const t=323;return function(a){return e[a+t]}}(),Ee=[2,Math.E,3,4,5,6,7,8,9,10],gn=[[1,1.0891180521811203,1.1789767925673957,1.270145543174
`,e),await Ie(qe())}}function qe(){const e=st(),t=ta({id:e});return te(t),q.saves.push(e),t}function st(){let e,t=0;do e=`${P.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const Pn=_(!1);async function Ie(e){console.info("Loading save",e),Pn.value=!0;const{layers:t,removeLayer:a,addLayer:n}=await ot(()=>Promise.resolve().then(function(){return Ai}),void 0),{fixOldSave:i,getInitialLayers:s}=await ot(()=>Promise.resolve().then(function(){return Or}),void 0);for(const o in t){const l=t[o];l&&a(l)}s(e).forEach(o=>n(o,e)),e=ta(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,P.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==P.versionNumber&&(i(e.modVersion,e),e.modVersion=P.versionNumber),Object.assign(R,e),q.active=R.id,Z.emit("onLoad")}setInterval(()=>{R.autosave&&te()},1e3);window.onbeforeunload=()=>{R.autosave&&te()};window.save=te;const xn=window.hardReset=async()=>{await Ie(qe())};window.deleteLowerSaves=()=>{const e=Object.values(q.saves).indexOf(R.id)+1;Object.values(q.saves).slice(e).forEach(t=>localStorage.removeItem(t)),q.saves=q.saves.slice(0,e)};const Ke=$e({active:"",saves:[],showTPS:!0,theme:It.Nordic,unthrottled:!1,alignUnits:!1,autoplay:!1,fast:!1});de(Ke,e=>{const t=ve.compressToUTF16(JSON.stringify(e));localStorage.setItem(P.id,t)},{deep:!0});var q=window.settings=Ke;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:It.Nordic,alignUnits:!1,autoplay:!1,fast:!1};Z.emit("loadSettings",e),Object.assign(Ke,e),xn()};function Fn(){try{let e=localStorage.getItem(P.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(Ke,t)}Z.emit("loadSettings",Ke)}catch{}}const aa=$e([]);function zn(e){aa.push(e)}const Un=$e([]),On=$e([]),Yn={class:"table"},_e=U({__name:"Row",setup(e){const t=x(()=>ct[q.theme].mergeAdjacent);return(a,n)=>(m(),E("div",Yn,[c("div",{class:$(["row",{mergeAdjacent:u(t)}])},[pe(a.$slots,"default")],2)]))}});function me(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 St(e){if(na(e))return typeof e=="function"?e():me(e);const t=e[Zt];return A(t,e[$t](),null)}function Jn(e){if(na(e))return typeof e=="function"?e():typeof e=="string"?A(ne,null,[e]):A(e,null,null);const t=e[Zt];return A(t,e[$t](),null)}function na(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[At]===!0}function Ln(e,t="div"){const a=et();return Et(()=>{a.value=me(Qe(e),t)}),a}function dt(e,t="div"){const a=et(null);return Et(()=>{const n=Qe(e);a.value=n==""||n==null?null:me(n,t)}),a}function Qe(e){return u(u(e))}function oe(...e){return e.includes(Object)||e.push(Object),e}var j=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a};const Wn=U({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var b;const a=_({}),n=new ResizeObserver(l),i=_(null);zt(()=>{const v=i.value;v!=null&&n.observe(v)});let s=!0,o=_((b=i.value)==null?void 0:b.getBoundingClientRect());function l(){s&&(s=!1,Xe(()=>{var v;o.value=(v=i.value)==null?void 0:v.getBoundingClientRect(),Object.values(a.value).filter(y=>y).forEach(y=>y.rect=y.element.getBoundingClientRect()),t("updateNodes",a.value),s=!0}))}Z.on("fontsLoaded",l);const g={attributes:!1,childList:!0,subtree:!1};at(ra,(v,y)=>{const N=new MutationObserver(()=>f(v));N.observe(y,g),a.value[v]={element:y,observer:N,rect:y.getBoundingClientRect()},l()}),at(oa,v=>{var y;(y=a.value[v])==null||y.observer.disconnect(),a.value[v]=void 0,l()}),at(la,a),at(Aa,o);function f(v){const y=a.value[v];y!=null&&(y.rect=y.element.getBoundingClientRect(),t("updateNodes",a.value))}return(v,y)=>(m(),E(ne,null,[pe(v.$slots,"default",{},void 0,!0),c("div",{ref
`).slice(3,5).map(a=>a.trim()).join(`
`))!=null?t:""}function Pt(e,t){var a;if(C.isNaN(t))throw X.hasNaN||(R.autosave=!1,X.hasNaN=!0,X.NaNPath=e[Se],X.NaNPersistent=e),console.error("Attempted to save NaN value to",(a=e[Se])==null?void 0:a.join("."),e),"Attempted to set NaN value. See above for details";e[gt].value=t}function ii(e){const t=ge(e)?e:_(e);ge(e)&&(e=e.value);const a=x({get(){return t.value},set(i){Pt(n,i)}});a[ze]=e;const n={get value(){return t.value},set value(i){Pt(n,i)},__v_isRef:!0,[gt]:t,[ze]:e,[ut]:ni(),[yt]:!1,[bt]:a,[Se]:void 0};return re.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",n,`
Created at:
`+n[ut]):Ge[re[re.length-1]].add(n),n}function si(e){return e!=null&&typeof e=="object"&&gt in e}Z.on("addLayer",(e,t)=>{const a=[],n=(i,s=[])=>{let o=!1;return Object.keys(i).forEach(l=>{let g=i[l];if(g!=null&&typeof g=="object")if(we in g&&(g=g[we]),si(g)){if(o=!0,g[yt]){console.warn("Deleted persistent ref present in returned object. Ignoring...",g,`
Created at:
`+g[ut]);return}Ge[e.id].delete(g);const f=[e.id,...s,l];g[Se]!=null&&JSON.stringify(f)!==JSON.stringify(g[Se])&&console.error(`Persistent ref is being saved to \`${f.join(".")}\` when it's already present at \`${g[Se].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,g),g[Se]=f;const b=s.reduce((y,N)=>(N in y||(y[N]={}),y[N]),t),v=b[l];b[l]=g[gt],ya(b)?v!=null?b[l]=v:b[l]=g[ze]:v!=null?b[l].value=v:b[l].value=g[ze]}else!(g instanceof C)&&!ge(g)&&!a.includes(g)&&(typeof g.type=="symbol"&&a.push(g),n(g,[...s,l])&&(vt(g)&&!vt(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.",we in i?i[we]:i,l):o=!0))}),o};n(e[we]),Ge[e.id].forEach(i=>{i[yt]||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[ut])}),Ge[e.id].clear()});const ra=Symbol("RegisterNode"),oa=Symbol("UnregisterNode"),la=Symbol("Nodes"),Aa=Symbol("Bounds"),K=_t({});window.layers=K;const Ge={},re=[];function ua(e,t){return sa(()=>{const a={},n=a.emitter=Ot();if(a.on=n.on.bind(n),a.emit=n.emit.bind(n),a.nodes=_({}),a.id=e,re.push(e),Ge[e]=new Set,a.minimized=ii(!1),Object.assign(a,t.call(a)),re[re.length-1]==null||re[re.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${re}
Trying to pop ${a.id}`;re.pop(),ce(a,"color"),ce(a,"display"),ce(a,"classes"),ce(a,"style"),ce(a,"name"),We(a,"name",a.id),ce(a,"minWidth"),We(a,"minWidth",600),ce(a,"minimizable"),We(a,"minimizable",!0),ce(a,"minimizedDisplay");const i=a.style;return a.style=x(()=>{var o,l;let s=u(a.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(o=u(i))!=null?o:"",(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),K[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,K[e.id]);return}We(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),K[e.id]=e,Z.emit("addLayer",e,t.layers[e.id])}function ri(e){return K[e]}function da(e){console.info("Removing layer",e.id),Z.emit("removeLayer",e),K[e.id]=void 0}function oi(e){da(e),ca(e,R)}function li(e){const t=_(!1);return{openModal:()=>t.value=!0,modal:H(()=>A(ke,{modelValue:t.value,"onUpdate:modelValue":a=>t.value=a},{header:()=>A("h2",null,[u(e.name)]),body:u(e.display)}))}}Z.on("update",function(t){Object.values(K).forEach(a=>{a==null||a.emit("preUpdate",t)}),Object.values(K).forEach(a=>{a==null||a.emit("update",t)}),Object.values(K).forEach(a=>{a==null||a.emit("postUpdate",t)})});var Ai=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:ra,UnregisterNodeInjectionKey:oa,NodesInjectionKey:la,BoundsInjectionKey:Aa,layers:K,persistentRefs:Ge,addingLayers:re,createLayer:ua,addLayer:ca,getLayer:ri,removeLayer:da,reloadLayer:oi,setupLayerModal:li},Symbol.toStringTag,{value:"Module"}));const ui=U({components:{Context:ia},props:{index:{type:Number,required:!0},display:{type:oe(Object,String,Function),required:!0},minimizedDisplay:oe(Object,String,Function),minimized:{type:Object,required:!0},name:{type:oe(String),required:!0},color:oe(String),minimizable:oe(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:a,minimized:n,minimizedDisplay:i}=ye(e),s=Ln(t),o=dt(i),l=x(()=>P.allowGoBack&&a.value>0&&!Qe(n));function g(){R.tabs.splice(u(e.index),1/0)}function f(b){e.nodes.value=b}return{component:s,minimizedComponent:o,showGoBack:l,updateNodes:f,unref:u,goBack:g}}}),ci={key:1};function di(e,t,a,n,i,s){const o=ba("Context");return m(),E("div",{class:"layer-container",style:Fe({"--layer-color":e.unref(e.color)})},[e.showGoBack?(m(),E("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...l)=>e.goBack&&e.goBack(...l))},"\u274C")):M("",!0),e.unref(e.minimized)?(m(),E("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=l=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(m(),z(Ae(e.minimizedComponent),{key:0})):(m(),E("div",ci,G(e.unref(e.name)),1))])):(m(),E("div",{key:2,class:$(["layer-tab",{showGoBack:e.showGoBack}])},[A(o,{onUpdateNodes:e.updateNodes},{default:T(()=>[(m(),z(Ae(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(m(),E("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=l=>e.$emit("setMinimized",!0))}," \u25BC ")):M("",!0)],4)}var gi=j(ui,[["render",di],["__scopeId","data-v-a592996e"]]);const ga=e=>(be("data-v-4b4bda40"),e=e(),Ne(),e),mi=ga(()=>c("h2",null,"Changelog",-1)),fi=ga(()=>c("details",{open:""},[c("summary",null,[I("v0.0 Initial Commit - "),c("time",null,"2021-09-04")]),I(" 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)),hi=U({__name:"Changelog",setup(e,{expose:t}){const a=_(!1);return t({open(){a.value=!0}}),(n,i)=>(m(),z(ke,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=s=>a.value=s)},{header:T(()=>[mi]),body:T(()=>[fi]),_:1},8,["modelValue"]))}});var vi=j(hi,[["__scopeId","data-v-4b4bda40"]]),pi=U({props:{element:Object,display:{type:oe(Object,String,Function),required:!0},style:oe(Object,String,Array),classes:oe(Object),direct
${D}
${B}`)}}return f[p]}de(a,p=>{p&&Object.keys(f).forEach(B=>delete f[B])});const v=x(()=>q.saves.reduce((p,B)=>(p[B]=b(B),p),{}));function y(p){let B;switch(R.id===p?B=ea(R):B=JSON.stringify(v.value[p]),P.exportEncoding){default:console.warn(`Unknown save encoding: ${P.exportEncoding}. Defaulting to lz`);case"lz":B=ve.compressToUTF16(B);break;case"base64":B=btoa(unescape(encodeURIComponent(B)));break;case"plain":break}const D=document.createElement("textarea");D.value=B,document.body.appendChild(D),D.select(),D.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(D)}function N(p){R.id===p&&te();const B={...v.value[p],id:st()};te(B),q.saves.push(B.id)}function h(p){q.saves=q.saves.filter(B=>B!==p),localStorage.removeItem(p),f[p]=void 0}function w(p){v.value[R.id].time=R.time,te(),f[R.id]=void 0,Ie(v.value[p]),f[p]=void 0}function O(p){if(o.value=p,Xe(()=>{o.value=null}),p[0]!=="{")if(p[0]==="e")p=decodeURIComponent(escape(atob(p)));else if(p[0]==="\u1BE1")p=ve.decompressFromUTF16(p);else{console.warn("Unable to determine preset encoding",p);return}const B=JSON.parse(p);B.id=st(),te(B),q.saves.push(B.id),w(B.id)}function W(p,B){const D=v.value[p];D!=null&&(D.name=B,R.id===p?(R.name=B,te()):(te(D),f[p]=void 0))}return(p,B)=>(m(),z(ke,{modelValue:a.value,"onUpdate:modelValue":B[4]||(B[4]=D=>a.value=D),ref_key:"modal",ref:n},{header:T(()=>[bs]),body:T(({shown:D})=>[D?(m(),z(u(wa),{key:0,list:u(q).saves,handle:".handle",itemKey:F=>F},{item:T(({element:F})=>[A(ys,{save:u(v)[F],onOpen:V=>w(F),onExport:V=>y(F),onEditName:V=>W(F,V),onDuplicate:V=>N(F),onDelete:V=>h(F)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):M("",!0)]),footer:T(()=>[c("div",Ns,[A(Qt,{modelValue:s.value,"onUpdate:modelValue":B[0]||(B[0]=D=>s.value=D),title:"Import Save",placeholder:"Paste your save here!",class:$({importingFailed:i.value})},null,8,["modelValue","class"]),c("div",Cs,[Es,c("div",Bs,[c("button",{class:"button",onClick:B[1]||(B[1]=D=>w(u(qe)().id))},"New Game"),Object.keys(u(g)).length>0?(m(),z(zi,{key:0,options:u(g),modelValue:o.value,"onUpdate:modelValue":B[2]||(B[2]=D=>O(D)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):M("",!0)])]),c("div",_s,[ws,c("button",{class:"button modal-default-button",onClick:B[3]||(B[3]=D=>a.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var ma=j(Is,[["__scopeId","data-v-5b5b1604"]]);const ue=e=>(be("data-v-269f7a94"),e=e(),Ne(),e),Ss=["src","alt"],Qs={key:1,class:"title"},Ms=ue(()=>c("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),ks={class:"discord"},Ts={class:"discord-links"},Ds={key:0},Rs=["href"],Vs=ue(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),qs=ue(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Gs={href:"https://forums.moddingtree.com/",target:"_blank"},Ps=ue(()=>c("span",{class:"material-icons"},"forum",-1)),xs=ue(()=>c("span",{class:"material-icons"},"info",-1)),Fs=ue(()=>c("span",{class:"material-icons"},"settings",-1)),zs=ue(()=>c("span",{class:"material-icons"},"settings",-1)),Us=ue(()=>c("span",{class:"material-icons"},"info",-1)),Os={href:"https://forums.moddingtree.com/",target:"_blank"},Ys=ue(()=>c("span",{class:"material-icons"},"forum",-1)),Js={class:"discord"},Ls={class:"discord-links"},Ws={key:0},Xs=["href"],js=ue(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Hs=ue(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Ks=U({__name:"Nav",setup(e){const t=_(null),a=_(null),n=_(null),i=_(null),{useHeader:s,banner:o,title:l,discordName:g,discordLink:f,versionNumber:b}=P;function v(){window.open(f,"mywindow")}return(y,N)=>(m(),E(ne,null,[u(s)?(m(),E("div",je({key:0,class:"nav"},y.$attrs),[u(o)?(m(),E("img",{key:0,src:u(o),class:"banner",alt:u(l)},null,8,Ss)):(m(),E("div",Qs,G(u(l)),1)),c("div",{onClick:N[0]||(N[0]=h=>{var
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 Gn();const{globalBus:e}=await ot(()=>Promise.resolve().then(function(){return Vn}),void 0),{startGameLoop:t}=await ot(()=>import("./gameLoop.ed7f4ea7.js"),["assets/gameLoop.ed7f4ea7.js","assets/@fontsource.f66d05e7.css","assets/vue.5bd9f35e.js","assets/lru-cache.9506e0ec.js","assets/yallist.fd762fe7.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/vuedraggable.832ed13e.js","assets/sortablejs.80af5380.js","assets/vue-next-select.8d9e0122.js","assets/vue-next-select.9e6f4164.css","assets/vue-textarea-autosize.35804eaf.js","assets/semver.d101e2be.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.b272a510.js","assets/vue-toastification.4b5f8ac8.css","assets/workbox-window.8d14e8b7.js"]),a=window.vue=_a(fo);e.emit("setupVue",a),a.mount("#app"),Xe(()=>{const n=Yt(),{updateServiceWorker:i}=vo({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{C as D,ot as _,X as a,P as b,Or as c,Z as g,Pn as l,R as p,q as s};