From 08179418f9b9d1dc924c4a3edc48ec2f9b9e3961 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 22 Apr 2023 00:51:13 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20thepaper?= =?UTF-8?q?pilot/Planar-Pioneers@0f68a188c9829f52368ebdcb15a55c0bc9ddea0c?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/amator.1e5a40c8.js | 1 + assets/bezier-easing.a990b400.js | 1 + assets/gameLoop.9e3763f2.js | 1 + assets/gameLoop.daa88598.js | 1 - ...{index.e49d00cd.css => index.4aba14bb.css} | 2 +- assets/index.4e9c6b0b.js | 15 ------------- assets/index.aef2425c.js | 18 +++++++++++++++ assets/lz-string.bfbf8ec3.js | 1 - assets/lz-string.dccec454.js | 1 + assets/ngraph.events.083734c6.js | 1 + assets/panzoom.30c56ba6.js | 2 ++ ...ejs.32c18112.js => sortablejs.a0f68e5e.js} | 2 +- ...a1e8cf3.js => vue-next-select.f5f69b1a.js} | 2 +- assets/vue-panzoom.89be130f.js | 1 + ...60a1.js => vue-toastification.5231d1bd.js} | 2 +- assets/vue.804e2479.js | 1 + assets/vue.af9696a7.js | 1 - ...e.d64f1a1f.js => vuedraggable.ce650350.js} | 2 +- assets/wheel.f2ae740f.js | 1 + index.html | 22 ++++++++++++------- manifest.webmanifest | 2 +- sw.js | 2 +- 22 files changed, 49 insertions(+), 33 deletions(-) create mode 100644 assets/amator.1e5a40c8.js create mode 100644 assets/bezier-easing.a990b400.js create mode 100644 assets/gameLoop.9e3763f2.js delete mode 100644 assets/gameLoop.daa88598.js rename assets/{index.e49d00cd.css => index.4aba14bb.css} (72%) delete mode 100644 assets/index.4e9c6b0b.js create mode 100644 assets/index.aef2425c.js delete mode 100644 assets/lz-string.bfbf8ec3.js create mode 100644 assets/lz-string.dccec454.js create mode 100644 assets/ngraph.events.083734c6.js create mode 100644 assets/panzoom.30c56ba6.js rename assets/{sortablejs.32c18112.js => sortablejs.a0f68e5e.js} (99%) rename assets/{vue-next-select.7a1e8cf3.js => vue-next-select.f5f69b1a.js} (99%) create mode 100644 assets/vue-panzoom.89be130f.js rename assets/{vue-toastification.1b0160a1.js => vue-toastification.5231d1bd.js} (99%) create mode 100644 assets/vue.804e2479.js delete mode 100644 assets/vue.af9696a7.js rename assets/{vuedraggable.d64f1a1f.js => vuedraggable.ce650350.js} (63%) create mode 100644 assets/wheel.f2ae740f.js diff --git a/assets/amator.1e5a40c8.js b/assets/amator.1e5a40c8.js new file mode 100644 index 0000000..f8ac472 --- /dev/null +++ b/assets/amator.1e5a40c8.js @@ -0,0 +1 @@ +import{s as j}from"./bezier-easing.a990b400.js";var I=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function P(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),t}var v={exports:{}},l=j,b={ease:l(.25,.1,.25,1),easeIn:l(.42,0,1,1),easeOut:l(0,0,.58,1),easeInOut:l(.42,0,.58,1),linear:l(0,0,1,1)};v.exports=F;v.exports.makeAggregateRaf=y;v.exports.sharedScheduler=y();function F(e,t,n){var a=Object.create(null),o=Object.create(null);n=n||{};var i=typeof n.easing=="function"?n.easing:b[n.easing];i||(n.easing&&console.warn("Unknown easing function in amator: "+n.easing),i=b.ease);var d=typeof n.step=="function"?n.step:h,u=typeof n.done=="function"?n.done:h,c=E(n.scheduler),w=Object.keys(t);w.forEach(function(r){a[r]=e[r],o[r]=t[r]-e[r]});var x=typeof n.duration=="number"?n.duration:400,g=Math.max(1,x*.06),f,s=0;return f=c.next(p),{cancel:O};function O(){c.cancel(f),f=0}function p(){var r=i(s/g);s+=1,A(r),s<=g?(f=c.next(p),d(e)):(f=0,setTimeout(function(){u(e)},0))}function A(r){w.forEach(function(m){e[m]=o[m]*r+a[m]})}}function h(){}function E(e){if(!e){var t=typeof window!="undefined"&&window.requestAnimationFrame;return t?S():T()}if(typeof e.next!="function")throw new Error("Scheduler is supposed to have next(cb) function");if(typeof e.cancel!="function")throw new Error("Scheduler is supposed to have cancel(handle) function");return e}function S(){return{next:window.requestAnimationFrame.bind(window),cancel:window.cancelAnimationFrame.bind(window)}}function T(){return{next:function(e){return setTimeout(e,1e3/60)},cancel:function(e){return clearTimeout(e)}}}function y(){var e=new Set,t=new Set,n=0;return{next:o,cancel:o,clearAll:a};function a(){e.clear(),t.clear(),cancelAnimationFrame(n),n=0}function o(u){t.add(u),i()}function i(){n||(n=requestAnimationFrame(d))}function d(){n=0;var u=t;t=e,e=u,e.forEach(function(c){c()}),e.clear()}}export{v as a,M as b,I as c,P as g}; diff --git a/assets/bezier-easing.a990b400.js b/assets/bezier-easing.a990b400.js new file mode 100644 index 0000000..7b1ce50 --- /dev/null +++ b/assets/bezier-easing.a990b400.js @@ -0,0 +1 @@ +var y=4,z=.001,_=1e-7,d=10,l=11,S=1/(l-1),h=typeof Float32Array=="function";function N(e,r){return 1-3*r+3*e}function E(e,r){return 3*r-6*e}function O(e){return 3*e}function c(e,r,n){return((N(r,n)*e+E(r,n))*e+O(r))*e}function b(e,r,n){return 3*N(r,n)*e*e+2*E(r,n)*e+O(r)}function B(e,r,n,t,o){var i,u,I=0;do u=r+(n-r)/2,i=c(u,t,o)-e,i>0?n=u:r=u;while(Math.abs(i)>_&&++I=z?F(v,p,r,t):s===0?p:B(v,a,a+S,r,t)}return function(a){return a===0?0:a===1?1:c(I(a),n,o)}};export{M as s}; diff --git a/assets/gameLoop.9e3763f2.js b/assets/gameLoop.9e3763f2.js new file mode 100644 index 0000000..65467c2 --- /dev/null +++ b/assets/gameLoop.9e3763f2.js @@ -0,0 +1 @@ +import{_ as d,s as p,p as e,a as o,l as T,D as l,b as m,g as u}from"./index.aef2425c.js";import"./vue.804e2479.js";import{b2 as c}from"./@vue.6f8187b0.js";/* empty css */import"./nanoevents.1080beb7.js";import"./lz-string.dccec454.js";import"./vue-next-select.f5f69b1a.js";import"./vuedraggable.ce650350.js";import"./amator.1e5a40c8.js";import"./bezier-easing.a990b400.js";import"./sortablejs.a0f68e5e.js";import"./vue-textarea-autosize.35804eaf.js";import"./vue-panzoom.89be130f.js";import"./panzoom.30c56ba6.js";import"./wheel.f2ae740f.js";import"./ngraph.events.083734c6.js";import"./vue-toastification.5231d1bd.js";let n=null,f=null;function a(){const t=Date.now();let i=(t-e.time)/1e3;e.time=t;const r=i;if(o.lastTenTicks.push(r),o.lastTenTicks.length>10&&(o.lastTenTicks=o.lastTenTicks.slice(1)),!((f==null?void 0:f.value)&&!e.keepGoing)&&!o.hasNaN&&(i=Math.max(i,0),e.devSpeed!==0)){if(T.value=!1,e.offlineTime!=null){if(l.gt(e.offlineTime,m.offlineLimit*3600)&&(e.offlineTime=m.offlineLimit*3600),l.gt(e.offlineTime,0)&&e.devSpeed!==0){const s=Math.max(e.offlineTime/10,i);e.offlineTime=e.offlineTime-s,i+=s}else e.devSpeed===0&&(e.offlineTime+=i);(!e.offlineProd||l.lt(e.offlineTime,0))&&(e.offlineTime=null)}i=Math.min(i,m.maxTickLength),e.devSpeed!=null&&(i*=e.devSpeed),Number.isFinite(i)||(i=1e308),!l.eq(i,0)&&(e.timePlayed+=i,Number.isFinite(e.timePlayed)||(e.timePlayed=1e308),u.emit("update",i,r),p.unthrottled?(requestAnimationFrame(a),n!=null&&(clearInterval(n),n=null)):n==null&&(n=setInterval(a,50)))}}async function A(){f=(await d(()=>import("./index.aef2425c.js").then(function(t){return t.c}),["assets/index.aef2425c.js","assets/index.4aba14bb.css","assets/@fontsource.f66d05e7.css","assets/vue.804e2479.js","assets/amator.1e5a40c8.js","assets/bezier-easing.a990b400.js","assets/@vue.6f8187b0.js","assets/nanoevents.1080beb7.js","assets/lz-string.dccec454.js","assets/vue-next-select.f5f69b1a.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.ce650350.js","assets/sortablejs.a0f68e5e.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-panzoom.89be130f.js","assets/panzoom.30c56ba6.js","assets/wheel.f2ae740f.js","assets/ngraph.events.083734c6.js","assets/vue-toastification.5231d1bd.js","assets/vue-toastification.4b5f8ac8.css"])).hasWon,c(f,t=>{t&&u.emit("gameWon")}),p.unthrottled?requestAnimationFrame(a):n=setInterval(a,50)}export{A as startGameLoop}; diff --git a/assets/gameLoop.daa88598.js b/assets/gameLoop.daa88598.js deleted file mode 100644 index 16afc0d..0000000 --- a/assets/gameLoop.daa88598.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as d,s as u,p as e,a as f,l as T,D as a,b as m,g as p}from"./index.4e9c6b0b.js";import"./vue.af9696a7.js";import{b2 as c}from"./@vue.6f8187b0.js";/* empty css */import"./nanoevents.1080beb7.js";import"./lz-string.bfbf8ec3.js";import"./vue-next-select.7a1e8cf3.js";import"./vuedraggable.d64f1a1f.js";import"./sortablejs.32c18112.js";import"./vue-textarea-autosize.35804eaf.js";import"./vue-toastification.1b0160a1.js";let n=null,l=null;function o(){const t=Date.now();let i=(t-e.time)/1e3;e.time=t;const r=i;if(f.lastTenTicks.push(r),f.lastTenTicks.length>10&&(f.lastTenTicks=f.lastTenTicks.slice(1)),!((l==null?void 0:l.value)&&!e.keepGoing)&&!f.hasNaN&&(i=Math.max(i,0),e.devSpeed!==0)){if(T.value=!1,e.offlineTime!=null){if(a.gt(e.offlineTime,m.offlineLimit*3600)&&(e.offlineTime=m.offlineLimit*3600),a.gt(e.offlineTime,0)&&e.devSpeed!==0){const s=Math.max(e.offlineTime/10,i);e.offlineTime=e.offlineTime-s,i+=s}else e.devSpeed===0&&(e.offlineTime+=i);(!e.offlineProd||a.lt(e.offlineTime,0))&&(e.offlineTime=null)}i=Math.min(i,m.maxTickLength),e.devSpeed!=null&&(i*=e.devSpeed),Number.isFinite(i)||(i=1e308),!a.eq(i,0)&&(e.timePlayed+=i,Number.isFinite(e.timePlayed)||(e.timePlayed=1e308),p.emit("update",i,r),u.unthrottled?(requestAnimationFrame(o),n!=null&&(clearInterval(n),n=null)):n==null&&(n=setInterval(o,50)))}}async function L(){l=(await d(()=>import("./index.4e9c6b0b.js").then(function(t){return t.c}),["assets/index.4e9c6b0b.js","assets/index.e49d00cd.css","assets/@fontsource.f66d05e7.css","assets/vue.af9696a7.js","assets/lz-string.bfbf8ec3.js","assets/@vue.6f8187b0.js","assets/nanoevents.1080beb7.js","assets/vue-next-select.7a1e8cf3.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.d64f1a1f.js","assets/sortablejs.32c18112.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-toastification.1b0160a1.js","assets/vue-toastification.4b5f8ac8.css"])).hasWon,c(l,t=>{t&&p.emit("gameWon")}),u.unthrottled?requestAnimationFrame(o):n=setInterval(o,50)}export{L as startGameLoop}; diff --git a/assets/index.e49d00cd.css b/assets/index.4aba14bb.css similarity index 72% rename from assets/index.e49d00cd.css rename to assets/index.4aba14bb.css index 339fe11..422ddb8 100644 --- a/assets/index.e49d00cd.css +++ b/assets/index.4aba14bb.css @@ -1 +1 @@ -.table{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;max-width:100%;margin:0 auto}.table+.table{margin-top:10px}.row{display:flex;flex-flow:row wrap;justify-content:center;align-items:stretch;max-width:100%;margin:0 10px}.row>:not(.feature){margin:0;display:flex}.col{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;height:100%;margin:10px 0}.row.mergeAdjacent>.feature:not(.dontMerge),.row.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin-left:0;margin-right:0;border-radius:0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child,.row.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:var(--border-radius) 0 0 var(--border-radius)}.row.mergeAdjacent>.feature:not(.dontMerge):last-child,.row.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0 var(--border-radius) var(--border-radius) 0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child:last-child,.row.mergeAdjacent>.tooltip-container:first-child:last-child>.feature:not(.dontMerge){border-radius:var(--border-radius)}.row-grid.mergeAdjacent>.feature:not(.dontMerge),.row-grid.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin:0;border-radius:0}.row-grid.mergeAdjacent>.feature:not(.dontMerge):last-child,.row-grid.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0}.row-grid.mergeAdjacent>.feature:not(.dontMerge):first-child,.row-grid.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:0}.table-grid>.row-grid.mergeAdjacent:last-child>.feature:not(.dontMerge):first-child{border-radius:0 0 0 var(--border-radius)}.table-grid>.row-grid.mergeAdjacent:first-child>.feature:not(.dontMerge):last-child{border-radius:0 var(--border-radius) 0 0}.table-grid>.row-grid.mergeAdjacent:first-child>.feature:not(.dontMerge):first-child{border-radius:var(--border-radius) 0 0 0}.table-grid>.row-grid.mergeAdjacent:last-child>.feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) 0}.col.mergeAdjacent .feature:not(.dontMerge){margin-top:0;margin-bottom:0;border-radius:0}.col.mergeAdjacent .feature:not(.dontMerge):first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.col.mergeAdjacent .feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge):first-child:last-child{border-radius:var(--border-radius)}.resize-listener[data-v-2b1dc1bc]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}.modal-mask{position:fixed;z-index:9998;top:0;left:0;bottom:0;right:0;background-color:#00000080;transition:opacity .3s ease}.modal-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.modal-container{width:640px;max-width:95vw;max-height:95vh;background-color:var(--background);padding:20px;border-radius:5px;transition:all .3s ease;text-align:left;border:var(--modal-border);box-sizing:border-box;display:flex;flex-direction:column}.modal-header{width:100%}.modal-body{margin:20px 0;width:100%;overflow-y:auto;overflow-x:hidden}.modal-footer{width:100%}.modal-default-footer{display:flex}.modal-default-flex-grow{flex-grow:1}.modal-enter-from,.modal-leave-active{opacity:0}.modal-enter-from .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.layer-container[data-v-72dd78b1]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-72dd78b1]:not(.minimized){padding-top:20px;padding-bottom:20px;min-height:100%;flex-grow:1;text-align:center;position:relative}.inner-tab>.layer-container>.layer-tab[data-v-72dd78b1]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-72dd78b1]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;padding:55px 0 0;margin:0;cursor:pointer;font-size:40px;color:var(--foreground);border:none;background-color:transparent}.layer-tab.minimized>*[data-v-72dd78b1]{margin:0;writing-mode:vertical-rl;text-align:left;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-72dd78b1]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-72dd78b1]{padding-bottom:0}.modal-body .layer-tab[data-v-72dd78b1]:not(.hasSubtabs){padding-top:0}.minimize[data-v-72dd78b1]{position:sticky;top:6px;right:9px;z-index:7;line-height:30px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;margin-top:-44px;margin-right:-30px}.minimized+.minimize[data-v-72dd78b1]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-72dd78b1]{position:sticky;top:10px;left:10px;line-height:30px;margin-top:-50px;margin-left:-35px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:30px;cursor:pointer;z-index:7}.goBack[data-v-72dd78b1]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}.layer-tab.minimized>*>.desc{color:var(--accent1);font-size:30px}details[data-v-4b4bda40]{margin:10px 0;padding-left:18px}summary[data-v-4b4bda40]{cursor:pointer;margin-bottom:10px;margin-left:-18px}ul[data-v-4b4bda40]{margin:var(--feature-margin) 0;background:var(--raised-background);border:2px solid rgba(0,0,0,.125);padding:5px 5px 5px 15px;list-style:inside}li[data-v-4b4bda40]{margin:8px 0}li[data-v-4b4bda40]:before{padding:2px 8px;margin-right:8px;border-radius:var(--border-radius)}.feature[data-v-4b4bda40]:before{content:"Feature";background:var(--accent1)}.fix[data-v-4b4bda40]:before{content:"Fix";background:var(--accent2)}.balancing[data-v-4b4bda40]:before{content:"Balancing";background:var(--accent3)}.breaking[data-v-4b4bda40]:before{content:"Breaking";background:var(--danger)}.tooltip-container[data-v-6102fa3a]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-6102fa3a],.tooltip[data-v-6102fa3a]:after{pointer-events:none;position:absolute}.tooltip[data-v-6102fa3a]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translate(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.tooltip[data-v-6102fa3a] hr{margin:var(--feature-margin) 0}.shown[data-v-6102fa3a]{z-index:10}.fade-enter-from[data-v-6102fa3a],.fade-leave-to[data-v-6102fa3a]{opacity:0}.tooltip[data-v-6102fa3a]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.tooltip.left[data-v-6102fa3a],.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top){bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.tooltip.left[data-v-6102fa3a]:after,.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top):after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-6102fa3a]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-6102fa3a]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-6102fa3a]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translate(-50%)}.tooltip.bottom[data-v-6102fa3a]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-6102fa3a]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-4f97aa40]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-4f97aa40]{margin:0}.info-modal-logo[data-v-4f97aa40]{height:4em;width:4em}.info-modal-title[data-v-4f97aa40]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-4f97aa40]{display:flex;align-items:center}.info-modal-discord[data-v-4f97aa40]{margin:0 4px 0 0}.field{display:flex;position:relative;min-height:2em;margin:10px 0;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}.vue-select{width:50%;border-radius:var(--border-radius)}.field-buttons .vue-select{width:unset}.vue-select,.vue-dropdown{border-color:var(--outline)}.vue-dropdown{background:var(--raised-background)}.vue-dropdown-item{color:var(--foreground)}.vue-dropdown-item,.vue-dropdown-item *{transition-duration:0s}.vue-dropdown-item.highlighted{background-color:var(--highlighted)}.vue-dropdown-item.selected,.vue-dropdown-item.highlighted.selected{background-color:var(--bought)}.vue-input input{font-size:inherit}.vue-input input::placeholder{color:var(--link)}.field[data-v-11046116]{cursor:pointer}input[data-v-11046116]{appearance:none;pointer-events:none}span[data-v-11046116]{width:100%;padding-right:41px;position:relative}input+span[data-v-11046116]:before{content:"";position:absolute;top:calc(50% - 7px);right:0px;border-radius:7px;width:36px;height:14px;background-color:var(--outline);opacity:.38;vertical-align:top;transition:background-color .2s,opacity .2s}input+span[data-v-11046116]:after{content:"";position:absolute;top:calc(50% - 10px);right:16px;border-radius:50%;width:20px;height:20px;background-color:var(--locked);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}input:checked+span[data-v-11046116]:before{background-color:var(--link);opacity:.6}input:checked+span[data-v-11046116]:after{background-color:var(--link);transform:translate(16px)}input:active+span[data-v-11046116]:before{background-color:var(--link);opacity:.6}input:checked:active+span[data-v-11046116]:before{background-color:var(--outline);opacity:.38}input:disabled+span[data-v-11046116]{color:#000;opacity:.38;cursor:default}input:disabled+span[data-v-11046116]:before{background-color:var(--outline);opacity:.38}input:checked:disabled+span[data-v-11046116]:before{background-color:var(--link);opacity:.6}.feedback[data-v-01a1b95c]{position:relative}.feedback[data-v-01a1b95c]:after{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);content:"\2714";opacity:0;pointer-events:none;box-shadow:inset 0 0 0 35px #6f94b600;text-shadow:none}.feedback.left[data-v-01a1b95c]:after{left:unset;right:calc(100% + 5px)}.feedback.activated[data-v-01a1b95c]:after{animation:feedback-01a1b95c .5s ease-out forwards}@keyframes feedback-01a1b95c{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}.option-tabs{border-bottom:2px solid var(--outline);margin-top:10px;margin-bottom:-10px}.option-tabs button{background-color:transparent;color:var(--foreground);margin-bottom:-2px;font-size:14px;cursor:pointer;padding:5px 20px;border:none;border-bottom:2px solid var(--foreground)}.option-tabs button:not(.selected){border-bottom-color:transparent}.option-title .tooltip-container{display:inline;margin-left:5px}.option-title desc{display:block;opacity:.6;font-size:small;width:300px;margin-left:0}.save-button{text-align:right}form[data-v-90bd4994]{margin:0;width:100%}.field>*[data-v-90bd4994]{margin:0}input[data-v-90bd4994]{width:50%;outline:none;border:solid 1px var(--outline);background-color:unset;border-radius:var(--border-radius)}.fullWidth[data-v-90bd4994]{width:100%}.container[data-v-2f8ef34c]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-2f8ef34c]{font-size:1em}.container>*[data-v-2f8ef34c]{margin:0 4px}.danger,.button.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.save[data-v-32313015]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-32313015]{border-color:var(--bought)}.open[data-v-32313015]{display:inline;margin:0;padding-left:0}.handle[data-v-32313015]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-32313015]{margin:0 80px 0 0;flex-grow:1}.error[data-v-32313015]{font-size:.8em;color:var(--danger)}.save-version[data-v-32313015]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-32313015]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-32313015]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.save .field,.field form[data-v-2a4275be],.field .field-title[data-v-2a4275be],.field .field-buttons[data-v-2a4275be]{margin:0}.field-buttons[data-v-2a4275be]{display:flex}.field-buttons .field[data-v-2a4275be]{margin:0 0 0 8px}.modal-footer[data-v-2a4275be]{margin-top:-20px}.footer[data-v-2a4275be]{display:flex;margin-top:20px}.importingFailed input{color:red}.field-buttons .v-select{width:220px}.presets .vue-select[aria-expanded=true] vue-dropdown{visibility:hidden}.nav[data-v-318a1c31]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline)}.nav>*[data-v-318a1c31]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-318a1c31]{height:100%;width:unset}.overlay-nav[data-v-318a1c31]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-318a1c31]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-318a1c31]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-318a1c31]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-318a1c31],.nav .info[data-v-318a1c31]{display:flex}.tooltip-container[data-v-318a1c31]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-318a1c31]{position:relative}.discord img[data-v-318a1c31]{width:100%;height:100%}.discord-links[data-v-318a1c31]{position:fixed;top:45px;padding:20px;right:-280px;width:200px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-318a1c31]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-318a1c31]{left:-10px}.discord-links li[data-v-318a1c31]{margin-bottom:4px}.discord-links li[data-v-318a1c31]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-318a1c31]{right:0}.material-icons[data-v-318a1c31]{font-size:36px}.material-icons[data-v-318a1c31]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-318a1c31]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-318a1c31]{width:unset;height:25px}.version[data-v-318a1c31]{color:var(--points)}.version:hover span[data-v-318a1c31]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-318a1c31],.overlay-nav>div>a[data-v-318a1c31]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-dcd207b4]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-dcd207b4]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-dcd207b4]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-dcd207b4]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-dcd207b4]{border-left:solid 4px var(--outline)}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) 0}.tab .modal-body hr{margin:7px 0}.resize-listener[data-v-063f6d6b]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}svg[data-v-063f6d6b]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-10;pointer-events:none}.left-side-nodes[data-v-39ca96d0]{position:absolute;left:15px;top:65px}.side-nodes[data-v-39ca96d0]{position:absolute;right:15px;top:65px}.left-side-nodes[data-v-39ca96d0] .treeNode,.side-nodes[data-v-39ca96d0] .treeNode{margin:20px auto}.small[data-v-39ca96d0] .treeNode{height:60px;width:60px}.small[data-v-39ca96d0] .treeNode>*:first-child{font-size:30px}.mark[data-v-2207999f]{position:absolute;left:-25px;top:-10px;width:30px;height:30px;z-index:1;pointer-events:none;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid transparent;border-left:.3em solid transparent;font-size:10px}.star[data-v-2207999f]{left:-10px;width:0;height:0;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid #ffcc00;border-left:.3em solid transparent;font-size:10px;pointer-events:none}.star[data-v-2207999f]:before,.star[data-v-2207999f]:after{content:"";width:0;height:0;position:absolute;top:.6em;left:-1em;border-right:1em solid transparent;border-bottom:.7em solid #ffcc00;border-left:1em solid transparent;transform:rotate(-35deg)}.star[data-v-2207999f]:after{transform:rotate(35deg)}.node[data-v-a48cb382]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.treeNode[data-v-4520cd79]{height:100px;width:100px;border-radius:50%;padding:0;margin:0 10px}.treeNode>*[data-v-4520cd79]:first-child{width:100%;height:100%;border:2px solid rgba(0,0,0,.125);border-radius:inherit;font-size:40px;color:#00000080;text-shadow:2px 2px 4px rgba(0,0,0,.25);box-shadow:-4px -4px 4px #00000040 inset,0 0 20px var(--background);text-transform:capitalize;display:flex}.treeNode>*:first-child>*[data-v-4520cd79]{pointer-events:none}.key[data-v-5e2d38ce]{display:inline-block;height:1.4em;min-width:1em;margin-block:.1em;padding-inline:.2em;vertical-align:.1em;background:var(--foreground);color:var(--feature-foreground);border:1px solid #0007;border-radius:.3em;box-shadow:0 .1em #0007,0 .1em var(--foreground);font-size:smaller;text-align:center;user-select:none;transition:transform 0s,box-shadow 0s}.key[data-v-5e2d38ce]:active{transform:translateY(.1em);box-shadow:none}.sticky[data-v-cccac690]{position:sticky;background:var(--background);width:calc(100% - 2px);z-index:3}.main-display-container{vertical-align:middle;margin-bottom:20px;display:flex;transition-duration:0s}.collapsible-container[data-v-a72c16aa]{width:calc(100% - 10px)}.collapsible-toggle[data-v-a72c16aa]{max-width:unset;width:calc(100% + 0px);margin:0 0 0 -5px;background:var(--raised-background);padding:var(--feature-margin);color:var(--foreground);cursor:pointer;transition-duration:0s}.collapsible-toggle[data-v-a72c16aa]:last-child{margin-left:unset}[data-v-a72c16aa] .collapsible-toggle+.table{max-width:unset;width:calc(100% + 10px);margin-left:-5px}[data-v-a72c16aa] .col{margin-top:0;margin-bottom:0;width:100%}.mergeAdjacent .collapsible-toggle[data-v-a72c16aa]{border:0;border-top-left-radius:0!important;border-top-right-radius:0!important}[data-v-a72c16aa] .mergeAdjacent .feature:not(.dontMerge):first-child{border-top-left-radius:0!important;border-top-right-radius:0!important}.feature:not(li),.feature:not(li) button{position:relative;padding:5px;border-radius:var(--border-radius);border:2px solid rgba(0,0,0,.125);margin:var(--feature-margin);box-sizing:border-box;color:var(--feature-foreground);z-index:0;transition:all .5s,z-index 0s .5s}.can,.can button{background-color:var(--layer-color);cursor:pointer}.can:hover,.can:hover button{transform:scale(1.15);box-shadow:0 0 20px var(--points);z-index:1;transition:all .5s,z-index 0s}.locked,.locked button{background-color:var(--locked);cursor:not-allowed}.bought,.bought button{background-color:var(--bought);cursor:default}.clickable[data-v-211328c0]{min-height:120px;width:120px;font-size:10px}.clickable.small[data-v-211328c0]{min-height:unset}.clickable>*[data-v-211328c0]{pointer-events:none}.modifier-toggle{padding-right:10px;transform:translateY(-1px);display:inline-block}.modifier-toggle.collapsed{transform:translate(-5px,-5px) rotate(-90deg)}.game-over-modal-header[data-v-4a50ce42]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.game-over-modal-header *[data-v-4a50ce42]{margin:0}.game-over-modal-logo[data-v-4a50ce42]{height:4em;width:4em}.game-over-modal-title[data-v-4a50ce42]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.game-over-footer[data-v-4a50ce42]{display:flex;justify-content:flex-end}.game-over-footer button[data-v-4a50ce42]{margin:0 10px}.game-over-modal-discord-link[data-v-4a50ce42]{display:flex;align-items:center}.game-over-modal-discord[data-v-4a50ce42]{margin:0 4px 0 0}.nan-modal-header[data-v-2776d67d]{padding:10px 0;margin-left:10px}.nan-footer[data-v-2776d67d]{display:flex;justify-content:flex-end}.nan-footer button[data-v-2776d67d]{margin:0 10px}.nan-modal-discord-link[data-v-2776d67d]{display:flex;align-items:center}.nan-modal-discord[data-v-2776d67d]{margin:0 4px 0 0}.tpsDisplay[data-v-46a3ed5b]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-46a3ed5b]{color:var(--danger)}.fade-leave-to[data-v-46a3ed5b]{opacity:0}:root{color-scheme:dark}*{transition-duration:.5s;font-family:Roboto Mono,monospace;font-weight:700;margin:auto;text-size-adjust:none}*:focus{outline:none}body{overflow:hidden;transition:none;text-align:center}html,body,#app{min-height:100%;height:100%}h1,h2,h3,b,input{display:inline}button{color:#000}a,.button,.link{display:block;color:var(--link);background:none;border:none;cursor:pointer;text-decoration:none}a:hover,.button:hover,.link:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--link)}.button:disabled{opacity:.5;cursor:not-allowed}.button:disabled:hover{text-shadow:none}ul{list-style-type:none}.Vue-Toastification__toast{margin:unset}.app[data-v-41d15e5e]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-41d15e5e]{position:absolute;min-height:100%;height:100%;color:var(--foreground)} +.table{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;max-width:100%;margin:0 auto}.table+.table{margin-top:10px}.row{display:flex;flex-flow:row wrap;justify-content:center;align-items:stretch;max-width:100%;margin:0 10px}.row>:not(.feature){margin:0;display:flex}.col{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;height:100%;margin:10px 0}.row.mergeAdjacent>.feature:not(.dontMerge),.row.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin-left:0;margin-right:0;border-radius:0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child,.row.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:var(--border-radius) 0 0 var(--border-radius)}.row.mergeAdjacent>.feature:not(.dontMerge):last-child,.row.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0 var(--border-radius) var(--border-radius) 0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child:last-child,.row.mergeAdjacent>.tooltip-container:first-child:last-child>.feature:not(.dontMerge){border-radius:var(--border-radius)}.row-grid.mergeAdjacent>.feature:not(.dontMerge),.row-grid.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin:0;border-radius:0}.row-grid.mergeAdjacent>.feature:not(.dontMerge):last-child,.row-grid.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0}.row-grid.mergeAdjacent>.feature:not(.dontMerge):first-child,.row-grid.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:0}.table-grid>.row-grid.mergeAdjacent:last-child>.feature:not(.dontMerge):first-child{border-radius:0 0 0 var(--border-radius)}.table-grid>.row-grid.mergeAdjacent:first-child>.feature:not(.dontMerge):last-child{border-radius:0 var(--border-radius) 0 0}.table-grid>.row-grid.mergeAdjacent:first-child>.feature:not(.dontMerge):first-child{border-radius:var(--border-radius) 0 0 0}.table-grid>.row-grid.mergeAdjacent:last-child>.feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) 0}.col.mergeAdjacent .feature:not(.dontMerge){margin-top:0;margin-bottom:0;border-radius:0}.col.mergeAdjacent .feature:not(.dontMerge):first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.col.mergeAdjacent .feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge):first-child:last-child{border-radius:var(--border-radius)}.resize-listener[data-v-2b1dc1bc]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}.modal-mask{position:fixed;z-index:9998;top:0;left:0;bottom:0;right:0;background-color:#00000080;transition:opacity .3s ease}.modal-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.modal-container{width:640px;max-width:95vw;max-height:95vh;background-color:var(--background);padding:20px;border-radius:5px;transition:all .3s ease;text-align:left;border:var(--modal-border);box-sizing:border-box;display:flex;flex-direction:column}.modal-header{width:100%}.modal-body{margin:20px 0;width:100%;overflow-y:auto;overflow-x:hidden}.modal-footer{width:100%}.modal-default-footer{display:flex}.modal-default-flex-grow{flex-grow:1}.modal-enter-from,.modal-leave-active{opacity:0}.modal-enter-from .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.layer-container[data-v-72dd78b1]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-72dd78b1]:not(.minimized){padding-top:20px;padding-bottom:20px;min-height:100%;flex-grow:1;text-align:center;position:relative}.inner-tab>.layer-container>.layer-tab[data-v-72dd78b1]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-72dd78b1]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;padding:55px 0 0;margin:0;cursor:pointer;font-size:40px;color:var(--foreground);border:none;background-color:transparent}.layer-tab.minimized>*[data-v-72dd78b1]{margin:0;writing-mode:vertical-rl;text-align:left;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-72dd78b1]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-72dd78b1]{padding-bottom:0}.modal-body .layer-tab[data-v-72dd78b1]:not(.hasSubtabs){padding-top:0}.minimize[data-v-72dd78b1]{position:sticky;top:6px;right:9px;z-index:7;line-height:30px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;margin-top:-44px;margin-right:-30px}.minimized+.minimize[data-v-72dd78b1]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-72dd78b1]{position:sticky;top:10px;left:10px;line-height:30px;margin-top:-50px;margin-left:-35px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:30px;cursor:pointer;z-index:7}.goBack[data-v-72dd78b1]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}.layer-tab.minimized>*>.desc{color:var(--accent1);font-size:30px}details[data-v-4b4bda40]{margin:10px 0;padding-left:18px}summary[data-v-4b4bda40]{cursor:pointer;margin-bottom:10px;margin-left:-18px}ul[data-v-4b4bda40]{margin:var(--feature-margin) 0;background:var(--raised-background);border:2px solid rgba(0,0,0,.125);padding:5px 5px 5px 15px;list-style:inside}li[data-v-4b4bda40]{margin:8px 0}li[data-v-4b4bda40]:before{padding:2px 8px;margin-right:8px;border-radius:var(--border-radius)}.feature[data-v-4b4bda40]:before{content:"Feature";background:var(--accent1)}.fix[data-v-4b4bda40]:before{content:"Fix";background:var(--accent2)}.balancing[data-v-4b4bda40]:before{content:"Balancing";background:var(--accent3)}.breaking[data-v-4b4bda40]:before{content:"Breaking";background:var(--danger)}.tooltip-container[data-v-6102fa3a]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-6102fa3a],.tooltip[data-v-6102fa3a]:after{pointer-events:none;position:absolute}.tooltip[data-v-6102fa3a]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translate(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.tooltip[data-v-6102fa3a] hr{margin:var(--feature-margin) 0}.shown[data-v-6102fa3a]{z-index:10}.fade-enter-from[data-v-6102fa3a],.fade-leave-to[data-v-6102fa3a]{opacity:0}.tooltip[data-v-6102fa3a]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.tooltip.left[data-v-6102fa3a],.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top){bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.tooltip.left[data-v-6102fa3a]:after,.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top):after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-6102fa3a]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-6102fa3a]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-6102fa3a]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translate(-50%)}.tooltip.bottom[data-v-6102fa3a]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-6102fa3a]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-4f97aa40]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-4f97aa40]{margin:0}.info-modal-logo[data-v-4f97aa40]{height:4em;width:4em}.info-modal-title[data-v-4f97aa40]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-4f97aa40]{display:flex;align-items:center}.info-modal-discord[data-v-4f97aa40]{margin:0 4px 0 0}.field{display:flex;position:relative;min-height:2em;margin:10px 0;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}.vue-select{width:50%;border-radius:var(--border-radius)}.field-buttons .vue-select{width:unset}.vue-select,.vue-dropdown{border-color:var(--outline)}.vue-dropdown{background:var(--raised-background)}.vue-dropdown-item{color:var(--foreground)}.vue-dropdown-item,.vue-dropdown-item *{transition-duration:0s}.vue-dropdown-item.highlighted{background-color:var(--highlighted)}.vue-dropdown-item.selected,.vue-dropdown-item.highlighted.selected{background-color:var(--bought)}.vue-input input{font-size:inherit}.vue-input input::placeholder{color:var(--link)}.field[data-v-11046116]{cursor:pointer}input[data-v-11046116]{appearance:none;pointer-events:none}span[data-v-11046116]{width:100%;padding-right:41px;position:relative}input+span[data-v-11046116]:before{content:"";position:absolute;top:calc(50% - 7px);right:0px;border-radius:7px;width:36px;height:14px;background-color:var(--outline);opacity:.38;vertical-align:top;transition:background-color .2s,opacity .2s}input+span[data-v-11046116]:after{content:"";position:absolute;top:calc(50% - 10px);right:16px;border-radius:50%;width:20px;height:20px;background-color:var(--locked);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}input:checked+span[data-v-11046116]:before{background-color:var(--link);opacity:.6}input:checked+span[data-v-11046116]:after{background-color:var(--link);transform:translate(16px)}input:active+span[data-v-11046116]:before{background-color:var(--link);opacity:.6}input:checked:active+span[data-v-11046116]:before{background-color:var(--outline);opacity:.38}input:disabled+span[data-v-11046116]{color:#000;opacity:.38;cursor:default}input:disabled+span[data-v-11046116]:before{background-color:var(--outline);opacity:.38}input:checked:disabled+span[data-v-11046116]:before{background-color:var(--link);opacity:.6}.feedback[data-v-01a1b95c]{position:relative}.feedback[data-v-01a1b95c]:after{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);content:"\2714";opacity:0;pointer-events:none;box-shadow:inset 0 0 0 35px #6f94b600;text-shadow:none}.feedback.left[data-v-01a1b95c]:after{left:unset;right:calc(100% + 5px)}.feedback.activated[data-v-01a1b95c]:after{animation:feedback-01a1b95c .5s ease-out forwards}@keyframes feedback-01a1b95c{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}.option-tabs{border-bottom:2px solid var(--outline);margin-top:10px;margin-bottom:-10px}.option-tabs button{background-color:transparent;color:var(--foreground);margin-bottom:-2px;font-size:14px;cursor:pointer;padding:5px 20px;border:none;border-bottom:2px solid var(--foreground)}.option-tabs button:not(.selected){border-bottom-color:transparent}.option-title .tooltip-container{display:inline;margin-left:5px}.option-title desc{display:block;opacity:.6;font-size:small;width:300px;margin-left:0}.save-button{text-align:right}form[data-v-90bd4994]{margin:0;width:100%}.field>*[data-v-90bd4994]{margin:0}input[data-v-90bd4994]{width:50%;outline:none;border:solid 1px var(--outline);background-color:unset;border-radius:var(--border-radius)}.fullWidth[data-v-90bd4994]{width:100%}.container[data-v-2f8ef34c]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-2f8ef34c]{font-size:1em}.container>*[data-v-2f8ef34c]{margin:0 4px}.danger,.button.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.save[data-v-32313015]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-32313015]{border-color:var(--bought)}.open[data-v-32313015]{display:inline;margin:0;padding-left:0}.handle[data-v-32313015]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-32313015]{margin:0 80px 0 0;flex-grow:1}.error[data-v-32313015]{font-size:.8em;color:var(--danger)}.save-version[data-v-32313015]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-32313015]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-32313015]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.save .field,.field form[data-v-2a4275be],.field .field-title[data-v-2a4275be],.field .field-buttons[data-v-2a4275be]{margin:0}.field-buttons[data-v-2a4275be]{display:flex}.field-buttons .field[data-v-2a4275be]{margin:0 0 0 8px}.modal-footer[data-v-2a4275be]{margin-top:-20px}.footer[data-v-2a4275be]{display:flex;margin-top:20px}.importingFailed input{color:red}.field-buttons .v-select{width:220px}.presets .vue-select[aria-expanded=true] vue-dropdown{visibility:hidden}.nav[data-v-318a1c31]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline)}.nav>*[data-v-318a1c31]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-318a1c31]{height:100%;width:unset}.overlay-nav[data-v-318a1c31]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-318a1c31]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-318a1c31]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-318a1c31]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-318a1c31],.nav .info[data-v-318a1c31]{display:flex}.tooltip-container[data-v-318a1c31]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-318a1c31]{position:relative}.discord img[data-v-318a1c31]{width:100%;height:100%}.discord-links[data-v-318a1c31]{position:fixed;top:45px;padding:20px;right:-280px;width:200px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-318a1c31]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-318a1c31]{left:-10px}.discord-links li[data-v-318a1c31]{margin-bottom:4px}.discord-links li[data-v-318a1c31]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-318a1c31]{right:0}.material-icons[data-v-318a1c31]{font-size:36px}.material-icons[data-v-318a1c31]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-318a1c31]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-318a1c31]{width:unset;height:25px}.version[data-v-318a1c31]{color:var(--points)}.version:hover span[data-v-318a1c31]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-318a1c31],.overlay-nav>div>a[data-v-318a1c31]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-dcd207b4]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-dcd207b4]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-dcd207b4]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-dcd207b4]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-dcd207b4]{border-left:solid 4px var(--outline)}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) 0}.tab .modal-body hr{margin:7px 0}.link[data-v-57c4970a]{transition-duration:0s}.link.pulsing[data-v-57c4970a]{animation:pulsing-57c4970a 2s ease-in infinite}@keyframes pulsing-57c4970a{0%{opacity:.25}50%{opacity:1}to{opacity:.25}}.action:not(.boardnode):hover circle[data-v-ffe504c4],.action:not(.boardnode).selected circle[data-v-ffe504c4]{r:25}.action:not(.boardnode):hover text[data-v-ffe504c4],.action:not(.boardnode).selected text[data-v-ffe504c4]{font-size:187.5%}.action:not(.boardnode) text[data-v-ffe504c4]{text-anchor:middle;dominant-baseline:central}.actions-enter-from .action,.actions-leave-to .action{transform:translate(0)}.boardnode[data-v-0019a534]{cursor:pointer;transition-duration:0s}.boardnode:hover .body[data-v-0019a534]{fill:var(--highlighted)}.boardnode.isSelected[data-v-0019a534]{transform:scale(1.2)}.boardnode.isSelected .body[data-v-0019a534]{fill:var(--accent1)!important}.boardnode:not(.isDraggable) .body[data-v-0019a534]{fill:var(--locked)}.node-title[data-v-0019a534]{text-anchor:middle;dominant-baseline:middle;font-family:monospace;font-size:200%;pointer-events:none}.progress[data-v-0019a534]{transition-duration:.05s}.progressRing[data-v-0019a534]{transform:rotate(-90deg)}.fade-enter-from[data-v-0019a534],.fade-leave-to[data-v-0019a534]{opacity:0}.pulsing[data-v-0019a534]{animation:pulsing-0019a534 2s ease-in infinite}@keyframes pulsing-0019a534{0%{opacity:.25}50%{opacity:1}to{opacity:.25}}.grow-enter-from .node-container,.grow-leave-to .node-container{transform:scale(0)}.vue-pan-zoom-scene{width:100%;height:100%;cursor:grab}.vue-pan-zoom-scene:active{cursor:grabbing}.g1{transition-duration:0s}.link-enter-from,.link-leave-to{opacity:0}.sticky[data-v-cccac690]{position:sticky;background:var(--background);width:calc(100% - 2px);z-index:3}.main-display-container{vertical-align:middle;margin-bottom:20px;display:flex;transition-duration:0s}.game-over-modal-header[data-v-4a50ce42]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.game-over-modal-header *[data-v-4a50ce42]{margin:0}.game-over-modal-logo[data-v-4a50ce42]{height:4em;width:4em}.game-over-modal-title[data-v-4a50ce42]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.game-over-footer[data-v-4a50ce42]{display:flex;justify-content:flex-end}.game-over-footer button[data-v-4a50ce42]{margin:0 10px}.game-over-modal-discord-link[data-v-4a50ce42]{display:flex;align-items:center}.game-over-modal-discord[data-v-4a50ce42]{margin:0 4px 0 0}.nan-modal-header[data-v-2776d67d]{padding:10px 0;margin-left:10px}.nan-footer[data-v-2776d67d]{display:flex;justify-content:flex-end}.nan-footer button[data-v-2776d67d]{margin:0 10px}.nan-modal-discord-link[data-v-2776d67d]{display:flex;align-items:center}.nan-modal-discord[data-v-2776d67d]{margin:0 4px 0 0}.tpsDisplay[data-v-46a3ed5b]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-46a3ed5b]{color:var(--danger)}.fade-leave-to[data-v-46a3ed5b]{opacity:0}:root{color-scheme:dark}*{transition-duration:.5s;font-family:Roboto Mono,monospace;font-weight:700;margin:auto;text-size-adjust:none}*:focus{outline:none}body{overflow:hidden;transition:none;text-align:center}html,body,#app{min-height:100%;height:100%}h1,h2,h3,b,input{display:inline}button{color:#000}a,.button,.link{display:block;color:var(--link);background:none;border:none;cursor:pointer;text-decoration:none}a:hover,.button:hover,.link:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--link)}.button:disabled{opacity:.5;cursor:not-allowed}.button:disabled:hover{text-shadow:none}ul{list-style-type:none}.Vue-Toastification__toast{margin:unset}.app[data-v-41d15e5e]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-41d15e5e]{position:absolute;min-height:100%;height:100%;color:var(--foreground)} diff --git a/assets/index.4e9c6b0b.js b/assets/index.4e9c6b0b.js deleted file mode 100644 index 1504beb..0000000 --- a/assets/index.4e9c6b0b.js +++ /dev/null @@ -1,15 +0,0 @@ -/* empty css */import"./vue.af9696a7.js";import{_ as O,C as l,l as Q,q as at,t as E,b2 as ye,ab as q,aD as en,w as ve,b3 as Me,a9 as y,O as ne,az as _t,as as Ae,aF as p,a1 as k,aL as $e,a2 as m,aH as ut,A as de,$ as R,b7 as D,b9 as Ft,ar as Be,bv as tt,a8 as F,bt as Fn,bc as Tt,T as Tn,u as wt,j as Pn,bw as Gt,aM as Ze,a0 as x,aO as ie,J as A,G as ae,I as pe,aI as Te,aG as Pe,z as Fe,bo as On,bs as Vn,aK as tn,am as mt,H as Dn,y as jt,bf as Ln}from"./@vue.6f8187b0.js";import{c as nn}from"./nanoevents.1080beb7.js";import{L as ke}from"./lz-string.bfbf8ec3.js";import{Y as Rn}from"./vue-next-select.7a1e8cf3.js";import{D as qn}from"./vuedraggable.d64f1a1f.js";import{p as An}from"./vue-textarea-autosize.35804eaf.js";import{s as Bn,u as Un}from"./vue-toastification.1b0160a1.js";import"./sortablejs.32c18112.js";const zn=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerpolicy&&(a.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?a.credentials="include":r.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}};zn();const Gn="modulepreload",Ht={},jn="./",nt=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${jn}${i}`,i in Ht)return;Ht[i]=!0;const r=i.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${a}`))return;const s=document.createElement("link");if(s.rel=r?"stylesheet":Gn,r||(s.as="script",s.crossOrigin=""),s.href=i,document.head.appendChild(s),r)return new Promise((u,c)=>{s.addEventListener("load",u),s.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Hn="./projInfo-schema.json",Wn="Profectus",Zn="A project made in Profectus",Kn="",Yn="",Jn="",Xn="",Qn="0.0",ei="Initial Commit",ti=!0,ni=!1,ii=2,ri=!0,ai=null,si="",oi=["main"],li=3600,ui=1,ci=!0,di="base64";var U={$schema:Hn,title:Wn,description:Zn,id:Kn,author:Yn,discordName:Jn,discordLink:Xn,versionNumber:Qn,versionTitle:ei,allowGoBack:ti,defaultShowSmall:ni,defaultDecimalsShown:ii,useHeader:ri,banner:ai,logo:si,initialTabs:oi,maxTickLength:li,offlineLimit:ui,enablePausing:ci,exportEncoding:di};class fi{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 n=this.map.get(t);if(n!==void 0)return n!==this.first&&(n===this.last?(this.last=n.prev,this.last.next=void 0):(n.prev.next=n.next,n.next.prev=n.prev),n.next=this.first,this.first.prev=n,this.first=n),n.value}set(t,n){if(this.maxSize<1)return;if(this.map.has(t))throw new Error("Cannot update existing keys in the cache");const i=new mi(t,n);for(this.first===void 0?(this.first=i,this.last=i):(i.next=this.first,this.first.prev=i,this.first=i),this.map.set(t,i);this.map.size>this.maxSize;){const r=this.last;this.map.delete(r.key),this.last=r.prev,this.last.next=void 0}}}class mi{constructor(t,n){this.next=void 0,this.prev=void 0,this.key=t,this.value=n}}const Mt=17,gi=9e15,hi=Math.log10(9e15),pi=1/9e15,vi=308,bi=-324,Wt=5,yi=(1<<10)-1,_i=function(){const e=[];for(let n=bi+1;n<=vi;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Oe=[2,Math.E,3,4,5,6,7,8,9,10],wi=[[1,1.0891180521811203,1.1789767925673957,1.2701455431742086,1.3632090180450092,1.4587818160364217,1.5575237916251419,1.6601571006859253,1.767485818836978,1.8804192098842727,2],[1,1.1121114330934079,1.231038924931609,1.3583836963111375,1.4960519303993531,1.6463542337511945,1.8121385357018724,1.996971324618307,2.2053895545527546,2.4432574483385254,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.1840100246247336,1.4061375836156955,1.6802272208863964,2.026757028388619,2.4770056063449646,3.080525271755482,3.9191964192627284,5.135152840833187,6.989961179534715,10]],Ni=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.80786507256596,-.7064666939634,-.60294836853664,-.49849837513117,-.39430303318768,-.29147201034755,-.19097820800866,-.09361896280296,0],[-1,-.9021579584316141,-.8005762598234203,-.6964780623319391,-.5911906810998454,-.486050182576545,-.3823089430815083,-.28106046722897615,-.1831906535795894,-.08935809204418144,0],[-1,-.8917227442365535,-.781258746326964,-.6705130326902455,-.5612813129406509,-.4551067709033134,-.35319256652135966,-.2563741554088552,-.1651412821106526,-.0796919581982668,0],[-1,-.8843387974366064,-.7678744063886243,-.6529563724510552,-.5415870994657841,-.4352842206588936,-.33504449124791424,-.24138853420685147,-.15445285440944467,-.07409659641336663,0],[-1,-.8786709358426346,-.7577735191184886,-.6399546189952064,-.527284921869926,-.4211627631006314,-.3223479611761232,-.23107655627789858,-.1472057700818259,-.07035171210706326,0],[-1,-.8740862815291583,-.7497032990976209,-.6297119746181752,-.5161838335958787,-.41036238255751956,-.31277212146489963,-.2233976621705518,-.1418697367979619,-.06762117662323441,0],[-1,-.8702632331800649,-.7430366914122081,-.6213373075161548,-.5072025698095242,-.40171437727184167,-.30517930701410456,-.21736343968190863,-.137710238299109,-.06550774483471955,0],[-1,-.8670016295947213,-.7373984232432306,-.6143173985094293,-.49973884395492807,-.394584953527678,-.2989649949848695,-.21245647317021688,-.13434688362382652,-.0638072667348083,0],[-1,-.8641642839543857,-.732534623168535,-.6083127477059322,-.4934049257184696,-.3885773075899922,-.29376029055315767,-.2083678561173622,-.13155653399373268,-.062401588652553186,0]];let h=function(t){return o.fromValue_noAlloc(t)},V=function(e,t,n){return o.fromComponents(e,t,n)},L=function(t,n,i){return o.fromComponents_noNormalize(t,n,i)};const Se=function(t,n){const i=n+1,r=Math.ceil(Math.log10(Math.abs(t))),a=Math.round(t*Math.pow(10,i-r))*Math.pow(10,r-i);return parseFloat(a.toFixed(Math.max(i-r,0)))},$t=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},Ci=function(e){if(!isFinite(e))return e;if(e<-50)return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let t=1;for(;e<10;)t=t*e,++e;e-=1;let n=.9189385332046727;n=n+(e+.5)*Math.log(e),n=n-e;const i=e*e;let r=e;return n=n+1/(12*r),r=r*i,n=n+1/(360*r),r=r*i,n=n+1/(1260*r),r=r*i,n=n+1/(1680*r),r=r*i,n=n+1/(1188*r),r=r*i,n=n+691/(360360*r),r=r*i,n=n+7/(1092*r),r=r*i,n=n+3617/(122400*r),Math.exp(n)/t},rn=.5671432904097838,Zt=function(e,t=1e-10){let n,i;if(!Number.isFinite(e)||e===0)return e;if(e===1)return rn;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let r=0;r<100;++r){if(i=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(i-n).5?1:-1;if(Math.random()*20<1)return L(t,0,1);const n=Math.floor(Math.random()*(e+1));let i=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(i=Math.trunc(i));let r=Math.pow(10,i);return Math.random()>.9&&(r=Math.trunc(r)),V(t,n,r)}static affordGeometricSeries_core(e,t,n,i){const r=t.mul(n.pow(i));return d.floor(e.div(r).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,i){return t.mul(n.pow(i)).mul(d.sub(1,n.pow(e))).div(d.sub(1,n))}static affordArithmeticSeries_core(e,t,n,i){const a=t.add(i.mul(n)).sub(n.div(2)),s=a.pow(2);return a.neg().add(s.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,i){const r=t.add(i.mul(n));return e.div(2).mul(r.mul(2).plus(e.sub(1).mul(n)))}static efficiencyOfPurchase_core(e,t,n){return e.div(t).add(e.div(n))}normalize(){if(this.sign===0||this.mag===0&&this.layer===0)return this.sign=0,this.mag=0,this.layer=0,this;if(this.layer===0&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),this.layer===0&&this.mag=gi)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){const t=e,n=d.fromStringCache.get(t);if(n!==void 0)return this.fromDecimal(n);e=e.replace(",","");const i=e.split("^^^");if(i.length===2){const M=parseFloat(i[0]),S=parseFloat(i[1]),j=i[1].split(";");let K=1;if(j.length===2&&(K=parseFloat(j[1]),isFinite(K)||(K=1)),isFinite(M)&&isFinite(S)){const C=d.pentate(M,S,K);return this.sign=C.sign,this.layer=C.layer,this.mag=C.mag,d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}}const r=e.split("^^");if(r.length===2){const M=parseFloat(r[0]),S=parseFloat(r[1]),j=r[1].split(";");let K=1;if(j.length===2&&(K=parseFloat(j[1]),isFinite(K)||(K=1)),isFinite(M)&&isFinite(S)){const C=d.tetrate(M,S,K);return this.sign=C.sign,this.layer=C.layer,this.mag=C.mag,d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}}const a=e.split("^");if(a.length===2){const M=parseFloat(a[0]),S=parseFloat(a[1]);if(isFinite(M)&&isFinite(S)){const j=d.pow(M,S);return this.sign=j.sign,this.layer=j.layer,this.mag=j.mag,d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}}e=e.trim().toLowerCase();let s,u,c=e.split("pt");if(c.length===2){s=10,u=parseFloat(c[0]),c[1]=c[1].replace("(",""),c[1]=c[1].replace(")","");let M=parseFloat(c[1]);if(isFinite(M)||(M=1),isFinite(s)&&isFinite(u)){const S=d.tetrate(s,u,M);return this.sign=S.sign,this.layer=S.layer,this.mag=S.mag,d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}}if(c=e.split("p"),c.length===2){s=10,u=parseFloat(c[0]),c[1]=c[1].replace("(",""),c[1]=c[1].replace(")","");let M=parseFloat(c[1]);if(isFinite(M)||(M=1),isFinite(s)&&isFinite(u)){const S=d.tetrate(s,u,M);return this.sign=S.sign,this.layer=S.layer,this.mag=S.mag,d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}}const f=e.split("e"),b=f.length-1;if(b===0){const M=parseFloat(e);if(isFinite(M))return this.fromNumber(M),d.fromStringCache.size>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}else if(b===1){const M=parseFloat(e);if(isFinite(M)&&M!==0)return this.fromNumber(M),d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}const v=e.split("e^");if(v.length===2){this.sign=1,v[0].charAt(0)=="-"&&(this.sign=-1);let M="";for(let S=0;S=43&&j<=57||j===101)M+=v[1].charAt(S);else return this.layer=parseFloat(M),this.mag=parseFloat(v[1].substr(S+1)),this.normalize(),d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}}if(b<1)return this.sign=0,this.layer=0,this.mag=0,d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this;const N=parseFloat(f[0]);if(N===0)return this.sign=0,this.layer=0,this.mag=0,d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this;let I=parseFloat(f[f.length-1]);if(b>=2){const M=parseFloat(f[f.length-2]);isFinite(M)&&(I*=Math.sign(M),I+=$t(M))}if(!isFinite(N))this.sign=f[0]==="-"?-1:1,this.layer=b,this.mag=I;else if(b===1)this.sign=Math.sign(N),this.layer=1,this.mag=I+Math.log10(Math.abs(N));else if(this.sign=Math.sign(N),this.layer=b,b===2){const M=d.mul(V(1,2,I),h(N));return this.sign=M.sign,this.layer=M.layer,this.mag=M.mag,d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}else this.mag=I;return this.normalize(),d.fromStringCache.maxSize>=1&&d.fromStringCache.set(t,d.fromDecimal(this)),this}fromValue(e){return e instanceof d?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:Se(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:Se(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?this.sign===1?"Infinity":"-Infinity":this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toString():this.m+"e"+this.e:this.layer===1?this.m+"e"+this.e:this.layer<=Wt?(this.sign===-1?"-":"")+"e".repeat(this.layer)+this.mag:(this.sign===-1?"-":"")+"(e^"+this.layer+")"+this.mag}toExponential(e){return this.layer===0?(this.sign*this.mag).toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return this.layer===0?(this.sign*this.mag).toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return this.e<=-7?this.toExponential(e-1):e>this.e?this.toFixed(e-this.exponent-1):this.toExponential(e-1)}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toFixed(e):Se(this.m,e)+"e"+Se(this.e,e):this.layer===1?Se(this.m,e)+"e"+Se(this.e,e):this.layer<=Wt?(this.sign===-1?"-":"")+"e".repeat(this.layer)+Se(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+Se(this.mag,e)}abs(){return L(this.sign===0?0:1,this.layer,this.mag)}neg(){return L(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?d.dZero:this.layer===0?V(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?d.dZero:this.layer===0?V(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?d.dZero:this.layer===0?V(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?d.dZero:this.layer===0?V(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=h(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer)||this.sign===0)return t;if(t.sign===0)return this;if(this.sign===-t.sign&&this.layer===t.layer&&this.mag===t.mag)return L(0,0,0);let n,i;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(d.cmpabs(this,t)>0?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return d.fromNumber(n.sign*n.mag+i.sign*i.mag);const r=n.layer*Math.sign(n.mag),a=i.layer*Math.sign(i.mag);if(r-a>=2)return n;if(r===0&&a===-1){if(Math.abs(i.mag-Math.log10(n.mag))>Mt)return n;{const s=Math.pow(10,Math.log10(n.mag)-i.mag),u=i.sign+n.sign*s;return V(Math.sign(u),1,i.mag+Math.log10(Math.abs(u)))}}if(r===1&&a===0){if(Math.abs(n.mag-Math.log10(i.mag))>Mt)return n;{const s=Math.pow(10,n.mag-Math.log10(i.mag)),u=i.sign+n.sign*s;return V(Math.sign(u),1,Math.log10(i.mag)+Math.log10(Math.abs(u)))}}if(Math.abs(n.mag-i.mag)>Mt)return n;{const s=Math.pow(10,n.mag-i.mag),u=i.sign+n.sign*s;return V(Math.sign(u),1,i.mag+Math.log10(Math.abs(u)))}}plus(e){return this.add(e)}sub(e){return this.add(h(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=h(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return L(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return L(this.sign*t.sign,0,1);let n,i;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return d.fromNumber(n.sign*i.sign*n.mag*i.mag);if(n.layer>=3||n.layer-i.layer>=2)return V(n.sign*i.sign,n.layer,n.mag);if(n.layer===1&&i.layer===0)return V(n.sign*i.sign,1,n.mag+Math.log10(i.mag));if(n.layer===1&&i.layer===1)return V(n.sign*i.sign,1,n.mag+i.mag);if(n.layer===2&&i.layer===1){const r=V(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(V(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return V(n.sign*i.sign,r.layer+1,r.sign*r.mag)}if(n.layer===2&&i.layer===2){const r=V(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(V(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return V(n.sign*i.sign,r.layer+1,r.sign*r.mag)}throw Error("Bad arguments to mul: "+this+", "+e)}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const t=h(e);return this.mul(t.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return this.mag===0?d.dNaN:this.layer===0?V(this.sign,0,1/this.mag):V(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=h(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,i=t.mag>0?t.layer:-t.layer;return n>i?1:nt.mag?1:this.mag0?t:this}clamp(e,t){return this.max(e).min(t)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,t){const n=h(e);return this.eq_tolerance(n,t)?0:this.cmp(n)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const n=h(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let i=this.mag,r=n.mag;return this.layer>n.layer&&(r=$t(r)),this.layer0?V(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):V(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?d.dNaN:this.layer>0?V(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):V(this.sign,0,Math.log10(this.mag))}log(e){return e=h(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?d.dNaN:this.layer===0&&e.layer===0?V(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):d.div(this.log10(),e.log10())}log2(){return this.sign<=0?d.dNaN:this.layer===0?V(this.sign,0,Math.log2(this.mag)):this.layer===1?V(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?V(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):V(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?d.dNaN:this.layer===0?V(this.sign,0,Math.log(this.mag)):this.layer===1?V(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?V(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):V(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=h(e),n=this,i=t;if(n.sign===0)return i.eq(0)?L(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(i.sign===0)return L(1,0,1);if(i.sign===1&&i.layer===0&&i.mag===1)return n;const r=n.absLog10().mul(i).pow10();return this.sign===-1?Math.abs(i.toNumber()%2)%2===1?r.neg():Math.abs(i.toNumber()%2)%2===0?r:d.dNaN:r}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return d.dNaN;let e=this;if(e.layer===0){const t=Math.pow(10,e.sign*e.mag);if(Number.isFinite(t)&&Math.abs(t)>=.1)return V(1,0,t);if(e.sign===0)return d.dOne;e=L(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?V(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?V(-e.sign,e.layer+1,-e.mag):d.dOne}pow_base(e){return h(e).pow(this)}root(e){const t=h(e);return this.pow(t.recip())}factorial(){return this.mag<0?this.add(1).gamma():this.layer===0?this.add(1).gamma():this.layer===1?d.exp(d.mul(this,d.ln(this).sub(1))):d.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(L(1,0,24)))return d.fromNumber(Ci(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const n=e*e;let i=e,r=12*i,a=1/r,s=t+a;if(s===t||(t=s,i=i*n,r=360*i,a=1/r,s=t-a,s===t))return d.exp(t);t=s,i=i*n,r=1260*i;let u=1/r;return t=t+u,i=i*n,r=1680*i,u=1/r,t=t-u,d.exp(t)}else return this.layer===1?d.exp(d.mul(this,d.ln(this).sub(1))):d.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?d.dOne:this.layer===0&&this.mag<=709.7?d.fromNumber(Math.exp(this.sign*this.mag)):this.layer===0?V(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?V(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):V(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return d.fromNumber(Math.sqrt(this.sign*this.mag));if(this.layer===1)return V(1,2,Math.log10(this.mag)-.3010299956639812);{const e=d.div(L(this.sign,this.layer-1,this.mag),L(1,0,2));return e.layer+=1,e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow(1/3)}tetrate(e=2,t=L(1,0,1)){if(e===1)return d.pow(this,t);if(e===0)return new d(t);if(this.eq(d.dOne))return d.dOne;if(this.eq(-1))return d.pow(this,t);if(e===Number.POSITIVE_INFINITY){const r=this.toNumber();if(r<=1.444667861009766&&r>=.06598803584531254){if(r>1.444667861009099)return d.fromNumber(Math.E);const a=d.ln(this).neg();return a.lambertw().div(a)}else return r>1.444667861009766?d.fromNumber(Number.POSITIVE_INFINITY):d.dNaN}if(this.eq(d.dZero)){let r=Math.abs((e+1)%2);return r>1&&(r=2-r),d.fromNumber(r)}if(e<0)return d.iteratedlog(t,this,-e);t=h(t);const n=e;e=Math.trunc(e);const i=n-e;if(this.gt(d.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let r=0;r3)return L(t.sign,t.layer+(e-r-1),t.mag);if(r>1e4)return t}return t}iteratedexp(e=2,t=L(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return d.tetrate(e,-t,this);e=h(e);let n=d.fromDecimal(this);const i=t;t=Math.trunc(t);const r=i-t;if(n.layer-e.layer>3){const a=Math.min(t,n.layer-e.layer-3);t-=a,n.layer-=a}for(let a=0;a1e4)return n}return r>0&&r<1&&(e.eq(10)?n=n.layeradd10(-r):n=n.layeradd(-r,e)),n}slog(e=10,t=100){let n=.001,i=!1,r=!1,a=this.slog_internal(e).toNumber();for(let s=1;s1&&r!=c&&(i=!0),r=c,i?n/=2:n*=2,n=Math.abs(n)*(c?-1:1),a+=n,n===0)break}return d.fromNumber(a)}slog_internal(e=10){if(e=h(e),e.lte(d.dZero)||e.eq(d.dOne))return d.dNaN;if(e.lt(d.dOne))return this.eq(d.dOne)?d.dZero:this.eq(d.dZero)?d.dNegOne:d.dNaN;if(this.mag<0||this.eq(d.dZero))return d.dNegOne;let t=0,n=d.fromDecimal(this);if(n.layer-e.layer>3){const i=n.layer-e.layer-3;t+=i,n.layer-=i}for(let i=0;i<100;++i)if(n.lt(d.dZero))n=d.pow(e,n),t-=1;else{if(n.lte(d.dOne))return d.fromNumber(t+d.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=d.log(n,e)}return d.fromNumber(t)}static slog_critical(e,t){return e>10?t-1:d.critical_section(e,t,Ni)}static tetrate_critical(e,t){return d.critical_section(e,t,wi)}static critical_section(e,t,n){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let i=0,r=0;for(let s=0;se){const u=(e-Oe[s])/(Oe[s+1]-Oe[s]);i=n[s][Math.floor(t)]*(1-u)+n[s+1][Math.floor(t)]*u,r=n[s][Math.ceil(t)]*(1-u)+n[s+1][Math.ceil(t)]*u;break}const a=t-Math.floor(t);return i<=0||r<=0?i*(1-a)+r*a:Math.pow(e,Math.log(i)/Math.log(e)*(1-a)+Math.log(r)/Math.log(e)*a)}layeradd10(e){e=d.fromValue_noAlloc(e).toNumber();const t=d.fromDecimal(this);if(e>=1){t.mag<0&&t.layer>0?(t.sign=0,t.mag=0,t.layer=0):t.sign===-1&&t.layer==0&&(t.sign=1,t.mag=-t.mag);const n=Math.trunc(e);e-=n,t.layer+=n}if(e<=-1){const n=Math.trunc(e);if(e-=n,t.layer+=n,t.layer<0)for(let i=0;i<100;++i){if(t.layer++,t.mag=Math.log10(t.mag),!isFinite(t.mag))return t.sign===0&&(t.sign=1),t.layer<0&&(t.layer=0),t.normalize();if(t.layer>=0)break}}for(;t.layer<0;)t.layer++,t.mag=Math.log10(t.mag);return t.sign===0&&(t.sign=1,t.mag===0&&t.layer>=1&&(t.layer-=1,t.mag=1)),t.normalize(),e!==0?t.layeradd(e,10):t}layeradd(e,t){const i=this.slog(t).toNumber()+e;return i>=0?d.tetrate(t,i):Number.isFinite(i)?i>=-1?d.log(d.tetrate(t,i+1),t):d.log(d.log(d.tetrate(t,i+2),t),t):d.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return d.fromNumber(Zt(this.toNumber()));if(this.layer===0)return d.fromNumber(Zt(this.sign*this.mag));if(this.layer===1)return Kt(this);if(this.layer===2)return Kt(this);if(this.layer>=3)return L(this.sign,this.layer-1,this.mag);throw new Error("Unhandled behavior in lambertw()")}ssqrt(){if(this.sign==1&&this.layer>=3)return L(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=L(1,0,1)){t=h(t);const n=e;e=Math.trunc(e);const i=n-e;i!==0&&(t.eq(d.dOne)?(++e,t=d.fromNumber(i)):this.eq(10)?t=t.layeradd10(i):t=t.layeradd(i,this));for(let r=0;r10)return t}return t}sin(){return this.mag<0?this:this.layer===0?d.fromNumber(Math.sin(this.sign*this.mag)):L(0,0,0)}cos(){return this.mag<0?d.dOne:this.layer===0?d.fromNumber(Math.cos(this.sign*this.mag)):L(0,0,0)}tan(){return this.mag<0?this:this.layer===0?d.fromNumber(Math.tan(this.sign*this.mag)):L(0,0,0)}asin(){return this.mag<0?this:this.layer===0?d.fromNumber(Math.asin(this.sign*this.mag)):L(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?d.fromNumber(Math.acos(this.toNumber())):this.layer===0?d.fromNumber(Math.acos(this.sign*this.mag)):L(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?d.fromNumber(Math.atan(this.sign*this.mag)):d.fromNumber(Math.atan(this.sign*(1/0)))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return d.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return d.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?L(Number.NaN,Number.NaN,Number.NaN):d.ln(this.add(1).div(d.fromNumber(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(d.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return this.cmp(e)<1}lessThan(e){return this.cmp(e)<0}greaterThanOrEqualTo(e){return this.cmp(e)>-1}greaterThan(e){return this.cmp(e)>0}};let o=d;o.fromStringCache=new fi(yi);o.dZero=L(0,0,0);o.dOne=L(1,0,1);o.dNegOne=L(-1,0,1);o.dTwo=L(1,0,2);o.dTen=L(1,0,10);o.dNaN=L(Number.NaN,Number.NaN,Number.NaN);o.dInf=L(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);o.dNegInf=L(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);o.dNumberMax=V(1,0,Number.MAX_VALUE);o.dNumberMin=V(1,0,Number.MIN_VALUE);h=o.fromValue_noAlloc;V=o.fromComponents;L=o.fromComponents_noNormalize;o.fromMantissaExponent;o.fromMantissaExponent_noNormalize;const Si=new o(1);function Qe(e,t,n=!0){let i=o.log10(e).floor(),r=o.div(e,o.pow(10,i));r.toStringWithDecimalPlaces(t)==="10"&&(r=Si,i=i.add(1));const a=i.gte(1e9)?he(i,Math.max(Math.max(t,3),U.defaultDecimalsShown)):i.gte(1e4)?gt(i,0):i.toStringWithDecimalPlaces(0);return n?r.toStringWithDecimalPlaces(t)+"e"+a:"e"+a}function gt(e,t){if(e==null)return"NaN";if(e=new o(e),e.mag<.001)return 0 .toFixed(t);const i=e.toStringWithDecimalPlaces(t).split(".");return i[0]=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),i.length==1?i[0]:i[0]+"."+i[1]}function an(e,t){return e==null?"NaN":(e=new o(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),U.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const ki=new o("eeee1000"),Ii=new o("e100000"),Yt=new o("e1000"),sn=new o(1e9),Mi=new o(1e6),$i=new o(1e3),Ei=new o(.98),xi=new o(.001),on=new o(0);function he(e,t,n){if(t==null&&(t=U.defaultDecimalsShown),n=n!=null?n:U.defaultShowSmall,e=new o(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+he(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(ki)){const i=e.slog();return i.gte(Mi)?"F"+he(i.floor()):o.pow(10,i.sub(i.floor())).toStringWithDecimalPlaces(3)+"F"+gt(i.floor(),0)}else{if(e.gte(Ii))return Qe(e,0,!1);if(e.gte(Yt))return Qe(e,0);if(e.gte(sn))return Qe(e,t);if(e.gte($i))return gt(e,0);if(e.gte(xi)||!n)return an(e,t);if(e.eq(on))return 0 .toFixed(t)}return e=un(e),e.lt(Yt)?Qe(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):he(e,t)+"\u207B\xB9"}function ge(e){return e=new o(e),e.sign<0?"-"+ge(e.neg()):e.gte(sn)||e.lte(Ei)&&!e.eq(on)?he(e):he(e,0)}function ln(e){return o.lt(e,0)?"-"+ln(o.neg(e)):o.gt(e,2**51)?he(o.div(e,31536e3))+"y":(e=new o(e).toNumber(),e<60?he(e)+"s":e<3600?ge(Math.floor(e/60))+"m "+he(e%60)+"s":e<86400?ge(Math.floor(e/3600))+"h "+ge(Math.floor(e/60)%60)+"m "+ge(e%60)+"s":e<31536e3?ge(Math.floor(e/84600)%365)+"d "+ge(Math.floor(e/3600)%24)+"h "+ge(Math.floor(e/60)%60)+"m":ge(Math.floor(e/31536e3))+"y "+ge(Math.floor(e/84600)%365)+"d "+ge(Math.floor(e/3600)%24)+"h")}function Fi(e,t,n){e=new o(e);let i=e.toStringWithDecimalPlaces(t);return new o(i).gte(n)&&(i=o.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),i}function Ti(e,t){return he(e,t,!0)}function un(e){let t=o.log10(e).ceil();const n=o.div(e,o.pow(10,t));return t=t.neg(),e=new o(10).pow(t).times(n),e}var Pi=Object.freeze(Object.defineProperty({__proto__:null,default:o,exponentialFormat:Qe,commaFormat:gt,regularFormat:an,format:he,formatWhole:ge,formatTime:ln,toPlaces:Fi,formatSmall:Ti,invertOOM:un},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:Oi,commaFormat:Vi,regularFormat:Di,format:Ne,formatWhole:Ke,formatTime:Nt,toPlaces:Li,formatSmall:Ri,invertOOM:qi}=Pi;window.Decimal=o;window.exponentialFormat=Oi;window.commaFormat=Vi;window.regularFormat=Di;window.format=Ne;window.formatWhole=Ke;window.formatTime=Nt;window.toPlaces=Li;window.formatSmall=Ri;window.invertOOM=qi;function Ai(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function Et(e){return typeof e=="function"}var W=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(W||{});const it=Symbol("DoNotCache");function P(e,t){const n=e[t];Et(n)&&n.length===0&&!n[it]?e[t]=O(n.bind(e)):Et(n)&&(e[t]=n.bind(e),e[t][it]=!0)}function xt(e){return Et(e)&&!e[it]&&(e=O(e)),e}const Ee=Symbol("Component"),xe=Symbol("GatherProps");let Bi=0;function Ct(e="feature-"){return e+Bi++}var Ye=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(Ye||{});function cn(e){const t=l(e);return t!==2&&t!==!1}function dn(e){return l(e)===1}function J(e){return e[it]=!0,e}function ue(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function fn(e,...t){const n=[],i=r=>{Object.keys(r).forEach(a=>{const s=r[a];s!=null&&typeof s=="object"&&(t.includes(s.type)?n.push(s):!(s instanceof o)&&!Q(s)&&i(s))})};return i(e),n}const Ve={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#0f0f0f","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},floatingTabs:!0,mergeAdjacent:!0,showPin:!0};var Pt=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(Pt||{}),Ot={classic:Ve,paper:{...Ve,variables:{...Ve.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},floatingTabs:!1},nordic:{...Ve,variables:{...Ve.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},floatingTabs:!1},aqua:{...Ve,variables:{...Ve.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const re=nn();"fonts"in document&&(document.fonts.onloadingdone=()=>re.emit("fontsLoaded"));var Ui=Object.freeze(Object.defineProperty({__proto__:null,globalBus:re},Symbol.toStringTag,{value:"Module"}));const zi=at({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});var T=window.player=zi;function mn(e){return JSON.stringify(e,(t,n)=>l(n))}function gn(e={}){return Object.assign({id:`${U.id}-0`,name:"Default Save",tabs:U.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:U.id,modVersion:U.versionNumber,layers:{}},e)}function fe(e){const t=ke.compressToUTF16(mn(e!=null?e:T));return localStorage.setItem((e!=null?e:T).id,t),t}async function Gi(){Hi();try{let e=localStorage.getItem(ee.active);if(e==null){await Le(He());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=ke.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==U.id){await Le(He());return}t.id=ee.active,await Le(t)}catch(e){console.error(`Failed to load save. Falling back to new save. -`,e),await Le(He())}}function He(){const e=dt(),t=gn({id:e});return fe(t),ee.saves.push(e),t}function dt(){let e,t=0;do e=`${U.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const Vt=E(!1);async function Le(e){console.info("Loading save",e),Vt.value=!0;const{layers:t,removeLayer:n,addLayer:i}=await nt(()=>Promise.resolve().then(function(){return fr}),void 0),{fixOldSave:r,getInitialLayers:a}=await nt(()=>Promise.resolve().then(function(){return Rl}),void 0);for(const s in t){const u=t[s];u&&n(u)}a(e).forEach(s=>i(s,e)),e=gn(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,U.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==U.versionNumber&&(r(e.modVersion,e),e.modVersion=U.versionNumber),Object.assign(T,e),ee.active=T.id,re.emit("onLoad")}setInterval(()=>{T.autosave&&fe()},1e3);window.onbeforeunload=()=>{T.autosave&&fe()};window.save=fe;const ji=window.hardReset=async()=>{await Le(He())};window.deleteLowerSaves=()=>{const e=Object.values(ee.saves).indexOf(T.id)+1;Object.values(ee.saves).slice(e).forEach(t=>localStorage.removeItem(t)),ee.saves=ee.saves.slice(0,e)};const rt=at({active:"",saves:[],showTPS:!0,theme:Pt.Nordic,unthrottled:!1,alignUnits:!1});ye(rt,e=>{const t=ke.compressToUTF16(JSON.stringify(e));localStorage.setItem(U.id,t)},{deep:!0});var ee=window.settings=rt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Pt.Nordic,alignUnits:!1};re.emit("loadSettings",e),Object.assign(rt,e),ji()};function Hi(){try{let e=localStorage.getItem(U.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=ke.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(rt,t)}re.emit("loadSettings",rt)}catch{}}const Wi=at([]),hn=at([]);function Zi(e){hn.push(e)}const Ki=at([]);function le(e,t="span"){return typeof e=="function"?q({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),q({template:e})):q({render:()=>({})}):e}function st(e){if(St(e))return typeof e=="function"?e():le(e);const t=e[Ee];return y(t,e[xe](),null)}function ft(e){if(St(e))return typeof e=="function"?e():typeof e=="string"?y(ne,null,[e]):y(e,null,null);const t=e[Ee];return y(t,e[xe](),null)}function St(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[it]===!0}function pn(e,t){const n=E(null),i=E(void 0);function r(u){n.value||(n.value=setInterval(s,250)),i.value=u}function a(){n.value&&(clearInterval(n.value),n.value=null)}function s(){t&&t.value?t.value():e&&e.value&&e.value(i.value)}return en(a),{start:r,stop:a,handleHolding:s}}function Yi(e,t="div"){const n=ve();return Me(()=>{n.value=le(be(e),t)}),n}function Je(e,t="div"){const n=ve(null);return Me(()=>{const i=be(e);n.value=i==""||i==null?null:le(i,t)}),n}function be(e){return l(l(e))}function B(...e){return e.includes(Object)||e.push(Object),e}var G=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n};const Ji=q({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var b;const n=E({}),i=new ResizeObserver(u),r=E(null);_t(()=>{const v=r.value;v!=null&&i.observe(v)});let a=!0,s=E((b=r.value)==null?void 0:b.getBoundingClientRect());function u(){a&&(a=!1,Ae(()=>{var v;s.value=(v=r.value)==null?void 0:v.getBoundingClientRect(),Object.values(n.value).filter(N=>N).forEach(N=>N.rect=N.element.getBoundingClientRect()),t("updateNodes",n.value),a=!0}))}re.on("fontsLoaded",u);const c={attributes:!1,childList:!0,subtree:!1};ut(Dt,(v,N)=>{const I=new MutationObserver(()=>f(v));I.observe(N,c),n.value[v]={element:N,observer:I,rect:N.getBoundingClientRect()},u()}),ut(Lt,v=>{var N;(N=n.value[v])==null||N.observer.disconnect(),n.value[v]=void 0,u()}),ut(Rt,n),ut(qt,s);function f(v){const N=n.value[v];N!=null&&(N.rect=N.element.getBoundingClientRect(),t("updateNodes",n.value))}return(v,N)=>(p(),k(ne,null,[$e(v.$slots,"default",{},void 0,!0),m("div",{ref_key:"resizeListener",ref:r,class:"resize-listener"},null,512)],64))}});var vn=G(Ji,[["__scopeId","data-v-2b1dc1bc"]]);const Xi=["onPointerdown"],Qi={class:"modal-wrapper"},er={class:"modal-container"},tr={class:"modal-header"},nr={class:"modal-body"},ir={class:"modal-footer"},rr=m("div",{class:"modal-default-flex-grow"},null,-1),ze=q({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=de(e),a=O(()=>l(r.modelValue)||u.value);function s(){n("update:modelValue",!1)}const u=E(!1),c=E(null),f=O(()=>{var b,v;return(v=(b=c.value)==null?void 0:b.nodes)!=null?v:null});return t({isOpen:a,nodes:f}),(b,v)=>(p(),R(Tn,{to:"#modal-root"},[y(Tt,{name:"modal",onBeforeEnter:v[0]||(v[0]=N=>u.value=!0),onAfterLeave:v[1]||(v[1]=N=>u.value=!1)},{default:D(()=>[Ft(m("div",Be({class:"modal-mask",onPointerdown:tt(s,["self"])},b.$attrs),[m("div",Qi,[m("div",er,[m("div",tr,[$e(b.$slots,"header",{shown:l(a)},()=>[F(" default header ")])]),m("div",nr,[y(vn,{ref_key:"contextRef",ref:c},{default:D(()=>[$e(b.$slots,"body",{shown:l(a)},()=>[F(" default body ")])]),_:3},512)]),m("div",ir,[$e(b.$slots,"footer",{shown:l(a)},()=>[m("div",{class:"modal-default-footer"},[rr,m("button",{class:"button modal-default-button",onClick:s}," Close ")])])])])])],16,Xi),[[Fn,e.modelValue]])]),_:3})]))}}),De=Symbol("ProxyState");function Ge(e,t={}){const n=t;let i=!1;function r(){return i||(Object.assign(n,e.call(n,n)),i=!0),n}return new Proxy(n,{get(a,s){if(s===De)return r();const u=r()[s];return u!=null&&typeof u=="object"&&Ie in u?u[Ie]:u},set(a,s,u){return r()[s]=u,!0},has(a,s){return s===De?!0:Reflect.has(r(),s)},ownKeys(){return Reflect.ownKeys(r())},getOwnPropertyDescriptor(a,s){return i||(Object.assign(n,e.call(n,n)),i=!0),Object.getOwnPropertyDescriptor(a,s)}})}var X=window.state=wt({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const We=Symbol("PersistentState"),Ue=Symbol("DefaultValue"),ht=Symbol("StackTrace"),pt=Symbol("Deleted"),Ie=Symbol("NonPersistent"),Re=Symbol("SaveDataPath"),ar=Symbol("SkipPersistence");function sr(){var e,t;return(t=(e=new Error().stack)==null?void 0:e.split(` -`).slice(3,5).map(n=>n.trim()).join(` -`))!=null?t:""}function Jt(e,t){var n;if(o.isNaN(t))throw X.hasNaN||(T.autosave=!1,X.hasNaN=!0,X.NaNPath=e[Re],X.NaNPersistent=e),console.error("Attempted to save NaN value to",(n=e[Re])==null?void 0:n.join("."),e),new Error("Attempted to set NaN value. See above for details");e[We].value=t}function ot(e,t=!0){const n=Q(e)?e:E(e);Q(e)&&(e=e.value);const i=O({get(){return n.value},set(a){t?Jt(r,a):r[We].value=a}});i[Ue]=e;const r={get value(){return n.value},set value(a){t?Jt(r,a):r[We].value=a},__v_isRef:!0,[We]:n,[Ue]:e,[ht]:sr(),[pt]:!1,[Ie]:i,[Re]:void 0};return ce.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",r,` -Created at: -`+r[ht]):qe[ce[ce.length-1]].add(r),r}function or(e){return e!=null&&typeof e=="object"&&We in e}function lr(e){ce.length===0?console.warn("Deleting a persistent ref outside of a layer. Ignoring...",e):qe[ce[ce.length-1]].delete(e),e[pt]=!0}re.on("addLayer",(e,t)=>{const n=[],i=(r,a=[])=>{let s=!1;return Object.keys(r).forEach(u=>{let c=r[u];if(c!=null&&typeof c=="object"){if(c[ar]===!0)return;if(De in c&&(c=c[De]),or(c)){if(s=!0,c[pt]){console.warn("Deleted persistent ref present in returned object. Ignoring...",c,` -Created at: -`+c[ht]);return}qe[e.id].delete(c);const f=[e.id,...a,u];c[Re]!=null&&JSON.stringify(f)!==JSON.stringify(c[Re])&&console.error(`Persistent ref is being saved to \`${f.join(".")}\` when it's already present at \`${c[Re].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,c),c[Re]=f;const b=a.reduce((N,I)=>(I in N||(N[I]={}),N[I]),t),v=b[u];b[u]=c[We],Pn(b)?v!=null?b[u]=v:b[u]=c[Ue]:v!=null?b[u].value=v:b[u].value=c[Ue]}else!(c instanceof o)&&!Q(c)&&!n.includes(c)&&(typeof c.type=="symbol"&&n.push(c),i(c,[...a,u])&&(Gt(c)&&!Gt(r)?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.",De in r?r[De]:r,u):s=!0))}}),s};i(e[De]),qe[e.id].forEach(r=>{r[pt]||console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,r,` -Created at: -`+r[ht])}),qe[e.id].clear()});const Dt=Symbol("RegisterNode"),Lt=Symbol("UnregisterNode"),Rt=Symbol("Nodes"),qt=Symbol("Bounds"),oe=wt({});window.layers=oe;const qe={},ce=[];function At(e,t){return Ge(()=>{const n={},i=n.emitter=nn();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=E({}),n.id=e,ce.push(e),qe[e]=new Set,n.minimized=ot(!1,!1),Object.assign(n,t.call(n,n)),ce[ce.length-1]==null||ce[ce.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen -Stack: ${ce} -Trying to pop ${n.id}`;ce.pop(),P(n,"color"),P(n,"display"),P(n,"classes"),P(n,"style"),P(n,"name"),ue(n,"name",n.id),P(n,"minWidth"),ue(n,"minWidth",600),P(n,"minimizable"),ue(n,"minimizable",!0),P(n,"minimizedDisplay");const r=n.style;return n.style=O(()=>{var s,u;let a=l(n.minWidth);return(typeof a=="number"||!Number.isNaN(parseInt(a)))&&(a=a+"px"),[(s=l(r))!=null?s:"",(u=n.minimized)!=null&&u.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:a,flexBasis:a,margin:""}]}),n})}function bn(e,t){if(console.info("Adding layer",e.id),oe[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,oe[e.id]);return}ue(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),oe[e.id]=e,re.emit("addLayer",e,t.layers[e.id])}function ur(e){return oe[e]}function yn(e){console.info("Removing layer",e.id),re.emit("removeLayer",e),oe[e.id]=void 0}function cr(e){yn(e),bn(e,T)}function dr(e){const t=E(!1);return{openModal:()=>t.value=!0,modal:J(()=>y(ze,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>y("h2",null,[l(e.name)]),body:l(e.display)}))}}re.on("update",function(t){Object.values(oe).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(oe).forEach(n=>{n==null||n.emit("update",t)}),Object.values(oe).forEach(n=>{n==null||n.emit("postUpdate",t)})});var fr=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Dt,UnregisterNodeInjectionKey:Lt,NodesInjectionKey:Rt,BoundsInjectionKey:qt,layers:oe,persistentRefs:qe,addingLayers:ce,createLayer:At,addLayer:bn,getLayer:ur,removeLayer:yn,reloadLayer:cr,setupLayerModal:dr},Symbol.toStringTag,{value:"Module"}));const mr=q({components:{Context:vn},props:{index:{type:Number,required:!0},display:{type:B(Object,String,Function),required:!0},minimizedDisplay:B(Object,String,Function),minimized:{type:Object,required:!0},name:{type:B(String),required:!0},color:B(String),minimizable:B(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:n,minimized:i,minimizedDisplay:r}=de(e),a=Yi(t),s=Je(r),u=O(()=>U.allowGoBack&&n.value>0&&!be(i));function c(){T.tabs.splice(l(e.index),1/0)}function f(b){e.nodes.value=b}return{component:a,minimizedComponent:s,showGoBack:u,updateNodes:f,unref:l,goBack:c}}}),gr={key:1};function hr(e,t,n,i,r,a){const s=Ze("Context");return p(),k("div",{class:"layer-container",style:pe({"--layer-color":e.unref(e.color)})},[e.showGoBack?(p(),k("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...u)=>e.goBack&&e.goBack(...u))},"\u274C")):x("",!0),e.unref(e.minimized)?(p(),k("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=u=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(p(),R(ie(e.minimizedComponent),{key:0})):(p(),k("div",gr,A(e.unref(e.name)),1))])):(p(),k("div",{key:2,class:ae(["layer-tab",{showGoBack:e.showGoBack}])},[y(s,{onUpdateNodes:e.updateNodes},{default:D(()=>[(p(),R(ie(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(p(),k("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=u=>e.$emit("setMinimized",!0))}," \u25BC ")):x("",!0)],4)}var pr=G(mr,[["render",hr],["__scopeId","data-v-72dd78b1"]]);const _n=e=>(Te("data-v-4b4bda40"),e=e(),Pe(),e),vr=_n(()=>m("h2",null,"Changelog",-1)),br=_n(()=>m("details",{open:""},[m("summary",null,[F("v0.0 Initial Commit - "),m("time",null,"2021-09-04")]),F(" This is the first release :D "),m("ul",null,[m("li",{class:"feature"},"Did everything"),m("li",{class:"fix"},"Had some fun"),m("li",{class:"breaking"},"Removed everything"),m("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),yr=q({__name:"Changelog",setup(e,{expose:t}){const n=E(!1);return t({open(){n.value=!0}}),(i,r)=>(p(),R(ze,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=a=>n.value=a)},{header:D(()=>[vr]),body:D(()=>[br]),_:1},8,["modelValue"]))}});var _r=G(yr,[["__scopeId","data-v-4b4bda40"]]),wr=q({props:{element:Object,display:{type:B(Object,String,Function),required:!0},style:B(Object,String,Array),classes:B(Object),direction:B(String),xoffset:B(String),yoffset:B(String),pinned:Object},setup(e){const{element:t,display:n,pinned:i}=de(e),r=E(!1),a=O(()=>(be(i)||r.value)&&s.value),s=Je(n),u=ve(le(J(()=>{const b=be(t);return b==null?"":ft(b)})));function c(b){const v=i;b.shiftKey&&v&&(v.value=!v.value,b.stopPropagation(),b.preventDefault())}const f=O(()=>be(i)&&Ot[ee.theme].showPin);return{Direction:W,isHovered:r,isShown:a,comp:s,elementComp:u,unref:l,togglePinned:c,showPin:f}}});const Nr={key:0,class:"material-icons pinned"};function Cr(e,t,n,i,r,a){return p(),k("div",{class:ae(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=s=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=s=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...s)=>e.togglePinned&&e.togglePinned(...s))},[$e(e.$slots,"default",{},void 0,!0),e.elementComp?(p(),R(ie(e.elementComp),{key:0})):x("",!0),y(Tt,{name:"fade"},{default:D(()=>{var s;return[e.isShown?(p(),k("div",{key:0,class:ae(["tooltip",{top:e.unref(e.direction)===e.Direction.Up,left:e.unref(e.direction)===e.Direction.Left,right:e.unref(e.direction)===e.Direction.Right,bottom:e.unref(e.direction)===e.Direction.Down,...e.unref(e.classes)}]),style:pe([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(s=e.unref(e.style))!=null?s:{}])},[e.showPin?(p(),k("span",Nr,"push_pin")):x("",!0),e.comp?(p(),R(ie(e.comp),{key:1})):x("",!0)],6)):x("",!0)]}),_:1})],34)}var Y=G(wr,[["render",Cr],["__scopeId","data-v-6102fa3a"]]);const je=e=>(Te("data-v-4f97aa40"),e=e(),Pe(),e),Sr={class:"info-modal-header"},kr=["src","alt"],Ir={class:"info-modal-title"},Mr={key:0},$r={key:0},Er={key:0},xr=je(()=>m("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),Fr=je(()=>m("br",null,null,-1)),Tr=je(()=>m("br",null,null,-1)),Pr=["href"],Or=je(()=>m("span",{class:"material-icons info-modal-discord"},"discord",-1)),Vr=je(()=>m("div",null,[m("a",{href:"https://discord.gg/yJ4fjnjU54",class:"info-modal-discord-link",target:"_blank"},[m("span",{class:"material-icons info-modal-discord"},"discord"),F(" The Paper Pilot Community ")])],-1)),Dr=je(()=>m("div",null,[m("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link",target:"_blank"},[m("span",{class:"material-icons info-modal-discord"},"discord"),F(" The Modding Tree ")])],-1)),Lr=je(()=>m("br",null,null,-1));var Rr=q({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:i,logo:r,author:a,discordName:s,discordLink:u,versionNumber:c,versionTitle:f}=U,b=de(n),v=E(!1),N=O(()=>Nt(T.timePlayed)),I=O(()=>le(J(()=>y(ne,null,[hn.map(st)]))));t({open(){v.value=!0}});function M(){var S;(S=l(b.changelog))==null||S.open()}return(S,j)=>(p(),R(ze,{modelValue:v.value,"onUpdate:modelValue":j[0]||(j[0]=K=>v.value=K)},{header:D(()=>[m("div",Sr,[l(r)?(p(),k("img",{key:0,class:"info-modal-logo",src:l(r),alt:l(i)},null,8,kr)):x("",!0),m("div",Ir,[m("h2",null,A(l(i)),1),m("h4",null,[F(" v"+A(l(c)),1),l(f)?(p(),k("span",Mr,": "+A(l(f)),1)):x("",!0)])])])]),body:D(({shown:K})=>[K?(p(),k("div",$r,[l(a)?(p(),k("div",Er,"By "+A(l(a)),1)):x("",!0),xr,Fr,m("div",{class:"link",onClick:M},"Changelog"),Tr,m("div",null,[l(u)?(p(),k("a",{key:0,href:l(u),class:"info-modal-discord-link",target:"_blank"},[Or,F(" "+A(l(s)),1)],8,Pr)):x("",!0)]),Vr,Dr,Lr,m("div",null,"Time Played: "+A(l(N)),1),(p(),R(ie(l(I))))])):x("",!0)]),_:1},8,["modelValue"]))}});var qr=G(Rr,[["__scopeId","data-v-4f97aa40"]]);const Ar={class:"field"},Br={key:0,class:"field-title"},wn=q({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var s;const n=e,i=Je(Fe(n,"title"),"span"),r=E((s=n.options.find(u=>u.value===n.modelValue))!=null?s:null);ye(Fe(n,"modelValue"),u=>{var c;be(r)!==u&&(r.value=(c=n.options.find(f=>f.value===u))!=null?c:null)});function a(u){t("update:modelValue",u.value)}return(u,c)=>(p(),k("div",Ar,[l(i)?(p(),k("span",Br,[(p(),R(ie(l(i))))])):x("",!0),y(l(Rn),{options:e.options,modelValue:r.value,"onUpdate:modelValue":[c[0]||(c[0]=f=>r.value=f),a],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const Ur={class:"field"},zr=q({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=O(()=>{var a;return le((a=l(n.title))!=null?a:"","span")}),r=O({get(){return!!n.modelValue},set(a){t("update:modelValue",a)}});return(a,s)=>(p(),k("label",Ur,[Ft(m("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":s[0]||(s[0]=u=>Q(r)?r.value=u:null)},null,512),[[On,l(r)]]),(p(),R(ie(l(i))))]))}});var we=G(zr,[["__scopeId","data-v-11046116"]]);const Gr=["onClick"],jr=q({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=E(!1),i=E(null);function r(){t("click"),i.value&&clearTimeout(i.value),n.value=!1,Ae(()=>{n.value=!0,i.value=setTimeout(()=>n.value=!1,500)})}return(a,s)=>(p(),k("button",{onClick:tt(r,["stop"]),class:ae(["feedback",{activated:n.value,left:e.left}])},[$e(a.$slots,"default",{},void 0,!0)],10,Gr))}});var Nn=G(jr,[["__scopeId","data-v-01a1b95c"]]);const Hr={class:"header"},Wr=m("h2",null,"Settings",-1),Zr={class:"option-tabs"},Kr={key:0},Yr={key:1};var Jr=q({__name:"Options",setup(e,{expose:t}){const n=E(!1),i=E("behaviour");function r(se){return se==i.value}function a(se){i.value=se}t({isTab:r,setTab:a,save:fe,open(){n.value=!0}});const s=Object.keys(Ot).map(se=>({label:Ai(se),value:se})),u=O(()=>le(J(()=>y(ne,null,[Wi.map(st)])))),{showTPS:c,theme:f,unthrottled:b,alignUnits:v}=de(ee),{autosave:N,offlineProd:I}=de(T),M=O({get(){return T.devSpeed===0},set(se){T.devSpeed=se?0:null}}),S=J(()=>y("span",{class:"option-title"},[F("Unthrottled"),y("desc",null,[F("Allow the game to run as fast as possible. Not battery friendly.")])])),j=J(()=>y("span",{class:"option-title"},[F("Offline Production"),y(Y,{display:"Save-specific",direction:W.Right},{default:()=>[F("*")]}),y("desc",null,[F("Simulate production that occurs while the game is closed.")])])),K=J(()=>y("span",{class:"option-title"},[F("Autosave"),y(Y,{display:"Save-specific",direction:W.Right},{default:()=>[F("*")]}),y("desc",null,[F("Automatically save the game every second or when the game is closed.")])])),C=J(()=>y("span",{class:"option-title"},[F("Pause game"),y(Y,{display:"Save-specific",direction:W.Right},{default:()=>[F("*")]}),y("desc",null,[F("Stop everything from moving.")])])),$=J(()=>y("span",{class:"option-title"},[F("Theme"),y("desc",null,[F("How the game looks.")])])),z=J(()=>y("span",{class:"option-title"},[F("Show TPS"),y("desc",null,[F("Show TPS meter at the bottom-left corner of the page.")])])),_e=J(()=>y("span",{class:"option-title"},[F("Align modifier units"),y("desc",null,[F("Align numbers to the beginning of the unit in modifier view.")])]));return(se,H)=>(p(),R(ze,{modelValue:n.value,"onUpdate:modelValue":H[10]||(H[10]=te=>n.value=te)},{header:D(()=>[m("div",Hr,[Wr,m("div",Zr,[m("button",{class:ae({selected:r("behaviour")}),onClick:H[0]||(H[0]=te=>a("behaviour"))},"Behaviour",2),m("button",{class:ae({selected:r("appearance")}),onClick:H[1]||(H[1]=te=>a("appearance"))},"Appearance",2)])])]),body:D(()=>[r("behaviour")?(p(),k("div",Kr,[y(we,{title:l(S),modelValue:l(b),"onUpdate:modelValue":H[2]||(H[2]=te=>Q(b)?b.value=te:null)},null,8,["title","modelValue"]),l(U).enablePausing?(p(),R(we,{key:0,title:l(C),modelValue:l(M),"onUpdate:modelValue":H[3]||(H[3]=te=>Q(M)?M.value=te:null)},null,8,["title","modelValue"])):x("",!0),y(we,{title:l(j),modelValue:l(I),"onUpdate:modelValue":H[4]||(H[4]=te=>Q(I)?I.value=te:null)},null,8,["title","modelValue"]),y(we,{title:l(K),modelValue:l(N),"onUpdate:modelValue":H[5]||(H[5]=te=>Q(N)?N.value=te:null)},null,8,["title","modelValue"]),l(N)?x("",!0):(p(),R(Nn,{key:1,class:"button save-button",onClick:H[6]||(H[6]=te=>l(fe)())},{default:D(()=>[F("Manually save")]),_:1}))])):x("",!0),r("appearance")?(p(),k("div",Yr,[y(wn,{title:l($),options:l(s),modelValue:l(f),"onUpdate:modelValue":H[7]||(H[7]=te=>Q(f)?f.value=te:null)},null,8,["title","options","modelValue"]),(p(),R(ie(l(u)))),y(we,{title:l(z),modelValue:l(c),"onUpdate:modelValue":H[8]||(H[8]=te=>Q(c)?c.value=te:null)},null,8,["title","modelValue"]),y(we,{title:l(_e),modelValue:l(v),"onUpdate:modelValue":H[9]||(H[9]=te=>Q(v)?v.value=te:null)},null,8,["title","modelValue"])])):x("",!0)]),_:1},8,["modelValue"]))}});const Xr=["onSubmit"],Qr={class:"field"},ea={key:0,class:"field-title"},ta=["placeholder"],na=q({__name:"Text",props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null,submitOnBlur:{type:Boolean}},emits:["update:modelValue","submit","cancel"],setup(e,{emit:t}){const n=e,i=Je(Fe(n,"title"),"span"),r=ve(null);_t(()=>{var c;(c=r.value)==null||c.focus()});const a=O({get(){var c;return(c=l(n.modelValue))!=null?c:""},set(c){t("update:modelValue",c)}});function s(){t("submit")}function u(){n.submitOnBlur!==!1?t("submit"):t("cancel")}return(c,f)=>(p(),k("form",{onSubmit:tt(s,["prevent"])},[m("div",Qr,[l(i)?(p(),k("span",ea,[(p(),R(ie(l(i))))])):x("",!0),e.textArea?(p(),R(l(An),{key:1,modelValue:l(a),"onUpdate:modelValue":f[0]||(f[0]=b=>Q(a)?a.value=b:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:u,ref_key:"field",ref:r},null,8,["modelValue","placeholder","maxHeight"])):Ft((p(),k("input",{key:2,type:"text","onUpdate:modelValue":f[1]||(f[1]=b=>Q(a)?a.value=b:null),placeholder:e.placeholder,class:ae({fullWidth:!e.title}),onBlur:u,ref_key:"field",ref:r},null,42,ta)),[[Vn,l(a)]])])],40,Xr))}});var Cn=G(na,[["__scopeId","data-v-90bd4994"]]);const ia={key:0},ra=["onClick","disabled"],aa={key:0},sa=["onClick"],oa=q({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const i=de(e),r=E(!1);ye(r,u=>{t("confirmingChanged",u)});function a(){if(l(i.skipConfirm)){t("click");return}r.value&&t("click"),r.value=!r.value}function s(){r.value=!1}return(u,c)=>(p(),k("span",{class:ae(["container",{confirming:r.value}])},[r.value?(p(),k("span",ia,"Are you sure?")):x("",!0),m("button",{onClick:tt(a,["stop"]),class:"button danger",disabled:e.disabled},[r.value?(p(),k("span",aa,"Yes")):$e(u.$slots,"default",{key:1},void 0,!0)],8,ra),r.value?(p(),k("button",{key:1,class:"button",onClick:tt(s,["stop"])},"No",8,sa)):x("",!0)],2))}});var la=G(oa,[["__scopeId","data-v-2f8ef34c"]]);const Ce=e=>(Te("data-v-32313015"),e=e(),Pe(),e),ua=Ce(()=>m("div",{class:"handle material-icons"},"drag_handle",-1)),ca={key:0,class:"actions"},da=Ce(()=>m("span",{class:"material-icons"},"content_paste",-1)),fa=Ce(()=>m("span",{class:"material-icons"},"content_copy",-1)),ma=Ce(()=>m("span",{class:"material-icons"},"edit",-1)),ga=Ce(()=>m("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),ha={key:1,class:"actions"},pa=Ce(()=>m("span",{class:"material-icons"},"check",-1)),va=Ce(()=>m("span",{class:"material-icons"},"close",-1)),ba={key:2,class:"details"},ya={class:"save-version"},_a=Ce(()=>m("br",null,null,-1)),wa={key:0},Na={key:3,class:"details"},Ca={key:4,class:"details error"},Sa=Ce(()=>m("br",null,null,-1)),ka=q({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:i}=de(n),r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),a=E(!1),s=E(!1),u=E("");ye(a,()=>{var v;return u.value=(v=i.value.name)!=null?v:""});const c=O(()=>i.value!=null&&i.value.id===T.id),f=O(()=>{var v;return c.value?T.time:(v=i.value!=null&&i.value.time)!=null?v:0});function b(){t("editName",u.value),a.value=!1}return(v,N)=>(p(),k("div",{class:ae(["save",{active:l(c)}])},[ua,a.value?(p(),k("div",ha,[m("button",{onClick:b,class:"button"},[y(Y,{display:"Save",direction:l(W).Left,class:"info"},{default:D(()=>[pa]),_:1},8,["direction"])]),m("button",{onClick:N[5]||(N[5]=I=>a.value=!a.value),class:"button"},[y(Y,{display:"Cancel",direction:l(W).Left,class:"info"},{default:D(()=>[va]),_:1},8,["direction"])])])):(p(),k("div",ca,[l(i).error==null&&!s.value?(p(),R(Nn,{key:0,onClick:N[0]||(N[0]=I=>t("export")),class:"button",left:""},{default:D(()=>[y(Y,{display:"Export",direction:l(W).Left,class:"info"},{default:D(()=>[da]),_:1},8,["direction"])]),_:1})):x("",!0),l(i).error==null&&!s.value?(p(),k("button",{key:1,onClick:N[1]||(N[1]=I=>t("duplicate")),class:"button"},[y(Y,{display:"Duplicate",direction:l(W).Left,class:"info"},{default:D(()=>[fa]),_:1},8,["direction"])])):x("",!0),l(i).error==null&&!s.value?(p(),k("button",{key:2,onClick:N[2]||(N[2]=I=>a.value=!a.value),class:"button"},[y(Y,{display:"Edit Name",direction:l(W).Left,class:"info"},{default:D(()=>[ma]),_:1},8,["direction"])])):x("",!0),y(la,{disabled:l(c),onClick:N[3]||(N[3]=I=>t("delete")),onConfirmingChanged:N[4]||(N[4]=I=>s.value=I)},{default:D(()=>[y(Y,{display:"Delete",direction:l(W).Left,class:"info"},{default:D(()=>[ga]),_:1},8,["direction"])]),_:1},8,["disabled"])])),l(i).error==null&&!a.value?(p(),k("div",ba,[m("button",{class:"button open",onClick:N[6]||(N[6]=I=>t("open"))},[m("h3",null,A(l(i).name),1)]),m("span",ya,"v"+A(l(i).modVersion),1),_a,l(f)?(p(),k("div",wa,"Last played "+A(l(r).format(l(f))),1)):x("",!0)])):l(i).error==null&&a.value?(p(),k("div",Na,[y(Cn,{modelValue:u.value,"onUpdate:modelValue":N[7]||(N[7]=I=>u.value=I),class:"editname",onSubmit:b},null,8,["modelValue"])])):(p(),k("div",Ca,[F(" Error: Failed to load save with id "+A(l(i).id),1),Sa,F(A(l(i).error),1)]))],2))}});var Ia=G(ka,[["__scopeId","data-v-32313015"]]);const Bt=e=>(Te("data-v-2a4275be"),e=e(),Pe(),e),Ma=Bt(()=>m("h2",null,"Saves Manager",-1)),$a={class:"modal-footer"},Ea={class:"field"},xa=Bt(()=>m("span",{class:"field-title"},"Create Save",-1)),Fa={class:"field-buttons"},Ta={class:"footer"},Pa=Bt(()=>m("div",{style:{"flex-grow":"1"}},null,-1)),Oa=q({__name:"SavesManager",setup(e,{expose:t}){const n=E(!1),i=E(null);t({open(){n.value=!0}});const r=E(!1),a=E(""),s=E(null);ye(a,C=>{C?Ae(()=>{try{if(C[0]!=="{")if(C[0]==="e")C=decodeURIComponent(escape(atob(C)));else if(C[0]==="\u1BE1")C=ke.decompressFromUTF16(C);else{console.warn("Unable to determine preset encoding",C),r.value=!0;return}const $=JSON.parse(C);if(typeof $!="object"){r.value=!0;return}const z=dt();$.id=z,fe($),a.value="",r.value=!1,ee.saves.push(z)}catch{r.value=!0}}):r.value=!1});let u={},c=E(Object.keys(u).reduce((C,$)=>(C.push({label:$.split("/").slice(-1)[0].slice(0,-4),value:u[$]}),C),[]));const f=wt({});function b(C){if(f[C]==null){let $=localStorage.getItem(C);if($==null)f[C]={error:"Save doesn't exist in localStorage",id:C};else if($==="dW5kZWZpbmVk")f[C]={error:"Save is undefined",id:C};else try{if($[0]!=="{")if($[0]==="e")$=decodeURIComponent(escape(atob($)));else if($[0]==="\u1BE1")$=ke.decompressFromUTF16($);else return console.warn("Unable to determine preset encoding",$),r.value=!0,f[C]={error:"Unable to determine preset encoding",id:C},f[C];f[C]={...JSON.parse($),id:C}}catch(z){f[C]={error:z,id:C},console.warn(`SavesManager: Failed to load info about save with id ${C}: -${z} -${$}`)}}return f[C]}ye(n,C=>{C&&Object.keys(f).forEach($=>delete f[$])});const v=O(()=>ee.saves.reduce((C,$)=>(C[$]=b($),C),{}));function N(C){let $;switch(T.id===C?$=mn(T):$=JSON.stringify(v.value[C]),U.exportEncoding){default:console.warn(`Unknown save encoding: ${U.exportEncoding}. Defaulting to lz`);case"lz":$=ke.compressToUTF16($);break;case"base64":$=btoa(unescape(encodeURIComponent($)));break;case"plain":break}const z=document.createElement("textarea");z.value=$,document.body.appendChild(z),z.select(),z.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(z)}function I(C){T.id===C&&fe();const $={...v.value[C],id:dt()};fe($),ee.saves.push($.id)}function M(C){ee.saves=ee.saves.filter($=>$!==C),localStorage.removeItem(C),f[C]=void 0}function S(C){v.value[T.id].time=T.time,fe(),f[T.id]=void 0,Le(v.value[C]),f[C]=void 0}function j(C){if(s.value=C,Ae(()=>{s.value=null}),C[0]!=="{")if(C[0]==="e")C=decodeURIComponent(escape(atob(C)));else if(C[0]==="\u1BE1")C=ke.decompressFromUTF16(C);else{console.warn("Unable to determine preset encoding",C);return}const $=JSON.parse(C);$.id=dt(),fe($),ee.saves.push($.id),S($.id)}function K(C,$){const z=v.value[C];z!=null&&(z.name=$,T.id===C?(T.name=$,fe()):(fe(z),f[C]=void 0))}return(C,$)=>(p(),R(ze,{modelValue:n.value,"onUpdate:modelValue":$[4]||($[4]=z=>n.value=z),ref_key:"modal",ref:i},{header:D(()=>[Ma]),body:D(({shown:z})=>[z?(p(),R(l(qn),{key:0,list:l(ee).saves,handle:".handle",itemKey:_e=>_e},{item:D(({element:_e})=>[y(Ia,{save:l(v)[_e],onOpen:se=>S(_e),onExport:se=>N(_e),onEditName:se=>K(_e,se),onDuplicate:se=>I(_e),onDelete:se=>M(_e)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):x("",!0)]),footer:D(()=>[m("div",$a,[y(Cn,{modelValue:a.value,"onUpdate:modelValue":$[0]||($[0]=z=>a.value=z),title:"Import Save",placeholder:"Paste your save here!",class:ae({importingFailed:r.value})},null,8,["modelValue","class"]),m("div",Ea,[xa,m("div",Fa,[m("button",{class:"button",onClick:$[1]||($[1]=z=>S(l(He)().id))},"New Game"),Object.keys(l(c)).length>0?(p(),R(wn,{key:0,options:l(c),modelValue:s.value,"onUpdate:modelValue":$[2]||($[2]=z=>j(z)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):x("",!0)])]),m("div",Ta,[Pa,m("button",{class:"button modal-default-button",onClick:$[3]||($[3]=z=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Sn=G(Oa,[["__scopeId","data-v-2a4275be"]]);const me=e=>(Te("data-v-318a1c31"),e=e(),Pe(),e),Va=["src","alt"],Da={key:1,class:"title"},La=me(()=>m("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Ra={class:"discord"},qa={class:"discord-links"},Aa={key:0},Ba=["href"],Ua=me(()=>m("li",null,[m("a",{href:"https://discord.gg/yJ4fjnjU54",target:"_blank"},"The Paper Pilot Community")],-1)),za=me(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Ga={href:"https://forums.moddingtree.com/",target:"_blank"},ja=me(()=>m("span",{class:"material-icons"},"forum",-1)),Ha=me(()=>m("span",{class:"material-icons"},"info",-1)),Wa=me(()=>m("span",{class:"material-icons"},"library_books",-1)),Za=me(()=>m("span",{class:"material-icons"},"settings",-1)),Ka=me(()=>m("span",{class:"material-icons"},"library_books",-1)),Ya=me(()=>m("span",{class:"material-icons"},"settings",-1)),Ja=me(()=>m("span",{class:"material-icons"},"info",-1)),Xa={href:"https://forums.moddingtree.com/",target:"_blank"},Qa=me(()=>m("span",{class:"material-icons"},"forum",-1)),es={class:"discord"},ts={class:"discord-links"},ns={key:0},is=["href"],rs=me(()=>m("li",null,[m("a",{href:"https://discord.gg/yJ4fjnjU54",target:"_blank"},"The Paper Pilot Community")],-1)),as=me(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),ss=q({__name:"Nav",setup(e){const t=E(null),n=E(null),i=E(null),r=E(null),{useHeader:a,banner:s,title:u,discordName:c,discordLink:f,versionNumber:b}=U;function v(){window.open(f,"mywindow")}return(N,I)=>(p(),k(ne,null,[l(a)?(p(),k("div",Be({key:0,class:"nav"},N.$attrs),[l(s)?(p(),k("img",{key:0,src:l(s),class:"banner",alt:l(u)},null,8,Va)):(p(),k("div",Da,A(l(u)),1)),m("div",{onClick:I[0]||(I[0]=M=>{var S;return(S=r.value)==null?void 0:S.open()}),class:"version-container"},[y(Y,{display:"Changelog",direction:l(W).Down,class:"version"},{default:D(()=>[m("span",null,"v"+A(l(b)),1)]),_:1},8,["direction"])]),La,m("div",Ra,[m("span",{onClick:v,class:"material-icons"},"discord"),m("ul",qa,[l(f)?(p(),k("li",Aa,[m("a",{href:l(f),target:"_blank"},A(l(c)),9,Ba)])):x("",!0),Ua,za])]),m("div",null,[m("a",Ga,[y(Y,{display:"Forums",direction:l(W).Down,yoffset:"5px"},{default:D(()=>[ja]),_:1},8,["direction"])])]),m("div",{onClick:I[1]||(I[1]=M=>{var S;return(S=t.value)==null?void 0:S.open()})},[y(Y,{display:"Info",direction:l(W).Down,class:"info"},{default:D(()=>[Ha]),_:1},8,["direction"])]),m("div",{onClick:I[2]||(I[2]=M=>{var S;return(S=n.value)==null?void 0:S.open()})},[y(Y,{display:"Saves",direction:l(W).Down,xoffset:"-20px"},{default:D(()=>[Wa]),_:1},8,["direction"])]),m("div",{onClick:I[3]||(I[3]=M=>{var S;return(S=i.value)==null?void 0:S.open()})},[y(Y,{display:"Settings",direction:l(W).Down,xoffset:"-66px"},{default:D(()=>[Za]),_:1},8,["direction"])])],16)):(p(),k("div",Be({key:1,class:"overlay-nav"},N.$attrs),[m("div",{onClick:I[4]||(I[4]=M=>{var S;return(S=r.value)==null?void 0:S.open()}),class:"version-container"},[y(Y,{display:"Changelog",direction:l(W).Right,xoffset:"25%",class:"version"},{default:D(()=>[m("span",null,"v"+A(l(b)),1)]),_:1},8,["direction"])]),m("div",{onClick:I[5]||(I[5]=M=>{var S;return(S=n.value)==null?void 0:S.open()})},[y(Y,{display:"Saves",direction:l(W).Right},{default:D(()=>[Ka]),_:1},8,["direction"])]),m("div",{onClick:I[6]||(I[6]=M=>{var S;return(S=i.value)==null?void 0:S.open()})},[y(Y,{display:"Settings",direction:l(W).Right},{default:D(()=>[Ya]),_:1},8,["direction"])]),m("div",{onClick:I[7]||(I[7]=M=>{var S;return(S=t.value)==null?void 0:S.open()})},[y(Y,{display:"Info",direction:l(W).Right},{default:D(()=>[Ja]),_:1},8,["direction"])]),m("div",null,[m("a",Xa,[y(Y,{display:"Forums",direction:l(W).Right,xoffset:"7px"},{default:D(()=>[Qa]),_:1},8,["direction"])])]),m("div",es,[m("span",{onClick:v,class:"material-icons"},"discord"),m("ul",ts,[l(f)?(p(),k("li",ns,[m("a",{href:l(f),target:"_blank"},A(l(c)),9,is)])):x("",!0),rs,as])])],16)),y(qr,{ref_key:"info",ref:t,changelog:r.value},null,8,["changelog"]),y(Sn,{ref_key:"savesManager",ref:n},null,512),y(Jr,{ref_key:"options",ref:i},null,512),y(_r,{ref_key:"changelog",ref:r},null,512)],64))}});var kn=G(ss,[["__scopeId","data-v-318a1c31"]]);const os={class:"inner-tab"},ls=q({__name:"Game",setup(e){const t=Fe(T,"tabs"),n=O(()=>Object.keys(oe)),i=U.useHeader;function r(a){const{display:s,minimized:u,name:c,color:f,minimizable:b,nodes:v,minimizedDisplay:N}=a;return{display:s,minimized:u,name:c,color:f,minimizable:b,nodes:v,minimizedDisplay:N}}return(a,s)=>(p(),k("div",{class:ae(["tabs-container",{useHeader:l(i)}])},[(p(!0),k(ne,null,tn(l(t),(u,c)=>{var f,b;return p(),k("div",{key:c,class:ae(["tab",l((f=l(oe)[u])==null?void 0:f.classes)]),style:pe(l((b=l(oe)[u])==null?void 0:b.style))},[c===0&&!l(i)?(p(),R(kn,{key:0})):x("",!0),m("div",os,[l(n).includes(u)?(p(),R(pr,Be({key:0},r(l(oe)[u]),{index:c,onSetMinimized:v=>l(oe)[u].minimized.value=v}),null,16,["index","onSetMinimized"])):(p(),R(ie(u),{key:1,index:c},null,8,["index"]))])],6)}),128))],2))}});var us=G(ls,[["__scopeId","data-v-dcd207b4"]]);const cs=q({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(p(),k("div",{style:pe({width:e.width,height:e.height})},null,4))}});function In(e,t="points",n=0,i=void 0){const r=Q(e)?e:ot(e);if(r.displayName=t,r.precision=n,r.small=i,!Q(e)){const a=r[Ie];a.displayName=t,a.precision=n,a.small=i}return r}function ds(e){const t=ot(e.value);return ye(e,n=>{Vt.value||o.gt(n,t.value)&&(t.value=n)}),t}function fs(e){const t=ot(e.value);return ye(e,(n,i)=>{Vt.value||o.gt(n,i)&&(t.value=o.add(t.value,o.sub(n,i)))}),t}const ms=new o("10^^8"),gs=new o("1e100");function hs(e,t){const n=E(0),i=E(0),r=E(0);return re.on("update",s=>{if(i.value=0,o.lte(e.value,gs)){r.value=e.value;return}let u=e.value,c=r.value;if(r.value=u,o.gt(u,c))if(o.gte(u,ms))u=o.slog(u,1e10),c=o.slog(c,1e10),n.value=u.sub(c).div(s),i.value=-1;else for(;o.div(u,c).log(10).div(s).gte("100")&&i.value<=5&&o.gt(c,0);)u=o.log10(u),c=o.log10(c),n.value=u.sub(c).div(s),i.value++}),O(()=>i.value===0?t?Ne(t.value,e.precision,e.small)+" "+e.displayName+"/s":"":Ne(n.value)+" OOM"+(i.value<0?"^OOM":"^"+i.value)+"s/sec")}function vt(e,t){const n=t!=null?t:e.value;return o.eq(e.precision,0)?Ke(e.small?n:o.floor(n)):Ne(n,e.precision,e.small)}const ps=["x1","y1","x2","y2"],vs=q({__name:"Link",props:{link:null,startNode:null,endNode:null,boundingRect:null},setup(e){const n=de(e),i=O(()=>{const a=n.startNode.value.rect,s=n.boundingRect.value,u=s?{x:a.x+a.width/2-s.x,y:a.y+a.height/2-s.y}:{x:0,y:0};return n.link.value.offsetStart&&(u.x+=n.link.value.offsetStart.x,u.y+=n.link.value.offsetStart.y),u}),r=O(()=>{const a=n.endNode.value.rect,s=n.boundingRect.value,u=s?{x:a.x+a.width/2-s.x,y:a.y+a.height/2-s.y}:{x:0,y:0};return n.link.value.offsetEnd&&(u.x+=n.link.value.offsetEnd.x,u.y+=n.link.value.offsetEnd.y),u});return(a,s)=>(p(),k("line",Be({"stroke-width":"15px",stroke:"white"},e.link,{x1:l(i).x,y1:l(i).y,x2:l(r).x,y2:l(r).y}),null,16,ps))}});const bs=q({__name:"Links",props:{links:null},setup(e){var c;const n=Fe(e,"links"),i=E(null),r=mt(Rt,E({})),a=mt(qt,E(void 0)),s=E((c=i.value)==null?void 0:c.getBoundingClientRect());ye(a,()=>{var f;return s.value=(f=i.value)==null?void 0:f.getBoundingClientRect()}),_t(()=>{var f;return s.value=(f=i.value)==null?void 0:f.getBoundingClientRect()});const u=O(()=>{var b,v;const f=r.value;return(v=(b=n.value)==null?void 0:b.filter(N=>{var I,M;return((I=f[N.startNode.id])==null?void 0:I.rect)&&((M=f[N.startNode.id])==null?void 0:M.rect)}))!=null?v:[]});return(f,b)=>(p(),k(ne,null,[l(u)?(p(),k("svg",Dn(Be({key:0},f.$attrs)),[(p(!0),k(ne,null,tn(l(u),(v,N)=>(p(),R(vs,{key:N,link:v,boundingRect:s.value,startNode:l(r)[v.startNode.id],endNode:l(r)[v.endNode.id]},null,8,["link","boundingRect","startNode","endNode"]))),128))],16)):x("",!0),m("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var ys=G(bs,[["__scopeId","data-v-063f6d6b"]]),_s=q({props:{nodes:{type:B(Array),required:!0},leftSideNodes:B(Array),rightSideNodes:B(Array),branches:B(Array)},components:{Links:ys},setup(e){const{nodes:t,leftSideNodes:n,rightSideNodes:i}=de(e),r=ve();Me(()=>{const u=be(t);r.value=le(J(()=>y(ne,null,[u.map(c=>y("span",{class:"row tree-row",style:"margin: 50px auto;"},[c.map(ft)]))])))});const a=ve();Me(()=>{const u=be(n);a.value=u?le(J(()=>y("span",{class:"left-side-nodes small"},[u.map(ft)]))):""});const s=ve();return Me(()=>{const u=be(i);s.value=u?le(J(()=>y("span",{class:"side-nodes small"},[u.map(ft)]))):""}),{unref:l,nodesComp:r,leftNodesComp:a,rightNodesComp:s}}});function ws(e,t,n,i,r,a){const s=Ze("Links");return p(),k(ne,null,[(p(),R(ie(e.nodesComp))),e.leftNodesComp?(p(),R(ie(e.leftNodesComp),{key:0})):x("",!0),e.rightNodesComp?(p(),R(ie(e.rightNodesComp),{key:1})):x("",!0),e.branches?(p(),R(s,{key:2,links:e.unref(e.branches)},null,8,["links"])):x("",!0)],64)}var Ns=G(_s,[["render",ws],["__scopeId","data-v-39ca96d0"]]);const Cs={key:0},Ss={key:0,class:"mark star"},ks=["src"],Is=q({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(p(),k("div",Cs,[e.mark===!0?(p(),k("div",Ss)):(p(),k("img",{key:1,class:"mark",src:e.mark},null,8,ks))])):x("",!0)}});var Mn=G(Is,[["__scopeId","data-v-2207999f"]]);const Ms=q({__name:"Node",props:{id:null},setup(e){const n=de(e),i=mt(Dt,()=>{}),r=mt(Lt,()=>{}),a=ve(null),s=O(()=>a.value&&a.value.parentElement);return ye([s,n.id],([u,c],[f,b])=>{f&&r(l(b)),u&&i(c,u)}),en(()=>r(l(n.id))),(u,c)=>(p(),k("div",{class:"node",ref_key:"node",ref:a},null,512))}});var $n=G(Ms,[["__scopeId","data-v-a48cb382"]]);const $s=q({props:{display:B(Object,String,Function),visibility:{type:B(Number,Boolean),required:!0},style:B(String,Object,Array),classes:B(Object),onClick:Function,onHold:Function,color:B(String),glowColor:B(String),canClick:{type:B(Boolean),required:!0},mark:B(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Mn,Node:$n},setup(e){const{onClick:t,onHold:n,display:i}=de(e),r=Je(i),{start:a,stop:s}=pn(t,n);return{start:a,stop:s,comp:r,unref:l,Visibility:Ye,isCoercableComponent:St,isVisible:cn,isHidden:dn}}});function Es(e,t,n,i,r,a){var c;const s=Ze("MarkNode"),u=Ze("Node");return e.isVisible(e.visibility)?(p(),k("div",{key:0,style:pe({visibility:e.isHidden(e.visibility)?"hidden":void 0}),class:ae({treeNode:!0,can:e.unref(e.canClick),...e.unref(e.classes)}),onClick:t[0]||(t[0]=(...f)=>e.onClick&&e.onClick(...f)),onMousedown:t[1]||(t[1]=(...f)=>e.start&&e.start(...f)),onMouseleave:t[2]||(t[2]=(...f)=>e.stop&&e.stop(...f)),onMouseup:t[3]||(t[3]=(...f)=>e.stop&&e.stop(...f)),onTouchstartPassive:t[4]||(t[4]=(...f)=>e.start&&e.start(...f)),onTouchendPassive:t[5]||(t[5]=(...f)=>e.stop&&e.stop(...f)),onTouchcancelPassive:t[6]||(t[6]=(...f)=>e.stop&&e.stop(...f))},[m("div",{style:pe([{backgroundColor:e.unref(e.color),boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${e.unref(e.glowColor)}`},(c=e.unref(e.style))!=null?c:[]])},[(p(),R(ie(e.unref(e.comp))))],4),y(s,{mark:e.unref(e.mark)},null,8,["mark"]),y(u,{id:e.id},null,8,["id"])],38)):x("",!0)}var xs=G($s,[["render",Es],["__scopeId","data-v-4520cd79"]]);const Fs=Symbol("TreeNode"),Ts=Symbol("Tree");function Ps(e,...t){const n=t.reduce((i,r)=>{var a;return Object.assign(i,(a=r.getPersistentData)==null?void 0:a.call(r))},{});return Ge(i=>{var s,u,c;const r=(s=e==null?void 0:e.call(i,i))!=null?s:{};r.id=Ct("treeNode-"),r.type=Fs,r[Ee]=xs;for(const f of t)(u=f.preConstruct)==null||u.call(f,r);Object.assign(n),P(r,"visibility"),ue(r,"visibility",Ye.Visible),P(r,"canClick"),ue(r,"canClick",!0),P(r,"color"),P(r,"display"),P(r,"glowColor"),P(r,"classes"),P(r,"style"),P(r,"mark");for(const f of t)(c=f.postConstruct)==null||c.call(f,r);if(r.onClick){const f=r.onClick.bind(r);r.onClick=function(b){l(r.canClick)!==!1&&f(b)}}if(r.onHold){const f=r.onHold.bind(r);r.onHold=function(){l(r.canClick)!==!1&&f()}}const a=t.reduce((f,b)=>{var v;return Object.assign(f,(v=b.getGatheredProps)==null?void 0:v.call(b,r))},{});return r[xe]=function(){const{display:f,visibility:b,style:v,classes:N,onClick:I,onHold:M,color:S,glowColor:j,canClick:K,mark:C,id:$}=this;return{display:f,visibility:b,style:v,classes:N,onClick:I,onHold:M,color:S,glowColor:j,canClick:K,mark:C,id:$,...a}},r})}function Os(e){return Ge(t=>{const n=e.call(t,t);return n.id=Ct("tree-"),n.type=Ts,n[Ee]=Ns,n.isResetting=E(!1),n.resettingNode=ve(null),n.reset=function(i){var a,s;const r=n;r.isResetting.value=!0,r.resettingNode.value=i,(a=r.resetPropagation)==null||a.call(r,r,i),(s=r.onReset)==null||s.call(r,i),r.isResetting.value=!1,r.resettingNode.value=null},n.links=O(()=>{var r;return(r=l(n.branches))!=null?r:[]}),P(n,"visibility"),ue(n,"visibility",Ye.Visible),P(n,"nodes"),P(n,"leftSideNodes"),P(n,"rightSideNodes"),P(n,"branches"),n[xe]=function(){const{nodes:i,leftSideNodes:r,rightSideNodes:a,branches:s}=this;return{nodes:i,leftSideNodes:r,rightSideNodes:a,branches:s}},n})}const Vs=function(e,t){const n=[t];let i=[t];if(e.branches!=null){const r=l(e.branches);for(;i.length>0;){const a=[];i.forEach(s=>{r.filter(u=>u.startNode===s||u.endNode===s).map(u=>u.startNode===s?u.endNode:u.startNode).filter(u=>!n.includes(u)).forEach(u=>{var c;a.includes(u)||(a.push(u),(c=u.reset)==null||c.reset())})}),i=a,n.push(...i)}}};function Ds(e,t=null,n=0){const i=xt(n);return O(()=>t==null||o.gte(e.value,l(i))?vt(e)+" "+e.displayName:`Reach ${o.eq(t.precision,0)?Ke(l(i)):Ne(l(i),t.precision)} ${t.displayName} to unlock (You have ${o.eq(t.precision,0)?Ke(t.value):Ne(t.value,t.precision)})`)}const En=o.ln(10);function et(e){return e}function Ls(e,t){if(w(t))return t.invert(o.neg(e));throw new Error("Could not invert due to no input being a variable")}function Rs(e,t){if(w(t))return _.neg(t.getIntegralFormula(e));throw new Error("Could not integrate due to no input being a variable")}function qs(e){return _.neg(e)}function As(e,t,n){if(w(t))return t.invert(o.sub(e,Z(n)));if(w(n))return n.invert(o.sub(e,Z(t)));throw new Error("Could not invert due to no input being a variable")}function Bs(e,t,n){var i,r;if(w(t)){const a=t.getIntegralFormula(e);return _.times(n,(i=t.innermostVariable)!=null?i:0).add(a)}else if(w(n)){const a=n.getIntegralFormula(e);return _.times(t,(r=n.innermostVariable)!=null?r:0).add(a)}throw new Error("Could not integrate due to no input being a variable")}function Us(e,t,n){if(w(t)){const i=t.getIntegralFormula(e);return _.add(i,n)}else if(w(n)){const i=n.getIntegralFormula(e);return _.add(i,t)}throw new Error("Could not integrate due to no input being a variable")}function zs(e,t,n){if(w(t))return t.invert(o.add(e,Z(n)));if(w(n))return n.invert(o.sub(Z(t),e));throw new Error("Could not invert due to no input being a variable")}function Gs(e,t,n){var i,r;if(w(t)){const a=t.getIntegralFormula(e);return _.sub(a,_.times(n,(i=t.innermostVariable)!=null?i:0))}else if(w(n)){const a=n.getIntegralFormula(e);return _.times(t,(r=n.innermostVariable)!=null?r:0).sub(a)}throw new Error("Could not integrate due to no input being a variable")}function js(e,t,n){if(w(t)){const i=t.getIntegralFormula(e);return _.sub(i,n)}else if(w(n)){const i=n.getIntegralFormula(e);return _.sub(i,t)}throw new Error("Could not integrate due to no input being a variable")}function Hs(e,t,n){if(w(t))return t.invert(o.div(e,Z(n)));if(w(n))return n.invert(o.div(e,Z(t)));throw new Error("Could not invert due to no input being a variable")}function Ws(e,t,n){if(w(t)){const i=t.getIntegralFormula(e);return _.times(i,n)}else if(w(n)){const i=n.getIntegralFormula(e);return _.times(i,t)}throw new Error("Could not integrate due to no input being a variable")}function Zs(e,t,n){if(w(t))return _.div(e,n);if(w(n))return _.div(e,t);throw new Error("Could not apply substitution due to no input being a variable")}function Ks(e,t,n){if(w(t))return t.invert(o.mul(e,Z(n)));if(w(n))return n.invert(o.div(Z(t),e));throw new Error("Could not invert due to no input being a variable")}function Ys(e,t,n){if(w(t)){const i=t.getIntegralFormula(e);return _.div(i,n)}else if(w(n)){const i=n.getIntegralFormula(e);return _.div(t,i)}throw new Error("Could not integrate due to no input being a variable")}function Js(e,t,n){if(w(t))return _.mul(e,n);if(w(n))return _.mul(e,t);throw new Error("Could not apply substitution due to no input being a variable")}function Xs(e,t){if(w(t))return t.invert(o.recip(e));throw new Error("Could not invert due to no input being a variable")}function Qs(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.ln(n)}throw new Error("Could not integrate due to no input being a variable")}function eo(e,t){if(w(t))return t.invert(o.pow10(e));throw new Error("Could not invert due to no input being a variable")}function to(e){return o.ln(e).sub(1).times(e).div(En)}function no(e,t){if(w(t)){const n=En.times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}throw new Error("Could not invert due to no input being a variable")}function io(e,t){if(w(t))return new _({inputs:[t.getIntegralFormula(e)],evaluate:to,invert:no});throw new Error("Could not integrate due to no input being a variable")}function ro(e,t,n){if(w(t))return t.invert(o.pow(Z(n),e));if(w(n))return n.invert(o.root(Z(t),e));throw new Error("Could not invert due to no input being a variable")}function ao(e,t){return o.ln(e).sub(1).times(e).div(o.ln(t))}function so(e,t,n){if(w(t)){const i=o.ln(Z(n)).times(e);return t.invert(i.div(i.div(Math.E).lambertw()))}throw new Error("Could not invert due to no input being a variable")}function oo(e,t,n){if(w(t))return new _({inputs:[t.getIntegralFormula(e),n],evaluate:ao,invert:so});throw new Error("Could not integrate due to no input being a variable")}function lo(e,t){if(w(t))return t.invert(o.pow(2,e));throw new Error("Could not invert due to no input being a variable")}function uo(e){return o.ln(e).sub(1).times(e).div(o.ln(2))}function co(e,t){if(w(t)){const n=o.ln(2).times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}throw new Error("Could not invert due to no input being a variable")}function fo(e,t){if(w(t))return new _({inputs:[t.getIntegralFormula(e)],evaluate:uo,invert:co});throw new Error("Could not integrate due to no input being a variable")}function mo(e,t){if(w(t))return t.invert(o.exp(e));throw new Error("Could not invert due to no input being a variable")}function go(e){return o.ln(e).sub(1).times(e)}function ho(e,t){if(w(t))return t.invert(o.div(e,o.div(e,Math.E).lambertw()));throw new Error("Could not invert due to no input being a variable")}function po(e,t){if(w(t))return new _({inputs:[t.getIntegralFormula(e)],evaluate:go,invert:ho});throw new Error("Could not integrate due to no input being a variable")}function vo(e,t,n){if(w(t))return t.invert(o.root(e,Z(n)));if(w(n))return n.invert(o.ln(e).div(o.ln(Z(t))));throw new Error("Could not invert due to no input being a variable")}function bo(e,t,n){if(w(t)){const i=t.getIntegralFormula(e),r=_.add(n,1);return _.pow(i,r).div(r)}else if(w(n)){const i=n.getIntegralFormula(e);return _.pow(t,i).div(_.ln(t))}throw new Error("Could not integrate due to no input being a variable")}function yo(e,t){if(w(t))return t.invert(o.root(e,10));throw new Error("Could not invert due to no input being a variable")}function _o(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.pow10(n).div(_.ln(10))}throw new Error("Could not integrate due to no input being a variable")}function wo(e,t,n){if(w(t))return t.invert(o.ln(e).div(Z(n)));if(w(n))return n.invert(o.root(Z(t),e));throw new Error("Could not invert due to no input being a variable")}function No(e,t,n){if(w(t)){const i=t.getIntegralFormula(e);return _.pow(n,i).div(_.ln(n))}else if(w(n)){const i=n.getIntegralFormula(e),r=_.add(t,1);return _.pow(i,r).div(r)}throw new Error("Could not integrate due to no input being a variable")}function Co(e,t,n){if(w(t))return t.invert(o.root(e,o.recip(Z(n))));if(w(n))return n.invert(o.ln(Z(t)).div(o.ln(e)));throw new Error("Could not invert due to no input being a variable")}function So(e,t,n){if(w(t)){const i=t.getIntegralFormula(e);return _.pow(i,_.recip(n).add(1)).times(n).div(_.add(n,1))}throw new Error("Could not integrate due to no input being a variable")}function ko(e,t){if(w(t))return t.invert(o.ln(e));throw new Error("Could not invert due to no input being a variable")}function Io(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.exp(n)}throw new Error("Could not integrate due to no input being a variable")}function Mo(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){const i=o.minabs(t,1e308).toNumber();return o.tetrate(e,i,n)}function $o(e,t,n,i){if(w(t))return t.invert(o.ssqrt(e));throw new Error("Could not invert due to no input being a variable")}function Eo(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){const i=o.minabs(t,1e308).toNumber();return o.iteratedexp(e,i,new o(n))}function xo(e,t,n,i){if(w(t))return t.invert(o.iteratedlog(e,Math.E,o.minabs(1e308,Z(n)).toNumber()));throw new Error("Could not invert due to no input being a variable")}function Fo(e,t=10,n=2){const i=o.minabs(n,1e308).toNumber();return o.iteratedlog(e,t,i)}function To(e,t=10){const n=o.minabs(t,1e308).toNumber();return o.slog(e,n)}function Po(e,t,n){if(w(t))return t.invert(o.tetrate(e,o.minabs(1e308,Z(n)).toNumber()));throw new Error("Could not invert due to no input being a variable")}function Oo(e,t,n){const i=o.minabs(t,1e308).toNumber();return o.layeradd(e,i,n)}function Vo(e,t,n,i){if(w(t))return t.invert(o.layeradd(e,o.minabs(1e308,Z(n)).negate().toNumber()));throw new Error("Could not invert due to no input being a variable")}function Do(e,t){if(w(t))return t.invert(o.pow(Math.E,e).times(e));throw new Error("Could not invert due to no input being a variable")}function Lo(e,t){if(w(t))return t.invert(o.tetrate(e,2));throw new Error("Could not invert due to no input being a variable")}function Ro(e,t,n){const i=o.minabs(t,1e308).toNumber();return o.pentate(e,i,n)}function qo(e,t){if(w(t))return t.invert(o.asin(e));throw new Error("Could not invert due to no input being a variable")}function Ao(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.cos(n).neg()}throw new Error("Could not integrate due to no input being a variable")}function Bo(e,t){if(w(t))return t.invert(o.acos(e));throw new Error("Could not invert due to no input being a variable")}function Uo(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.sin(n)}throw new Error("Could not integrate due to no input being a variable")}function zo(e,t){if(w(t))return t.invert(o.atan(e));throw new Error("Could not invert due to no input being a variable")}function Go(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.cos(n).ln().neg()}throw new Error("Could not integrate due to no input being a variable")}function jo(e,t){if(w(t))return t.invert(o.sin(e));throw new Error("Could not invert due to no input being a variable")}function Ho(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.asin(n).times(n).add(_.sqrt(_.sub(1,_.pow(n,2))))}throw new Error("Could not integrate due to no input being a variable")}function Wo(e,t){if(w(t))return t.invert(o.cos(e));throw new Error("Could not invert due to no input being a variable")}function Zo(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.acos(n).times(n).sub(_.sqrt(_.sub(1,_.pow(n,2))))}throw new Error("Could not integrate due to no input being a variable")}function Ko(e,t){if(w(t))return t.invert(o.tan(e));throw new Error("Could not invert due to no input being a variable")}function Yo(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.atan(n).times(n).sub(_.ln(_.pow(n,2).add(1)).div(2))}throw new Error("Could not integrate due to no input being a variable")}function Jo(e,t){if(w(t))return t.invert(o.asinh(e));throw new Error("Could not invert due to no input being a variable")}function Xo(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.cosh(n)}throw new Error("Could not integrate due to no input being a variable")}function Qo(e,t){if(w(t))return t.invert(o.acosh(e));throw new Error("Could not invert due to no input being a variable")}function el(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.sinh(n)}throw new Error("Could not integrate due to no input being a variable")}function tl(e,t){if(w(t))return t.invert(o.atanh(e));throw new Error("Could not invert due to no input being a variable")}function nl(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.cosh(n).ln()}throw new Error("Could not integrate due to no input being a variable")}function il(e,t){if(w(t))return t.invert(o.sinh(e));throw new Error("Could not invert due to no input being a variable")}function rl(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.asinh(n).times(n).sub(_.pow(n,2).add(1).sqrt())}throw new Error("Could not integrate due to no input being a variable")}function al(e,t){if(w(t))return t.invert(o.cosh(e));throw new Error("Could not invert due to no input being a variable")}function sl(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.acosh(n).times(n).sub(_.add(n,1).sqrt().times(_.sub(n,1).sqrt()))}throw new Error("Could not integrate due to no input being a variable")}function ol(e,t){if(w(t))return t.invert(o.tanh(e));throw new Error("Could not invert due to no input being a variable")}function ll(e,t){if(w(t)){const n=t.getIntegralFormula(e);return _.atanh(n).times(n).add(_.sub(1,_.pow(n,2)).ln().div(2))}throw new Error("Could not integrate due to no input being a variable")}function Xe(e){return(t,n)=>new _({inputs:[t,n],evaluate:e,invert:et})}function w(e){return e instanceof _&&e.hasVariable()}function Z(e,t){return e instanceof _?e.evaluate(t):l(e)}function ul(){return _.pow(this,2).div(2)}function cl(){return this}const g=class{constructor(e){this.negate=this.neg,this.negated=this.neg,this.sgn=this.sign,this.plus=this.add,this.subtract=this.sub,this.minus=this.sub,this.multiply=this.mul,this.times=this.mul,this.divide=this.div,this.divideBy=this.div,this.dividedBy=this.div,this.reciprocal=this.recip,this.reciprocate=this.recip,this.logarithm=this.log;let t;"inputs"in e&&(e.inputs=e.inputs.map(n=>typeof n=="object"&&Ie in n?n[Ie]:n)),"variable"in e?(typeof e.variable=="object"&&Ie in e.variable&&(e.variable=e.variable[Ie]),t=this.setupVariable(e)):"evaluate"in e?t=this.setupFormula(e):t=this.setupConstant(e),this.inputs=t.inputs,this.internalVariables=t.internalVariables,this.innermostVariable=t.innermostVariable,this.internalEvaluate=t.internalEvaluate,this.internalInvert=t.internalInvert,this.internalIntegrate=t.internalIntegrate,this.internalIntegrateInner=t.internalIntegrateInner,this.applySubstitution=t.applySubstitution}setupVariable({variable:e}){return{inputs:[e],internalVariables:1,innermostVariable:e,internalIntegrate:ul,internalIntegrateInner:cl,applySubstitution:et}}setupConstant({inputs:e}){if(e.length!==1)throw new Error("Evaluate function is required if inputs is not length 1");return{inputs:e,internalVariables:0}}setupFormula(e){const{inputs:t,evaluate:n,invert:i,integrate:r,integrateInner:a,applySubstitution:s}=e,u=t.reduce((b,v)=>b+(v instanceof g?v.internalVariables:0),0),c=t.find(b=>b instanceof g&&b.hasVariable()),f=u===1?c==null?void 0:c.innermostVariable:void 0;return{inputs:t,internalEvaluate:n,internalInvert:i,internalIntegrate:r,internalIntegrateInner:a,applySubstitution:s,innermostVariable:f,internalVariables:u}}calculateConstantOfIntegration(){const e=this.getIntegralFormula().evaluate(1),t=o.add(this.evaluate(0),this.evaluate(1)).div(2);return o.sub(t,e)}isInvertible(){return this.hasVariable()&&(this.internalInvert!=null||this.internalEvaluate==null)}isIntegrable(){return this.hasVariable()&&this.internalIntegrate!=null}isIntegralInvertible(){return this.isIntegrable()?this.getIntegralFormula().isInvertible():!1}hasVariable(){return this.internalVariables===1}evaluate(e){var t,n,i;return(i=(n=(t=this.internalEvaluate)==null?void 0:t.call(this,...this.inputs.map(r=>Z(r,e))))!=null?n:this.hasVariable()?e:null)!=null?i:Z(this.inputs[0])}invert(e){if(this.internalInvert&&this.hasVariable())return this.internalInvert.call(this,e,...this.inputs);if(this.inputs.length===1&&this.hasVariable())return e;throw new Error("Cannot invert non-invertible formula")}evaluateIntegral(e){if(!this.isIntegrable())throw new Error("Cannot evaluate integral of formula without integral");return this.getIntegralFormula().evaluate(e)}invertIntegral(e){if(!this.isIntegrable()||!this.getIntegralFormula().isInvertible())throw new Error("Cannot invert integral of formula without invertible integral");return this.getIntegralFormula().invert(e)}getIntegralFormula(e){if(this.integralFormula!=null&&e==null)return this.integralFormula;if(e==null){if(this.applySubstitution==null){if(e=[],this.internalIntegrate==null)throw new Error("Cannot integrate formula with non-integrable operation");let t=this.internalIntegrate.call(this,e,...this.inputs);e.forEach(n=>t=n(t)),this.integralFormula=t}else if(this.internalIntegrate)this.integralFormula=this.internalIntegrate.call(this,void 0,...this.inputs);else if(this.inputs.length===1&&this.internalEvaluate==null&&this.hasVariable())this.integralFormula=this;else throw new Error("Cannot integrate formula without variable");return this.integralFormula}else{if(this.applySubstitution==null)throw new Error("Cannot have two complex operations in an integrable formula");if(e.push(t=>this.applySubstitution.call(this,t,...this.inputs)),this.internalIntegrateInner)return this.internalIntegrateInner.call(this,e,...this.inputs);if(this.internalIntegrate)return this.internalIntegrate.call(this,e,...this.inputs);if(this.inputs.length===1&&this.internalEvaluate==null&&this.hasVariable())return this;throw new Error("Cannot integrate formula without variable")}}equals(e){return this.inputs.length===e.inputs.length&&this.inputs.every((t,n)=>t instanceof g&&e.inputs[n]instanceof g?t.equals(e.inputs[n]):!(t instanceof g)&&!(e.inputs[n]instanceof g)&&o.eq(l(t),l(e.inputs[n])))&&this.internalEvaluate===e.internalEvaluate&&this.internalInvert===e.internalInvert&&this.internalIntegrate===e.internalIntegrate&&this.internalVariables===e.internalVariables}static constant(e){return new g({inputs:[e]})}static variable(e){return new g({variable:e})}static step(e,t,n){const i=E(0),r=n(g.variable(i)),a=xt(t);function s(c){return o.lt(c,l(a))?c:(i.value=o.sub(c,l(a)),o.add(r.evaluate(),l(a)))}function u(c,f){if(w(f))return o.gt(c,l(a))&&(c=o.add(r.invert(o.sub(c,l(a))),l(a))),f.invert(c);throw new Error("Could not invert due to no input being a variable")}return new g({inputs:[e],evaluate:s,invert:r.isInvertible()&&r.hasVariable()?u:void 0})}static if(e,t,n,i){const r=E(0),a=g.variable(r),s=n(a),u=i==null?void 0:i(a),c=xt(t);function f(v){return l(c)?(r.value=v,s.evaluate()):u?(r.value=v,u.evaluate()):v}function b(v,N){if(!w(N))throw new Error("Could not invert due to no input being a variable");return l(c)?N.invert(s.invert(v)):u?N.invert(u.invert(v)):N.invert(v)}return new g({inputs:[e],evaluate:f,invert:s.isInvertible()&&s.hasVariable()?b:void 0})}static conditional(e,t,n,i){return g.if(e,t,n,i)}static abs(e){return new g({inputs:[e],evaluate:o.abs})}static neg(e){return new g({inputs:[e],evaluate:o.neg,invert:Ls,applySubstitution:qs,integrate:Rs})}static sign(e){return new g({inputs:[e],evaluate:o.sign})}static round(e){return new g({inputs:[e],evaluate:o.round})}static floor(e){return new g({inputs:[e],evaluate:o.floor})}static ceil(e){return new g({inputs:[e],evaluate:o.ceil})}static trunc(e){return new g({inputs:[e],evaluate:o.trunc})}static add(e,t){return new g({inputs:[e,t],evaluate:o.add,invert:As,integrate:Bs,integrateInner:Us,applySubstitution:et})}static sub(e,t){return new g({inputs:[e,t],evaluate:o.sub,invert:zs,integrate:Gs,integrateInner:js,applySubstitution:et})}static mul(e,t){return new g({inputs:[e,t],evaluate:o.mul,invert:Hs,integrate:Ws,applySubstitution:Zs})}static div(e,t){return new g({inputs:[e,t],evaluate:o.div,invert:Ks,integrate:Ys,applySubstitution:Js})}static recip(e){return new g({inputs:[e],evaluate:o.recip,invert:Xs,integrate:Qs})}static clamp(e,t,n){return new g({inputs:[e,t,n],evaluate:o.clamp,invert:et})}static pLog10(e){return new g({inputs:[e],evaluate:o.pLog10})}static absLog10(e){return new g({inputs:[e],evaluate:o.absLog10})}static log10(e){return new g({inputs:[e],evaluate:o.log10,invert:eo,integrate:io})}static log(e,t){return new g({inputs:[e,t],evaluate:o.log,invert:ro,integrate:oo})}static log2(e){return new g({inputs:[e],evaluate:o.log2,invert:lo,integrate:fo})}static ln(e){return new g({inputs:[e],evaluate:o.ln,invert:mo,integrate:po})}static pow(e,t){return new g({inputs:[e,t],evaluate:o.pow,invert:vo,integrate:bo})}static pow10(e){return new g({inputs:[e],evaluate:o.pow10,invert:yo,integrate:_o})}static pow_base(e,t){return new g({inputs:[e,t],evaluate:o.pow_base,invert:wo,integrate:No})}static root(e,t){return new g({inputs:[e,t],evaluate:o.root,invert:Co,integrate:So})}static factorial(e){return new g({inputs:[e],evaluate:o.factorial})}static gamma(e){return new g({inputs:[e],evaluate:o.gamma})}static lngamma(e){return new g({inputs:[e],evaluate:o.lngamma})}static exp(e){return new g({inputs:[e],evaluate:o.exp,invert:ko,integrate:Io})}static sqr(e){return g.pow(e,2)}static sqrt(e){return g.root(e,2)}static cube(e){return g.pow(e,3)}static cbrt(e){return g.root(e,3)}static tetrate(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){return new g({inputs:[e,t,n],evaluate:Mo,invert:$o})}static iteratedexp(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){return new g({inputs:[e,t,n],evaluate:Eo,invert:xo})}static iteratedlog(e,t=10,n=1){return new g({inputs:[e,t,n],evaluate:Fo})}static slog(e,t=10){return new g({inputs:[e,t],evaluate:To,invert:Po})}static layeradd10(e,t){return new g({inputs:[e,t],evaluate:o.layeradd10})}static layeradd(e,t,n=10){return new g({inputs:[e,t,n],evaluate:Oo,invert:Vo})}static lambertw(e){return new g({inputs:[e],evaluate:o.lambertw,invert:Do})}static ssqrt(e){return new g({inputs:[e],evaluate:o.ssqrt,invert:Lo})}static pentate(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){return new g({inputs:[e,t,n],evaluate:Ro})}static sin(e){return new g({inputs:[e],evaluate:o.sin,invert:jo,integrate:Ao})}static cos(e){return new g({inputs:[e],evaluate:o.cos,invert:Wo,integrate:Uo})}static tan(e){return new g({inputs:[e],evaluate:o.tan,invert:Ko,integrate:Go})}static asin(e){return new g({inputs:[e],evaluate:o.asin,invert:qo,integrate:Ho})}static acos(e){return new g({inputs:[e],evaluate:o.acos,invert:Bo,integrate:Zo})}static atan(e){return new g({inputs:[e],evaluate:o.atan,invert:zo,integrate:Yo})}static sinh(e){return new g({inputs:[e],evaluate:o.sinh,invert:il,integrate:Xo})}static cosh(e){return new g({inputs:[e],evaluate:o.cosh,invert:al,integrate:el})}static tanh(e){return new g({inputs:[e],evaluate:o.tanh,invert:ol,integrate:nl})}static asinh(e){return new g({inputs:[e],evaluate:o.asinh,invert:Jo,integrate:rl})}static acosh(e){return new g({inputs:[e],evaluate:o.acosh,invert:Qo,integrate:sl})}static atanh(e){return new g({inputs:[e],evaluate:o.atanh,invert:tl,integrate:ll})}step(e,t){return g.step(this,e,t)}if(e,t){return g.if(this,e,t)}conditional(e,t){return g.if(this,e,t)}abs(){return g.abs(this)}neg(){return g.neg(this)}sign(){return g.sign(this)}round(){return g.round(this)}floor(){return g.floor(this)}ceil(){return g.ceil(this)}trunc(){return g.trunc(this)}add(e){return g.add(this,e)}sub(e){return g.sub(this,e)}mul(e){return g.mul(this,e)}div(e){return g.div(this,e)}recip(){return g.recip(this)}max(e){return g.max(this,e)}min(e){return g.min(this,e)}maxabs(e){return g.maxabs(this,e)}minabs(e){return g.minabs(this,e)}clamp(e,t){return g.clamp(this,e,t)}clampMin(e){return g.clampMin(this,e)}clampMax(e){return g.clampMax(this,e)}pLog10(){return g.pLog10(this)}absLog10(){return g.absLog10(this)}log10(){return g.log10(this)}log(e){return g.log(this,e)}log2(){return g.log2(this)}ln(){return g.ln(this)}pow(e){return g.pow(this,e)}pow10(){return g.pow10(this)}pow_base(e){return g.pow_base(this,e)}root(e){return g.root(this,e)}factorial(){return g.factorial(this)}gamma(){return g.gamma(this)}lngamma(){return g.lngamma(this)}exp(){return g.exp(this)}sqr(){return g.pow(this,2)}sqrt(){return g.root(this,2)}cube(){return g.pow(this,3)}cbrt(){return g.root(this,3)}tetrate(e=2,t=o.fromComponents_noNormalize(1,0,1)){return g.tetrate(this,e,t)}iteratedexp(e=2,t=o.fromComponents_noNormalize(1,0,1)){return g.iteratedexp(this,e,t)}iteratedlog(e=10,t=1){return g.iteratedlog(this,e,t)}slog(e=10){return g.slog(this,e)}layeradd10(e){return g.layeradd10(this,e)}layeradd(e,t){return g.layeradd(this,e,t)}lambertw(){return g.lambertw(this)}ssqrt(){return g.ssqrt(this)}pentate(e=2,t=o.fromComponents_noNormalize(1,0,1)){return g.pentate(this,e,t)}sin(){return g.sin(this)}cos(){return g.cos(this)}tan(){return g.tan(this)}asin(){return g.asin(this)}acos(){return g.acos(this)}atan(){return g.atan(this)}sinh(){return g.sinh(this)}cosh(){return g.cosh(this)}tanh(){return g.tanh(this)}asinh(){return g.asinh(this)}acosh(){return g.acosh(this)}atanh(){return g.atanh(this)}};let _=g;_.negate=g.neg;_.negated=g.neg;_.sgn=g.sign;_.plus=g.add;_.subtract=g.sub;_.minus=g.sub;_.multiply=g.mul;_.times=g.mul;_.divide=g.div;_.divideBy=g.div;_.dividedBy=g.div;_.reciprocal=g.recip;_.reciprocate=g.recip;_.max=Xe(o.max);_.min=Xe(o.min);_.minabs=Xe(o.minabs);_.maxabs=Xe(o.maxabs);_.clampMin=Xe(o.clampMin);_.clampMax=Xe(o.clampMax);_.logarithm=g.log;function dl(e,...t){return Ge(n=>{var r,a;const i=e.call(n,n);for(const s of t)(r=s.preConstruct)==null||r.call(s,i);i.formula=i.formula(_.variable(i.baseResource)),i.currentGain==null&&(i.currentGain=O(()=>{let s=o.floor(i.formula.evaluate(i.baseResource.value)).max(0);return l(i.buyMax)===!1&&(s=s.min(1)),s})),i.actualGain==null&&(i.actualGain=i.currentGain),i.currentAt==null&&(i.currentAt=O(()=>i.formula.invert(o.floor(l(i.currentGain))))),i.nextAt==null&&(i.nextAt=O(()=>i.formula.invert(o.floor(l(i.currentGain)).add(1)))),i.convert==null&&(i.convert=function(){var u;const s=l(i.currentGain);i.gainResource.value=o.add(i.gainResource.value,s),i.spend(s),(u=i.onConvert)==null||u.call(i,s)}),i.spend==null&&(i.spend=function(){i.baseResource.value=0}),P(i,"currentGain"),P(i,"actualGain"),P(i,"currentAt"),P(i,"nextAt"),P(i,"buyMax"),ue(i,"buyMax",!0);for(const s of t)(a=s.postConstruct)==null||a.call(s,i);return i})}function fl(e){return dl(e)}const xn=e=>(Te("data-v-5e2d38ce"),e=e(),Pe(),e),ml=xn(()=>m("div",{class:"key"},"Ctrl",-1)),gl=xn(()=>m("div",{class:"key"},"Shift",-1)),hl={class:"key"},pl=q({__name:"Hotkey",props:{hotkey:null},setup(e){const t=e;let n="",i=!1,r=!1,a=!1;return Me(()=>{n=t.hotkey.key,i=n.startsWith("ctrl+"),i&&(n=n.slice(5)),r=n.startsWith("shift+"),r&&(n=n.slice(6)),a=n.length==1&&n.toLowerCase()!=n.toUpperCase(),a&&(n=n.toUpperCase())}),(s,u)=>(p(),k(ne,null,[l(i)?(p(),k(ne,{key:0},[ml,F("+")],64)):x("",!0),l(r)?(p(),k(ne,{key:1},[gl,F("+")],64)):x("",!0),m("div",hl,A(l(n)),1)],64))}});var vl=G(pl,[["__scopeId","data-v-5e2d38ce"]]);const kt=wt({}),Ut=Symbol("Hotkey"),Xt=[")","!","@","#","$","%","^","&","*","("];function bl(e){return Ge(t=>{const n=e.call(t,t);return n.type=Ut,P(n,"enabled"),ue(n,"enabled",!0),P(n,"description"),n})}re.on("addLayer",e=>{fn(e,Ut).forEach(t=>{kt[t.key]=t})});re.on("removeLayer",e=>{fn(e,Ut).forEach(t=>{kt[t.key]=void 0})});document.onkeydown=function(e){var i;if(((i=e.target)==null?void 0:i.tagName)==="INPUT"||zt.value&&!T.keepGoing)return;let t=e.key;Xt.includes(t)?t="shift+"+Xt.indexOf(t):e.shiftKey&&(t="shift+"+t),e.ctrlKey&&(t="ctrl+"+t);const n=kt[t];n&&l(n.enabled)&&(e.preventDefault(),n.onPress())};Zi(J(()=>{const e=Object.values(kt).filter(t=>l(t==null?void 0:t.enabled));return e.length===0?"":y("div",null,[y("br",null,null),y("h4",null,[F("Hotkeys")]),y("div",{style:"column-count: 2"},[e.map(t=>y("div",null,[y(vl,{hotkey:t},null),F(" "),t==null?void 0:t.description]))])])}));const yl=Symbol("Reset");function _l(e){return Ge(t=>{const n=e.call(t,t);return n.id=Ct("reset-"),n.type=yl,n.reset=function(){var r;const i=a=>{if(a!=null&&typeof a=="object")if(Ue in a){const s=a;s.value=s[Ue]}else!(a instanceof o)&&!Q(a)&&Object.values(a).forEach(s=>i(s))};l(n.thingsToReset).forEach(i),re.emit("reset",n),(r=n.onReset)==null||r.call(n)},P(n,"thingsToReset"),n})}const ct={};re.on("removeLayer",e=>{var t;(t=ct[e.id])==null||t.call(ct),ct[e.id]=void 0});const wl=q({__name:"Sticky",setup(e){const t=E("0"),n=new ResizeObserver(r),i=ve(null);function r(){let a=i.value;if(a==null)return;let s=0;for(;a.previousSibling;){const u=a.previousSibling;u.dataset&&"vSticky"in u.dataset&&(s+=u.offsetHeight),a=u}t.value=s+"px"}return Ae(r),document.fonts.ready.then(r),_t(()=>{var s;const a=(s=i.value)==null?void 0:s.parentElement;a&&n.observe(a)}),(a,s)=>(p(),k("div",{class:"sticky",style:pe({top:t.value}),ref_key:"element",ref:i,"data-v-sticky":""},[$e(a.$slots,"default",{},void 0,!0)],4))}});var Nl=G(wl,[["__scopeId","data-v-cccac690"]]);const Cl=q({__name:"Resource",props:{resource:null,color:null},setup(e){const t=e,n=O(()=>vt(t.resource));return(i,r)=>(p(),k("h2",{style:pe({color:e.color,"text-shadow":"0px 0px 10px "+e.color})},A(l(n)),5))}});const Sl={class:"main-display"},kl={key:0},Il={key:1},Ml=q({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const n=de(e),i=E(null),r=Je(n.effectDisplay),a=O(()=>o.lt(n.resource.value,"1e1000"));return(s,u)=>(p(),R(Nl,null,{default:D(()=>{var c,f,b,v;return[m("div",{class:ae(["main-display-container",(c=e.classes)!=null?c:{}]),style:pe([{height:`${((b=(f=i.value)==null?void 0:f.$el.clientHeight)!=null?b:0)+50}px`},(v=e.style)!=null?v:{}])},[m("div",Sl,[l(a)?(p(),k("span",kl,"You have ")):x("",!0),y(Cl,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),F(" "+A(e.resource.displayName),1),l(r)?(p(),k("span",Il,[F(", "),(p(),R(ie(l(r)),{ref_key:"effectRef",ref:i},null,512))])):x("",!0)])],6)]}),_:1}))}});function $l(e,t){return P(t,"display"),P(t,"classes"),P(t,"style"),P(t,"direction"),ue(t,"direction",W.Up),P(t,"xoffset"),P(t,"yoffset"),t.pinnable&&(t.pinned=ot(!1,!1)),Ae(()=>{t.pinnable&&("pinned"in e?(console.error("Cannot add pinnable tooltip to element that already has a property called 'pinned'"),t.pinnable=!1,lr(t.pinned)):e.pinned=t.pinned);const n=e[Ee];e[Ee]=Y;const i=e[xe].bind(e);e[xe]=function(){const{display:a,classes:s,style:u,direction:c,xoffset:f,yoffset:b,pinned:v}=this;return{element:{[Ee]:n,[xe]:i},display:a,classes:s,style:l(u),direction:c,xoffset:f,yoffset:b,pinned:v}}.bind(t)}),t}var El=q({props:{display:{type:B(Object,String,Function),required:!0},visibility:{type:B(Number,Boolean),required:!0},style:B(Object,String,Array),classes:B(Object),onClick:Function,onHold:Function,canClick:{type:B(Boolean),required:!0},small:Boolean,mark:B(Boolean,String),id:{type:String,required:!0}},components:{Node:$n,MarkNode:Mn},setup(e){const{display:t,onClick:n,onHold:i}=de(e),r=ve("");Me(()=>{var b;const u=be(t);if(u==null){r.value="";return}if(St(u)){r.value=le(u);return}const c=le((b=u.title)!=null?b:"","h3"),f=le(u.description,"div");r.value=le(J(()=>y("span",null,[u.title!=null?y("div",null,[y(c,null,null)]):null,y(f,null,null)])))});const{start:a,stop:s}=pn(n,i);return{start:a,stop:s,comp:r,Visibility:Ye,isVisible:cn,isHidden:dn,unref:l}}});function xl(e,t,n,i,r,a){var c;const s=Ze("MarkNode"),u=Ze("Node");return e.isVisible(e.visibility)?(p(),k("button",{key:0,style:pe([{visibility:e.isHidden(e.visibility)?"hidden":void 0},(c=e.unref(e.style))!=null?c:[]]),onClick:t[0]||(t[0]=(...f)=>e.onClick&&e.onClick(...f)),onMousedown:t[1]||(t[1]=(...f)=>e.start&&e.start(...f)),onMouseleave:t[2]||(t[2]=(...f)=>e.stop&&e.stop(...f)),onMouseup:t[3]||(t[3]=(...f)=>e.stop&&e.stop(...f)),onTouchstartPassive:t[4]||(t[4]=(...f)=>e.start&&e.start(...f)),onTouchendPassive:t[5]||(t[5]=(...f)=>e.stop&&e.stop(...f)),onTouchcancelPassive:t[6]||(t[6]=(...f)=>e.stop&&e.stop(...f)),class:ae({feature:!0,clickable:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick),small:e.small,...e.unref(e.classes)})},[e.unref(e.comp)?(p(),R(ie(e.unref(e.comp)),{key:0})):x("",!0),y(s,{mark:e.unref(e.mark)},null,8,["mark"]),y(u,{id:e.id},null,8,["id"])],38)):x("",!0)}var Fl=G(El,[["render",xl],["__scopeId","data-v-211328c0"]]);const Tl=Symbol("Clickable");function Pl(e,...t){const n=t.reduce((i,r)=>{var a;return Object.assign(i,(a=r.getPersistentData)==null?void 0:a.call(r))},{});return Ge(i=>{var s,u,c;const r=(s=e==null?void 0:e.call(i,i))!=null?s:{};r.id=Ct("clickable-"),r.type=Tl,r[Ee]=Fl;for(const f of t)(u=f.preConstruct)==null||u.call(f,r);if(Object.assign(r,n),P(r,"visibility"),ue(r,"visibility",Ye.Visible),P(r,"canClick"),ue(r,"canClick",!0),P(r,"classes"),P(r,"style"),P(r,"mark"),P(r,"display"),r.onClick){const f=r.onClick.bind(r);r.onClick=function(b){l(r.canClick)!==!1&&f(b)}}if(r.onHold){const f=r.onHold.bind(r);r.onHold=function(){l(r.canClick)!==!1&&f()}}for(const f of t)(c=f.postConstruct)==null||c.call(f,r);const a=t.reduce((f,b)=>{var v;return Object.assign(f,(v=b.getGatheredProps)==null?void 0:v.call(b,r))},{});return r[xe]=function(){const{display:f,visibility:b,style:v,classes:N,onClick:I,onHold:M,canClick:S,small:j,mark:K,id:C}=this;return{display:f,visibility:b,style:l(v),classes:N,onClick:I,onHold:M,canClick:S,small:j,mark:K,id:C,...a}},r})}function Ol(e){return Pl(t=>{const n=e.call(t,t);P(n,"showNextAt"),ue(n,"showNextAt",!0),ue(n,"minimumGain",1),n.resetDescription==null?n.resetDescription=O(()=>o.lt(n.conversion.gainResource.value,1e3)?"Reset for ":""):P(n,"resetDescription"),n.display==null&&(n.display=J(()=>y("span",null,[l(n.resetDescription),y("b",null,[vt(n.conversion.gainResource,o.max(l(n.conversion.actualGain),l(n.minimumGain)))])," ",n.conversion.gainResource.displayName,l(n.showNextAt)!=null?y("div",null,[y("br",null,null),l(n.conversion.buyMax)?"Next:":"Req:"," ",vt(n.conversion.baseResource,l(n.conversion.buyMax)||o.floor(l(n.conversion.actualGain)).neq(1)?l(n.conversion.nextAt):l(n.conversion.currentAt))," ",n.conversion.baseResource.displayName]):null]))),n.canClick==null&&(n.canClick=O(()=>o.gte(l(n.conversion.actualGain),l(n.minimumGain))));const i=n.onClick;return n.onClick=function(r){l(n.canClick)!==!1&&(n.conversion.convert(),n.tree.reset(n.treeNode),n.resetTime&&(n.resetTime.value=n.resetTime[Ue]),i==null||i(r))},n})}function Vl(e){return Ps(t=>{const n=e.call(t,t);return P(n,"display"),ue(n,"display",n.layerID),P(n,"append"),{...n,display:n.display,onClick:l(n.append)?function(){if(T.tabs.includes(n.layerID)){const i=T.tabs.lastIndexOf(n.layerID);T.tabs.splice(i,1)}else T.tabs.push(n.layerID)}:function(){T.tabs.splice(1,1,n.layerID)}}})}const Qt="p",bt=At(Qt,function(){const e="Prestige",t="#4BDC13",n=In(0,"prestige points"),i=fl(()=>({formula:c=>c.div(10).sqrt(),baseResource:yt.points,gainResource:n})),r=_l(()=>({thingsToReset:()=>[bt]})),a=Vl(()=>({layerID:Qt,color:t,reset:r}));$l(a,{display:Ds(n),pinnable:!0});const s=Ol(()=>({conversion:i,tree:yt.tree,treeNode:a})),u=bl(()=>({description:"Reset for prestige points",key:"p",onPress:s.onClick}));return{name:e,color:t,points:n,display:J(()=>y(ne,null,[y(Ml,{resource:n,color:t},null),st(s)])),treeNode:a,hotkey:u}}),yt=At("main",function(){const e=In(10),t=ds(e),n=fs(e),i=O(()=>new o(1));re.on("update",s=>{e.value=o.add(e.value,o.times(i.value,s))});const r=hs(e,i),a=Os(()=>({nodes:[[bt.treeNode]],branches:[],onReset(){e.value=jt(this.resettingNode.value)===jt(bt.treeNode)?0:10,t.value=e.value,n.value=e.value},resetPropagation:Vs}));return{name:"Tree",links:a.links,display:J(()=>y(ne,null,[T.devSpeed===0?y("div",null,[F("Game Paused")]):null,T.devSpeed!=null&&T.devSpeed!==0&&T.devSpeed!==1?y("div",null,[F("Dev Speed: "),Ne(T.devSpeed),F("x")]):null,T.offlineTime!=null&&T.offlineTime!==0?y("div",null,[F("Offline Time: "),Nt(T.offlineTime)]):null,y("div",null,[o.lt(e.value,"1e1000")?y("span",null,[F("You have ")]):null,y("h2",null,[Ne(e.value)]),o.lt(e.value,"1e1e6")?y("span",null,[F(" points")]):null]),o.gt(i.value,0)?y("div",null,[F("("),r.value,F(")")]):null,y(cs,null,null),st(a)])),points:e,best:t,total:n,oomps:r,tree:a}}),Dl=e=>[yt,bt],zt=O(()=>!1);function Ll(e,t){}var Rl=Object.freeze(Object.defineProperty({__proto__:null,main:yt,getInitialLayers:Dl,hasWon:zt,fixOldSave:Ll},Symbol.toStringTag,{value:"Module"}));const lt=e=>(Te("data-v-4a50ce42"),e=e(),Pe(),e),ql={class:"game-over-modal-header"},Al=["src","alt"],Bl={class:"game-over-modal-title"},Ul=lt(()=>m("h2",null,"Congratulations!",-1)),zl={key:0},Gl=lt(()=>m("br",null,null,-1)),jl=lt(()=>m("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),Hl=lt(()=>m("br",null,null,-1)),Wl=["href"],Zl=lt(()=>m("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),Kl=q({__name:"GameOverScreen",setup(e){const{title:t,logo:n,discordName:i,discordLink:r,versionNumber:a,versionTitle:s}=U,u=O(()=>Nt(T.timePlayed)),c=O(()=>zt.value&&!T.keepGoing),f=Fe(T,"autosave");function b(){T.keepGoing=!0}function v(){Le(He())}return(N,I)=>(p(),R(ze,{"model-value":l(c)},{header:D(()=>[m("div",ql,[l(n)?(p(),k("img",{key:0,class:"game-over-modal-logo",src:l(n),alt:l(t)},null,8,Al)):x("",!0),m("div",Bl,[Ul,m("h4",null,"You've beaten "+A(l(t))+" v"+A(l(a))+": "+A(l(s)),1)])])]),body:D(({shown:M})=>[M?(p(),k("div",zl,[m("div",null,"It took you "+A(l(u))+" to beat the game.",1),Gl,jl,Hl,m("div",null,[m("a",{href:l(r),class:"game-over-modal-discord-link"},[Zl,F(" "+A(l(i)),1)],8,Wl)]),y(we,{title:"Autosave",modelValue:l(f),"onUpdate:modelValue":I[0]||(I[0]=S=>Q(f)?f.value=S:null)},null,8,["modelValue"])])):x("",!0)]),footer:D(()=>[m("div",{class:"game-over-footer"},[m("button",{onClick:b,class:"button"},"Keep Going"),m("button",{onClick:v,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var Yl=G(Kl,[["__scopeId","data-v-4a50ce42"]]);const It=e=>(Te("data-v-2776d67d"),e=e(),Pe(),e),Jl=It(()=>m("div",{class:"nan-modal-header"},[m("h2",null,"NaN value detected!")],-1)),Xl={key:0},Ql=It(()=>m("br",null,null,-1)),eu=["href"],tu=It(()=>m("span",{class:"material-icons nan-modal-discord"},"discord",-1)),nu=It(()=>m("br",null,null,-1)),iu={class:"nan-footer"},ru=q({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:n}=U,i=E(!0),r=E(!0),a=Fe(X,"hasNaN"),s=E(null);ye(a,N=>{N?(i.value=T.autosave,r.value=T.devSpeed===0):(T.autosave=i.value,T.devSpeed=r.value?0:null)});const u=O(()=>{var N;return(N=X.NaNPath)==null?void 0:N.join(".")}),c=O(()=>X.NaNPersistent!=null?X.NaNPersistent.value:null);function f(){X.NaNPersistent!=null&&(X.NaNPersistent.value=new o(0),X.hasNaN=!1)}function b(){X.NaNPersistent&&(X.NaNPersistent.value=new o(1),X.hasNaN=!1)}function v(){X.NaNPersistent&&(X.NaNPersistent.value=new o(NaN),X.hasNaN=!1)}return(N,I)=>(p(),k(ne,null,[y(ze,Be({modelValue:l(a),"onUpdate:modelValue":I[4]||(I[4]=M=>Q(a)?a.value=M:null)},N.$attrs),{header:D(()=>[Jl]),body:D(()=>[m("div",null,[F(' Attempted to assign "'+A(l(u))+'" to NaN',1),l(c)?(p(),k("span",Xl,A(" ")+"(previously "+A(l(Ne)(l(c)))+")",1)):x("",!0),F(". Auto-saving has been "+A(i.value?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),Ql,m("div",null,[m("a",{href:l(n)||"https://discord.gg/yJ4fjnjU54",class:"nan-modal-discord-link"},[tu,F(" "+A(l(t)||"The Paper Pilot Community"),1)],8,eu)]),nu,y(we,{title:"Autosave",modelValue:i.value,"onUpdate:modelValue":I[0]||(I[0]=M=>i.value=M)},null,8,["modelValue"]),l(U).enablePausing?(p(),R(we,{key:0,title:"Pause game",modelValue:r.value,"onUpdate:modelValue":I[1]||(I[1]=M=>r.value=M)},null,8,["modelValue"])):x("",!0)]),footer:D(()=>[m("div",iu,[m("button",{onClick:I[2]||(I[2]=M=>{var S;return(S=s.value)==null?void 0:S.open()}),class:"button"},"Open Saves Manager"),m("button",{onClick:f,class:"button"},"Set to 0"),m("button",{onClick:b,class:"button"},"Set to 1"),l(c)&&l(o).neq(l(c),0)&&l(o).neq(l(c),1)?(p(),k("button",{key:0,onClick:I[3]||(I[3]=M=>a.value=!1),class:"button"}," Set to previous ")):x("",!0),m("button",{onClick:v,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),y(Sn,{ref_key:"savesManager",ref:s},null,512)],64))}});var au=G(ru,[["__scopeId","data-v-2776d67d"]]);const su={key:0,class:"tpsDisplay"},ou={key:0,class:"low"},lu=q({__name:"TPS",setup(e){const t=O(()=>o.div(X.lastTenTicks.length,X.lastTenTicks.reduce((a,s)=>a+s,0))),n=E([]);Me(()=>{n.value.push(Math.round(t.value.toNumber())),n.value.length>10&&(n.value=n.value.slice(1))});const i=O(()=>n.value.reduce((a,s)=>o.max(a,s),0)),r=O(()=>o.sub(t.value,i.value).gt(1));return(a,s)=>l(t).isNan()?x("",!0):(p(),k("div",su,[F(" TPS: "+A(l(Ke)(l(t)))+" ",1),y(Tt,{name:"fade"},{default:D(()=>[l(r)?(p(),k("span",ou,A(l(Ke)(l(i))),1)):x("",!0)]),_:1})]))}});var uu=G(lu,[["__scopeId","data-v-46a3ed5b"]]);var cu=q({__name:"App",setup(e){const t=U.useHeader,n=O(()=>Ot[ee.theme].variables),i=Fe(ee,"showTPS"),r=O(()=>le(J(()=>y(ne,null,[Ki.map(st)]))));return(a,s)=>(p(),k(ne,null,[m("div",{id:"modal-root",style:pe(l(n))},null,4),m("div",{class:ae(["app",{useHeader:l(t)}]),style:pe(l(n))},[l(t)?(p(),R(kn,{key:0})):x("",!0),y(us),l(l(i))?(p(),R(uu,{key:1})):x("",!0),y(Yl),y(au),(p(),R(ie(l(r))))],6)],64))}});var du=G(cu,[["__scopeId","data-v-41d15e5e"]]);re.on("setupVue",e=>e.use(Bn));function fu(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisteredSW:a,onRegisterError:s}=e;let u,c,f,b;const v=async(I=!0)=>{await f,I&&(u==null||u.addEventListener("controlling",M=>{M.isUpdate&&window.location.reload()})),await(b==null?void 0:b())};async function N(){if("serviceWorker"in navigator){const{Workbox:I,messageSW:M}=await nt(()=>import("./workbox-window.4a8794bb.js"),[]);b=async()=>{c&&c.waiting&&await M(c.waiting,{type:"SKIP_WAITING"})},u=new I("./sw.js",{scope:"./",type:"classic"}),u.addEventListener("activated",S=>{S.isUpdate||i==null||i()});{const S=()=>{n==null||n()};u.addEventListener("waiting",S),u.addEventListener("externalwaiting",S)}u.register({immediate:t}).then(S=>{c=S,a?a("./sw.js",S):r==null||r(S)}).catch(S=>{s==null||s(S)})}}return f=N(),v}function mu(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisteredSW:a,onRegisterError:s}=e,u=E(!1),c=E(!1);return{updateServiceWorker:fu({immediate:t,onNeedRefresh(){u.value=!0,n==null||n()},onOfflineReady(){c.value=!0,i==null||i()},onRegistered:r,onRegisteredSW:a,onRegisterError:s}),offlineReady:c,needRefresh:u}}document.title=U.title;window.projInfo=U;if(U.id==="")throw new Error("Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json");requestAnimationFrame(async()=>{console.log(`%cMade in Profectus%c -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 Gi();const{globalBus:e}=await nt(()=>Promise.resolve().then(function(){return Ui}),void 0),{startGameLoop:t}=await nt(()=>import("./gameLoop.daa88598.js"),["assets/gameLoop.daa88598.js","assets/@fontsource.f66d05e7.css","assets/vue.af9696a7.js","assets/lz-string.bfbf8ec3.js","assets/@vue.6f8187b0.js","assets/nanoevents.1080beb7.js","assets/vue-next-select.7a1e8cf3.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.d64f1a1f.js","assets/sortablejs.32c18112.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-toastification.1b0160a1.js","assets/vue-toastification.4b5f8ac8.css"]),n=window.vue=Ln(du);e.emit("setupVue",n),n.mount("#app"),Ae(()=>{const i=Un(),{updateServiceWorker:r}=mu({onNeedRefresh(){i.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(){r()}})},onOfflineReady(){i.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(a){a&&setInterval(()=>a.update(),60*60*1e3)}})}),t()});export{o as D,nt as _,X as a,U as b,Rl as c,re as g,Vt as l,T as p,ee as s}; diff --git a/assets/index.aef2425c.js b/assets/index.aef2425c.js new file mode 100644 index 0000000..df311fe --- /dev/null +++ b/assets/index.aef2425c.js @@ -0,0 +1,18 @@ +/* empty css */import"./vue.804e2479.js";import{_ as $,l as te,C as a,q as Ze,t as P,b2 as ke,ab as W,w as rt,b3 as St,a9 as x,O as ce,az as Ct,as as Ue,aF as w,a1 as I,aL as Me,a2 as f,aH as ot,A as de,$ as U,b7 as T,b9 as Mt,ar as je,bv as We,a8 as A,bt as yn,bc as Ge,T as wn,u as kt,j as Nn,bw as Tt,aM as zt,a0 as V,aO as he,J as R,G as ne,I as ve,aI as Le,aG as Ae,z as Oe,bo as Sn,bs as Cn,aK as ct,bd as Pt,bf as Mn}from"./@vue.6f8187b0.js";import{c as Ut}from"./nanoevents.1080beb7.js";import{L as Se}from"./lz-string.dccec454.js";import{Y as kn}from"./vue-next-select.f5f69b1a.js";import{D as xn}from"./vuedraggable.ce650350.js";import{p as In}from"./vue-textarea-autosize.35804eaf.js";import{P as $n}from"./vue-panzoom.89be130f.js";import{s as En,u as Fn}from"./vue-toastification.5231d1bd.js";import"./amator.1e5a40c8.js";import"./bezier-easing.a990b400.js";import"./sortablejs.a0f68e5e.js";import"./panzoom.30c56ba6.js";import"./wheel.f2ae740f.js";import"./ngraph.events.083734c6.js";const Tn=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerpolicy&&(s.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?s.credentials="include":r.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}};Tn();const Pn="modulepreload",Vt={},Vn="./",Xe=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${Vn}${i}`,i in Vt)return;Vt[i]=!0;const r=i.endsWith(".css"),s=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${s}`))return;const l=document.createElement("link");if(l.rel=r?"stylesheet":Pn,r||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),r)return new Promise((u,d)=>{l.addEventListener("load",u),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Dn="./projInfo-schema.json",On="Planar Pioneers",Ln="A game about controlling and exploiting planes!",An="planar-pioneers",qn="thepaperpilot",Bn="",Rn="",zn="0.0",Un="Initial Commit",jn=!0,Wn=!1,Gn=2,Zn=!0,Hn=null,Yn="",Kn=["main"],Jn=3600,Xn=1,Qn=!0,ei="base64";var G={$schema:Dn,title:On,description:Ln,id:An,author:qn,discordName:Bn,discordLink:Rn,versionNumber:zn,versionTitle:Un,allowGoBack:jn,defaultShowSmall:Wn,defaultDecimalsShown:Gn,useHeader:Zn,banner:Hn,logo:Yn,initialTabs:Kn,maxTickLength:Jn,offlineLimit:Xn,enablePausing:Qn,exportEncoding:ei};class ti{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 n=this.map.get(t);if(n!==void 0)return n!==this.first&&(n===this.last?(this.last=n.prev,this.last.next=void 0):(n.prev.next=n.next,n.next.prev=n.prev),n.next=this.first,this.first.prev=n,this.first=n),n.value}set(t,n){if(this.maxSize<1)return;if(this.map.has(t))throw new Error("Cannot update existing keys in the cache");const i=new ni(t,n);for(this.first===void 0?(this.first=i,this.last=i):(i.next=this.first,this.first.prev=i,this.first=i),this.map.set(t,i);this.map.size>this.maxSize;){const r=this.last;this.map.delete(r.key),this.last=r.prev,this.last.next=void 0}}}class ni{constructor(t,n){this.next=void 0,this.prev=void 0,this.key=t,this.value=n}}const yt=17,ii=9e15,ri=Math.log10(9e15),ai=1/9e15,si=308,oi=-324,Dt=5,li=(1<<10)-1,ui=function(){const e=[];for(let n=oi+1;n<=si;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),$e=[2,Math.E,3,4,5,6,7,8,9,10],ci=[[1,1.0891180521811203,1.1789767925673957,1.2701455431742086,1.3632090180450092,1.4587818160364217,1.5575237916251419,1.6601571006859253,1.767485818836978,1.8804192098842727,2],[1,1.1121114330934079,1.231038924931609,1.3583836963111375,1.4960519303993531,1.6463542337511945,1.8121385357018724,1.996971324618307,2.2053895545527546,2.4432574483385254,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.1840100246247336,1.4061375836156955,1.6802272208863964,2.026757028388619,2.4770056063449646,3.080525271755482,3.9191964192627284,5.135152840833187,6.989961179534715,10]],di=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.80786507256596,-.7064666939634,-.60294836853664,-.49849837513117,-.39430303318768,-.29147201034755,-.19097820800866,-.09361896280296,0],[-1,-.9021579584316141,-.8005762598234203,-.6964780623319391,-.5911906810998454,-.486050182576545,-.3823089430815083,-.28106046722897615,-.1831906535795894,-.08935809204418144,0],[-1,-.8917227442365535,-.781258746326964,-.6705130326902455,-.5612813129406509,-.4551067709033134,-.35319256652135966,-.2563741554088552,-.1651412821106526,-.0796919581982668,0],[-1,-.8843387974366064,-.7678744063886243,-.6529563724510552,-.5415870994657841,-.4352842206588936,-.33504449124791424,-.24138853420685147,-.15445285440944467,-.07409659641336663,0],[-1,-.8786709358426346,-.7577735191184886,-.6399546189952064,-.527284921869926,-.4211627631006314,-.3223479611761232,-.23107655627789858,-.1472057700818259,-.07035171210706326,0],[-1,-.8740862815291583,-.7497032990976209,-.6297119746181752,-.5161838335958787,-.41036238255751956,-.31277212146489963,-.2233976621705518,-.1418697367979619,-.06762117662323441,0],[-1,-.8702632331800649,-.7430366914122081,-.6213373075161548,-.5072025698095242,-.40171437727184167,-.30517930701410456,-.21736343968190863,-.137710238299109,-.06550774483471955,0],[-1,-.8670016295947213,-.7373984232432306,-.6143173985094293,-.49973884395492807,-.394584953527678,-.2989649949848695,-.21245647317021688,-.13434688362382652,-.0638072667348083,0],[-1,-.8641642839543857,-.732534623168535,-.6083127477059322,-.4934049257184696,-.3885773075899922,-.29376029055315767,-.2083678561173622,-.13155653399373268,-.062401588652553186,0]];let g=function(t){return o.fromValue_noAlloc(t)},O=function(e,t,n){return o.fromComponents(e,t,n)},q=function(t,n,i){return o.fromComponents_noNormalize(t,n,i)};const Ne=function(t,n){const i=n+1,r=Math.ceil(Math.log10(Math.abs(t))),s=Math.round(t*Math.pow(10,i-r))*Math.pow(10,r-i);return parseFloat(s.toFixed(Math.max(i-r,0)))},wt=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},fi=function(e){if(!isFinite(e))return e;if(e<-50)return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let t=1;for(;e<10;)t=t*e,++e;e-=1;let n=.9189385332046727;n=n+(e+.5)*Math.log(e),n=n-e;const i=e*e;let r=e;return n=n+1/(12*r),r=r*i,n=n+1/(360*r),r=r*i,n=n+1/(1260*r),r=r*i,n=n+1/(1680*r),r=r*i,n=n+1/(1188*r),r=r*i,n=n+691/(360360*r),r=r*i,n=n+7/(1092*r),r=r*i,n=n+3617/(122400*r),Math.exp(n)/t},jt=.5671432904097838,Ot=function(e,t=1e-10){let n,i;if(!Number.isFinite(e)||e===0)return e;if(e===1)return jt;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let r=0;r<100;++r){if(i=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(i-n).5?1:-1;if(Math.random()*20<1)return q(t,0,1);const n=Math.floor(Math.random()*(e+1));let i=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(i=Math.trunc(i));let r=Math.pow(10,i);return Math.random()>.9&&(r=Math.trunc(r)),O(t,n,r)}static affordGeometricSeries_core(e,t,n,i){const r=t.mul(n.pow(i));return c.floor(e.div(r).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,i){return t.mul(n.pow(i)).mul(c.sub(1,n.pow(e))).div(c.sub(1,n))}static affordArithmeticSeries_core(e,t,n,i){const s=t.add(i.mul(n)).sub(n.div(2)),l=s.pow(2);return s.neg().add(l.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,i){const r=t.add(i.mul(n));return e.div(2).mul(r.mul(2).plus(e.sub(1).mul(n)))}static efficiencyOfPurchase_core(e,t,n){return e.div(t).add(e.div(n))}normalize(){if(this.sign===0||this.mag===0&&this.layer===0)return this.sign=0,this.mag=0,this.layer=0,this;if(this.layer===0&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),this.layer===0&&this.mag=ii)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){const t=e,n=c.fromStringCache.get(t);if(n!==void 0)return this.fromDecimal(n);e=e.replace(",","");const i=e.split("^^^");if(i.length===2){const k=parseFloat(i[0]),_=parseFloat(i[1]),E=i[1].split(";");let B=1;if(E.length===2&&(B=parseFloat(E[1]),isFinite(B)||(B=1)),isFinite(k)&&isFinite(_)){const y=c.pentate(k,_,B);return this.sign=y.sign,this.layer=y.layer,this.mag=y.mag,c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}}const r=e.split("^^");if(r.length===2){const k=parseFloat(r[0]),_=parseFloat(r[1]),E=r[1].split(";");let B=1;if(E.length===2&&(B=parseFloat(E[1]),isFinite(B)||(B=1)),isFinite(k)&&isFinite(_)){const y=c.tetrate(k,_,B);return this.sign=y.sign,this.layer=y.layer,this.mag=y.mag,c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}}const s=e.split("^");if(s.length===2){const k=parseFloat(s[0]),_=parseFloat(s[1]);if(isFinite(k)&&isFinite(_)){const E=c.pow(k,_);return this.sign=E.sign,this.layer=E.layer,this.mag=E.mag,c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}}e=e.trim().toLowerCase();let l,u,d=e.split("pt");if(d.length===2){l=10,u=parseFloat(d[0]),d[1]=d[1].replace("(",""),d[1]=d[1].replace(")","");let k=parseFloat(d[1]);if(isFinite(k)||(k=1),isFinite(l)&&isFinite(u)){const _=c.tetrate(l,u,k);return this.sign=_.sign,this.layer=_.layer,this.mag=_.mag,c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}}if(d=e.split("p"),d.length===2){l=10,u=parseFloat(d[0]),d[1]=d[1].replace("(",""),d[1]=d[1].replace(")","");let k=parseFloat(d[1]);if(isFinite(k)||(k=1),isFinite(l)&&isFinite(u)){const _=c.tetrate(l,u,k);return this.sign=_.sign,this.layer=_.layer,this.mag=_.mag,c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}}const h=e.split("e"),v=h.length-1;if(v===0){const k=parseFloat(e);if(isFinite(k))return this.fromNumber(k),c.fromStringCache.size>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}else if(v===1){const k=parseFloat(e);if(isFinite(k)&&k!==0)return this.fromNumber(k),c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}const p=e.split("e^");if(p.length===2){this.sign=1,p[0].charAt(0)=="-"&&(this.sign=-1);let k="";for(let _=0;_=43&&E<=57||E===101)k+=p[1].charAt(_);else return this.layer=parseFloat(k),this.mag=parseFloat(p[1].substr(_+1)),this.normalize(),c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}}if(v<1)return this.sign=0,this.layer=0,this.mag=0,c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this;const b=parseFloat(h[0]);if(b===0)return this.sign=0,this.layer=0,this.mag=0,c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this;let N=parseFloat(h[h.length-1]);if(v>=2){const k=parseFloat(h[h.length-2]);isFinite(k)&&(N*=Math.sign(k),N+=wt(k))}if(!isFinite(b))this.sign=h[0]==="-"?-1:1,this.layer=v,this.mag=N;else if(v===1)this.sign=Math.sign(b),this.layer=1,this.mag=N+Math.log10(Math.abs(b));else if(this.sign=Math.sign(b),this.layer=v,v===2){const k=c.mul(O(1,2,N),g(b));return this.sign=k.sign,this.layer=k.layer,this.mag=k.mag,c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}else this.mag=N;return this.normalize(),c.fromStringCache.maxSize>=1&&c.fromStringCache.set(t,c.fromDecimal(this)),this}fromValue(e){return e instanceof c?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:Ne(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:Ne(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?this.sign===1?"Infinity":"-Infinity":this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toString():this.m+"e"+this.e:this.layer===1?this.m+"e"+this.e:this.layer<=Dt?(this.sign===-1?"-":"")+"e".repeat(this.layer)+this.mag:(this.sign===-1?"-":"")+"(e^"+this.layer+")"+this.mag}toExponential(e){return this.layer===0?(this.sign*this.mag).toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return this.layer===0?(this.sign*this.mag).toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return this.e<=-7?this.toExponential(e-1):e>this.e?this.toFixed(e-this.exponent-1):this.toExponential(e-1)}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toFixed(e):Ne(this.m,e)+"e"+Ne(this.e,e):this.layer===1?Ne(this.m,e)+"e"+Ne(this.e,e):this.layer<=Dt?(this.sign===-1?"-":"")+"e".repeat(this.layer)+Ne(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+Ne(this.mag,e)}abs(){return q(this.sign===0?0:1,this.layer,this.mag)}neg(){return q(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?c.dZero:this.layer===0?O(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?c.dZero:this.layer===0?O(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?c.dZero:this.layer===0?O(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?c.dZero:this.layer===0?O(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=g(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer)||this.sign===0)return t;if(t.sign===0)return this;if(this.sign===-t.sign&&this.layer===t.layer&&this.mag===t.mag)return q(0,0,0);let n,i;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(c.cmpabs(this,t)>0?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return c.fromNumber(n.sign*n.mag+i.sign*i.mag);const r=n.layer*Math.sign(n.mag),s=i.layer*Math.sign(i.mag);if(r-s>=2)return n;if(r===0&&s===-1){if(Math.abs(i.mag-Math.log10(n.mag))>yt)return n;{const l=Math.pow(10,Math.log10(n.mag)-i.mag),u=i.sign+n.sign*l;return O(Math.sign(u),1,i.mag+Math.log10(Math.abs(u)))}}if(r===1&&s===0){if(Math.abs(n.mag-Math.log10(i.mag))>yt)return n;{const l=Math.pow(10,n.mag-Math.log10(i.mag)),u=i.sign+n.sign*l;return O(Math.sign(u),1,Math.log10(i.mag)+Math.log10(Math.abs(u)))}}if(Math.abs(n.mag-i.mag)>yt)return n;{const l=Math.pow(10,n.mag-i.mag),u=i.sign+n.sign*l;return O(Math.sign(u),1,i.mag+Math.log10(Math.abs(u)))}}plus(e){return this.add(e)}sub(e){return this.add(g(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=g(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return q(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return q(this.sign*t.sign,0,1);let n,i;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return c.fromNumber(n.sign*i.sign*n.mag*i.mag);if(n.layer>=3||n.layer-i.layer>=2)return O(n.sign*i.sign,n.layer,n.mag);if(n.layer===1&&i.layer===0)return O(n.sign*i.sign,1,n.mag+Math.log10(i.mag));if(n.layer===1&&i.layer===1)return O(n.sign*i.sign,1,n.mag+i.mag);if(n.layer===2&&i.layer===1){const r=O(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(O(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return O(n.sign*i.sign,r.layer+1,r.sign*r.mag)}if(n.layer===2&&i.layer===2){const r=O(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(O(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return O(n.sign*i.sign,r.layer+1,r.sign*r.mag)}throw Error("Bad arguments to mul: "+this+", "+e)}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const t=g(e);return this.mul(t.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return this.mag===0?c.dNaN:this.layer===0?O(this.sign,0,1/this.mag):O(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=g(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,i=t.mag>0?t.layer:-t.layer;return n>i?1:nt.mag?1:this.mag0?t:this}clamp(e,t){return this.max(e).min(t)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,t){const n=g(e);return this.eq_tolerance(n,t)?0:this.cmp(n)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const n=g(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let i=this.mag,r=n.mag;return this.layer>n.layer&&(r=wt(r)),this.layer0?O(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):O(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?c.dNaN:this.layer>0?O(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):O(this.sign,0,Math.log10(this.mag))}log(e){return e=g(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?c.dNaN:this.layer===0&&e.layer===0?O(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):c.div(this.log10(),e.log10())}log2(){return this.sign<=0?c.dNaN:this.layer===0?O(this.sign,0,Math.log2(this.mag)):this.layer===1?O(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?O(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):O(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?c.dNaN:this.layer===0?O(this.sign,0,Math.log(this.mag)):this.layer===1?O(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?O(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):O(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=g(e),n=this,i=t;if(n.sign===0)return i.eq(0)?q(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(i.sign===0)return q(1,0,1);if(i.sign===1&&i.layer===0&&i.mag===1)return n;const r=n.absLog10().mul(i).pow10();return this.sign===-1?Math.abs(i.toNumber()%2)%2===1?r.neg():Math.abs(i.toNumber()%2)%2===0?r:c.dNaN:r}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return c.dNaN;let e=this;if(e.layer===0){const t=Math.pow(10,e.sign*e.mag);if(Number.isFinite(t)&&Math.abs(t)>=.1)return O(1,0,t);if(e.sign===0)return c.dOne;e=q(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?O(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?O(-e.sign,e.layer+1,-e.mag):c.dOne}pow_base(e){return g(e).pow(this)}root(e){const t=g(e);return this.pow(t.recip())}factorial(){return this.mag<0?this.add(1).gamma():this.layer===0?this.add(1).gamma():this.layer===1?c.exp(c.mul(this,c.ln(this).sub(1))):c.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(q(1,0,24)))return c.fromNumber(fi(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const n=e*e;let i=e,r=12*i,s=1/r,l=t+s;if(l===t||(t=l,i=i*n,r=360*i,s=1/r,l=t-s,l===t))return c.exp(t);t=l,i=i*n,r=1260*i;let u=1/r;return t=t+u,i=i*n,r=1680*i,u=1/r,t=t-u,c.exp(t)}else return this.layer===1?c.exp(c.mul(this,c.ln(this).sub(1))):c.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?c.dOne:this.layer===0&&this.mag<=709.7?c.fromNumber(Math.exp(this.sign*this.mag)):this.layer===0?O(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?O(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):O(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return c.fromNumber(Math.sqrt(this.sign*this.mag));if(this.layer===1)return O(1,2,Math.log10(this.mag)-.3010299956639812);{const e=c.div(q(this.sign,this.layer-1,this.mag),q(1,0,2));return e.layer+=1,e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow(1/3)}tetrate(e=2,t=q(1,0,1)){if(e===1)return c.pow(this,t);if(e===0)return new c(t);if(this.eq(c.dOne))return c.dOne;if(this.eq(-1))return c.pow(this,t);if(e===Number.POSITIVE_INFINITY){const r=this.toNumber();if(r<=1.444667861009766&&r>=.06598803584531254){if(r>1.444667861009099)return c.fromNumber(Math.E);const s=c.ln(this).neg();return s.lambertw().div(s)}else return r>1.444667861009766?c.fromNumber(Number.POSITIVE_INFINITY):c.dNaN}if(this.eq(c.dZero)){let r=Math.abs((e+1)%2);return r>1&&(r=2-r),c.fromNumber(r)}if(e<0)return c.iteratedlog(t,this,-e);t=g(t);const n=e;e=Math.trunc(e);const i=n-e;if(this.gt(c.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let r=0;r3)return q(t.sign,t.layer+(e-r-1),t.mag);if(r>1e4)return t}return t}iteratedexp(e=2,t=q(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return c.tetrate(e,-t,this);e=g(e);let n=c.fromDecimal(this);const i=t;t=Math.trunc(t);const r=i-t;if(n.layer-e.layer>3){const s=Math.min(t,n.layer-e.layer-3);t-=s,n.layer-=s}for(let s=0;s1e4)return n}return r>0&&r<1&&(e.eq(10)?n=n.layeradd10(-r):n=n.layeradd(-r,e)),n}slog(e=10,t=100){let n=.001,i=!1,r=!1,s=this.slog_internal(e).toNumber();for(let l=1;l1&&r!=d&&(i=!0),r=d,i?n/=2:n*=2,n=Math.abs(n)*(d?-1:1),s+=n,n===0)break}return c.fromNumber(s)}slog_internal(e=10){if(e=g(e),e.lte(c.dZero)||e.eq(c.dOne))return c.dNaN;if(e.lt(c.dOne))return this.eq(c.dOne)?c.dZero:this.eq(c.dZero)?c.dNegOne:c.dNaN;if(this.mag<0||this.eq(c.dZero))return c.dNegOne;let t=0,n=c.fromDecimal(this);if(n.layer-e.layer>3){const i=n.layer-e.layer-3;t+=i,n.layer-=i}for(let i=0;i<100;++i)if(n.lt(c.dZero))n=c.pow(e,n),t-=1;else{if(n.lte(c.dOne))return c.fromNumber(t+c.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=c.log(n,e)}return c.fromNumber(t)}static slog_critical(e,t){return e>10?t-1:c.critical_section(e,t,di)}static tetrate_critical(e,t){return c.critical_section(e,t,ci)}static critical_section(e,t,n){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let i=0,r=0;for(let l=0;l<$e.length;++l)if($e[l]==e){i=n[l][Math.floor(t)],r=n[l][Math.ceil(t)];break}else if($e[l]e){const u=(e-$e[l])/($e[l+1]-$e[l]);i=n[l][Math.floor(t)]*(1-u)+n[l+1][Math.floor(t)]*u,r=n[l][Math.ceil(t)]*(1-u)+n[l+1][Math.ceil(t)]*u;break}const s=t-Math.floor(t);return i<=0||r<=0?i*(1-s)+r*s:Math.pow(e,Math.log(i)/Math.log(e)*(1-s)+Math.log(r)/Math.log(e)*s)}layeradd10(e){e=c.fromValue_noAlloc(e).toNumber();const t=c.fromDecimal(this);if(e>=1){t.mag<0&&t.layer>0?(t.sign=0,t.mag=0,t.layer=0):t.sign===-1&&t.layer==0&&(t.sign=1,t.mag=-t.mag);const n=Math.trunc(e);e-=n,t.layer+=n}if(e<=-1){const n=Math.trunc(e);if(e-=n,t.layer+=n,t.layer<0)for(let i=0;i<100;++i){if(t.layer++,t.mag=Math.log10(t.mag),!isFinite(t.mag))return t.sign===0&&(t.sign=1),t.layer<0&&(t.layer=0),t.normalize();if(t.layer>=0)break}}for(;t.layer<0;)t.layer++,t.mag=Math.log10(t.mag);return t.sign===0&&(t.sign=1,t.mag===0&&t.layer>=1&&(t.layer-=1,t.mag=1)),t.normalize(),e!==0?t.layeradd(e,10):t}layeradd(e,t){const i=this.slog(t).toNumber()+e;return i>=0?c.tetrate(t,i):Number.isFinite(i)?i>=-1?c.log(c.tetrate(t,i+1),t):c.log(c.log(c.tetrate(t,i+2),t),t):c.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return c.fromNumber(Ot(this.toNumber()));if(this.layer===0)return c.fromNumber(Ot(this.sign*this.mag));if(this.layer===1)return Lt(this);if(this.layer===2)return Lt(this);if(this.layer>=3)return q(this.sign,this.layer-1,this.mag);throw new Error("Unhandled behavior in lambertw()")}ssqrt(){if(this.sign==1&&this.layer>=3)return q(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=q(1,0,1)){t=g(t);const n=e;e=Math.trunc(e);const i=n-e;i!==0&&(t.eq(c.dOne)?(++e,t=c.fromNumber(i)):this.eq(10)?t=t.layeradd10(i):t=t.layeradd(i,this));for(let r=0;r10)return t}return t}sin(){return this.mag<0?this:this.layer===0?c.fromNumber(Math.sin(this.sign*this.mag)):q(0,0,0)}cos(){return this.mag<0?c.dOne:this.layer===0?c.fromNumber(Math.cos(this.sign*this.mag)):q(0,0,0)}tan(){return this.mag<0?this:this.layer===0?c.fromNumber(Math.tan(this.sign*this.mag)):q(0,0,0)}asin(){return this.mag<0?this:this.layer===0?c.fromNumber(Math.asin(this.sign*this.mag)):q(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?c.fromNumber(Math.acos(this.toNumber())):this.layer===0?c.fromNumber(Math.acos(this.sign*this.mag)):q(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?c.fromNumber(Math.atan(this.sign*this.mag)):c.fromNumber(Math.atan(this.sign*(1/0)))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return c.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return c.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?q(Number.NaN,Number.NaN,Number.NaN):c.ln(this.add(1).div(c.fromNumber(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(c.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return this.cmp(e)<1}lessThan(e){return this.cmp(e)<0}greaterThanOrEqualTo(e){return this.cmp(e)>-1}greaterThan(e){return this.cmp(e)>0}};let o=c;o.fromStringCache=new ti(li);o.dZero=q(0,0,0);o.dOne=q(1,0,1);o.dNegOne=q(-1,0,1);o.dTwo=q(1,0,2);o.dTen=q(1,0,10);o.dNaN=q(Number.NaN,Number.NaN,Number.NaN);o.dInf=q(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);o.dNegInf=q(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);o.dNumberMax=O(1,0,Number.MAX_VALUE);o.dNumberMin=O(1,0,Number.MIN_VALUE);g=o.fromValue_noAlloc;O=o.fromComponents;q=o.fromComponents_noNormalize;o.fromMantissaExponent;o.fromMantissaExponent_noNormalize;const mi=new o(1);function Ye(e,t,n=!0){let i=o.log10(e).floor(),r=o.div(e,o.pow(10,i));r.toStringWithDecimalPlaces(t)==="10"&&(r=mi,i=i.add(1));const s=i.gte(1e9)?ge(i,Math.max(Math.max(t,3),G.defaultDecimalsShown)):i.gte(1e4)?dt(i,0):i.toStringWithDecimalPlaces(0);return n?r.toStringWithDecimalPlaces(t)+"e"+s:"e"+s}function dt(e,t){if(e==null)return"NaN";if(e=new o(e),e.mag<.001)return 0 .toFixed(t);const i=e.toStringWithDecimalPlaces(t).split(".");return i[0]=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),i.length==1?i[0]:i[0]+"."+i[1]}function Wt(e,t){return e==null?"NaN":(e=new o(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),G.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const gi=new o("eeee1000"),hi=new o("e100000"),At=new o("e1000"),Gt=new o(1e9),pi=new o(1e6),vi=new o(1e3),bi=new o(.98),_i=new o(.001),Zt=new o(0);function ge(e,t,n){if(t==null&&(t=G.defaultDecimalsShown),n=n!=null?n:G.defaultShowSmall,e=new o(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+ge(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(gi)){const i=e.slog();return i.gte(pi)?"F"+ge(i.floor()):o.pow(10,i.sub(i.floor())).toStringWithDecimalPlaces(3)+"F"+dt(i.floor(),0)}else{if(e.gte(hi))return Ye(e,0,!1);if(e.gte(At))return Ye(e,0);if(e.gte(Gt))return Ye(e,t);if(e.gte(vi))return dt(e,0);if(e.gte(_i)||!n)return Wt(e,t);if(e.eq(Zt))return 0 .toFixed(t)}return e=Yt(e),e.lt(At)?Ye(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):ge(e,t)+"\u207B\xB9"}function me(e){return e=new o(e),e.sign<0?"-"+me(e.neg()):e.gte(Gt)||e.lte(bi)&&!e.eq(Zt)?ge(e):ge(e,0)}function Ht(e){return o.lt(e,0)?"-"+Ht(o.neg(e)):o.gt(e,2**51)?ge(o.div(e,31536e3))+"y":(e=new o(e).toNumber(),e<60?ge(e)+"s":e<3600?me(Math.floor(e/60))+"m "+ge(e%60)+"s":e<86400?me(Math.floor(e/3600))+"h "+me(Math.floor(e/60)%60)+"m "+me(e%60)+"s":e<31536e3?me(Math.floor(e/84600)%365)+"d "+me(Math.floor(e/3600)%24)+"h "+me(Math.floor(e/60)%60)+"m":me(Math.floor(e/31536e3))+"y "+me(Math.floor(e/84600)%365)+"d "+me(Math.floor(e/3600)%24)+"h")}function yi(e,t,n){e=new o(e);let i=e.toStringWithDecimalPlaces(t);return new o(i).gte(n)&&(i=o.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),i}function wi(e,t){return ge(e,t,!0)}function Yt(e){let t=o.log10(e).ceil();const n=o.div(e,o.pow(10,t));return t=t.neg(),e=new o(10).pow(t).times(n),e}var Ni=Object.freeze(Object.defineProperty({__proto__:null,default:o,exponentialFormat:Ye,commaFormat:dt,regularFormat:Wt,format:ge,formatWhole:me,formatTime:Ht,toPlaces:yi,formatSmall:wi,invertOOM:Yt},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:Si,commaFormat:Ci,regularFormat:Mi,format:pt,formatWhole:ft,formatTime:vt,toPlaces:ki,formatSmall:xi,invertOOM:Ii}=Ni;window.Decimal=o;window.exponentialFormat=Si;window.commaFormat=Ci;window.regularFormat=Mi;window.format=pt;window.formatWhole=ft;window.formatTime=vt;window.toPlaces=ki;window.formatSmall=xi;window.invertOOM=Ii;function $i(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function mt(e){return typeof e=="function"}var J=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(J||{});const Qe=Symbol("DoNotCache");function z(e,t){const n=e[t];mt(n)&&n.length===0&&!n[Qe]?e[t]=$(n.bind(e)):mt(n)&&(e[t]=n.bind(e),e[t][Qe]=!0)}function qt(e){return mt(e)&&!e[Qe]&&(e=$(e)),e}const xt=Symbol("Component"),It=Symbol("GatherProps");let Ei=0;function Fi(e="feature-"){return e+Ei++}var Nt=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(Nt||{});function Kt(e){const t=a(e);return t!==2&&t!==!1}function le(e){return e[Qe]=!0,e}function ie(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function Ti(e,...t){const n=[],i=r=>{Object.keys(r).forEach(s=>{const l=r[s];l!=null&&typeof l=="object"&&(t.includes(l.type)?n.push(l):!(l instanceof o)&&!te(l)&&i(l))})};return i(e),n}const Ee={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#0f0f0f","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},floatingTabs:!0,mergeAdjacent:!0,showPin:!0};var $t=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))($t||{}),ye={classic:Ee,paper:{...Ee,variables:{...Ee.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},floatingTabs:!1},nordic:{...Ee,variables:{...Ee.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},floatingTabs:!1},aqua:{...Ee,variables:{...Ee.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const oe=Ut();"fonts"in document&&(document.fonts.onloadingdone=()=>oe.emit("fontsLoaded"));var Pi=Object.freeze(Object.defineProperty({__proto__:null,globalBus:oe},Symbol.toStringTag,{value:"Module"}));const Vi=Ze({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});var L=window.player=Vi;function Jt(e){return JSON.stringify(e,(t,n)=>a(n))}function Xt(e={}){return Object.assign({id:`${G.id}-0`,name:"Default Save",tabs:G.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:G.id,modVersion:G.versionNumber,layers:{}},e)}function ue(e){const t=Se.compressToUTF16(Jt(e!=null?e:L));return localStorage.setItem((e!=null?e:L).id,t),t}async function Di(){Ai();try{let e=localStorage.getItem(Z.active);if(e==null){await Te(Re());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Se.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==G.id){await Te(Re());return}t.id=Z.active,await Te(t)}catch(e){console.error(`Failed to load save. Falling back to new save. +`,e),await Te(Re())}}function Re(){const e=ut(),t=Xt({id:e});return ue(t),Z.saves.push(e),t}function ut(){let e,t=0;do e=`${G.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const Oi=P(!1);async function Te(e){console.info("Loading save",e),Oi.value=!0;const{layers:t,removeLayer:n,addLayer:i}=await Xe(()=>Promise.resolve().then(function(){return ar}),void 0),{fixOldSave:r,getInitialLayers:s}=await Xe(()=>Promise.resolve().then(function(){return _l}),void 0);for(const l in t){const u=t[l];u&&n(u)}s(e).forEach(l=>i(l,e)),e=Xt(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&&(r(e.modVersion,e),e.modVersion=G.versionNumber),Object.assign(L,e),Z.active=L.id,oe.emit("onLoad")}setInterval(()=>{L.autosave&&ue()},1e3);window.onbeforeunload=()=>{L.autosave&&ue()};window.save=ue;const Li=window.hardReset=async()=>{await Te(Re())};window.deleteLowerSaves=()=>{const e=Object.values(Z.saves).indexOf(L.id)+1;Object.values(Z.saves).slice(e).forEach(t=>localStorage.removeItem(t)),Z.saves=Z.saves.slice(0,e)};const et=Ze({active:"",saves:[],showTPS:!0,theme:$t.Nordic,unthrottled:!1,alignUnits:!1});ke(et,e=>{const t=Se.compressToUTF16(JSON.stringify(e));localStorage.setItem(G.id,t)},{deep:!0});var Z=window.settings=et;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:$t.Nordic,alignUnits:!1};oe.emit("loadSettings",e),Object.assign(et,e),Li()};function Ai(){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=Se.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(et,t)}oe.emit("loadSettings",et)}catch{}}const qi=Ze([]),Bi=Ze([]),Ri=Ze([]);function xe(e,t="span"){return typeof e=="function"?W({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),W({template:e})):W({render:()=>({})}):e}function bt(e){if(Qt(e))return typeof e=="function"?e():xe(e);const t=e[xt];return x(t,e[It](),null)}function zi(e){if(Qt(e))return typeof e=="function"?e():typeof e=="string"?x(ce,null,[e]):x(e,null,null);const t=e[xt];return x(t,e[It](),null)}function Qt(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Qe]===!0}function Ui(e,t="div"){const n=rt();return St(()=>{n.value=xe(Ve(e),t)}),n}function at(e,t="div"){const n=rt(null);return St(()=>{const i=Ve(e);n.value=i==""||i==null?null:xe(i,t)}),n}function Ve(e){return a(a(e))}function pe(...e){return e.includes(Object)||e.push(Object),e}var X=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n};const ji=W({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var v;const n=P({}),i=new ResizeObserver(u),r=P(null);Ct(()=>{const p=r.value;p!=null&&i.observe(p)});let s=!0,l=P((v=r.value)==null?void 0:v.getBoundingClientRect());function u(){s&&(s=!1,Ue(()=>{var p;l.value=(p=r.value)==null?void 0:p.getBoundingClientRect(),Object.values(n.value).filter(b=>b).forEach(b=>b.rect=b.element.getBoundingClientRect()),t("updateNodes",n.value),s=!0}))}oe.on("fontsLoaded",u);const d={attributes:!1,childList:!0,subtree:!1};ot(nn,(p,b)=>{const N=new MutationObserver(()=>h(p));N.observe(b,d),n.value[p]={element:b,observer:N,rect:b.getBoundingClientRect()},u()}),ot(rn,p=>{var b;(b=n.value[p])==null||b.observer.disconnect(),n.value[p]=void 0,u()}),ot(an,n),ot(sn,l);function h(p){const b=n.value[p];b!=null&&(b.rect=b.element.getBoundingClientRect(),t("updateNodes",n.value))}return(p,b)=>(w(),I(ce,null,[Me(p.$slots,"default",{},void 0,!0),f("div",{ref_key:"resizeListener",ref:r,class:"resize-listener"},null,512)],64))}});var en=X(ji,[["__scopeId","data-v-2b1dc1bc"]]);const Wi=["onPointerdown"],Gi={class:"modal-wrapper"},Zi={class:"modal-container"},Hi={class:"modal-header"},Yi={class:"modal-body"},Ki={class:"modal-footer"},Ji=f("div",{class:"modal-default-flex-grow"},null,-1),qe=W({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=de(e),s=$(()=>a(r.modelValue)||u.value);function l(){n("update:modelValue",!1)}const u=P(!1),d=P(null),h=$(()=>{var v,p;return(p=(v=d.value)==null?void 0:v.nodes)!=null?p:null});return t({isOpen:s,nodes:h}),(v,p)=>(w(),U(wn,{to:"#modal-root"},[x(Ge,{name:"modal",onBeforeEnter:p[0]||(p[0]=b=>u.value=!0),onAfterLeave:p[1]||(p[1]=b=>u.value=!1)},{default:T(()=>[Mt(f("div",je({class:"modal-mask",onPointerdown:We(l,["self"])},v.$attrs),[f("div",Gi,[f("div",Zi,[f("div",Hi,[Me(v.$slots,"header",{shown:a(s)},()=>[A(" default header ")])]),f("div",Yi,[x(en,{ref_key:"contextRef",ref:d},{default:T(()=>[Me(v.$slots,"body",{shown:a(s)},()=>[A(" default body ")])]),_:3},512)]),f("div",Ki,[Me(v.$slots,"footer",{shown:a(s)},()=>[f("div",{class:"modal-default-footer"},[Ji,f("button",{class:"button modal-default-button",onClick:l}," Close ")])])])])])],16,Wi),[[yn,e.modelValue]])]),_:3})]))}}),Fe=Symbol("ProxyState");function tn(e,t={}){const n=t;let i=!1;function r(){return i||(Object.assign(n,e.call(n,n)),i=!0),n}return new Proxy(n,{get(s,l){if(l===Fe)return r();const u=r()[l];return u!=null&&typeof u=="object"&&Ce in u?u[Ce]:u},set(s,l,u){return r()[l]=u,!0},has(s,l){return l===Fe?!0:Reflect.has(r(),l)},ownKeys(){return Reflect.ownKeys(r())},getOwnPropertyDescriptor(s,l){return i||(Object.assign(n,e.call(n,n)),i=!0),Object.getOwnPropertyDescriptor(s,l)}})}var Q=window.state=kt({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const ze=Symbol("PersistentState"),tt=Symbol("DefaultValue"),gt=Symbol("StackTrace"),ht=Symbol("Deleted"),Ce=Symbol("NonPersistent"),Pe=Symbol("SaveDataPath"),Xi=Symbol("SkipPersistence");function Qi(){var e,t;return(t=(e=new Error().stack)==null?void 0:e.split(` +`).slice(3,5).map(n=>n.trim()).join(` +`))!=null?t:""}function Bt(e,t){var n;if(o.isNaN(t))throw Q.hasNaN||(L.autosave=!1,Q.hasNaN=!0,Q.NaNPath=e[Pe],Q.NaNPersistent=e),console.error("Attempted to save NaN value to",(n=e[Pe])==null?void 0:n.join("."),e),new Error("Attempted to set NaN value. See above for details");e[ze].value=t}function Et(e,t=!0){const n=te(e)?e:P(e);te(e)&&(e=e.value);const i=$({get(){return n.value},set(s){t?Bt(r,s):r[ze].value=s}});i[tt]=e;const r={get value(){return n.value},set value(s){t?Bt(r,s):r[ze].value=s},__v_isRef:!0,[ze]:n,[tt]:e,[gt]:Qi(),[ht]:!1,[Ce]:i,[Pe]:void 0};return se.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",r,` +Created at: +`+r[gt]):De[se[se.length-1]].add(r),r}function er(e){return e!=null&&typeof e=="object"&&ze in e}function tr(e){se.length===0?console.warn("Deleting a persistent ref outside of a layer. Ignoring...",e):De[se[se.length-1]].delete(e),e[ht]=!0}oe.on("addLayer",(e,t)=>{const n=[],i=(r,s=[])=>{let l=!1;return Object.keys(r).forEach(u=>{let d=r[u];if(d!=null&&typeof d=="object"){if(d[Xi]===!0)return;if(Fe in d&&(d=d[Fe]),er(d)){if(l=!0,d[ht]){console.warn("Deleted persistent ref present in returned object. Ignoring...",d,` +Created at: +`+d[gt]);return}De[e.id].delete(d);const h=[e.id,...s,u];d[Pe]!=null&&JSON.stringify(h)!==JSON.stringify(d[Pe])&&console.error(`Persistent ref is being saved to \`${h.join(".")}\` when it's already present at \`${d[Pe].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,d),d[Pe]=h;const v=s.reduce((b,N)=>(N in b||(b[N]={}),b[N]),t),p=v[u];v[u]=d[ze],Nn(v)?p!=null?v[u]=p:v[u]=d[tt]:p!=null?v[u].value=p:v[u].value=d[tt]}else!(d instanceof o)&&!te(d)&&!n.includes(d)&&(typeof d.type=="symbol"&&n.push(d),i(d,[...s,u])&&(Tt(d)&&!Tt(r)?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.",Fe in r?r[Fe]:r,u):l=!0))}}),l};i(e[Fe]),De[e.id].forEach(r=>{r[ht]||console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,r,` +Created at: +`+r[gt])}),De[e.id].clear()});const nn=Symbol("RegisterNode"),rn=Symbol("UnregisterNode"),an=Symbol("Nodes"),sn=Symbol("Bounds"),re=kt({});window.layers=re;const De={},se=[];function on(e,t){return tn(()=>{const n={},i=n.emitter=Ut();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=P({}),n.id=e,se.push(e),De[e]=new Set,n.minimized=Et(!1,!1),Object.assign(n,t.call(n,n)),se[se.length-1]==null||se[se.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen +Stack: ${se} +Trying to pop ${n.id}`;se.pop(),z(n,"color"),z(n,"display"),z(n,"classes"),z(n,"style"),z(n,"name"),ie(n,"name",n.id),z(n,"minWidth"),ie(n,"minWidth",600),z(n,"minimizable"),ie(n,"minimizable",!0),z(n,"minimizedDisplay");const r=n.style;return n.style=$(()=>{var l,u;let s=a(n.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(l=a(r))!=null?l:"",(u=n.minimized)!=null&&u.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:s,flexBasis:s,margin:""}]}),n})}function ln(e,t){if(console.info("Adding layer",e.id),re[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,re[e.id]);return}ie(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),re[e.id]=e,oe.emit("addLayer",e,t.layers[e.id])}function nr(e){return re[e]}function un(e){console.info("Removing layer",e.id),oe.emit("removeLayer",e),re[e.id]=void 0}function ir(e){un(e),ln(e,L)}function rr(e){const t=P(!1);return{openModal:()=>t.value=!0,modal:le(()=>x(qe,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>x("h2",null,[a(e.name)]),body:a(e.display)}))}}oe.on("update",function(t){Object.values(re).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(re).forEach(n=>{n==null||n.emit("update",t)}),Object.values(re).forEach(n=>{n==null||n.emit("postUpdate",t)})});var ar=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:nn,UnregisterNodeInjectionKey:rn,NodesInjectionKey:an,BoundsInjectionKey:sn,layers:re,persistentRefs:De,addingLayers:se,createLayer:on,addLayer:ln,getLayer:nr,removeLayer:un,reloadLayer:ir,setupLayerModal:rr},Symbol.toStringTag,{value:"Module"}));const sr=W({components:{Context:en},props:{index:{type:Number,required:!0},display:{type:pe(Object,String,Function),required:!0},minimizedDisplay:pe(Object,String,Function),minimized:{type:Object,required:!0},name:{type:pe(String),required:!0},color:pe(String),minimizable:pe(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:n,minimized:i,minimizedDisplay:r}=de(e),s=Ui(t),l=at(r),u=$(()=>G.allowGoBack&&n.value>0&&!Ve(i));function d(){L.tabs.splice(a(e.index),1/0)}function h(v){e.nodes.value=v}return{component:s,minimizedComponent:l,showGoBack:u,updateNodes:h,unref:a,goBack:d}}}),or={key:1};function lr(e,t,n,i,r,s){const l=zt("Context");return w(),I("div",{class:"layer-container",style:ve({"--layer-color":e.unref(e.color)})},[e.showGoBack?(w(),I("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...u)=>e.goBack&&e.goBack(...u))},"\u274C")):V("",!0),e.unref(e.minimized)?(w(),I("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=u=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(w(),U(he(e.minimizedComponent),{key:0})):(w(),I("div",or,R(e.unref(e.name)),1))])):(w(),I("div",{key:2,class:ne(["layer-tab",{showGoBack:e.showGoBack}])},[x(l,{onUpdateNodes:e.updateNodes},{default:T(()=>[(w(),U(he(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(w(),I("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=u=>e.$emit("setMinimized",!0))}," \u25BC ")):V("",!0)],4)}var ur=X(sr,[["render",lr],["__scopeId","data-v-72dd78b1"]]);const cn=e=>(Le("data-v-4b4bda40"),e=e(),Ae(),e),cr=cn(()=>f("h2",null,"Changelog",-1)),dr=cn(()=>f("details",{open:""},[f("summary",null,[A("v0.0 Initial Commit - "),f("time",null,"2021-09-04")]),A(" This is the first release :D "),f("ul",null,[f("li",{class:"feature"},"Did everything"),f("li",{class:"fix"},"Had some fun"),f("li",{class:"breaking"},"Removed everything"),f("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),fr=W({__name:"Changelog",setup(e,{expose:t}){const n=P(!1);return t({open(){n.value=!0}}),(i,r)=>(w(),U(qe,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s)},{header:T(()=>[cr]),body:T(()=>[dr]),_:1},8,["modelValue"]))}});var mr=X(fr,[["__scopeId","data-v-4b4bda40"]]),gr=W({props:{element:Object,display:{type:pe(Object,String,Function),required:!0},style:pe(Object,String,Array),classes:pe(Object),direction:pe(String),xoffset:pe(String),yoffset:pe(String),pinned:Object},setup(e){const{element:t,display:n,pinned:i}=de(e),r=P(!1),s=$(()=>(Ve(i)||r.value)&&l.value),l=at(n),u=rt(xe(le(()=>{const v=Ve(t);return v==null?"":zi(v)})));function d(v){const p=i;v.shiftKey&&p&&(p.value=!p.value,v.stopPropagation(),v.preventDefault())}const h=$(()=>Ve(i)&&ye[Z.theme].showPin);return{Direction:J,isHovered:r,isShown:s,comp:l,elementComp:u,unref:a,togglePinned:d,showPin:h}}});const hr={key:0,class:"material-icons pinned"};function pr(e,t,n,i,r,s){return w(),I("div",{class:ne(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=l=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=l=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...l)=>e.togglePinned&&e.togglePinned(...l))},[Me(e.$slots,"default",{},void 0,!0),e.elementComp?(w(),U(he(e.elementComp),{key:0})):V("",!0),x(Ge,{name:"fade"},{default:T(()=>{var l;return[e.isShown?(w(),I("div",{key:0,class:ne(["tooltip",{top:e.unref(e.direction)===e.Direction.Up,left:e.unref(e.direction)===e.Direction.Left,right:e.unref(e.direction)===e.Direction.Right,bottom:e.unref(e.direction)===e.Direction.Down,...e.unref(e.classes)}]),style:ve([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(l=e.unref(e.style))!=null?l:{}])},[e.showPin?(w(),I("span",hr,"push_pin")):V("",!0),e.comp?(w(),U(he(e.comp),{key:1})):V("",!0)],6)):V("",!0)]}),_:1})],34)}var ee=X(gr,[["render",pr],["__scopeId","data-v-6102fa3a"]]);const Be=e=>(Le("data-v-4f97aa40"),e=e(),Ae(),e),vr={class:"info-modal-header"},br=["src","alt"],_r={class:"info-modal-title"},yr={key:0},wr={key:0},Nr={key:0},Sr=Be(()=>f("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),Cr=Be(()=>f("br",null,null,-1)),Mr=Be(()=>f("br",null,null,-1)),kr=["href"],xr=Be(()=>f("span",{class:"material-icons info-modal-discord"},"discord",-1)),Ir=Be(()=>f("div",null,[f("a",{href:"https://discord.gg/yJ4fjnjU54",class:"info-modal-discord-link",target:"_blank"},[f("span",{class:"material-icons info-modal-discord"},"discord"),A(" The Paper Pilot Community ")])],-1)),$r=Be(()=>f("div",null,[f("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link",target:"_blank"},[f("span",{class:"material-icons info-modal-discord"},"discord"),A(" The Modding Tree ")])],-1)),Er=Be(()=>f("br",null,null,-1));var Fr=W({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:i,logo:r,author:s,discordName:l,discordLink:u,versionNumber:d,versionTitle:h}=G,v=de(n),p=P(!1),b=$(()=>vt(L.timePlayed)),N=$(()=>xe(le(()=>x(ce,null,[Bi.map(bt)]))));t({open(){p.value=!0}});function k(){var _;(_=a(v.changelog))==null||_.open()}return(_,E)=>(w(),U(qe,{modelValue:p.value,"onUpdate:modelValue":E[0]||(E[0]=B=>p.value=B)},{header:T(()=>[f("div",vr,[a(r)?(w(),I("img",{key:0,class:"info-modal-logo",src:a(r),alt:a(i)},null,8,br)):V("",!0),f("div",_r,[f("h2",null,R(a(i)),1),f("h4",null,[A(" v"+R(a(d)),1),a(h)?(w(),I("span",yr,": "+R(a(h)),1)):V("",!0)])])])]),body:T(({shown:B})=>[B?(w(),I("div",wr,[a(s)?(w(),I("div",Nr,"By "+R(a(s)),1)):V("",!0),Sr,Cr,f("div",{class:"link",onClick:k},"Changelog"),Mr,f("div",null,[a(u)?(w(),I("a",{key:0,href:a(u),class:"info-modal-discord-link",target:"_blank"},[xr,A(" "+R(a(l)),1)],8,kr)):V("",!0)]),Ir,$r,Er,f("div",null,"Time Played: "+R(a(b)),1),(w(),U(he(a(N))))])):V("",!0)]),_:1},8,["modelValue"]))}});var Tr=X(Fr,[["__scopeId","data-v-4f97aa40"]]);const Pr={class:"field"},Vr={key:0,class:"field-title"},dn=W({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var l;const n=e,i=at(Oe(n,"title"),"span"),r=P((l=n.options.find(u=>u.value===n.modelValue))!=null?l:null);ke(Oe(n,"modelValue"),u=>{var d;Ve(r)!==u&&(r.value=(d=n.options.find(h=>h.value===u))!=null?d:null)});function s(u){t("update:modelValue",u.value)}return(u,d)=>(w(),I("div",Pr,[a(i)?(w(),I("span",Vr,[(w(),U(he(a(i))))])):V("",!0),x(a(kn),{options:e.options,modelValue:r.value,"onUpdate:modelValue":[d[0]||(d[0]=h=>r.value=h),s],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const Dr={class:"field"},Or=W({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=$(()=>{var s;return xe((s=a(n.title))!=null?s:"","span")}),r=$({get(){return!!n.modelValue},set(s){t("update:modelValue",s)}});return(s,l)=>(w(),I("label",Dr,[Mt(f("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":l[0]||(l[0]=u=>te(r)?r.value=u:null)},null,512),[[Sn,a(r)]]),(w(),U(he(a(i))))]))}});var _e=X(Or,[["__scopeId","data-v-11046116"]]);const Lr=["onClick"],Ar=W({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=P(!1),i=P(null);function r(){t("click"),i.value&&clearTimeout(i.value),n.value=!1,Ue(()=>{n.value=!0,i.value=setTimeout(()=>n.value=!1,500)})}return(s,l)=>(w(),I("button",{onClick:We(r,["stop"]),class:ne(["feedback",{activated:n.value,left:e.left}])},[Me(s.$slots,"default",{},void 0,!0)],10,Lr))}});var fn=X(Ar,[["__scopeId","data-v-01a1b95c"]]);const qr={class:"header"},Br=f("h2",null,"Settings",-1),Rr={class:"option-tabs"},zr={key:0},Ur={key:1};var jr=W({__name:"Options",setup(e,{expose:t}){const n=P(!1),i=P("behaviour");function r(Y){return Y==i.value}function s(Y){i.value=Y}t({isTab:r,setTab:s,save:ue,open(){n.value=!0}});const l=Object.keys(ye).map(Y=>({label:$i(Y),value:Y})),u=$(()=>xe(le(()=>x(ce,null,[qi.map(bt)])))),{showTPS:d,theme:h,unthrottled:v,alignUnits:p}=de(Z),{autosave:b,offlineProd:N}=de(L),k=$({get(){return L.devSpeed===0},set(Y){L.devSpeed=Y?0:null}}),_=le(()=>x("span",{class:"option-title"},[A("Unthrottled"),x("desc",null,[A("Allow the game to run as fast as possible. Not battery friendly.")])])),E=le(()=>x("span",{class:"option-title"},[A("Offline Production"),x(ee,{display:"Save-specific",direction:J.Right},{default:()=>[A("*")]}),x("desc",null,[A("Simulate production that occurs while the game is closed.")])])),B=le(()=>x("span",{class:"option-title"},[A("Autosave"),x(ee,{display:"Save-specific",direction:J.Right},{default:()=>[A("*")]}),x("desc",null,[A("Automatically save the game every second or when the game is closed.")])])),y=le(()=>x("span",{class:"option-title"},[A("Pause game"),x(ee,{display:"Save-specific",direction:J.Right},{default:()=>[A("*")]}),x("desc",null,[A("Stop everything from moving.")])])),M=le(()=>x("span",{class:"option-title"},[A("Theme"),x("desc",null,[A("How the game looks.")])])),D=le(()=>x("span",{class:"option-title"},[A("Show TPS"),x("desc",null,[A("Show TPS meter at the bottom-left corner of the page.")])])),ae=le(()=>x("span",{class:"option-title"},[A("Align modifier units"),x("desc",null,[A("Align numbers to the beginning of the unit in modifier view.")])]));return(Y,F)=>(w(),U(qe,{modelValue:n.value,"onUpdate:modelValue":F[10]||(F[10]=j=>n.value=j)},{header:T(()=>[f("div",qr,[Br,f("div",Rr,[f("button",{class:ne({selected:r("behaviour")}),onClick:F[0]||(F[0]=j=>s("behaviour"))},"Behaviour",2),f("button",{class:ne({selected:r("appearance")}),onClick:F[1]||(F[1]=j=>s("appearance"))},"Appearance",2)])])]),body:T(()=>[r("behaviour")?(w(),I("div",zr,[x(_e,{title:a(_),modelValue:a(v),"onUpdate:modelValue":F[2]||(F[2]=j=>te(v)?v.value=j:null)},null,8,["title","modelValue"]),a(G).enablePausing?(w(),U(_e,{key:0,title:a(y),modelValue:a(k),"onUpdate:modelValue":F[3]||(F[3]=j=>te(k)?k.value=j:null)},null,8,["title","modelValue"])):V("",!0),x(_e,{title:a(E),modelValue:a(N),"onUpdate:modelValue":F[4]||(F[4]=j=>te(N)?N.value=j:null)},null,8,["title","modelValue"]),x(_e,{title:a(B),modelValue:a(b),"onUpdate:modelValue":F[5]||(F[5]=j=>te(b)?b.value=j:null)},null,8,["title","modelValue"]),a(b)?V("",!0):(w(),U(fn,{key:1,class:"button save-button",onClick:F[6]||(F[6]=j=>a(ue)())},{default:T(()=>[A("Manually save")]),_:1}))])):V("",!0),r("appearance")?(w(),I("div",Ur,[x(dn,{title:a(M),options:a(l),modelValue:a(h),"onUpdate:modelValue":F[7]||(F[7]=j=>te(h)?h.value=j:null)},null,8,["title","options","modelValue"]),(w(),U(he(a(u)))),x(_e,{title:a(D),modelValue:a(d),"onUpdate:modelValue":F[8]||(F[8]=j=>te(d)?d.value=j:null)},null,8,["title","modelValue"]),x(_e,{title:a(ae),modelValue:a(p),"onUpdate:modelValue":F[9]||(F[9]=j=>te(p)?p.value=j:null)},null,8,["title","modelValue"])])):V("",!0)]),_:1},8,["modelValue"]))}});const Wr=["onSubmit"],Gr={class:"field"},Zr={key:0,class:"field-title"},Hr=["placeholder"],Yr=W({__name:"Text",props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null,submitOnBlur:{type:Boolean}},emits:["update:modelValue","submit","cancel"],setup(e,{emit:t}){const n=e,i=at(Oe(n,"title"),"span"),r=rt(null);Ct(()=>{var d;(d=r.value)==null||d.focus()});const s=$({get(){var d;return(d=a(n.modelValue))!=null?d:""},set(d){t("update:modelValue",d)}});function l(){t("submit")}function u(){n.submitOnBlur!==!1?t("submit"):t("cancel")}return(d,h)=>(w(),I("form",{onSubmit:We(l,["prevent"])},[f("div",Gr,[a(i)?(w(),I("span",Zr,[(w(),U(he(a(i))))])):V("",!0),e.textArea?(w(),U(a(In),{key:1,modelValue:a(s),"onUpdate:modelValue":h[0]||(h[0]=v=>te(s)?s.value=v:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:u,ref_key:"field",ref:r},null,8,["modelValue","placeholder","maxHeight"])):Mt((w(),I("input",{key:2,type:"text","onUpdate:modelValue":h[1]||(h[1]=v=>te(s)?s.value=v:null),placeholder:e.placeholder,class:ne({fullWidth:!e.title}),onBlur:u,ref_key:"field",ref:r},null,42,Hr)),[[Cn,a(s)]])])],40,Wr))}});var mn=X(Yr,[["__scopeId","data-v-90bd4994"]]);const Kr={key:0},Jr=["onClick","disabled"],Xr={key:0},Qr=["onClick"],ea=W({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const i=de(e),r=P(!1);ke(r,u=>{t("confirmingChanged",u)});function s(){if(a(i.skipConfirm)){t("click");return}r.value&&t("click"),r.value=!r.value}function l(){r.value=!1}return(u,d)=>(w(),I("span",{class:ne(["container",{confirming:r.value}])},[r.value?(w(),I("span",Kr,"Are you sure?")):V("",!0),f("button",{onClick:We(s,["stop"]),class:"button danger",disabled:e.disabled},[r.value?(w(),I("span",Xr,"Yes")):Me(u.$slots,"default",{key:1},void 0,!0)],8,Jr),r.value?(w(),I("button",{key:1,class:"button",onClick:We(l,["stop"])},"No",8,Qr)):V("",!0)],2))}});var ta=X(ea,[["__scopeId","data-v-2f8ef34c"]]);const we=e=>(Le("data-v-32313015"),e=e(),Ae(),e),na=we(()=>f("div",{class:"handle material-icons"},"drag_handle",-1)),ia={key:0,class:"actions"},ra=we(()=>f("span",{class:"material-icons"},"content_paste",-1)),aa=we(()=>f("span",{class:"material-icons"},"content_copy",-1)),sa=we(()=>f("span",{class:"material-icons"},"edit",-1)),oa=we(()=>f("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),la={key:1,class:"actions"},ua=we(()=>f("span",{class:"material-icons"},"check",-1)),ca=we(()=>f("span",{class:"material-icons"},"close",-1)),da={key:2,class:"details"},fa={class:"save-version"},ma=we(()=>f("br",null,null,-1)),ga={key:0},ha={key:3,class:"details"},pa={key:4,class:"details error"},va=we(()=>f("br",null,null,-1)),ba=W({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:i}=de(n),r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),s=P(!1),l=P(!1),u=P("");ke(s,()=>{var p;return u.value=(p=i.value.name)!=null?p:""});const d=$(()=>i.value!=null&&i.value.id===L.id),h=$(()=>{var p;return d.value?L.time:(p=i.value!=null&&i.value.time)!=null?p:0});function v(){t("editName",u.value),s.value=!1}return(p,b)=>(w(),I("div",{class:ne(["save",{active:a(d)}])},[na,s.value?(w(),I("div",la,[f("button",{onClick:v,class:"button"},[x(ee,{display:"Save",direction:a(J).Left,class:"info"},{default:T(()=>[ua]),_:1},8,["direction"])]),f("button",{onClick:b[5]||(b[5]=N=>s.value=!s.value),class:"button"},[x(ee,{display:"Cancel",direction:a(J).Left,class:"info"},{default:T(()=>[ca]),_:1},8,["direction"])])])):(w(),I("div",ia,[a(i).error==null&&!l.value?(w(),U(fn,{key:0,onClick:b[0]||(b[0]=N=>t("export")),class:"button",left:""},{default:T(()=>[x(ee,{display:"Export",direction:a(J).Left,class:"info"},{default:T(()=>[ra]),_:1},8,["direction"])]),_:1})):V("",!0),a(i).error==null&&!l.value?(w(),I("button",{key:1,onClick:b[1]||(b[1]=N=>t("duplicate")),class:"button"},[x(ee,{display:"Duplicate",direction:a(J).Left,class:"info"},{default:T(()=>[aa]),_:1},8,["direction"])])):V("",!0),a(i).error==null&&!l.value?(w(),I("button",{key:2,onClick:b[2]||(b[2]=N=>s.value=!s.value),class:"button"},[x(ee,{display:"Edit Name",direction:a(J).Left,class:"info"},{default:T(()=>[sa]),_:1},8,["direction"])])):V("",!0),x(ta,{disabled:a(d),onClick:b[3]||(b[3]=N=>t("delete")),onConfirmingChanged:b[4]||(b[4]=N=>l.value=N)},{default:T(()=>[x(ee,{display:"Delete",direction:a(J).Left,class:"info"},{default:T(()=>[oa]),_:1},8,["direction"])]),_:1},8,["disabled"])])),a(i).error==null&&!s.value?(w(),I("div",da,[f("button",{class:"button open",onClick:b[6]||(b[6]=N=>t("open"))},[f("h3",null,R(a(i).name),1)]),f("span",fa,"v"+R(a(i).modVersion),1),ma,a(h)?(w(),I("div",ga,"Last played "+R(a(r).format(a(h))),1)):V("",!0)])):a(i).error==null&&s.value?(w(),I("div",ha,[x(mn,{modelValue:u.value,"onUpdate:modelValue":b[7]||(b[7]=N=>u.value=N),class:"editname",onSubmit:v},null,8,["modelValue"])])):(w(),I("div",pa,[A(" Error: Failed to load save with id "+R(a(i).id),1),va,A(R(a(i).error),1)]))],2))}});var _a=X(ba,[["__scopeId","data-v-32313015"]]);const Ft=e=>(Le("data-v-2a4275be"),e=e(),Ae(),e),ya=Ft(()=>f("h2",null,"Saves Manager",-1)),wa={class:"modal-footer"},Na={class:"field"},Sa=Ft(()=>f("span",{class:"field-title"},"Create Save",-1)),Ca={class:"field-buttons"},Ma={class:"footer"},ka=Ft(()=>f("div",{style:{"flex-grow":"1"}},null,-1)),xa=W({__name:"SavesManager",setup(e,{expose:t}){const n=P(!1),i=P(null);t({open(){n.value=!0}});const r=P(!1),s=P(""),l=P(null);ke(s,y=>{y?Ue(()=>{try{if(y[0]!=="{")if(y[0]==="e")y=decodeURIComponent(escape(atob(y)));else if(y[0]==="\u1BE1")y=Se.decompressFromUTF16(y);else{console.warn("Unable to determine preset encoding",y),r.value=!0;return}const M=JSON.parse(y);if(typeof M!="object"){r.value=!0;return}const D=ut();M.id=D,ue(M),s.value="",r.value=!1,Z.saves.push(D)}catch{r.value=!0}}):r.value=!1});let u={},d=P(Object.keys(u).reduce((y,M)=>(y.push({label:M.split("/").slice(-1)[0].slice(0,-4),value:u[M]}),y),[]));const h=kt({});function v(y){if(h[y]==null){let M=localStorage.getItem(y);if(M==null)h[y]={error:"Save doesn't exist in localStorage",id:y};else if(M==="dW5kZWZpbmVk")h[y]={error:"Save is undefined",id:y};else try{if(M[0]!=="{")if(M[0]==="e")M=decodeURIComponent(escape(atob(M)));else if(M[0]==="\u1BE1")M=Se.decompressFromUTF16(M);else return console.warn("Unable to determine preset encoding",M),r.value=!0,h[y]={error:"Unable to determine preset encoding",id:y},h[y];h[y]={...JSON.parse(M),id:y}}catch(D){h[y]={error:D,id:y},console.warn(`SavesManager: Failed to load info about save with id ${y}: +${D} +${M}`)}}return h[y]}ke(n,y=>{y&&Object.keys(h).forEach(M=>delete h[M])});const p=$(()=>Z.saves.reduce((y,M)=>(y[M]=v(M),y),{}));function b(y){let M;switch(L.id===y?M=Jt(L):M=JSON.stringify(p.value[y]),G.exportEncoding){default:console.warn(`Unknown save encoding: ${G.exportEncoding}. Defaulting to lz`);case"lz":M=Se.compressToUTF16(M);break;case"base64":M=btoa(unescape(encodeURIComponent(M)));break;case"plain":break}const D=document.createElement("textarea");D.value=M,document.body.appendChild(D),D.select(),D.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(D)}function N(y){L.id===y&&ue();const M={...p.value[y],id:ut()};ue(M),Z.saves.push(M.id)}function k(y){Z.saves=Z.saves.filter(M=>M!==y),localStorage.removeItem(y),h[y]=void 0}function _(y){p.value[L.id].time=L.time,ue(),h[L.id]=void 0,Te(p.value[y]),h[y]=void 0}function E(y){if(l.value=y,Ue(()=>{l.value=null}),y[0]!=="{")if(y[0]==="e")y=decodeURIComponent(escape(atob(y)));else if(y[0]==="\u1BE1")y=Se.decompressFromUTF16(y);else{console.warn("Unable to determine preset encoding",y);return}const M=JSON.parse(y);M.id=ut(),ue(M),Z.saves.push(M.id),_(M.id)}function B(y,M){const D=p.value[y];D!=null&&(D.name=M,L.id===y?(L.name=M,ue()):(ue(D),h[y]=void 0))}return(y,M)=>(w(),U(qe,{modelValue:n.value,"onUpdate:modelValue":M[4]||(M[4]=D=>n.value=D),ref_key:"modal",ref:i},{header:T(()=>[ya]),body:T(({shown:D})=>[D?(w(),U(a(xn),{key:0,list:a(Z).saves,handle:".handle",itemKey:ae=>ae},{item:T(({element:ae})=>[x(_a,{save:a(p)[ae],onOpen:Y=>_(ae),onExport:Y=>b(ae),onEditName:Y=>B(ae,Y),onDuplicate:Y=>N(ae),onDelete:Y=>k(ae)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):V("",!0)]),footer:T(()=>[f("div",wa,[x(mn,{modelValue:s.value,"onUpdate:modelValue":M[0]||(M[0]=D=>s.value=D),title:"Import Save",placeholder:"Paste your save here!",class:ne({importingFailed:r.value})},null,8,["modelValue","class"]),f("div",Na,[Sa,f("div",Ca,[f("button",{class:"button",onClick:M[1]||(M[1]=D=>_(a(Re)().id))},"New Game"),Object.keys(a(d)).length>0?(w(),U(dn,{key:0,options:a(d),modelValue:l.value,"onUpdate:modelValue":M[2]||(M[2]=D=>E(D)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):V("",!0)])]),f("div",Ma,[ka,f("button",{class:"button modal-default-button",onClick:M[3]||(M[3]=D=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var gn=X(xa,[["__scopeId","data-v-2a4275be"]]);const fe=e=>(Le("data-v-318a1c31"),e=e(),Ae(),e),Ia=["src","alt"],$a={key:1,class:"title"},Ea=fe(()=>f("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Fa={class:"discord"},Ta={class:"discord-links"},Pa={key:0},Va=["href"],Da=fe(()=>f("li",null,[f("a",{href:"https://discord.gg/yJ4fjnjU54",target:"_blank"},"The Paper Pilot Community")],-1)),Oa=fe(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),La={href:"https://forums.moddingtree.com/",target:"_blank"},Aa=fe(()=>f("span",{class:"material-icons"},"forum",-1)),qa=fe(()=>f("span",{class:"material-icons"},"info",-1)),Ba=fe(()=>f("span",{class:"material-icons"},"library_books",-1)),Ra=fe(()=>f("span",{class:"material-icons"},"settings",-1)),za=fe(()=>f("span",{class:"material-icons"},"library_books",-1)),Ua=fe(()=>f("span",{class:"material-icons"},"settings",-1)),ja=fe(()=>f("span",{class:"material-icons"},"info",-1)),Wa={href:"https://forums.moddingtree.com/",target:"_blank"},Ga=fe(()=>f("span",{class:"material-icons"},"forum",-1)),Za={class:"discord"},Ha={class:"discord-links"},Ya={key:0},Ka=["href"],Ja=fe(()=>f("li",null,[f("a",{href:"https://discord.gg/yJ4fjnjU54",target:"_blank"},"The Paper Pilot Community")],-1)),Xa=fe(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Qa=W({__name:"Nav",setup(e){const t=P(null),n=P(null),i=P(null),r=P(null),{useHeader:s,banner:l,title:u,discordName:d,discordLink:h,versionNumber:v}=G;function p(){window.open(h,"mywindow")}return(b,N)=>(w(),I(ce,null,[a(s)?(w(),I("div",je({key:0,class:"nav"},b.$attrs),[a(l)?(w(),I("img",{key:0,src:a(l),class:"banner",alt:a(u)},null,8,Ia)):(w(),I("div",$a,R(a(u)),1)),f("div",{onClick:N[0]||(N[0]=k=>{var _;return(_=r.value)==null?void 0:_.open()}),class:"version-container"},[x(ee,{display:"Changelog",direction:a(J).Down,class:"version"},{default:T(()=>[f("span",null,"v"+R(a(v)),1)]),_:1},8,["direction"])]),Ea,f("div",Fa,[f("span",{onClick:p,class:"material-icons"},"discord"),f("ul",Ta,[a(h)?(w(),I("li",Pa,[f("a",{href:a(h),target:"_blank"},R(a(d)),9,Va)])):V("",!0),Da,Oa])]),f("div",null,[f("a",La,[x(ee,{display:"Forums",direction:a(J).Down,yoffset:"5px"},{default:T(()=>[Aa]),_:1},8,["direction"])])]),f("div",{onClick:N[1]||(N[1]=k=>{var _;return(_=t.value)==null?void 0:_.open()})},[x(ee,{display:"Info",direction:a(J).Down,class:"info"},{default:T(()=>[qa]),_:1},8,["direction"])]),f("div",{onClick:N[2]||(N[2]=k=>{var _;return(_=n.value)==null?void 0:_.open()})},[x(ee,{display:"Saves",direction:a(J).Down,xoffset:"-20px"},{default:T(()=>[Ba]),_:1},8,["direction"])]),f("div",{onClick:N[3]||(N[3]=k=>{var _;return(_=i.value)==null?void 0:_.open()})},[x(ee,{display:"Settings",direction:a(J).Down,xoffset:"-66px"},{default:T(()=>[Ra]),_:1},8,["direction"])])],16)):(w(),I("div",je({key:1,class:"overlay-nav"},b.$attrs),[f("div",{onClick:N[4]||(N[4]=k=>{var _;return(_=r.value)==null?void 0:_.open()}),class:"version-container"},[x(ee,{display:"Changelog",direction:a(J).Right,xoffset:"25%",class:"version"},{default:T(()=>[f("span",null,"v"+R(a(v)),1)]),_:1},8,["direction"])]),f("div",{onClick:N[5]||(N[5]=k=>{var _;return(_=n.value)==null?void 0:_.open()})},[x(ee,{display:"Saves",direction:a(J).Right},{default:T(()=>[za]),_:1},8,["direction"])]),f("div",{onClick:N[6]||(N[6]=k=>{var _;return(_=i.value)==null?void 0:_.open()})},[x(ee,{display:"Settings",direction:a(J).Right},{default:T(()=>[Ua]),_:1},8,["direction"])]),f("div",{onClick:N[7]||(N[7]=k=>{var _;return(_=t.value)==null?void 0:_.open()})},[x(ee,{display:"Info",direction:a(J).Right},{default:T(()=>[ja]),_:1},8,["direction"])]),f("div",null,[f("a",Wa,[x(ee,{display:"Forums",direction:a(J).Right,xoffset:"7px"},{default:T(()=>[Ga]),_:1},8,["direction"])])]),f("div",Za,[f("span",{onClick:p,class:"material-icons"},"discord"),f("ul",Ha,[a(h)?(w(),I("li",Ya,[f("a",{href:a(h),target:"_blank"},R(a(d)),9,Ka)])):V("",!0),Ja,Xa])])],16)),x(Tr,{ref_key:"info",ref:t,changelog:r.value},null,8,["changelog"]),x(gn,{ref_key:"savesManager",ref:n},null,512),x(jr,{ref_key:"options",ref:i},null,512),x(mr,{ref_key:"changelog",ref:r},null,512)],64))}});var hn=X(Qa,[["__scopeId","data-v-318a1c31"]]);const es={class:"inner-tab"},ts=W({__name:"Game",setup(e){const t=Oe(L,"tabs"),n=$(()=>Object.keys(re)),i=G.useHeader;function r(s){const{display:l,minimized:u,name:d,color:h,minimizable:v,nodes:p,minimizedDisplay:b}=s;return{display:l,minimized:u,name:d,color:h,minimizable:v,nodes:p,minimizedDisplay:b}}return(s,l)=>(w(),I("div",{class:ne(["tabs-container",{useHeader:a(i)}])},[(w(!0),I(ce,null,ct(a(t),(u,d)=>{var h,v;return w(),I("div",{key:d,class:ne(["tab",a((h=a(re)[u])==null?void 0:h.classes)]),style:ve(a((v=a(re)[u])==null?void 0:v.style))},[d===0&&!a(i)?(w(),U(hn,{key:0})):V("",!0),f("div",es,[a(n).includes(u)?(w(),U(ur,je({key:0},r(a(re)[u]),{index:d,onSetMinimized:p=>a(re)[u].minimized.value=p}),null,16,["index","onSetMinimized"])):(w(),U(he(u),{key:1,index:d},null,8,["index"]))])],6)}),128))],2))}});var ns=X(ts,[["__scopeId","data-v-dcd207b4"]]);const is=["x1","y1","x2","y2"],rs=W({__name:"BoardLink",props:{link:null},setup(e){const n=de(e),i=$(()=>{const s=n.link.value.startNode.position;return n.link.value.offsetStart&&(s.x+=a(n.link.value.offsetStart).x,s.y+=a(n.link.value.offsetStart).y),s}),r=$(()=>{const s=n.link.value.endNode.position;return n.link.value.offsetEnd&&(s.x+=a(n.link.value.offsetEnd).x,s.y+=a(n.link.value.offsetEnd).y),s});return(s,l)=>(w(),I("line",je({class:"link"},e.link,{class:{pulsing:e.link.pulsing},x1:a(i).x,y1:a(i).y,x2:a(r).x,y2:a(r).y}),null,16,is))}});var as=X(rs,[["__scopeId","data-v-57c4970a"]]);const ss={key:0},os=["transform","onMousedown","onTouchstart","onMouseup","onTouchend"],ls=["fill","stroke-width","stroke"],us=["fill"],cs=W({__name:"BoardNodeAction",props:{node:null,nodeType:null,actions:null,isSelected:{type:Boolean},selectedAction:null},setup(e){const n=de(e),i=$(()=>H(n.nodeType.value.size,a(n.node))),r=$(()=>{var h;return(h=H(n.nodeType.value.outlineColor,a(n.node)))!=null?h:ye[Z.theme].variables["--outline"]}),s=$(()=>{var h;return(h=H(n.nodeType.value.titleColor,a(n.node)))!=null?h:ye[Z.theme].variables["--foreground"]}),l=$(()=>H(n.nodeType.value.actionDistance,a(n.node)));function u(h,v){var p;(v.onClick(a(n.node))||((p=a(n.selectedAction))==null?void 0:p.id)===v.id)&&(h.preventDefault(),h.stopPropagation())}function d(h,v){var p;((p=a(n.selectedAction))==null?void 0:p.id)===v.id&&(h.preventDefault(),h.stopPropagation())}return(h,v)=>(w(),U(Ge,{name:"actions",appear:""},{default:T(()=>[e.isSelected&&e.actions?(w(),I("g",ss,[(w(!0),I(ce,null,ct(e.actions,(p,b)=>{var N,k;return w(),I("g",{key:p.id,class:ne(["action",{selected:((N=e.selectedAction)==null?void 0:N.id)===p.id}]),transform:`translate( + ${(-a(i)-30)*Math.sin(((e.actions.length-1)/2-b)*a(l))}, + ${(a(i)+30)*Math.cos(((e.actions.length-1)/2-b)*a(l))} + )`,onMousedown:_=>u(_,p),onTouchstart:_=>u(_,p),onMouseup:_=>d(_,p),onTouchend:We(_=>d(_,p),["stop"])},[f("circle",{fill:a(H)(p.fillColor,e.node),r:"20","stroke-width":((k=e.selectedAction)==null?void 0:k.id)===p.id?4:0,stroke:a(r)},null,8,ls),f("text",{fill:a(s),class:"material-icons"},R(a(H)(p.icon,e.node)),9,us)],42,os)}),128))])):V("",!0)]),_:1}))}});var ds=X(cs,[["__scopeId","data-v-ffe504c4"]]);const fs=["transform"],ms={key:0},gs=["r","fill","stroke"],hs=["r","fill","stroke"],ps=["r","fill"],vs=["r","stroke-dasharray","stroke-dashoffset","stroke"],bs={key:1,transform:"rotate(45, 0, 0)"},_s=["width","height","transform","fill","stroke"],ys=["width","height","transform","fill","stroke"],ws=["width","height","transform","fill"],Ns=["width","height","transform","stroke-dasharray","stroke-dashoffset","stroke"],Ss=["fill"],Cs={key:0},Ms=["fill","y"],ks=["fill","y"],xs=W({__name:"BoardNode",props:{node:null,nodeType:null,dragging:null,dragged:null,hasDragged:{type:Boolean},receivingNode:{type:Boolean},selectedNode:null,selectedAction:null},emits:["mouseDown","endDragging"],setup(e,{emit:t}){const n=e,i=Math.sqrt(2),r=de(n),s=$(()=>a(r.selectedNode)===a(r.node)),l=$(()=>H(r.nodeType.value.draggable,a(r.node)));ke(l,F=>{const j=a(r.node);a(r.dragging)===j&&!F&&t("endDragging",j.id)});const u=$(()=>{var j;const F=a(r.node);return(j=H(r.nodeType.value.actions,F))==null?void 0:j.filter(be=>Kt(H(be.visibility,F)))}),d=$(()=>{var j;const F=a(r.node);if(H(r.nodeType.value.draggable,F)&&((j=a(r.dragging))==null?void 0:j.id)===F.id&&a(r.dragged)!=null){const{x:be,y:Ie}=a(r.dragged);return{x:F.position.x+Math.round(be/25)*25,y:F.position.y+Math.round(Ie/25)*25}}return F.position}),h=$(()=>H(r.nodeType.value.shape,a(r.node))),v=$(()=>H(r.nodeType.value.title,a(r.node))),p=$(()=>H(r.nodeType.value.label,a(r.node))),b=$(()=>H(r.nodeType.value.size,a(r.node))),N=$(()=>{var F;return(F=H(r.nodeType.value.progress,a(r.node)))!=null?F:0}),k=$(()=>ye[Z.theme].variables["--background"]),_=$(()=>{var F;return(F=H(r.nodeType.value.outlineColor,a(r.node)))!=null?F:ye[Z.theme].variables["--outline"]}),E=$(()=>{var F;return(F=H(r.nodeType.value.fillColor,a(r.node)))!=null?F:ye[Z.theme].variables["--raised-background"]}),B=$(()=>H(r.nodeType.value.progressColor,a(r.node))),y=$(()=>{var F;return(F=H(r.nodeType.value.titleColor,a(r.node)))!=null?F:ye[Z.theme].variables["--foreground"]}),M=$(()=>H(r.nodeType.value.progressDisplay,a(r.node))),D=$(()=>a(r.dragging)!=null&&a(r.hasDragged)&&H(r.nodeType.value.canAccept,a(r.node)));function ae(F){t("mouseDown",F,r.node.value.id,l.value)}function Y(F){var j,be,Ie;(j=r.hasDragged)!=null&&j.value||((Ie=(be=r.nodeType.value).onClick)==null||Ie.call(be,r.node.value),F.stopPropagation())}return(F,j)=>{var be,Ie;return w(),I("g",{class:ne(["boardnode",{[e.node.type]:!0,isSelected:a(s),isDraggable:a(l)}]),style:ve({opacity:((be=e.dragging)==null?void 0:be.id)===e.node.id&&e.hasDragged?.5:1}),transform:`translate(${a(d).x},${a(d).y})`},[x(ds,{actions:(Ie=a(u))!=null?Ie:[],"is-selected":a(s),node:e.node,"node-type":e.nodeType},null,8,["actions","is-selected","node","node-type"]),f("g",{class:"node-container",onMousedown:ae,onTouchstartPassive:ae,onMouseup:Y,onTouchendPassive:Y},[a(h)===a(it).Circle?(w(),I("g",ms,[a(D)?(w(),I("circle",{key:0,class:"receiver",r:a(b)+8,fill:a(k),stroke:e.receivingNode?"#0F0":"#0F03","stroke-width":2},null,8,gs)):V("",!0),f("circle",{class:"body",r:a(b),fill:a(E),stroke:a(_),"stroke-width":4},null,8,hs),a(M)===a(nt).Fill?(w(),I("circle",{key:1,class:"progress progressFill",r:Math.max(a(b)*a(N)-2,0),fill:a(B)},null,8,ps)):(w(),I("circle",{key:2,r:a(b)+4.5,class:"progress progressRing",fill:"transparent","stroke-dasharray":(a(b)+4.5)*2*Math.PI,"stroke-width":5,"stroke-dashoffset":(a(b)+4.5)*2*Math.PI-a(N)*(a(b)+4.5)*2*Math.PI,stroke:a(B)},null,8,vs))])):a(h)===a(it).Diamond?(w(),I("g",bs,[a(D)?(w(),I("rect",{key:0,class:"receiver",width:a(b)*a(i)+16,height:a(b)*a(i)+16,transform:`translate(${-(a(b)*a(i)+16)/2}, ${-(a(b)*a(i)+16)/2})`,fill:a(k),stroke:e.receivingNode?"#0F0":"#0F03","stroke-width":2},null,8,_s)):V("",!0),f("rect",{class:"body",width:a(b)*a(i),height:a(b)*a(i),transform:`translate(${-a(b)*a(i)/2}, ${-a(b)*a(i)/2})`,fill:a(E),stroke:a(_),"stroke-width":4},null,8,ys),a(M)===a(nt).Fill?(w(),I("rect",{key:1,class:"progress progressFill",width:Math.max(a(b)*a(i)*a(N)-2,0),height:Math.max(a(b)*a(i)*a(N)-2,0),transform:`translate(${-Math.max(a(b)*a(i)*a(N)-2,0)/2}, ${-Math.max(a(b)*a(i)*a(N)-2,0)/2})`,fill:a(B)},null,8,ws)):(w(),I("rect",{key:2,class:"progress progressDiamond",width:a(b)*a(i)+9,height:a(b)*a(i)+9,transform:`translate(${-(a(b)*a(i)+9)/2}, ${-(a(b)*a(i)+9)/2})`,fill:"transparent","stroke-dasharray":(a(b)*a(i)+9)*4,"stroke-width":5,"stroke-dashoffset":(a(b)*a(i)+9)*4-a(N)*(a(b)*a(i)+9)*4,stroke:a(B)},null,8,Ns))])):V("",!0),f("text",{fill:a(y),class:"node-title"},R(a(v)),9,Ss)],32),x(Ge,{name:"fade",appear:""},{default:T(()=>[a(p)?(w(),I("g",Cs,[f("text",{fill:a(p).color||a(y),class:ne(["node-title",{pulsing:a(p).pulsing}]),y:-a(b)-20},R(a(p).text),11,Ms)])):V("",!0)]),_:1}),x(Ge,{name:"fade",appear:""},{default:T(()=>[a(s)&&e.selectedAction?(w(),I("text",{key:0,fill:a(y),class:"node-title",y:a(b)+75},"Tap again to confirm",8,ks)):V("",!0)]),_:1})],14,fs)}}});var Is=X(xs,[["__scopeId","data-v-0019a534"]]);const $s={class:"stage",width:"100%",height:"100%"},Es={class:"g1"},Fs=W({__name:"Board",props:{nodes:null,types:null,state:null,visibility:null,width:null,height:null,style:null,classes:null,links:null,selectedAction:null,selectedNode:null,mousePosition:null},setup(e){const n=de(e),i=P({x:0,y:0}),r=P({x:0,y:0}),s=P(null),l=P(!1),u=P(null),d=$(()=>s.value==null?void 0:n.nodes.value.find(_=>_.id===s.value)),h=$(()=>{const _=n.nodes.value.slice();if(d.value){const E=_.splice(_.indexOf(d.value),1)[0];_.push(E)}return _}),v=$(()=>{const _=d.value;if(_==null)return null;const E={x:_.position.x+r.value.x,y:_.position.y+r.value.y};let B=Number.MAX_VALUE;return n.nodes.value.reduce((y,M)=>{if(M.id===_.id)return y;const D=n.types.value[M.type];if(!H(D.canAccept,M))return y;const Y=Math.pow(E.x-M.position.x,2)+Math.pow(E.y-M.position.y,2);let F=H(D.size,M);return Y>B||Y>F*F?y:(B=Y,M)},null)});function p(_){_.setTransformOrigin(null),_.moveTo(u.value.$el.clientWidth/2,u.value.$el.clientHeight/2)}function b(_,E=null,B=!1){if(s.value==null){_.preventDefault(),_.stopPropagation();let y,M;if("touches"in _)if(_.touches.length===1)y=_.touches[0].clientX,M=_.touches[0].clientY;else return;else y=_.clientX,M=_.clientY;i.value={x:y,y:M},r.value={x:0,y:0},l.value=!1,B&&(s.value=E)}E!=null&&(n.state.value.selectedNode=null,n.state.value.selectedAction=null)}function N(_){const{x:E,y:B,scale:y}=u.value.panZoomInstance.getTransform();let M,D;if("touches"in _)if(_.touches.length===1)M=_.touches[0].clientX,D=_.touches[0].clientY;else{k(s.value),n.mousePosition.value=null;return}else M=_.clientX,D=_.clientY;n.mousePosition.value={x:(M-E)/y,y:(D-B)/y},r.value={x:r.value.x+(M-i.value.x)/y,y:r.value.y+(D-i.value.y)/y},i.value={x:M,y:D},(Math.abs(r.value.x)>10||Math.abs(r.value.y)>10)&&(l.value=!0),s.value!=null&&(_.preventDefault(),_.stopPropagation())}function k(_){var E,B;if(s.value!=null&&s.value===_&&d.value!=null){d.value.position.x+=Math.round(r.value.x/25)*25,d.value.position.y+=Math.round(r.value.y/25)*25;const y=n.nodes.value;y.push(y.splice(y.indexOf(d.value),1)[0]),v.value&&((B=(E=n.types.value[v.value.type]).onDrop)==null||B.call(E,v.value,d.value)),s.value=null}else l.value||(n.state.value.selectedNode=null,n.state.value.selectedAction=null)}return(_,E)=>{const B=zt("panZoom");return a(Kt)(e.visibility)?(w(),U(B,{key:0,style:ve([{width:e.width,height:e.height},e.style]),class:ne(e.classes),selector:".g1",options:{initialZoom:1,minZoom:.1,maxZoom:10,zoomDoubleClickSpeed:1},ref_key:"stage",ref:u,onInit:p,onMousemove:N,onTouchmove:N,onMousedown:E[0]||(E[0]=y=>b(y)),onTouchstart:E[1]||(E[1]=y=>b(y)),onMouseup:E[2]||(E[2]=()=>k(s.value)),onTouchendPassive:E[3]||(E[3]=()=>k(s.value)),onMouseleave:E[4]||(E[4]=()=>k(s.value))},{default:T(()=>[(w(),I("svg",$s,[f("g",Es,[x(Pt,{name:"link",appear:""},{default:T(()=>[(w(!0),I(ce,null,ct(a(e.links)||[],y=>(w(),I("g",{key:`${y.startNode.id}-${y.endNode.id}`},[x(as,{link:y},null,8,["link"])]))),128))]),_:1}),x(Pt,{name:"grow",duration:500,appear:""},{default:T(()=>[(w(!0),I(ce,null,ct(a(h),y=>{var M;return w(),I("g",{key:y.id,style:{"transition-duration":"0s"}},[x(Is,{node:y,nodeType:e.types[y.type],dragging:a(d),dragged:a(d)===y?r.value:void 0,hasDragged:l.value,receivingNode:((M=a(v))==null?void 0:M.id)===y.id,selectedNode:a(e.selectedNode),selectedAction:a(e.selectedAction),onMouseDown:b,onEndDragging:k},null,8,["node","nodeType","dragging","dragged","hasDragged","receivingNode","selectedNode","selectedAction"])])}),128))]),_:1})])]))]),_:1},8,["style","class","options"])):V("",!0)}}});oe.on("setupVue",e=>$n.install(e));const pn=Symbol("Board");var nt=(e=>(e.Outline="Outline",e.Fill="Fill",e))(nt||{}),it=(e=>(e.Circle="Circle",e.Diamond="Triangle",e))(it||{});function Ts(e){const t=Et({nodes:[],selectedNode:null,selectedAction:null},!1);return tn(n=>{const i=e.call(n,n);i.id=Fi("board-"),i.type=pn,i[xt]=Fs,i.state?(tr(t),z(i,"state")):(t[tt]={nodes:i.startNodes().map((s,l)=>(s.id=l,s)),selectedNode:null,selectedAction:null},i.state=t),i.nodes=$(()=>a(r.state).nodes),i.selectedNode=$(()=>r.nodes.value.find(s=>s.id===a(r.state).selectedNode)||null),i.selectedAction=$(()=>{const s=r.selectedNode.value;if(s==null)return null;const l=r.types[s.type];return l.actions==null?null:l.actions.find(u=>u.id===a(r.state).selectedAction)||null}),i.mousePosition=P(null),i.links?z(i,"links"):i.links=$(()=>r.selectedAction.value==null?null:r.selectedAction.value.links&&r.selectedNode.value?H(r.selectedAction.value.links,r.selectedNode.value):null),z(i,"visibility"),ie(i,"visibility",Nt.Visible),z(i,"width"),ie(i,"width","100%"),z(i,"height"),ie(i,"height","100%"),z(i,"classes"),z(i,"style");for(const s in i.types){const l=i.types[s];if(z(l,"title"),z(l,"label"),z(l,"size"),ie(l,"size",50),z(l,"draggable"),ie(l,"draggable",!1),z(l,"shape"),ie(l,"shape","Circle"),z(l,"canAccept"),ie(l,"canAccept",!1),z(l,"progress"),z(l,"progressDisplay"),ie(l,"progressDisplay","Fill"),z(l,"progressColor"),ie(l,"progressColor","none"),z(l,"fillColor"),z(l,"outlineColor"),z(l,"titleColor"),z(l,"actionDistance"),ie(l,"actionDistance",Math.PI/6),l.nodes=$(()=>a(r.state).nodes.filter(u=>u.type===s)),ie(l,"onClick",function(u){a(r.state).selectedNode=u.id}),l.actions)for(const u of l.actions)z(u,"visibility"),ie(u,"visibility",Nt.Visible),z(u,"icon"),z(u,"fillColor"),z(u,"tooltip"),z(u,"links")}i[It]=function(){const{nodes:s,types:l,state:u,visibility:d,width:h,height:v,style:p,classes:b,links:N,selectedAction:k,selectedNode:_,mousePosition:E}=this;return{nodes:s,types:l,state:u,visibility:d,width:h,height:v,style:a(p),classes:b,links:N,selectedAction:k,selectedNode:_,mousePosition:E}};const r=i;return r})}function H(e,t){return mt(e)?e(t):a(e)}function Ps(e){let t=0;return e.nodes.value.forEach(n=>{n.id>=t&&(t=n.id+1)}),t}const Ke={};oe.on("addLayer",e=>{const t=Ti(e,pn);Ke[e.id]=e.on("postUpdate",n=>{t.forEach(i=>{Object.values(i.types).forEach(r=>r.nodes.value.forEach(s=>{var l;return(l=r.update)==null?void 0:l.call(r,s,n)}))})})});oe.on("removeLayer",e=>{var t;(t=Ke[e.id])==null||t.call(Ke),Ke[e.id]=void 0});const Vs=W({__name:"Sticky",setup(e){const t=P("0"),n=new ResizeObserver(r),i=rt(null);function r(){let s=i.value;if(s==null)return;let l=0;for(;s.previousSibling;){const u=s.previousSibling;u.dataset&&"vSticky"in u.dataset&&(l+=u.offsetHeight),s=u}t.value=l+"px"}return Ue(r),document.fonts.ready.then(r),Ct(()=>{var l;const s=(l=i.value)==null?void 0:l.parentElement;s&&n.observe(s)}),(s,l)=>(w(),I("div",{class:"sticky",style:ve({top:t.value}),ref_key:"element",ref:i,"data-v-sticky":""},[Me(s.$slots,"default",{},void 0,!0)],4))}});var Ds=X(Vs,[["__scopeId","data-v-cccac690"]]);function Os(e,t="points",n=0,i=void 0){const r=te(e)?e:Et(e);if(r.displayName=t,r.precision=n,r.small=i,!te(e)){const s=r[Ce];s.displayName=t,s.precision=n,s.small=i}return r}new o("10^^8");new o("1e100");function Ls(e,t){const n=t!=null?t:e.value;return o.eq(e.precision,0)?ft(e.small?n:o.floor(n)):pt(n,e.precision,e.small)}const As=W({__name:"Resource",props:{resource:null,color:null},setup(e){const t=e,n=$(()=>Ls(t.resource));return(i,r)=>(w(),I("h2",{style:ve({color:e.color,"text-shadow":"0px 0px 10px "+e.color})},R(a(n)),5))}});const qs={class:"main-display"},Bs={key:0},Rs={key:1},zs=W({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const n=de(e),i=P(null),r=at(n.effectDisplay),s=$(()=>o.lt(n.resource.value,"1e1000"));return(l,u)=>(w(),U(Ds,null,{default:T(()=>{var d,h,v,p;return[f("div",{class:ne(["main-display-container",(d=e.classes)!=null?d:{}]),style:ve([{height:`${((v=(h=i.value)==null?void 0:h.$el.clientHeight)!=null?v:0)+50}px`},(p=e.style)!=null?p:{}])},[f("div",qs,[a(s)?(w(),I("span",Bs,"You have ")):V("",!0),x(As,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),A(" "+R(e.resource.displayName),1),a(r)?(w(),I("span",Rs,[A(", "),(w(),U(he(a(r)),{ref_key:"effectRef",ref:i},null,512))])):V("",!0)])],6)]}),_:1}))}}),vn=o.ln(10);function Je(e){return e}function Us(e,t){if(C(t))return t.invert(o.neg(e));throw new Error("Could not invert due to no input being a variable")}function js(e,t){if(C(t))return S.neg(t.getIntegralFormula(e));throw new Error("Could not integrate due to no input being a variable")}function Ws(e){return S.neg(e)}function Gs(e,t,n){if(C(t))return t.invert(o.sub(e,K(n)));if(C(n))return n.invert(o.sub(e,K(t)));throw new Error("Could not invert due to no input being a variable")}function Zs(e,t,n){var i,r;if(C(t)){const s=t.getIntegralFormula(e);return S.times(n,(i=t.innermostVariable)!=null?i:0).add(s)}else if(C(n)){const s=n.getIntegralFormula(e);return S.times(t,(r=n.innermostVariable)!=null?r:0).add(s)}throw new Error("Could not integrate due to no input being a variable")}function Hs(e,t,n){if(C(t)){const i=t.getIntegralFormula(e);return S.add(i,n)}else if(C(n)){const i=n.getIntegralFormula(e);return S.add(i,t)}throw new Error("Could not integrate due to no input being a variable")}function Ys(e,t,n){if(C(t))return t.invert(o.add(e,K(n)));if(C(n))return n.invert(o.sub(K(t),e));throw new Error("Could not invert due to no input being a variable")}function Ks(e,t,n){var i,r;if(C(t)){const s=t.getIntegralFormula(e);return S.sub(s,S.times(n,(i=t.innermostVariable)!=null?i:0))}else if(C(n)){const s=n.getIntegralFormula(e);return S.times(t,(r=n.innermostVariable)!=null?r:0).sub(s)}throw new Error("Could not integrate due to no input being a variable")}function Js(e,t,n){if(C(t)){const i=t.getIntegralFormula(e);return S.sub(i,n)}else if(C(n)){const i=n.getIntegralFormula(e);return S.sub(i,t)}throw new Error("Could not integrate due to no input being a variable")}function Xs(e,t,n){if(C(t))return t.invert(o.div(e,K(n)));if(C(n))return n.invert(o.div(e,K(t)));throw new Error("Could not invert due to no input being a variable")}function Qs(e,t,n){if(C(t)){const i=t.getIntegralFormula(e);return S.times(i,n)}else if(C(n)){const i=n.getIntegralFormula(e);return S.times(i,t)}throw new Error("Could not integrate due to no input being a variable")}function eo(e,t,n){if(C(t))return S.div(e,n);if(C(n))return S.div(e,t);throw new Error("Could not apply substitution due to no input being a variable")}function to(e,t,n){if(C(t))return t.invert(o.mul(e,K(n)));if(C(n))return n.invert(o.div(K(t),e));throw new Error("Could not invert due to no input being a variable")}function no(e,t,n){if(C(t)){const i=t.getIntegralFormula(e);return S.div(i,n)}else if(C(n)){const i=n.getIntegralFormula(e);return S.div(t,i)}throw new Error("Could not integrate due to no input being a variable")}function io(e,t,n){if(C(t))return S.mul(e,n);if(C(n))return S.mul(e,t);throw new Error("Could not apply substitution due to no input being a variable")}function ro(e,t){if(C(t))return t.invert(o.recip(e));throw new Error("Could not invert due to no input being a variable")}function ao(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.ln(n)}throw new Error("Could not integrate due to no input being a variable")}function so(e,t){if(C(t))return t.invert(o.pow10(e));throw new Error("Could not invert due to no input being a variable")}function oo(e){return o.ln(e).sub(1).times(e).div(vn)}function lo(e,t){if(C(t)){const n=vn.times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}throw new Error("Could not invert due to no input being a variable")}function uo(e,t){if(C(t))return new S({inputs:[t.getIntegralFormula(e)],evaluate:oo,invert:lo});throw new Error("Could not integrate due to no input being a variable")}function co(e,t,n){if(C(t))return t.invert(o.pow(K(n),e));if(C(n))return n.invert(o.root(K(t),e));throw new Error("Could not invert due to no input being a variable")}function fo(e,t){return o.ln(e).sub(1).times(e).div(o.ln(t))}function mo(e,t,n){if(C(t)){const i=o.ln(K(n)).times(e);return t.invert(i.div(i.div(Math.E).lambertw()))}throw new Error("Could not invert due to no input being a variable")}function go(e,t,n){if(C(t))return new S({inputs:[t.getIntegralFormula(e),n],evaluate:fo,invert:mo});throw new Error("Could not integrate due to no input being a variable")}function ho(e,t){if(C(t))return t.invert(o.pow(2,e));throw new Error("Could not invert due to no input being a variable")}function po(e){return o.ln(e).sub(1).times(e).div(o.ln(2))}function vo(e,t){if(C(t)){const n=o.ln(2).times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}throw new Error("Could not invert due to no input being a variable")}function bo(e,t){if(C(t))return new S({inputs:[t.getIntegralFormula(e)],evaluate:po,invert:vo});throw new Error("Could not integrate due to no input being a variable")}function _o(e,t){if(C(t))return t.invert(o.exp(e));throw new Error("Could not invert due to no input being a variable")}function yo(e){return o.ln(e).sub(1).times(e)}function wo(e,t){if(C(t))return t.invert(o.div(e,o.div(e,Math.E).lambertw()));throw new Error("Could not invert due to no input being a variable")}function No(e,t){if(C(t))return new S({inputs:[t.getIntegralFormula(e)],evaluate:yo,invert:wo});throw new Error("Could not integrate due to no input being a variable")}function So(e,t,n){if(C(t))return t.invert(o.root(e,K(n)));if(C(n))return n.invert(o.ln(e).div(o.ln(K(t))));throw new Error("Could not invert due to no input being a variable")}function Co(e,t,n){if(C(t)){const i=t.getIntegralFormula(e),r=S.add(n,1);return S.pow(i,r).div(r)}else if(C(n)){const i=n.getIntegralFormula(e);return S.pow(t,i).div(S.ln(t))}throw new Error("Could not integrate due to no input being a variable")}function Mo(e,t){if(C(t))return t.invert(o.root(e,10));throw new Error("Could not invert due to no input being a variable")}function ko(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.pow10(n).div(S.ln(10))}throw new Error("Could not integrate due to no input being a variable")}function xo(e,t,n){if(C(t))return t.invert(o.ln(e).div(K(n)));if(C(n))return n.invert(o.root(K(t),e));throw new Error("Could not invert due to no input being a variable")}function Io(e,t,n){if(C(t)){const i=t.getIntegralFormula(e);return S.pow(n,i).div(S.ln(n))}else if(C(n)){const i=n.getIntegralFormula(e),r=S.add(t,1);return S.pow(i,r).div(r)}throw new Error("Could not integrate due to no input being a variable")}function $o(e,t,n){if(C(t))return t.invert(o.root(e,o.recip(K(n))));if(C(n))return n.invert(o.ln(K(t)).div(o.ln(e)));throw new Error("Could not invert due to no input being a variable")}function Eo(e,t,n){if(C(t)){const i=t.getIntegralFormula(e);return S.pow(i,S.recip(n).add(1)).times(n).div(S.add(n,1))}throw new Error("Could not integrate due to no input being a variable")}function Fo(e,t){if(C(t))return t.invert(o.ln(e));throw new Error("Could not invert due to no input being a variable")}function To(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.exp(n)}throw new Error("Could not integrate due to no input being a variable")}function Po(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){const i=o.minabs(t,1e308).toNumber();return o.tetrate(e,i,n)}function Vo(e,t,n,i){if(C(t))return t.invert(o.ssqrt(e));throw new Error("Could not invert due to no input being a variable")}function Do(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){const i=o.minabs(t,1e308).toNumber();return o.iteratedexp(e,i,new o(n))}function Oo(e,t,n,i){if(C(t))return t.invert(o.iteratedlog(e,Math.E,o.minabs(1e308,K(n)).toNumber()));throw new Error("Could not invert due to no input being a variable")}function Lo(e,t=10,n=2){const i=o.minabs(n,1e308).toNumber();return o.iteratedlog(e,t,i)}function Ao(e,t=10){const n=o.minabs(t,1e308).toNumber();return o.slog(e,n)}function qo(e,t,n){if(C(t))return t.invert(o.tetrate(e,o.minabs(1e308,K(n)).toNumber()));throw new Error("Could not invert due to no input being a variable")}function Bo(e,t,n){const i=o.minabs(t,1e308).toNumber();return o.layeradd(e,i,n)}function Ro(e,t,n,i){if(C(t))return t.invert(o.layeradd(e,o.minabs(1e308,K(n)).negate().toNumber()));throw new Error("Could not invert due to no input being a variable")}function zo(e,t){if(C(t))return t.invert(o.pow(Math.E,e).times(e));throw new Error("Could not invert due to no input being a variable")}function Uo(e,t){if(C(t))return t.invert(o.tetrate(e,2));throw new Error("Could not invert due to no input being a variable")}function jo(e,t,n){const i=o.minabs(t,1e308).toNumber();return o.pentate(e,i,n)}function Wo(e,t){if(C(t))return t.invert(o.asin(e));throw new Error("Could not invert due to no input being a variable")}function Go(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.cos(n).neg()}throw new Error("Could not integrate due to no input being a variable")}function Zo(e,t){if(C(t))return t.invert(o.acos(e));throw new Error("Could not invert due to no input being a variable")}function Ho(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.sin(n)}throw new Error("Could not integrate due to no input being a variable")}function Yo(e,t){if(C(t))return t.invert(o.atan(e));throw new Error("Could not invert due to no input being a variable")}function Ko(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.cos(n).ln().neg()}throw new Error("Could not integrate due to no input being a variable")}function Jo(e,t){if(C(t))return t.invert(o.sin(e));throw new Error("Could not invert due to no input being a variable")}function Xo(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.asin(n).times(n).add(S.sqrt(S.sub(1,S.pow(n,2))))}throw new Error("Could not integrate due to no input being a variable")}function Qo(e,t){if(C(t))return t.invert(o.cos(e));throw new Error("Could not invert due to no input being a variable")}function el(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.acos(n).times(n).sub(S.sqrt(S.sub(1,S.pow(n,2))))}throw new Error("Could not integrate due to no input being a variable")}function tl(e,t){if(C(t))return t.invert(o.tan(e));throw new Error("Could not invert due to no input being a variable")}function nl(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.atan(n).times(n).sub(S.ln(S.pow(n,2).add(1)).div(2))}throw new Error("Could not integrate due to no input being a variable")}function il(e,t){if(C(t))return t.invert(o.asinh(e));throw new Error("Could not invert due to no input being a variable")}function rl(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.cosh(n)}throw new Error("Could not integrate due to no input being a variable")}function al(e,t){if(C(t))return t.invert(o.acosh(e));throw new Error("Could not invert due to no input being a variable")}function sl(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.sinh(n)}throw new Error("Could not integrate due to no input being a variable")}function ol(e,t){if(C(t))return t.invert(o.atanh(e));throw new Error("Could not invert due to no input being a variable")}function ll(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.cosh(n).ln()}throw new Error("Could not integrate due to no input being a variable")}function ul(e,t){if(C(t))return t.invert(o.sinh(e));throw new Error("Could not invert due to no input being a variable")}function cl(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.asinh(n).times(n).sub(S.pow(n,2).add(1).sqrt())}throw new Error("Could not integrate due to no input being a variable")}function dl(e,t){if(C(t))return t.invert(o.cosh(e));throw new Error("Could not invert due to no input being a variable")}function fl(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.acosh(n).times(n).sub(S.add(n,1).sqrt().times(S.sub(n,1).sqrt()))}throw new Error("Could not integrate due to no input being a variable")}function ml(e,t){if(C(t))return t.invert(o.tanh(e));throw new Error("Could not invert due to no input being a variable")}function gl(e,t){if(C(t)){const n=t.getIntegralFormula(e);return S.atanh(n).times(n).add(S.sub(1,S.pow(n,2)).ln().div(2))}throw new Error("Could not integrate due to no input being a variable")}function He(e){return(t,n)=>new S({inputs:[t,n],evaluate:e,invert:Je})}function C(e){return e instanceof S&&e.hasVariable()}function K(e,t){return e instanceof S?e.evaluate(t):a(e)}function hl(){return S.pow(this,2).div(2)}function pl(){return this}const m=class{constructor(e){this.negate=this.neg,this.negated=this.neg,this.sgn=this.sign,this.plus=this.add,this.subtract=this.sub,this.minus=this.sub,this.multiply=this.mul,this.times=this.mul,this.divide=this.div,this.divideBy=this.div,this.dividedBy=this.div,this.reciprocal=this.recip,this.reciprocate=this.recip,this.logarithm=this.log;let t;"inputs"in e&&(e.inputs=e.inputs.map(n=>typeof n=="object"&&Ce in n?n[Ce]:n)),"variable"in e?(typeof e.variable=="object"&&Ce in e.variable&&(e.variable=e.variable[Ce]),t=this.setupVariable(e)):"evaluate"in e?t=this.setupFormula(e):t=this.setupConstant(e),this.inputs=t.inputs,this.internalVariables=t.internalVariables,this.innermostVariable=t.innermostVariable,this.internalEvaluate=t.internalEvaluate,this.internalInvert=t.internalInvert,this.internalIntegrate=t.internalIntegrate,this.internalIntegrateInner=t.internalIntegrateInner,this.applySubstitution=t.applySubstitution}setupVariable({variable:e}){return{inputs:[e],internalVariables:1,innermostVariable:e,internalIntegrate:hl,internalIntegrateInner:pl,applySubstitution:Je}}setupConstant({inputs:e}){if(e.length!==1)throw new Error("Evaluate function is required if inputs is not length 1");return{inputs:e,internalVariables:0}}setupFormula(e){const{inputs:t,evaluate:n,invert:i,integrate:r,integrateInner:s,applySubstitution:l}=e,u=t.reduce((v,p)=>v+(p instanceof m?p.internalVariables:0),0),d=t.find(v=>v instanceof m&&v.hasVariable()),h=u===1?d==null?void 0:d.innermostVariable:void 0;return{inputs:t,internalEvaluate:n,internalInvert:i,internalIntegrate:r,internalIntegrateInner:s,applySubstitution:l,innermostVariable:h,internalVariables:u}}calculateConstantOfIntegration(){const e=this.getIntegralFormula().evaluate(1),t=o.add(this.evaluate(0),this.evaluate(1)).div(2);return o.sub(t,e)}isInvertible(){return this.hasVariable()&&(this.internalInvert!=null||this.internalEvaluate==null)}isIntegrable(){return this.hasVariable()&&this.internalIntegrate!=null}isIntegralInvertible(){return this.isIntegrable()?this.getIntegralFormula().isInvertible():!1}hasVariable(){return this.internalVariables===1}evaluate(e){var t,n,i;return(i=(n=(t=this.internalEvaluate)==null?void 0:t.call(this,...this.inputs.map(r=>K(r,e))))!=null?n:this.hasVariable()?e:null)!=null?i:K(this.inputs[0])}invert(e){if(this.internalInvert&&this.hasVariable())return this.internalInvert.call(this,e,...this.inputs);if(this.inputs.length===1&&this.hasVariable())return e;throw new Error("Cannot invert non-invertible formula")}evaluateIntegral(e){if(!this.isIntegrable())throw new Error("Cannot evaluate integral of formula without integral");return this.getIntegralFormula().evaluate(e)}invertIntegral(e){if(!this.isIntegrable()||!this.getIntegralFormula().isInvertible())throw new Error("Cannot invert integral of formula without invertible integral");return this.getIntegralFormula().invert(e)}getIntegralFormula(e){if(this.integralFormula!=null&&e==null)return this.integralFormula;if(e==null){if(this.applySubstitution==null){if(e=[],this.internalIntegrate==null)throw new Error("Cannot integrate formula with non-integrable operation");let t=this.internalIntegrate.call(this,e,...this.inputs);e.forEach(n=>t=n(t)),this.integralFormula=t}else if(this.internalIntegrate)this.integralFormula=this.internalIntegrate.call(this,void 0,...this.inputs);else if(this.inputs.length===1&&this.internalEvaluate==null&&this.hasVariable())this.integralFormula=this;else throw new Error("Cannot integrate formula without variable");return this.integralFormula}else{if(this.applySubstitution==null)throw new Error("Cannot have two complex operations in an integrable formula");if(e.push(t=>this.applySubstitution.call(this,t,...this.inputs)),this.internalIntegrateInner)return this.internalIntegrateInner.call(this,e,...this.inputs);if(this.internalIntegrate)return this.internalIntegrate.call(this,e,...this.inputs);if(this.inputs.length===1&&this.internalEvaluate==null&&this.hasVariable())return this;throw new Error("Cannot integrate formula without variable")}}equals(e){return this.inputs.length===e.inputs.length&&this.inputs.every((t,n)=>t instanceof m&&e.inputs[n]instanceof m?t.equals(e.inputs[n]):!(t instanceof m)&&!(e.inputs[n]instanceof m)&&o.eq(a(t),a(e.inputs[n])))&&this.internalEvaluate===e.internalEvaluate&&this.internalInvert===e.internalInvert&&this.internalIntegrate===e.internalIntegrate&&this.internalVariables===e.internalVariables}static constant(e){return new m({inputs:[e]})}static variable(e){return new m({variable:e})}static step(e,t,n){const i=P(0),r=n(m.variable(i)),s=qt(t);function l(d){return o.lt(d,a(s))?d:(i.value=o.sub(d,a(s)),o.add(r.evaluate(),a(s)))}function u(d,h){if(C(h))return o.gt(d,a(s))&&(d=o.add(r.invert(o.sub(d,a(s))),a(s))),h.invert(d);throw new Error("Could not invert due to no input being a variable")}return new m({inputs:[e],evaluate:l,invert:r.isInvertible()&&r.hasVariable()?u:void 0})}static if(e,t,n,i){const r=P(0),s=m.variable(r),l=n(s),u=i==null?void 0:i(s),d=qt(t);function h(p){return a(d)?(r.value=p,l.evaluate()):u?(r.value=p,u.evaluate()):p}function v(p,b){if(!C(b))throw new Error("Could not invert due to no input being a variable");return a(d)?b.invert(l.invert(p)):u?b.invert(u.invert(p)):b.invert(p)}return new m({inputs:[e],evaluate:h,invert:l.isInvertible()&&l.hasVariable()?v:void 0})}static conditional(e,t,n,i){return m.if(e,t,n,i)}static abs(e){return new m({inputs:[e],evaluate:o.abs})}static neg(e){return new m({inputs:[e],evaluate:o.neg,invert:Us,applySubstitution:Ws,integrate:js})}static sign(e){return new m({inputs:[e],evaluate:o.sign})}static round(e){return new m({inputs:[e],evaluate:o.round})}static floor(e){return new m({inputs:[e],evaluate:o.floor})}static ceil(e){return new m({inputs:[e],evaluate:o.ceil})}static trunc(e){return new m({inputs:[e],evaluate:o.trunc})}static add(e,t){return new m({inputs:[e,t],evaluate:o.add,invert:Gs,integrate:Zs,integrateInner:Hs,applySubstitution:Je})}static sub(e,t){return new m({inputs:[e,t],evaluate:o.sub,invert:Ys,integrate:Ks,integrateInner:Js,applySubstitution:Je})}static mul(e,t){return new m({inputs:[e,t],evaluate:o.mul,invert:Xs,integrate:Qs,applySubstitution:eo})}static div(e,t){return new m({inputs:[e,t],evaluate:o.div,invert:to,integrate:no,applySubstitution:io})}static recip(e){return new m({inputs:[e],evaluate:o.recip,invert:ro,integrate:ao})}static clamp(e,t,n){return new m({inputs:[e,t,n],evaluate:o.clamp,invert:Je})}static pLog10(e){return new m({inputs:[e],evaluate:o.pLog10})}static absLog10(e){return new m({inputs:[e],evaluate:o.absLog10})}static log10(e){return new m({inputs:[e],evaluate:o.log10,invert:so,integrate:uo})}static log(e,t){return new m({inputs:[e,t],evaluate:o.log,invert:co,integrate:go})}static log2(e){return new m({inputs:[e],evaluate:o.log2,invert:ho,integrate:bo})}static ln(e){return new m({inputs:[e],evaluate:o.ln,invert:_o,integrate:No})}static pow(e,t){return new m({inputs:[e,t],evaluate:o.pow,invert:So,integrate:Co})}static pow10(e){return new m({inputs:[e],evaluate:o.pow10,invert:Mo,integrate:ko})}static pow_base(e,t){return new m({inputs:[e,t],evaluate:o.pow_base,invert:xo,integrate:Io})}static root(e,t){return new m({inputs:[e,t],evaluate:o.root,invert:$o,integrate:Eo})}static factorial(e){return new m({inputs:[e],evaluate:o.factorial})}static gamma(e){return new m({inputs:[e],evaluate:o.gamma})}static lngamma(e){return new m({inputs:[e],evaluate:o.lngamma})}static exp(e){return new m({inputs:[e],evaluate:o.exp,invert:Fo,integrate:To})}static sqr(e){return m.pow(e,2)}static sqrt(e){return m.root(e,2)}static cube(e){return m.pow(e,3)}static cbrt(e){return m.root(e,3)}static tetrate(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){return new m({inputs:[e,t,n],evaluate:Po,invert:Vo})}static iteratedexp(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){return new m({inputs:[e,t,n],evaluate:Do,invert:Oo})}static iteratedlog(e,t=10,n=1){return new m({inputs:[e,t,n],evaluate:Lo})}static slog(e,t=10){return new m({inputs:[e,t],evaluate:Ao,invert:qo})}static layeradd10(e,t){return new m({inputs:[e,t],evaluate:o.layeradd10})}static layeradd(e,t,n=10){return new m({inputs:[e,t,n],evaluate:Bo,invert:Ro})}static lambertw(e){return new m({inputs:[e],evaluate:o.lambertw,invert:zo})}static ssqrt(e){return new m({inputs:[e],evaluate:o.ssqrt,invert:Uo})}static pentate(e,t=2,n=o.fromComponents_noNormalize(1,0,1)){return new m({inputs:[e,t,n],evaluate:jo})}static sin(e){return new m({inputs:[e],evaluate:o.sin,invert:Jo,integrate:Go})}static cos(e){return new m({inputs:[e],evaluate:o.cos,invert:Qo,integrate:Ho})}static tan(e){return new m({inputs:[e],evaluate:o.tan,invert:tl,integrate:Ko})}static asin(e){return new m({inputs:[e],evaluate:o.asin,invert:Wo,integrate:Xo})}static acos(e){return new m({inputs:[e],evaluate:o.acos,invert:Zo,integrate:el})}static atan(e){return new m({inputs:[e],evaluate:o.atan,invert:Yo,integrate:nl})}static sinh(e){return new m({inputs:[e],evaluate:o.sinh,invert:ul,integrate:rl})}static cosh(e){return new m({inputs:[e],evaluate:o.cosh,invert:dl,integrate:sl})}static tanh(e){return new m({inputs:[e],evaluate:o.tanh,invert:ml,integrate:ll})}static asinh(e){return new m({inputs:[e],evaluate:o.asinh,invert:il,integrate:cl})}static acosh(e){return new m({inputs:[e],evaluate:o.acosh,invert:al,integrate:fl})}static atanh(e){return new m({inputs:[e],evaluate:o.atanh,invert:ol,integrate:gl})}step(e,t){return m.step(this,e,t)}if(e,t){return m.if(this,e,t)}conditional(e,t){return m.if(this,e,t)}abs(){return m.abs(this)}neg(){return m.neg(this)}sign(){return m.sign(this)}round(){return m.round(this)}floor(){return m.floor(this)}ceil(){return m.ceil(this)}trunc(){return m.trunc(this)}add(e){return m.add(this,e)}sub(e){return m.sub(this,e)}mul(e){return m.mul(this,e)}div(e){return m.div(this,e)}recip(){return m.recip(this)}max(e){return m.max(this,e)}min(e){return m.min(this,e)}maxabs(e){return m.maxabs(this,e)}minabs(e){return m.minabs(this,e)}clamp(e,t){return m.clamp(this,e,t)}clampMin(e){return m.clampMin(this,e)}clampMax(e){return m.clampMax(this,e)}pLog10(){return m.pLog10(this)}absLog10(){return m.absLog10(this)}log10(){return m.log10(this)}log(e){return m.log(this,e)}log2(){return m.log2(this)}ln(){return m.ln(this)}pow(e){return m.pow(this,e)}pow10(){return m.pow10(this)}pow_base(e){return m.pow_base(this,e)}root(e){return m.root(this,e)}factorial(){return m.factorial(this)}gamma(){return m.gamma(this)}lngamma(){return m.lngamma(this)}exp(){return m.exp(this)}sqr(){return m.pow(this,2)}sqrt(){return m.root(this,2)}cube(){return m.pow(this,3)}cbrt(){return m.root(this,3)}tetrate(e=2,t=o.fromComponents_noNormalize(1,0,1)){return m.tetrate(this,e,t)}iteratedexp(e=2,t=o.fromComponents_noNormalize(1,0,1)){return m.iteratedexp(this,e,t)}iteratedlog(e=10,t=1){return m.iteratedlog(this,e,t)}slog(e=10){return m.slog(this,e)}layeradd10(e){return m.layeradd10(this,e)}layeradd(e,t){return m.layeradd(this,e,t)}lambertw(){return m.lambertw(this)}ssqrt(){return m.ssqrt(this)}pentate(e=2,t=o.fromComponents_noNormalize(1,0,1)){return m.pentate(this,e,t)}sin(){return m.sin(this)}cos(){return m.cos(this)}tan(){return m.tan(this)}asin(){return m.asin(this)}acos(){return m.acos(this)}atan(){return m.atan(this)}sinh(){return m.sinh(this)}cosh(){return m.cosh(this)}tanh(){return m.tanh(this)}asinh(){return m.asinh(this)}acosh(){return m.acosh(this)}atanh(){return m.atanh(this)}};let S=m;S.negate=m.neg;S.negated=m.neg;S.sgn=m.sign;S.plus=m.add;S.subtract=m.sub;S.minus=m.sub;S.multiply=m.mul;S.times=m.mul;S.divide=m.div;S.divideBy=m.div;S.dividedBy=m.div;S.reciprocal=m.recip;S.reciprocate=m.recip;S.max=He(o.max);S.min=He(o.min);S.minabs=He(o.minabs);S.maxabs=He(o.maxabs);S.clampMin=He(o.clampMin);S.clampMax=He(o.clampMax);S.logarithm=m.log;function Rt(e,t,n=!0,i){var s,l,u;let r=o.add(t,(s=a(e.innermostVariable))!=null?s:0);if(n){const d=r;r=r.sub(i!=null?i:10).clampMin((l=a(e.innermostVariable))!=null?l:0);let h=o.sub(e.evaluateIntegral(r),e.evaluateIntegral());if(d.gt(1e308))return h.add(o.sub(d,r).times(e.evaluate(r)));for(let v=r.toNumber();v({startNodes:()=>[{position:{x:0,y:0},type:"mine",state:0}],types:{mine:{shape:it.Diamond,size:50,title:"Mine",label:v=>v===h.selectedNode.value?null:{text:"Click me!"},progress:v=>v==h.selectedNode.value?new o(v.state).toNumber():0,progressDisplay:nt.Outline,progressColor:"var(--accent2)"},resource:{shape:it.Circle,size:50,title:v=>v.state.type,progress:v=>n(v.state.amount),progressDisplay:nt.Outline,progressColor:"var(--accent3)",draggable:!0}},style:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden"},links(){const v=h.nodes.value.find(p=>p.type==="mine");return Object.keys(i).map(p=>({startNode:v,endNode:s.value[p],stroke:"var(--accent3)",strokeWidth:5}))}})),s=$(()=>r.nodes.value.reduce((h,v)=>(v.type==="resource"&&(h[v.state.type]=v),h),{}));function l(h,v){let p=s.value[h];if(p==null){let b=0;b=r.nodes.value.filter(N=>N.position.y<50&&N.position.y>-50).reduce((N,k)=>Math.max(N,k.position.x+100),0),p={id:Ps(r),position:{x:b,y:0},type:"resource",state:{type:h,amount:v}},r.nodes.value.push(p)}else{const b=p.state;p.state={...b,amount:o.add(b.amount,v)}}}const u=Object.values(lt).reduce((h,v)=>h+v),d=Object.keys(lt);return this.on("preUpdate",h=>{var v;if(Object.keys(i).forEach(p=>{i[p]-=h,i[p]<=0&&delete i[p]}),((v=r.selectedNode.value)==null?void 0:v.type)==="mine"){const p=r.selectedNode.value,b=o.add(p.state,h),N=b.floor();p.state=o.sub(b,N);const k=N.div(u).floor();k.gt(0)&&d.forEach(E=>{l(E,o.times(lt[E],k)),i[E]=.3});const _=o.sub(N,k).toNumber();for(let E=0;E<_;E++){const B=Math.floor(Math.random()*u);let y=0;for(let M=0;Mx(ce,null,[L.devSpeed===0?x("div",null,[A("Game Paused")]):null,L.devSpeed!=null&&L.devSpeed!==0&&L.devSpeed!==1?x("div",null,[A("Dev Speed: "),pt(L.devSpeed),A("x")]):null,L.offlineTime!=null&&L.offlineTime!==0?x("div",null,[A("Offline Time: "),vt(L.offlineTime)]):null,x(zs,{resource:e},null),bt(r)]))}}),vl=e=>[bn],_n=$(()=>!1);function bl(e,t){}var _l=Object.freeze(Object.defineProperty({__proto__:null,main:bn,getInitialLayers:vl,hasWon:_n,fixOldSave:bl},Symbol.toStringTag,{value:"Module"}));const st=e=>(Le("data-v-4a50ce42"),e=e(),Ae(),e),yl={class:"game-over-modal-header"},wl=["src","alt"],Nl={class:"game-over-modal-title"},Sl=st(()=>f("h2",null,"Congratulations!",-1)),Cl={key:0},Ml=st(()=>f("br",null,null,-1)),kl=st(()=>f("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),xl=st(()=>f("br",null,null,-1)),Il=["href"],$l=st(()=>f("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),El=W({__name:"GameOverScreen",setup(e){const{title:t,logo:n,discordName:i,discordLink:r,versionNumber:s,versionTitle:l}=G,u=$(()=>vt(L.timePlayed)),d=$(()=>_n.value&&!L.keepGoing),h=Oe(L,"autosave");function v(){L.keepGoing=!0}function p(){Te(Re())}return(b,N)=>(w(),U(qe,{"model-value":a(d)},{header:T(()=>[f("div",yl,[a(n)?(w(),I("img",{key:0,class:"game-over-modal-logo",src:a(n),alt:a(t)},null,8,wl)):V("",!0),f("div",Nl,[Sl,f("h4",null,"You've beaten "+R(a(t))+" v"+R(a(s))+": "+R(a(l)),1)])])]),body:T(({shown:k})=>[k?(w(),I("div",Cl,[f("div",null,"It took you "+R(a(u))+" to beat the game.",1),Ml,kl,xl,f("div",null,[f("a",{href:a(r),class:"game-over-modal-discord-link"},[$l,A(" "+R(a(i)),1)],8,Il)]),x(_e,{title:"Autosave",modelValue:a(h),"onUpdate:modelValue":N[0]||(N[0]=_=>te(h)?h.value=_:null)},null,8,["modelValue"])])):V("",!0)]),footer:T(()=>[f("div",{class:"game-over-footer"},[f("button",{onClick:v,class:"button"},"Keep Going"),f("button",{onClick:p,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var Fl=X(El,[["__scopeId","data-v-4a50ce42"]]);const _t=e=>(Le("data-v-2776d67d"),e=e(),Ae(),e),Tl=_t(()=>f("div",{class:"nan-modal-header"},[f("h2",null,"NaN value detected!")],-1)),Pl={key:0},Vl=_t(()=>f("br",null,null,-1)),Dl=["href"],Ol=_t(()=>f("span",{class:"material-icons nan-modal-discord"},"discord",-1)),Ll=_t(()=>f("br",null,null,-1)),Al={class:"nan-footer"},ql=W({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:n}=G,i=P(!0),r=P(!0),s=Oe(Q,"hasNaN"),l=P(null);ke(s,b=>{b?(i.value=L.autosave,r.value=L.devSpeed===0):(L.autosave=i.value,L.devSpeed=r.value?0:null)});const u=$(()=>{var b;return(b=Q.NaNPath)==null?void 0:b.join(".")}),d=$(()=>Q.NaNPersistent!=null?Q.NaNPersistent.value:null);function h(){Q.NaNPersistent!=null&&(Q.NaNPersistent.value=new o(0),Q.hasNaN=!1)}function v(){Q.NaNPersistent&&(Q.NaNPersistent.value=new o(1),Q.hasNaN=!1)}function p(){Q.NaNPersistent&&(Q.NaNPersistent.value=new o(NaN),Q.hasNaN=!1)}return(b,N)=>(w(),I(ce,null,[x(qe,je({modelValue:a(s),"onUpdate:modelValue":N[4]||(N[4]=k=>te(s)?s.value=k:null)},b.$attrs),{header:T(()=>[Tl]),body:T(()=>[f("div",null,[A(' Attempted to assign "'+R(a(u))+'" to NaN',1),a(d)?(w(),I("span",Pl,R(" ")+"(previously "+R(a(pt)(a(d)))+")",1)):V("",!0),A(". Auto-saving has been "+R(i.value?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),Vl,f("div",null,[f("a",{href:a(n)||"https://discord.gg/yJ4fjnjU54",class:"nan-modal-discord-link"},[Ol,A(" "+R(a(t)||"The Paper Pilot Community"),1)],8,Dl)]),Ll,x(_e,{title:"Autosave",modelValue:i.value,"onUpdate:modelValue":N[0]||(N[0]=k=>i.value=k)},null,8,["modelValue"]),a(G).enablePausing?(w(),U(_e,{key:0,title:"Pause game",modelValue:r.value,"onUpdate:modelValue":N[1]||(N[1]=k=>r.value=k)},null,8,["modelValue"])):V("",!0)]),footer:T(()=>[f("div",Al,[f("button",{onClick:N[2]||(N[2]=k=>{var _;return(_=l.value)==null?void 0:_.open()}),class:"button"},"Open Saves Manager"),f("button",{onClick:h,class:"button"},"Set to 0"),f("button",{onClick:v,class:"button"},"Set to 1"),a(d)&&a(o).neq(a(d),0)&&a(o).neq(a(d),1)?(w(),I("button",{key:0,onClick:N[3]||(N[3]=k=>s.value=!1),class:"button"}," Set to previous ")):V("",!0),f("button",{onClick:p,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),x(gn,{ref_key:"savesManager",ref:l},null,512)],64))}});var Bl=X(ql,[["__scopeId","data-v-2776d67d"]]);const Rl={key:0,class:"tpsDisplay"},zl={key:0,class:"low"},Ul=W({__name:"TPS",setup(e){const t=$(()=>o.div(Q.lastTenTicks.length,Q.lastTenTicks.reduce((s,l)=>s+l,0))),n=P([]);St(()=>{n.value.push(Math.round(t.value.toNumber())),n.value.length>10&&(n.value=n.value.slice(1))});const i=$(()=>n.value.reduce((s,l)=>o.max(s,l),0)),r=$(()=>o.sub(t.value,i.value).gt(1));return(s,l)=>a(t).isNan()?V("",!0):(w(),I("div",Rl,[A(" TPS: "+R(a(ft)(a(t)))+" ",1),x(Ge,{name:"fade"},{default:T(()=>[a(r)?(w(),I("span",zl,R(a(ft)(a(i))),1)):V("",!0)]),_:1})]))}});var jl=X(Ul,[["__scopeId","data-v-46a3ed5b"]]);var Wl=W({__name:"App",setup(e){const t=G.useHeader,n=$(()=>ye[Z.theme].variables),i=Oe(Z,"showTPS"),r=$(()=>xe(le(()=>x(ce,null,[Ri.map(bt)]))));return(s,l)=>(w(),I(ce,null,[f("div",{id:"modal-root",style:ve(a(n))},null,4),f("div",{class:ne(["app",{useHeader:a(t)}]),style:ve(a(n))},[a(t)?(w(),U(hn,{key:0})):V("",!0),x(ns),a(a(i))?(w(),U(jl,{key:1})):V("",!0),x(Fl),x(Bl),(w(),U(he(a(r))))],6)],64))}});var Gl=X(Wl,[["__scopeId","data-v-41d15e5e"]]);oe.on("setupVue",e=>e.use(En));function Zl(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisteredSW:s,onRegisterError:l}=e;let u,d,h,v;const p=async(N=!0)=>{await h,N&&(u==null||u.addEventListener("controlling",k=>{k.isUpdate&&window.location.reload()})),await(v==null?void 0:v())};async function b(){if("serviceWorker"in navigator){const{Workbox:N,messageSW:k}=await Xe(()=>import("./workbox-window.4a8794bb.js"),[]);v=async()=>{d&&d.waiting&&await k(d.waiting,{type:"SKIP_WAITING"})},u=new N("./sw.js",{scope:"./",type:"classic"}),u.addEventListener("activated",_=>{_.isUpdate||i==null||i()});{const _=()=>{n==null||n()};u.addEventListener("waiting",_),u.addEventListener("externalwaiting",_)}u.register({immediate:t}).then(_=>{d=_,s?s("./sw.js",_):r==null||r(_)}).catch(_=>{l==null||l(_)})}}return h=b(),p}function Hl(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisteredSW:s,onRegisterError:l}=e,u=P(!1),d=P(!1);return{updateServiceWorker:Zl({immediate:t,onNeedRefresh(){u.value=!0,n==null||n()},onOfflineReady(){d.value=!0,i==null||i()},onRegistered:r,onRegisteredSW:s,onRegisterError:l}),offlineReady:d,needRefresh:u}}document.title=G.title;window.projInfo=G;if(G.id==="")throw new Error("Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json");requestAnimationFrame(async()=>{console.log(`%cMade in Profectus%c +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 Di();const{globalBus:e}=await Xe(()=>Promise.resolve().then(function(){return Pi}),void 0),{startGameLoop:t}=await Xe(()=>import("./gameLoop.9e3763f2.js"),["assets/gameLoop.9e3763f2.js","assets/@fontsource.f66d05e7.css","assets/vue.804e2479.js","assets/amator.1e5a40c8.js","assets/bezier-easing.a990b400.js","assets/@vue.6f8187b0.js","assets/nanoevents.1080beb7.js","assets/lz-string.dccec454.js","assets/vue-next-select.f5f69b1a.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.ce650350.js","assets/sortablejs.a0f68e5e.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-panzoom.89be130f.js","assets/panzoom.30c56ba6.js","assets/wheel.f2ae740f.js","assets/ngraph.events.083734c6.js","assets/vue-toastification.5231d1bd.js","assets/vue-toastification.4b5f8ac8.css"]),n=window.vue=Mn(Gl);e.emit("setupVue",n),n.mount("#app"),Ue(()=>{const i=Fn(),{updateServiceWorker:r}=Hl({onNeedRefresh(){i.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(){r()}})},onOfflineReady(){i.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(s){s&&setInterval(()=>s.update(),60*60*1e3)}})}),t()});export{o as D,Xe as _,Q as a,G as b,_l as c,oe as g,Oi as l,L as p,Z as s}; diff --git a/assets/lz-string.bfbf8ec3.js b/assets/lz-string.bfbf8ec3.js deleted file mode 100644 index 7e9994a..0000000 --- a/assets/lz-string.bfbf8ec3.js +++ /dev/null @@ -1 +0,0 @@ -var S=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function T(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}function U(h){if(h.__esModule)return h;var g=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(h).forEach(function(y){var m=Object.getOwnPropertyDescriptor(h,y);Object.defineProperty(g,y,m.get?m:{enumerable:!0,get:function(){return h[y]}})}),g}var j={exports:{}};(function(h){var g=function(){var y=String.fromCharCode,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",x={};function O(n,o){if(!x[n]){x[n]={};for(var s=0;s>>8,s[r*2+1]=p%256}return s},decompressFromUint8Array:function(n){if(n==null)return w.decompress(n);for(var o=new Array(n.length/2),s=0,r=o.length;s>1}else{for(i=1,r=0;r>1}d--,d==0&&(d=Math.pow(2,c),c++),delete _[u]}else for(i=p[u],r=0;r>1;d--,d==0&&(d=Math.pow(2,c),c++),p[A]=a++,u=String(v)}if(u!==""){if(Object.prototype.hasOwnProperty.call(_,u)){if(u.charCodeAt(0)<256){for(r=0;r>1}else{for(i=1,r=0;r>1}d--,d==0&&(d=Math.pow(2,c),c++),delete _[u]}else for(i=p[u],r=0;r>1;d--,d==0&&(d=Math.pow(2,c),c++)}for(i=2,r=0;r>1;for(;;)if(e=e<<1,f==o-1){l.push(s(e));break}else f++;return l.join("")},decompress:function(n){return n==null?"":n==""?null:w._decompress(n.length,32768,function(o){return n.charCodeAt(o)})},_decompress:function(n,o,s){var r=[],i=4,p=4,_=3,v="",A=[],u,d,a,c,l,e,f,t={val:s(0),position:o,index:1};for(u=0;u<3;u+=1)r[u]=u;for(a=0,l=Math.pow(2,2),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;switch(a){case 0:for(a=0,l=Math.pow(2,8),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;f=y(a);break;case 1:for(a=0,l=Math.pow(2,16),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;f=y(a);break;case 2:return""}for(r[3]=f,d=f,A.push(f);;){if(t.index>n)return"";for(a=0,l=Math.pow(2,_),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;switch(f=a){case 0:for(a=0,l=Math.pow(2,8),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;r[p++]=y(a),f=p-1,i--;break;case 1:for(a=0,l=Math.pow(2,16),e=1;e!=l;)c=t.val&t.position,t.position>>=1,t.position==0&&(t.position=o,t.val=s(t.index++)),a|=(c>0?1:0)*e,e<<=1;r[p++]=y(a),f=p-1,i--;break;case 2:return A.join("")}if(i==0&&(i=Math.pow(2,_),_++),r[f])v=r[f];else if(f===p)v=d+d.charAt(0);else return null;A.push(v),r[p++]=d+v.charAt(0),i--,d=v,i==0&&(i=Math.pow(2,_),_++)}}};return w}();h!=null?h.exports=g:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return g})})(j);var b=j.exports;export{b as L,T as a,S as c,U as g}; diff --git a/assets/lz-string.dccec454.js b/assets/lz-string.dccec454.js new file mode 100644 index 0000000..c66e63f --- /dev/null +++ b/assets/lz-string.dccec454.js @@ -0,0 +1 @@ +var O={exports:{}};(function(x){var S=function(){var y=String.fromCharCode,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",_={};function g(o,r){if(!_[o]){_[o]={};for(var s=0;s>>8,s[e*2+1]=p%256}return s},decompressFromUint8Array:function(o){if(o==null)return d.decompress(o);for(var r=new Array(o.length/2),s=0,e=r.length;s>1}else{for(t=1,e=0;e>1}h--,h==0&&(h=Math.pow(2,c),c++),delete w[u]}else for(t=p[u],e=0;e>1;h--,h==0&&(h=Math.pow(2,c),c++),p[A]=a++,u=String(v)}if(u!==""){if(Object.prototype.hasOwnProperty.call(w,u)){if(u.charCodeAt(0)<256){for(e=0;e>1}else{for(t=1,e=0;e>1}h--,h==0&&(h=Math.pow(2,c),c++),delete w[u]}else for(t=p[u],e=0;e>1;h--,h==0&&(h=Math.pow(2,c),c++)}for(t=2,e=0;e>1;for(;;)if(n=n<<1,f==r-1){l.push(s(n));break}else f++;return l.join("")},decompress:function(o){return o==null?"":o==""?null:d._decompress(o.length,32768,function(r){return o.charCodeAt(r)})},_decompress:function(o,r,s){var e=[],t=4,p=4,w=3,v="",A=[],u,h,a,c,l,n,f,i={val:s(0),position:r,index:1};for(u=0;u<3;u+=1)e[u]=u;for(a=0,l=Math.pow(2,2),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;switch(a){case 0:for(a=0,l=Math.pow(2,8),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;f=y(a);break;case 1:for(a=0,l=Math.pow(2,16),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;f=y(a);break;case 2:return""}for(e[3]=f,h=f,A.push(f);;){if(i.index>o)return"";for(a=0,l=Math.pow(2,w),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;switch(f=a){case 0:for(a=0,l=Math.pow(2,8),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;e[p++]=y(a),f=p-1,t--;break;case 1:for(a=0,l=Math.pow(2,16),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;e[p++]=y(a),f=p-1,t--;break;case 2:return A.join("")}if(t==0&&(t=Math.pow(2,w),w++),e[f])v=e[f];else if(f===p)v=h+h.charAt(0);else return null;A.push(v),e[p++]=h+v.charAt(0),t--,h=v,t==0&&(t=Math.pow(2,w),w++)}}};return d}();x!=null?x.exports=S:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return S})})(O);var U=O.exports;export{U as L}; diff --git a/assets/ngraph.events.083734c6.js b/assets/ngraph.events.083734c6.js new file mode 100644 index 0000000..889256b --- /dev/null +++ b/assets/ngraph.events.083734c6.js @@ -0,0 +1 @@ +var c=function(r){v(r);var e=l(r);return r.on=e.on,r.off=e.off,r.fire=e.fire,r};function l(n){var r=Object.create(null);return{on:function(e,t,o){if(typeof t!="function")throw new Error("callback is expected to be a function");var f=r[e];return f||(f=r[e]=[]),f.push({callback:t,ctx:o}),n},off:function(e,t){var o=typeof e=="undefined";if(o)return r=Object.create(null),n;if(r[e]){var f=typeof t!="function";if(f)delete r[e];else for(var a=r[e],i=0;i1&&(o=Array.prototype.splice.call(arguments,1));for(var f=0;fc)&&(p=h*d,w+=p),(E<-c||E>c)&&(A=h*E,Z+=A),T=i(O)}function O(){var B=Date.now()-x,F=!1,C=0,M=0;p&&(C=-p*Math.exp(-B/s),C>.5||C<-.5?F=!0:C=p=0),A&&(M=-A*Math.exp(-B/s),M>.5||M<-.5?F=!0:M=A=0),F&&(a(w+C,Z+M),T=i(O))}}function Ft(){return typeof cancelAnimationFrame=="function"?cancelAnimationFrame:clearTimeout}function Lt(){return typeof requestAnimationFrame=="function"?requestAnimationFrame:function(o){return setTimeout(o,16)}}var Nt=Pt;function Pt(o){if(o)return{capture:Ve,release:Ve};var a,u,c,h=!1;return{capture:g,release:i};function g(b){h=!0,u=window.document.onselectstart,c=window.document.ondragstart,window.document.onselectstart=Ye,a=b,a.ondragstart=Ye}function i(){!h||(h=!1,window.document.onselectstart=u,a&&(a.ondragstart=c))}}function Ye(o){return o.stopPropagation(),!1}function Ve(){}var It=Rt;function Rt(){this.x=0,this.y=0,this.scale=1}var de={exports:{}};de.exports=qt;de.exports.canAttach=Ue;function qt(o,a){if(!Ue(o))throw new Error("svg element is required for svg.panzoom to work");var u=o.ownerSVGElement;if(!u)throw new Error("Do not apply panzoom to the root element. Use its child instead (e.g. ). As of March 2016 only FireFox supported transform on the root element");a.disableKeyboardInteraction||u.setAttribute("tabindex",0);var c={getBBox:g,getScreenCTM:i,getOwner:h,applyTransform:x,initTransform:b};return c;function h(){return u}function g(){var s=o.getBBox();return{left:s.x,top:s.y,width:s.width,height:s.height}}function i(){var s=u.getCTM();return s||u.getScreenCTM()}function b(s){var l=o.getCTM();l===null&&(l=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix()),s.x=l.e,s.y=l.f,s.scale=l.a,u.removeAttributeNS(null,"viewBox")}function x(s){o.setAttribute("transform","matrix("+s.scale+" 0 0 "+s.scale+" "+s.x+" "+s.y+")")}}function Ue(o){return o&&o.ownerSVGElement&&o.getCTM}var he={exports:{}};he.exports=Yt;he.exports.canAttach=He;function Yt(o,a){var u=He(o);if(!u)throw new Error("panzoom requires DOM element to be attached to the DOM tree");var c=o.parentElement;o.scrollTop=0,a.disableKeyboardInteraction||c.setAttribute("tabindex",0);var h={getBBox:i,getOwner:g,applyTransform:b};return h;function g(){return c}function i(){return{left:0,top:0,width:o.clientWidth,height:o.clientHeight}}function b(x){o.style.transformOrigin="0 0 0",o.style.transform="matrix("+x.scale+", 0, 0, "+x.scale+", "+x.x+", "+x.y+")"}}function He(o){return o&&o.parentElement&&o.style}var Xe=Et.exports,ve=At.exports,Vt=Zt,Xt=zt,Je=Nt,jt=Je(),$t=Je(!0),Kt=It,je=de.exports,$e=he.exports,Wt=1,Gt=1.75,Ke=300,We=200,tr=Qe;function Qe(o,a){a=a||{};var u=a.controller;if(u||(je.canAttach(o)?u=je(o,a):$e.canAttach(o)&&(u=$e(o,a))),!u)throw new Error("Cannot create panzoom for the current type of dom element");var c=u.getOwner(),h={x:0,y:0},g=!1,i=new Kt;u.initTransform&&u.initTransform(i);var b=typeof a.filterKey=="function"?a.filterKey:X,x=typeof a.pinchSpeed=="number"?a.pinchSpeed:1,s=a.bounds,l=typeof a.maxZoom=="number"?a.maxZoom:Number.POSITIVE_INFINITY,d=typeof a.minZoom=="number"?a.minZoom:0,w=typeof a.boundsPadding=="number"?a.boundsPadding:.05,p=typeof a.zoomDoubleClickSpeed=="number"?a.zoomDoubleClickSpeed:Gt,E=a.beforeWheel||X,Z=a.beforeMouseDown||X,A=typeof a.zoomSpeed=="number"?a.zoomSpeed:Wt,T=Ge(a.transformOrigin),j=a.enableTextSelection?$t:jt;_t(s),a.autocenter&&ot();var L,$=0,_=0,O=0,B=null,F=new Date,C,M=!1,N=!1,S,k,oe,ae,ie,D;"smoothScroll"in a&&!a.smoothScroll?D=Ut():D=Xt(dt,xt,a.smoothScroll);var ue,K,U,H=!1;Te();var J={dispose:wt,moveBy:R,moveTo:ce,smoothMoveTo:yt,centerOn:pt,zoomTo:re,zoomAbs:Q,smoothZoom:te,smoothZoomAbs:Bt,showRectangle:nt,pause:et,resume:tt,isPaused:rt,getTransform:at,getMinZoom:it,setMinZoom:ut,getMaxZoom:ct,setMaxZoom:ft,getTransformOrigin:lt,setTransformOrigin:st,getZoomSpeed:vt,setZoomSpeed:mt};Vt(J);var ge=typeof a.initialX=="number"?a.initialX:i.x,pe=typeof a.initialY=="number"?a.initialY:i.y,ye=typeof a.initialZoom=="number"?a.initialZoom:i.scale;return(ge!=i.x||pe!=i.y||ye!=i.scale)&&Q(ge,pe,ye),J;function et(){Se(),H=!0}function tt(){H&&(Te(),H=!1)}function rt(){return H}function nt(e){var t=c.getBoundingClientRect(),r=P(t.width,t.height),n=e.right-e.left,f=e.bottom-e.top;if(!Number.isFinite(n)||!Number.isFinite(f))throw new Error("Invalid rectangle");var v=r.x/n,m=r.y/f,y=Math.min(v,m);i.x=-(e.left+n/2)*y+r.x/2,i.y=-(e.top+f/2)*y+r.y/2,i.scale=y}function P(e,t){if(u.getScreenCTM){var r=u.getScreenCTM(),n=r.a,f=r.d,v=r.e,m=r.f;h.x=e*n-v,h.y=t*f-m}else h.x=e,h.y=t;return h}function ot(){var e,t,r=0,n=0,f=we();if(f)r=f.left,n=f.top,e=f.right-f.left,t=f.bottom-f.top;else{var v=c.getBoundingClientRect();e=v.width,t=v.height}var m=u.getBBox();if(!(m.width===0||m.height===0)){var y=t/m.height,Y=e/m.width,I=Math.min(Y,y);i.x=-(m.left+m.width/2)*I+e/2+r,i.y=-(m.top+m.height/2)*I+t/2+n,i.scale=I}}function at(){return i}function it(){return d}function ut(e){d=e}function ct(){return l}function ft(e){l=e}function lt(){return T}function st(e){T=Ge(e)}function vt(){return A}function mt(e){if(!Number.isFinite(e))throw new Error("Zoom speed should be a number");A=e}function dt(){return{x:i.x,y:i.y}}function ce(e,t){i.x=e,i.y=t,fe(),q("pan"),le()}function xe(e,t){ce(i.x+e,i.y+t)}function fe(){var e=we();if(!!e){var t=!1,r=ht(),n=e.left-r.right;return n>0&&(i.x+=n,t=!0),n=e.right-r.left,n<0&&(i.x+=n,t=!0),n=e.top-r.bottom,n>0&&(i.y+=n,t=!0),n=e.bottom-r.top,n<0&&(i.y+=n,t=!0),t}}function we(){if(!!s){if(typeof s=="boolean"){var e=c.getBoundingClientRect(),t=e.width,r=e.height;return{left:t*w,top:r*w,right:t*(1-w),bottom:r*(1-w)}}return s}}function ht(){var e=u.getBBox(),t=gt(e.left,e.top);return{left:t.x,top:t.y,right:e.width*i.scale+t.x,bottom:e.height*i.scale+t.y}}function gt(e,t){return{x:e*i.scale+i.x,y:t*i.scale+i.y}}function le(){g=!0,L=window.requestAnimationFrame(bt)}function be(e,t,r){if(me(e)||me(t)||me(r))throw new Error("zoom requires valid numbers");var n=i.scale*r;if(nl){if(i.scale===l)return;r=l/i.scale}var f=P(e,t);if(i.x=f.x-r*(f.x-i.x),i.y=f.y-r*(f.y-i.y),s&&w===1&&d===1)i.scale*=r,fe();else{var v=fe();v||(i.scale*=r)}q("zoom"),le()}function Q(e,t,r){var n=r/i.scale;be(e,t,n)}function pt(e){var t=e.ownerSVGElement;if(!t)throw new Error("ui element is required to be within the scene");var r=e.getBoundingClientRect(),n=r.left+r.width/2,f=r.top+r.height/2,v=t.getBoundingClientRect(),m=v.width/2-n,y=v.height/2-f;R(m,y,!0)}function yt(e,t){R(e-i.x,t-i.y,!0)}function R(e,t,r){if(!r)return xe(e,t);ue&&ue.cancel();var n={x:0,y:0},f={x:e,y:t},v=0,m=0;ue=ve(n,f,{step:function(y){xe(y.x-v,y.y-m),v=y.x,m=y.y}})}function xt(e,t){ne(),ce(e,t)}function wt(){Se()}function Te(){c.addEventListener("mousedown",Ze,{passive:!1}),c.addEventListener("dblclick",Ae,{passive:!1}),c.addEventListener("touchstart",Me,{passive:!1}),c.addEventListener("keydown",Ce,{passive:!1}),Xe.addWheelListener(c,Ne,{passive:!1}),le()}function Se(){Xe.removeWheelListener(c,Ne),c.removeEventListener("mousedown",Ze),c.removeEventListener("keydown",Ce),c.removeEventListener("dblclick",Ae),c.removeEventListener("touchstart",Me),L&&(window.cancelAnimationFrame(L),L=0),D.cancel(),Fe(),Le(),j.release(),se()}function bt(){g&&Tt()}function Tt(){g=!1,u.applyTransform(i),q("transform"),L=0}function Ce(e){var t=0,r=0,n=0;if(e.keyCode===38?r=1:e.keyCode===40?r=-1:e.keyCode===37?t=1:e.keyCode===39?t=-1:e.keyCode===189||e.keyCode===109?n=1:(e.keyCode===187||e.keyCode===107)&&(n=-1),!b(e,t,r,n)){if(t||r){e.preventDefault(),e.stopPropagation();var f=c.getBoundingClientRect(),v=Math.min(f.width,f.height),m=.05,y=v*m*t,Y=v*m*r;R(y,Y)}if(n){var I=Pe(n*100),v=T?G():St();re(v.x,v.y,I)}}}function St(){var e=c.getBoundingClientRect();return{x:e.width/2,y:e.height/2}}function Me(e){if(Ct(e),W(),e.touches.length===1)return kt(e,e.touches[0]);e.touches.length===2&&(ie=Ee(e.touches[0],e.touches[1]),U=!0,ke())}function Ct(e){a.onTouch&&!a.onTouch(e)||(e.stopPropagation(),e.preventDefault())}function Mt(e){W(),!(a.onDoubleClick&&!a.onDoubleClick(e))&&(e.preventDefault(),e.stopPropagation())}function kt(e){_=new Date;var t=e.touches[0],r=z(t);C=r;var n=P(r.x,r.y);S=n.x,k=n.y,oe=S,ae=k,D.cancel(),ke()}function ke(){M||(M=!0,document.addEventListener("touchmove",Be),document.addEventListener("touchend",ee),document.addEventListener("touchcancel",ee))}function Be(e){if(e.touches.length===1){e.stopPropagation();var t=e.touches[0],r=z(t),n=P(r.x,r.y),f=n.x-S,v=n.y-k;f!==0&&v!==0&&Ie(),S=n.x,k=n.y,R(f,v)}else if(e.touches.length===2){U=!0;var m=e.touches[0],y=e.touches[1],Y=Ee(m,y),I=1+(Y/ie-1)*x,Re=z(m),qe=z(y);if(S=(Re.x+qe.x)/2,k=(Re.y+qe.y)/2,T){var r=G();S=r.x,k=r.y}re(S,k,I),ie=Y,e.stopPropagation(),e.preventDefault()}}function W(){O&&(clearTimeout(O),O=0)}function De(e){if(!!a.onClick){W();var t=S-oe,r=k-ae,n=Math.sqrt(t*t+r*r);n>5||(O=setTimeout(function(){O=0,a.onClick(e)},Ke))}}function ee(e){if(W(),e.touches.length>0){var t=z(e.touches[0]),r=P(t.x,t.y);S=r.x,k=r.y}else{var n=new Date;if(n-$0&&(t*=100);var r=Pe(t);if(r!==1){var n=T?G():z(e);re(n.x,n.y,r),e.preventDefault()}}}function z(e){var t,r,n=c.getBoundingClientRect();return t=e.clientX-n.left,r=e.clientY-n.top,{x:t,y:r}}function te(e,t,r){var n=i.scale,f={scale:n},v={scale:r*n};D.cancel(),ne(),K=ve(f,v,{step:function(m){Q(e,t,m.scale)},done:Dt})}function Bt(e,t,r){var n=i.scale,f={scale:n},v={scale:r};D.cancel(),ne(),K=ve(f,v,{step:function(m){Q(e,t,m.scale)}})}function G(){var e=c.getBoundingClientRect();return{x:e.width*T.x,y:e.height*T.y}}function re(e,t,r){return D.cancel(),ne(),be(e,t,r)}function ne(){K&&(K.cancel(),K=null)}function Pe(e){var t=Math.sign(e),r=Math.min(.25,Math.abs(A*e/128));return 1-t*r}function Ie(){N||(q("panstart"),N=!0,D.start())}function se(){N&&(U||D.stop(),q("panend"))}function Dt(){q("zoomend")}function q(e){J.fire(e,J)}}function Ge(o){if(!!o){if(typeof o=="object")return(!V(o.x)||!V(o.y))&&_e(o),o;_e()}}function _e(o){throw console.error(o),new Error(["Cannot parse transform origin.","Some good examples:",' "center center" can be achieved with {x: 0.5, y: 0.5}',' "top center" can be achieved with {x: 0.5, y: 0}',' "bottom right" can be achieved with {x: 1, y: 1}'].join(` +`))}function X(){}function _t(o){var a=typeof o;if(!(a==="undefined"||a==="boolean")){var u=V(o.left)&&V(o.top)&&V(o.bottom)&&V(o.right);if(!u)throw new Error("Bounds object is not valid. It can be: undefined, boolean (true|false) or an object {left, top, right, bottom}")}}function V(o){return Number.isFinite(o)}function me(o){return Number.isNaN?Number.isNaN(o):o!==o}function Ut(){return{start:X,stop:X,cancel:X}}function Ht(){if(typeof document=="undefined")return;var o=document.getElementsByTagName("script");if(!o)return;for(var a,u=0;u * @author owenm diff --git a/assets/vue-next-select.7a1e8cf3.js b/assets/vue-next-select.f5f69b1a.js similarity index 99% rename from assets/vue-next-select.7a1e8cf3.js rename to assets/vue-next-select.f5f69b1a.js index fa38c45..6c5a635 100644 --- a/assets/vue-next-select.7a1e8cf3.js +++ b/assets/vue-next-select.f5f69b1a.js @@ -1,3 +1,3 @@ -import"./vue.af9696a7.js";import{aF as b,a1 as B,aL as x,a2 as y,bu as $,bv as I,O as P,aK as ye,ar as re,ab as De,aM as J,a0 as z,a9 as X,b7 as ge,$ as Ee,b9 as Le,bt as je,t as F,az as $e,aE as ze,am as he,G as K,J as Q,q as Ue,z as Z,b3 as S,_ as h,ag as Pe,b2 as j,as as _,aH as qe}from"./@vue.6f8187b0.js";function ie(e){return(ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function me(e){return function(t){if(Array.isArray(t))return ne(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||be(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +import"./vue.804e2479.js";import{aF as b,a1 as B,aL as x,a2 as y,bu as $,bv as I,O as P,aK as ye,ar as re,ab as De,aM as J,a0 as z,a9 as X,b7 as ge,$ as Ee,b9 as Le,bt as je,t as F,az as $e,aE as ze,am as he,G as K,J as Q,q as Ue,z as Z,b3 as S,_ as h,ag as Pe,b2 as j,as as _,aH as qe}from"./@vue.6f8187b0.js";function ie(e){return(ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function me(e){return function(t){if(Array.isArray(t))return ne(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||be(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function be(e,t){if(e){if(typeof e=="string")return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(s){throw s},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,u=!0,v=!1;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return u=s.done,s},e:function(s){v=!0,m=s},f:function(){try{u||n.return==null||n.return()}finally{if(v)throw m}}}}var ae={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=F(null);return $e(function(){e.autofocus&&n.value.focus()}),ze(function(){e.autofocus&&n.value.focus()}),{handleInput:function(l){t.emit("input",l),t.emit("update:modelValue",l.target.value)},handleChange:function(l){t.emit("change",l),t.emit("update:modelValue",l.target.value)},handleFocus:function(l){t.emit("focus",l)},handleBlur:function(l){t.emit("blur",l)},input:n,handleEscape:function(l){n.value.blur(),t.emit("escape",l)}}}},He={class:"vue-input"},_e=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];ae.render=function(e,t,n,l,g,m){return b(),B("div",He,[x(e.$slots,"prepend"),y("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return l.handleInput&&l.handleInput.apply(l,arguments)}),onChange:t[1]||(t[1]=function(){return l.handleChange&&l.handleChange.apply(l,arguments)}),onFocus:t[2]||(t[2]=function(){return l.handleFocus&&l.handleFocus.apply(l,arguments)}),onBlur:t[3]||(t[3]=function(){return l.handleBlur&&l.handleBlur.apply(l,arguments)}),onKeyup:t[4]||(t[4]=$(I(function(){return l.handleEscape&&l.handleEscape.apply(l,arguments)},["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,_e),x(e.$slots,"append")])},ae.__file="src/components/input.vue";var le={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ie(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:he("dataAttrs"),handleClick:function(n){t.emit("click",n)}}}};le.render=function(e,t,n,l,g,m){return b(),B("ul",re({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=I(function(){},["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return l.handleClick&&l.handleClick.apply(l,arguments)})},l.dataAttrs),[(b(!0),B(P,null,ye(n.modelValue,function(u){return b(),B(P,{key:u.key},[u.group?z("v-if",!0):(b(),B("li",{key:0,class:K(["vue-tag",{selected:u.selected}])},[x(e.$slots,"default",{option:u},function(){return[y("span",null,Q(u.label),1)]})],2))],64)}),128))],16)},le.__file="src/components/tags.vue";var oe={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ie(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:he("dataAttrs"),handleClickItem:function(n,l){l.disabled||t.emit("click-item",n,l)},handleMouseenter:function(n,l){t.emit("mouseenter",n,l)}}}},Re=["id","aria-multiselectable","aria-busy","aria-disabled"],We=["onClick","onMouseenter","id","aria-selected","aria-disabled"];oe.render=function(e,t,n,l,g,m){return b(),B("ul",re({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=I(function(){},["prevent"]))},l.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":l.dataAttrs["data-multiple"],"aria-busy":l.dataAttrs["data-loading"],"aria-disabled":l.dataAttrs["data-disabled"]}),[(b(!0),B(P,null,ye(n.modelValue,function(u,v){return b(),B(P,{key:u.key},[u.visible&&u.hidden===!1?(b(),B("li",{key:0,onClick:function(s){return l.handleClickItem(s,u)},class:K(["vue-dropdown-item",{selected:u.selected,disabled:u.disabled,highlighted:u.originalIndex===n.highlightedOriginalIndex,group:u.group}]),onMouseenter:function(s){return l.handleMouseenter(s,u)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(v),"aria-selected":!!u.selected||!!u.disabled&&void 0,"aria-disabled":u.disabled},[x(e.$slots,"default",{option:u},function(){return[y("span",null,Q(u.label),1)]})],42,We)):z("v-if",!0)],64)}),128))],16,Re)},oe.__file="src/components/dropdown.vue";var Be=function(e,t,n){var l=n.valueBy;return l(e)===l(t)},U=function(e,t,n){var l=n.valueBy;return e.some(function(g){return Be(g,t,{valueBy:l})})},N=function(e,t,n){var l=n.valueBy;return e.find(function(g){return l(g)===t})},ee=function(e,t,n){var l=n.max,g=n.valueBy;return U(e,t,{valueBy:g})||e.length>=l?e:e.concat(t)},te=function(e,t,n){var l=n.min,g=n.valueBy;return U(e,t,{valueBy:g})===!1||e.length<=l?e:e.filter(function(m){return Be(m,t,{valueBy:g})===!1})},G=function(e){return h(function(){return typeof e.value=="function"?e.value:typeof e.value=="string"?function(t){return e.value.split(".").reduce(function(n,l){return n[l]},t)}:function(t){return t}})},Ze=function(e,t){var n=h(function(){return e.value.reduce(function(u,v){return Object.assign(u,(s={},c=v.originalIndex,f=v,c in s?Object.defineProperty(s,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):s[c]=f,s));var s,c,f},{})}),l=function(u){var v=n.value[u];return v!==void 0&&g(v)!==!1&&(t.value=u,!0)},g=function(u){return!u.disabled&&!u.hidden&&u.visible},m=h(function(){return e.value.some(function(u){return g(u)})});return S(function(){if(m.value===!1&&(t.value=null),t.value!==null&&e.value.length<=t.value){var u,v=D(e.value.reverse());try{for(v.s();!(u=v.n()).done;){var s=u.value;if(l(s.originalIndex))break}}catch(V){v.e(V)}finally{v.f()}}if(t.value===null||g(e.value[t.value])===!1){var c,f=D(e.value);try{for(f.s();!(c=f.n()).done;){var E=c.value;if(l(E.originalIndex))break}}catch(V){f.e(V)}finally{f.f()}}}),{pointerForward:function(){if(m.value!==!1&&t.value!==null)for(var u=t.value+1,v=0;u!==t.value&&v++u.value.$el.clientHeight+u.value.$el.scrollTop&&i++n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}});qe("dataAttrs",ve);var L=h(function(){return w.value.filter(function(a){return a.selected}).filter(function(a){return!a.group})}),Ce=h(function(){return e.multiple?L.value.length===0?e.placeholder:L.value.length===1?"1 option selected":L.value.length+" options selected":L.value.length===0?e.placeholder:L.value[0].label+""}),Te=h(function(){var a=L.value.map(function(o){return o.originalOption});return e.multiple?a:a[0]||l.value}),fe=F();return j(function(){return[e.openDirection,c.value]},function(){var a,o;fe.value=(o=(a=e.openDirection)!==null&&a!==void 0?a:function(){if(m.value!==void 0&&window!==void 0)return window.innerHeight-m.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())!==null&&o!==void 0?o:"bottom"},{immediate:!0}),{instance:g,isFocusing:c,wrapper:m,dropdown:u,input:v,focus:f,blur:E,toggle:function(){c.value?E():f()},searchingInputValue:V,handleInputForInput:function(a){t.emit("search:input",a)},handleChangeForInput:function(a){t.emit("search:change",a)},handleFocusForInput:function(a){f()},handleBlurForInput:function(a){E()},optionsWithInfo:w,addOrRemoveOption:function(a,o){e.disabled||(o.group&&e.multiple?we(a,o):Me(a,o),ke(),e.closeOnSelect===!0&&(c.value=!1),e.clearOnSelect===!0&&V.value&&pe())},dataAttrs:ve,innerPlaceholder:Ce,selected:Te,highlightedOriginalIndex:R,pointerForward:function(){Fe(),_(H)},pointerBackward:function(){Ve(),_(H)},pointerFirst:function(){var a,o=D(n.options.keys());try{for(o.s();!(a=o.n()).done;){var i=a.value;if(q(i))break}}catch(r){o.e(r)}finally{o.f()}_(H)},pointerLast:function(){var a,o=D(me(n.options.keys()).reverse());try{for(o.s();!(a=o.n()).done;){var i=a.value;if(q(i))break}}catch(r){o.e(r)}finally{o.f()}_(H)},typeAhead:function(a){var o,i;if(!e.searchable){var r=!1;if(Se.test(a.key)?(W+=a.key.toLowerCase(),r=!0):a.code==="Space"&&(W+=" "),r){var M,p=D(Ae.value);try{for(p.s();!(M=p.n()).done;){var k=M.value;if(((i=(o=n.labelBy(n.options[k]))===null||o===void 0?void 0:o.toLowerCase())===null||i===void 0?void 0:i.startsWith(W))===!0&&q(k))break}}catch(C){p.e(C)}finally{p.f()}clearTimeout(se),se=setTimeout(function(){W=""},500)}}},pointerSet:q,direction:fe}},components:{VInput:ae,VTags:le,VDropdown:oe}});ue.__VERSION__="2.10.5";var Ge=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],Ke={class:"vue-select-header"},Qe={key:0,class:"vue-input"},Ye=["placeholder","autocomplete"],Je=["onClick"],Xe=y("span",{class:"icon loading"},[y("div"),y("div"),y("div")],-1),et={key:0,class:"vue-select-input-wrapper"},tt=y("span",{class:"icon loading"},[y("div"),y("div"),y("div")],-1);ue.render=function(e,t,n,l,g,m){var u=J("v-tags"),v=J("v-input"),s=J("v-dropdown");return b(),B("div",re({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:t[9]||(t[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:t[10]||(t[10]=function(c){return!e.searchable&&e.blur(c)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=$(I(function(){return e.highlightedOriginalIndex!==null&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])},["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=$(I(function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)},["prevent","exact"]),["down"])),t[13]||(t[13]=$(I(function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)},["prevent","exact"]),["up"])),t[14]||(t[14]=$(I(function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)},["prevent","exact"]),["home"])),t[15]||(t[15]=$(I(function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)},["prevent","exact"]),["end"])),t[16]||(t[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":e.highlightedOriginalIndex===null?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[y("div",Ke,[e.multiple&&e.taggable&&e.modelValue.length===0||e.searchable===!1&&e.taggable===!1?(b(),B("div",Qe,[x(e.$slots,"label",{selected:e.selected},function(){return[y("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,Ye)]})])):z("v-if",!0),e.multiple&&e.taggable?(b(),B(P,{key:1},[X(u,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:ge(function(c){var f=c.option;return[x(e.$slots,"tag",{option:f.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,f)}},function(){return[y("span",null,Q(f.label),1),y("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:I(function(){return e.addOrRemoveOption(e.$event,f)},["prevent","stop"])},null,8,Je)]})]}),_:3},8,["modelValue","collapse-tags","onClick"]),x(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},function(){return[y("span",{class:K(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[2]||(t[2]=I(function(){},["prevent","stop"]))},null,34)]})],64)):(b(),B(P,{key:2},[e.searchable?(b(),Ee(v,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(c){return e.searchingInputValue=c}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):z("v-if",!0),e.loading?x(e.$slots,"loading",{key:1},function(){return[Xe]}):x(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},function(){return[y("span",{class:K(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[4]||(t[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[5]||(t[5]=I(function(){},["prevent","stop"]))},null,34)]})],64))]),e.multiple&&e.taggable&&e.searchable?(b(),B("div",et,[Le(X(v,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(c){return e.searchingInputValue=c}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[je,e.isFocusing]]),e.loading?x(e.$slots,"loading",{key:0},function(){return[tt]}):z("v-if",!0)])):z("v-if",!0),X(s,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(c){return e.optionsWithInfo=c}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(c,f){return e.pointerSet(f.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:ge(function(c){var f=c.option;return[x(e.$slots,"dropdown-item",{option:f.originalOption},function(){return[y("span",null,Q(f.label),1)]})]}),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,Ge)},ue.__file="src/index.vue";export{ue as Y}; diff --git a/assets/vue-panzoom.89be130f.js b/assets/vue-panzoom.89be130f.js new file mode 100644 index 0000000..a17bfee --- /dev/null +++ b/assets/vue-panzoom.89be130f.js @@ -0,0 +1 @@ +import{p as r}from"./panzoom.30c56ba6.js";import"./vue.804e2479.js";import{aF as c,$ as m,a9 as u,aL as p}from"./@vue.6f8187b0.js";var a={name:"panZoom",props:{options:Object,selector:String},data:function(){return{panZoomInstance:null,panZoomInstanceId:null,instanceId:null,defaultOptions:{autocenter:!0,bounds:!0,transformOrigin:{x:.5,y:.5}}}},created:function(){this.instanceId=this.generateRandomId(20)},mounted:function(){if(this.scene){var n=Object.assign({},this.defaultOptions,this.options);this.panZoomInstance=this.$panZoom(this.scene,n),this.panZoomInstanceId=this.instanceId,this.attachEvents()}},computed:{scene:function(){var n,e=this.$el.querySelector(".vue-pan-zoom-scene");return this.selector?n=e.querySelector(this.selector):(n=e.querySelector("svg, object, embed"),n||(n=e.firstChild)),n}},methods:{generateRandomId:function(n){n=n||16;for(var e="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",o=e.length,s=[],i=0;ie in t?Et(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,q=(t,e)=>{for(var s in e||(e={}))Bt.call(e,s)&&U(t,s,e[s]);if(k)for(var s of k(e))It.call(e,s)&&U(t,s,e[s]);return t},D=t=>typeof t=="function",w=t=>typeof t=="string",J=t=>w(t)&&t.trim().length>0,Dt=t=>typeof t=="number",T=t=>typeof t=="undefined",O=t=>typeof t=="object"&&t!==null,wt=t=>h(t,"tag")&&J(t.tag),K=t=>window.TouchEvent&&t instanceof TouchEvent,Q=t=>h(t,"component")&&Y(t.component),Rt=t=>D(t)||O(t),Y=t=>!T(t)&&(w(t)||Rt(t)||Q(t)),z=t=>O(t)&&["height","width","right","left","top","bottom"].every(e=>Dt(t[e])),h=(t,e)=>(O(t)||D(t))&&e in t,Pt=(t=>()=>t++)(0);function P(t){return K(t)?t.targetTouches[0].clientX:t.clientX}function j(t){return K(t)?t.targetTouches[0].clientY:t.clientY}var Nt=t=>{T(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove()},S=t=>Q(t)?S(t.component):wt(t)?C({render(){return t}}):typeof t=="string"?t:mt(pt(t)),At=t=>{if(typeof t=="string")return t;const e=h(t,"props")&&O(t.props)?t.props:{},s=h(t,"listeners")&&O(t.listeners)?t.listeners:{};return{component:S(t),props:e,listeners:s}},Lt=()=>typeof window!="undefined",F=class{constructor(){this.allHandlers={}}getHandlers(t){return this.allHandlers[t]||[]}on(t,e){const s=this.getHandlers(t);s.push(e),this.allHandlers[t]=s}off(t,e){const s=this.getHandlers(t);s.splice(s.indexOf(e)>>>0,1)}emit(t,e){this.getHandlers(t).forEach(n=>n(e))}},Vt=t=>["on","off","emit"].every(e=>h(t,e)&&D(t[e])),i;(function(t){t.SUCCESS="success",t.ERROR="error",t.WARNING="warning",t.INFO="info",t.DEFAULT="default"})(i||(i={}));var B;(function(t){t.TOP_LEFT="top-left",t.TOP_CENTER="top-center",t.TOP_RIGHT="top-right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_CENTER="bottom-center",t.BOTTOM_RIGHT="bottom-right"})(B||(B={}));var l;(function(t){t.ADD="add",t.DISMISS="dismiss",t.UPDATE="update",t.CLEAR="clear",t.UPDATE_DEFAULTS="update_defaults"})(l||(l={}));var d="Vue-Toastification",c={type:{type:String,default:i.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Z={type:c.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},E={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:c.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},A={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},tt={transition:{type:[Object,String],default:`${d}__bounce`}},Mt={position:{type:String,default:B.TOP_RIGHT},draggable:c.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:c.trueBoolean,pauseOnHover:c.trueBoolean,closeOnClick:c.trueBoolean,timeout:A.timeout,hideProgressBar:A.hideProgressBar,toastClassName:c.classNames,bodyClassName:c.classNames,icon:Z.customIcon,closeButton:E.component,closeButtonClassName:E.classNames,showCloseButtonOnHover:E.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new F}},$t={id:{type:[String,Number],required:!0,default:0},type:c.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},Ft={container:{type:[Object,Function],default:()=>document.body},newestOnTop:c.trueBoolean,maxToasts:{type:Number,default:20},transition:tt.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:t=>t},filterToasts:{type:Function,default:t=>t},containerClassName:c.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},f={CORE_TOAST:Mt,TOAST:$t,CONTAINER:Ft,PROGRESS_BAR:A,ICON:Z,TRANSITION:tt,CLOSE_BUTTON:E},et=C({name:"VtProgressBar",props:f.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${d}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function Ht(t,e){return o(),u("div",{style:X(t.style),class:b(t.cpClass)},null,6)}et.render=Ht;var kt=et,st=C({name:"VtCloseButton",props:f.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?S(this.component):"button"},classes(){const t=[`${d}__close-button`];return this.showOnHover&&t.push("show-on-hover"),t.concat(this.classNames)}}}),Ut=$(" \xD7 ");function zt(t,e){return o(),p(M(t.buttonComponent),V({"aria-label":t.ariaLabel,class:t.classes},t.$attrs),{default:I(()=>[Ut]),_:1},16,["aria-label","class"])}st.render=zt;var jt=st,at={},Gt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wt=_("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),Xt=[Wt];function xt(t,e){return o(),u("svg",Gt,Xt)}at.render=xt;var qt=at,nt={},Jt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kt=_("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Qt=[Kt];function Yt(t,e){return o(),u("svg",Jt,Qt)}nt.render=Yt;var G=nt,ot={},Zt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},te=_("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),ee=[te];function se(t,e){return o(),u("svg",Zt,ee)}ot.render=se;var ae=ot,rt={},ne={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},oe=_("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),re=[oe];function ie(t,e){return o(),u("svg",ne,re)}rt.render=ie;var le=rt,it=C({name:"VtIcon",props:f.ICON,computed:{customIconChildren(){return h(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return w(this.customIcon)?this.trimValue(this.customIcon):h(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return h(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Y(this.customIcon)?S(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[i.DEFAULT]:G,[i.INFO]:G,[i.SUCCESS]:qt,[i.ERROR]:le,[i.WARNING]:ae}[this.type]},iconClasses(){const t=[`${d}__icon`];return this.hasCustomIcon?t.concat(this.customIconClass):t}},methods:{trimValue(t,e=""){return J(t)?t.trim():e}}});function ce(t,e){return o(),p(M(t.component),{class:b(t.iconClasses)},{default:I(()=>[$(x(t.customIconChildren),1)]),_:1},8,["class"])}it.render=ce;var ue=it,lt=C({name:"VtToast",components:{ProgressBar:kt,CloseButton:jt,Icon:ue},inheritAttrs:!1,props:Object.assign({},f.CORE_TOAST,f.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const t=[`${d}__toast`,`${d}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&t.push("disable-transition"),this.rtl&&t.push(`${d}__toast--rtl`),t},bodyClasses(){return[`${d}__toast-${w(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return z(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:h,getVueComponentFromObj:S,closeToast(){this.eventBus.emit(l.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const t=this.$el;t.addEventListener("touchstart",this.onDragStart,{passive:!0}),t.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const t=this.$el;t.removeEventListener("touchstart",this.onDragStart),t.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(t){this.beingDragged=!0,this.dragPos={x:P(t),y:j(t)},this.dragStart=P(t),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(t){this.beingDragged&&(t.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:P(t),y:j(t)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,z(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),de=["role"];function he(t,e){const s=y("Icon"),n=y("CloseButton"),v=y("ProgressBar");return o(),u("div",{class:b(t.classes),style:X(t.draggableStyle),onClick:e[0]||(e[0]=(...a)=>t.clickHandler&&t.clickHandler(...a)),onMouseenter:e[1]||(e[1]=(...a)=>t.hoverPause&&t.hoverPause(...a)),onMouseleave:e[2]||(e[2]=(...a)=>t.hoverPlay&&t.hoverPlay(...a))},[t.icon?(o(),p(s,{key:0,"custom-icon":t.icon,type:t.type},null,8,["custom-icon","type"])):R("v-if",!0),_("div",{role:t.accessibility.toastRole||"alert",class:b(t.bodyClasses)},[typeof t.content=="string"?(o(),u(N,{key:0},[$(x(t.content),1)],2112)):(o(),p(M(t.getVueComponentFromObj(t.content)),V({key:1,"toast-id":t.id},t.hasProp(t.content,"props")?t.content.props:{},vt(t.hasProp(t.content,"listeners")?t.content.listeners:{}),{onCloseToast:t.closeToast}),null,16,["toast-id","onCloseToast"]))],10,de),t.closeButton?(o(),p(n,{key:1,component:t.closeButton,"class-names":t.closeButtonClassName,"show-on-hover":t.showCloseButtonOnHover,"aria-label":t.accessibility.closeButtonLabel,onClick:gt(t.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):R("v-if",!0),t.timeout?(o(),p(v,{key:2,"is-running":t.isRunning,"hide-progress-bar":t.hideProgressBar,timeout:t.timeout,onCloseToast:t.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):R("v-if",!0)],38)}lt.render=he;var fe=lt,ct=C({name:"VtTransition",props:f.TRANSITION,emits:["leave"],methods:{hasProp:h,leave(t){t instanceof HTMLElement&&(t.style.left=t.offsetLeft+"px",t.style.top=t.offsetTop+"px",t.style.width=getComputedStyle(t).width,t.style.position="absolute")}}});function me(t,e){return o(),p(Ct,{tag:"div","enter-active-class":t.transition.enter?t.transition.enter:`${t.transition}-enter-active`,"move-class":t.transition.move?t.transition.move:`${t.transition}-move`,"leave-active-class":t.transition.leave?t.transition.leave:`${t.transition}-leave-active`,onLeave:t.leave},{default:I(()=>[Tt(t.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}ct.render=me;var pe=ct,ut=C({name:"VueToastification",devtools:{hide:!0},components:{Toast:fe,VtTransition:pe},props:Object.assign({},f.CORE_TOAST,f.CONTAINER,f.TRANSITION),data(){return{count:0,positions:Object.values(B),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const t=this.eventBus;t.on(l.ADD,this.addToast),t.on(l.CLEAR,this.clearToasts),t.on(l.DISMISS,this.dismissToast),t.on(l.UPDATE,this.updateToast),t.on(l.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(t){D(t)&&(t=await t()),Nt(this.$el),t.appendChild(this.$el)},setToast(t){T(t.id)||(this.toasts[t.id]=t)},addToast(t){t.content=At(t.content);const e=Object.assign({},this.defaults,t.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[t.type],t),s=this.defaults.filterBeforeCreate(e,this.toastArray);s&&this.setToast(s)},dismissToast(t){const e=this.toasts[t];!T(e)&&!T(e.onClose)&&e.onClose(),delete this.toasts[t]},clearToasts(){Object.keys(this.toasts).forEach(t=>{this.dismissToast(t)})},getPositionToasts(t){const e=this.filteredToasts.filter(s=>s.position===t).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?e.reverse():e},updateDefaults(t){T(t.container)||this.setup(t.container),this.defaults=Object.assign({},this.defaults,t)},updateToast({id:t,options:e,create:s}){this.toasts[t]?(e.timeout&&e.timeout===this.toasts[t].timeout&&e.timeout++,this.setToast(Object.assign({},this.toasts[t],e))):s&&this.addToast(Object.assign({},{id:t},e))},getClasses(t){return[`${d}__container`,t].concat(this.defaults.containerClassName)}}});function ve(t,e){const s=y("Toast"),n=y("VtTransition");return o(),u("div",null,[(o(!0),u(N,null,H(t.positions,v=>(o(),u("div",{key:v},[yt(n,{transition:t.defaults.transition,class:b(t.getClasses(v))},{default:I(()=>[(o(!0),u(N,null,H(t.getPositionToasts(v),a=>(o(),p(s,V({key:a.id},a),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}ut.render=ve;var ge=ut,W=(t={},e=!0)=>{const s=t.eventBus=t.eventBus||new F;e&&_t(()=>{const a=St(ge,q({},t)),r=a.mount(document.createElement("div")),g=t.onMounted;if(T(g)||g(r,a),t.shareAppContext){const m=t.shareAppContext;m===!0?console.warn(`[${d}] App to share context with was not provided.`):(a._context.components=m._context.components,a._context.directives=m._context.directives,a._context.mixins=m._context.mixins,a._context.provides=m._context.provides,a.config.globalProperties=m.config.globalProperties)}});const n=(a,r)=>{const g=Object.assign({},{id:Pt(),type:i.DEFAULT},r,{content:a});return s.emit(l.ADD,g),g.id};n.clear=()=>s.emit(l.CLEAR,void 0),n.updateDefaults=a=>{s.emit(l.UPDATE_DEFAULTS,a)},n.dismiss=a=>{s.emit(l.DISMISS,a)};function v(a,{content:r,options:g},m=!1){const ft=Object.assign({},g,{content:r});s.emit(l.UPDATE,{id:a,options:ft,create:m})}return n.update=v,n.success=(a,r)=>n(a,Object.assign({},r,{type:i.SUCCESS})),n.info=(a,r)=>n(a,Object.assign({},r,{type:i.INFO})),n.error=(a,r)=>n(a,Object.assign({},r,{type:i.ERROR})),n.warning=(a,r)=>n(a,Object.assign({},r,{type:i.WARNING})),n},Te=()=>{const t=()=>console.warn(`[${d}] This plugin does not support SSR!`);return new Proxy(t,{get(){return t}})};function L(t){return Lt()?Vt(t)?W({eventBus:t},!1):W(t,!0):Te()}var dt=Symbol("VueToastification"),ht=new F,Ce=(t,e)=>{(e==null?void 0:e.shareAppContext)===!0&&(e.shareAppContext=t);const s=L(q({eventBus:ht},e));t.provide(dt,s)},Oe=t=>{if(t)return L(t);const e=bt()?Ot(dt,void 0):void 0;return e||L(ht)},_e=Ce;export{_e as s,Oe as u}; +import"./vue.804e2479.js";import{ab as C,y as mt,C as pt,aF as o,a1 as u,I as X,G as b,$ as p,b7 as I,ar as V,aO as M,a8 as $,J as x,aM as y,a0 as R,a2 as _,O as N,aW as vt,bv as gt,aL as Tt,bd as Ct,aK as H,a9 as yt,ag as bt,am as Ot,as as _t,bf as St}from"./@vue.6f8187b0.js";var Et=Object.defineProperty,k=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,U=(t,e,s)=>e in t?Et(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,q=(t,e)=>{for(var s in e||(e={}))Bt.call(e,s)&&U(t,s,e[s]);if(k)for(var s of k(e))It.call(e,s)&&U(t,s,e[s]);return t},D=t=>typeof t=="function",w=t=>typeof t=="string",J=t=>w(t)&&t.trim().length>0,Dt=t=>typeof t=="number",T=t=>typeof t=="undefined",O=t=>typeof t=="object"&&t!==null,wt=t=>h(t,"tag")&&J(t.tag),K=t=>window.TouchEvent&&t instanceof TouchEvent,Q=t=>h(t,"component")&&Y(t.component),Rt=t=>D(t)||O(t),Y=t=>!T(t)&&(w(t)||Rt(t)||Q(t)),z=t=>O(t)&&["height","width","right","left","top","bottom"].every(e=>Dt(t[e])),h=(t,e)=>(O(t)||D(t))&&e in t,Pt=(t=>()=>t++)(0);function P(t){return K(t)?t.targetTouches[0].clientX:t.clientX}function j(t){return K(t)?t.targetTouches[0].clientY:t.clientY}var Nt=t=>{T(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove()},S=t=>Q(t)?S(t.component):wt(t)?C({render(){return t}}):typeof t=="string"?t:mt(pt(t)),At=t=>{if(typeof t=="string")return t;const e=h(t,"props")&&O(t.props)?t.props:{},s=h(t,"listeners")&&O(t.listeners)?t.listeners:{};return{component:S(t),props:e,listeners:s}},Lt=()=>typeof window!="undefined",F=class{constructor(){this.allHandlers={}}getHandlers(t){return this.allHandlers[t]||[]}on(t,e){const s=this.getHandlers(t);s.push(e),this.allHandlers[t]=s}off(t,e){const s=this.getHandlers(t);s.splice(s.indexOf(e)>>>0,1)}emit(t,e){this.getHandlers(t).forEach(n=>n(e))}},Vt=t=>["on","off","emit"].every(e=>h(t,e)&&D(t[e])),i;(function(t){t.SUCCESS="success",t.ERROR="error",t.WARNING="warning",t.INFO="info",t.DEFAULT="default"})(i||(i={}));var B;(function(t){t.TOP_LEFT="top-left",t.TOP_CENTER="top-center",t.TOP_RIGHT="top-right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_CENTER="bottom-center",t.BOTTOM_RIGHT="bottom-right"})(B||(B={}));var l;(function(t){t.ADD="add",t.DISMISS="dismiss",t.UPDATE="update",t.CLEAR="clear",t.UPDATE_DEFAULTS="update_defaults"})(l||(l={}));var d="Vue-Toastification",c={type:{type:String,default:i.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Z={type:c.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},E={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:c.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},A={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},tt={transition:{type:[Object,String],default:`${d}__bounce`}},Mt={position:{type:String,default:B.TOP_RIGHT},draggable:c.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:c.trueBoolean,pauseOnHover:c.trueBoolean,closeOnClick:c.trueBoolean,timeout:A.timeout,hideProgressBar:A.hideProgressBar,toastClassName:c.classNames,bodyClassName:c.classNames,icon:Z.customIcon,closeButton:E.component,closeButtonClassName:E.classNames,showCloseButtonOnHover:E.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new F}},$t={id:{type:[String,Number],required:!0,default:0},type:c.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},Ft={container:{type:[Object,Function],default:()=>document.body},newestOnTop:c.trueBoolean,maxToasts:{type:Number,default:20},transition:tt.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:t=>t},filterToasts:{type:Function,default:t=>t},containerClassName:c.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},f={CORE_TOAST:Mt,TOAST:$t,CONTAINER:Ft,PROGRESS_BAR:A,ICON:Z,TRANSITION:tt,CLOSE_BUTTON:E},et=C({name:"VtProgressBar",props:f.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${d}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function Ht(t,e){return o(),u("div",{style:X(t.style),class:b(t.cpClass)},null,6)}et.render=Ht;var kt=et,st=C({name:"VtCloseButton",props:f.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?S(this.component):"button"},classes(){const t=[`${d}__close-button`];return this.showOnHover&&t.push("show-on-hover"),t.concat(this.classNames)}}}),Ut=$(" \xD7 ");function zt(t,e){return o(),p(M(t.buttonComponent),V({"aria-label":t.ariaLabel,class:t.classes},t.$attrs),{default:I(()=>[Ut]),_:1},16,["aria-label","class"])}st.render=zt;var jt=st,at={},Gt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Wt=_("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),Xt=[Wt];function xt(t,e){return o(),u("svg",Gt,Xt)}at.render=xt;var qt=at,nt={},Jt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kt=_("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Qt=[Kt];function Yt(t,e){return o(),u("svg",Jt,Qt)}nt.render=Yt;var G=nt,ot={},Zt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},te=_("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),ee=[te];function se(t,e){return o(),u("svg",Zt,ee)}ot.render=se;var ae=ot,rt={},ne={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},oe=_("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),re=[oe];function ie(t,e){return o(),u("svg",ne,re)}rt.render=ie;var le=rt,it=C({name:"VtIcon",props:f.ICON,computed:{customIconChildren(){return h(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return w(this.customIcon)?this.trimValue(this.customIcon):h(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return h(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Y(this.customIcon)?S(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[i.DEFAULT]:G,[i.INFO]:G,[i.SUCCESS]:qt,[i.ERROR]:le,[i.WARNING]:ae}[this.type]},iconClasses(){const t=[`${d}__icon`];return this.hasCustomIcon?t.concat(this.customIconClass):t}},methods:{trimValue(t,e=""){return J(t)?t.trim():e}}});function ce(t,e){return o(),p(M(t.component),{class:b(t.iconClasses)},{default:I(()=>[$(x(t.customIconChildren),1)]),_:1},8,["class"])}it.render=ce;var ue=it,lt=C({name:"VtToast",components:{ProgressBar:kt,CloseButton:jt,Icon:ue},inheritAttrs:!1,props:Object.assign({},f.CORE_TOAST,f.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const t=[`${d}__toast`,`${d}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&t.push("disable-transition"),this.rtl&&t.push(`${d}__toast--rtl`),t},bodyClasses(){return[`${d}__toast-${w(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return z(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:h,getVueComponentFromObj:S,closeToast(){this.eventBus.emit(l.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const t=this.$el;t.addEventListener("touchstart",this.onDragStart,{passive:!0}),t.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const t=this.$el;t.removeEventListener("touchstart",this.onDragStart),t.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(t){this.beingDragged=!0,this.dragPos={x:P(t),y:j(t)},this.dragStart=P(t),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(t){this.beingDragged&&(t.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:P(t),y:j(t)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,z(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),de=["role"];function he(t,e){const s=y("Icon"),n=y("CloseButton"),v=y("ProgressBar");return o(),u("div",{class:b(t.classes),style:X(t.draggableStyle),onClick:e[0]||(e[0]=(...a)=>t.clickHandler&&t.clickHandler(...a)),onMouseenter:e[1]||(e[1]=(...a)=>t.hoverPause&&t.hoverPause(...a)),onMouseleave:e[2]||(e[2]=(...a)=>t.hoverPlay&&t.hoverPlay(...a))},[t.icon?(o(),p(s,{key:0,"custom-icon":t.icon,type:t.type},null,8,["custom-icon","type"])):R("v-if",!0),_("div",{role:t.accessibility.toastRole||"alert",class:b(t.bodyClasses)},[typeof t.content=="string"?(o(),u(N,{key:0},[$(x(t.content),1)],2112)):(o(),p(M(t.getVueComponentFromObj(t.content)),V({key:1,"toast-id":t.id},t.hasProp(t.content,"props")?t.content.props:{},vt(t.hasProp(t.content,"listeners")?t.content.listeners:{}),{onCloseToast:t.closeToast}),null,16,["toast-id","onCloseToast"]))],10,de),t.closeButton?(o(),p(n,{key:1,component:t.closeButton,"class-names":t.closeButtonClassName,"show-on-hover":t.showCloseButtonOnHover,"aria-label":t.accessibility.closeButtonLabel,onClick:gt(t.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):R("v-if",!0),t.timeout?(o(),p(v,{key:2,"is-running":t.isRunning,"hide-progress-bar":t.hideProgressBar,timeout:t.timeout,onCloseToast:t.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):R("v-if",!0)],38)}lt.render=he;var fe=lt,ct=C({name:"VtTransition",props:f.TRANSITION,emits:["leave"],methods:{hasProp:h,leave(t){t instanceof HTMLElement&&(t.style.left=t.offsetLeft+"px",t.style.top=t.offsetTop+"px",t.style.width=getComputedStyle(t).width,t.style.position="absolute")}}});function me(t,e){return o(),p(Ct,{tag:"div","enter-active-class":t.transition.enter?t.transition.enter:`${t.transition}-enter-active`,"move-class":t.transition.move?t.transition.move:`${t.transition}-move`,"leave-active-class":t.transition.leave?t.transition.leave:`${t.transition}-leave-active`,onLeave:t.leave},{default:I(()=>[Tt(t.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}ct.render=me;var pe=ct,ut=C({name:"VueToastification",devtools:{hide:!0},components:{Toast:fe,VtTransition:pe},props:Object.assign({},f.CORE_TOAST,f.CONTAINER,f.TRANSITION),data(){return{count:0,positions:Object.values(B),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const t=this.eventBus;t.on(l.ADD,this.addToast),t.on(l.CLEAR,this.clearToasts),t.on(l.DISMISS,this.dismissToast),t.on(l.UPDATE,this.updateToast),t.on(l.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(t){D(t)&&(t=await t()),Nt(this.$el),t.appendChild(this.$el)},setToast(t){T(t.id)||(this.toasts[t.id]=t)},addToast(t){t.content=At(t.content);const e=Object.assign({},this.defaults,t.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[t.type],t),s=this.defaults.filterBeforeCreate(e,this.toastArray);s&&this.setToast(s)},dismissToast(t){const e=this.toasts[t];!T(e)&&!T(e.onClose)&&e.onClose(),delete this.toasts[t]},clearToasts(){Object.keys(this.toasts).forEach(t=>{this.dismissToast(t)})},getPositionToasts(t){const e=this.filteredToasts.filter(s=>s.position===t).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?e.reverse():e},updateDefaults(t){T(t.container)||this.setup(t.container),this.defaults=Object.assign({},this.defaults,t)},updateToast({id:t,options:e,create:s}){this.toasts[t]?(e.timeout&&e.timeout===this.toasts[t].timeout&&e.timeout++,this.setToast(Object.assign({},this.toasts[t],e))):s&&this.addToast(Object.assign({},{id:t},e))},getClasses(t){return[`${d}__container`,t].concat(this.defaults.containerClassName)}}});function ve(t,e){const s=y("Toast"),n=y("VtTransition");return o(),u("div",null,[(o(!0),u(N,null,H(t.positions,v=>(o(),u("div",{key:v},[yt(n,{transition:t.defaults.transition,class:b(t.getClasses(v))},{default:I(()=>[(o(!0),u(N,null,H(t.getPositionToasts(v),a=>(o(),p(s,V({key:a.id},a),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}ut.render=ve;var ge=ut,W=(t={},e=!0)=>{const s=t.eventBus=t.eventBus||new F;e&&_t(()=>{const a=St(ge,q({},t)),r=a.mount(document.createElement("div")),g=t.onMounted;if(T(g)||g(r,a),t.shareAppContext){const m=t.shareAppContext;m===!0?console.warn(`[${d}] App to share context with was not provided.`):(a._context.components=m._context.components,a._context.directives=m._context.directives,a._context.mixins=m._context.mixins,a._context.provides=m._context.provides,a.config.globalProperties=m.config.globalProperties)}});const n=(a,r)=>{const g=Object.assign({},{id:Pt(),type:i.DEFAULT},r,{content:a});return s.emit(l.ADD,g),g.id};n.clear=()=>s.emit(l.CLEAR,void 0),n.updateDefaults=a=>{s.emit(l.UPDATE_DEFAULTS,a)},n.dismiss=a=>{s.emit(l.DISMISS,a)};function v(a,{content:r,options:g},m=!1){const ft=Object.assign({},g,{content:r});s.emit(l.UPDATE,{id:a,options:ft,create:m})}return n.update=v,n.success=(a,r)=>n(a,Object.assign({},r,{type:i.SUCCESS})),n.info=(a,r)=>n(a,Object.assign({},r,{type:i.INFO})),n.error=(a,r)=>n(a,Object.assign({},r,{type:i.ERROR})),n.warning=(a,r)=>n(a,Object.assign({},r,{type:i.WARNING})),n},Te=()=>{const t=()=>console.warn(`[${d}] This plugin does not support SSR!`);return new Proxy(t,{get(){return t}})};function L(t){return Lt()?Vt(t)?W({eventBus:t},!1):W(t,!0):Te()}var dt=Symbol("VueToastification"),ht=new F,Ce=(t,e)=>{(e==null?void 0:e.shareAppContext)===!0&&(e.shareAppContext=t);const s=L(q({eventBus:ht},e));t.provide(dt,s)},Oe=t=>{if(t)return L(t);const e=bt()?Ot(dt,void 0):void 0;return e||L(ht)},_e=Ce;export{_e as s,Oe as u}; diff --git a/assets/vue.804e2479.js b/assets/vue.804e2479.js new file mode 100644 index 0000000..424d192 --- /dev/null +++ b/assets/vue.804e2479.js @@ -0,0 +1 @@ +import{g as u}from"./amator.1e5a40c8.js";import{r as c,i as f,N as n,e as p,c as S,a as v,E as h,R,b as C,d as y,f as b,g,h as w,j as E,k as T,l as x,m as k,n as M,o as D,p as P,q as V,s as N,t as A,u as B,v as H,w as F,x as U,y as z,z as I,A as K,B as O,C as j,D as _,F as q,G as W,H as L,I as G,J as $,K as J,L as Q,M as X,O as Y,P as Z,S as ee,Q as ae,T as se,U as te,V as oe,W as re,X as ne,Y as ie,Z as ce,_ as le,$ as de,a0 as me,a1 as ue,a2 as fe,a3 as pe,a4 as Se,a5 as ve,a6 as he,a7 as Re,a8 as Ce,a9 as ye,aa as be,ab as ge,ac as we,ad as Ee,ae as Te,af as xe,ag as ke,ah as Me,ai as De,aj as Pe,ak as Ve,al as Ne,am as Ae,an as Be,ao as He,ap as Fe,aq as Ue,ar as ze,as as Ie,at as Ke,au as Oe,av as je,aw as _e,ax as qe,ay as We,az as Le,aA as Ge,aB as $e,aC as Je,aD as Qe,aE as Xe,aF as Ye,aG as Ze,aH as ea,aI as aa,aJ as sa,aK as ta,aL as oa,aM as ra,aN as na,aO as ia,aP as ca,aQ as la,aR as da,aS as ma,aT as ua,aU as fa,aV as pa,aW as Sa,aX as va,aY as ha,aZ as Ra,a_ as Ca,a$ as ya,b0 as ba,b1 as ga,b2 as wa,b3 as Ea,b4 as Ta,b5 as xa,b6 as ka,b7 as Ma,b8 as Da,b9 as Pa,ba as Va,bb as Na,bc as Aa,bd as Ba,be as Ha,bf as Fa,bg as Ua,bh as za,bi as Ia,bj as Ka,bk as Oa,bl as ja,bm as _a,bn as qa,bo as Wa,bp as La,bq as Ga,br as $a,bs as Ja,bt as Qa,bu as Xa,bv as Ya}from"./@vue.6f8187b0.js";const i=Object.create(null);function l(e,d){if(!f(e))if(e.nodeType)e=e.innerHTML;else return n;const t=e,o=i[t];if(o)return o;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const s=p({hoistStatic:!0,onError:void 0,onWarn:n},d);!s.isCustomElement&&typeof customElements!="undefined"&&(s.isCustomElement=a=>!!customElements.get(a));const{code:m}=S(e,s),r=new Function("Vue",m)(v);return r._rc=!0,i[t]=r}c(l);var Za=Object.freeze(Object.defineProperty({__proto__:null,compile:l,EffectScope:h,ReactiveEffect:R,customRef:C,effect:y,effectScope:b,getCurrentScope:g,isProxy:w,isReactive:E,isReadonly:T,isRef:x,isShallow:k,markRaw:M,onScopeDispose:D,proxyRefs:P,reactive:V,readonly:N,ref:A,shallowReactive:B,shallowReadonly:H,shallowRef:F,stop:U,toRaw:z,toRef:I,toRefs:K,triggerRef:O,unref:j,camelize:_,capitalize:q,normalizeClass:W,normalizeProps:L,normalizeStyle:G,toDisplayString:$,toHandlerKey:J,BaseTransition:Q,Comment:X,Fragment:Y,KeepAlive:Z,Static:ee,Suspense:ae,Teleport:se,Text:te,assertNumber:oe,callWithAsyncErrorHandling:re,callWithErrorHandling:ne,cloneVNode:ie,compatUtils:ce,computed:le,createBlock:de,createCommentVNode:me,createElementBlock:ue,createElementVNode:fe,createHydrationRenderer:pe,createPropsRestProxy:Se,createRenderer:ve,createSlots:he,createStaticVNode:Re,createTextVNode:Ce,createVNode:ye,defineAsyncComponent:be,defineComponent:ge,defineEmits:we,defineExpose:Ee,defineProps:Te,get devtools(){return xe},getCurrentInstance:ke,getTransitionRawChildren:Me,guardReactiveProps:De,h:Pe,handleError:Ve,initCustomFormatter:Ne,inject:Ae,isMemoSame:Be,isRuntimeOnly:He,isVNode:Fe,mergeDefaults:Ue,mergeProps:ze,nextTick:Ie,onActivated:Ke,onBeforeMount:Oe,onBeforeUnmount:je,onBeforeUpdate:_e,onDeactivated:qe,onErrorCaptured:We,onMounted:Le,onRenderTracked:Ge,onRenderTriggered:$e,onServerPrefetch:Je,onUnmounted:Qe,onUpdated:Xe,openBlock:Ye,popScopeId:Ze,provide:ea,pushScopeId:aa,queuePostFlushCb:sa,registerRuntimeCompiler:c,renderList:ta,renderSlot:oa,resolveComponent:ra,resolveDirective:na,resolveDynamicComponent:ia,resolveFilter:ca,resolveTransitionHooks:la,setBlockTracking:da,setDevtoolsHook:ma,setTransitionHooks:ua,ssrContextKey:fa,ssrUtils:pa,toHandlers:Sa,transformVNodeArgs:va,useAttrs:ha,useSSRContext:Ra,useSlots:Ca,useTransitionState:ya,version:ba,warn:ga,watch:wa,watchEffect:Ea,watchPostEffect:Ta,watchSyncEffect:xa,withAsyncContext:ka,withCtx:Ma,withDefaults:Da,withDirectives:Pa,withMemo:Va,withScopeId:Na,Transition:Aa,TransitionGroup:Ba,VueElement:Ha,createApp:Fa,createSSRApp:Ua,defineCustomElement:za,defineSSRCustomElement:Ia,hydrate:Ka,initDirectivesForSSR:Oa,render:ja,useCssModule:_a,useCssVars:qa,vModelCheckbox:Wa,vModelDynamic:La,vModelRadio:Ga,vModelSelect:$a,vModelText:Ja,vShow:Qa,withKeys:Xa,withModifiers:Ya},Symbol.toStringTag,{value:"Module"})),ss=u(Za);export{ss as r}; diff --git a/assets/vue.af9696a7.js b/assets/vue.af9696a7.js deleted file mode 100644 index 588c553..0000000 --- a/assets/vue.af9696a7.js +++ /dev/null @@ -1 +0,0 @@ -import{g as u}from"./lz-string.bfbf8ec3.js";import{r as c,i as f,N as n,e as p,c as S,a as v,E as h,R,b as C,d as y,f as b,g,h as w,j as E,k as T,l as x,m as k,n as M,o as D,p as P,q as V,s as N,t as A,u as B,v as H,w as F,x as U,y as z,z as I,A as K,B as O,C as j,D as _,F as q,G as W,H as L,I as G,J as $,K as J,L as Q,M as X,O as Y,P as Z,S as ee,Q as ae,T as se,U as te,V as oe,W as re,X as ne,Y as ie,Z as ce,_ as le,$ as de,a0 as me,a1 as ue,a2 as fe,a3 as pe,a4 as Se,a5 as ve,a6 as he,a7 as Re,a8 as Ce,a9 as ye,aa as be,ab as ge,ac as we,ad as Ee,ae as Te,af as xe,ag as ke,ah as Me,ai as De,aj as Pe,ak as Ve,al as Ne,am as Ae,an as Be,ao as He,ap as Fe,aq as Ue,ar as ze,as as Ie,at as Ke,au as Oe,av as je,aw as _e,ax as qe,ay as We,az as Le,aA as Ge,aB as $e,aC as Je,aD as Qe,aE as Xe,aF as Ye,aG as Ze,aH as ea,aI as aa,aJ as sa,aK as ta,aL as oa,aM as ra,aN as na,aO as ia,aP as ca,aQ as la,aR as da,aS as ma,aT as ua,aU as fa,aV as pa,aW as Sa,aX as va,aY as ha,aZ as Ra,a_ as Ca,a$ as ya,b0 as ba,b1 as ga,b2 as wa,b3 as Ea,b4 as Ta,b5 as xa,b6 as ka,b7 as Ma,b8 as Da,b9 as Pa,ba as Va,bb as Na,bc as Aa,bd as Ba,be as Ha,bf as Fa,bg as Ua,bh as za,bi as Ia,bj as Ka,bk as Oa,bl as ja,bm as _a,bn as qa,bo as Wa,bp as La,bq as Ga,br as $a,bs as Ja,bt as Qa,bu as Xa,bv as Ya}from"./@vue.6f8187b0.js";const i=Object.create(null);function l(e,d){if(!f(e))if(e.nodeType)e=e.innerHTML;else return n;const t=e,o=i[t];if(o)return o;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const s=p({hoistStatic:!0,onError:void 0,onWarn:n},d);!s.isCustomElement&&typeof customElements!="undefined"&&(s.isCustomElement=a=>!!customElements.get(a));const{code:m}=S(e,s),r=new Function("Vue",m)(v);return r._rc=!0,i[t]=r}c(l);var Za=Object.freeze(Object.defineProperty({__proto__:null,compile:l,EffectScope:h,ReactiveEffect:R,customRef:C,effect:y,effectScope:b,getCurrentScope:g,isProxy:w,isReactive:E,isReadonly:T,isRef:x,isShallow:k,markRaw:M,onScopeDispose:D,proxyRefs:P,reactive:V,readonly:N,ref:A,shallowReactive:B,shallowReadonly:H,shallowRef:F,stop:U,toRaw:z,toRef:I,toRefs:K,triggerRef:O,unref:j,camelize:_,capitalize:q,normalizeClass:W,normalizeProps:L,normalizeStyle:G,toDisplayString:$,toHandlerKey:J,BaseTransition:Q,Comment:X,Fragment:Y,KeepAlive:Z,Static:ee,Suspense:ae,Teleport:se,Text:te,assertNumber:oe,callWithAsyncErrorHandling:re,callWithErrorHandling:ne,cloneVNode:ie,compatUtils:ce,computed:le,createBlock:de,createCommentVNode:me,createElementBlock:ue,createElementVNode:fe,createHydrationRenderer:pe,createPropsRestProxy:Se,createRenderer:ve,createSlots:he,createStaticVNode:Re,createTextVNode:Ce,createVNode:ye,defineAsyncComponent:be,defineComponent:ge,defineEmits:we,defineExpose:Ee,defineProps:Te,get devtools(){return xe},getCurrentInstance:ke,getTransitionRawChildren:Me,guardReactiveProps:De,h:Pe,handleError:Ve,initCustomFormatter:Ne,inject:Ae,isMemoSame:Be,isRuntimeOnly:He,isVNode:Fe,mergeDefaults:Ue,mergeProps:ze,nextTick:Ie,onActivated:Ke,onBeforeMount:Oe,onBeforeUnmount:je,onBeforeUpdate:_e,onDeactivated:qe,onErrorCaptured:We,onMounted:Le,onRenderTracked:Ge,onRenderTriggered:$e,onServerPrefetch:Je,onUnmounted:Qe,onUpdated:Xe,openBlock:Ye,popScopeId:Ze,provide:ea,pushScopeId:aa,queuePostFlushCb:sa,registerRuntimeCompiler:c,renderList:ta,renderSlot:oa,resolveComponent:ra,resolveDirective:na,resolveDynamicComponent:ia,resolveFilter:ca,resolveTransitionHooks:la,setBlockTracking:da,setDevtoolsHook:ma,setTransitionHooks:ua,ssrContextKey:fa,ssrUtils:pa,toHandlers:Sa,transformVNodeArgs:va,useAttrs:ha,useSSRContext:Ra,useSlots:Ca,useTransitionState:ya,version:ba,warn:ga,watch:wa,watchEffect:Ea,watchPostEffect:Ta,watchSyncEffect:xa,withAsyncContext:ka,withCtx:Ma,withDefaults:Da,withDirectives:Pa,withMemo:Va,withScopeId:Na,Transition:Aa,TransitionGroup:Ba,VueElement:Ha,createApp:Fa,createSSRApp:Ua,defineCustomElement:za,defineSSRCustomElement:Ia,hydrate:Ka,initDirectivesForSSR:Oa,render:ja,useCssModule:_a,useCssVars:qa,vModelCheckbox:Wa,vModelDynamic:La,vModelRadio:Ga,vModelSelect:$a,vModelText:Ja,vShow:Qa,withKeys:Xa,withModifiers:Ya},Symbol.toStringTag,{value:"Module"})),ss=u(Za);export{ss as r}; diff --git a/assets/vuedraggable.d64f1a1f.js b/assets/vuedraggable.ce650350.js similarity index 63% rename from assets/vuedraggable.d64f1a1f.js rename to assets/vuedraggable.ce650350.js index e6c9cb0..cf9a02e 100644 --- a/assets/vuedraggable.d64f1a1f.js +++ b/assets/vuedraggable.ce650350.js @@ -1,4 +1,4 @@ -import{c as jt,a as Ct}from"./lz-string.bfbf8ec3.js";import{r as Lt}from"./vue.af9696a7.js";import{r as Ft}from"./sortablejs.32c18112.js";var Pt={exports:{}};(function(Rt,Dt){(function(bt,o){Rt.exports=o(Lt,Ft)})(typeof self!="undefined"?self:jt,function(Tt,bt){return function(o){var g={};function t(r){if(g[r])return g[r].exports;var e=g[r]={i:r,l:!1,exports:{}};return o[r].call(e.exports,e,e.exports,t),e.l=!0,e.exports}return t.m=o,t.c=g,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(e&1&&(r=t(r)),e&8||e&4&&typeof r=="object"&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),e&2&&typeof r!="string")for(var a in r)t.d(n,a,function(i){return r[i]}.bind(null,a));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s="fb15")}({"00ee":function(o,g,t){var r=t("b622"),e=r("toStringTag"),n={};n[e]="z",o.exports=String(n)==="[object z]"},"0366":function(o,g,t){var r=t("1c0b");o.exports=function(e,n,a){if(r(e),n===void 0)return e;switch(a){case 0:return function(){return e.call(n)};case 1:return function(i){return e.call(n,i)};case 2:return function(i,f){return e.call(n,i,f)};case 3:return function(i,f,s){return e.call(n,i,f,s)}}return function(){return e.apply(n,arguments)}}},"057f":function(o,g,t){var r=t("fc6a"),e=t("241c").f,n={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i=function(f){try{return e(f)}catch{return a.slice()}};o.exports.f=function(s){return a&&n.call(s)=="[object Window]"?i(s):e(r(s))}},"06cf":function(o,g,t){var r=t("83ab"),e=t("d1e7"),n=t("5c6c"),a=t("fc6a"),i=t("c04e"),f=t("5135"),s=t("0cfb"),u=Object.getOwnPropertyDescriptor;g.f=r?u:function(c,m){if(c=a(c),m=i(m,!0),s)try{return u(c,m)}catch{}if(f(c,m))return n(!e.f.call(c,m),c[m])}},"0cfb":function(o,g,t){var r=t("83ab"),e=t("d039"),n=t("cc12");o.exports=!r&&!e(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,g,t){var r=t("23e7"),e=t("d58f").left,n=t("a640"),a=t("ae40"),i=n("reduce"),f=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!i||!f},{reduce:function(u){return e(this,u,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,g,t){var r=t("c6b6"),e=t("9263");o.exports=function(n,a){var i=n.exec;if(typeof i=="function"){var f=i.call(n,a);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(r(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return e.call(n,a)}},"159b":function(o,g,t){var r=t("da84"),e=t("fdbc"),n=t("17c2"),a=t("9112");for(var i in e){var f=r[i],s=f&&f.prototype;if(s&&s.forEach!==n)try{a(s,"forEach",n)}catch{s.forEach=n}}},"17c2":function(o,g,t){var r=t("b727").forEach,e=t("a640"),n=t("ae40"),a=e("forEach"),i=n("forEach");o.exports=!a||!i?function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,g,t){var r=t("d066");o.exports=r("document","documentElement")},"1c0b":function(o,g){o.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(o,g,t){var r=t("b622"),e=r("iterator"),n=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){n=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}o.exports=function(f,s){if(!s&&!n)return!1;var u=!1;try{var l={};l[e]=function(){return{next:function(){return{done:u=!0}}}},f(l)}catch{}return u}},"1d80":function(o,g){o.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(o,g,t){var r=t("d039"),e=t("b622"),n=t("2d00"),a=e("species");o.exports=function(i){return n>=51||!r(function(){var f=[],s=f.constructor={};return s[a]=function(){return{foo:1}},f[i](Boolean).foo!==1})}},"23cb":function(o,g,t){var r=t("a691"),e=Math.max,n=Math.min;o.exports=function(a,i){var f=r(a);return f<0?e(f+i,0):n(f,i)}},"23e7":function(o,g,t){var r=t("da84"),e=t("06cf").f,n=t("9112"),a=t("6eeb"),i=t("ce4e"),f=t("e893"),s=t("94ca");o.exports=function(u,l){var c=u.target,m=u.global,h=u.stat,O,E,I,p,L,F;if(m?E=r:h?E=r[c]||i(c,{}):E=(r[c]||{}).prototype,E)for(I in l){if(L=l[I],u.noTargetGet?(F=e(E,I),p=F&&F.value):p=E[I],O=s(m?I:c+(h?".":"#")+I,u.forced),!O&&p!==void 0){if(typeof L==typeof p)continue;f(L,p)}(u.sham||p&&p.sham)&&n(L,"sham",!0),a(E,I,L,u)}}},"241c":function(o,g,t){var r=t("ca84"),e=t("7839"),n=e.concat("length","prototype");g.f=Object.getOwnPropertyNames||function(i){return r(i,n)}},"25f0":function(o,g,t){var r=t("6eeb"),e=t("825a"),n=t("d039"),a=t("ad6d"),i="toString",f=RegExp.prototype,s=f[i],u=n(function(){return s.call({source:"a",flags:"b"})!="/a/b"}),l=s.name!=i;(u||l)&&r(RegExp.prototype,i,function(){var m=e(this),h=String(m.source),O=m.flags,E=String(O===void 0&&m instanceof RegExp&&!("flags"in f)?a.call(m):O);return"/"+h+"/"+E},{unsafe:!0})},"2ca0":function(o,g,t){var r=t("23e7"),e=t("06cf").f,n=t("50c4"),a=t("5a34"),i=t("1d80"),f=t("ab13"),s=t("c430"),u="".startsWith,l=Math.min,c=f("startsWith"),m=!s&&!c&&!!function(){var h=e(String.prototype,"startsWith");return h&&!h.writable}();r({target:"String",proto:!0,forced:!m&&!c},{startsWith:function(O){var E=String(i(this));a(O);var I=n(l(arguments.length>1?arguments[1]:void 0,E.length)),p=String(O);return u?u.call(E,p,I):E.slice(I,I+p.length)===p}})},"2d00":function(o,g,t){var r=t("da84"),e=t("342f"),n=r.process,a=n&&n.versions,i=a&&a.v8,f,s;i?(f=i.split("."),s=f[0]+f[1]):e&&(f=e.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=e.match(/Chrome\/(\d+)/),f&&(s=f[1]))),o.exports=s&&+s},"342f":function(o,g,t){var r=t("d066");o.exports=r("navigator","userAgent")||""},"35a1":function(o,g,t){var r=t("f5df"),e=t("3f8c"),n=t("b622"),a=n("iterator");o.exports=function(i){if(i!=null)return i[a]||i["@@iterator"]||e[r(i)]}},"37e8":function(o,g,t){var r=t("83ab"),e=t("9bf2"),n=t("825a"),a=t("df75");o.exports=r?Object.defineProperties:function(f,s){n(f);for(var u=a(s),l=u.length,c=0,m;l>c;)e.f(f,m=u[c++],s[m]);return f}},"3bbe":function(o,g,t){var r=t("861d");o.exports=function(e){if(!r(e)&&e!==null)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(o,g,t){var r=t("6547").charAt,e=t("69f3"),n=t("7dd0"),a="String Iterator",i=e.set,f=e.getterFor(a);n(String,"String",function(s){i(this,{type:a,string:String(s),index:0})},function(){var u=f(this),l=u.string,c=u.index,m;return c>=l.length?{value:void 0,done:!0}:(m=r(l,c),u.index+=m.length,{value:m,done:!1})})},"3f8c":function(o,g){o.exports={}},4160:function(o,g,t){var r=t("23e7"),e=t("17c2");r({target:"Array",proto:!0,forced:[].forEach!=e},{forEach:e})},"428f":function(o,g,t){var r=t("da84");o.exports=r},"44ad":function(o,g,t){var r=t("d039"),e=t("c6b6"),n="".split;o.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return e(a)=="String"?n.call(a,""):Object(a)}:Object},"44d2":function(o,g,t){var r=t("b622"),e=t("7c73"),n=t("9bf2"),a=r("unscopables"),i=Array.prototype;i[a]==null&&n.f(i,a,{configurable:!0,value:e(null)}),o.exports=function(f){i[a][f]=!0}},"44e7":function(o,g,t){var r=t("861d"),e=t("c6b6"),n=t("b622"),a=n("match");o.exports=function(i){var f;return r(i)&&((f=i[a])!==void 0?!!f:e(i)=="RegExp")}},4930:function(o,g,t){var r=t("d039");o.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(o,g,t){var r=t("fc6a"),e=t("50c4"),n=t("23cb"),a=function(i){return function(f,s,u){var l=r(f),c=e(l.length),m=n(u,c),h;if(i&&s!=s){for(;c>m;)if(h=l[m++],h!=h)return!0}else for(;c>m;m++)if((i||m in l)&&l[m]===s)return i||m||0;return!i&&-1}};o.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(o,g,t){var r=t("23e7"),e=t("b727").filter,n=t("1dde"),a=t("ae40"),i=n("filter"),f=a("filter");r({target:"Array",proto:!0,forced:!i||!f},{filter:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,g,t){var r=t("0366"),e=t("7b0b"),n=t("9bdd"),a=t("e95a"),i=t("50c4"),f=t("8418"),s=t("35a1");o.exports=function(l){var c=e(l),m=typeof this=="function"?this:Array,h=arguments.length,O=h>1?arguments[1]:void 0,E=O!==void 0,I=s(c),p=0,L,F,S,P,C,K;if(E&&(O=r(O,h>2?arguments[2]:void 0,2)),I!=null&&!(m==Array&&a(I)))for(P=I.call(c),C=P.next,F=new m;!(S=C.call(P)).done;p++)K=E?n(P,O,[S.value,p],!0):S.value,f(F,p,K);else for(L=i(c.length),F=new m(L);L>p;p++)K=E?O(c[p],p):c[p],f(F,p,K);return F.length=p,F}},"4fad":function(o,g,t){var r=t("23e7"),e=t("6f53").entries;r({target:"Object",stat:!0},{entries:function(a){return e(a)}})},"50c4":function(o,g,t){var r=t("a691"),e=Math.min;o.exports=function(n){return n>0?e(r(n),9007199254740991):0}},5135:function(o,g){var t={}.hasOwnProperty;o.exports=function(r,e){return t.call(r,e)}},5319:function(o,g,t){var r=t("d784"),e=t("825a"),n=t("7b0b"),a=t("50c4"),i=t("a691"),f=t("1d80"),s=t("8aa5"),u=t("14c3"),l=Math.max,c=Math.min,m=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,O=/\$([$&'`]|\d\d?)/g,E=function(I){return I===void 0?I:String(I)};r("replace",2,function(I,p,L,F){var S=F.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,P=F.REPLACE_KEEPS_$0,C=S?"$":"$0";return[function(b,G){var R=f(this),M=b==null?void 0:b[I];return M!==void 0?M.call(b,R,G):p.call(String(R),b,G)},function(T,b){if(!S&&P||typeof b=="string"&&b.indexOf(C)===-1){var G=L(p,T,this,b);if(G.done)return G.value}var R=e(T),M=String(this),W=typeof b=="function";W||(b=String(b));var z=R.global;if(z){var rt=R.unicode;R.lastIndex=0}for(var w=[];;){var Q=u(R,M);if(Q===null||(w.push(Q),!z))break;var k=String(Q[0]);k===""&&(R.lastIndex=s(M,a(R.lastIndex),rt))}for(var q="",Z=0,X=0;X=Z&&(q+=M.slice(Z,ot)+_,Z=ot+Y.length)}return q+M.slice(Z)}];function K(T,b,G,R,M,W){var z=G+T.length,rt=R.length,w=O;return M!==void 0&&(M=n(M),w=h),p.call(W,w,function(Q,k){var q;switch(k.charAt(0)){case"$":return"$";case"&":return T;case"`":return b.slice(0,G);case"'":return b.slice(z);case"<":q=M[k.slice(1,-1)];break;default:var Z=+k;if(Z===0)return Q;if(Z>rt){var X=m(Z/10);return X===0?Q:X<=rt?R[X-1]===void 0?k.charAt(1):R[X-1]+k.charAt(1):Q}q=R[Z-1]}return q===void 0?"":q})}})},5692:function(o,g,t){var r=t("c430"),e=t("c6cd");(o.exports=function(n,a){return e[n]||(e[n]=a!==void 0?a:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,g,t){var r=t("d066"),e=t("241c"),n=t("7418"),a=t("825a");o.exports=r("Reflect","ownKeys")||function(f){var s=e.f(a(f)),u=n.f;return u?s.concat(u(f)):s}},"5a34":function(o,g,t){var r=t("44e7");o.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(o,g){o.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}},"5db7":function(o,g,t){var r=t("23e7"),e=t("a2bf"),n=t("7b0b"),a=t("50c4"),i=t("1c0b"),f=t("65f0");r({target:"Array",proto:!0},{flatMap:function(u){var l=n(this),c=a(l.length),m;return i(u),m=f(l,0),m.length=e(m,l,l,c,0,1,u,arguments.length>1?arguments[1]:void 0),m}})},6547:function(o,g,t){var r=t("a691"),e=t("1d80"),n=function(a){return function(i,f){var s=String(e(i)),u=r(f),l=s.length,c,m;return u<0||u>=l?a?"":void 0:(c=s.charCodeAt(u),c<55296||c>56319||u+1===l||(m=s.charCodeAt(u+1))<56320||m>57343?a?s.charAt(u):c:a?s.slice(u,u+2):(c-55296<<10)+(m-56320)+65536)}};o.exports={codeAt:n(!1),charAt:n(!0)}},"65f0":function(o,g,t){var r=t("861d"),e=t("e8b5"),n=t("b622"),a=n("species");o.exports=function(i,f){var s;return e(i)&&(s=i.constructor,typeof s=="function"&&(s===Array||e(s.prototype))?s=void 0:r(s)&&(s=s[a],s===null&&(s=void 0))),new(s===void 0?Array:s)(f===0?0:f)}},"69f3":function(o,g,t){var r=t("7f9a"),e=t("da84"),n=t("861d"),a=t("9112"),i=t("5135"),f=t("f772"),s=t("d012"),u=e.WeakMap,l,c,m,h=function(S){return m(S)?c(S):l(S,{})},O=function(S){return function(P){var C;if(!n(P)||(C=c(P)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return C}};if(r){var E=new u,I=E.get,p=E.has,L=E.set;l=function(S,P){return L.call(E,S,P),P},c=function(S){return I.call(E,S)||{}},m=function(S){return p.call(E,S)}}else{var F=f("state");s[F]=!0,l=function(S,P){return a(S,F,P),P},c=function(S){return i(S,F)?S[F]:{}},m=function(S){return i(S,F)}}o.exports={set:l,get:c,has:m,enforce:h,getterFor:O}},"6eeb":function(o,g,t){var r=t("da84"),e=t("9112"),n=t("5135"),a=t("ce4e"),i=t("8925"),f=t("69f3"),s=f.get,u=f.enforce,l=String(String).split("String");(o.exports=function(c,m,h,O){var E=O?!!O.unsafe:!1,I=O?!!O.enumerable:!1,p=O?!!O.noTargetGet:!1;if(typeof h=="function"&&(typeof m=="string"&&!n(h,"name")&&e(h,"name",m),u(h).source=l.join(typeof m=="string"?m:"")),c===r){I?c[m]=h:a(m,h);return}else E?!p&&c[m]&&(I=!0):delete c[m];I?c[m]=h:e(c,m,h)})(Function.prototype,"toString",function(){return typeof this=="function"&&s(this).source||i(this)})},"6f53":function(o,g,t){var r=t("83ab"),e=t("df75"),n=t("fc6a"),a=t("d1e7").f,i=function(f){return function(s){for(var u=n(s),l=e(u),c=l.length,m=0,h=[],O;c>m;)O=l[m++],(!r||a.call(u,O))&&h.push(f?[O,u[O]]:u[O]);return h}};o.exports={entries:i(!0),values:i(!1)}},"73d9":function(o,g,t){var r=t("44d2");r("flatMap")},7418:function(o,g){g.f=Object.getOwnPropertySymbols},"746f":function(o,g,t){var r=t("428f"),e=t("5135"),n=t("e538"),a=t("9bf2").f;o.exports=function(i){var f=r.Symbol||(r.Symbol={});e(f,i)||a(f,i,{value:n.f(i)})}},7839:function(o,g){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,g,t){var r=t("1d80");o.exports=function(e){return Object(r(e))}},"7c73":function(o,g,t){var r=t("825a"),e=t("37e8"),n=t("7839"),a=t("d012"),i=t("1be4"),f=t("cc12"),s=t("f772"),u=">",l="<",c="prototype",m="script",h=s("IE_PROTO"),O=function(){},E=function(S){return l+m+u+S+l+"/"+m+u},I=function(S){S.write(E("")),S.close();var P=S.parentWindow.Object;return S=null,P},p=function(){var S=f("iframe"),P="java"+m+":",C;return S.style.display="none",i.appendChild(S),S.src=String(P),C=S.contentWindow.document,C.open(),C.write(E("document.F=Object")),C.close(),C.F},L,F=function(){try{L=document.domain&&new ActiveXObject("htmlfile")}catch{}F=L?I(L):p();for(var S=n.length;S--;)delete F[c][n[S]];return F()};a[h]=!0,o.exports=Object.create||function(P,C){var K;return P!==null?(O[c]=r(P),K=new O,O[c]=null,K[h]=P):K=F(),C===void 0?K:e(K,C)}},"7dd0":function(o,g,t){var r=t("23e7"),e=t("9ed3"),n=t("e163"),a=t("d2bb"),i=t("d44e"),f=t("9112"),s=t("6eeb"),u=t("b622"),l=t("c430"),c=t("3f8c"),m=t("ae93"),h=m.IteratorPrototype,O=m.BUGGY_SAFARI_ITERATORS,E=u("iterator"),I="keys",p="values",L="entries",F=function(){return this};o.exports=function(S,P,C,K,T,b,G){e(C,P,K);var R=function(X){if(X===T&&w)return w;if(!O&&X in z)return z[X];switch(X){case I:return function(){return new C(this,X)};case p:return function(){return new C(this,X)};case L:return function(){return new C(this,X)}}return function(){return new C(this)}},M=P+" Iterator",W=!1,z=S.prototype,rt=z[E]||z["@@iterator"]||T&&z[T],w=!O&&rt||R(T),Q=P=="Array"&&z.entries||rt,k,q,Z;if(Q&&(k=n(Q.call(new S)),h!==Object.prototype&&k.next&&(!l&&n(k)!==h&&(a?a(k,h):typeof k[E]!="function"&&f(k,E,F)),i(k,M,!0,!0),l&&(c[M]=F))),T==p&&rt&&rt.name!==p&&(W=!0,w=function(){return rt.call(this)}),(!l||G)&&z[E]!==w&&f(z,E,w),c[P]=w,T)if(q={values:R(p),keys:b?w:R(I),entries:R(L)},G)for(Z in q)(O||W||!(Z in z))&&s(z,Z,q[Z]);else r({target:P,proto:!0,forced:O||W},q);return q}},"7f9a":function(o,g,t){var r=t("da84"),e=t("8925"),n=r.WeakMap;o.exports=typeof n=="function"&&/native code/.test(e(n))},"825a":function(o,g,t){var r=t("861d");o.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(o,g,t){var r=t("d039");o.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,g,t){var r=t("c04e"),e=t("9bf2"),n=t("5c6c");o.exports=function(a,i,f){var s=r(i);s in a?e.f(a,s,n(0,f)):a[s]=f}},"861d":function(o,g){o.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(o,g,t){var r,e,n;(function(a,i){e=[],r=i,n=typeof r=="function"?r.apply(g,e):r,n!==void 0&&(o.exports=n)})(typeof self!="undefined"?self:this,function(){function a(){var i=Object.getOwnPropertyDescriptor(document,"currentScript");if(!i&&"currentScript"in document&&document.currentScript||i&&i.get!==a&&document.currentScript)return document.currentScript;try{throw new Error}catch(L){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,s=/@([^@]*):(\d+):(\d+)\s*$/ig,u=f.exec(L.stack)||s.exec(L.stack),l=u&&u[1]||!1,c=u&&u[2]||!1,m=document.location.href.replace(document.location.hash,""),h,O,E,I=document.getElementsByTagName("script");l===m&&(h=document.documentElement.outerHTML,O=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]* - - + + + - + - - - + + + + - + + + + + - + diff --git a/manifest.webmanifest b/manifest.webmanifest index fb0f608..66356a0 100644 --- a/manifest.webmanifest +++ b/manifest.webmanifest @@ -1 +1 @@ -{"name":"Profectus","short_name":"Profectus","start_url":"./","display":"standalone","background_color":"#ffffff","lang":"en","scope":"./","description":"A project made in Profectus","theme_color":"#2E3440","icons":[{"src":"pwa-192x192.png","sizes":"192x192","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]} +{"name":"Planar Pioneers","short_name":"Planar Pioneers","start_url":"./","display":"standalone","background_color":"#ffffff","lang":"en","scope":"./","description":"A game about controlling and exploiting planes!","theme_color":"#2E3440","icons":[{"src":"pwa-192x192.png","sizes":"192x192","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]} diff --git a/sw.js b/sw.js index 5065933..f72d2a6 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const l=e||("document"in self?document.currentScript.src:"")||location.href;if(s[l])return;let a={};const o=e=>i(e,l),u={module:{uri:l},exports:a,require:o};s[l]=Promise.all(n.map((e=>u[e]||o(e)))).then((e=>(r(...e),a)))}}define(["./workbox-7369c0e1"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"assets/@fontsource.f66d05e7.css",revision:null},{url:"assets/@vue.6f8187b0.js",revision:null},{url:"assets/gameLoop.daa88598.js",revision:null},{url:"assets/index.4e9c6b0b.js",revision:null},{url:"assets/index.e49d00cd.css",revision:null},{url:"assets/lz-string.bfbf8ec3.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/sortablejs.32c18112.js",revision:null},{url:"assets/vue-next-select.7a1e8cf3.js",revision:null},{url:"assets/vue-next-select.9e6f4164.css",revision:null},{url:"assets/vue-textarea-autosize.35804eaf.js",revision:null},{url:"assets/vue-toastification.1b0160a1.js",revision:null},{url:"assets/vue-toastification.4b5f8ac8.css",revision:null},{url:"assets/vue.af9696a7.js",revision:null},{url:"assets/vuedraggable.d64f1a1f.js",revision:null},{url:"assets/workbox-window.4a8794bb.js",revision:null},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"favicon.svg",revision:"c8dd2748f1fedd25449164d7dda6aecb"},{url:"index.html",revision:"b4d4dbe0cde32aaf75ee1cf9a7fe9240"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"49b9cd04ee2139bfe785f8100ba3f74f"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,l)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let a={};const o=e=>i(e,r),u={module:{uri:r},exports:a,require:o};s[r]=Promise.all(n.map((e=>u[e]||o(e)))).then((e=>(l(...e),a)))}}define(["./workbox-7369c0e1"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"assets/@fontsource.f66d05e7.css",revision:null},{url:"assets/@vue.6f8187b0.js",revision:null},{url:"assets/amator.1e5a40c8.js",revision:null},{url:"assets/bezier-easing.a990b400.js",revision:null},{url:"assets/gameLoop.9e3763f2.js",revision:null},{url:"assets/index.4aba14bb.css",revision:null},{url:"assets/index.aef2425c.js",revision:null},{url:"assets/lz-string.dccec454.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/ngraph.events.083734c6.js",revision:null},{url:"assets/panzoom.30c56ba6.js",revision:null},{url:"assets/sortablejs.a0f68e5e.js",revision:null},{url:"assets/vue-next-select.9e6f4164.css",revision:null},{url:"assets/vue-next-select.f5f69b1a.js",revision:null},{url:"assets/vue-panzoom.89be130f.js",revision:null},{url:"assets/vue-textarea-autosize.35804eaf.js",revision:null},{url:"assets/vue-toastification.4b5f8ac8.css",revision:null},{url:"assets/vue-toastification.5231d1bd.js",revision:null},{url:"assets/vue.804e2479.js",revision:null},{url:"assets/vuedraggable.ce650350.js",revision:null},{url:"assets/wheel.f2ae740f.js",revision:null},{url:"assets/workbox-window.4a8794bb.js",revision:null},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"favicon.svg",revision:"c8dd2748f1fedd25449164d7dda6aecb"},{url:"index.html",revision:"215de3a75fea961ac5e2f62a225f5e69"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"e1e419fec40e2d042566c11fe4bce322"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));