Super-Auto-Coots/assets/index.d9bc320f.js

16 lines
228 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.f6263579.js";import{Z as V,C as g,q as IA,u as At,j as ca,l as he,bv as LA,t as y,a8 as r,aa as Y,ay as MA,ar as qe,aE as p,a0 as Q,aK as Te,a1 as d,O as D,aG as wA,A as ye,_ as x,b6 as G,b8 as tt,bs as ma,aq as uA,bu as hA,bb as Ut,T as da,a7 as u,b1 as me,G as ae,w as Ie,b2 as JA,aN as ge,I as Re,$ as R,aL as jA,aJ as Pt,J as O,aH as Xe,aF as Ye,z as xe,bo as fa,au as va,al as ct,aC as pa,bc as TA,ao as Ca,bn as ha,be as Ba}from"./@vue.4ce677c2.js";import{c as kt}from"./nanoevents.1080beb7.js";import{L as Je}from"./lz-string.f2f3b7cf.js";import{s as Ea,u as Gt}from"./vue-toastification.b7cd620e.js";import{p as ba}from"./vue-textarea-autosize.35804eaf.js";import{s as Qa}from"./semver.83ff78cf.js";import{l as ya}from"./socket.io-client.79ce0df5.js";import{A as zt,T as Ia,R as Na,B as Sa,u as wa,E as mt}from"./@pixi.1eac1889.js";import{D as Ta}from"./vuedraggable.c3acdf62.js";import{Y as Ra}from"./vue-next-select.0dc4e443.js";import{v as Ua,n as Pa}from"./workbox-window.8d14e8b7.js";import"./earcut.b6f90e68.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";import"./sortablejs.cbae5b2d.js";const ka=function(){const A=document.createElement("link").relList;if(A&&A.supports&&A.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerpolicy&&(s.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?s.credentials="include":n.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)}};ka();const Ga="modulepreload",dt={},za="./",kA=function(A,t){return!t||t.length===0?A():Promise.all(t.map(a=>{if(a=`${za}${a}`,a in dt)return;dt[a]=!0;const n=a.endsWith(".css"),s=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${s}`))return;const l=document.createElement("link");if(l.rel=n?"stylesheet":Ga,n||(l.as="script",l.crossOrigin=""),l.href=a,document.head.appendChild(l),n)return new Promise((o,c)=>{l.addEventListener("load",o),l.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>A())},Da="./projInfo-schema.json",Va="Super Auto Coots",Ma="A project made in Profectus",Ja="superautocoots",Oa="",qa="",xa="",Xa="0.0.0",Ya="Initial Commit",Fa=!1,Wa=!1,Ka=2,La=!0,ja=null,Ha="",Za=["main"],_a=3600,$a=1,en=!0,An="base64";var F={$schema:Da,title:Va,description:Ma,id:Ja,author:Oa,discordName:qa,discordLink:xa,versionNumber:Xa,versionTitle:Ya,allowGoBack:Fa,defaultShowSmall:Wa,defaultDecimalsShown:Ka,useHeader:La,banner:ja,logo:Ha,initialTabs:Za,maxTickLength:_a,offlineLimit:$a,enablePausing:en,exportEncoding:An};class tn{constructor(A){this.map=new Map,this.first=void 0,this.last=void 0,this.maxSize=A}get size(){return this.map.size}get(A){const t=this.map.get(A);if(t!==void 0)return t!==this.first&&(t===this.last?(this.last=t.prev,this.last.next=void 0):(t.prev.next=t.next,t.next.prev=t.prev),t.next=this.first,this.first.prev=t,this.first=t),t.value}set(A,t){if(this.maxSize<1)return;if(this.map.has(A))throw new Error("Cannot update existing keys in the cache");const a=new an(A,t);for(this.first===void 0?(this.first=a,this.last=a):(a.next=this.first,this.first.prev=a,this.first=a),this.map.set(A,a);this.map.size>this.maxSize;){const n=this.last;this.map.delete(n.key),this.last=n.prev,this.last.next=void 0}}}class an{constructor(A,t){this.next=void 0,this.prev=void 0,this.key=A,this.value=t}}const FA=17,nn=9e15,rn=Math.log10(9e15),sn=1/9e15,l
`).slice(3,5).map(t=>t.trim()).join(`
`))!=null?A:""}function Bt(e,A){var t;if(N.isNaN(A))throw se.hasNaN||(X.autosave=!1,se.hasNaN=!0,se.NaNPath=e[He],se.NaNPersistent=e),console.error("Attempted to save NaN value to",(t=e[He])==null?void 0:t.join("."),e),"Attempted to set NaN value. See above for details";e[nA].value=A}function Ft(e,A=!0){const t=he(e)?e:y(e);he(e)&&(e=e.value);const a=V({get(){return t.value},set(s){A?Bt(n,s):n[nA].value=s}});a[gA]=e;const n={get value(){return t.value},set value(s){A?Bt(n,s):n[nA].value=s},__v_isRef:!0,[nA]:t,[gA]:e,[VA]:Gn(),[ZA]:!1,[_A]:a,[He]:void 0};return be.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",n,`
Created at:
`+n[VA]):rA[be[be.length-1]].add(n),n}function zn(e){return e!=null&&typeof e=="object"&&nA in e}le.on("addLayer",(e,A)=>{const t=[],a=(n,s=[])=>{let l=!1;return Object.keys(n).forEach(o=>{let c=n[o];if(c!=null&&typeof c=="object")if(je in c&&(c=c[je]),zn(c)){if(l=!0,c[ZA]){console.warn("Deleted persistent ref present in returned object. Ignoring...",c,`
Created at:
`+c[VA]);return}rA[e.id].delete(c);const C=[e.id,...s,o];c[He]!=null&&JSON.stringify(C)!==JSON.stringify(c[He])&&console.error(`Persistent ref is being saved to \`${C.join(".")}\` when it's already present at \`${c[He].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,c),c[He]=C;const B=s.reduce((E,I)=>(I in E||(E[I]={}),E[I]),A),h=B[o];B[o]=c[nA],ca(B)?h!=null?B[o]=h:B[o]=c[gA]:h!=null?B[o].value=h:B[o].value=c[gA]}else!(c instanceof N)&&!he(c)&&!t.includes(c)&&(typeof c.type=="symbol"&&t.push(c),a(c,[...s,o])&&(LA(c)&&!LA(n)?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.",je in n?n[je]:n,o):l=!0))}),l};a(e[je]),rA[e.id].forEach(n=>{n[ZA]||console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,n,`
Created at:
`+n[VA])}),rA[e.id].clear()});const rt=Symbol("RegisterNode"),st=Symbol("UnregisterNode"),Wt=Symbol("Nodes"),Kt=Symbol("Bounds"),ue=At({});window.layers=ue;const rA={},be=[];function Lt(e,A){return qA(()=>{const t={},a=t.emitter=kt();if(t.on=a.on.bind(a),t.emit=a.emit.bind(a),t.nodes=y({}),t.id=e,be.push(e),rA[e]=new Set,t.minimized=Ft(!1,!1),Object.assign(t,A.call(t)),be[be.length-1]==null||be[be.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${be}
Trying to pop ${t.id}`;be.pop(),te(t,"color"),te(t,"display"),te(t,"classes"),te(t,"style"),te(t,"name"),$e(t,"name",t.id),te(t,"minWidth"),$e(t,"minWidth",600),te(t,"minimizable"),$e(t,"minimizable",!0),te(t,"minimizedDisplay");const n=t.style;return t.style=V(()=>{var l,o;let s=g(t.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(l=g(n))!=null?l:"",(o=t.minimized)!=null&&o.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:s,flexBasis:s,margin:""}]}),t})}function jt(e,A){if(console.info("Adding layer",e.id),ue[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,ue[e.id]);return}$e(A,"layers",{}),A.layers[e.id]==null&&(A.layers[e.id]={}),ue[e.id]=e,le.emit("addLayer",e,A.layers[e.id])}function Dn(e){return ue[e]}function Ht(e){console.info("Removing layer",e.id),le.emit("removeLayer",e),ue[e.id]=void 0}function Vn(e){Ht(e),jt(e,X)}function Mn(e){const A=y(!1);return{openModal:()=>A.value=!0,modal:z(()=>r(Fe,{modelValue:A.value,"onUpdate:modelValue":t=>A.value=t},{header:()=>r("h2",null,[g(e.name)]),body:g(e.display)}))}}le.on("update",function(A){Object.values(ue).forEach(t=>{t==null||t.emit("preUpdate",A)}),Object.values(ue).forEach(t=>{t==null||t.emit("update",A)}),Object.values(ue).forEach(t=>{t==null||t.emit("postUpdate",A)})});var Jn=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:rt,UnregisterNodeInjectionKey:st,NodesInjectionKey:Wt,BoundsInjectionKey:Kt,layers:ue,persistentRefs:rA,addingLayers:be,createLayer:Lt,addLayer:jt,getLayer:Dn,removeLayer:Ht,reloadLayer:Vn,setupLayerModal:Mn},Symbol.toStringTag,{value:"Module"}));var $=(e,A)=>{const t=e.__vccOpts||e;for(const[a,n]of A)t[a]=n;return t};const On=Y({__name:"Context",emits:["updateNodes"],setup(e,{emit:A}){var B;const t=y({}),a=new ResizeObserver(o),n=y(null);MA(()=>{const h=n.value;h!=null&&a.observe(h)});let s=!0,l=y((B=n.value)==null?void 0:B.getBoundingClientRect());function o(){s&&(s=!1,qe(()=>{var h;l.value=(h=n.value)==null?void 0:h.getBoundingClientRect(),Object.values(t.value).filter(E=>E).forEach(E=>E.rect=E.element.getBoundingClientRect()),A("updateNodes",t.value),s=!0}))}le.on("fontsLoaded",o);const c={attributes:!1,childList:!0,subtree:!1};wA(rt,(h,E)=>{const I=new MutationObserver(()=>C(h));I.observe(E,c),t.value[h]={element:E,observer:I,rect:E.getBoundingClientRect()},o()}),wA(st,h=>{var E;(E=t.value[h])==null||E.observer.disconnect(),t.value[h]=void 0,o()}),wA(Wt,t),wA(Kt,l);function C(h){const E=t.value[h];E!=null&&(E.rect=E.element.getBoundingClientRect(),A("updateNodes",t.value))}return(h,E)=>(p(),Q(D,null,[Te(h.$slots,"default",{},void 0,!0),d("div",{ref_key:"resizeListener",ref:n,class:"resize-listener"},null,512)],64))}});var Zt=$(On,[["__scopeId","data-v-2b1dc1bc"]]);const qn=["onPointerdown"],xn={class:"modal-wrapper"},Xn={class:"modal-container"},Yn={class:"modal-header"},Fn=u(" default header "),Wn={class:"modal-body"},Kn=u(" default body "),Ln={class:"modal-footer"},jn=d("div",{class:"modal-default-flex-grow"},null,-1),Fe=Y({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:A,emit:t}){const n=ye(e),s=V(()=>g(n.modelValue)||o.value);function l(){t("update:modelValue",!1)}const o=y(!1),c=y(null),C=V(()=>{var B,h;return(h=(B=c.value)==null?void 0:B.nodes)!=null?h:null});return A({isOpen:s,nodes:C}),(B,h)=>(p(),x(da,{to:"#modal-root"},[r(Ut,{name:"modal",onBeforeEnter:h[0]||(h[0]=E=>o.value=!0),onAfterLeave:h[1]||(h[1]=E=>o.value=!1)},{default:G(()=>[tt(d("div",uA({class:"modal-mask",onPointerdown:hA(l,["self"])},B.$attrs),[d("div",xn,[d("div",Xn,[d("div",Yn,[Te(B.$slots,"header",{shown:g(s)},()=>[Fn])]),d("div",Wn,[r(Zt,{ref_key:"contextRef",ref:c},{default:G(()=>[Te(B.$slots,"body",{shown:g(s)},()=>[Kn])]),_:3},512)]),d("div",Ln,[Te(B.$slots,"footer",{shown:g(s)},()=>[d("div",{class:"modal-default-footer"},[jn,d("button",{class:"button modal-default-button",onClick:l}," Close ")])])])])])],16,qn),[[ma,e.modelValue]])]),_:3})])
`,e),await Ze(sA())}}function sA(){const e=PA(),A=_t({id:e});return pe(A),P.saves.push(e),A}function PA(){let e,A=0;do e=`${F.id}-${A++}`;while(localStorage.getItem(e)!=null);return e}const Zn=y(!1);async function Ze(e){console.info("Loading save",e),Zn.value=!0;const{layers:A,removeLayer:t,addLayer:a}=await kA(()=>Promise.resolve().then(function(){return Jn}),void 0),{fixOldSave:n,getInitialLayers:s}=await kA(()=>Promise.resolve().then(function(){return Ul}),void 0);for(const l in A){const o=A[l];o&&t(o)}s(e).forEach(l=>a(l,e)),e=_t(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,F.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==F.versionNumber&&(n(e.modVersion,e),e.modVersion=F.versionNumber),Object.assign(X,e),P.active=X.id,le.emit("onLoad")}setInterval(()=>{X.autosave&&pe()},1e3);window.onbeforeunload=()=>{X.autosave&&pe()};window.save=pe;const _n=window.hardReset=async()=>{await Ze(sA())};window.deleteLowerSaves=()=>{const e=Object.values(P.saves).indexOf(X.id)+1;Object.values(P.saves).slice(e).forEach(A=>localStorage.removeItem(A)),P.saves=P.saves.slice(0,e)};const bA=IA({active:"",saves:[],showTPS:!0,theme:it.Nordic,unthrottled:!1,alignUnits:!1,autoplay:!1,fast:!1,showTutorial:!0,privateRoomName:"",privateRoomPassword:"",victories:0,losses:0});me(bA,e=>{const A=Je.compressToUTF16(JSON.stringify(e));localStorage.setItem(F.id,A)},{deep:!0});var P=window.settings=bA;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:it.Nordic,alignUnits:!1,autoplay:!1,fast:!1,showTutorial:!0,privateRoomName:"",privateRoomPassword:"",victories:0,losses:0};le.emit("loadSettings",e),Object.assign(bA,e),_n()};function $n(){try{let e=localStorage.getItem(F.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Je.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const A=JSON.parse(e);typeof A=="object"&&Object.assign(bA,A)}le.emit("loadSettings",bA)}catch{}}const $t=IA([]);function er(e){$t.push(e)}const Ar=IA([]),tr=IA([]),ar={class:"table"},Et=Y({__name:"Column",setup(e){const A=V(()=>NA[P.theme].mergeAdjacent);return(t,a)=>(p(),Q("div",ar,[d("div",{class:ae(["col",{mergeAdjacent:g(A)}])},[Te(t.$slots,"default")],2)]))}}),nr={class:"table"},Ue=Y({__name:"Row",setup(e){const A=V(()=>NA[P.theme].mergeAdjacent);return(t,a)=>(p(),Q("div",nr,[d("div",{class:ae(["row",{mergeAdjacent:g(A)}])},[Te(t.$slots,"default")],2)]))}});function Be(e,A="span"){return typeof e=="function"?Y({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${A}>${e}</${A}>`),Y({template:e})):Y({render:()=>({})}):e}function _e(e){if(CA(e))return typeof e=="function"?e():Be(e);const A=e[BA];return r(A,e[OA](),null)}function ea(e){if(CA(e))return typeof e=="function"?e():typeof e=="string"?r(D,null,[e]):r(e,null,null);const A=e[BA];return r(A,e[OA](),null)}function CA(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[zA]===!0}function Aa(e,A="div"){const t=Ie();return JA(()=>{t.value=Be(Qe(e),A)}),t}function xA(e,A="div"){const t=Ie(null);return JA(()=>{const a=Qe(e);t.value=a==""||a==null?null:Be(a,A)}),t}function Qe(e){return g(g(e))}function H(...e){return e.includes(Object)||e.push(Object),e}le.on("setupVue",e=>e.use(Ea));function rr(e="white",A="8px"){return{transform:"scale(1.05, 1.05)",borderColor:"rgba(0, 0, 0, 0.125)",boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${A} ${e}`,zIndex:1}}const sr=Y({props:{visibility:{type:H(Number,Boolean),required:!0},display:{type:H(Object,String,Function),required:!0},style:H(String,Object,Array),classes:H(Object),glowColor:H(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:A}){const{display:t,glowColor:a,floating:n}=ye(e),s=Aa(t),l=V(()=>{const c=Qe(a);return c==null||c===""?{}:g(n)?rr(c):{boxShadow:`0px 9px 5px -6px ${c}`}});function o(){A("selectTab")}return{select
${K}
${S}`)}}return C[v]}me(t,v=>{v&&Object.keys(C).forEach(S=>delete C[S])});const h=V(()=>P.saves.reduce((v,S)=>(v[S]=B(S),v),{}));function E(v){let S;switch(X.id===v?S=Yt(X):S=JSON.stringify(h.value[v]),F.exportEncoding){default:console.warn(`Unknown save encoding: ${F.exportEncoding}. Defaulting to lz`);case"lz":S=Je.compressToUTF16(S);break;case"base64":S=btoa(unescape(encodeURIComponent(S)));break;case"plain":break}const K=document.createElement("textarea");K.value=S,document.body.appendChild(K),K.select(),K.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(K)}function I(v){X.id===v&&pe();const S={...h.value[v],id:PA()};pe(S),P.saves.push(S.id)}function b(v){P.saves=P.saves.filter(S=>S!==v),localStorage.removeItem(v),C[v]=void 0}function T(v){h.value[X.id].time=X.time,pe(),C[X.id]=void 0,Ze(h.value[v]),C[v]=void 0}function ee(v){if(l.value=v,qe(()=>{l.value=null}),v[0]!=="{")if(v[0]==="e")v=decodeURIComponent(escape(atob(v)));else if(v[0]==="\u1BE1")v=Je.decompressFromUTF16(v);else{console.warn("Unable to determine preset encoding",v);return}const S=JSON.parse(v);S.id=PA(),pe(S),P.saves.push(S.id),T(S.id)}function L(v,S){const K=h.value[v];K!=null&&(K.name=S,X.id===v?(X.name=S,pe()):(pe(K),C[v]=void 0))}return(v,S)=>(p(),x(Fe,{modelValue:t.value,"onUpdate:modelValue":S[4]||(S[4]=K=>t.value=K),ref_key:"modal",ref:a},{header:G(()=>[co]),body:G(({shown:K})=>[K?(p(),x(g(Ta),{key:0,list:g(P).saves,handle:".handle",itemKey:Ne=>Ne},{item:G(({element:Ne})=>[r(go,{save:g(h)[Ne],onOpen:de=>T(Ne),onExport:de=>E(Ne),onEditName:de=>L(Ne,de),onDuplicate:de=>I(Ne),onDelete:de=>b(Ne)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):R("",!0)]),footer:G(()=>[d("div",mo,[r(QA,{modelValue:s.value,"onUpdate:modelValue":S[0]||(S[0]=K=>s.value=K),title:"Import Save",placeholder:"Paste your save here!",class:ae({importingFailed:n.value})},null,8,["modelValue","class"]),d("div",fo,[vo,d("div",po,[d("button",{class:"button",onClick:S[1]||(S[1]=K=>T(g(sA)().id))},"New Game"),Object.keys(g(c)).length>0?(p(),x(Ml,{key:0,options:g(c),modelValue:l.value,"onUpdate:modelValue":S[2]||(S[2]=K=>ee(K)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):R("",!0)])]),d("div",Co,[ho,d("button",{class:"button modal-default-button",onClick:S[3]||(S[3]=K=>t.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var ia=$(Bo,[["__scopeId","data-v-5b5b1604"]]);const Ge=e=>(Xe("data-v-6fe7fdfe"),e=e(),Ye(),e),Eo=["src","alt"],bo={key:1,class:"title"},Qo=Ge(()=>d("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),yo={class:"discord"},Io={class:"discord-links"},No={key:0},So=["href"],wo=Ge(()=>d("li",null,[d("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),To=Ge(()=>d("span",{class:"material-icons"},"info",-1)),Ro=Ge(()=>d("span",{class:"material-icons"},"help",-1)),Uo=Ge(()=>d("span",{class:"material-icons"},"settings",-1)),Po=Ge(()=>d("span",{class:"material-icons"},"settings",-1)),ko=Ge(()=>d("span",{class:"material-icons"},"info",-1)),Go={href:"https://forums.moddingtree.com/",target:"_blank"},zo=Ge(()=>d("span",{class:"material-icons"},"forum",-1)),Do={class:"discord"},Vo={class:"discord-links"},Mo={key:0},Jo=["href"],Oo=Ge(()=>d("li",null,[d("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),qo=Y({__name:"Nav",setup(e){const A=y(null),t=y(null),a=y(null),n=y(null),{useHeader:s,banner:l,title:o,discordName:c,discordLink:C,versionNumber:B}=F;function h(){window.open(C,"mywindow")}return(E,I)=>(p(),Q(D,null,[g(s)?(p(),Q("div",uA({key:0,class:"nav"},E.$attrs),[g(l)?(p(),Q("img",{key:0,src:g(l),class:"banner",alt:g(o)},null,8,Eo)):(p(),Q("div",bo,O(g(o)),1)),d("div",{onClick:I[0]||(I[0]=b=>{var T;return(T=n.value)==null?void 0:T.open()}),class:"version-container"},[r(W,{display:"Changelog",direction:g(Z).Down,class:"version"},{default:G(()=>[d("span",null,"v"+O(g(B)),1)]),_:1},8,["direction"])]),Qo,d("div",yo,[d("span",{onClick:h,class:"material-ic
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 kA(()=>Promise.resolve().then(function(){return Pn}),void 0),{startGameLoop:A}=await kA(()=>import("./gameLoop.ce98c402.js"),["assets/gameLoop.ce98c402.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/vue-toastification.b7cd620e.js","assets/vue-toastification.4b5f8ac8.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/@pixi.1eac1889.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.e51cb87b.js","assets/querystring.23ae9a54.js","assets/vuedraggable.c3acdf62.js","assets/sortablejs.cbae5b2d.js","assets/vue-next-select.0dc4e443.js","assets/vue-next-select.9e6f4164.css","assets/workbox-window.8d14e8b7.js"]),t=window.vue=Ba(vu);e.emit("setupVue",t),t.mount("#app"),qe(()=>{const a=Gt(),{updateServiceWorker:n}=Cu({onNeedRefresh(){a.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(){n()}})},onOfflineReady(){a.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(s){s&&setInterval(()=>s.update(),60*60*1e3)}})}),A()});export{N as D,kA as _,se as a,F as b,Ul as c,le as g,Zn as l,X as p,P as s};