16 lines
222 KiB
JavaScript
16 lines
222 KiB
JavaScript
|
/* empty css */import"./vue.f6263579.js";import{Z as V,C as c,q as Tt,u as fA,j as ya,l as de,bv as $t,t as I,a8 as r,aa as x,ay as xt,ar as Ye,aE as C,a0 as Q,aK as Ue,a1 as d,O as G,aG as Pt,A as Ee,_ as X,b6 as D,b8 as Xt,bs as Qa,aq as mt,bu as yt,bb as xA,T as Ia,a7 as u,b1 as oe,G as ae,w as Se,b2 as Yt,aN as fe,I as Pe,$ as k,aL as eA,aJ as XA,J as q,aH as Fe,aF as We,z as Ke,bo as Na,au as wa,al as NA,aC as Sa,bc as Dt,ao as Ta,br as ka,bn as Ua,be as Pa}from"./@vue.4ce677c2.js";import{c as YA}from"./nanoevents.1080beb7.js";import{L as xe}from"./lz-string.f2f3b7cf.js";import{s as Da,u as KA}from"./vue-toastification.b7cd620e.js";import{p as za}from"./vue-textarea-autosize.35804eaf.js";import{s as Ra}from"./semver.83ff78cf.js";import{l as Ga}from"./socket.io-client.79ce0df5.js";import{A as FA,T as Va,R as Ja,B as Ma,u as qa,E as wA}from"./@pixi.1eac1889.js";import{D as Oa}from"./vuedraggable.c3acdf62.js";import{Y as xa}from"./vue-next-select.0dc4e443.js";import{v as Xa,n as Ya}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 t=document.createElement("link").relList;if(t&&t.supports&&t.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 A(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=A(n);fetch(n.href,s)}};Ka();const Fa="modulepreload",SA={},Wa="./",Vt=function(t,A){return!A||A.length===0?t():Promise.all(A.map(a=>{if(a=`${Wa}${a}`,a in SA)return;SA[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":Fa,n||(l.as="script",l.crossOrigin=""),l.href=a,document.head.appendChild(l),n)return new Promise((o,g)=>{l.addEventListener("load",o),l.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())},La="./projInfo-schema.json",ja="Super Auto Coots",Ha="A project made in Profectus",Za="superautocoots",_a="",$a="",en="",tn="0.0.0",An="Initial Commit",an=!1,nn=!1,rn=2,sn=!0,ln=null,on="",un=["main"],cn=3600,gn=1,mn=!0,dn="base64";var W={$schema:La,title:ja,description:Ha,id:Za,author:_a,discordName:$a,discordLink:en,versionNumber:tn,versionTitle:An,allowGoBack:an,defaultShowSmall:nn,defaultDecimalsShown:rn,useHeader:sn,banner:ln,logo:on,initialTabs:un,maxTickLength:cn,offlineLimit:gn,enablePausing:mn,exportEncoding:dn};class fn{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 a=new vn(t,A);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(t,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 vn{constructor(t,A){this.next=void 0,this.prev=void 0,this.key=t,this.value=A}}const Ht=17,pn=9e15,Cn=Math.log10(9e15),hn
|
||
|
`).slice(3,5).map(A=>A.trim()).join(`
|
||
|
`))!=null?t:""}function zA(e,t){var A;if(N.isNaN(t))throw se.hasNaN||(Y.autosave=!1,se.hasNaN=!0,se.NaNPath=e[et],se.NaNPersistent=e),console.error("Attempted to save NaN value to",(A=e[et])==null?void 0:A.join("."),e),"Attempted to set NaN value. See above for details";e[it].value=t}function Aa(e,t=!0){const A=de(e)?e:I(e);de(e)&&(e=e.value);const a=V({get(){return A.value},set(s){t?zA(n,s):n[it].value=s}});a[dt]=e;const n={get value(){return A.value},set value(s){t?zA(n,s):n[it].value=s},__v_isRef:!0,[it]:A,[dt]:e,[Ot]:Fn(),[AA]:!1,[aA]:a,[et]:void 0};return Ie.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",n,`
|
||
|
Created at:
|
||
|
`+n[Ot]):lt[Ie[Ie.length-1]].add(n),n}function Wn(e){return e!=null&&typeof e=="object"&&it in e}ue.on("addLayer",(e,t)=>{const A=[],a=(n,s=[])=>{let l=!1;return Object.keys(n).forEach(o=>{let g=n[o];if(g!=null&&typeof g=="object")if($e in g&&(g=g[$e]),Wn(g)){if(l=!0,g[AA]){console.warn("Deleted persistent ref present in returned object. Ignoring...",g,`
|
||
|
Created at:
|
||
|
`+g[Ot]);return}lt[e.id].delete(g);const p=[e.id,...s,o];g[et]!=null&&JSON.stringify(p)!==JSON.stringify(g[et])&&console.error(`Persistent ref is being saved to \`${p.join(".")}\` when it's already present at \`${g[et].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,g),g[et]=p;const B=s.reduce((E,y)=>(y in E||(E[y]={}),E[y]),t),h=B[o];B[o]=g[it],ya(B)?h!=null?B[o]=h:B[o]=g[dt]:h!=null?B[o].value=h:B[o].value=g[dt]}else!(g instanceof N)&&!de(g)&&!A.includes(g)&&(typeof g.type=="symbol"&&A.push(g),a(g,[...s,o])&&($t(g)&&!$t(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.",$e in n?n[$e]:n,o):l=!0))}),l};a(e[$e]),lt[e.id].forEach(n=>{n[AA]||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[Ot])}),lt[e.id].clear()});const CA=Symbol("RegisterNode"),hA=Symbol("UnregisterNode"),aa=Symbol("Nodes"),na=Symbol("Bounds"),me=fA({});window.layers=me;const lt={},Ie=[];function ra(e,t){return Ft(()=>{const A={},a=A.emitter=YA();if(A.on=a.on.bind(a),A.emit=a.emit.bind(a),A.nodes=I({}),A.id=e,Ie.push(e),lt[e]=new Set,A.minimized=Aa(!1,!1),Object.assign(A,t.call(A)),Ie[Ie.length-1]==null||Ie[Ie.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
|
||
|
Stack: ${Ie}
|
||
|
Trying to pop ${A.id}`;Ie.pop(),Ae(A,"color"),Ae(A,"display"),Ae(A,"classes"),Ae(A,"style"),Ae(A,"name"),at(A,"name",A.id),Ae(A,"minWidth"),at(A,"minWidth",600),Ae(A,"minimizable"),at(A,"minimizable",!0),Ae(A,"minimizedDisplay");const n=A.style;return A.style=V(()=>{var l,o;let s=c(A.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(l=c(n))!=null?l:"",(o=A.minimized)!=null&&o.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:s,flexBasis:s,margin:""}]}),A})}function sa(e,t){if(console.info("Adding layer",e.id),me[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,me[e.id]);return}at(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),me[e.id]=e,ue.emit("addLayer",e,t.layers[e.id])}function Ln(e){return me[e]}function ia(e){console.info("Removing layer",e.id),ue.emit("removeLayer",e),me[e.id]=void 0}function jn(e){ia(e),sa(e,Y)}function Hn(e){const t=I(!1);return{openModal:()=>t.value=!0,modal:z(()=>r(Le,{modelValue:t.value,"onUpdate:modelValue":A=>t.value=A},{header:()=>r("h2",null,[c(e.name)]),body:c(e.display)}))}}ue.on("update",function(t){Object.values(me).forEach(A=>{A==null||A.emit("preUpdate",t)}),Object.values(me).forEach(A=>{A==null||A.emit("update",t)}),Object.values(me).forEach(A=>{A==null||A.emit("postUpdate",t)})});var Zn=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:CA,UnregisterNodeInjectionKey:hA,NodesInjectionKey:aa,BoundsInjectionKey:na,layers:me,persistentRefs:lt,addingLayers:Ie,createLayer:ra,addLayer:sa,getLayer:Ln,removeLayer:ia,reloadLayer:jn,setupLayerModal:Hn},Symbol.toStringTag,{value:"Module"}));var _=(e,t)=>{const A=e.__vccOpts||e;for(const[a,n]of t)A[a]=n;return A};const _n=x({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var B;const A=I({}),a=new ResizeObserver(o),n=I(null);xt(()=>{const h=n.value;h!=null&&a.observe(h)});let s=!0,l=I((B=n.value)==null?void 0:B.getBoundingClientRect());function o(){s&&(s=!1,Ye(()=>{var h;l.value=(h=n.value)==null?void 0:h.getBoundingClientRect(),Object.values(A.value).filter(E=>E).forEach(E=>E.rect=E.element.getBoundingClientRect()),t("updateNodes",A.value),s=!0}))}ue.on("fontsLoaded",o);const g={attributes:!1,childList:!0,subtree:!1};Pt(CA,(h,E)=>{const y=new MutationObserver(()=>p(h));y.observe(E,g),A.value[h]={element:E,observer:y,rect:E.getBoundingClientRect()},o()}),Pt(hA,h=>{var E;(E=A.value[h])==null||E.observer.disconnect(),A.value[h]=void 0,o()}),Pt(aa,A),Pt(na,l);function p(h){const E=A.value[h];E!=null&&(E.rect=E.element.getBoundingClientRect(),t("updateNodes",A.value))}return(h,E)=>(C(),Q(G,null,[Ue(h.$slots,"default",{},void 0,!0),d("div",{ref_key:"resizeListener",ref:n,class:"resize-listener"},null,512)],64))}});var la=_(_n,[["__scopeId","data-v-2b1dc1bc"]]);const $n=["onPointerdown"],er={class:"modal-wrapper"},tr={class:"modal-container"},Ar={class:"modal-header"},ar=u(" default header "),nr={class:"modal-body"},rr=u(" default body "),sr={class:"modal-footer"},ir=d("div",{class:"modal-default-flex-grow"},null,-1),Le=x({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:A}){const n=Ee(e),s=V(()=>c(n.modelValue)||o.value);function l(){A("update:modelValue",!1)}const o=I(!1),g=I(null),p=V(()=>{var B,h;return(h=(B=g.value)==null?void 0:B.nodes)!=null?h:null});return t({isOpen:s,nodes:p}),(B,h)=>(C(),X(Ia,{to:"#modal-root"},[r(xA,{name:"modal",onBeforeEnter:h[0]||(h[0]=E=>o.value=!0),onAfterLeave:h[1]||(h[1]=E=>o.value=!1)},{default:D(()=>[Xt(d("div",mt({class:"modal-mask",onPointerdown:yt(l,["self"])},B.$attrs),[d("div",er,[d("div",tr,[d("div",Ar,[Ue(B.$slots,"header",{shown:c(s)},()=>[ar])]),d("div",nr,[r(la,{ref_key:"contextRef",ref:g},{default:D(()=>[Ue(B.$slots,"body",{shown:c(s)},()=>[rr])]),_:3},512)]),d("div",sr,[Ue(B.$slots,"footer",{shown:c(s)},()=>[d("div",{class:"modal-default-footer"},[ir,d("button",{class:"button modal-default-button",onClick:l}," Close ")])])])])])],16,$n),[[Qa,e.modelValue]])]),_:3})])
|
||
|
`,e),await tt(ot())}}function ot(){const e=Gt(),t=oa({id:e});return Be(t),U.saves.push(e),t}function Gt(){let e,t=0;do e=`${W.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const or=I(!1);async function tt(e){console.info("Loading save",e),or.value=!0;const{layers:t,removeLayer:A,addLayer:a}=await Vt(()=>Promise.resolve().then(function(){return Zn}),void 0),{fixOldSave:n,getInitialLayers:s}=await Vt(()=>Promise.resolve().then(function(){return Xl}),void 0);for(const l in t){const o=t[l];o&&A(o)}s(e).forEach(l=>a(l,e)),e=oa(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,W.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==W.versionNumber&&(n(e.modVersion,e),e.modVersion=W.versionNumber),Object.assign(Y,e),U.active=Y.id,ue.emit("onLoad")}setInterval(()=>{Y.autosave&&Be()},1e3);window.onbeforeunload=()=>{Y.autosave&&Be()};window.save=Be;const ur=window.hardReset=async()=>{await tt(ot())};window.deleteLowerSaves=()=>{const e=Object.values(U.saves).indexOf(Y.id)+1;Object.values(U.saves).slice(e).forEach(t=>localStorage.removeItem(t)),U.saves=U.saves.slice(0,e)};const Nt=Tt({active:"",saves:[],showTPS:!0,theme:BA.Nordic,unthrottled:!1,alignUnits:!1,autoplay:!1,fast:!1,showTutorial:!0,privateRoomName:"",privateRoomPassword:"",victories:0,losses:0,sfxVolume:1,bgmVolume:1});oe(Nt,e=>{const t=xe.compressToUTF16(JSON.stringify(e));localStorage.setItem(W.id,t)},{deep:!0});var U=window.settings=Nt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:BA.Nordic,alignUnits:!1,autoplay:!1,fast:!1,showTutorial:!0,privateRoomName:"",privateRoomPassword:"",victories:0,losses:0};ue.emit("loadSettings",e),Object.assign(Nt,e),ur()};function cr(){try{let e=localStorage.getItem(W.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=xe.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(Nt,t)}ue.emit("loadSettings",Nt)}catch{}}const ua=Tt([]);function gr(e){ua.push(e)}const mr=Tt([]),dr=Tt([]),fr={class:"table"},RA=x({__name:"Column",setup(e){const t=V(()=>kt[U.theme].mergeAdjacent);return(A,a)=>(C(),Q("div",fr,[d("div",{class:ae(["col",{mergeAdjacent:c(t)}])},[Ue(A.$slots,"default")],2)]))}}),vr={class:"table"},De=x({__name:"Row",setup(e){const t=V(()=>kt[U.theme].mergeAdjacent);return(A,a)=>(C(),Q("div",vr,[d("div",{class:ae(["row",{mergeAdjacent:c(t)}])},[Ue(A.$slots,"default")],2)]))}});function ye(e,t="span"){return typeof e=="function"?x({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),x({template:e})):x({render:()=>({})}):e}function At(e){if(Et(e))return typeof e=="function"?e():ye(e);const t=e[Qt];return r(t,e[Kt](),null)}function ca(e){if(Et(e))return typeof e=="function"?e():typeof e=="string"?r(G,null,[e]):r(e,null,null);const t=e[Qt];return r(t,e[Kt](),null)}function Et(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 ga(e,t="div"){const A=Se();return Yt(()=>{A.value=ye(we(e),t)}),A}function Wt(e,t="div"){const A=Se(null);return Yt(()=>{const a=we(e);A.value=a==""||a==null?null:ye(a,t)}),A}function we(e){return c(c(e))}function Z(...e){return e.includes(Object)||e.push(Object),e}ue.on("setupVue",e=>e.use(Da));function pr(e="white",t="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 ${t} ${e}`,zIndex:1}}const Cr=x({props:{visibility:{type:Z(Number,Boolean),required:!0},display:{type:Z(Object,String,Function),required:!0},style:Z(String,Object,Array),classes:Z(Object),glowColor:Z(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:t}){const{display:A,glowColor:a,floating:n}=Ee(e),s=ga(A),l=V(()=>{const g=we(a);return g==null||g===""?{}:c(n)?pr(g):{boxShadow:`0px 9px 5px -6px ${g}`}});function o(){t("s
|
||
|
${L}
|
||
|
${w}`)}}return p[v]}oe(A,v=>{v&&Object.keys(p).forEach(w=>delete p[w])});const h=V(()=>U.saves.reduce((v,w)=>(v[w]=B(w),v),{}));function E(v){let w;switch(Y.id===v?w=ta(Y):w=JSON.stringify(h.value[v]),W.exportEncoding){default:console.warn(`Unknown save encoding: ${W.exportEncoding}. Defaulting to lz`);case"lz":w=xe.compressToUTF16(w);break;case"base64":w=btoa(unescape(encodeURIComponent(w)));break;case"plain":break}const L=document.createElement("textarea");L.value=w,document.body.appendChild(L),L.select(),L.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(L)}function y(v){Y.id===v&&Be();const w={...h.value[v],id:Gt()};Be(w),U.saves.push(w.id)}function b(v){U.saves=U.saves.filter(w=>w!==v),localStorage.removeItem(v),p[v]=void 0}function T(v){h.value[Y.id].time=Y.time,Be(),p[Y.id]=void 0,tt(h.value[v]),p[v]=void 0}function ee(v){if(l.value=v,Ye(()=>{l.value=null}),v[0]!=="{")if(v[0]==="e")v=decodeURIComponent(escape(atob(v)));else if(v[0]==="\u1BE1")v=xe.decompressFromUTF16(v);else{console.warn("Unable to determine preset encoding",v);return}const w=JSON.parse(v);w.id=Gt(),Be(w),U.saves.push(w.id),T(w.id)}function j(v,w){const L=h.value[v];L!=null&&(L.name=w,Y.id===v?(Y.name=w,Be()):(Be(L),p[v]=void 0))}return(v,w)=>(C(),X(Le,{modelValue:A.value,"onUpdate:modelValue":w[4]||(w[4]=L=>A.value=L),ref_key:"modal",ref:a},{header:D(()=>[To]),body:D(({shown:L})=>[L?(C(),X(c(Oa),{key:0,list:c(U).saves,handle:".handle",itemKey:Te=>Te},{item:D(({element:Te})=>[r(So,{save:c(h)[Te],onOpen:pe=>T(Te),onExport:pe=>E(Te),onEditName:pe=>j(Te,pe),onDuplicate:pe=>y(Te),onDelete:pe=>b(Te)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):k("",!0)]),footer:D(()=>[d("div",ko,[r(wt,{modelValue:s.value,"onUpdate:modelValue":w[0]||(w[0]=L=>s.value=L),title:"Import Save",placeholder:"Paste your save here!",class:ae({importingFailed:n.value})},null,8,["modelValue","class"]),d("div",Uo,[Po,d("div",Do,[d("button",{class:"button",onClick:w[1]||(w[1]=L=>T(c(ot)().id))},"New Game"),Object.keys(c(g)).length>0?(C(),X(eo,{key:0,options:c(g),modelValue:l.value,"onUpdate:modelValue":w[2]||(w[2]=L=>ee(L)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):k("",!0)])]),d("div",zo,[Ro,d("button",{class:"button modal-default-button",onClick:w[3]||(w[3]=L=>A.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Ca=_(Go,[["__scopeId","data-v-5b5b1604"]]);const Ve=e=>(Fe("data-v-6fe7fdfe"),e=e(),We(),e),Vo=["src","alt"],Jo={key:1,class:"title"},Mo=Ve(()=>d("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),qo={class:"discord"},Oo={class:"discord-links"},xo={key:0},Xo=["href"],Yo=Ve(()=>d("li",null,[d("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Ko=Ve(()=>d("span",{class:"material-icons"},"info",-1)),Fo=Ve(()=>d("span",{class:"material-icons"},"help",-1)),Wo=Ve(()=>d("span",{class:"material-icons"},"settings",-1)),Lo=Ve(()=>d("span",{class:"material-icons"},"settings",-1)),jo=Ve(()=>d("span",{class:"material-icons"},"info",-1)),Ho={href:"https://forums.moddingtree.com/",target:"_blank"},Zo=Ve(()=>d("span",{class:"material-icons"},"forum",-1)),_o={class:"discord"},$o={class:"discord-links"},eu={key:0},tu=["href"],Au=Ve(()=>d("li",null,[d("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),au=x({__name:"Nav",setup(e){const t=I(null),A=I(null),a=I(null),n=I(null),{useHeader:s,banner:l,title:o,discordName:g,discordLink:p,versionNumber:B}=W;function h(){window.open(p,"mywindow")}return(E,y)=>(C(),Q(G,null,[c(s)?(C(),Q("div",mt({key:0,class:"nav"},E.$attrs),[c(l)?(C(),Q("img",{key:0,src:c(l),class:"banner",alt:c(o)},null,8,Vo)):(C(),Q("div",Jo,q(c(o)),1)),d("div",{onClick:y[0]||(y[0]=b=>{var T;return(T=n.value)==null?void 0:T.open()}),class:"version-container"},[r(F,{display:"Changelog",direction:c(H).Down,class:"version"},{default:D(()=>[d("span",null,"v"+q(c(B)),1)]),_:1},8,["direction"])]),Mo,d("div",qo,[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 lr();const{globalBus:e}=await Vt(()=>Promise.resolve().then(function(){return Yn}),void 0),{startGameLoop:t}=await Vt(()=>import("./gameLoop.17e55cd3.js"),["assets/gameLoop.17e55cd3.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"]),A=window.vue=Pa(Pu);e.emit("setupVue",A),A.mount("#app"),Ye(()=>{const a=KA(),{updateServiceWorker:n}=zu({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)}})}),t()});export{N as D,Vt as _,se as a,W as b,Xl as c,ue as g,or as l,Y as p,U as s};
|