From f0dec0b6e997bfdb474285af42c1513273939fce Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 20 Feb 2023 05:14:41 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20thepaper?= =?UTF-8?q?pilot/Super-Auto-Coots@caa3783c4b069da7849325075d4f15bd6124310f?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/@pixi.1eac1889.js | 552 ++++++++++++++++++ assets/earcut.b6f90e68.js | 1 + assets/eventemitter3.dc5195d7.js | 1 + assets/gameLoop.ed7f4ea7.js | 1 - assets/gameLoop.f1593b24.js | 1 + ...{index.7f7e174e.css => index.34fd6db2.css} | 2 +- assets/index.624ae6e9.js | 15 - assets/index.98888828.js | 15 + assets/ismobilejs.5c6954b9.js | 1 + assets/lru-cache.9506e0ec.js | 1 - assets/lru-cache.9a21e90b.js | 1 + assets/querystring.23ae9a54.js | 1 + ...{semver.d101e2be.js => semver.83ff78cf.js} | 2 +- ...ejs.80af5380.js => sortablejs.cbae5b2d.js} | 2 +- assets/url.e51cb87b.js | 2 + ...d9e0122.js => vue-next-select.0dc4e443.js} | 2 +- ...a510.js => vue-toastification.b7cd620e.js} | 2 +- assets/vue.5bd9f35e.js | 1 - assets/vue.f6263579.js | 1 + ...e.832ed13e.js => vuedraggable.c3acdf62.js} | 2 +- index.html | 26 +- particle.png | Bin 0 -> 629 bytes sw.js | 2 +- 23 files changed, 599 insertions(+), 35 deletions(-) create mode 100644 assets/@pixi.1eac1889.js create mode 100644 assets/earcut.b6f90e68.js create mode 100644 assets/eventemitter3.dc5195d7.js delete mode 100644 assets/gameLoop.ed7f4ea7.js create mode 100644 assets/gameLoop.f1593b24.js rename assets/{index.7f7e174e.css => index.34fd6db2.css} (61%) delete mode 100644 assets/index.624ae6e9.js create mode 100644 assets/index.98888828.js create mode 100644 assets/ismobilejs.5c6954b9.js delete mode 100644 assets/lru-cache.9506e0ec.js create mode 100644 assets/lru-cache.9a21e90b.js create mode 100644 assets/querystring.23ae9a54.js rename assets/{semver.d101e2be.js => semver.83ff78cf.js} (99%) rename assets/{sortablejs.80af5380.js => sortablejs.cbae5b2d.js} (99%) create mode 100644 assets/url.e51cb87b.js rename assets/{vue-next-select.8d9e0122.js => vue-next-select.0dc4e443.js} (99%) rename assets/{vue-toastification.b272a510.js => vue-toastification.b7cd620e.js} (99%) delete mode 100644 assets/vue.5bd9f35e.js create mode 100644 assets/vue.f6263579.js rename assets/{vuedraggable.832ed13e.js => vuedraggable.c3acdf62.js} (63%) create mode 100644 particle.png diff --git a/assets/@pixi.1eac1889.js b/assets/@pixi.1eac1889.js new file mode 100644 index 0000000..703645b --- /dev/null +++ b/assets/@pixi.1eac1889.js @@ -0,0 +1,552 @@ +import{i as Ti}from"./ismobilejs.5c6954b9.js";import{E as Wt}from"./eventemitter3.dc5195d7.js";import"./earcut.b6f90e68.js";import{p as bi,f as Ii,r as Ri}from"./url.e51cb87b.js";/*! + * @pixi/settings - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC + * + * @pixi/settings is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var ut=Ti(globalThis.navigator);function Ei(r){var t=!0;if(ut.tablet||ut.phone){if(ut.apple.device){var e=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(e){var i=parseInt(e[1],10);i<11&&(t=!1)}}if(ut.android.device){var e=navigator.userAgent.match(/Android\s([0-9.]*)/);if(e){var i=parseInt(e[1],10);i<7&&(t=!1)}}}return t?r:4}function wi(){return!ut.apple.device}/*! + * @pixi/constants - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC + * + * @pixi/constants is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var nr;(function(r){r[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2"})(nr||(nr={}));var sr;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.WEBGL=1]="WEBGL",r[r.CANVAS=2]="CANVAS"})(sr||(sr={}));var ar;(function(r){r[r.COLOR=16384]="COLOR",r[r.DEPTH=256]="DEPTH",r[r.STENCIL=1024]="STENCIL"})(ar||(ar={}));var or;(function(r){r[r.NORMAL=0]="NORMAL",r[r.ADD=1]="ADD",r[r.MULTIPLY=2]="MULTIPLY",r[r.SCREEN=3]="SCREEN",r[r.OVERLAY=4]="OVERLAY",r[r.DARKEN=5]="DARKEN",r[r.LIGHTEN=6]="LIGHTEN",r[r.COLOR_DODGE=7]="COLOR_DODGE",r[r.COLOR_BURN=8]="COLOR_BURN",r[r.HARD_LIGHT=9]="HARD_LIGHT",r[r.SOFT_LIGHT=10]="SOFT_LIGHT",r[r.DIFFERENCE=11]="DIFFERENCE",r[r.EXCLUSION=12]="EXCLUSION",r[r.HUE=13]="HUE",r[r.SATURATION=14]="SATURATION",r[r.COLOR=15]="COLOR",r[r.LUMINOSITY=16]="LUMINOSITY",r[r.NORMAL_NPM=17]="NORMAL_NPM",r[r.ADD_NPM=18]="ADD_NPM",r[r.SCREEN_NPM=19]="SCREEN_NPM",r[r.NONE=20]="NONE",r[r.SRC_OVER=0]="SRC_OVER",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR"})(or||(or={}));var hr;(function(r){r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(hr||(hr={}));var ur;(function(r){r[r.RGBA=6408]="RGBA",r[r.RGB=6407]="RGB",r[r.RG=33319]="RG",r[r.RED=6403]="RED",r[r.RGBA_INTEGER=36249]="RGBA_INTEGER",r[r.RGB_INTEGER=36248]="RGB_INTEGER",r[r.RG_INTEGER=33320]="RG_INTEGER",r[r.RED_INTEGER=36244]="RED_INTEGER",r[r.ALPHA=6406]="ALPHA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(ur||(ur={}));var lr;(function(r){r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(lr||(lr={}));var fr;(function(r){r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",r[r.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",r[r.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",r[r.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",r[r.BYTE=5120]="BYTE",r[r.SHORT=5122]="SHORT",r[r.INT=5124]="INT",r[r.FLOAT=5126]="FLOAT",r[r.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",r[r.HALF_FLOAT=36193]="HALF_FLOAT"})(fr||(fr={}));var cr;(function(r){r[r.FLOAT=0]="FLOAT",r[r.INT=1]="INT",r[r.UINT=2]="UINT"})(cr||(cr={}));var le;(function(r){r[r.NEAREST=0]="NEAREST",r[r.LINEAR=1]="LINEAR"})(le||(le={}));var fe;(function(r){r[r.CLAMP=33071]="CLAMP",r[r.REPEAT=10497]="REPEAT",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(fe||(fe={}));var ce;(function(r){r[r.OFF=0]="OFF",r[r.POW2=1]="POW2",r[r.ON=2]="ON",r[r.ON_MANUAL=3]="ON_MANUAL"})(ce||(ce={}));var dr;(function(r){r[r.NPM=0]="NPM",r[r.UNPACK=1]="UNPACK",r[r.PMA=2]="PMA",r[r.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",r[r.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",r[r.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",r[r.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(dr||(dr={}));var pr;(function(r){r[r.NO=0]="NO",r[r.YES=1]="YES",r[r.AUTO=2]="AUTO",r[r.BLEND=0]="BLEND",r[r.CLEAR=1]="CLEAR",r[r.BLIT=2]="BLIT"})(pr||(pr={}));var de;(function(r){r[r.AUTO=0]="AUTO",r[r.MANUAL=1]="MANUAL"})(de||(de={}));var xt;(function(r){r.LOW="lowp",r.MEDIUM="mediump",r.HIGH="highp"})(xt||(xt={}));var vr;(function(r){r[r.NONE=0]="NONE",r[r.SCISSOR=1]="SCISSOR",r[r.STENCIL=2]="STENCIL",r[r.SPRITE=3]="SPRITE"})(vr||(vr={}));var pe;(function(r){r[r.NONE=0]="NONE",r[r.LOW=2]="LOW",r[r.MEDIUM=4]="MEDIUM",r[r.HIGH=8]="HIGH"})(pe||(pe={}));var mr;(function(r){r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(mr||(mr={}));var x={MIPMAP_TEXTURES:ce.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:pe.NONE,SPRITE_MAX_TEXTURES:Ei(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:de.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:fe.CLAMP,SCALE_MODE:le.LINEAR,PRECISION_VERTEX:xt.HIGH,PRECISION_FRAGMENT:ut.apple.device?xt.HIGH:xt.MEDIUM,CAN_UPLOAD_SAME_BUFFER:wi(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};/*! + * @pixi/constants - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC + * + * @pixi/constants is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var J;(function(r){r[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2"})(J||(J={}));var Tt;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.WEBGL=1]="WEBGL",r[r.CANVAS=2]="CANVAS"})(Tt||(Tt={}));var Ht;(function(r){r[r.COLOR=16384]="COLOR",r[r.DEPTH=256]="DEPTH",r[r.STENCIL=1024]="STENCIL"})(Ht||(Ht={}));var g;(function(r){r[r.NORMAL=0]="NORMAL",r[r.ADD=1]="ADD",r[r.MULTIPLY=2]="MULTIPLY",r[r.SCREEN=3]="SCREEN",r[r.OVERLAY=4]="OVERLAY",r[r.DARKEN=5]="DARKEN",r[r.LIGHTEN=6]="LIGHTEN",r[r.COLOR_DODGE=7]="COLOR_DODGE",r[r.COLOR_BURN=8]="COLOR_BURN",r[r.HARD_LIGHT=9]="HARD_LIGHT",r[r.SOFT_LIGHT=10]="SOFT_LIGHT",r[r.DIFFERENCE=11]="DIFFERENCE",r[r.EXCLUSION=12]="EXCLUSION",r[r.HUE=13]="HUE",r[r.SATURATION=14]="SATURATION",r[r.COLOR=15]="COLOR",r[r.LUMINOSITY=16]="LUMINOSITY",r[r.NORMAL_NPM=17]="NORMAL_NPM",r[r.ADD_NPM=18]="ADD_NPM",r[r.SCREEN_NPM=19]="SCREEN_NPM",r[r.NONE=20]="NONE",r[r.SRC_OVER=0]="SRC_OVER",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR"})(g||(g={}));var bt;(function(r){r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(bt||(bt={}));var _;(function(r){r[r.RGBA=6408]="RGBA",r[r.RGB=6407]="RGB",r[r.RG=33319]="RG",r[r.RED=6403]="RED",r[r.RGBA_INTEGER=36249]="RGBA_INTEGER",r[r.RGB_INTEGER=36248]="RGB_INTEGER",r[r.RG_INTEGER=33320]="RG_INTEGER",r[r.RED_INTEGER=36244]="RED_INTEGER",r[r.ALPHA=6406]="ALPHA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(_||(_={}));var lt;(function(r){r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(lt||(lt={}));var I;(function(r){r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",r[r.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",r[r.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",r[r.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",r[r.BYTE=5120]="BYTE",r[r.SHORT=5122]="SHORT",r[r.INT=5124]="INT",r[r.FLOAT=5126]="FLOAT",r[r.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",r[r.HALF_FLOAT=36193]="HALF_FLOAT"})(I||(I={}));var Vt;(function(r){r[r.FLOAT=0]="FLOAT",r[r.INT=1]="INT",r[r.UINT=2]="UINT"})(Vt||(Vt={}));var Y;(function(r){r[r.NEAREST=0]="NEAREST",r[r.LINEAR=1]="LINEAR"})(Y||(Y={}));var ve;(function(r){r[r.CLAMP=33071]="CLAMP",r[r.REPEAT=10497]="REPEAT",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(ve||(ve={}));var ft;(function(r){r[r.OFF=0]="OFF",r[r.POW2=1]="POW2",r[r.ON=2]="ON",r[r.ON_MANUAL=3]="ON_MANUAL"})(ft||(ft={}));var tt;(function(r){r[r.NPM=0]="NPM",r[r.UNPACK=1]="UNPACK",r[r.PMA=2]="PMA",r[r.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",r[r.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",r[r.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",r[r.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(tt||(tt={}));var Q;(function(r){r[r.NO=0]="NO",r[r.YES=1]="YES",r[r.AUTO=2]="AUTO",r[r.BLEND=0]="BLEND",r[r.CLEAR=1]="CLEAR",r[r.BLIT=2]="BLIT"})(Q||(Q={}));var me;(function(r){r[r.AUTO=0]="AUTO",r[r.MANUAL=1]="MANUAL"})(me||(me={}));var D;(function(r){r.LOW="lowp",r.MEDIUM="mediump",r.HIGH="highp"})(D||(D={}));var O;(function(r){r[r.NONE=0]="NONE",r[r.SCISSOR=1]="SCISSOR",r[r.STENCIL=2]="STENCIL",r[r.SPRITE=3]="SPRITE"})(O||(O={}));var F;(function(r){r[r.NONE=0]="NONE",r[r.LOW=2]="LOW",r[r.MEDIUM=4]="MEDIUM",r[r.HIGH=8]="HIGH"})(F||(F={}));var W;(function(r){r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(W||(W={}));/*! + * @pixi/utils - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC + * + * @pixi/utils is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */var Ni={parse:bi,format:Ii,resolve:Ri};x.RETINA_PREFIX=/@([0-9\.]+)x/;x.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var _r=!1,yr="6.3.2";function Ci(r){var t;if(!_r){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var e=[` + %c %c %c PixiJS `+yr+" - \u2730 "+r+` \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 + +`,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,e)}else globalThis.console&&globalThis.console.log("PixiJS "+yr+" - "+r+" - http://www.pixijs.com/");_r=!0}}var Yt;function Ai(){return typeof Yt=="undefined"&&(Yt=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:x.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),n=!!(i&&i.getContextAttributes().stencil);if(i){var s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,n}catch{return!1}}()),Yt}function Pi(r,t){return t===void 0&&(t=[]),t[0]=(r>>16&255)/255,t[1]=(r>>8&255)/255,t[2]=(r&255)/255,t}function Ui(r){var t=r.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function Fi(){for(var r=[],t=[],e=0;e<32;e++)r[e]=e,t[e]=e;r[g.NORMAL_NPM]=g.NORMAL,r[g.ADD_NPM]=g.ADD,r[g.SCREEN_NPM]=g.SCREEN,t[g.NORMAL]=g.NORMAL_NPM,t[g.ADD]=g.ADD_NPM,t[g.SCREEN]=g.SCREEN_NPM;var i=[];return i.push(t),i.push(r),i}var Li=Fi();function Oi(r,t){if(t===1)return(t*255<<24)+r;if(t===0)return 0;var e=r>>16&255,i=r>>8&255,n=r&255;return e=e*t+.5|0,i=i*t+.5|0,n=n*t+.5|0,(t*255<<24)+(e<<16)+(i<<8)+n}function ti(r){if(r.BYTES_PER_ELEMENT===4)return r instanceof Float32Array?"Float32Array":r instanceof Uint32Array?"Uint32Array":"Int32Array";if(r.BYTES_PER_ELEMENT===2){if(r instanceof Uint16Array)return"Uint16Array"}else if(r.BYTES_PER_ELEMENT===1&&r instanceof Uint8Array)return"Uint8Array";return null}function jt(r){return r+=r===0?1:0,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r+1}function gr(r){return!(r&r-1)&&!!r}function xr(r){var t=(r>65535?1:0)<<4;r>>>=t;var e=(r>255?1:0)<<3;return r>>>=e,t|=e,e=(r>15?1:0)<<2,r>>>=e,t|=e,e=(r>3?1:0)<<1,r>>>=e,t|=e,t|r>>1}function Xt(r,t,e){var i=r.length,n;if(!(t>=i||e===0)){e=t+e>i?i-t:e;var s=i-e;for(n=t;n8)throw new Error("max arguments reached");var u=this,l=u.name,f=u.items;this._aliasCount++;for(var c=0,d=f.length;c0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},r.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},r.prototype.remove=function(t){var e=this.items.indexOf(t);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},r.prototype.contains=function(t){return this.items.indexOf(t)!==-1},r.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},r.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(r.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),r}();Object.defineProperties(S.prototype,{dispatch:{value:S.prototype.emit},run:{value:S.prototype.emit}});/*! + * @pixi/ticker - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC + * + * @pixi/ticker is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */x.TARGET_FPMS=.06;var Et;(function(r){r[r.INTERACTION=50]="INTERACTION",r[r.HIGH=25]="HIGH",r[r.NORMAL=0]="NORMAL",r[r.LOW=-25]="LOW",r[r.UTILITY=-50]="UTILITY"})(Et||(Et={}));var Kt=function(){function r(t,e,i,n){e===void 0&&(e=null),i===void 0&&(i=0),n===void 0&&(n=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=i,this.once=n}return r.prototype.match=function(t,e){return e===void 0&&(e=null),this.fn===t&&this.context===e},r.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},r.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},r.prototype.destroy=function(t){t===void 0&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},r}(),q=function(){function r(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Kt(null,null,1/0),this.deltaMS=1/x.TARGET_FPMS,this.elapsedMS=1/x.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&t._requestId===null&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return r.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},r.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},r.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},r.prototype.add=function(t,e,i){return i===void 0&&(i=Et.NORMAL),this._addListener(new Kt(t,e,i))},r.prototype.addOnce=function(t,e,i){return i===void 0&&(i=Et.NORMAL),this._addListener(new Kt(t,e,i,!0))},r.prototype._addListener=function(t){var e=this._head.next,i=this._head;if(!e)t.connect(i);else{for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}return this._startIfPossible(),this},r.prototype.remove=function(t,e){for(var i=this._head.next;i;)i.match(t,e)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(r.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),r.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},r.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},r.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},r.prototype.update=function(t){t===void 0&&(t=performance.now());var e;if(t>this.lastTime){if(e=this.elapsedMS=t-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=t-this._lastFrame|0;if(i=this.x&&t=this.y&&et.right?t.right:this.right;if(n<=i)return!1;var s=this.yt.bottom?t.bottom:this.bottom;return a>s}var o=this.left,h=this.right,u=this.top,l=this.bottom;if(h<=o||l<=u)return!1;var f=Ut[0].set(t.left,t.top),c=Ut[1].set(t.left,t.bottom),d=Ut[2].set(t.right,t.top),p=Ut[3].set(t.right,t.bottom);if(d.x<=f.x||c.y<=f.y)return!1;var m=Math.sign(e.a*e.d-e.b*e.c);if(m===0||(e.apply(f,f),e.apply(c,c),e.apply(d,d),e.apply(p,p),Math.max(f.x,c.x,d.x,p.x)<=o||Math.min(f.x,c.x,d.x,p.x)>=h||Math.max(f.y,c.y,d.y,p.y)<=u||Math.min(f.y,c.y,d.y,p.y)>=l))return!1;var v=m*(c.y-f.y),y=m*(f.x-c.x),R=v*o+y*u,C=v*h+y*u,M=v*o+y*l,k=v*h+y*l;if(Math.max(R,C,M,k)<=v*f.x+y*f.y||Math.min(R,C,M,k)>=v*p.x+y*p.y)return!1;var B=m*(f.y-d.y),T=m*(d.x-f.x),b=B*o+T*u,G=B*h+T*u,rr=B*o+T*l,ir=B*h+T*l;return!(Math.max(b,G,rr,ir)<=B*f.x+T*f.y||Math.min(b,G,rr,ir)>=B*p.x+T*p.y)},r.prototype.pad=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),this.x-=t,this.y-=e,this.width+=t*2,this.height+=e*2,this},r.prototype.fit=function(t){var e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),n=Math.max(this.y,t.y),s=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=n,this.height=Math.max(s-n,0),this},r.prototype.ceil=function(t,e){t===void 0&&(t=1),e===void 0&&(e=.001);var i=Math.ceil((this.x+this.width-e)*t)/t,n=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=n-this.y,this},r.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),n=Math.min(this.y,t.y),s=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=n,this.height=s-n,this},r.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},r}(),gt=function(){function r(t,e,i,n){i===void 0&&(i=0),n===void 0&&(n=0),this._x=i,this._y=n,this.cb=t,this.scope=e}return r.prototype.clone=function(t,e){return t===void 0&&(t=this.cb),e===void 0&&(e=this.scope),new r(t,e,this._x,this._y)},r.prototype.set=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),(this._x!==t||this._y!==e)&&(this._x=t,this._y=e,this.cb.call(this.scope)),this},r.prototype.copyFrom=function(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},r.prototype.copyTo=function(t){return t.set(this._x,this._y),t},r.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},r.prototype.toString=function(){return"[@pixi/math:ObservablePoint x="+0+" y="+0+" scope="+this.scope+"]"},Object.defineProperty(r.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),r}(),H=function(){function r(t,e,i,n,s,a){t===void 0&&(t=1),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=1),s===void 0&&(s=0),a===void 0&&(a=0),this.array=null,this.a=t,this.b=e,this.c=i,this.d=n,this.tx=s,this.ty=a}return r.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},r.prototype.set=function(t,e,i,n,s,a){return this.a=t,this.b=e,this.c=i,this.d=n,this.tx=s,this.ty=a,this},r.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},r.prototype.apply=function(t,e){e=e||new P;var i=t.x,n=t.y;return e.x=this.a*i+this.c*n+this.tx,e.y=this.b*i+this.d*n+this.ty,e},r.prototype.applyInverse=function(t,e){e=e||new P;var i=1/(this.a*this.d+this.c*-this.b),n=t.x,s=t.y;return e.x=this.d*i*n+-this.c*i*s+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*s+-this.b*i*n+(-this.ty*this.a+this.tx*this.b)*i,e},r.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},r.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},r.prototype.rotate=function(t){var e=Math.cos(t),i=Math.sin(t),n=this.a,s=this.c,a=this.tx;return this.a=n*e-this.b*i,this.b=n*i+this.b*e,this.c=s*e-this.d*i,this.d=s*i+this.d*e,this.tx=a*e-this.ty*i,this.ty=a*i+this.ty*e,this},r.prototype.append=function(t){var e=this.a,i=this.b,n=this.c,s=this.d;return this.a=t.a*e+t.b*n,this.b=t.a*i+t.b*s,this.c=t.c*e+t.d*n,this.d=t.c*i+t.d*s,this.tx=t.tx*e+t.ty*n+this.tx,this.ty=t.tx*i+t.ty*s+this.ty,this},r.prototype.setTransform=function(t,e,i,n,s,a,o,h,u){return this.a=Math.cos(o+u)*s,this.b=Math.sin(o+u)*s,this.c=-Math.sin(o-h)*a,this.d=Math.cos(o-h)*a,this.tx=t-(i*this.a+n*this.c),this.ty=e-(i*this.b+n*this.d),this},r.prototype.prepend=function(t){var e=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){var i=this.a,n=this.c;this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=n*t.a+this.d*t.c,this.d=n*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},r.prototype.decompose=function(t){var e=this.a,i=this.b,n=this.c,s=this.d,a=t.pivot,o=-Math.atan2(-n,s),h=Math.atan2(i,e),u=Math.abs(o+h);return u<1e-5||Math.abs(Bi-u)<1e-5?(t.rotation=h,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=o,t.skew.y=h),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(n*n+s*s),t.position.x=this.tx+(a.x*e+a.y*n),t.position.y=this.ty+(a.x*i+a.y*s),t},r.prototype.invert=function(){var t=this.a,e=this.b,i=this.c,n=this.d,s=this.tx,a=t*n-e*i;return this.a=n/a,this.b=-e/a,this.c=-i/a,this.d=t/a,this.tx=(i*this.ty-n*s)/a,this.ty=-(t*this.ty-e*s)/a,this},r.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},r.prototype.clone=function(){var t=new r;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},r.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},r.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},r.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(r,"IDENTITY",{get:function(){return new r},enumerable:!1,configurable:!0}),Object.defineProperty(r,"TEMP_MATRIX",{get:function(){return new r},enumerable:!1,configurable:!0}),r}(),st=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],at=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ot=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ht=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],ye=[],ei=[],Ft=Math.sign;function Xi(){for(var r=0;r<16;r++){var t=[];ye.push(t);for(var e=0;e<16;e++)for(var i=Ft(st[r]*st[e]+ot[r]*at[e]),n=Ft(at[r]*st[e]+ht[r]*at[e]),s=Ft(st[r]*ot[e]+ot[r]*ht[e]),a=Ft(at[r]*ot[e]+ht[r]*ht[e]),o=0;o<16;o++)if(st[o]===i&&at[o]===n&&ot[o]===s&&ht[o]===a){t.push(o);break}}for(var r=0;r<16;r++){var h=new H;h.set(st[r],at[r],ot[r],ht[r],0,0),ei.push(h)}}Xi();var A={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(r){return st[r]},uY:function(r){return at[r]},vX:function(r){return ot[r]},vY:function(r){return ht[r]},inv:function(r){return r&8?r&15:-r&7},add:function(r,t){return ye[r][t]},sub:function(r,t){return ye[r][A.inv(t)]},rotate180:function(r){return r^4},isVertical:function(r){return(r&3)===2},byDirection:function(r,t){return Math.abs(r)*2<=Math.abs(t)?t>=0?A.S:A.N:Math.abs(t)*2<=Math.abs(r)?r>0?A.E:A.W:t>0?r>0?A.SE:A.SW:r>0?A.NE:A.NW},matrixAppendRotationInv:function(r,t,e,i){e===void 0&&(e=0),i===void 0&&(i=0);var n=ei[A.inv(t)];n.tx=e,n.ty=i,r.append(n)}},Hi=function(){function r(){this.worldTransform=new H,this.localTransform=new H,this.position=new gt(this.onChange,this,0,0),this.scale=new gt(this.onChange,this,1,1),this.pivot=new gt(this.onChange,this,0,0),this.skew=new gt(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return r.prototype.onChange=function(){this._localID++},r.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},r.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},r.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},r.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var i=t.worldTransform,n=this.worldTransform;n.a=e.a*i.a+e.b*i.c,n.b=e.a*i.b+e.b*i.d,n.c=e.c*i.a+e.d*i.c,n.d=e.c*i.b+e.d*i.d,n.tx=e.tx*i.a+e.ty*i.c+i.tx,n.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=t._worldID,this._worldID++}},r.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(r.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),r.IDENTITY=new r,r}();/*! + * @pixi/core - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC + * + * @pixi/core is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */x.PREFER_ENV=ut.any?J.WEBGL:J.WEBGL2;x.STRICT_TEXTURE_CACHE=!1;var ge=[];function ri(r,t){if(!r)return null;var e="";if(typeof r=="string"){var i=/\.(\w{3,4})(?:$|\?|#)/i.exec(r);i&&(e=i[1].toLowerCase())}for(var n=ge.length-1;n>=0;--n){var s=ge[n];if(s.test&&s.test(r,e))return new s(r,t)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var xe=function(r,t){return xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},xe(r,t)};function N(r,t){xe(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Te=function(){return Te=Object.assign||function(t){for(var e=arguments,i,n=1,s=arguments.length;n0&&l>0,n.textureCacheIds=[],n.destroyed=!1,n.resource=null,n._batchEnabled=0,n._batchLocation=0,n.parentTextureArray=null,n.setResource(e),n}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(e,i){var n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),i!==void 0&&i!==this.mipmap&&(this.mipmap=i,n=!0),n&&this.dirtyStyleId++,this},t.prototype.setSize=function(e,i,n){return n=n||this.resolution,this.setRealSize(e*n,i*n,n)},t.prototype.setRealSize=function(e,i,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(i)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=gr(this.realWidth)&&gr(this.realHeight)},t.prototype.setResolution=function(e){var i=this.resolution;return i===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*i)/e,this.height=Math.round(this.height*i)/e,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(e){this.emit("error",this,e)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete rt[this.cacheId],delete $[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(e,i,n){n===void 0&&(n=x.STRICT_TEXTURE_CACHE);var s=typeof e=="string",a=null;if(s)a=e;else{if(!e._pixiId){var o=i&&i.pixiIdPrefix||"pixiid";e._pixiId=o+"_"+It()}a=e._pixiId}var h=rt[a];if(s&&n&&!h)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return h||(h=new t(e,i),h.cacheId=a,t.addToCache(h,a)),h},t.fromBuffer=function(e,i,n,s){e=e||new Float32Array(i*n*4);var a=new Ne(e,{width:i,height:n}),o=e instanceof Float32Array?I.FLOAT:I.UNSIGNED_BYTE;return new t(a,Object.assign(ji,s||{width:i,height:n,type:o}))},t.addToCache=function(e,i){i&&(e.textureCacheIds.indexOf(i)===-1&&e.textureCacheIds.push(i),rt[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),rt[i]=e)},t.removeFromCache=function(e){if(typeof e=="string"){var i=rt[e];if(i){var n=i.textureCacheIds.indexOf(e);return n>-1&&i.textureCacheIds.splice(n,1),delete rt[e],i}}else if(e&&e.textureCacheIds){for(var s=0;s0)if(e.resource)this.addResourceAt(e.resource,i);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=lt.TEXTURE_CUBE_MAP_POSITIVE_X+i,e.parentTextureArray=this.baseTexture,this.items[i]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[i]=e,this},t.prototype.upload=function(e,i,n){for(var s=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(et),$i=function(r){N(t,r);function t(e,i){var n=this;if(i=i||{},!(e instanceof HTMLVideoElement)){var s=document.createElement("video");s.setAttribute("preload","auto"),s.setAttribute("webkit-playsinline",""),s.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);var a=e[0].src||e[0];et.crossOrigin(s,a,i.crossorigin);for(var o=0;o0&&e.paused===!1&&e.ended===!1&&e.readyState>2},t.prototype._isSourceReady=function(){var e=this.source;return e.readyState===3||e.readyState===4},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(q.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(q.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);var i=this.valid;this.resize(e.videoWidth,e.videoHeight),!i&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(q.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),r.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(q.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(q.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),t.test=function(e,i){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||t.TYPES.indexOf(i)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(et),qi=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.test=function(e){return!!globalThis.createImageBitmap&&e instanceof ImageBitmap},t}(et);ge.push(si,qi,ni,$i,Wi,Ne,zi,Di);var Yi=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.upload=function(e,i,n){var s=e.gl;s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===tt.UNPACK);var a=i.realWidth,o=i.realHeight;return n.width===a&&n.height===o?s.texSubImage2D(i.target,0,0,0,a,o,i.format,n.type,this.data):(n.width=a,n.height=o,s.texImage2D(i.target,0,n.internalFormat,a,o,0,i.format,n.type,this.data)),!0},t}(Ne),be=function(){function r(t,e){this.width=Math.round(t||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new S("disposeFramebuffer"),this.multisample=F.NONE}return Object.defineProperty(r.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),r.prototype.addColorTexture=function(t,e){return t===void 0&&(t=0),this.colorTextures[t]=e||new L(null,{scaleMode:Y.NEAREST,resolution:1,mipmap:ft.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},r.prototype.addDepthTexture=function(t){return this.depthTexture=t||new L(new Yi(null,{width:this.width,height:this.height}),{scaleMode:Y.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:ft.OFF,format:_.DEPTH_COMPONENT,type:I.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},r.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},r.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},r.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),!(t===this.width&&e===this.height)){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var i=0;i-1&&i.textureCacheIds.splice(n,1),delete $[e],i}}else if(e&&e.textureCacheIds){for(var s=0;sthis.baseTexture.width,h=n+a>this.baseTexture.height;if(o||h){var u=o&&h?"and":"or",l="X: "+i+" + "+s+" = "+(i+s)+" > "+this.baseTexture.width,f="Y: "+n+" + "+a+" = "+(n+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(l+" "+u+" "+f))}this.valid=s&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new L),Lt(t._EMPTY),Lt(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=16,e.height=16,i.fillStyle="white",i.fillRect(0,0,16,16),t._WHITE=new t(new L(new ni(e))),Lt(t._WHITE),Lt(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(Wt),Ce=function(r){N(t,r);function t(e,i){var n=r.call(this,e,i)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i,n){n===void 0&&(n=!0);var s=this.baseTexture.resolution,a=Math.round(e*s)/s,o=Math.round(i*s)/s;this.valid=a>0&&o>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=o,n&&this.baseTexture.resize(a,o),this.updateUvs()},t.prototype.setResolution=function(e){var i=this.baseTexture;i.resolution!==e&&(i.setResolution(e),this.resize(i.width,i.height,!1))},t.create=function(e){for(var i=arguments,n=[],s=1;s>>0,n>1&&(s+=n*4294967296)):s=n>1?-n:-1,this.texturePool[s]||(this.texturePool[s]=[]);var a=this.texturePool[s].pop();return a||(a=this.createTexture(t,e,n)),a.filterPoolKey=s,a.setResolution(i),a},r.prototype.getFilterTexture=function(t,e,i){var n=this.getOptimalTexture(t.width,t.height,e||t.resolution,i||F.NONE);return n.filterFrame=t.filterFrame,n},r.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},r.prototype.returnFilterTexture=function(t){this.returnTexture(t)},r.prototype.clear=function(t){if(t=t!==!1,t)for(var e in this.texturePool){var i=this.texturePool[e];if(i)for(var n=0;n0&&t.height>0;for(var e in this.texturePool)if(Number(e)<0){var i=this.texturePool[e];if(i)for(var n=0;n1){for(var l=0;l1&&(f=this.getOptimalFilterTexture(l.width,l.height,e.resolution),f.filterFrame=l.filterFrame),i[c].apply(this,l,f,Q.CLEAR,e);var d=l;l=f,f=d}i[c].apply(this,l,u.renderTexture,Q.BLEND,e),c>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(f)}e.clear(),this.statePool.push(e)},r.prototype.bindAndClear=function(t,e){e===void 0&&(e=Q.CLEAR);var i=this.renderer,n=i.renderTexture,s=i.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,n.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var o=s.stateId&1||this.forceClear;(e===Q.CLEAR||e===Q.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},r.prototype.applyFilter=function(t,e,i,n){var s=this.renderer;s.state.set(t.state),this.bindAndClear(i,n),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,s.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),s.geometry.bind(this.quadUv),s.geometry.draw(bt.TRIANGLES)):(s.geometry.bind(this.quad),s.geometry.draw(bt.TRIANGLE_STRIP))},r.prototype.calculateSpriteMatrix=function(t,e){var i=this.activeState,n=i.sourceFrame,s=i.destinationFrame,a=e._texture.orig,o=t.set(s.width,0,0,s.height,n.x,n.y),h=e.worldTransform.copyTo(H.TEMP_MATRIX);return h.invert(),o.prepend(h),o.scale(1/a.width,1/a.height),o.translate(e.anchor.x,e.anchor.y),o},r.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},r.prototype.getOptimalFilterTexture=function(t,e,i,n){return i===void 0&&(i=1),n===void 0&&(n=F.NONE),this.texturePool.getOptimalTexture(t,e,i,n)},r.prototype.getFilterTexture=function(t,e,i){if(typeof t=="number"){var n=t;t=e,e=n}t=t||this.activeState.renderTexture;var s=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,i||F.NONE);return s.filterFrame=t.filterFrame,s},r.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},r.prototype.emptyPool=function(){this.texturePool.clear(!0)},r.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},r.prototype.transformAABB=function(t,e){var i=Ot[0],n=Ot[1],s=Ot[2],a=Ot[3];i.set(e.left,e.top),n.set(e.left,e.bottom),s.set(e.right,e.top),a.set(e.right,e.bottom),t.apply(i,i),t.apply(n,n),t.apply(s,s),t.apply(a,a);var o=Math.min(i.x,n.x,s.x,a.x),h=Math.min(i.y,n.y,s.y,a.y),u=Math.max(i.x,n.x,s.x,a.x),l=Math.max(i.y,n.y,s.y,a.y);e.x=o,e.y=h,e.width=u-o,e.height=l-h},r.prototype.roundFrame=function(t,e,i,n,s){if(!(t.width<=0||t.height<=0||i.width<=0||i.height<=0)){if(s){var a=s.a,o=s.b,h=s.c,u=s.d;if((Math.abs(o)>1e-4||Math.abs(h)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(u)>1e-4))return}s=s?Zt.copyFrom(s):Zt.identity(),s.translate(-i.x,-i.y).scale(n.width/i.width,n.height/i.height).translate(n.x,n.y),this.transformAABB(s,t),t.ceil(e),this.transformAABB(s.invert(),t)}},r}(),hi=function(){function r(t){this.renderer=t}return r.prototype.flush=function(){},r.prototype.destroy=function(){this.renderer=null},r.prototype.start=function(){},r.prototype.stop=function(){this.flush()},r.prototype.render=function(t){},r}(),hn=function(){function r(t){this.renderer=t,this.emptyRenderer=new hi(t),this.currentRenderer=this.emptyRenderer}return r.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},r.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},r.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},r.prototype.copyBoundTextures=function(t,e){for(var i=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)t[n]=i[n]||null,t[n]&&(t[n]._batchLocation=n)},r.prototype.boundArray=function(t,e,i,n){for(var s=t.elements,a=t.ids,o=t.count,h=0,u=0;u=0&&f=J.WEBGL2&&(i=t.getContext("webgl2",e)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!i)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},r.prototype.getExtensions=function(){var t=this.gl,e={anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},r.prototype.handleContextLost=function(t){t.preventDefault()},r.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},r.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},r.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},r.prototype.validateContext=function(t){var e=t.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),e.stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=i||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},r}(),ln=function(){function r(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=F.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return r}(),fn=new U,cn=function(){function r(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new be(10,10),this.msaaSamples=null}return r.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new U,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),this.renderer.context.webGLVersion===1){var e=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;x.PREFER_ENV===J.WEBGL_LEGACY&&(e=null,i=null),e?t.drawBuffers=function(n){return e.drawBuffersWEBGL(n)}:(this.hasMRT=!1,t.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},r.prototype.bind=function(t,e,i){i===void 0&&(i=0);var n=this.gl;if(t){var s=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,n.bindFramebuffer(n.FRAMEBUFFER,s.framebuffer)),s.mipLevel!==i&&(t.dirtyId++,t.dirtyFormat++,s.mipLevel=i),s.dirtyId!==t.dirtyId&&(s.dirtyId=t.dirtyId,s.dirtyFormat!==t.dirtyFormat?(s.dirtyFormat=t.dirtyFormat,s.dirtySize=t.dirtySize,this.updateFramebuffer(t,i)):s.dirtySize!==t.dirtySize&&(s.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>i,u=e.height>>i,l=h/e.width;this.setViewport(e.x*l,e.y*l,h,u)}else{var h=t.width>>i,u=t.height>>i;this.setViewport(0,0,h,u)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},r.prototype.setViewport=function(t,e,i,n){var s=this.viewport;t=Math.round(t),e=Math.round(e),i=Math.round(i),n=Math.round(n),(s.width!==i||s.height!==n||s.x!==t||s.y!==e)&&(s.x=t,s.y=e,s.width=i,s.height=n,this.gl.viewport(t,e,i,n))},Object.defineProperty(r.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),r.prototype.clear=function(t,e,i,n,s){s===void 0&&(s=Ht.COLOR|Ht.DEPTH);var a=this.gl;a.clearColor(t,e,i,n),a.clear(s)},r.prototype.initFramebuffer=function(t){var e=this.gl,i=new ln(e.createFramebuffer());return i.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(t),t.disposeRunner.add(this),i},r.prototype.resizeFramebuffer=function(t){var e=this.gl,i=t.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.RGBA8,t.width,t.height)),i.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var n=t.colorTextures,s=n.length;e.drawBuffers||(s=Math.min(s,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(n.msaaBuffer=n.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.RGBA8,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(i.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var o=[],h=0;h1&&i.drawBuffers(o),t.depthTexture){var f=this.writeDepthTexture;if(f){var c=t.depthTexture;this.renderer.texture.bind(c,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,c._glTextures[this.CONTEXT_UID].texture,e)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(n.stencil=n.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.stencil),n.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.DEPTH24_STENCIL8,t.width,t.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,n.stencil)):n.stencil&&(i.deleteRenderbuffer(n.stencil),n.stencil=null)},r.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},r.prototype.detectSamples=function(t){var e=this.msaaSamples,i=F.NONE;if(t<=1||e===null)return i;for(var n=0;n=0&&this.managedFramebuffers.splice(s,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&n.deleteRenderbuffer(i.msaaBuffer),i.stencil&&n.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose()}},r.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i=J.WEBGL2&&(t=r.getContext("webgl2",{})),t||(t=r.getContext("webgl",{})||r.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),vt=t}return vt}var St;function _n(){if(!St){St=D.MEDIUM;var r=mn();if(r&&r.getShaderPrecisionFormat){var t=r.getShaderPrecisionFormat(r.FRAGMENT_SHADER,r.HIGH_FLOAT);St=t.precision?D.HIGH:D.MEDIUM}}return St}function Pr(r,t,e){if(r.substring(0,9)!=="precision"){var i=t;return t===D.HIGH&&e!==D.HIGH&&(i=D.MEDIUM),"precision "+i+` float; +`+r}else if(e!==D.HIGH&&r.substring(0,15)==="precision highp")return r.replace("precision highp","precision mediump");return r}var yn={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function fi(r){return yn[r]}var Gt=null,Ur={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function ci(r,t){if(!Gt){var e=Object.keys(Ur);Gt={};for(var i=0;i0&&(t+=` +else `),e1e-4||Math.abs(s)>1e-4)&&(Math.abs(i)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(e){var i=e.maskObject;if(!i.isFastRect||!i.isFastRect()||t.isMatrixRotated(i.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);var n=e._scissorRectLocal;return n.width>0&&n.height>0},t.prototype.roundFrameToPixels=function(e,i,n,s,a){t.isMatrixRotated(a)||(a=a?Lr.copyFrom(a):Lr.identity(),a.translate(-n.x,-n.y).scale(s.width/n.width,s.height/n.height).translate(s.x,s.y),this.renderer.filter.transformAABB(a,e),e.fit(s),e.x=Math.round(e.x*i),e.y=Math.round(e.y*i),e.width=Math.round(e.width*i),e.height=Math.round(e.height*i))},t.prototype.push=function(e){e._scissorRectLocal||this.calcScissorRect(e);var i=this.renderer.gl;e._scissorRect||i.enable(i.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(){var e=this.renderer.gl;this.getStackLength()>0?this._useCurrent():e.disable(e.SCISSOR_TEST)},t.prototype._useCurrent=function(){var e=this.maskStack[this.maskStack.length-1]._scissorRect,i;this.renderer.renderTexture.current?i=e.y:i=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,i,e.width,e.height)},t}(pi),Mn=function(r){N(t,r);function t(e){var i=r.call(this,e)||this;return i.glConst=WebGLRenderingContext.STENCIL_TEST,i}return t.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},t.prototype.push=function(e){var i=e.maskObject,n=this.renderer.gl,s=e._stencilCounter;s===0&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),e._stencilCounter++,n.colorMask(!1,!1,!1,!1),n.stencilFunc(n.EQUAL,s,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),i.renderable=!0,i.render(this.renderer),this.renderer.batch.flush(),i.renderable=!1,this._useCurrent()},t.prototype.pop=function(e){var i=this.renderer.gl;this.getStackLength()===0?i.disable(i.STENCIL_TEST):(i.colorMask(!1,!1,!1,!1),i.stencilOp(i.KEEP,i.KEEP,i.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent())},t.prototype._useCurrent=function(){var e=this.renderer.gl;e.colorMask(!0,!0,!0,!0),e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},t}(pi),kn=function(){function r(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new H,this.transform=null}return r.prototype.update=function(t,e,i,n){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,n),this.transform&&this.projectionMatrix.append(this.transform);var s=this.renderer;s.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,s.globalUniforms.update(),s.shader.shader&&s.shader.syncUniformGroup(s.shader.shader.uniforms.globals)},r.prototype.calculateProjection=function(t,e,i,n){var s=this.projectionMatrix,a=n?-1:1;s.identity(),s.a=1/e.width*2,s.d=a*(1/e.height*2),s.tx=-1-e.x*s.a,s.ty=-a-e.y*s.d},r.prototype.setTransform=function(t){},r.prototype.destroy=function(){this.renderer=null},r}(),it=new U,_t=new U,Xn=function(){function r(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new U,this.destinationFrame=new U,this.viewportFrame=new U}return r.prototype.bind=function(t,e,i){t===void 0&&(t=null);var n=this.renderer;this.current=t;var s,a,o;t?(s=t.baseTexture,o=s.resolution,e||(it.width=t.frame.width,it.height=t.frame.height,e=it),i||(_t.x=t.frame.x,_t.y=t.frame.y,_t.width=e.width,_t.height=e.height,i=_t),a=s.framebuffer):(o=n.resolution,e||(it.width=n.screen.width,it.height=n.screen.height,e=it),i||(i=it,i.width=e.width,i.height=e.height));var h=this.viewportFrame;h.x=i.x*o,h.y=i.y*o,h.width=i.width*o,h.height=i.height*o,t||(h.y=n.view.height-(h.y+h.height)),h.ceil(),this.renderer.framebuffer.bind(a,h),this.renderer.projection.update(i,e,o,!a),t?this.renderer.mask.setMaskStack(s.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)},r.prototype.clear=function(t,e){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var i=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,s=i.width!==n.width||i.height!==n.height;if(s){var a=this.viewportFrame,o=a.x,h=a.y,u=a.width,l=a.height;o=Math.round(o),h=Math.round(h),u=Math.round(u),l=Math.round(l),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(o,h,u,l)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),s&&this.renderer.scissor.pop()},r.prototype.resize=function(){this.bind(null)},r.prototype.reset=function(){this.bind(null)},r.prototype.destroy=function(){this.renderer=null},r}();function Hn(r,t,e,i,n){e.buffer.update(n)}var Vn={float:` + data[offset] = v; + `,vec2:` + data[offset] = v[0]; + data[offset+1] = v[1]; + `,vec3:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + + `,vec4:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + data[offset+3] = v[3]; + `,mat2:` + data[offset] = v[0]; + data[offset+1] = v[1]; + + data[offset+4] = v[2]; + data[offset+5] = v[3]; + `,mat3:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + + data[offset + 4] = v[3]; + data[offset + 5] = v[4]; + data[offset + 6] = v[5]; + + data[offset + 8] = v[6]; + data[offset + 9] = v[7]; + data[offset + 10] = v[8]; + `,mat4:` + for(var i = 0; i < 16; i++) + { + data[offset + i] = v[i]; + } + `},vi={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function jn(r){for(var t=r.map(function(h){return{data:h,offset:0,dataLen:0,dirty:0}}),e=0,i=0,n=0,s=0;s1&&(e=Math.max(e,16)*a.data.size),a.dataLen=e,i%e!==0&&i<16){var o=i%e%16;i+=o,n+=o}i+e>16?(n=Math.ceil(n/16)*16,a.offset=n,n+=e,i=e):(a.offset=n,i+=e,n+=e)}return n=Math.ceil(n/16)*16,{uboElements:t,size:n}}function Dn(r,t){var e=[];for(var i in r)t[i]&&e.push(t[i]);return e.sort(function(n,s){return n.index-s.index}),e}function zn(r,t){if(!r.autoManage)return{size:0,syncFunc:Hn};for(var e=Dn(r.uniforms,t),i=jn(e),n=i.uboElements,s=i.size,a=[` + var v = null; + var v2 = null; + var cv = null; + var t = 0; + var gl = renderer.gl + var index = 0; + var data = buffer.data; + `],o=0;o1){var p=fi(h.data.type),m=Math.max(vi[h.data.type]/16,1),v=p/m,y=(4-v%4)%4;a.push(` + cv = ud.`+l+`.value; + v = uv.`+l+`; + offset = `+h.offset/4+`; + + t = 0; + + for(var i=0; i < `+h.data.size*m+`; i++) + { + for(var j = 0; j < `+v+`; j++) + { + data[offset++] = v[t++]; + } + offset += `+y+`; + } + + `)}else{var R=Vn[h.data.type];a.push(` + cv = ud.`+l+`.value; + v = uv.`+l+`; + offset = `+h.offset/4+`; + `+R+`; + `)}}return a.push(` + renderer.buffer.update(buffer); + `),{size:s,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join(` +`))}}var Wn=function(){function r(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return r.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},r}();function $n(r,t){for(var e={},i=t.getProgramParameter(r,t.ACTIVE_ATTRIBUTES),n=0;nf?1:-1});for(var a=0;a>1,i++;this.stateId=t.data}for(var i=0;ithis.checkCountMax&&(this.checkCount=0,this.run())))},r.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,i=!1,n=0;nthis.maxIdle&&(t.destroyTexture(s,!0),e[n]=null,i=!0)}if(i){for(var a=0,n=0;n=0;n--)this.unload(t.children[n])},r.prototype.destroy=function(){this.renderer=null},r}();function os(r){var t,e,i,n,s,a,o,h,u,l,f,c,d,p,m,v,y,R,C,M,k,B,T;return"WebGL2RenderingContext"in globalThis&&r instanceof globalThis.WebGL2RenderingContext?T=(t={},t[I.UNSIGNED_BYTE]=(e={},e[_.RGBA]=r.RGBA8,e[_.RGB]=r.RGB8,e[_.RG]=r.RG8,e[_.RED]=r.R8,e[_.RGBA_INTEGER]=r.RGBA8UI,e[_.RGB_INTEGER]=r.RGB8UI,e[_.RG_INTEGER]=r.RG8UI,e[_.RED_INTEGER]=r.R8UI,e[_.ALPHA]=r.ALPHA,e[_.LUMINANCE]=r.LUMINANCE,e[_.LUMINANCE_ALPHA]=r.LUMINANCE_ALPHA,e),t[I.BYTE]=(i={},i[_.RGBA]=r.RGBA8_SNORM,i[_.RGB]=r.RGB8_SNORM,i[_.RG]=r.RG8_SNORM,i[_.RED]=r.R8_SNORM,i[_.RGBA_INTEGER]=r.RGBA8I,i[_.RGB_INTEGER]=r.RGB8I,i[_.RG_INTEGER]=r.RG8I,i[_.RED_INTEGER]=r.R8I,i),t[I.UNSIGNED_SHORT]=(n={},n[_.RGBA_INTEGER]=r.RGBA16UI,n[_.RGB_INTEGER]=r.RGB16UI,n[_.RG_INTEGER]=r.RG16UI,n[_.RED_INTEGER]=r.R16UI,n[_.DEPTH_COMPONENT]=r.DEPTH_COMPONENT16,n),t[I.SHORT]=(s={},s[_.RGBA_INTEGER]=r.RGBA16I,s[_.RGB_INTEGER]=r.RGB16I,s[_.RG_INTEGER]=r.RG16I,s[_.RED_INTEGER]=r.R16I,s),t[I.UNSIGNED_INT]=(a={},a[_.RGBA_INTEGER]=r.RGBA32UI,a[_.RGB_INTEGER]=r.RGB32UI,a[_.RG_INTEGER]=r.RG32UI,a[_.RED_INTEGER]=r.R32UI,a[_.DEPTH_COMPONENT]=r.DEPTH_COMPONENT24,a),t[I.INT]=(o={},o[_.RGBA_INTEGER]=r.RGBA32I,o[_.RGB_INTEGER]=r.RGB32I,o[_.RG_INTEGER]=r.RG32I,o[_.RED_INTEGER]=r.R32I,o),t[I.FLOAT]=(h={},h[_.RGBA]=r.RGBA32F,h[_.RGB]=r.RGB32F,h[_.RG]=r.RG32F,h[_.RED]=r.R32F,h[_.DEPTH_COMPONENT]=r.DEPTH_COMPONENT32F,h),t[I.HALF_FLOAT]=(u={},u[_.RGBA]=r.RGBA16F,u[_.RGB]=r.RGB16F,u[_.RG]=r.RG16F,u[_.RED]=r.R16F,u),t[I.UNSIGNED_SHORT_5_6_5]=(l={},l[_.RGB]=r.RGB565,l),t[I.UNSIGNED_SHORT_4_4_4_4]=(f={},f[_.RGBA]=r.RGBA4,f),t[I.UNSIGNED_SHORT_5_5_5_1]=(c={},c[_.RGBA]=r.RGB5_A1,c),t[I.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[_.RGBA]=r.RGB10_A2,d[_.RGBA_INTEGER]=r.RGB10_A2UI,d),t[I.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[_.RGB]=r.R11F_G11F_B10F,p),t[I.UNSIGNED_INT_5_9_9_9_REV]=(m={},m[_.RGB]=r.RGB9_E5,m),t[I.UNSIGNED_INT_24_8]=(v={},v[_.DEPTH_STENCIL]=r.DEPTH24_STENCIL8,v),t[I.FLOAT_32_UNSIGNED_INT_24_8_REV]=(y={},y[_.DEPTH_STENCIL]=r.DEPTH32F_STENCIL8,y),t):T=(R={},R[I.UNSIGNED_BYTE]=(C={},C[_.RGBA]=r.RGBA,C[_.RGB]=r.RGB,C[_.ALPHA]=r.ALPHA,C[_.LUMINANCE]=r.LUMINANCE,C[_.LUMINANCE_ALPHA]=r.LUMINANCE_ALPHA,C),R[I.UNSIGNED_SHORT_5_6_5]=(M={},M[_.RGB]=r.RGB,M),R[I.UNSIGNED_SHORT_4_4_4_4]=(k={},k[_.RGBA]=r.RGBA,k),R[I.UNSIGNED_SHORT_5_5_5_1]=(B={},B[_.RGBA]=r.RGBA,B),R),T}var ae=function(){function r(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=I.UNSIGNED_BYTE,this.internalFormat=_.RGBA,this.samplerType=0}return r}(),hs=function(){function r(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new L,this.hasIntegerTextures=!1}return r.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=os(t);var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var i=0;i=0;--a){var o=i[a];if(o){var h=o._glTextures[s];h.samplerType!==Vt.FLOAT&&this.renderer.texture.unbind(o)}}},r.prototype.initTexture=function(t){var e=new ae(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},r.prototype.initTextureType=function(t,e){var i,n;e.internalFormat=(n=(i=this.internalFormats[t.type])===null||i===void 0?void 0:i[t.format])!==null&&n!==void 0?n:t.format,this.webGLVersion===2&&t.type===I.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},r.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(!!e){var i=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(i,t,e))e.samplerType!==Vt.FLOAT&&(this.hasIntegerTextures=!0);else{var n=t.realWidth,s=t.realHeight,a=i.gl;(e.width!==n||e.height!==s||e.dirtyId<0)&&(e.width=n,e.height=s,a.texImage2D(t.target,0,e.internalFormat,n,s,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},r.prototype.destroyTexture=function(t,e){var i=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),i.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(t);n!==-1&&Xt(this.managedTextures,n,1)}},r.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];!e||((t.mipmap===ft.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?e.mipmap=!1:e.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?e.wrapMode=ve.CLAMP:e.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},r.prototype.setStyle=function(t,e){var i=this.gl;if(e.mipmap&&t.mipmap!==ft.ON_MANUAL&&i.generateMipmap(t.target),i.texParameteri(t.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(t.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===Y.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&t.anisotropicLevel>0&&t.scaleMode===Y.LINEAR){var s=Math.min(t.anisotropicLevel,i.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(t.target,n.TEXTURE_MAX_ANISOTROPY_EXT,s)}}else i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===Y.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(t.target,i.TEXTURE_MAG_FILTER,t.scaleMode===Y.LINEAR?i.LINEAR:i.NEAREST)},r.prototype.destroy=function(){this.renderer=null},r}(),oe=new H,us=function(r){N(t,r);function t(e,i){e===void 0&&(e=Tt.UNKNOWN);var n=r.call(this)||this;return i=Object.assign({},x.RENDER_OPTIONS,i),n.options=i,n.type=e,n.screen=new U(0,0,i.width,i.height),n.view=i.view||document.createElement("canvas"),n.resolution=i.resolution||x.RESOLUTION,n.useContextAlpha=i.useContextAlpha,n.autoDensity=!!i.autoDensity,n.preserveDrawingBuffer=i.preserveDrawingBuffer,n.clearBeforeRender=i.clearBeforeRender,n._backgroundColor=0,n._backgroundColorRgba=[0,0,0,1],n._backgroundColorString="#000000",n.backgroundColor=i.backgroundColor||n._backgroundColor,n.backgroundAlpha=i.backgroundAlpha,i.transparent!==void 0&&(Rt("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),n.useContextAlpha=i.transparent,n.backgroundAlpha=i.transparent?0:1),n._lastObjectRendered=null,n.plugins={},n}return t.prototype.initPlugins=function(e){for(var i in e)this.plugins[i]=new e[i](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(i*this.resolution);var n=this.view.width/this.resolution,s=this.view.height/this.resolution;this.screen.width=n,this.screen.height=s,this.autoDensity&&(this.view.style.width=n+"px",this.view.style.height=s+"px"),this.emit("resize",n,s)},t.prototype.generateTexture=function(e,i,n,s){i===void 0&&(i={}),typeof i=="number"&&(Rt("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),i={scaleMode:i,resolution:n,region:s});var a=i.region,o=Vi(i,["region"]);s=a||e.getLocalBounds(null,!0),s.width===0&&(s.width=1),s.height===0&&(s.height=1);var h=Ce.create(Te({width:s.width,height:s.height},o));return oe.tx=-s.x,oe.ty=-s.y,this.render(e,{renderTexture:h,clear:!1,transform:oe,skipUpdateTransform:!!e.parent}),h},t.prototype.destroy=function(e){for(var i in this.plugins)this.plugins[i].destroy(),this.plugins[i]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var n=this;n.plugins=null,n.type=Tt.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=Ui(e),Pi(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),t}(Wt),ls=function(){function r(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return r}(),fs=function(){function r(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return r.prototype.destroy=function(){this.renderer=null},r.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},r.prototype.bind=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,s=t._glBuffers[n]||this.createGLBuffer(t);i.bindBuffer(t.type,s.buffer)},r.prototype.bindBufferBase=function(t,e){var i=this,n=i.gl,s=i.CONTEXT_UID;if(this.boundBufferBases[e]!==t){var a=t._glBuffers[s]||this.createGLBuffer(t);this.boundBufferBases[e]=t,n.bindBufferBase(n.UNIFORM_BUFFER,e,a.buffer)}},r.prototype.bindBufferRange=function(t,e,i){var n=this,s=n.gl,a=n.CONTEXT_UID;i=i||0;var o=t._glBuffers[a]||this.createGLBuffer(t);s.bindBufferRange(s.UNIFORM_BUFFER,e||0,o.buffer,i*256,256)},r.prototype.update=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,s=t._glBuffers[n];if(t._updateID!==s.updateID)if(s.updateID=t._updateID,i.bindBuffer(t.type,s.buffer),s.byteLength>=t.data.byteLength)i.bufferSubData(t.type,0,t.data);else{var a=t.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;s.byteLength=t.data.byteLength,i.bufferData(t.type,t.data,a)}},r.prototype.dispose=function(t,e){if(!!this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var i=t._glBuffers[this.CONTEXT_UID],n=this.gl;t.disposeRunner.remove(this),i&&(e||n.deleteBuffer(i.buffer),delete t._glBuffers[this.CONTEXT_UID])}},r.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),i=0;i=F.HIGH?this.multisample=F.HIGH:i>=F.MEDIUM?this.multisample=F.MEDIUM:i>=F.LOW?this.multisample=F.LOW:this.multisample=F.NONE},t.prototype.addSystem=function(e,i){var n=new e(this);if(this[i])throw new Error('Whoops! The name "'+i+'" is already in use');this[i]=n;for(var s in this.runners)this.runners[s].add(n);return this},t.prototype.render=function(e,i){var n,s,a,o;if(i&&(i instanceof Ce?(Rt("6.0.0","Renderer#render arguments changed, use options instead."),n=i,s=arguments[2],a=arguments[3],o=arguments[4]):(n=i.renderTexture,s=i.clear,a=i.transform,o=i.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(n||(this._lastObjectRendered=e),!o){var h=e.enableTempParent();e.updateTransform(),e.disableTempParent(h)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(s!==void 0?s:this.clearBeforeRender)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(e,i,n,s){i===void 0&&(i={});var a=r.prototype.generateTexture.call(this,e,i,n,s);return this.framebuffer.blit(),a},t.prototype.resize=function(e,i){r.prototype.resize.call(this,e,i),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(e){this.runners.destroy.emit();for(var i in this.runners)this.runners[i].destroy();r.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return Rt("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(e,i){t.__plugins=t.__plugins||{},t.__plugins[e]=i},t}(us);function ds(r){return cs.create(r)}var ps=function(){function r(){this.texArray=null,this.blend=0,this.type=bt.TRIANGLES,this.start=0,this.size=0,this.data=null}return r}(),vs=function(){function r(){this.elements=[],this.ids=[],this.count=0}return r.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)},t.prototype.buildTexturesAndDrawCalls=function(){var e=this,i=e._bufferedTextures,n=e.MAX_TEXTURES,s=t._textureArrayPool,a=this.renderer.batch,o=this._tempBoundTextures,h=this.renderer.textureGC.count,u=++L._globalBatch,l=0,f=s[0],c=0;a.copyBoundTextures(o,n);for(var d=0;d=n&&(a.boundArray(f,o,u,n),this.buildDrawCalls(f,c,d),c=d,f=s[++l],++u),p._batchEnabled=u,p.touched=h,f.elements[f.count++]=p)}f.count>0&&(a.boundArray(f,o,u,n),this.buildDrawCalls(f,c,this._bufferSize),++l,++u);for(var d=0;d0&&(e+=` +else `),ithis.maxX||this.minY>this.maxY},r.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},r.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?U.EMPTY:(t=t||new U(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},r.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},r.prototype.addPointMatrix=function(t,e){var i=t.a,n=t.b,s=t.c,a=t.d,o=t.tx,h=t.ty,u=i*e.x+s*e.y+o,l=n*e.x+a*e.y+h;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,l),this.maxY=Math.max(this.maxY,l)},r.prototype.addQuad=function(t){var e=this.minX,i=this.minY,n=this.maxX,s=this.maxY,a=t[0],o=t[1];e=an?a:n,s=o>s?o:s,a=t[2],o=t[3],e=an?a:n,s=o>s?o:s,a=t[4],o=t[5],e=an?a:n,s=o>s?o:s,a=t[6],o=t[7],e=an?a:n,s=o>s?o:s,this.minX=e,this.minY=i,this.maxX=n,this.maxY=s},r.prototype.addFrame=function(t,e,i,n,s){this.addFrameMatrix(t.worldTransform,e,i,n,s)},r.prototype.addFrameMatrix=function(t,e,i,n,s){var a=t.a,o=t.b,h=t.c,u=t.d,l=t.tx,f=t.ty,c=this.minX,d=this.minY,p=this.maxX,m=this.maxY,v=a*e+h*i+l,y=o*e+u*i+f;c=vp?v:p,m=y>m?y:m,v=a*n+h*i+l,y=o*n+u*i+f,c=vp?v:p,m=y>m?y:m,v=a*e+h*s+l,y=o*e+u*s+f,c=vp?v:p,m=y>m?y:m,v=a*n+h*s+l,y=o*n+u*s+f,c=vp?v:p,m=y>m?y:m,this.minX=c,this.minY=d,this.maxX=p,this.maxY=m},r.prototype.addVertexData=function(t,e,i){for(var n=this.minX,s=this.minY,a=this.maxX,o=this.maxY,h=e;ha?u:a,o=l>o?l:o}this.minX=n,this.minY=s,this.maxX=a,this.maxY=o},r.prototype.addVertices=function(t,e,i,n){this.addVerticesMatrix(t.worldTransform,e,i,n)},r.prototype.addVerticesMatrix=function(t,e,i,n,s,a){s===void 0&&(s=0),a===void 0&&(a=s);for(var o=t.a,h=t.b,u=t.c,l=t.d,f=t.tx,c=t.ty,d=this.minX,p=this.minY,m=this.maxX,v=this.maxY,y=i;yn?t.maxX:n,this.maxY=t.maxY>s?t.maxY:s},r.prototype.addBoundsMask=function(t,e){var i=t.minX>e.minX?t.minX:e.minX,n=t.minY>e.minY?t.minY:e.minY,s=t.maxXu?s:u,this.maxY=a>l?a:l}},r.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},r.prototype.addBoundsArea=function(t,e){var i=t.minX>e.x?t.minX:e.x,n=t.minY>e.y?t.minY:e.y,s=t.maxXu?s:u,this.maxY=a>l?a:l}},r.prototype.pad=function(t,e){t===void 0&&(t=0),e===void 0&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},r.prototype.addFramePad=function(t,e,i,n,s,a){t-=s,e-=a,i+=s,n+=a,this.minX=this.minXi?this.maxX:i,this.minY=this.minYn?this.maxY:n},r}();/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var Re=function(r,t){return Re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},Re(r,t)};function Fe(r,t){Re(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Dt=function(r){Fe(t,r);function t(){var e=r.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new Hi,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new Ie,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return t.mixin=function(e){for(var i=Object.keys(e),n=0;n1)for(var s=0;sthis.children.length)throw new Error(e+"addChildAt: The index "+i+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(i,0,e),this._boundsID++,this.onChildrenChange(i),e.emit("added",this),this.emit("childAdded",e,this,i),e},t.prototype.swapChildren=function(e,i){if(e!==i){var n=this.getChildIndex(e),s=this.getChildIndex(i);this.children[n]=i,this.children[s]=e,this.onChildrenChange(n=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);Xt(this.children,n,1),this.children.splice(i,0,e),this.onChildrenChange(i)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(){for(var e=arguments,i=[],n=0;n1)for(var s=0;s0&&a<=s){o=this.children.splice(n,a);for(var h=0;h1&&this.children.sort(bs),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,i=this.children.length;e0&&i.height>0){var n,s;if(this.cullArea?(n=this.cullArea,s=this.worldTransform):this._render!==t.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,s))this._render(e);else if(this.cullArea)return;for(var a=0,o=this.children.length;a=s&&yt.x=a&&yt.y>16)+(e&65280)+((e&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=e||K.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.valid?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(zt);/*! + * @pixi/particle-emitter - v5.0.7 + * Compiled Fri, 27 May 2022 02:00:12 UTC + * + * @pixi/particle-emitter is licensed under the MIT License. + * http://www.opensource.org/licenses/mit-license + */class z{constructor(t,e,i){this.value=t,this.time=e,this.next=null,this.isStepped=!1,i?this.ease=typeof i=="function"?i:yi(i):this.ease=null}static createList(t){if("list"in t){const i=t.list;let n;const{value:s,time:a}=i[0],o=n=new z(typeof s=="string"?kt(s):s,a,t.ease);if(i.length>2||i.length===2&&i[1].value!==s)for(let h=1;h0?this._frequency=t:this._frequency=1}get parent(){return this._parent}set parent(t){this.cleanup(),this._parent=t}init(t){if(!t)return;this.cleanup(),this._origConfig=t,this.minLifetime=t.lifetime.min,this.maxLifetime=t.lifetime.max,t.ease?this.customEase=typeof t.ease=="function"?t.ease:yi(t.ease):this.customEase=null,this.particlesPerWave=1,t.particlesPerWave&&t.particlesPerWave>1&&(this.particlesPerWave=t.particlesPerWave),this.frequency=t.frequency,this.spawnChance=typeof t.spawnChance=="number"&&t.spawnChance>0?t.spawnChance:1,this.emitterLifetime=t.emitterLifetime||-1,this.maxParticles=t.maxParticles>0?t.maxParticles:1e3,this.addAtBack=!!t.addAtBack,this.rotation=0,this.ownerPos.set(0),t.pos?this.spawnPos.copyFrom(t.pos):this.spawnPos.set(0),this._prevEmitterPos.copyFrom(this.spawnPos),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=t.emit===void 0?!0:!!t.emit,this.autoUpdate=!!t.autoUpdate;const e=t.behaviors.map(i=>{const n=E.knownBehaviors[i.type];return n?new n(i.config):(console.error(`Unknown behavior: ${i.type}`),null)}).filter(i=>!!i);e.push(nt),e.sort((i,n)=>i===nt?n.order===w.Spawn?1:-1:n===nt?i.order===w.Spawn?-1:1:i.order-n.order),this.initBehaviors=e.slice(),this.updateBehaviors=e.filter(i=>i!==nt&&i.updateParticle),this.recycleBehaviors=e.filter(i=>i!==nt&&i.recycleParticle)}getBehavior(t){return E.knownBehaviors[t]&&this.initBehaviors.find(e=>e instanceof E.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const e=new he(this);e.next=this._poolFirst,this._poolFirst=e}}recycle(t,e=!1){for(let i=0;ia.maxLife||a.age<0)this.recycle(a);else{let h=a.age*a.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),a.agePercent=h;for(let u=0;u=0&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles){this._spawnTimer+=this._frequency;continue}let a,o;if(this._prevPosIsValid&&this._posChanged){const l=1+this._spawnTimer/t;a=(n-e)*l+e,o=(s-i)*l+i}else a=n,o=s;let h=null,u=null;for(let l=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),f=0;f=this.spawnChance)continue;let c;if(this.minLifetime===this.maxLifetime?c=this.minLifetime:c=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=c)continue;let d;this._poolFirst?(d=this._poolFirst,this._poolFirst=this._poolFirst.next,d.next=null):d=new he(this),d.init(c),this.addAtBack?this._parent.addChildAt(d,0):this._parent.addChild(d),h?(u.next=d,d.prev=u,u=d):u=h=d,++this.particleCount}if(h){this._activeParticlesLast?(this._activeParticlesLast.next=h,h.prev=this._activeParticlesLast,this._activeParticlesLast=u):(this._activeParticlesFirst=h,this._activeParticlesLast=u);for(let l=0;l=this.spawnChance)continue;let o;this._poolFirst?(o=this._poolFirst,this._poolFirst=this._poolFirst.next,o.next=null):o=new he(this);let h;this.minLifetime===this.maxLifetime?h=this.minLifetime:h=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,o.init(h),this.addAtBack?this._parent.addChildAt(o,0):this._parent.addChild(o),i?(n.next=o,o.prev=n,n=o):n=i=o,++this.particleCount}if(i){this._activeParticlesLast?(this._activeParticlesLast.next=i,i.prev=this._activeParticlesLast,this._activeParticlesLast=n):(this._activeParticlesFirst=i,this._activeParticlesLast=n);for(let s=0;sthis.maxSpeed&&_i(i,this.maxSpeed/a)}t.x+=(n+i.x)/2*e,t.y+=(s+i.y)/2*e,this.rotate&&(t.rotation=Math.atan2(i.y,i.x))}}Se.type="moveAcceleration";Se.editorConfig=null;function Cs(r){return this.ease&&(r=this.ease(r)),(this.first.next.value-this.first.value)*r+this.first.value}function As(r){this.ease&&(r=this.ease(r));const t=this.first.value,e=this.first.next.value,i=(e.r-t.r)*r+t.r,n=(e.g-t.g)*r+t.g,s=(e.b-t.b)*r+t.b;return $t(i,n,s)}function Ps(r){this.ease&&(r=this.ease(r));let t=this.first,e=t.next;for(;r>e.time;)t=e,e=e.next;return r=(r-t.time)/(e.time-t.time),(e.value-t.value)*r+t.value}function Us(r){this.ease&&(r=this.ease(r));let t=this.first,e=t.next;for(;r>e.time;)t=e,e=e.next;r=(r-t.time)/(e.time-t.time);const i=t.value,n=e.value,s=(n.r-i.r)*r+i.r,a=(n.g-i.g)*r+i.g,o=(n.b-i.b)*r+i.b;return $t(s,a,o)}function Fs(r){this.ease&&(r=this.ease(r));let t=this.first;for(;t.next&&r>t.next.time;)t=t.next;return t.value}function Ls(r){this.ease&&(r=this.ease(r));let t=this.first;for(;t.next&&r>t.next.time;)t=t.next;const e=t.value;return $t(e.r,e.g,e.b)}class Ct{constructor(t=!1){this.first=null,this.isColor=!!t,this.interpolate=null,this.ease=null}reset(t){this.first=t,t.next&&t.next.time>=1?this.interpolate=this.isColor?As:Cs:t.isStepped?this.interpolate=this.isColor?Ls:Fs:this.interpolate=this.isColor?Us:Ps,this.ease=this.first.ease}}class Ge{constructor(t){this.order=w.Normal,this.list=new Ct(!1),this.list.reset(z.createList(t.alpha))}initParticles(t){let e=t;for(;e;)e.alpha=this.list.first.value,e=e.next}updateParticle(t){t.alpha=this.list.interpolate(t.agePercent)}}Ge.type="alpha";Ge.editorConfig=null;class Be{constructor(t){this.order=w.Normal,this.value=t.alpha}initParticles(t){let e=t;for(;e;)e.alpha=this.value,e=e.next}}Be.type="alphaStatic";Be.editorConfig=null;function gi(r){const t=[];for(let e=0;e0;--n)t.push(i)}}return t}class Me{constructor(t){this.order=w.Normal,this.anims=[];for(let e=0;e0?i.framerate:60,a={textures:n,duration:s>0?n.length/s:0,framerate:s,loop:s>0?!!i.loop:!1};this.anims.push(a)}}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.anims.length),n=e.config.anim=this.anims[i];e.texture=n.textures[0],e.config.animElapsed=0,n.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=n.textures.length/e.maxLife):(e.config.animDuration=n.duration,e.config.animFramerate=n.framerate),e=e.next}}updateParticle(t,e){const i=t.config,n=i.anim;i.animElapsed+=e,i.animElapsed>=i.animDuration&&(i.anim.loop?i.animElapsed=i.animElapsed%i.animDuration:i.animElapsed=i.animDuration-1e-6);const s=i.animElapsed*i.animFramerate+1e-7|0;t.texture=n.textures[s]||n.textures[n.textures.length-1]||K.EMPTY}}Me.type="animatedRandom";Me.editorConfig=null;class ke{constructor(t){this.order=w.Normal;const e=t.anim,i=gi(e.textures),n=e.framerate<0?-1:e.framerate>0?e.framerate:60;this.anim={textures:i,duration:n>0?i.length/n:0,framerate:n,loop:n>0?!!e.loop:!1}}initParticles(t){let e=t;const i=this.anim;for(;e;)e.texture=i.textures[0],e.config.animElapsed=0,i.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=i.textures.length/e.maxLife):(e.config.animDuration=i.duration,e.config.animFramerate=i.framerate),e=e.next}updateParticle(t,e){const i=this.anim,n=t.config;n.animElapsed+=e,n.animElapsed>=n.animDuration&&(i.loop?n.animElapsed=n.animElapsed%n.animDuration:n.animElapsed=n.animDuration-1e-6);const s=n.animElapsed*n.animFramerate+1e-7|0;t.texture=i.textures[s]||i.textures[i.textures.length-1]||K.EMPTY}}ke.type="animatedSingle";ke.editorConfig=null;class Xe{constructor(t){this.order=w.Normal,this.value=t.blendMode}initParticles(t){let e=t;for(;e;)e.blendMode=Ns(this.value),e=e.next}}Xe.type="blendMode";Xe.editorConfig=null;class He{constructor(t){this.order=w.Spawn,this.spacing=t.spacing*j,this.start=t.start*j,this.distance=t.distance}initParticles(t){let e=0,i=t;for(;i;){let n;this.spacing?n=this.start+this.spacing*e:n=Math.random()*Math.PI*2,i.rotation=n,this.distance&&(i.position.x=this.distance,Z(n,i.position)),i=i.next,++e}}}He.type="spawnBurst";He.editorConfig=null;class Ve{constructor(t){this.order=w.Normal,this.list=new Ct(!0),this.list.reset(z.createList(t.color))}initParticles(t){let e=t;const i=this.list.first.value,n=$t(i.r,i.g,i.b);for(;e;)e.tint=n,e=e.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}Ve.type="color";Ve.editorConfig=null;class je{constructor(t){this.order=w.Normal;let e=t.color;e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2)),this.value=parseInt(e,16)}initParticles(t){let e=t;for(;e;)e.tint=this.value,e=e.next}}je.type="colorStatic";je.editorConfig=null;class De{constructor(t){this.order=w.Normal,this.index=0,this.textures=t.textures.map(e=>typeof e=="string"?Nt(e):e)}initParticles(t){let e=t;for(;e;)e.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),e=e.next}}De.type="textureOrdered";De.editorConfig=null;const ct=new P,xi=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2","abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","cos","cosh","exp","expm1","floor","fround","hypot","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh"],Os=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(xi).join("|"),"g");function Ss(r){const t=r.match(Os);for(let e=t.length-1;e>=0;--e)xi.indexOf(t[e])>=0&&(t[e]=`Math.${t[e]}`);return r=t.join(""),new Function("x",`return ${r};`)}class ze{constructor(t){var e;if(this.order=w.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=Ss(t.path)}catch{this.path=null}else this.path=i=>i;this.list=new Ct(!1),this.list.reset(z.createList(t.speed)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){e.config.initRotation=e.rotation,e.config.initPosition?e.config.initPosition.copyFrom(e.position):e.config.initPosition=new P(e.x,e.y),e.config.movement=0;const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult;t.config.movement+=i*e,ct.x=t.config.movement,ct.y=this.path(ct.x),Z(t.config.initRotation,ct),t.position.x=t.config.initPosition.x+ct.x,t.position.y=t.config.initPosition.y+ct.y}}ze.type="movePath";ze.editorConfig=null;class We{constructor(){this.order=w.Spawn}initParticles(t){}}We.type="spawnPoint";We.editorConfig=null;class $e{constructor(t){this.order=w.Normal,this.textures=t.textures.map(e=>typeof e=="string"?Nt(e):e)}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.textures.length);e.texture=this.textures[i],e=e.next}}}$e.type="textureRandom";$e.editorConfig=null;class qe{constructor(t){this.order=w.Normal,this.minStart=t.minStart*j,this.maxStart=t.maxStart*j,this.minSpeed=t.minSpeed*j,this.maxSpeed=t.maxSpeed*j,this.accel=t.accel*j}initParticles(t){let e=t;for(;e;)this.minStart===this.maxStart?e.rotation+=this.maxStart:e.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,e.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,e=e.next}updateParticle(t,e){if(this.accel){const i=t.config.rotSpeed;t.config.rotSpeed+=this.accel*e,t.rotation+=(t.config.rotSpeed+i)/2*e}else t.rotation+=t.config.rotSpeed*e}}qe.type="rotation";qe.editorConfig=null;class Ye{constructor(t){this.order=w.Normal,this.min=t.min*j,this.max=t.max*j}initParticles(t){let e=t;for(;e;)this.min===this.max?e.rotation+=this.max:e.rotation+=Math.random()*(this.max-this.min)+this.min,e=e.next}}Ye.type="rotationStatic";Ye.editorConfig=null;class Ke{constructor(t){this.order=w.Late+1,this.rotation=(t.rotation||0)*j}initParticles(t){let e=t;for(;e;)e.rotation=this.rotation,e=e.next}}Ke.type="noRotation";Ke.editorConfig=null;class Ze{constructor(t){var e;this.order=w.Normal,this.list=new Ct(!1),this.list.reset(z.createList(t.scale)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.scaleMult=i,e.scale.x=e.scale.y=this.list.first.value*i,e=e.next}}updateParticle(t){t.scale.x=t.scale.y=this.list.interpolate(t.agePercent)*t.config.scaleMult}}Ze.type="scale";Ze.editorConfig=null;class Je{constructor(t){this.order=w.Normal,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.scale.x=e.scale.y=i,e=e.next}}}Je.type="scaleStatic";Je.editorConfig=null;class V{constructor(t){this.order=w.Spawn;const e=V.shapes[t.type];if(!e)throw new Error(`No shape found with type '${t.type}'`);this.shape=new e(t.data)}static registerShape(t,e){V.shapes[e||t.type]=t}initParticles(t){let e=t;for(;e;)this.shape.getRandPos(e),e=e.next}}V.type="spawnShape";V.editorConfig=null;V.shapes={};V.registerShape(Oe);V.registerShape(Le);V.registerShape(qt);V.registerShape(qt,"circle");class Qe{constructor(t){this.order=w.Normal,this.texture=typeof t.texture=="string"?Nt(t.texture):t.texture}initParticles(t){let e=t;for(;e;)e.texture=this.texture,e=e.next}}Qe.type="textureSingle";Qe.editorConfig=null;class tr{constructor(t){var e;this.order=w.Late,this.list=new Ct(!1),this.list.reset(z.createList(t.speed)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e.config.velocity?e.config.velocity.set(this.list.first.value*i,0):e.config.velocity=new P(this.list.first.value*i,0),Z(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult,n=t.config.velocity;ws(n),_i(n,i),t.x+=n.x*e,t.y+=n.y*e}}tr.type="moveSpeed";tr.editorConfig=null;class er{constructor(t){this.order=w.Late,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.config.velocity?e.config.velocity.set(i,0):e.config.velocity=new P(i,0),Z(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=t.config.velocity;t.x+=i.x*e,t.y+=i.y*e}}er.type="moveSpeedStatic";er.editorConfig=null;function Ds(r,t){var e,i,n,s,a,o,h,u,l,f,c,d,p,m,v,y,R,C,M,k,B;if("behaviors"in r)return r;const T={lifetime:r.lifetime,ease:r.ease,particlesPerWave:r.particlesPerWave,frequency:r.frequency,spawnChance:r.spawnChance,emitterLifetime:r.emitterLifetime,maxParticles:r.maxParticles,addAtBack:r.addAtBack,pos:r.pos,emit:r.emit,autoUpdate:r.autoUpdate,behaviors:[]};if(r.alpha)if("start"in r.alpha)if(r.alpha.start===r.alpha.end)r.alpha.start!==1&&T.behaviors.push({type:"alphaStatic",config:{alpha:r.alpha.start}});else{const b={list:[{time:0,value:r.alpha.start},{time:1,value:r.alpha.end}]};T.behaviors.push({type:"alpha",config:{alpha:b}})}else r.alpha.list.length===1?r.alpha.list[0].value!==1&&T.behaviors.push({type:"alphaStatic",config:{alpha:r.alpha.list[0].value}}):T.behaviors.push({type:"alpha",config:{alpha:r.alpha}});if(r.acceleration&&(r.acceleration.x||r.acceleration.y)){let b,G;"start"in r.speed?(b=r.speed.start*((e=r.speed.minimumSpeedMultiplier)!==null&&e!==void 0?e:1),G=r.speed.start):(b=r.speed.list[0].value*((i=r.minimumSpeedMultiplier)!==null&&i!==void 0?i:1),G=r.speed.list[0].value),T.behaviors.push({type:"moveAcceleration",config:{accel:r.acceleration,minStart:b,maxStart:G,rotate:!r.noRotation,maxSpeed:r.maxSpeed}})}else if(!((n=r.extraData)===null||n===void 0)&&n.path){let b,G;"start"in r.speed?(G=(s=r.speed.minimumSpeedMultiplier)!==null&&s!==void 0?s:1,r.speed.start===r.speed.end?b={list:[{time:0,value:r.speed.start}]}:b={list:[{time:0,value:r.speed.start},{time:1,value:r.speed.end}]}):(b=r.speed,G=(a=r.minimumSpeedMultiplier)!==null&&a!==void 0?a:1),T.behaviors.push({type:"movePath",config:{path:r.extraData.path,speed:b,minMult:G}})}else if(r.speed)if("start"in r.speed)if(r.speed.start===r.speed.end)T.behaviors.push({type:"moveSpeedStatic",config:{min:r.speed.start*((o=r.speed.minimumSpeedMultiplier)!==null&&o!==void 0?o:1),max:r.speed.start}});else{const b={list:[{time:0,value:r.speed.start},{time:1,value:r.speed.end}]};T.behaviors.push({type:"moveSpeed",config:{speed:b,minMult:r.speed.minimumSpeedMultiplier}})}else r.speed.list.length===1?T.behaviors.push({type:"moveSpeedStatic",config:{min:r.speed.list[0].value*((h=r.minimumSpeedMultiplier)!==null&&h!==void 0?h:1),max:r.speed.list[0].value}}):T.behaviors.push({type:"moveSpeed",config:{speed:r.speed,minMult:(u=r.minimumSpeedMultiplier)!==null&&u!==void 0?u:1}});if(r.scale)if("start"in r.scale){const b=(l=r.scale.minimumScaleMultiplier)!==null&&l!==void 0?l:1;if(r.scale.start===r.scale.end)T.behaviors.push({type:"scaleStatic",config:{min:r.scale.start*b,max:r.scale.start}});else{const G={list:[{time:0,value:r.scale.start},{time:1,value:r.scale.end}]};T.behaviors.push({type:"scale",config:{scale:G,minMult:b}})}}else if(r.scale.list.length===1){const b=(f=r.minimumScaleMultiplier)!==null&&f!==void 0?f:1,G=r.scale.list[0].value;T.behaviors.push({type:"scaleStatic",config:{min:G*b,max:G}})}else T.behaviors.push({type:"scale",config:{scale:r.scale,minMult:(c=r.minimumScaleMultiplier)!==null&&c!==void 0?c:1}});if(r.color)if("start"in r.color)if(r.color.start===r.color.end)r.color.start!=="ffffff"&&T.behaviors.push({type:"colorStatic",config:{color:r.color.start}});else{const b={list:[{time:0,value:r.color.start},{time:1,value:r.color.end}]};T.behaviors.push({type:"color",config:{color:b}})}else r.color.list.length===1?r.color.list[0].value!=="ffffff"&&T.behaviors.push({type:"colorStatic",config:{color:r.color.list[0].value}}):T.behaviors.push({type:"color",config:{color:r.color}});if(r.rotationAcceleration||((d=r.rotationSpeed)===null||d===void 0?void 0:d.min)||((p=r.rotationSpeed)===null||p===void 0?void 0:p.max)?T.behaviors.push({type:"rotation",config:{accel:r.rotationAcceleration||0,minSpeed:((m=r.rotationSpeed)===null||m===void 0?void 0:m.min)||0,maxSpeed:((v=r.rotationSpeed)===null||v===void 0?void 0:v.max)||0,minStart:((y=r.startRotation)===null||y===void 0?void 0:y.min)||0,maxStart:((R=r.startRotation)===null||R===void 0?void 0:R.max)||0}}):(((C=r.startRotation)===null||C===void 0?void 0:C.min)||((M=r.startRotation)===null||M===void 0?void 0:M.max))&&T.behaviors.push({type:"rotationStatic",config:{min:((k=r.startRotation)===null||k===void 0?void 0:k.min)||0,max:((B=r.startRotation)===null||B===void 0?void 0:B.max)||0}}),r.noRotation&&T.behaviors.push({type:"noRotation",config:{}}),r.blendMode&&r.blendMode!=="normal"&&T.behaviors.push({type:"blendMode",config:{blendMode:r.blendMode}}),Array.isArray(t)&&typeof t[0]!="string"&&"framerate"in t[0]){for(let b=0;b80*n){i=o=e[0],v=c=e[1];for(var p=n;po&&(o=h),l>c&&(c=l);Z=Math.max(o-i,c-v),Z=Z!==0?32767/Z:0}return L(u,f,n,i,v,Z,0),f}function G(e,r,n,t,x){var u,f;if(x===j(e,r,n,t)>0)for(u=r;u=r;u-=t)f=T(u,e[u],e[u+1],f);return f&&E(f,f.next)&&(H(f),f=f.next),f}function w(e,r){if(!e)return e;r||(r=e);var n=e,t;do if(t=!1,!n.steiner&&(E(n,n.next)||g(n.prev,n,n.next)===0)){if(H(n),n=r=n.prev,n===n.next)break;t=!0}else n=n.next;while(t||n!==r);return r}function L(e,r,n,t,x,u,f){if(!!e){!f&&u&&X(e,t,x,u);for(var i=e,v,o;e.prev!==e.next;){if(v=e.prev,o=e.next,u?$(e,t,x,u):V(e)){r.push(v.i/n|0),r.push(e.i/n|0),r.push(o.i/n|0),H(e),e=o.next,i=o.next;continue}if(e=o,e===i){f?f===1?(e=J(w(e),r,n),L(e,r,n,t,x,u,2)):f===2&&K(e,r,n,t,x,u):L(w(e),r,n,t,x,u,1);break}}}}function V(e){var r=e.prev,n=e,t=e.next;if(g(r,n,t)>=0)return!1;for(var x=r.x,u=n.x,f=t.x,i=r.y,v=n.y,o=t.y,c=xu?x>f?x:f:u>f?u:f,Z=i>v?i>o?i:o:v>o?v:o,p=t.next;p!==r;){if(p.x>=c&&p.x<=l&&p.y>=h&&p.y<=Z&&F(x,i,u,v,f,o,p.x,p.y)&&g(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function $(e,r,n,t){var x=e.prev,u=e,f=e.next;if(g(x,u,f)>=0)return!1;for(var i=x.x,v=u.x,o=f.x,c=x.y,h=u.y,l=f.y,Z=iv?i>o?i:o:v>o?v:o,O=c>h?c>l?c:l:h>l?h:l,C=A(Z,p,r,n,t),D=A(M,O,r,n,t),s=e.prevZ,y=e.nextZ;s&&s.z>=C&&y&&y.z<=D;){if(s.x>=Z&&s.x<=M&&s.y>=p&&s.y<=O&&s!==x&&s!==f&&F(i,c,v,h,o,l,s.x,s.y)&&g(s.prev,s,s.next)>=0||(s=s.prevZ,y.x>=Z&&y.x<=M&&y.y>=p&&y.y<=O&&y!==x&&y!==f&&F(i,c,v,h,o,l,y.x,y.y)&&g(y.prev,y,y.next)>=0))return!1;y=y.nextZ}for(;s&&s.z>=C;){if(s.x>=Z&&s.x<=M&&s.y>=p&&s.y<=O&&s!==x&&s!==f&&F(i,c,v,h,o,l,s.x,s.y)&&g(s.prev,s,s.next)>=0)return!1;s=s.prevZ}for(;y&&y.z<=D;){if(y.x>=Z&&y.x<=M&&y.y>=p&&y.y<=O&&y!==x&&y!==f&&F(i,c,v,h,o,l,y.x,y.y)&&g(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function J(e,r,n){var t=e;do{var x=t.prev,u=t.next.next;!E(x,u)&&N(x,t,t.next,u)&&P(x,u)&&P(u,x)&&(r.push(x.i/n|0),r.push(t.i/n|0),r.push(u.i/n|0),H(t),H(t.next),t=e=u),t=t.next}while(t!==e);return w(t)}function K(e,r,n,t,x,u){var f=e;do{for(var i=f.next.next;i!==f.prev;){if(f.i!==i.i&&q(f,i)){var v=R(f,i);f=w(f,f.next),v=w(v,v.next),L(f,r,n,t,x,u,0),L(v,r,n,t,x,u,0);return}i=i.next}f=f.next}while(f!==e)}function Q(e,r,n,t){var x=[],u,f,i,v,o;for(u=0,f=r.length;u=n.next.y&&n.next.y!==n.y){var i=n.x+(x-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(i<=t&&i>u&&(u=i,f=n.x=n.x&&n.x>=o&&t!==n.x&&F(xf.x||n.x===f.x&&S(f,n)))&&(f=n,h=l)),n=n.next;while(n!==v);return f}function S(e,r){return g(e.prev,e,r.prev)<0&&g(r.next,e,e.next)<0}function X(e,r,n,t){var x=e;do x.z===0&&(x.z=A(x.x,x.y,r,n,t)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==e);x.prevZ.nextZ=null,x.prevZ=null,Y(x)}function Y(e){var r,n,t,x,u,f,i,v,o=1;do{for(n=e,e=null,u=null,f=0;n;){for(f++,t=n,i=0,r=0;r0||v>0&&t;)i!==0&&(v===0||!t||n.z<=t.z)?(x=n,n=n.nextZ,i--):(x=t,t=t.nextZ,v--),u?u.nextZ=x:e=x,x.prevZ=u,u=x;n=t}u.nextZ=null,o*=2}while(f>1);return e}function A(e,r,n,t,x){return e=(e-n)*x|0,r=(r-t)*x|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function b(e){var r=e,n=e;do(r.x=(e-f)*(u-i)&&(e-f)*(t-i)>=(n-f)*(r-i)&&(n-f)*(u-i)>=(x-f)*(t-i)}function q(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!m(e,r)&&(P(e,r)&&P(r,e)&&d(e,r)&&(g(e.prev,e,r.prev)||g(e,r.prev,r))||E(e,r)&&g(e.prev,e,e.next)>0&&g(r.prev,r,r.next)>0)}function g(e,r,n){return(r.y-e.y)*(n.x-r.x)-(r.x-e.x)*(n.y-r.y)}function E(e,r){return e.x===r.x&&e.y===r.y}function N(e,r,n,t){var x=k(g(e,r,n)),u=k(g(e,r,t)),f=k(g(n,t,e)),i=k(g(n,t,r));return!!(x!==u&&f!==i||x===0&&_(e,n,r)||u===0&&_(e,t,r)||f===0&&_(n,e,t)||i===0&&_(n,r,t))}function _(e,r,n){return r.x<=Math.max(e.x,n.x)&&r.x>=Math.min(e.x,n.x)&&r.y<=Math.max(e.y,n.y)&&r.y>=Math.min(e.y,n.y)}function k(e){return e>0?1:e<0?-1:0}function m(e,r){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==r.i&&n.next.i!==r.i&&N(n,n.next,e,r))return!0;n=n.next}while(n!==e);return!1}function P(e,r){return g(e.prev,e,e.next)<0?g(e,r,e.next)>=0&&g(e,e.prev,r)>=0:g(e,r,e.prev)<0||g(e,e.next,r)<0}function d(e,r){var n=e,t=!1,x=(e.x+r.x)/2,u=(e.y+r.y)/2;do n.y>u!=n.next.y>u&&n.next.y!==n.y&&x<(n.next.x-n.x)*(u-n.y)/(n.next.y-n.y)+n.x&&(t=!t),n=n.next;while(n!==e);return t}function R(e,r){var n=new a(e.i,e.x,e.y),t=new a(r.i,r.x,r.y),x=e.next,u=r.prev;return e.next=r,r.prev=e,n.next=x,x.prev=n,t.next=n,n.prev=t,u.next=t,t.prev=u,t}function T(e,r,n,t){var x=new a(e,r,n);return t?(x.next=t.next,x.prev=t,t.next.prev=x,t.next=x):(x.prev=x,x.next=x),x}function H(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function a(e,r,n){this.i=e,this.x=r,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}z.deviation=function(e,r,n,t){var x=r&&r.length,u=x?r[0]*n:e.length,f=Math.abs(j(e,0,u,n));if(x)for(var i=0,v=r.length;i0&&(t+=e[x-1].length,n.holes.push(t))}return n};export{ne as a,ee as c,re as g}; diff --git a/assets/eventemitter3.dc5195d7.js b/assets/eventemitter3.dc5195d7.js new file mode 100644 index 0000000..036c893 --- /dev/null +++ b/assets/eventemitter3.dc5195d7.js @@ -0,0 +1 @@ +var w={exports:{}};(function(g){var m=Object.prototype.hasOwnProperty,u="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(u=!1));function b(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function x(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new b(n,r||s,l),o=u?u+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function y(s,t){--s._eventsCount===0?s._events=new h:delete s._events[t]}function f(){this._events=new h,this._eventsCount=0}f.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)m.call(n,r)&&t.push(u?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},f.prototype.listeners=function(t){var n=u?u+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l10&&(n.lastTenTicks=n.lastTenTicks.slice(1)),!((f==null?void 0:f.value)&&!e.keepGoing)&&!n.hasNaN&&(i=Math.max(i,0),e.devSpeed!==0)){if(T.value=!1,e.offlineTime!=null){if(l.gt(e.offlineTime,a.offlineLimit*3600)&&(e.offlineTime=a.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,a.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(m),o!=null&&(clearInterval(o),o=null)):o==null&&(o=setInterval(m,50)))}}async function G(){f=(await d(()=>import("./index.624ae6e9.js").then(function(t){return t.c}),["assets/index.624ae6e9.js","assets/index.7f7e174e.css","assets/@fontsource.f66d05e7.css","assets/vue.5bd9f35e.js","assets/lru-cache.9506e0ec.js","assets/yallist.fd762fe7.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/vuedraggable.832ed13e.js","assets/sortablejs.80af5380.js","assets/vue-next-select.8d9e0122.js","assets/vue-next-select.9e6f4164.css","assets/vue-textarea-autosize.35804eaf.js","assets/semver.d101e2be.js","assets/socket.io-client.79ce0df5.js","assets/engine.io-client.58517560.js","assets/engine.io-parser.3f360695.js","assets/@socket.io.aec831e2.js","assets/socket.io-parser.544e37d1.js","assets/vue-toastification.b272a510.js","assets/vue-toastification.4b5f8ac8.css","assets/workbox-window.8d14e8b7.js"])).hasWon,c(f,t=>{t&&u.emit("gameWon")}),p.unthrottled?requestAnimationFrame(m):o=setInterval(m,50)}export{G as startGameLoop}; diff --git a/assets/gameLoop.f1593b24.js b/assets/gameLoop.f1593b24.js new file mode 100644 index 0000000..fd7ab52 --- /dev/null +++ b/assets/gameLoop.f1593b24.js @@ -0,0 +1 @@ +import{_ as d,s,p as e,a as n,l as T,D as r,b as l,g as u}from"./index.98888828.js";import"./vue.f6263579.js";import{b1 as c}from"./@vue.4ce677c2.js";/* empty css */import"./nanoevents.1080beb7.js";import"./lz-string.f2f3b7cf.js";import"./vuedraggable.c3acdf62.js";import"./earcut.b6f90e68.js";import"./sortablejs.cbae5b2d.js";import"./vue-next-select.0dc4e443.js";import"./vue-textarea-autosize.35804eaf.js";import"./semver.83ff78cf.js";import"./lru-cache.9a21e90b.js";import"./yallist.fd762fe7.js";import"./socket.io-client.79ce0df5.js";import"./engine.io-client.58517560.js";import"./engine.io-parser.3f360695.js";import"./@socket.io.aec831e2.js";import"./socket.io-parser.544e37d1.js";import"./vue-toastification.b7cd620e.js";import"./@pixi.1eac1889.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.e51cb87b.js";import"./querystring.23ae9a54.js";import"./workbox-window.8d14e8b7.js";let o=null,m=null;function f(){const t=Date.now();let i=(t-e.time)/1e3;e.time=t;const a=i;if(n.lastTenTicks.push(a),n.lastTenTicks.length>10&&(n.lastTenTicks=n.lastTenTicks.slice(1)),!((m==null?void 0:m.value)&&!e.keepGoing)&&!n.hasNaN&&(i=Math.max(i,0),e.devSpeed!==0)){if(T.value=!1,e.offlineTime!=null){if(r.gt(e.offlineTime,l.offlineLimit*3600)&&(e.offlineTime=l.offlineLimit*3600),r.gt(e.offlineTime,0)&&e.devSpeed!==0){const p=Math.max(e.offlineTime/10,i);e.offlineTime=e.offlineTime-p,i+=p}else e.devSpeed===0&&(e.offlineTime+=i);(!e.offlineProd||r.lt(e.offlineTime,0))&&(e.offlineTime=null)}i=Math.min(i,l.maxTickLength),e.devSpeed!=null&&(i*=e.devSpeed),Number.isFinite(i)||(i=1e308),!r.eq(i,0)&&(e.timePlayed+=i,Number.isFinite(e.timePlayed)||(e.timePlayed=1e308),u.emit("update",i,a),s.unthrottled?(requestAnimationFrame(f),o!=null&&(clearInterval(o),o=null)):o==null&&(o=setInterval(f,50)))}}async function W(){m=(await d(()=>import("./index.98888828.js").then(function(t){return t.c}),["assets/index.98888828.js","assets/index.34fd6db2.css","assets/@fontsource.f66d05e7.css","assets/vue.f6263579.js","assets/earcut.b6f90e68.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/vuedraggable.c3acdf62.js","assets/sortablejs.cbae5b2d.js","assets/vue-next-select.0dc4e443.js","assets/vue-next-select.9e6f4164.css","assets/vue-textarea-autosize.35804eaf.js","assets/semver.83ff78cf.js","assets/lru-cache.9a21e90b.js","assets/yallist.fd762fe7.js","assets/socket.io-client.79ce0df5.js","assets/engine.io-client.58517560.js","assets/engine.io-parser.3f360695.js","assets/@socket.io.aec831e2.js","assets/socket.io-parser.544e37d1.js","assets/vue-toastification.b7cd620e.js","assets/vue-toastification.4b5f8ac8.css","assets/@pixi.1eac1889.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.e51cb87b.js","assets/querystring.23ae9a54.js","assets/workbox-window.8d14e8b7.js"])).hasWon,c(m,t=>{t&&u.emit("gameWon")}),s.unthrottled?requestAnimationFrame(f):o=setInterval(f,50)}export{W as startGameLoop}; diff --git a/assets/index.7f7e174e.css b/assets/index.34fd6db2.css similarity index 61% rename from assets/index.7f7e174e.css rename to assets/index.34fd6db2.css index 7885139..063d76a 100644 --- a/assets/index.7f7e174e.css +++ b/assets/index.34fd6db2.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-a592996e]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-a592996e]: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-a592996e]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-a592996e]{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-a592996e]{margin:0;writing-mode:vertical-rl;text-align:left;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-a592996e]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-a592996e]{padding-bottom:0}.modal-body .layer-tab[data-v-a592996e]:not(.hasSubtabs){padding-top:0}.minimize[data-v-a592996e]{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-a592996e]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-a592996e]{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-a592996e]: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-638848c0]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-638848c0],.tooltip[data-v-638848c0]:after{pointer-events:none;position:absolute}.tooltip[data-v-638848c0]{text-align:center;width:250px;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-638848c0] hr{margin:var(--feature-margin) 0}.shown[data-v-638848c0]{z-index:10}.fade-enter-from[data-v-638848c0],.fade-leave-to[data-v-638848c0]{opacity:0}.tooltip[data-v-638848c0]: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-638848c0],.side-nodes .tooltip[data-v-638848c0]: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-638848c0]:after,.side-nodes .tooltip[data-v-638848c0]: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-638848c0]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-638848c0]: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-638848c0]{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-638848c0]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-638848c0]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-5d3cb6f4]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-5d3cb6f4]{margin:0}.info-modal-logo[data-v-5d3cb6f4]{height:4em;width:4em}.info-modal-title[data-v-5d3cb6f4]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-5d3cb6f4]{display:flex;align-items:center}.info-modal-discord[data-v-5d3cb6f4]{margin:0 4px 0 0}.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}.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)}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}.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%)}}.save[data-v-c3447434]{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-c3447434]{border-color:var(--bought)}.open[data-v-c3447434]{display:inline;margin:0;padding-left:0}.handle[data-v-c3447434]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-c3447434]{margin:0 80px 0 0;flex-grow:1}.error[data-v-c3447434]{font-size:.8em;color:var(--danger)}.save-version[data-v-c3447434]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-c3447434]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-c3447434]{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-5b5b1604],.field .field-title[data-v-5b5b1604],.field .field-buttons[data-v-5b5b1604]{margin:0}.field-buttons[data-v-5b5b1604]{display:flex}.field-buttons .field[data-v-5b5b1604]{margin:0 0 0 8px}.modal-footer[data-v-5b5b1604]{margin-top:-20px}.footer[data-v-5b5b1604]{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-269f7a94]{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-269f7a94]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-269f7a94]{height:100%;width:unset}.overlay-nav[data-v-269f7a94]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-269f7a94]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-269f7a94]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-269f7a94]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-269f7a94],.nav .info[data-v-269f7a94]{display:flex}.tooltip-container[data-v-269f7a94]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-269f7a94]{position:relative}.discord img[data-v-269f7a94]{width:100%;height:100%}.discord-links[data-v-269f7a94]{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-269f7a94]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-269f7a94]{left:-10px}.discord-links li[data-v-269f7a94]{margin-bottom:4px}.discord-links li[data-v-269f7a94]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-269f7a94]{right:0}.material-icons[data-v-269f7a94]{font-size:36px}.material-icons[data-v-269f7a94]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-269f7a94]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-269f7a94]{width:unset;height:25px}.version[data-v-269f7a94]{color:var(--points)}.version:hover span[data-v-269f7a94]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-269f7a94],.overlay-nav>div>a[data-v-269f7a94]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-3e0f1aab]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-3e0f1aab]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-3e0f1aab]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-3e0f1aab]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-3e0f1aab]{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}.character[data-v-525c924f]{width:10vmin;height:10vmin;position:relative;margin:4vmin;justify-content:center;user-select:none;display:flex}.character[data-v-525c924f]:not(.empty){cursor:pointer}.character.shake[data-v-525c924f]{animation:shake-525c924f .5s infinite}.character *[data-v-525c924f]{pointer-events:none}.character-display img[data-v-525c924f]{image-rendering:pixelated;width:10vmin;height:10vmin;filter:drop-shadow(2px 4px 6px black)}.character[data-v-525c924f]:after{content:"";background:grey;position:absolute;top:67.5%;left:0;right:0;bottom:-12.5%;border-radius:50%;z-index:-1}.character.selected[data-v-525c924f]:not(.dragging):before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-image:url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%2388C0D0' stroke-width='8' stroke-dasharray='10%25%2c90%25' stroke-dashoffset='5%25' stroke-linecap='square'/%3e%3c/svg%3e");z-index:1}.character[data-v-525c924f]:not(.selected):not(.empty):not(.dragging):not(.isDragging):hover:before,.character:not(.selected):not(.empty):not(.dragging).draggingOver[data-v-525c924f]:before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-image:url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%2388C0D0' stroke-width='4' stroke-dasharray='10%25%2c90%25' stroke-dashoffset='5%25' stroke-linecap='square'/%3e%3c/svg%3e");z-index:1}.relevancy-display[data-v-525c924f]{position:absolute;top:-15%;left:0;transform:translate(-50%,-50%)}.relevancy-display img[data-v-525c924f]{position:absolute;transform:translate(-45%,-45%);z-index:-1;width:10vmin;height:10vmin;image-rendering:pixelated}.relevancy-display span[data-v-525c924f]{font-family:Roboto Mono;font-size:2vmin;color:#fff;text-shadow:-1px 1px 0 black,1px 1px 0 black,1px -1px 0 black,-1px -1px 0 black;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.presence-display[data-v-525c924f]{position:absolute;top:0;right:0;transform:translate(-50%,-50%);color:var(--feature-foreground)}.presence-display .material-icons[data-v-525c924f]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--accent1);font-size:2vmin;z-index:-1}.level-display[data-v-525c924f]{position:absolute;bottom:-5%;right:-5%;z-index:1;transform:translate(50%,50%)}.level-display img[data-v-525c924f]{width:10vmin;height:10vmin}.move-indicator[data-v-525c924f]{position:absolute;transform:translate(-50%) rotate(180deg);top:-75%;left:50%;animation:bouncingMoveIndicator-525c924f 1s infinite}.move-indicator .material-icons[data-v-525c924f]{font-size:5vmin;transition:all .5s ease,color 0s}.character:not(.isDragging):hover .move-indicator .material-icons[data-v-525c924f],.character.draggingOver .move-indicator .material-icons[data-v-525c924f]{color:var(--feature-foreground)}@keyframes bouncingMoveIndicator-525c924f{0%{transform:translate(-50%) rotate(180deg) translateY(0)}50%{transform:translate(-50%) rotate(180deg) translateY(50%)}to{transform:translate(-50%) rotate(180deg) translateY(0)}}@keyframes shake-525c924f{0%{transform:translate(1px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(-1deg)}20%{transform:translate(-3px) rotate(1deg)}30%{transform:translate(3px,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(-1deg)}60%{transform:translate(-3px,1px) rotate(0)}70%{transform:translate(3px,1px) rotate(-1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(1px,2px) rotate(0)}to{transform:translate(1px,-2px) rotate(-1deg)}}.game-container{display:flex;flex-direction:column;height:100%}.modifier-toggle{padding-right:10px;transform:translateY(-1px);display:inline-block}.modifier-toggle.collapsed{transform:translate(-5px,-5px) rotate(-90deg)}.resource-box{display:flex;border:solid 2px var(--bought);padding:0 4px;border-radius:4px;font-size:2em;align-items:center}.resource-box:not(:last-child){margin-right:20px!important}.resource-box .material-icons{margin-right:6px;font-size:1em}.resource-box img{margin-right:6px;width:1em;transform:scale(2);image-rendering:pixelated}.reroll{flex-direction:column;margin:2vmin;cursor:pointer;user-select:none;transition-duration:0s}.startStream{height:16vmin;cursor:pointer;filter:drop-shadow(2px 4px 6px black)}.waiting{font-size:4vmin;height:16vmin;display:flex;align-items:center}.battle-container{display:flex;flex-direction:column;height:100%}.battle-container:not(.fast) *{transition-duration:1s}.teams-container{display:flex;height:100%;width:100%}.team-container{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;margin:0 4vmin}.stream-container{aspect-ratio:16/9;width:calc(100% - 4px);margin:0 auto;border:solid 2px var(--accent1);position:relative;background:var(--background);filter:drop-shadow(2px 4px 6px black)}.stream-details{position:absolute;top:1vmin;display:flex;flex-direction:column}.stream-details .stats{display:flex;margin-top:1vmin}.view-counter{font-size:2vmin;position:absolute;top:1vmin}.streamers-container{width:90%;height:18vmin;position:absolute;left:5%;bottom:5%;overflow:hidden}.members-container{height:18vmin;overflow:hidden;flex-shrink:0}.streamers-container .row,.members-container .row{flex-flow:row}.streamers-container .character{margin:4vmin 1vmin}.battle-controls{margin-bottom:2vmin;display:flex}.battle-controls .button{display:flex;flex-direction:column;font-size:2vmin;margin:1vmin;border:solid 2px var(--link);border-radius:var(--border-radius)}.battle-controls .button.active{background:var(--link);color:var(--feature-foreground)}.outcome{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:2vmin 4vmin;background:var(--tooltip-background);border-radius:4vmin;font-size:6vmin;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.outcome span{margin:1vmin}.character-transition-enter-from{transform:translateY(100%)}.character-transition-leave-to{transform:translateY(-100%)}.character-trensition-active{position:absolute}@media (orientation: portrait){.teams-container{flex-direction:column}.team-container{margin:4vmin 0}.stream-container{width:unset;height:100%}}.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}.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-336bf74f]{padding:10px 0;margin-left:10px}.nan-footer[data-v-336bf74f]{display:flex;justify-content:flex-end}.nan-footer button[data-v-336bf74f]{margin:0 10px}.nan-modal-discord-link[data-v-336bf74f]{display:flex;align-items:center}.nan-modal-discord[data-v-336bf74f]{margin:0 4px 0 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-ff7f8b84]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-ff7f8b84]{position:absolute;min-height:100%;height:100%} +.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-a592996e]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-a592996e]: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-a592996e]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-a592996e]{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-a592996e]{margin:0;writing-mode:vertical-rl;text-align:left;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-a592996e]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-a592996e]{padding-bottom:0}.modal-body .layer-tab[data-v-a592996e]:not(.hasSubtabs){padding-top:0}.minimize[data-v-a592996e]{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-a592996e]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-a592996e]{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-a592996e]: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-638848c0]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-638848c0],.tooltip[data-v-638848c0]:after{pointer-events:none;position:absolute}.tooltip[data-v-638848c0]{text-align:center;width:250px;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-638848c0] hr{margin:var(--feature-margin) 0}.shown[data-v-638848c0]{z-index:10}.fade-enter-from[data-v-638848c0],.fade-leave-to[data-v-638848c0]{opacity:0}.tooltip[data-v-638848c0]: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-638848c0],.side-nodes .tooltip[data-v-638848c0]: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-638848c0]:after,.side-nodes .tooltip[data-v-638848c0]: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-638848c0]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-638848c0]: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-638848c0]{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-638848c0]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-638848c0]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-5d3cb6f4]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-5d3cb6f4]{margin:0}.info-modal-logo[data-v-5d3cb6f4]{height:4em;width:4em}.info-modal-title[data-v-5d3cb6f4]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-5d3cb6f4]{display:flex;align-items:center}.info-modal-discord[data-v-5d3cb6f4]{margin:0 4px 0 0}.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}.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)}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}.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%)}}.save[data-v-c3447434]{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-c3447434]{border-color:var(--bought)}.open[data-v-c3447434]{display:inline;margin:0;padding-left:0}.handle[data-v-c3447434]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-c3447434]{margin:0 80px 0 0;flex-grow:1}.error[data-v-c3447434]{font-size:.8em;color:var(--danger)}.save-version[data-v-c3447434]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-c3447434]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-c3447434]{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-5b5b1604],.field .field-title[data-v-5b5b1604],.field .field-buttons[data-v-5b5b1604]{margin:0}.field-buttons[data-v-5b5b1604]{display:flex}.field-buttons .field[data-v-5b5b1604]{margin:0 0 0 8px}.modal-footer[data-v-5b5b1604]{margin-top:-20px}.footer[data-v-5b5b1604]{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-269f7a94]{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-269f7a94]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-269f7a94]{height:100%;width:unset}.overlay-nav[data-v-269f7a94]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-269f7a94]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-269f7a94]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-269f7a94]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-269f7a94],.nav .info[data-v-269f7a94]{display:flex}.tooltip-container[data-v-269f7a94]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-269f7a94]{position:relative}.discord img[data-v-269f7a94]{width:100%;height:100%}.discord-links[data-v-269f7a94]{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-269f7a94]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-269f7a94]{left:-10px}.discord-links li[data-v-269f7a94]{margin-bottom:4px}.discord-links li[data-v-269f7a94]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-269f7a94]{right:0}.material-icons[data-v-269f7a94]{font-size:36px}.material-icons[data-v-269f7a94]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-269f7a94]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-269f7a94]{width:unset;height:25px}.version[data-v-269f7a94]{color:var(--points)}.version:hover span[data-v-269f7a94]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-269f7a94],.overlay-nav>div>a[data-v-269f7a94]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-3e0f1aab]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-3e0f1aab]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-3e0f1aab]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-3e0f1aab]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-3e0f1aab]{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}.node[data-v-a48cb382]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.character[data-v-5cbd66ac]{width:10vmin;height:10vmin;position:relative;margin:4vmin;justify-content:center;user-select:none;display:flex}.character[data-v-5cbd66ac]:not(.empty){cursor:pointer}.character.shake[data-v-5cbd66ac]{animation:shake-5cbd66ac .5s infinite}.character *[data-v-5cbd66ac]{pointer-events:none}.character-display img[data-v-5cbd66ac]{image-rendering:pixelated;width:10vmin;height:10vmin;filter:drop-shadow(2px 4px 6px black)}.character[data-v-5cbd66ac]:after{content:"";background:grey;position:absolute;top:67.5%;left:0;right:0;bottom:-12.5%;border-radius:50%;z-index:-1}.character.selected[data-v-5cbd66ac]:not(.dragging):before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-image:url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%2388C0D0' stroke-width='8' stroke-dasharray='10%25%2c90%25' stroke-dashoffset='5%25' stroke-linecap='square'/%3e%3c/svg%3e");z-index:1}.character[data-v-5cbd66ac]:not(.selected):not(.empty):not(.dragging):not(.isDragging):hover:before,.character:not(.selected):not(.empty):not(.dragging).draggingOver[data-v-5cbd66ac]:before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-image:url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%2388C0D0' stroke-width='4' stroke-dasharray='10%25%2c90%25' stroke-dashoffset='5%25' stroke-linecap='square'/%3e%3c/svg%3e");z-index:1}.relevancy-display[data-v-5cbd66ac]{position:absolute;top:-15%;left:0;transform:translate(-50%,-50%)}.relevancy-display img[data-v-5cbd66ac]{position:absolute;transform:translate(-45%,-45%);z-index:-1;width:10vmin;height:10vmin;image-rendering:pixelated}.relevancy-display span[data-v-5cbd66ac]{font-family:Roboto Mono;font-size:2vmin;color:#fff;text-shadow:-1px 1px 0 black,1px 1px 0 black,1px -1px 0 black,-1px -1px 0 black;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.presence-display[data-v-5cbd66ac]{position:absolute;top:0;right:0;transform:translate(-50%,-50%);color:var(--feature-foreground)}.presence-display .material-icons[data-v-5cbd66ac]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--accent1);font-size:2vmin;z-index:-1}.level-display[data-v-5cbd66ac]{position:absolute;bottom:-5%;right:-5%;z-index:1;transform:translate(50%,50%)}.level-display img[data-v-5cbd66ac]{width:10vmin;height:10vmin}.move-indicator[data-v-5cbd66ac]{position:absolute;transform:translate(-50%) rotate(180deg);top:-75%;left:50%;animation:bouncingMoveIndicator-5cbd66ac 1s infinite}.move-indicator .material-icons[data-v-5cbd66ac]{font-size:5vmin;transition:all .5s ease,color 0s}.character:not(.isDragging):hover .move-indicator .material-icons[data-v-5cbd66ac],.character.draggingOver .move-indicator .material-icons[data-v-5cbd66ac]{color:var(--feature-foreground)}@keyframes bouncingMoveIndicator-5cbd66ac{0%{transform:translate(-50%) rotate(180deg) translateY(0)}50%{transform:translate(-50%) rotate(180deg) translateY(50%)}to{transform:translate(-50%) rotate(180deg) translateY(0)}}@keyframes shake-5cbd66ac{0%{transform:translate(1px,1px) rotate(0)}10%{transform:translate(-1px,-2px) rotate(-1deg)}20%{transform:translate(-3px) rotate(1deg)}30%{transform:translate(3px,2px) rotate(0)}40%{transform:translate(1px,-1px) rotate(1deg)}50%{transform:translate(-1px,2px) rotate(-1deg)}60%{transform:translate(-3px,1px) rotate(0)}70%{transform:translate(3px,1px) rotate(-1deg)}80%{transform:translate(-1px,-1px) rotate(1deg)}90%{transform:translate(1px,2px) rotate(0)}to{transform:translate(1px,-2px) rotate(-1deg)}}.game-container{display:flex;flex-direction:column;height:100%}.modifier-toggle{padding-right:10px;transform:translateY(-1px);display:inline-block}.modifier-toggle.collapsed{transform:translate(-5px,-5px) rotate(-90deg)}.resource-box{display:flex;border:solid 2px var(--bought);padding:0 4px;border-radius:4px;font-size:2em;align-items:center}.resource-box:not(:last-child){margin-right:20px!important}.resource-box .material-icons{margin-right:6px;font-size:1em}.resource-box img{margin-right:6px;width:1em;transform:scale(2);image-rendering:pixelated}.reroll{flex-direction:column;margin:2vmin;cursor:pointer;user-select:none;transition-duration:0s}.startStream{height:16vmin;cursor:pointer;filter:drop-shadow(2px 4px 6px black)}.waiting{font-size:4vmin;height:16vmin;display:flex;align-items:center}.battle-container{display:flex;flex-direction:column;height:100%}.battle-container:not(.fast) *{transition-duration:1s}.teams-container{display:flex;height:100%;width:100%}.team-container{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;margin:0 4vmin}.stream-container{aspect-ratio:16/9;width:calc(100% - 4px);margin:0 auto;border:solid 2px var(--accent1);position:relative;background:var(--background);filter:drop-shadow(2px 4px 6px black)}.stream-details{position:absolute;top:1vmin;display:flex;flex-direction:column}.stream-details .stats{display:flex;margin-top:1vmin}.view-counter{font-size:2vmin;position:absolute;top:1vmin}.streamers-container{width:90%;height:18vmin;position:absolute;left:5%;bottom:5%;overflow:hidden}.members-container{height:18vmin;overflow:hidden;flex-shrink:0}.streamers-container .row,.members-container .row{flex-flow:row}.streamers-container .character{margin:4vmin 1vmin}.battle-controls{margin-bottom:2vmin;display:flex}.battle-controls .button{display:flex;flex-direction:column;font-size:2vmin;margin:1vmin;border:solid 2px var(--link);border-radius:var(--border-radius)}.battle-controls .button.active{background:var(--link);color:var(--feature-foreground)}.outcome{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);padding:2vmin 4vmin;background:var(--tooltip-background);border-radius:4vmin;font-size:6vmin;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer}.outcome span{margin:1vmin}.character-transition-enter-from{transform:translateY(100%)}.character-transition-leave-to{transform:translateY(-100%)}.character-trensition-active{position:absolute}@media (orientation: portrait){.teams-container{flex-direction:column}.team-container{margin:4vmin 0}.stream-container{width:unset;height:100%}}.not-fullscreen[data-v-0b99a6fc],.resize-listener[data-v-0b99a6fc]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;pointer-events:none;z-index:10}.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}.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-336bf74f]{padding:10px 0;margin-left:10px}.nan-footer[data-v-336bf74f]{display:flex;justify-content:flex-end}.nan-footer button[data-v-336bf74f]{margin:0 10px}.nan-modal-discord-link[data-v-336bf74f]{display:flex;align-items:center}.nan-modal-discord[data-v-336bf74f]{margin:0 4px 0 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-ff7f8b84]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-ff7f8b84]{position:absolute;min-height:100%;height:100%} diff --git a/assets/index.624ae6e9.js b/assets/index.624ae6e9.js deleted file mode 100644 index 62af3c3..0000000 --- a/assets/index.624ae6e9.js +++ /dev/null @@ -1,15 +0,0 @@ -/* empty css */import"./vue.5bd9f35e.js";import{Z as x,q as $e,C as u,t as _,b1 as de,aa as U,aE as m,a0 as E,a1 as c,aK as pe,G as $,w as et,b2 as Et,a8 as A,O as ne,ay as zt,ar as Xe,aG as at,A as ye,_ as z,b6 as T,b8 as Bt,bs as va,aq as je,bu as He,bb as Ut,T as pa,a7 as I,u as _t,j as ya,l as ge,bv as vt,aL as ba,$ as M,aN as Ae,J as G,I as Fe,aH as be,aF as Ne,z as Me,br as Na,aJ as Ca,bc as nt,ao as Ea,bn as Ba,be as _a}from"./@vue.4ce677c2.js";import{c as Ot}from"./nanoevents.1080beb7.js";import{L as ve}from"./lz-string.f2f3b7cf.js";import{D as wa}from"./vuedraggable.832ed13e.js";import{Y as Ia}from"./vue-next-select.8d9e0122.js";import{p as Sa}from"./vue-textarea-autosize.35804eaf.js";import{s as Qa}from"./semver.d101e2be.js";import{l as Ma}from"./socket.io-client.79ce0df5.js";import{u as Yt,s as ka}from"./vue-toastification.b272a510.js";import{v as Ta,n as Da}from"./workbox-window.8d14e8b7.js";import"./lru-cache.9506e0ec.js";import"./yallist.fd762fe7.js";import"./sortablejs.80af5380.js";import"./engine.io-client.58517560.js";import"./engine.io-parser.3f360695.js";import"./@socket.io.aec831e2.js";import"./socket.io-parser.544e37d1.js";const Ra=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function a(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=a(i);fetch(i.href,s)}};Ra();const Va="modulepreload",Tt={},qa="./",ot=function(t,a){return!a||a.length===0?t():Promise.all(a.map(n=>{if(n=`${qa}${n}`,n in Tt)return;Tt[n]=!0;const i=n.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${s}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":Va,i||(o.as="script",o.crossOrigin=""),o.href=n,document.head.appendChild(o),i)return new Promise((l,g)=>{o.addEventListener("load",l),o.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},Ga="./projInfo-schema.json",Pa="Super Auto Coots",xa="A project made in Profectus",Fa="superautocoots",za="thepaperpilot and crea",Ua="",Oa="",Ya="0.0.0",Ja="Initial Commit",La=!1,Wa=!1,Xa=2,ja=!0,Ha=null,Ka="",Za=["main"],$a=3600,en=1,tn=!0,an="base64";var P={$schema:Ga,title:Pa,description:xa,id:Fa,author:za,discordName:Ua,discordLink:Oa,versionNumber:Ya,versionTitle:Ja,allowGoBack:La,defaultShowSmall:Wa,defaultDecimalsShown:Xa,useHeader:ja,banner:Ha,logo:Ka,initialTabs:Za,maxTickLength:$a,offlineLimit:en,enablePausing:tn,exportEncoding:an};class nn{constructor(t){this.map=new Map,this.first=void 0,this.last=void 0,this.maxSize=t}get size(){return this.map.size}get(t){const a=this.map.get(t);if(a!==void 0)return a!==this.first&&(a===this.last?(this.last=a.prev,this.last.next=void 0):(a.prev.next=a.next,a.next.prev=a.prev),a.next=this.first,this.first.prev=a,this.first=a),a.value}set(t,a){if(this.maxSize<1)return;if(this.map.has(t))throw new Error("Cannot update existing keys in the cache");const n=new sn(t,a);for(this.first===void 0?(this.first=n,this.last=n):(n.next=this.first,this.first.prev=n,this.first=n),this.map.set(t,n);this.map.size>this.maxSize;){const i=this.last;this.map.delete(i.key),this.last=i.prev,this.last.next=void 0}}}class sn{constructor(t,a){this.next=void 0,this.prev=void 0,this.key=t,this.value=a}}const ft=17,rn=9e15,on=Math.log10(9e15),ln=1/9e15,An=308,un=-324,Dt=5,cn=(1<<10)-1,dn=function(){const e=[];for(let a=un+1;a<=An;a++)e.push(Number("1e"+a));const t=323;return function(a){return e[a+t]}}(),Ee=[2,Math.E,3,4,5,6,7,8,9,10],gn=[[1,1.0891180521811203,1.1789767925673957,1.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]],mn=[[-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 d=function(t){return C.fromValue_noAlloc(t)},Q=function(e,t,a){return C.fromComponents(e,t,a)},k=function(t,a,n){return C.fromComponents_noNormalize(t,a,n)};const he=function(t,a){const n=a+1,i=Math.ceil(Math.log10(Math.abs(t))),s=Math.round(t*Math.pow(10,n-i))*Math.pow(10,i-n);return parseFloat(s.toFixed(Math.max(n-i,0)))},ht=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},fn=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 a=.9189385332046727;a=a+(e+.5)*Math.log(e),a=a-e;const n=e*e;let i=e;return a=a+1/(12*i),i=i*n,a=a+1/(360*i),i=i*n,a=a+1/(1260*i),i=i*n,a=a+1/(1680*i),i=i*n,a=a+1/(1188*i),i=i*n,a=a+691/(360360*i),i=i*n,a=a+7/(1092*i),i=i*n,a=a+3617/(122400*i),Math.exp(a)/t},Jt=.5671432904097838,Rt=function(e,t=1e-10){let a,n;if(!Number.isFinite(e)||e===0)return e;if(e===1)return Jt;e<10?a=0:a=Math.log(e)-Math.log(Math.log(e));for(let i=0;i<100;++i){if(n=(e*Math.exp(-a)+a*a)/(a+1),Math.abs(n-a).5?1:-1;if(Math.random()*20<1)return k(t,0,1);const a=Math.floor(Math.random()*(e+1));let n=a===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(n=Math.trunc(n));let i=Math.pow(10,n);return Math.random()>.9&&(i=Math.trunc(i)),Q(t,a,i)}static affordGeometricSeries_core(e,t,a,n){const i=t.mul(a.pow(n));return r.floor(e.div(i).mul(a.sub(1)).add(1).log10().div(a.log10()))}static sumGeometricSeries_core(e,t,a,n){return t.mul(a.pow(n)).mul(r.sub(1,a.pow(e))).div(r.sub(1,a))}static affordArithmeticSeries_core(e,t,a,n){const s=t.add(n.mul(a)).sub(a.div(2)),o=s.pow(2);return s.neg().add(o.add(a.mul(e).mul(2)).sqrt()).div(a).floor()}static sumArithmeticSeries_core(e,t,a,n){const i=t.add(n.mul(a));return e.div(2).mul(i.mul(2).plus(e.sub(1).mul(a)))}static efficiencyOfPurchase_core(e,t,a){return e.div(t).add(e.div(a))}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=rn)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,a){return this.sign=e,this.layer=t,this.mag=a,this.normalize(),this}fromComponents_noNormalize(e,t,a){return this.sign=e,this.layer=t,this.mag=a,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,a=r.fromStringCache.get(t);if(a!==void 0)return this.fromDecimal(a);e=e.replace(",","");const n=e.split("^^^");if(n.length===2){const h=parseFloat(n[0]),w=parseFloat(n[1]),O=n[1].split(";");let W=1;if(O.length===2&&(W=parseFloat(O[1]),isFinite(W)||(W=1)),isFinite(h)&&isFinite(w)){const p=r.pentate(h,w,W);return this.sign=p.sign,this.layer=p.layer,this.mag=p.mag,r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}}const i=e.split("^^");if(i.length===2){const h=parseFloat(i[0]),w=parseFloat(i[1]),O=i[1].split(";");let W=1;if(O.length===2&&(W=parseFloat(O[1]),isFinite(W)||(W=1)),isFinite(h)&&isFinite(w)){const p=r.tetrate(h,w,W);return this.sign=p.sign,this.layer=p.layer,this.mag=p.mag,r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}}const s=e.split("^");if(s.length===2){const h=parseFloat(s[0]),w=parseFloat(s[1]);if(isFinite(h)&&isFinite(w)){const O=r.pow(h,w);return this.sign=O.sign,this.layer=O.layer,this.mag=O.mag,r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}}e=e.trim().toLowerCase();let o,l,g=e.split("pt");if(g.length===2){o=10,l=parseFloat(g[0]),g[1]=g[1].replace("(",""),g[1]=g[1].replace(")","");let h=parseFloat(g[1]);if(isFinite(h)||(h=1),isFinite(o)&&isFinite(l)){const w=r.tetrate(o,l,h);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}}if(g=e.split("p"),g.length===2){o=10,l=parseFloat(g[0]),g[1]=g[1].replace("(",""),g[1]=g[1].replace(")","");let h=parseFloat(g[1]);if(isFinite(h)||(h=1),isFinite(o)&&isFinite(l)){const w=r.tetrate(o,l,h);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}}const f=e.split("e"),b=f.length-1;if(b===0){const h=parseFloat(e);if(isFinite(h))return this.fromNumber(h),r.fromStringCache.size>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}else if(b===1){const h=parseFloat(e);if(isFinite(h)&&h!==0)return this.fromNumber(h),r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}const v=e.split("e^");if(v.length===2){this.sign=1,v[0].charAt(0)=="-"&&(this.sign=-1);let h="";for(let w=0;w=43&&O<=57||O===101)h+=v[1].charAt(w);else return this.layer=parseFloat(h),this.mag=parseFloat(v[1].substr(w+1)),this.normalize(),r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}}if(b<1)return this.sign=0,this.layer=0,this.mag=0,r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this;const y=parseFloat(f[0]);if(y===0)return this.sign=0,this.layer=0,this.mag=0,r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this;let N=parseFloat(f[f.length-1]);if(b>=2){const h=parseFloat(f[f.length-2]);isFinite(h)&&(N*=Math.sign(h),N+=ht(h))}if(!isFinite(y))this.sign=f[0]==="-"?-1:1,this.layer=b,this.mag=N;else if(b===1)this.sign=Math.sign(y),this.layer=1,this.mag=N+Math.log10(Math.abs(y));else if(this.sign=Math.sign(y),this.layer=b,b===2){const h=r.mul(Q(1,2,N),d(y));return this.sign=h.sign,this.layer=h.layer,this.mag=h.mag,r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}else this.mag=N;return this.normalize(),r.fromStringCache.maxSize>=1&&r.fromStringCache.set(t,r.fromDecimal(this)),this}fromValue(e){return e instanceof r?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:he(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:he(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):he(this.m,e)+"e"+he(this.e,e):this.layer===1?he(this.m,e)+"e"+he(this.e,e):this.layer<=Dt?(this.sign===-1?"-":"")+"e".repeat(this.layer)+he(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+he(this.mag,e)}abs(){return k(this.sign===0?0:1,this.layer,this.mag)}neg(){return k(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?r.dZero:this.layer===0?Q(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?r.dZero:this.layer===0?Q(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?r.dZero:this.layer===0?Q(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?r.dZero:this.layer===0?Q(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=d(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 k(0,0,0);let a,n;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(r.cmpabs(this,t)>0?(a=this,n=t):(a=t,n=this),a.layer===0&&n.layer===0)return r.fromNumber(a.sign*a.mag+n.sign*n.mag);const i=a.layer*Math.sign(a.mag),s=n.layer*Math.sign(n.mag);if(i-s>=2)return a;if(i===0&&s===-1){if(Math.abs(n.mag-Math.log10(a.mag))>ft)return a;{const o=Math.pow(10,Math.log10(a.mag)-n.mag),l=n.sign+a.sign*o;return Q(Math.sign(l),1,n.mag+Math.log10(Math.abs(l)))}}if(i===1&&s===0){if(Math.abs(a.mag-Math.log10(n.mag))>ft)return a;{const o=Math.pow(10,a.mag-Math.log10(n.mag)),l=n.sign+a.sign*o;return Q(Math.sign(l),1,Math.log10(n.mag)+Math.log10(Math.abs(l)))}}if(Math.abs(a.mag-n.mag)>ft)return a;{const o=Math.pow(10,a.mag-n.mag),l=n.sign+a.sign*o;return Q(Math.sign(l),1,n.mag+Math.log10(Math.abs(l)))}}plus(e){return this.add(e)}sub(e){return this.add(d(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=d(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return k(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return k(this.sign*t.sign,0,1);let a,n;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(a=this,n=t):(a=t,n=this),a.layer===0&&n.layer===0)return r.fromNumber(a.sign*n.sign*a.mag*n.mag);if(a.layer>=3||a.layer-n.layer>=2)return Q(a.sign*n.sign,a.layer,a.mag);if(a.layer===1&&n.layer===0)return Q(a.sign*n.sign,1,a.mag+Math.log10(n.mag));if(a.layer===1&&n.layer===1)return Q(a.sign*n.sign,1,a.mag+n.mag);if(a.layer===2&&n.layer===1){const i=Q(Math.sign(a.mag),a.layer-1,Math.abs(a.mag)).add(Q(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)));return Q(a.sign*n.sign,i.layer+1,i.sign*i.mag)}if(a.layer===2&&n.layer===2){const i=Q(Math.sign(a.mag),a.layer-1,Math.abs(a.mag)).add(Q(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)));return Q(a.sign*n.sign,i.layer+1,i.sign*i.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=d(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?r.dNaN:this.layer===0?Q(this.sign,0,1/this.mag):Q(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=d(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,n=t.mag>0?t.layer:-t.layer;return a>n?1:at.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 a=d(e);return this.eq_tolerance(a,t)?0:this.cmp(a)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const a=d(e);if(t==null&&(t=1e-7),this.sign!==a.sign||Math.abs(this.layer-a.layer)>1)return!1;let n=this.mag,i=a.mag;return this.layer>a.layer&&(i=ht(i)),this.layer0?Q(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):Q(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?r.dNaN:this.layer>0?Q(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):Q(this.sign,0,Math.log10(this.mag))}log(e){return e=d(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?r.dNaN:this.layer===0&&e.layer===0?Q(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):r.div(this.log10(),e.log10())}log2(){return this.sign<=0?r.dNaN:this.layer===0?Q(this.sign,0,Math.log2(this.mag)):this.layer===1?Q(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?Q(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):Q(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?r.dNaN:this.layer===0?Q(this.sign,0,Math.log(this.mag)):this.layer===1?Q(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?Q(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):Q(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=d(e),a=this,n=t;if(a.sign===0)return n.eq(0)?k(1,0,1):a;if(a.sign===1&&a.layer===0&&a.mag===1)return a;if(n.sign===0)return k(1,0,1);if(n.sign===1&&n.layer===0&&n.mag===1)return a;const i=a.absLog10().mul(n).pow10();return this.sign===-1?Math.abs(n.toNumber()%2)%2===1?i.neg():Math.abs(n.toNumber()%2)%2===0?i:r.dNaN:i}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return r.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 Q(1,0,t);if(e.sign===0)return r.dOne;e=k(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?Q(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?Q(-e.sign,e.layer+1,-e.mag):r.dOne}pow_base(e){return d(e).pow(this)}root(e){const t=d(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?r.exp(r.mul(this,r.ln(this).sub(1))):r.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(k(1,0,24)))return r.fromNumber(fn(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const a=e*e;let n=e,i=12*n,s=1/i,o=t+s;if(o===t||(t=o,n=n*a,i=360*n,s=1/i,o=t-s,o===t))return r.exp(t);t=o,n=n*a,i=1260*n;let l=1/i;return t=t+l,n=n*a,i=1680*n,l=1/i,t=t-l,r.exp(t)}else return this.layer===1?r.exp(r.mul(this,r.ln(this).sub(1))):r.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?r.dOne:this.layer===0&&this.mag<=709.7?r.fromNumber(Math.exp(this.sign*this.mag)):this.layer===0?Q(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?Q(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):Q(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return r.fromNumber(Math.sqrt(this.sign*this.mag));if(this.layer===1)return Q(1,2,Math.log10(this.mag)-.3010299956639812);{const e=r.div(k(this.sign,this.layer-1,this.mag),k(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=k(1,0,1)){if(e===1)return r.pow(this,t);if(e===0)return new r(t);if(this.eq(r.dOne))return r.dOne;if(this.eq(-1))return r.pow(this,t);if(e===Number.POSITIVE_INFINITY){const i=this.toNumber();if(i<=1.444667861009766&&i>=.06598803584531254){if(i>1.444667861009099)return r.fromNumber(Math.E);const s=r.ln(this).neg();return s.lambertw().div(s)}else return i>1.444667861009766?r.fromNumber(Number.POSITIVE_INFINITY):r.dNaN}if(this.eq(r.dZero)){let i=Math.abs((e+1)%2);return i>1&&(i=2-i),r.fromNumber(i)}if(e<0)return r.iteratedlog(t,this,-e);t=d(t);const a=e;e=Math.trunc(e);const n=a-e;if(this.gt(r.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let i=0;i3)return k(t.sign,t.layer+(e-i-1),t.mag);if(i>1e4)return t}return t}iteratedexp(e=2,t=k(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return r.tetrate(e,-t,this);e=d(e);let a=r.fromDecimal(this);const n=t;t=Math.trunc(t);const i=n-t;if(a.layer-e.layer>3){const s=Math.min(t,a.layer-e.layer-3);t-=s,a.layer-=s}for(let s=0;s1e4)return a}return i>0&&i<1&&(e.eq(10)?a=a.layeradd10(-i):a=a.layeradd(-i,e)),a}slog(e=10,t=100){let a=.001,n=!1,i=!1,s=this.slog_internal(e).toNumber();for(let o=1;o1&&i!=g&&(n=!0),i=g,n?a/=2:a*=2,a=Math.abs(a)*(g?-1:1),s+=a,a===0)break}return r.fromNumber(s)}slog_internal(e=10){if(e=d(e),e.lte(r.dZero)||e.eq(r.dOne))return r.dNaN;if(e.lt(r.dOne))return this.eq(r.dOne)?r.dZero:this.eq(r.dZero)?r.dNegOne:r.dNaN;if(this.mag<0||this.eq(r.dZero))return r.dNegOne;let t=0,a=r.fromDecimal(this);if(a.layer-e.layer>3){const n=a.layer-e.layer-3;t+=n,a.layer-=n}for(let n=0;n<100;++n)if(a.lt(r.dZero))a=r.pow(e,a),t-=1;else{if(a.lte(r.dOne))return r.fromNumber(t+r.slog_critical(e.toNumber(),a.toNumber()));t+=1,a=r.log(a,e)}return r.fromNumber(t)}static slog_critical(e,t){return e>10?t-1:r.critical_section(e,t,mn)}static tetrate_critical(e,t){return r.critical_section(e,t,gn)}static critical_section(e,t,a){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let n=0,i=0;for(let o=0;oe){const l=(e-Ee[o])/(Ee[o+1]-Ee[o]);n=a[o][Math.floor(t)]*(1-l)+a[o+1][Math.floor(t)]*l,i=a[o][Math.ceil(t)]*(1-l)+a[o+1][Math.ceil(t)]*l;break}const s=t-Math.floor(t);return n<=0||i<=0?n*(1-s)+i*s:Math.pow(e,Math.log(n)/Math.log(e)*(1-s)+Math.log(i)/Math.log(e)*s)}layeradd10(e){e=r.fromValue_noAlloc(e).toNumber();const t=r.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 a=Math.trunc(e);e-=a,t.layer+=a}if(e<=-1){const a=Math.trunc(e);if(e-=a,t.layer+=a,t.layer<0)for(let n=0;n<100;++n){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 n=this.slog(t).toNumber()+e;return n>=0?r.tetrate(t,n):Number.isFinite(n)?n>=-1?r.log(r.tetrate(t,n+1),t):r.log(r.log(r.tetrate(t,n+2),t),t):r.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return r.fromNumber(Rt(this.toNumber()));if(this.layer===0)return r.fromNumber(Rt(this.sign*this.mag));if(this.layer===1)return Vt(this);if(this.layer===2)return Vt(this);if(this.layer>=3)return k(this.sign,this.layer-1,this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if(this.sign==1&&this.layer>=3)return k(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=k(1,0,1)){t=d(t);const a=e;e=Math.trunc(e);const n=a-e;n!==0&&(t.eq(r.dOne)?(++e,t=r.fromNumber(n)):this.eq(10)?t=t.layeradd10(n):t=t.layeradd(n,this));for(let i=0;i10)return t}return t}sin(){return this.mag<0?this:this.layer===0?r.fromNumber(Math.sin(this.sign*this.mag)):k(0,0,0)}cos(){return this.mag<0?r.dOne:this.layer===0?r.fromNumber(Math.cos(this.sign*this.mag)):k(0,0,0)}tan(){return this.mag<0?this:this.layer===0?r.fromNumber(Math.tan(this.sign*this.mag)):k(0,0,0)}asin(){return this.mag<0?this:this.layer===0?r.fromNumber(Math.asin(this.sign*this.mag)):k(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?r.fromNumber(Math.acos(this.toNumber())):this.layer===0?r.fromNumber(Math.acos(this.sign*this.mag)):k(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?r.fromNumber(Math.atan(this.sign*this.mag)):r.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 r.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return r.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?k(Number.NaN,Number.NaN,Number.NaN):r.ln(this.add(1).div(r.fromNumber(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(r.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 C=r;C.fromStringCache=new nn(cn);C.dZero=k(0,0,0);C.dOne=k(1,0,1);C.dNegOne=k(-1,0,1);C.dTwo=k(1,0,2);C.dTen=k(1,0,10);C.dNaN=k(Number.NaN,Number.NaN,Number.NaN);C.dInf=k(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);C.dNegInf=k(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);C.dNumberMax=Q(1,0,Number.MAX_VALUE);C.dNumberMin=Q(1,0,Number.MIN_VALUE);d=C.fromValue_noAlloc;Q=C.fromComponents;k=C.fromComponents_noNormalize;C.fromMantissaExponent;C.fromMantissaExponent_noNormalize;const hn=new C(1);function Le(e,t,a=!0){let n=C.log10(e).floor(),i=C.div(e,C.pow(10,n));i.toStringWithDecimalPlaces(t)==="10"&&(i=hn,n=n.add(1));const s=n.gte(1e9)?ae(n,Math.max(Math.max(t,3),P.defaultDecimalsShown)):n.gte(1e4)?lt(n,0):n.toStringWithDecimalPlaces(0);return a?i.toStringWithDecimalPlaces(t)+"e"+s:"e"+s}function lt(e,t){if(e==null)return"NaN";if(e=new C(e),e.mag<.001)return 0 .toFixed(t);const n=e.toStringWithDecimalPlaces(t).split(".");return n[0]=n[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),n.length==1?n[0]:n[0]+"."+n[1]}function Lt(e,t){return e==null?"NaN":(e=new C(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),P.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const vn=new C("eeee1000"),pn=new C("e100000"),qt=new C("e1000"),Wt=new C(1e9),yn=new C(1e6),bn=new C(1e3),Nn=new C(.98),Cn=new C(.001),Xt=new C(0);function ae(e,t,a){if(t==null&&(t=P.defaultDecimalsShown),a=a!=null?a:P.defaultShowSmall,e=new C(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+ae(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(vn)){const n=e.slog();return n.gte(yn)?"F"+ae(n.floor()):C.pow(10,n.sub(n.floor())).toStringWithDecimalPlaces(3)+"F"+lt(n.floor(),0)}else{if(e.gte(pn))return Le(e,0,!1);if(e.gte(qt))return Le(e,0);if(e.gte(Wt))return Le(e,t);if(e.gte(bn))return lt(e,0);if(e.gte(Cn)||!a)return Lt(e,t);if(e.eq(Xt))return 0 .toFixed(t)}return e=Ht(e),e.lt(qt)?Le(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):ae(e,t)+"\u207B\xB9"}function ee(e){return e=new C(e),e.sign<0?"-"+ee(e.neg()):e.gte(Wt)||e.lte(Nn)&&!e.eq(Xt)?ae(e):ae(e,0)}function jt(e){return C.lt(e,0)?"-"+jt(C.neg(e)):C.gt(e,2**51)?ae(C.div(e,31536e3))+"y":(e=new C(e).toNumber(),e<60?ae(e)+"s":e<3600?ee(Math.floor(e/60))+"m "+ae(e%60)+"s":e<86400?ee(Math.floor(e/3600))+"h "+ee(Math.floor(e/60)%60)+"m "+ee(e%60)+"s":e<31536e3?ee(Math.floor(e/84600)%365)+"d "+ee(Math.floor(e/3600)%24)+"h "+ee(Math.floor(e/60)%60)+"m":ee(Math.floor(e/31536e3))+"y "+ee(Math.floor(e/84600)%365)+"d "+ee(Math.floor(e/3600)%24)+"h")}function En(e,t,a){e=new C(e);let n=e.toStringWithDecimalPlaces(t);return new C(n).gte(a)&&(n=C.sub(a,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),n}function Bn(e,t){return ae(e,t,!0)}function Ht(e){let t=C.log10(e).ceil();const a=C.div(e,C.pow(10,t));return t=t.neg(),e=new C(10).pow(t).times(a),e}var _n=Object.freeze(Object.defineProperty({__proto__:null,default:C,exponentialFormat:Le,commaFormat:lt,regularFormat:Lt,format:ae,formatWhole:ee,formatTime:jt,toPlaces:En,formatSmall:Bn,invertOOM:Ht},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:wn,commaFormat:In,regularFormat:Sn,format:Kt,formatWhole:pt,formatTime:wt,toPlaces:Qn,formatSmall:Mn,invertOOM:kn}=_n;window.Decimal=C;window.exponentialFormat=wn;window.commaFormat=In;window.regularFormat=Sn;window.format=Kt;window.formatWhole=pt;window.formatTime=wt;window.toPlaces=Qn;window.formatSmall=Mn;window.invertOOM=kn;function Tn(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function Gt(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 At=Symbol("DoNotCache");function ce(e,t){const a=e[t];Gt(a)&&a.length===0&&!a[At]?e[t]=x(a.bind(e)):Gt(a)&&(e[t]=a.bind(e),e[t][At]=!0)}const Zt=Symbol("Component"),$t=Symbol("GatherProps");let Dn=0;function Rn(e="feature-"){return e+Dn++}function H(e){return e[At]=!0,e}function We(e,t,a){e[t]===void 0&&a!=null&&(e[t]=a)}const Be={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 It=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(It||{}),ct={classic:Be,paper:{...Be,variables:{...Be.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:{...Be,variables:{...Be.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:{...Be,variables:{...Be.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const Z=Ot();"fonts"in document&&(document.fonts.onloadingdone=()=>Z.emit("fontsLoaded"));var Vn=Object.freeze(Object.defineProperty({__proto__:null,globalBus:Z},Symbol.toStringTag,{value:"Module"}));const qn=$e({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});var R=window.player=qn;function ea(e){return JSON.stringify(e,(t,a)=>u(a))}function ta(e={}){return Object.assign({id:`${P.id}-0`,name:"Default Save",tabs:P.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:P.id,modVersion:P.versionNumber,layers:{}},e)}function te(e){const t=ve.compressToUTF16(ea(e!=null?e:R));return localStorage.setItem((e!=null?e:R).id,t),t}async function Gn(){Fn();try{let e=localStorage.getItem(q.active);if(e==null){await Ie(qe());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=ve.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==P.id){await Ie(qe());return}t.id=q.active,await Ie(t)}catch(e){console.error(`Failed to load save. Falling back to new save. -`,e),await Ie(qe())}}function qe(){const e=st(),t=ta({id:e});return te(t),q.saves.push(e),t}function st(){let e,t=0;do e=`${P.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const Pn=_(!1);async function Ie(e){console.info("Loading save",e),Pn.value=!0;const{layers:t,removeLayer:a,addLayer:n}=await ot(()=>Promise.resolve().then(function(){return Ai}),void 0),{fixOldSave:i,getInitialLayers:s}=await ot(()=>Promise.resolve().then(function(){return Or}),void 0);for(const o in t){const l=t[o];l&&a(l)}s(e).forEach(o=>n(o,e)),e=ta(e),e.offlineProd&&e.time!=null&&e.time&&e.devSpeed!==0&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=Math.min(e.offlineTime+(Date.now()-e.time)/1e3,P.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==P.versionNumber&&(i(e.modVersion,e),e.modVersion=P.versionNumber),Object.assign(R,e),q.active=R.id,Z.emit("onLoad")}setInterval(()=>{R.autosave&&te()},1e3);window.onbeforeunload=()=>{R.autosave&&te()};window.save=te;const xn=window.hardReset=async()=>{await Ie(qe())};window.deleteLowerSaves=()=>{const e=Object.values(q.saves).indexOf(R.id)+1;Object.values(q.saves).slice(e).forEach(t=>localStorage.removeItem(t)),q.saves=q.saves.slice(0,e)};const Ke=$e({active:"",saves:[],showTPS:!0,theme:It.Nordic,unthrottled:!1,alignUnits:!1,autoplay:!1,fast:!1});de(Ke,e=>{const t=ve.compressToUTF16(JSON.stringify(e));localStorage.setItem(P.id,t)},{deep:!0});var q=window.settings=Ke;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:It.Nordic,alignUnits:!1,autoplay:!1,fast:!1};Z.emit("loadSettings",e),Object.assign(Ke,e),xn()};function Fn(){try{let e=localStorage.getItem(P.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=ve.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(Ke,t)}Z.emit("loadSettings",Ke)}catch{}}const aa=$e([]);function zn(e){aa.push(e)}const Un=$e([]),On=$e([]),Yn={class:"table"},_e=U({__name:"Row",setup(e){const t=x(()=>ct[q.theme].mergeAdjacent);return(a,n)=>(m(),E("div",Yn,[c("div",{class:$(["row",{mergeAdjacent:u(t)}])},[pe(a.$slots,"default")],2)]))}});function me(e,t="span"){return typeof e=="function"?U({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),U({template:e})):U({render:()=>({})}):e}function St(e){if(na(e))return typeof e=="function"?e():me(e);const t=e[Zt];return A(t,e[$t](),null)}function Jn(e){if(na(e))return typeof e=="function"?e():typeof e=="string"?A(ne,null,[e]):A(e,null,null);const t=e[Zt];return A(t,e[$t](),null)}function na(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[At]===!0}function Ln(e,t="div"){const a=et();return Et(()=>{a.value=me(Qe(e),t)}),a}function dt(e,t="div"){const a=et(null);return Et(()=>{const n=Qe(e);a.value=n==""||n==null?null:me(n,t)}),a}function Qe(e){return u(u(e))}function oe(...e){return e.includes(Object)||e.push(Object),e}var j=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a};const Wn=U({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var b;const a=_({}),n=new ResizeObserver(l),i=_(null);zt(()=>{const v=i.value;v!=null&&n.observe(v)});let s=!0,o=_((b=i.value)==null?void 0:b.getBoundingClientRect());function l(){s&&(s=!1,Xe(()=>{var v;o.value=(v=i.value)==null?void 0:v.getBoundingClientRect(),Object.values(a.value).filter(y=>y).forEach(y=>y.rect=y.element.getBoundingClientRect()),t("updateNodes",a.value),s=!0}))}Z.on("fontsLoaded",l);const g={attributes:!1,childList:!0,subtree:!1};at(ra,(v,y)=>{const N=new MutationObserver(()=>f(v));N.observe(y,g),a.value[v]={element:y,observer:N,rect:y.getBoundingClientRect()},l()}),at(oa,v=>{var y;(y=a.value[v])==null||y.observer.disconnect(),a.value[v]=void 0,l()}),at(la,a),at(Aa,o);function f(v){const y=a.value[v];y!=null&&(y.rect=y.element.getBoundingClientRect(),t("updateNodes",a.value))}return(v,y)=>(m(),E(ne,null,[pe(v.$slots,"default",{},void 0,!0),c("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var ia=j(Wn,[["__scopeId","data-v-2b1dc1bc"]]);const Xn=["onPointerdown"],jn={class:"modal-wrapper"},Hn={class:"modal-container"},Kn={class:"modal-header"},Zn=I(" default header "),$n={class:"modal-body"},ei=I(" default body "),ti={class:"modal-footer"},ai=c("div",{class:"modal-default-flex-grow"},null,-1),ke=U({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:a}){const i=ye(e),s=x(()=>u(i.modelValue)||l.value);function o(){a("update:modelValue",!1)}const l=_(!1),g=_(null),f=x(()=>{var b,v;return(v=(b=g.value)==null?void 0:b.nodes)!=null?v:null});return t({isOpen:s,nodes:f}),(b,v)=>(m(),z(pa,{to:"#modal-root"},[A(Ut,{name:"modal",onBeforeEnter:v[0]||(v[0]=y=>l.value=!0),onAfterLeave:v[1]||(v[1]=y=>l.value=!1)},{default:T(()=>[Bt(c("div",je({class:"modal-mask",onPointerdown:He(o,["self"])},b.$attrs),[c("div",jn,[c("div",Hn,[c("div",Kn,[pe(b.$slots,"header",{shown:u(s)},()=>[Zn])]),c("div",$n,[A(ia,{ref_key:"contextRef",ref:g},{default:T(()=>[pe(b.$slots,"body",{shown:u(s)},()=>[ei])]),_:3},512)]),c("div",ti,[pe(b.$slots,"footer",{shown:u(s)},()=>[c("div",{class:"modal-default-footer"},[ai,c("button",{class:"button modal-default-button",onClick:o}," Close ")])])])])])],16,Xn),[[va,e.modelValue]])]),_:3})]))}}),we=Symbol("ProxyState");function sa(e,t={}){const a=t;let n=!1;function i(){return n||(Object.assign(a,e(a)),n=!0),a}return new Proxy(a,{get(s,o){if(o===we)return i();const l=i()[o];return l!=null&&typeof l=="object"&&bt in l?l[bt]:l},set(s,o,l){return i()[o]=l,!0},has(s,o){return o===we?!0:Reflect.has(i(),o)},ownKeys(){return Reflect.ownKeys(i())},getOwnPropertyDescriptor(s,o){return n||(Object.assign(a,e(a)),n=!0),Object.getOwnPropertyDescriptor(s,o)}})}var X=window.state=_t({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const gt=Symbol("PersistentState"),ze=Symbol("DefaultValue"),ut=Symbol("StackTrace"),yt=Symbol("Deleted"),bt=Symbol("NonPersistent"),Se=Symbol("SaveDataPath");function ni(){var e,t;return(t=(e=new Error().stack)==null?void 0:e.split(` -`).slice(3,5).map(a=>a.trim()).join(` -`))!=null?t:""}function Pt(e,t){var a;if(C.isNaN(t))throw X.hasNaN||(R.autosave=!1,X.hasNaN=!0,X.NaNPath=e[Se],X.NaNPersistent=e),console.error("Attempted to save NaN value to",(a=e[Se])==null?void 0:a.join("."),e),"Attempted to set NaN value. See above for details";e[gt].value=t}function ii(e){const t=ge(e)?e:_(e);ge(e)&&(e=e.value);const a=x({get(){return t.value},set(i){Pt(n,i)}});a[ze]=e;const n={get value(){return t.value},set value(i){Pt(n,i)},__v_isRef:!0,[gt]:t,[ze]:e,[ut]:ni(),[yt]:!1,[bt]:a,[Se]:void 0};return re.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",n,` -Created at: -`+n[ut]):Ge[re[re.length-1]].add(n),n}function si(e){return e!=null&&typeof e=="object"&> in e}Z.on("addLayer",(e,t)=>{const a=[],n=(i,s=[])=>{let o=!1;return Object.keys(i).forEach(l=>{let g=i[l];if(g!=null&&typeof g=="object")if(we in g&&(g=g[we]),si(g)){if(o=!0,g[yt]){console.warn("Deleted persistent ref present in returned object. Ignoring...",g,` -Created at: -`+g[ut]);return}Ge[e.id].delete(g);const f=[e.id,...s,l];g[Se]!=null&&JSON.stringify(f)!==JSON.stringify(g[Se])&&console.error(`Persistent ref is being saved to \`${f.join(".")}\` when it's already present at \`${g[Se].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,g),g[Se]=f;const b=s.reduce((y,N)=>(N in y||(y[N]={}),y[N]),t),v=b[l];b[l]=g[gt],ya(b)?v!=null?b[l]=v:b[l]=g[ze]:v!=null?b[l].value=v:b[l].value=g[ze]}else!(g instanceof C)&&!ge(g)&&!a.includes(g)&&(typeof g.type=="symbol"&&a.push(g),n(g,[...s,l])&&(vt(g)&&!vt(i)?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",we in i?i[we]:i,l):o=!0))}),o};n(e[we]),Ge[e.id].forEach(i=>{i[yt]||console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,i,` -Created at: -`+i[ut])}),Ge[e.id].clear()});const ra=Symbol("RegisterNode"),oa=Symbol("UnregisterNode"),la=Symbol("Nodes"),Aa=Symbol("Bounds"),K=_t({});window.layers=K;const Ge={},re=[];function ua(e,t){return sa(()=>{const a={},n=a.emitter=Ot();if(a.on=n.on.bind(n),a.emit=n.emit.bind(n),a.nodes=_({}),a.id=e,re.push(e),Ge[e]=new Set,a.minimized=ii(!1),Object.assign(a,t.call(a)),re[re.length-1]==null||re[re.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen -Stack: ${re} -Trying to pop ${a.id}`;re.pop(),ce(a,"color"),ce(a,"display"),ce(a,"classes"),ce(a,"style"),ce(a,"name"),We(a,"name",a.id),ce(a,"minWidth"),We(a,"minWidth",600),ce(a,"minimizable"),We(a,"minimizable",!0),ce(a,"minimizedDisplay");const i=a.style;return a.style=x(()=>{var o,l;let s=u(a.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(o=u(i))!=null?o:"",(l=a.minimized)!=null&&l.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:s,flexBasis:s,margin:""}]}),a})}function ca(e,t){if(console.info("Adding layer",e.id),K[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,K[e.id]);return}We(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),K[e.id]=e,Z.emit("addLayer",e,t.layers[e.id])}function ri(e){return K[e]}function da(e){console.info("Removing layer",e.id),Z.emit("removeLayer",e),K[e.id]=void 0}function oi(e){da(e),ca(e,R)}function li(e){const t=_(!1);return{openModal:()=>t.value=!0,modal:H(()=>A(ke,{modelValue:t.value,"onUpdate:modelValue":a=>t.value=a},{header:()=>A("h2",null,[u(e.name)]),body:u(e.display)}))}}Z.on("update",function(t){Object.values(K).forEach(a=>{a==null||a.emit("preUpdate",t)}),Object.values(K).forEach(a=>{a==null||a.emit("update",t)}),Object.values(K).forEach(a=>{a==null||a.emit("postUpdate",t)})});var Ai=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:ra,UnregisterNodeInjectionKey:oa,NodesInjectionKey:la,BoundsInjectionKey:Aa,layers:K,persistentRefs:Ge,addingLayers:re,createLayer:ua,addLayer:ca,getLayer:ri,removeLayer:da,reloadLayer:oi,setupLayerModal:li},Symbol.toStringTag,{value:"Module"}));const ui=U({components:{Context:ia},props:{index:{type:Number,required:!0},display:{type:oe(Object,String,Function),required:!0},minimizedDisplay:oe(Object,String,Function),minimized:{type:Object,required:!0},name:{type:oe(String),required:!0},color:oe(String),minimizable:oe(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:a,minimized:n,minimizedDisplay:i}=ye(e),s=Ln(t),o=dt(i),l=x(()=>P.allowGoBack&&a.value>0&&!Qe(n));function g(){R.tabs.splice(u(e.index),1/0)}function f(b){e.nodes.value=b}return{component:s,minimizedComponent:o,showGoBack:l,updateNodes:f,unref:u,goBack:g}}}),ci={key:1};function di(e,t,a,n,i,s){const o=ba("Context");return m(),E("div",{class:"layer-container",style:Fe({"--layer-color":e.unref(e.color)})},[e.showGoBack?(m(),E("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...l)=>e.goBack&&e.goBack(...l))},"\u274C")):M("",!0),e.unref(e.minimized)?(m(),E("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=l=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(m(),z(Ae(e.minimizedComponent),{key:0})):(m(),E("div",ci,G(e.unref(e.name)),1))])):(m(),E("div",{key:2,class:$(["layer-tab",{showGoBack:e.showGoBack}])},[A(o,{onUpdateNodes:e.updateNodes},{default:T(()=>[(m(),z(Ae(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(m(),E("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=l=>e.$emit("setMinimized",!0))}," \u25BC ")):M("",!0)],4)}var gi=j(ui,[["render",di],["__scopeId","data-v-a592996e"]]);const ga=e=>(be("data-v-4b4bda40"),e=e(),Ne(),e),mi=ga(()=>c("h2",null,"Changelog",-1)),fi=ga(()=>c("details",{open:""},[c("summary",null,[I("v0.0 Initial Commit - "),c("time",null,"2021-09-04")]),I(" This is the first release :D "),c("ul",null,[c("li",{class:"feature"},"Did everything"),c("li",{class:"fix"},"Had some fun"),c("li",{class:"breaking"},"Removed everything"),c("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),hi=U({__name:"Changelog",setup(e,{expose:t}){const a=_(!1);return t({open(){a.value=!0}}),(n,i)=>(m(),z(ke,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=s=>a.value=s)},{header:T(()=>[mi]),body:T(()=>[fi]),_:1},8,["modelValue"]))}});var vi=j(hi,[["__scopeId","data-v-4b4bda40"]]),pi=U({props:{element:Object,display:{type:oe(Object,String,Function),required:!0},style:oe(Object,String,Array),classes:oe(Object),direction:oe(String),xoffset:oe(String),yoffset:oe(String),pinned:Object},setup(e){const{element:t,display:a,pinned:n}=ye(e),i=_(!1),s=x(()=>(Qe(n)||i.value)&&o.value),o=dt(a),l=et(me(H(()=>{const b=Qe(t);return b==null?"":Jn(b)})));function g(b){const v=n;b.shiftKey&&v&&(v.value=!v.value,b.stopPropagation(),b.preventDefault())}const f=x(()=>Qe(n)&&ct[q.theme].showPin);return{Direction:J,isHovered:i,isShown:s,comp:o,elementComp:l,unref:u,togglePinned:g,showPin:f}}});const yi={key:0,class:"material-icons pinned"};function bi(e,t,a,n,i,s){return m(),E("div",{class:$(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=o=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=o=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...o)=>e.togglePinned&&e.togglePinned(...o))},[pe(e.$slots,"default",{},void 0,!0),e.elementComp?(m(),z(Ae(e.elementComp),{key:0})):M("",!0),A(Ut,{name:"fade",css:!!e.comp},{default:T(()=>{var o;return[e.isShown?(m(),E("div",{key:0,class:$(["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:Fe([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(o=e.unref(e.style))!=null?o:{}])},[e.showPin?(m(),E("span",yi,"push_pin")):M("",!0),e.comp?(m(),z(Ae(e.comp),{key:1})):M("",!0)],6)):M("",!0)]}),_:1},8,["css"])],34)}var L=j(pi,[["render",bi],["__scopeId","data-v-638848c0"]]);const Te=e=>(be("data-v-5d3cb6f4"),e=e(),Ne(),e),Ni={class:"info-modal-header"},Ci=["src","alt"],Ei={class:"info-modal-title"},Bi={key:0},_i={key:0},wi={key:0},Ii=Te(()=>c("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),Si=Te(()=>c("br",null,null,-1)),Qi=Te(()=>c("br",null,null,-1)),Mi=["href"],ki=Te(()=>c("span",{class:"material-icons info-modal-discord"},"discord",-1)),Ti=Te(()=>c("div",null,[c("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link",target:"_blank"},[c("span",{class:"material-icons info-modal-discord"},"discord"),I(" The Paper Pilot Community ")])],-1)),Di=Te(()=>c("div",null,[c("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link",target:"_blank"},[c("span",{class:"material-icons info-modal-discord"},"discord"),I(" The Modding Tree ")])],-1)),Ri=Te(()=>c("br",null,null,-1));var Vi=U({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const a=e,{title:n,logo:i,author:s,discordName:o,discordLink:l,versionNumber:g,versionTitle:f}=P,b=ye(a),v=_(!1),y=x(()=>wt(R.timePlayed)),N=x(()=>me(H(()=>A(ne,null,[Un.map(St)]))));t({open(){v.value=!0}});function h(){var w;(w=u(b.changelog))==null||w.open()}return(w,O)=>(m(),z(ke,{modelValue:v.value,"onUpdate:modelValue":O[0]||(O[0]=W=>v.value=W)},{header:T(()=>[c("div",Ni,[u(i)?(m(),E("img",{key:0,class:"info-modal-logo",src:u(i),alt:u(n)},null,8,Ci)):M("",!0),c("div",Ei,[c("h2",null,G(u(n)),1),c("h4",null,[I(" v"+G(u(g)),1),u(f)?(m(),E("span",Bi,": "+G(u(f)),1)):M("",!0)])])])]),body:T(({shown:W})=>[W?(m(),E("div",_i,[u(s)?(m(),E("div",wi,"By "+G(u(s)),1)):M("",!0),Ii,Si,c("div",{class:"link",onClick:h},"Changelog"),Qi,c("div",null,[u(l)?(m(),E("a",{key:0,href:u(l),class:"info-modal-discord-link",target:"_blank"},[ki,I(" "+G(u(o)),1)],8,Mi)):M("",!0)]),Ti,Di,Ri,c("div",null,"Time Played: "+G(u(y)),1),(m(),z(Ae(u(N))))])):M("",!0)]),_:1},8,["modelValue"]))}});var qi=j(Vi,[["__scopeId","data-v-5d3cb6f4"]]);const Gi=c("h2",null,"Settings",-1);var Pi=U({__name:"Options",setup(e,{expose:t}){const a=_(!1),n=_("behaviour");function i(l){return l==n.value}function s(l){n.value=l}t({isTab:i,setTab:s,save:te,open(){a.value=!0}}),Object.keys(ct).map(l=>({label:Tn(l),value:l}));const o=x(()=>me(H(()=>A(ne,null,[aa.map(St)]))));return ye(q),ye(R),x({get(){return R.devSpeed===0},set(l){R.devSpeed=l?0:null}}),H(()=>A("span",{class:"option-title"},[I("Unthrottled"),A("desc",null,[I("Allow the game to run as fast as possible. Not battery friendly.")])])),H(()=>A("span",{class:"option-title"},[I("Offline Production"),A(L,{display:"Save-specific",direction:J.Right},{default:()=>[I("*")]}),A("desc",null,[I("Simulate production that occurs while the game is closed.")])])),H(()=>A("span",{class:"option-title"},[I("Autosave"),A(L,{display:"Save-specific",direction:J.Right},{default:()=>[I("*")]}),A("desc",null,[I("Automatically save the game every second or when the game is closed.")])])),H(()=>A("span",{class:"option-title"},[I("Pause game"),A(L,{display:"Save-specific",direction:J.Right},{default:()=>[I("*")]}),A("desc",null,[I("Stop everything from moving.")])])),H(()=>A("span",{class:"option-title"},[I("Theme"),A("desc",null,[I("How the game looks.")])])),H(()=>A("span",{class:"option-title"},[I("Show TPS"),A("desc",null,[I("Show TPS meter at the bottom-left corner of the page.")])])),H(()=>A("span",{class:"option-title"},[I("Align modifier units"),A("desc",null,[I("Align numbers to the beginning of the unit in modifier view.")])])),(l,g)=>(m(),z(ke,{modelValue:a.value,"onUpdate:modelValue":g[0]||(g[0]=f=>a.value=f)},{header:T(()=>[Gi]),body:T(()=>[(m(),z(Ae(u(o))))]),_:1},8,["modelValue"]))}});const xi={class:"field"},Fi={key:0,class:"field-title"},zi=U({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var o;const a=e,n=dt(Me(a,"title"),"span"),i=_((o=a.options.find(l=>l.value===a.modelValue))!=null?o:null);de(Me(a,"modelValue"),l=>{var g;Qe(i)!==l&&(i.value=(g=a.options.find(f=>f.value===l))!=null?g:null)});function s(l){t("update:modelValue",l.value)}return(l,g)=>(m(),E("div",xi,[u(n)?(m(),E("span",Fi,[(m(),z(Ae(u(n))))])):M("",!0),A(u(Ia),{options:e.options,modelValue:i.value,"onUpdate:modelValue":[g[0]||(g[0]=f=>i.value=f),s],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const Ui=["onSubmit"],Oi={class:"field"},Yi={key:0,class:"field-title"},Ji=["placeholder"],Li=U({__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 a=e,n=dt(Me(a,"title"),"span"),i=et(null);zt(()=>{var g;(g=i.value)==null||g.focus()});const s=x({get(){var g;return(g=u(a.modelValue))!=null?g:""},set(g){t("update:modelValue",g)}});function o(){t("submit")}function l(){a.submitOnBlur!==!1?t("submit"):t("cancel")}return(g,f)=>(m(),E("form",{onSubmit:He(o,["prevent"])},[c("div",Oi,[u(n)?(m(),E("span",Yi,[(m(),z(Ae(u(n))))])):M("",!0),e.textArea?(m(),z(u(Sa),{key:1,modelValue:u(s),"onUpdate:modelValue":f[0]||(f[0]=b=>ge(s)?s.value=b:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:l,ref_key:"field",ref:i},null,8,["modelValue","placeholder","maxHeight"])):Bt((m(),E("input",{key:2,type:"text","onUpdate:modelValue":f[1]||(f[1]=b=>ge(s)?s.value=b:null),placeholder:e.placeholder,class:$({fullWidth:!e.title}),onBlur:l,ref_key:"field",ref:i},null,42,Ji)),[[Na,u(s)]])])],40,Ui))}});var Qt=j(Li,[["__scopeId","data-v-90bd4994"]]);const Wi={key:0},Xi=["onClick","disabled"],ji={key:0},Hi=["onClick"],Ki=U({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const n=ye(e),i=_(!1);de(i,l=>{t("confirmingChanged",l)});function s(){if(u(n.skipConfirm)){t("click");return}i.value&&t("click"),i.value=!i.value}function o(){i.value=!1}return(l,g)=>(m(),E("span",{class:$(["container",{confirming:i.value}])},[i.value?(m(),E("span",Wi,"Are you sure?")):M("",!0),c("button",{onClick:He(s,["stop"]),class:"button danger",disabled:e.disabled},[i.value?(m(),E("span",ji,"Yes")):pe(l.$slots,"default",{key:1},void 0,!0)],8,Xi),i.value?(m(),E("button",{key:1,class:"button",onClick:He(o,["stop"])},"No",8,Hi)):M("",!0)],2))}});var Zi=j(Ki,[["__scopeId","data-v-2f8ef34c"]]);const $i=["onClick"],es=U({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const a=_(!1),n=_(null);function i(){t("click"),n.value&&clearTimeout(n.value),a.value=!1,Xe(()=>{a.value=!0,n.value=setTimeout(()=>a.value=!1,500)})}return(s,o)=>(m(),E("button",{onClick:He(i,["stop"]),class:$(["feedback",{activated:a.value,left:e.left}])},[pe(s.$slots,"default",{},void 0,!0)],10,$i))}});var ts=j(es,[["__scopeId","data-v-01a1b95c"]]);const fe=e=>(be("data-v-c3447434"),e=e(),Ne(),e),as=fe(()=>c("div",{class:"handle material-icons"},"drag_handle",-1)),ns={key:0,class:"actions"},is=fe(()=>c("span",{class:"material-icons"},"content_paste",-1)),ss=fe(()=>c("span",{class:"material-icons"},"content_copy",-1)),rs=fe(()=>c("span",{class:"material-icons"},"edit",-1)),os=fe(()=>c("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),ls={key:1,class:"actions"},As=fe(()=>c("span",{class:"material-icons"},"check",-1)),us=fe(()=>c("span",{class:"material-icons"},"close",-1)),cs={key:2,class:"details"},ds={class:"save-version"},gs=fe(()=>c("br",null,null,-1)),ms={key:0},fs={key:3,class:"details"},hs={key:4,class:"details error"},vs=fe(()=>c("br",null,null,-1)),ps=U({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const a=e,{save:n}=ye(a),i=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),s=_(!1),o=_(!1),l=_("");de(s,()=>{var v;return l.value=(v=n.value.name)!=null?v:""});const g=x(()=>n.value!=null&&n.value.id===R.id),f=x(()=>{var v;return g.value?R.time:(v=n.value!=null&&n.value.time)!=null?v:0});function b(){t("editName",l.value),s.value=!1}return(v,y)=>(m(),E("div",{class:$(["save",{active:u(g)}])},[as,s.value?(m(),E("div",ls,[c("button",{onClick:b,class:"button"},[A(L,{display:"Save",direction:u(J).Left,class:"info"},{default:T(()=>[As]),_:1},8,["direction"])]),c("button",{onClick:y[5]||(y[5]=N=>s.value=!s.value),class:"button"},[A(L,{display:"Cancel",direction:u(J).Left,class:"info"},{default:T(()=>[us]),_:1},8,["direction"])])])):(m(),E("div",ns,[u(n).error==null&&!o.value?(m(),z(ts,{key:0,onClick:y[0]||(y[0]=N=>t("export")),class:"button",left:""},{default:T(()=>[A(L,{display:"Export",direction:u(J).Left,class:"info"},{default:T(()=>[is]),_:1},8,["direction"])]),_:1})):M("",!0),u(n).error==null&&!o.value?(m(),E("button",{key:1,onClick:y[1]||(y[1]=N=>t("duplicate")),class:"button"},[A(L,{display:"Duplicate",direction:u(J).Left,class:"info"},{default:T(()=>[ss]),_:1},8,["direction"])])):M("",!0),u(n).error==null&&!o.value?(m(),E("button",{key:2,onClick:y[2]||(y[2]=N=>s.value=!s.value),class:"button"},[A(L,{display:"Edit Name",direction:u(J).Left,class:"info"},{default:T(()=>[rs]),_:1},8,["direction"])])):M("",!0),A(Zi,{disabled:u(g),onClick:y[3]||(y[3]=N=>t("delete")),onConfirmingChanged:y[4]||(y[4]=N=>o.value=N)},{default:T(()=>[A(L,{display:"Delete",direction:u(J).Left,class:"info"},{default:T(()=>[os]),_:1},8,["direction"])]),_:1},8,["disabled"])])),u(n).error==null&&!s.value?(m(),E("div",cs,[c("button",{class:"button open",onClick:y[6]||(y[6]=N=>t("open"))},[c("h3",null,G(u(n).name),1)]),c("span",ds,"v"+G(u(n).modVersion),1),gs,u(f)?(m(),E("div",ms,"Last played "+G(u(i).format(u(f))),1)):M("",!0)])):u(n).error==null&&s.value?(m(),E("div",fs,[A(Qt,{modelValue:l.value,"onUpdate:modelValue":y[7]||(y[7]=N=>l.value=N),class:"editname",onSubmit:b},null,8,["modelValue"])])):(m(),E("div",hs,[I(" Error: Failed to load save with id "+G(u(n).id),1),vs,I(G(u(n).error),1)]))],2))}});var ys=j(ps,[["__scopeId","data-v-c3447434"]]);const Mt=e=>(be("data-v-5b5b1604"),e=e(),Ne(),e),bs=Mt(()=>c("h2",null,"Saves Manager",-1)),Ns={class:"modal-footer"},Cs={class:"field"},Es=Mt(()=>c("span",{class:"field-title"},"Create Save",-1)),Bs={class:"field-buttons"},_s={class:"footer"},ws=Mt(()=>c("div",{style:{"flex-grow":"1"}},null,-1)),Is=U({__name:"SavesManager",setup(e,{expose:t}){const a=_(!1),n=_(null);t({open(){a.value=!0}});const i=_(!1),s=_(""),o=_(null);de(s,p=>{p?Xe(()=>{try{if(p[0]!=="{")if(p[0]==="e")p=decodeURIComponent(escape(atob(p)));else if(p[0]==="\u1BE1")p=ve.decompressFromUTF16(p);else{console.warn("Unable to determine preset encoding",p),i.value=!0;return}const B=JSON.parse(p);if(typeof B!="object"){i.value=!0;return}const D=st();B.id=D,te(B),s.value="",i.value=!1,q.saves.push(D)}catch{i.value=!0}}):i.value=!1});let l={},g=_(Object.keys(l).reduce((p,B)=>(p.push({label:B.split("/").slice(-1)[0].slice(0,-4),value:l[B]}),p),[]));const f=_t({});function b(p){if(f[p]==null){let B=localStorage.getItem(p);if(B==null)f[p]={error:"Save doesn't exist in localStorage",id:p};else if(B==="dW5kZWZpbmVk")f[p]={error:"Save is undefined",id:p};else try{if(B[0]!=="{")if(B[0]==="e")B=decodeURIComponent(escape(atob(B)));else if(B[0]==="\u1BE1")B=ve.decompressFromUTF16(B);else return console.warn("Unable to determine preset encoding",B),i.value=!0,f[p]={error:"Unable to determine preset encoding",id:p},f[p];f[p]={...JSON.parse(B),id:p}}catch(D){f[p]={error:D,id:p},console.warn(`SavesManager: Failed to load info about save with id ${p}: -${D} -${B}`)}}return f[p]}de(a,p=>{p&&Object.keys(f).forEach(B=>delete f[B])});const v=x(()=>q.saves.reduce((p,B)=>(p[B]=b(B),p),{}));function y(p){let B;switch(R.id===p?B=ea(R):B=JSON.stringify(v.value[p]),P.exportEncoding){default:console.warn(`Unknown save encoding: ${P.exportEncoding}. Defaulting to lz`);case"lz":B=ve.compressToUTF16(B);break;case"base64":B=btoa(unescape(encodeURIComponent(B)));break;case"plain":break}const D=document.createElement("textarea");D.value=B,document.body.appendChild(D),D.select(),D.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(D)}function N(p){R.id===p&&te();const B={...v.value[p],id:st()};te(B),q.saves.push(B.id)}function h(p){q.saves=q.saves.filter(B=>B!==p),localStorage.removeItem(p),f[p]=void 0}function w(p){v.value[R.id].time=R.time,te(),f[R.id]=void 0,Ie(v.value[p]),f[p]=void 0}function O(p){if(o.value=p,Xe(()=>{o.value=null}),p[0]!=="{")if(p[0]==="e")p=decodeURIComponent(escape(atob(p)));else if(p[0]==="\u1BE1")p=ve.decompressFromUTF16(p);else{console.warn("Unable to determine preset encoding",p);return}const B=JSON.parse(p);B.id=st(),te(B),q.saves.push(B.id),w(B.id)}function W(p,B){const D=v.value[p];D!=null&&(D.name=B,R.id===p?(R.name=B,te()):(te(D),f[p]=void 0))}return(p,B)=>(m(),z(ke,{modelValue:a.value,"onUpdate:modelValue":B[4]||(B[4]=D=>a.value=D),ref_key:"modal",ref:n},{header:T(()=>[bs]),body:T(({shown:D})=>[D?(m(),z(u(wa),{key:0,list:u(q).saves,handle:".handle",itemKey:F=>F},{item:T(({element:F})=>[A(ys,{save:u(v)[F],onOpen:V=>w(F),onExport:V=>y(F),onEditName:V=>W(F,V),onDuplicate:V=>N(F),onDelete:V=>h(F)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):M("",!0)]),footer:T(()=>[c("div",Ns,[A(Qt,{modelValue:s.value,"onUpdate:modelValue":B[0]||(B[0]=D=>s.value=D),title:"Import Save",placeholder:"Paste your save here!",class:$({importingFailed:i.value})},null,8,["modelValue","class"]),c("div",Cs,[Es,c("div",Bs,[c("button",{class:"button",onClick:B[1]||(B[1]=D=>w(u(qe)().id))},"New Game"),Object.keys(u(g)).length>0?(m(),z(zi,{key:0,options:u(g),modelValue:o.value,"onUpdate:modelValue":B[2]||(B[2]=D=>O(D)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):M("",!0)])]),c("div",_s,[ws,c("button",{class:"button modal-default-button",onClick:B[3]||(B[3]=D=>a.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var ma=j(Is,[["__scopeId","data-v-5b5b1604"]]);const ue=e=>(be("data-v-269f7a94"),e=e(),Ne(),e),Ss=["src","alt"],Qs={key:1,class:"title"},Ms=ue(()=>c("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),ks={class:"discord"},Ts={class:"discord-links"},Ds={key:0},Rs=["href"],Vs=ue(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),qs=ue(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Gs={href:"https://forums.moddingtree.com/",target:"_blank"},Ps=ue(()=>c("span",{class:"material-icons"},"forum",-1)),xs=ue(()=>c("span",{class:"material-icons"},"info",-1)),Fs=ue(()=>c("span",{class:"material-icons"},"settings",-1)),zs=ue(()=>c("span",{class:"material-icons"},"settings",-1)),Us=ue(()=>c("span",{class:"material-icons"},"info",-1)),Os={href:"https://forums.moddingtree.com/",target:"_blank"},Ys=ue(()=>c("span",{class:"material-icons"},"forum",-1)),Js={class:"discord"},Ls={class:"discord-links"},Ws={key:0},Xs=["href"],js=ue(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Hs=ue(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Ks=U({__name:"Nav",setup(e){const t=_(null),a=_(null),n=_(null),i=_(null),{useHeader:s,banner:o,title:l,discordName:g,discordLink:f,versionNumber:b}=P;function v(){window.open(f,"mywindow")}return(y,N)=>(m(),E(ne,null,[u(s)?(m(),E("div",je({key:0,class:"nav"},y.$attrs),[u(o)?(m(),E("img",{key:0,src:u(o),class:"banner",alt:u(l)},null,8,Ss)):(m(),E("div",Qs,G(u(l)),1)),c("div",{onClick:N[0]||(N[0]=h=>{var w;return(w=i.value)==null?void 0:w.open()}),class:"version-container"},[A(L,{display:"Changelog",direction:u(J).Down,class:"version"},{default:T(()=>[c("span",null,"v"+G(u(b)),1)]),_:1},8,["direction"])]),Ms,c("div",ks,[c("span",{onClick:v,class:"material-icons"},"discord"),c("ul",Ts,[u(f)?(m(),E("li",Ds,[c("a",{href:u(f),target:"_blank"},G(u(g)),9,Rs)])):M("",!0),Vs,qs])]),c("div",null,[c("a",Gs,[A(L,{display:"Forums",direction:u(J).Down,yoffset:"5px"},{default:T(()=>[Ps]),_:1},8,["direction"])])]),c("div",{onClick:N[1]||(N[1]=h=>{var w;return(w=t.value)==null?void 0:w.open()})},[A(L,{display:"Info",direction:u(J).Down,class:"info"},{default:T(()=>[xs]),_:1},8,["direction"])]),c("div",{onClick:N[2]||(N[2]=h=>{var w;return(w=n.value)==null?void 0:w.open()})},[A(L,{display:"Settings",direction:u(J).Down,xoffset:"-66px"},{default:T(()=>[Fs]),_:1},8,["direction"])])],16)):(m(),E("div",je({key:1,class:"overlay-nav"},y.$attrs),[c("div",{onClick:N[3]||(N[3]=h=>{var w;return(w=i.value)==null?void 0:w.open()}),class:"version-container"},[A(L,{display:"Changelog",direction:u(J).Right,xoffset:"25%",class:"version"},{default:T(()=>[c("span",null,"v"+G(u(b)),1)]),_:1},8,["direction"])]),c("div",{onClick:N[4]||(N[4]=h=>{var w;return(w=n.value)==null?void 0:w.open()})},[A(L,{display:"Settings",direction:u(J).Right},{default:T(()=>[zs]),_:1},8,["direction"])]),c("div",{onClick:N[5]||(N[5]=h=>{var w;return(w=t.value)==null?void 0:w.open()})},[A(L,{display:"Info",direction:u(J).Right},{default:T(()=>[Us]),_:1},8,["direction"])]),c("div",null,[c("a",Os,[A(L,{display:"Forums",direction:u(J).Right,xoffset:"7px"},{default:T(()=>[Ys]),_:1},8,["direction"])])]),c("div",Js,[c("span",{onClick:v,class:"material-icons"},"discord"),c("ul",Ls,[u(f)?(m(),E("li",Ws,[c("a",{href:u(f),target:"_blank"},G(u(g)),9,Xs)])):M("",!0),js,Hs])])],16)),A(qi,{ref_key:"info",ref:t,changelog:i.value},null,8,["changelog"]),A(ma,{ref_key:"savesManager",ref:a},null,512),A(Pi,{ref_key:"options",ref:n},null,512),A(vi,{ref_key:"changelog",ref:i},null,512)],64))}});var fa=j(Ks,[["__scopeId","data-v-269f7a94"]]);const Zs={class:"inner-tab"},$s=U({__name:"Game",setup(e){const t=Me(R,"tabs"),a=x(()=>Object.keys(K)),n=P.useHeader;function i(s){const{display:o,minimized:l,name:g,color:f,minimizable:b,nodes:v,minimizedDisplay:y}=s;return{display:o,minimized:l,name:g,color:f,minimizable:b,nodes:v,minimizedDisplay:y}}return(s,o)=>(m(),E("div",{class:$(["tabs-container",{useHeader:u(n)}])},[(m(!0),E(ne,null,Ca(u(t),(l,g)=>{var f,b;return m(),E("div",{key:g,class:$(["tab",u((f=u(K)[l])==null?void 0:f.classes)]),style:Fe(u((b=u(K)[l])==null?void 0:b.style))},[g===0&&!u(n)?(m(),z(fa,{key:0})):M("",!0),c("div",Zs,[u(a).includes(l)?(m(),z(gi,je({key:0},i(u(K)[l]),{index:g,onSetMinimized:v=>u(K)[l].minimized.value=v}),null,16,["index","onSetMinimized"])):(m(),z(Ae(l),{key:1,index:g},null,8,["index"]))])],6)}),128))],2))}});var er=j($s,[["__scopeId","data-v-3e0f1aab"]]);const tr=U({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,a)=>(m(),E("div",{style:Fe({width:e.width,height:e.height})},null,4))}});var rt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAAAXNSR0IArs4c6QAAAqhJREFUeJzt3LFqFFEYBeBdERGJCaKgESUWCsZCTG0dbSyCZTp9B0ufxMJu38EHsA5YCDaiKGihiCxYuhZp7x254e6O6/m+8me4M1k4/HCYzGQCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkGg69gOs2mLxbbHM86fTS8XfdKz7MuzU2A8AYxIAogkA0QSAaAJAtNNjP8Cy1FqX+zceRt1XOzTMBiCaABBNAIgmAEQTAKKtfQvU2rrsb10tzu9t/i7O9y5sF+dHP74U5w92D4rzZ9evNJ1fU7tv7e/VDg2zAYgmAEQTAKIJANEEgGhr3wL10tr21Ly4dbvLObXrq63Rp69N53PMBiCaABBNAIgmAEQTAKLFtUCff30vzl9+LF//ZKdPO1TT2vb0ui/HbACiCQDRBIBoAkA0ASBaXAt07dzF4rzWDk0ml4vTXi1N6zneBerLBiCaABBNAIgmAEQTAKL9t9+G6fW9oFo79Hz3TnHe692e2vWHb46K89cfXhXnvv8zzAYgmgAQTQCIJgBEEwCixTUE69IOaXtWw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VLVtuf84n6P25afXGvp9T3PxglANAEgmgAQTQCIJgBEW+2Xeqs9aLUWrVbkyaPPi+ujZ2Cq7Up1/7vTy/KeRjp7f7K4Xv2eZ2uHnABEEwCiCQDRBIBoAkC0g3kv0JdXHxfXzy8eL65XW5pWm1FtpVpa+99sltuV0e6++bC4/uDF8pNrb0+Xr1Od0ZqNE4BoAkA0ASCaABBNAIg2XQtUbWN2m1o71FJte9qtDofECUA0ASCaABBNAIgmAEQ7mCfCzu58G7qf3dfbUfftpbX/VpvniTCYiAAQTQCIJgBEEwCiDf9FXm171lKdQTr0+/bivUBwwASAaAJANAEgmgAQbbpZIPgfvdokJwDRBIBoAkA0ASCaABBtqrkM/qjOUM32NubR/1DfUm2HnABEEwCiCQDRBIBoAkC06d4OzXHo1UqNbr2cAEQTAKIJANEEgGgCQDQt0JGrtiijW5fqjNDoGScnANEEgGgCQDQBIJoAEE0LxJWqtjpmgWAgASCaABBNAIgmAETTAh2J0TM/vT5fZRYIBhIAogkA0QSAaAJANG+HnpT/UPs7/xEGHQgA0QSAaAJANAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK7ILzj6vECOPLAcAAAAAElFTkSuQmCC";const kt=e=>(be("data-v-525c924f"),e=e(),Ne(),e),lr=["ondragstart","ondragend","ondragenter","ondragleave","ondragover","ondrop"],Ar={key:0,class:"move-indicator"},ur=kt(()=>c("span",{class:"material-icons"},"straight",-1)),cr=[ur],dr={key:1,class:"move-indicator"},gr=kt(()=>c("span",{class:"material-icons"},"merge",-1)),mr=[gr],fr={key:2,class:"character-display"},hr=["src"],vr={key:3,class:"relevancy-display"},pr=["src"],yr={key:4,class:"presence-display"},br=kt(()=>c("span",{class:"material-icons"}," extension ",-1)),Nr={key:5,class:"level-display"},Cr=["src"],Er=["src"],Br=["src"],_r=["src"],wr=["src"],Ir=["src"];var Sr=U({__name:"CharacterSlot",props:{character:null,isSelected:{type:Boolean},isShop:{type:Boolean},isDragging:{type:Boolean},selected:null,shake:{type:Boolean}},emits:["dragstart","dragend","drop"],setup(e,{emit:t}){const a=e,n=_(!1),i=_(!1);de(n,o=>{t(o?"dragstart":"dragend")});const s=et("");return Et(()=>{if(a.character==null||a.selected!=null||n.value){s.value="";return}const o=me(le[a.character.type].abilityDescription);s.value=H(()=>A(ne,null,[A("b",null,[le[a.character.type].nickname]),A("br",null,null),A(o,null,null)]))}),(o,l)=>(m(),z(L,{display:u(s),direction:u(J).Up},{default:T(()=>{var g,f,b;return[c("div",{class:$(["character",{selected:e.isSelected,empty:e.character==null&&e.selected==null,dragging:n.value,isDragging:e.isDragging,draggingOver:i.value,shake:e.shake}]),draggable:"true",ondragstart:()=>n.value=!0,ondragend:()=>n.value=!1,ondragenter:()=>i.value=!0,ondragleave:()=>i.value=!1,ondragover:v=>{var y;e.selected!=null&&!e.isShop&&(((y=e.character)==null?void 0:y.type)!==e.selected.type||e.isSelected)&&v.preventDefault(),e.character!=null&&e.selected!=null&&!e.isSelected&&e.character.type===e.selected.type&&e.character.exp<6&&v.preventDefault()},ondrop:()=>{i.value=!1,t("drop")}},[e.selected!=null&&!e.isShop&&(((g=e.character)==null?void 0:g.type)!==e.selected.type||e.isSelected)&&n.value===!1?(m(),E("span",Ar,cr)):M("",!0),e.character!=null&&e.selected!=null&&!e.isSelected&&e.character.type===e.selected.type&&e.character.exp<6?(m(),E("span",dr,mr)):M("",!0),e.character!=null?(m(),E("span",fr,[c("img",{src:u(le)[e.character.type].display},null,8,hr)])):M("",!0),e.character!=null?(m(),E("span",vr,[c("img",{src:u(rt)},null,8,pr),c("span",null,G((f=e.character)==null?void 0:f.relevancy),1)])):M("",!0),e.character!=null?(m(),E("span",yr,[br,c("span",null,G((b=e.character)==null?void 0:b.presence),1)])):M("",!0),e.character!=null?(m(),E("span",Nr,[e.character.exp===1?(m(),E("img",{key:0,src:u(ar)},null,8,Cr)):M("",!0),e.character.exp===2?(m(),E("img",{key:1,src:u(nr)},null,8,Er)):M("",!0),e.character.exp===3?(m(),E("img",{key:2,src:u(ir)},null,8,Br)):M("",!0),e.character.exp===4?(m(),E("img",{key:3,src:u(sr)},null,8,_r)):M("",!0),e.character.exp===5?(m(),E("img",{key:4,src:u(rr)},null,8,wr)):M("",!0),e.character.exp===6?(m(),E("img",{key:5,src:u(or)},null,8,Ir)):M("",!0)])):M("",!0)],10,lr)]}),_:1},8,["display","direction"]))}});var Re=j(Sr,[["__scopeId","data-v-525c924f"]]);const Ze=_(!1),Nt=_(""),xt=Yt(),Ve=_(),Pe=_("");function xe(e,...t){var a;!Ze.value||(a=Ve.value)==null||a.emit(e,...t)}Z.on("loadSettings",e=>{We(e,"server","https://Super-Auto-Coots.thepaperpilot.repl.co"),de(()=>e.server,t=>{Ve.value&&Ve.value.close(),Ve.value=Ma(t),Qr(Ve.value),Ze.value=!1,Pe.value="",Ve.value.connect()},{immediate:!0}),zn(H(()=>A(ne,null,[A(Qt,{title:"Server URL","onUpdate:modelValue":t=>e.server=t,modelValue:e.server},null),A("div",{style:"font-style: italic; font-size: small; margin-top: -10px;"},[Ze.value?A("span",null,[I("Connected!")]):Pe.value?A("span",{style:"color: red"},[Pe.value]):A("span",null,[I("Connecting...")])])])))});function Qr(e){e.on("connect",()=>{Pe.value="",Ze.value=!0,S.reset.reset()}),e.on("connect_error",t=>{Pe.value=`${t.name}: ${t.message}`}),e.on("disconnect",(t,a)=>{var n;Pe.value=a instanceof Error?`${a.name}: ${a.message}`:(n=a==null?void 0:a.description)!=null?n:t,Ze.value=!1}),e.on("server version",t=>{Qa(P.versionNumber,t)||(xt.info("Server only accepts game versions in range: "+t),e.disconnect())}),e.on("info",t=>{xt.info(t),t==="Failed to start streaming"&&(S.findingMatch.value=!1)}),e.on("nickname",t=>{Nt.value=t}),e.on("newTurn",t=>{S.gold.value=10,S.turn.value++,S.battle.value=null,S.shop.value=t.map(a=>({type:a,relevancy:le[a].initialRelevancy,presence:le[a].initialPresence,exp:1}))}),e.on("reroll",t=>{S.gold.value--,S.shop.value=t.map(a=>({type:a,relevancy:le[a].initialRelevancy,presence:le[a].initialPresence,exp:1}))}),e.on("buy",(t,a,n)=>{S.team.value[a]=n,S.shop.value[t]=null,S.gold.value-=3}),e.on("move",(t,a)=>{const n=S.team.value[t];S.team.value[t]=S.team.value[a],S.team.value[a]=n}),e.on("merge",(t,a,n)=>{S.team.value[t]=null,S.team.value[a]=n}),e.on("stream",(t,a)=>{S.findingMatch.value=!1,S.battle.value={team:JSON.parse(JSON.stringify(S.team.value.filter(n=>n!=null))),streamers:[],enemyTeam:t.team,enemyStreamers:[],enemyNickname:t.nickname,enemyLives:t.lives,enemyWins:t.wins,enemyTurn:t.turn},S.outcome.value=a,S.showingOutcome.value=!1,S.playClicked.value=!1,setTimeout(S.prepareMove,1e3)})}var Mr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAAAXNSR0IArs4c6QAABTlJREFUeJzt3U2oVVUYBuBjFIQNopCopCAsxElhcANREsISMpCoQcOI0okOGhlUIwsSGgQ5EsuGDYp+yMCSIEmC7kCqUZkIhRUiQYN+oIFNHK7v1qp9PGef93mG392sve69vCz2x9prTyYAAAAAAAAAAAAAAAAAjMOqWU9g3l28eOHirOfwf6xatcb/eAVXzHoCMEsCQDQBIJoAEE0AiHblrCdwufV2dZbWPjytqVwWvb9vWtfICkA0ASCaABBNAIgmAERb2C5Q1f3o7eosnzk2yHxmZWnt9q7rq7/bonaHrABEEwCiCQDRBIBoAkC00TzZD7WHZ+xdnWlbWtfuGi2fe6dZH3t3yApANAEgmgAQTQCIJgBEm7u9QEPt4RnK+bOnm/UbbrvjMs9kZWOZ57yxAhBNAIgmAEQTAKIJANFmto+jt9tz9PjBZr3qclR7Wiq9449F1R3asW1Ps76oe34qVgCiCQDRBIBoAkA0ASDa3O0FqvR2Y6o3v6ruUO/4h3c/1aw/894HzfqFn3/qGr/XmhtvatZf2vnQVO87dlYAogkA0QSAaAJANAEg2mi6QL2qbs8rr+5t1k9+2O7ebH6w3UV58rUjzfq5b7f8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ef/FION761GhmAFgjALBGAGCNAMAaAYC1shZIaX2OkJLdmZW9b7adyL7JvUq2Lenb78U7woCGCACsEQBYIwCwRgBgrXkLpGTbhizVHijZ+1a1K61VtSVd/V5Vz68wA8AaAYA1AgBrBADWCACsddYCKVVtSbY9yN63dTsxFF39XlWYAWCNAMAaAYA1AgBrBADW/gYSpT1chMivagAAAABJRU5ErkJggg==",Pr="./assets/start stream.dd66a6ec.png";const xr=Symbol("Reset");function Fr(e){return sa(()=>{const t=e();return t.id=Rn("reset-"),t.type=xr,t.reset=function(){var i;const a=s=>{if(s!=null&&typeof s=="object")if(ze in s){const o=s;o.value=o[ze]}else!(s instanceof C)&&!ge(s)&&Object.values(s).forEach(o=>a(o))},n=u(t.thingsToReset);vt(n)?n.forEach(a):a(n),Z.emit("reset",t),(i=t.onReset)==null||i.call(t)},ce(t,"thingsToReset"),t})}const it={};Z.on("removeLayer",e=>{var t;(t=it[e.id])==null||t.call(it),it[e.id]=void 0});function Je(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ea(e)}const le={coots:{nickname:"Coots",initialRelevancy:1,initialPresence:1,display:Rr,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},ludwig:{nickname:"Ludwig Coots",initialRelevancy:1,initialPresence:1,display:Mr,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},qt:{nickname:"Qt Coots",initialRelevancy:1,initialPresence:1,display:Vr,abilityType:"LivestreamJoined",abilityDescription:H(()=>A(ne,null,[A("i",null,[I("Livestream joined")]),I(": Set both stats to 100")])),performAbility(e){e.presence=100,e.relevancy=100}},maid:{nickname:"Maid Coots",initialRelevancy:1,initialPresence:1,display:kr,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},mail:{nickname:"Mogul Mail Coots",initialRelevancy:1,initialPresence:1,display:Tr,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},stanz:{nickname:"Stanz Coots",initialRelevancy:1,initialPresence:1,display:qr,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},money:{nickname:"Mogul Money Coots",initialRelevancy:1,initialPresence:1,display:Dr,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},vespa:{nickname:"Vespa Coots",initialRelevancy:1,initialPresence:1,display:Gr,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}}},S=ua("main",function(){const e=_(3),t=_(0),a=_(0),n=_(0),i=_([null,null,null]),s=_([]),o=_(null),l=_(null),g=_(!1),f=_(""),b=_(!1),v=_(!1),y=_(!1),N=_([]),h=_(null),w=x(()=>h.value==null?0:h.value.streamers.reduce((D,F)=>D+Math.max(0,F.presence)*Math.max(0,F.relevancy),0)*100),O=x(()=>h.value==null?0:h.value.enemyStreamers.reduce((D,F)=>D+Math.max(0,F.presence)*Math.max(0,F.relevancy),0)*100),W=Fr(()=>({onReset(){e.value=3,t.value=0,a.value=0,n.value=0,i.value=[null,null,null],s.value=[],o.value=null,l.value=null,g.value=!1,h.value=null,f.value="",b.value=!1,y.value=!1,N.value=[]}})),p=_(!1);function B(){var D,F;if(h.value==null)throw"Preparing move while not in battle";if(N.value.length===0&&h.value.team.length===0&&h.value.enemyTeam.length===0){f.value==="Victory"?t.value++:f.value==="Defeat"&&e.value--,b.value=!0;return}if(N.value.length===0?N.value.push({action:"join"}):N.value.length>1&&(N.value=N.value.sort((V,Y)=>V.action!==Y.action?1:V.target!=null&&Y.target!=null?Y.target.relevancy-V.target.relevancy:0)),q.autoplay===!1&&y.value===!1)v.value=!0;else{v.value=!1;const V=N.value.shift();switch(V.action){case"join":if(((D=h.value.team.length)!=null?D:0)>0){const Y=h.value.team.pop();h.value.streamers.push(Y),le[Y.type].abilityType==="LivestreamJoined"&&N.value.unshift({action:"LivestreamJoined",target:Y})}if(((F=h.value.enemyTeam.length)!=null?F:0)>0){const Y=h.value.enemyTeam.pop();h.value.enemyStreamers.push(Y),le[Y.type].abilityType==="LivestreamJoined"&&N.value.unshift({action:"LivestreamJoined",target:Y})}break;default:if(V.target==null){console.error("Invalid action",V);break}le[V.target.type].performAbility(V.target);break}y.value=!1,setTimeout(B,q.fast?750:1250)}}return{name:"Game",minimizable:!1,display:H(()=>{let D;if(h.value!=null){let F,V,Y,De;return A("div",{class:{["battle-container"]:!0,fast:q.fast}},[A("div",{class:"battle-controls"},[A("button",{class:"button",onClick:()=>{y.value=!0,B()}},[A("span",{class:"material-icons"},[I("play_arrow")]),A("span",null,[I("Play")])]),A("button",{class:{button:!0,active:q.autoplay},onClick:()=>{q.autoplay=!q.autoplay,v.value&&B()}},[A("span",{class:"material-icons"},[I("all_inclusive")]),A("span",null,[I("Autoplay")])]),A("button",{class:{button:!0,active:q.fast},onClick:()=>q.fast=!q.fast},[A("span",{class:"material-icons"},[I("fast_forward")]),A("span",null,[I("Fast")])])]),A("div",{class:"teams-container",style:b.value?"pointer-events: none;":""},[A("div",{class:"team-container"},[A("div",{class:"stream-container"},[A("div",{class:"stream-details",style:"left: 1vmin"},[A("span",{style:"margin-left: 0"},[Nt.value,I(" (YOU)")]),A("div",{class:"stats",style:"margin-left: 0"},[A("div",{class:"resource-box"},[A("img",{src:rt},null),A("span",null,[e.value])]),A("div",{class:"resource-box"},[A("span",{class:"material-icons"},[I("emoji_events")]),A("span",null,[t.value,I("/5")])])])]),A("div",{class:"view-counter",style:"right: 1vmin"},[pt(w.value),I(" Views")]),A(_e,{class:"streamers-container"},{default:()=>[A(nt,{name:"character-transition"},Je(F=h.value.streamers.slice().reverse().map((ie,Ce)=>{var se;return A(Re,{key:h.value.streamers.length-Ce,character:ie,shake:v.value&&((se=N.value[0])==null?void 0:se.target)===ie},null)}))?F:{default:()=>[F]})]})]),A(_e,{class:"members-container",style:"margin-left: 0"},{default:()=>[A(nt,{name:"character-transition"},Je(V=h.value.team.map((ie,Ce)=>{var se,Ue,Oe,Ye;return A(Re,{character:ie,key:Ce,shake:v.value&&((se=N.value[0])==null?void 0:se.action)==="join"&&ie===((Ye=h.value)==null?void 0:Ye.team[((Oe=(Ue=h.value)==null?void 0:Ue.team.length)!=null?Oe:0)-1])},null)}))?V:{default:()=>[V]})]})]),A("div",{class:"team-container"},[A("div",{class:"stream-container"},[A("div",{class:"stream-details",style:"right: 1vmin"},[A("span",{style:"margin-right: 0"},[h.value.enemyNickname]),A("div",{class:"stats",style:"margin-right: 0"},[A("div",{class:"resource-box"},[A("img",{src:rt},null),A("span",null,[h.value.enemyLives])]),A("div",{class:"resource-box"},[A("span",{class:"material-icons"},[I("emoji_events")]),A("span",null,[h.value.enemyWins,I("/5")])])])]),A("div",{class:"view-counter",style:"left: 1vmin"},[pt(O.value),I(" Views")]),A(_e,{class:"streamers-container"},{default:()=>[A(nt,{name:"character-transition"},Je(Y=h.value.enemyStreamers.map((ie,Ce)=>{var se;return A(Re,{key:Ce,character:ie,shake:v.value&&((se=N.value[0])==null?void 0:se.target)===ie},null)}))?Y:{default:()=>[Y]})]})]),A(_e,{class:"members-container",style:"margin-right: 0"},{default:()=>[A(nt,{name:"character-transition"},Je(De=h.value.enemyTeam.slice().reverse().map((ie,Ce)=>{var se,Ue,Oe,Ye;return A(Re,{character:ie,key:h.value.enemyStreamers.length+Ce,shake:v.value&&((se=N.value[0])==null?void 0:se.action)==="join"&&ie===((Ye=h.value)==null?void 0:Ye.enemyTeam[((Oe=(Ue=h.value)==null?void 0:Ue.enemyTeam.length)!=null?Oe:0)-1])},null)}))?De:{default:()=>[De]})]})])]),b.value?A("div",{class:"outcome",onClick:()=>xe("newTurn")},[A("span",null,[f.value]),A("span",{style:"font-size: 2vmin"},[I("Next Turn")])]):null])}return A("div",{class:"game-container",style:g.value?"pointer-events: none":"",onClick:()=>{o.value=null,l.value=null}},[A(_e,{style:"position: absolute; top: 10px; left: -5px"},{default:()=>[A("div",{class:"resource-box"},[A("span",{class:"material-icons"},[I("credit_card")]),n.value]),A("div",{class:"resource-box"},[A("img",{src:rt},null),e.value]),A("div",{class:"resource-box"},[A("span",{class:"material-icons"},[I("emoji_events")]),t.value,I("/5")])]}),A("h2",{style:"font-size: 3vmin"},[Nt.value]),A(_e,{style:"margin-top: 10vh"},Je(D=new Array(3).fill(0).map((F,V)=>{var Y,De;return A(Re,{character:i.value[V],isSelected:o.value===V,selected:o.value==null?l.value==null||i.value[V]!=null&&((Y=s.value[l.value])==null?void 0:Y.type)!==((De=i.value[V])==null?void 0:De.type)||n.value<3?null:s.value[l.value]:i.value[o.value],isDragging:p.value,onClick:Ft(V),onDragstart:()=>{p.value=!0,o.value=V,l.value=null},onDragend:()=>{p.value=!1,o.value=null,l.value=null},onDrop:()=>Ft(V)()},null)}))?D:{default:()=>[D]}),A(_e,{style:"margin-top: 10vh"},{default:()=>[A("div",{class:"reroll",style:n.value>0?"":"color: var(--locked); cursor: not-allowed",onClick:()=>{n.value>0&&xe("reroll")}},[A("span",{class:"material-icons",style:"font-size: 8vmin"},[I("casino")]),A("span",{style:"font-size: 2vmin"},[I("Roll")])]),s.value.map((F,V)=>A(Re,{character:F==null?void 0:F,isSelected:l.value===V,isShop:!0,isDragging:p.value,onClick:Y=>{F!=null&&(l.value=l.value===V?null:V,o.value=null,Y.stopPropagation())},onDragstart:()=>{p.value=!0,o.value=null,l.value=V},onDragend:()=>{p.value=!1,o.value=null,l.value=null}},null))]}),A(tr,{height:"4vh"},null),g.value?A("div",{class:"waiting"},[I("Finding opposing team...")]):A("img",{class:"startStream",draggable:"false",onClick:()=>{xe("stream"),g.value=!0},src:Pr},null)])}),lives:e,wins:t,turn:a,gold:n,team:i,shop:s,selectedCharacter:o,selectedShopItem:l,findingMatch:g,showingOutcome:b,outcome:f,reset:W,battle:h,playClicked:y,prepareMove:B}});function Ft(e){return t=>{var a,n,i,s,o,l,g;S.selectedCharacter.value!=null&&S.selectedCharacter.value!==e?((a=S.team.value[S.selectedCharacter.value])==null?void 0:a.type)===((n=S.team.value[e])==null?void 0:n.type)&&((s=(i=S.team.value[S.selectedCharacter.value])==null?void 0:i.exp)!=null?s:0)<6&&((l=(o=S.team.value[e])==null?void 0:o.exp)!=null?l:0)<6?(xe("merge",S.selectedCharacter.value,e),S.selectedCharacter.value=null):(xe("move",S.selectedCharacter.value,e),S.selectedCharacter.value=null):S.selectedCharacter.value===e?S.selectedCharacter.value=null:S.selectedShopItem.value!==null?((S.team.value[e]==null||S.team.value[e].type===((g=S.shop.value[S.selectedShopItem.value])==null?void 0:g.type)&&S.team.value[e].exp<6)&&S.gold.value>=3&&xe("buy",S.selectedShopItem.value,e),S.selectedShopItem.value=null):S.selectedCharacter.value=e,t==null||t.stopPropagation()}}const zr=e=>[S],ha=x(()=>!1);function Ur(e,t){}var Or=Object.freeze(Object.defineProperty({__proto__:null,characters:le,main:S,getInitialLayers:zr,hasWon:ha,fixOldSave:Ur},Symbol.toStringTag,{value:"Module"}));const Yr={class:"field"},Jr=U({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=x(()=>{var s;return me((s=u(a.title))!=null?s:"","span")}),i=x({get(){return!!a.modelValue},set(s){t("update:modelValue",s)}});return(s,o)=>(m(),E("label",Yr,[Bt(c("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=l=>ge(i)?i.value=l:null)},null,512),[[Ba,u(i)]]),(m(),z(Ae(u(n))))]))}});var Ct=j(Jr,[["__scopeId","data-v-11046116"]]);const tt=e=>(be("data-v-4a50ce42"),e=e(),Ne(),e),Lr={class:"game-over-modal-header"},Wr=["src","alt"],Xr={class:"game-over-modal-title"},jr=tt(()=>c("h2",null,"Congratulations!",-1)),Hr={key:0},Kr=tt(()=>c("br",null,null,-1)),Zr=tt(()=>c("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),$r=tt(()=>c("br",null,null,-1)),eo=["href"],to=tt(()=>c("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),ao=U({__name:"GameOverScreen",setup(e){const{title:t,logo:a,discordName:n,discordLink:i,versionNumber:s,versionTitle:o}=P,l=x(()=>wt(R.timePlayed)),g=x(()=>ha.value&&!R.keepGoing),f=Me(R,"autosave");function b(){R.keepGoing=!0}function v(){Ie(qe())}return(y,N)=>(m(),z(ke,{"model-value":u(g)},{header:T(()=>[c("div",Lr,[u(a)?(m(),E("img",{key:0,class:"game-over-modal-logo",src:u(a),alt:u(t)},null,8,Wr)):M("",!0),c("div",Xr,[jr,c("h4",null,"You've beaten "+G(u(t))+" v"+G(u(s))+": "+G(u(o)),1)])])]),body:T(({shown:h})=>[h?(m(),E("div",Hr,[c("div",null,"It took you "+G(u(l))+" to beat the game.",1),Kr,Zr,$r,c("div",null,[c("a",{href:u(i),class:"game-over-modal-discord-link"},[to,I(" "+G(u(n)),1)],8,eo)]),A(Ct,{title:"Autosave",modelValue:u(f),"onUpdate:modelValue":N[0]||(N[0]=w=>ge(f)?f.value=w:null)},null,8,["modelValue"])])):M("",!0)]),footer:T(()=>[c("div",{class:"game-over-footer"},[c("button",{onClick:b,class:"button"},"Keep Going"),c("button",{onClick:v,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var no=j(ao,[["__scopeId","data-v-4a50ce42"]]);const mt=e=>(be("data-v-336bf74f"),e=e(),Ne(),e),io=mt(()=>c("div",{class:"nan-modal-header"},[c("h2",null,"NaN value detected!")],-1)),so={key:0},ro=mt(()=>c("br",null,null,-1)),oo=["href"],lo=mt(()=>c("span",{class:"material-icons nan-modal-discord"},"discord",-1)),Ao=mt(()=>c("br",null,null,-1)),uo={class:"nan-footer"},co=U({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:a}=P,n=_(!0),i=_(!0),s=Me(X,"hasNaN"),o=_(null);de(s,y=>{y?(n.value=R.autosave,i.value=R.devSpeed===0):(R.autosave=n.value,R.devSpeed=i.value?0:null)});const l=x(()=>{var y;return(y=X.NaNPath)==null?void 0:y.join(".")}),g=x(()=>X.NaNPersistent!=null?X.NaNPersistent.value:null);function f(){X.NaNPersistent!=null&&(X.NaNPersistent.value=new C(0),X.hasNaN=!1)}function b(){X.NaNPersistent&&(X.NaNPersistent.value=new C(1),X.hasNaN=!1)}function v(){X.NaNPersistent&&(X.NaNPersistent.value=new C(NaN),X.hasNaN=!1)}return(y,N)=>(m(),E(ne,null,[A(ke,je({modelValue:u(s),"onUpdate:modelValue":N[4]||(N[4]=h=>ge(s)?s.value=h:null)},y.$attrs),{header:T(()=>[io]),body:T(()=>[c("div",null,[I(' Attempted to assign "'+G(u(l))+'" to NaN',1),u(g)?(m(),E("span",so,G(" ")+"(previously "+G(u(Kt)(u(g)))+")",1)):M("",!0),I(". Auto-saving has been "+G(n.value?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),ro,c("div",null,[c("a",{href:u(a)||"https://discord.gg/WzejVAx",class:"nan-modal-discord-link"},[lo,I(" "+G(u(t)||"The Paper Pilot Community"),1)],8,oo)]),Ao,A(Ct,{title:"Autosave",modelValue:n.value,"onUpdate:modelValue":N[0]||(N[0]=h=>n.value=h)},null,8,["modelValue"]),u(P).enablePausing?(m(),z(Ct,{key:0,title:"Pause game",modelValue:i.value,"onUpdate:modelValue":N[1]||(N[1]=h=>i.value=h)},null,8,["modelValue"])):M("",!0)]),footer:T(()=>[c("div",uo,[c("button",{onClick:N[2]||(N[2]=h=>{var w;return(w=o.value)==null?void 0:w.open()}),class:"button"},"Open Saves Manager"),c("button",{onClick:f,class:"button"},"Set to 0"),c("button",{onClick:b,class:"button"},"Set to 1"),u(g)&&u(C).neq(u(g),0)&&u(C).neq(u(g),1)?(m(),E("button",{key:0,onClick:N[3]||(N[3]=h=>s.value=!1),class:"button"}," Set to previous ")):M("",!0),c("button",{onClick:v,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),A(ma,{ref_key:"savesManager",ref:o},null,512)],64))}});var go=j(co,[["__scopeId","data-v-336bf74f"]]);var mo=U({__name:"App",setup(e){const t=P.useHeader,a=x(()=>ct[q.theme].variables);Me(q,"showTPS");const n=x(()=>me(H(()=>A(ne,null,[On.map(St)]))));return(i,s)=>(m(),E(ne,null,[c("div",{id:"modal-root",style:Fe(u(a))},null,4),c("div",{class:$(["app",{useHeader:u(t)}]),style:Fe(u(a))},[u(t)?(m(),z(fa,{key:0})):M("",!0),A(er),A(no),A(go),(m(),z(Ae(u(n))))],6)],64))}});var fo=j(mo,[["__scopeId","data-v-ff7f8b84"]]);Z.on("setupVue",e=>e.use(ka));function ho(e={}){const{immediate:t=!1,onNeedRefresh:a,onOfflineReady:n,onRegistered:i,onRegisterError:s}=e;let o,l;const g=async(f=!0)=>{f&&(o==null||o.addEventListener("controlling",b=>{b.isUpdate&&window.location.reload()})),l&&l.waiting&&await Da(l.waiting,{type:"SKIP_WAITING"})};if("serviceWorker"in navigator){o=new Ta("./sw.js",{scope:"./",type:"classic"}),o.addEventListener("activated",f=>{f.isUpdate||n==null||n()});{const f=()=>{a==null||a()};o.addEventListener("waiting",f),o.addEventListener("externalwaiting",f)}o.register({immediate:t}).then(f=>{l=f,i==null||i(f)}).catch(f=>{s==null||s(f)})}return g}function vo(e={}){const{immediate:t=!0,onNeedRefresh:a,onOfflineReady:n,onRegistered:i,onRegisterError:s}=e,o=_(!1),l=_(!1);return{updateServiceWorker:ho({immediate:t,onNeedRefresh(){o.value=!0,a==null||a()},onOfflineReady(){l.value=!0,n==null||n()},onRegistered:i,onRegisterError:s}),offlineReady:l,needRefresh:o}}document.title=P.title;window.projInfo=P;if(P.id==="")throw"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 Gn();const{globalBus:e}=await ot(()=>Promise.resolve().then(function(){return Vn}),void 0),{startGameLoop:t}=await ot(()=>import("./gameLoop.ed7f4ea7.js"),["assets/gameLoop.ed7f4ea7.js","assets/@fontsource.f66d05e7.css","assets/vue.5bd9f35e.js","assets/lru-cache.9506e0ec.js","assets/yallist.fd762fe7.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/vuedraggable.832ed13e.js","assets/sortablejs.80af5380.js","assets/vue-next-select.8d9e0122.js","assets/vue-next-select.9e6f4164.css","assets/vue-textarea-autosize.35804eaf.js","assets/semver.d101e2be.js","assets/socket.io-client.79ce0df5.js","assets/engine.io-client.58517560.js","assets/engine.io-parser.3f360695.js","assets/@socket.io.aec831e2.js","assets/socket.io-parser.544e37d1.js","assets/vue-toastification.b272a510.js","assets/vue-toastification.4b5f8ac8.css","assets/workbox-window.8d14e8b7.js"]),a=window.vue=_a(fo);e.emit("setupVue",a),a.mount("#app"),Xe(()=>{const n=Yt(),{updateServiceWorker:i}=vo({onNeedRefresh(){n.info("New content available, click here to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){i()}})},onOfflineReady(){n.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(s){s&&setInterval(()=>s.update(),60*60*1e3)}})}),t()});export{C as D,ot as _,X as a,P as b,Or as c,Z as g,Pn as l,R as p,q as s}; diff --git a/assets/index.98888828.js b/assets/index.98888828.js new file mode 100644 index 0000000..e5344ae --- /dev/null +++ b/assets/index.98888828.js @@ -0,0 +1,15 @@ +/* empty css */import"./vue.f6263579.js";import{Z as R,q as at,C as A,t as _,b1 as de,aa as G,aE as f,a0 as C,a1 as c,aK as Ce,G as ee,w as ge,b2 as wt,a8 as u,O as se,ay as It,ar as De,aG as it,A as fe,_ as F,b6 as T,b8 as St,bs as Ea,aq as Ze,bu as $e,bb as Kt,T as Ba,a7 as I,u as Qt,j as _a,l as he,bv as bt,aL as wa,$ as M,aN as ue,J as P,I as Re,aH as Ee,aF as Be,z as Ve,br as Ia,aJ as Sa,al as Gt,aC as Qa,au as Ma,bc as st,ao as ka,bn as Ta,be as Da}from"./@vue.4ce677c2.js";import{c as Zt}from"./nanoevents.1080beb7.js";import{L as Ne}from"./lz-string.f2f3b7cf.js";import{D as Ra}from"./vuedraggable.c3acdf62.js";import{Y as Va}from"./vue-next-select.0dc4e443.js";import{p as Pa}from"./vue-textarea-autosize.35804eaf.js";import{s as qa}from"./semver.83ff78cf.js";import{l as za}from"./socket.io-client.79ce0df5.js";import{u as $t,s as xa}from"./vue-toastification.b7cd620e.js";import{A as ea,T as Ga,R as Fa,B as Ua,u as Oa,E as Ft}from"./@pixi.1eac1889.js";import{v as Ya,n as Ja}from"./workbox-window.8d14e8b7.js";import"./earcut.b6f90e68.js";import"./sortablejs.cbae5b2d.js";import"./lru-cache.9a21e90b.js";import"./yallist.fd762fe7.js";import"./engine.io-client.58517560.js";import"./engine.io-parser.3f360695.js";import"./@socket.io.aec831e2.js";import"./socket.io-parser.544e37d1.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.e51cb87b.js";import"./querystring.23ae9a54.js";const La=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function a(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=a(i);fetch(i.href,s)}};La();const Wa="modulepreload",Ut={},Xa="./",At=function(t,a){return!a||a.length===0?t():Promise.all(a.map(n=>{if(n=`${Xa}${n}`,n in Ut)return;Ut[n]=!0;const i=n.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${n}"]${s}`))return;const r=document.createElement("link");if(r.rel=i?"stylesheet":Wa,i||(r.as="script",r.crossOrigin=""),r.href=n,document.head.appendChild(r),i)return new Promise((l,m)=>{r.addEventListener("load",l),r.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${n}`)))})})).then(()=>t())},ja="./projInfo-schema.json",Ha="Super Auto Coots",Ka="A project made in Profectus",Za="superautocoots",$a="thepaperpilot and crea",en="",tn="",an="0.0.0",nn="Initial Commit",sn=!1,rn=!1,on=2,ln=!0,An=null,un="",cn=["main"],dn=3600,mn=1,gn=!0,fn="base64";var q={$schema:ja,title:Ha,description:Ka,id:Za,author:$a,discordName:en,discordLink:tn,versionNumber:an,versionTitle:nn,allowGoBack:sn,defaultShowSmall:rn,defaultDecimalsShown:on,useHeader:ln,banner:An,logo:un,initialTabs:cn,maxTickLength:dn,offlineLimit:mn,enablePausing:gn,exportEncoding:fn};class hn{constructor(t){this.map=new Map,this.first=void 0,this.last=void 0,this.maxSize=t}get size(){return this.map.size}get(t){const a=this.map.get(t);if(a!==void 0)return a!==this.first&&(a===this.last?(this.last=a.prev,this.last.next=void 0):(a.prev.next=a.next,a.next.prev=a.prev),a.next=this.first,this.first.prev=a,this.first=a),a.value}set(t,a){if(this.maxSize<1)return;if(this.map.has(t))throw new Error("Cannot update existing keys in the cache");const n=new vn(t,a);for(this.first===void 0?(this.first=n,this.last=n):(n.next=this.first,this.first.prev=n,this.first=n),this.map.set(t,n);this.map.size>this.maxSize;){const i=this.last;this.map.delete(i.key),this.last=i.prev,this.last.next=void 0}}}class vn{constructor(t,a){this.next=void 0,this.prev=void 0,this.key=t,this.value=a}}const pt=17,pn=9e15,yn=Math.log10(9e15),bn=1/9e15,Nn=308,Cn=-324,Ot=5,En=(1<<10)-1,Bn=function(){const e=[];for(let a=Cn+1;a<=Nn;a++)e.push(Number("1e"+a));const t=323;return function(a){return e[a+t]}}(),we=[2,Math.E,3,4,5,6,7,8,9,10],_n=[[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]],wn=[[-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 d=function(t){return E.fromValue_noAlloc(t)},Q=function(e,t,a){return E.fromComponents(e,t,a)},k=function(t,a,n){return E.fromComponents_noNormalize(t,a,n)};const ye=function(t,a){const n=a+1,i=Math.ceil(Math.log10(Math.abs(t))),s=Math.round(t*Math.pow(10,n-i))*Math.pow(10,i-n);return parseFloat(s.toFixed(Math.max(n-i,0)))},yt=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},In=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 a=.9189385332046727;a=a+(e+.5)*Math.log(e),a=a-e;const n=e*e;let i=e;return a=a+1/(12*i),i=i*n,a=a+1/(360*i),i=i*n,a=a+1/(1260*i),i=i*n,a=a+1/(1680*i),i=i*n,a=a+1/(1188*i),i=i*n,a=a+691/(360360*i),i=i*n,a=a+7/(1092*i),i=i*n,a=a+3617/(122400*i),Math.exp(a)/t},ta=.5671432904097838,Yt=function(e,t=1e-10){let a,n;if(!Number.isFinite(e)||e===0)return e;if(e===1)return ta;e<10?a=0:a=Math.log(e)-Math.log(Math.log(e));for(let i=0;i<100;++i){if(n=(e*Math.exp(-a)+a*a)/(a+1),Math.abs(n-a).5?1:-1;if(Math.random()*20<1)return k(t,0,1);const a=Math.floor(Math.random()*(e+1));let n=a===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(n=Math.trunc(n));let i=Math.pow(10,n);return Math.random()>.9&&(i=Math.trunc(i)),Q(t,a,i)}static affordGeometricSeries_core(e,t,a,n){const i=t.mul(a.pow(n));return o.floor(e.div(i).mul(a.sub(1)).add(1).log10().div(a.log10()))}static sumGeometricSeries_core(e,t,a,n){return t.mul(a.pow(n)).mul(o.sub(1,a.pow(e))).div(o.sub(1,a))}static affordArithmeticSeries_core(e,t,a,n){const s=t.add(n.mul(a)).sub(a.div(2)),r=s.pow(2);return s.neg().add(r.add(a.mul(e).mul(2)).sqrt()).div(a).floor()}static sumArithmeticSeries_core(e,t,a,n){const i=t.add(n.mul(a));return e.div(2).mul(i.mul(2).plus(e.sub(1).mul(a)))}static efficiencyOfPurchase_core(e,t,a){return e.div(t).add(e.div(a))}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=pn)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,a){return this.sign=e,this.layer=t,this.mag=a,this.normalize(),this}fromComponents_noNormalize(e,t,a){return this.sign=e,this.layer=t,this.mag=a,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,a=o.fromStringCache.get(t);if(a!==void 0)return this.fromDecimal(a);e=e.replace(",","");const n=e.split("^^^");if(n.length===2){const h=parseFloat(n[0]),w=parseFloat(n[1]),Y=n[1].split(";");let j=1;if(Y.length===2&&(j=parseFloat(Y[1]),isFinite(j)||(j=1)),isFinite(h)&&isFinite(w)){const p=o.pentate(h,w,j);return this.sign=p.sign,this.layer=p.layer,this.mag=p.mag,o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}}const i=e.split("^^");if(i.length===2){const h=parseFloat(i[0]),w=parseFloat(i[1]),Y=i[1].split(";");let j=1;if(Y.length===2&&(j=parseFloat(Y[1]),isFinite(j)||(j=1)),isFinite(h)&&isFinite(w)){const p=o.tetrate(h,w,j);return this.sign=p.sign,this.layer=p.layer,this.mag=p.mag,o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}}const s=e.split("^");if(s.length===2){const h=parseFloat(s[0]),w=parseFloat(s[1]);if(isFinite(h)&&isFinite(w)){const Y=o.pow(h,w);return this.sign=Y.sign,this.layer=Y.layer,this.mag=Y.mag,o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}}e=e.trim().toLowerCase();let r,l,m=e.split("pt");if(m.length===2){r=10,l=parseFloat(m[0]),m[1]=m[1].replace("(",""),m[1]=m[1].replace(")","");let h=parseFloat(m[1]);if(isFinite(h)||(h=1),isFinite(r)&&isFinite(l)){const w=o.tetrate(r,l,h);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}}if(m=e.split("p"),m.length===2){r=10,l=parseFloat(m[0]),m[1]=m[1].replace("(",""),m[1]=m[1].replace(")","");let h=parseFloat(m[1]);if(isFinite(h)||(h=1),isFinite(r)&&isFinite(l)){const w=o.tetrate(r,l,h);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}}const g=e.split("e"),y=g.length-1;if(y===0){const h=parseFloat(e);if(isFinite(h))return this.fromNumber(h),o.fromStringCache.size>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}else if(y===1){const h=parseFloat(e);if(isFinite(h)&&h!==0)return this.fromNumber(h),o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}const v=e.split("e^");if(v.length===2){this.sign=1,v[0].charAt(0)=="-"&&(this.sign=-1);let h="";for(let w=0;w=43&&Y<=57||Y===101)h+=v[1].charAt(w);else return this.layer=parseFloat(h),this.mag=parseFloat(v[1].substr(w+1)),this.normalize(),o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}}if(y<1)return this.sign=0,this.layer=0,this.mag=0,o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this;const b=parseFloat(g[0]);if(b===0)return this.sign=0,this.layer=0,this.mag=0,o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this;let N=parseFloat(g[g.length-1]);if(y>=2){const h=parseFloat(g[g.length-2]);isFinite(h)&&(N*=Math.sign(h),N+=yt(h))}if(!isFinite(b))this.sign=g[0]==="-"?-1:1,this.layer=y,this.mag=N;else if(y===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=y,y===2){const h=o.mul(Q(1,2,N),d(b));return this.sign=h.sign,this.layer=h.layer,this.mag=h.mag,o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}else this.mag=N;return this.normalize(),o.fromStringCache.maxSize>=1&&o.fromStringCache.set(t,o.fromDecimal(this)),this}fromValue(e){return e instanceof o?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:ye(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:ye(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<=Ot?(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):ye(this.m,e)+"e"+ye(this.e,e):this.layer===1?ye(this.m,e)+"e"+ye(this.e,e):this.layer<=Ot?(this.sign===-1?"-":"")+"e".repeat(this.layer)+ye(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+ye(this.mag,e)}abs(){return k(this.sign===0?0:1,this.layer,this.mag)}neg(){return k(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?o.dZero:this.layer===0?Q(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?o.dZero:this.layer===0?Q(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?o.dZero:this.layer===0?Q(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?o.dZero:this.layer===0?Q(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=d(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 k(0,0,0);let a,n;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(o.cmpabs(this,t)>0?(a=this,n=t):(a=t,n=this),a.layer===0&&n.layer===0)return o.fromNumber(a.sign*a.mag+n.sign*n.mag);const i=a.layer*Math.sign(a.mag),s=n.layer*Math.sign(n.mag);if(i-s>=2)return a;if(i===0&&s===-1){if(Math.abs(n.mag-Math.log10(a.mag))>pt)return a;{const r=Math.pow(10,Math.log10(a.mag)-n.mag),l=n.sign+a.sign*r;return Q(Math.sign(l),1,n.mag+Math.log10(Math.abs(l)))}}if(i===1&&s===0){if(Math.abs(a.mag-Math.log10(n.mag))>pt)return a;{const r=Math.pow(10,a.mag-Math.log10(n.mag)),l=n.sign+a.sign*r;return Q(Math.sign(l),1,Math.log10(n.mag)+Math.log10(Math.abs(l)))}}if(Math.abs(a.mag-n.mag)>pt)return a;{const r=Math.pow(10,a.mag-n.mag),l=n.sign+a.sign*r;return Q(Math.sign(l),1,n.mag+Math.log10(Math.abs(l)))}}plus(e){return this.add(e)}sub(e){return this.add(d(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=d(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return k(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return k(this.sign*t.sign,0,1);let a,n;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(a=this,n=t):(a=t,n=this),a.layer===0&&n.layer===0)return o.fromNumber(a.sign*n.sign*a.mag*n.mag);if(a.layer>=3||a.layer-n.layer>=2)return Q(a.sign*n.sign,a.layer,a.mag);if(a.layer===1&&n.layer===0)return Q(a.sign*n.sign,1,a.mag+Math.log10(n.mag));if(a.layer===1&&n.layer===1)return Q(a.sign*n.sign,1,a.mag+n.mag);if(a.layer===2&&n.layer===1){const i=Q(Math.sign(a.mag),a.layer-1,Math.abs(a.mag)).add(Q(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)));return Q(a.sign*n.sign,i.layer+1,i.sign*i.mag)}if(a.layer===2&&n.layer===2){const i=Q(Math.sign(a.mag),a.layer-1,Math.abs(a.mag)).add(Q(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)));return Q(a.sign*n.sign,i.layer+1,i.sign*i.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=d(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?o.dNaN:this.layer===0?Q(this.sign,0,1/this.mag):Q(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=d(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,n=t.mag>0?t.layer:-t.layer;return a>n?1:at.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 a=d(e);return this.eq_tolerance(a,t)?0:this.cmp(a)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const a=d(e);if(t==null&&(t=1e-7),this.sign!==a.sign||Math.abs(this.layer-a.layer)>1)return!1;let n=this.mag,i=a.mag;return this.layer>a.layer&&(i=yt(i)),this.layer0?Q(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):Q(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?o.dNaN:this.layer>0?Q(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):Q(this.sign,0,Math.log10(this.mag))}log(e){return e=d(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?o.dNaN:this.layer===0&&e.layer===0?Q(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):o.div(this.log10(),e.log10())}log2(){return this.sign<=0?o.dNaN:this.layer===0?Q(this.sign,0,Math.log2(this.mag)):this.layer===1?Q(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?Q(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):Q(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?o.dNaN:this.layer===0?Q(this.sign,0,Math.log(this.mag)):this.layer===1?Q(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?Q(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):Q(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=d(e),a=this,n=t;if(a.sign===0)return n.eq(0)?k(1,0,1):a;if(a.sign===1&&a.layer===0&&a.mag===1)return a;if(n.sign===0)return k(1,0,1);if(n.sign===1&&n.layer===0&&n.mag===1)return a;const i=a.absLog10().mul(n).pow10();return this.sign===-1?Math.abs(n.toNumber()%2)%2===1?i.neg():Math.abs(n.toNumber()%2)%2===0?i:o.dNaN:i}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return o.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 Q(1,0,t);if(e.sign===0)return o.dOne;e=k(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?Q(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?Q(-e.sign,e.layer+1,-e.mag):o.dOne}pow_base(e){return d(e).pow(this)}root(e){const t=d(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?o.exp(o.mul(this,o.ln(this).sub(1))):o.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(k(1,0,24)))return o.fromNumber(In(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const a=e*e;let n=e,i=12*n,s=1/i,r=t+s;if(r===t||(t=r,n=n*a,i=360*n,s=1/i,r=t-s,r===t))return o.exp(t);t=r,n=n*a,i=1260*n;let l=1/i;return t=t+l,n=n*a,i=1680*n,l=1/i,t=t-l,o.exp(t)}else return this.layer===1?o.exp(o.mul(this,o.ln(this).sub(1))):o.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?o.dOne:this.layer===0&&this.mag<=709.7?o.fromNumber(Math.exp(this.sign*this.mag)):this.layer===0?Q(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?Q(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):Q(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return o.fromNumber(Math.sqrt(this.sign*this.mag));if(this.layer===1)return Q(1,2,Math.log10(this.mag)-.3010299956639812);{const e=o.div(k(this.sign,this.layer-1,this.mag),k(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=k(1,0,1)){if(e===1)return o.pow(this,t);if(e===0)return new o(t);if(this.eq(o.dOne))return o.dOne;if(this.eq(-1))return o.pow(this,t);if(e===Number.POSITIVE_INFINITY){const i=this.toNumber();if(i<=1.444667861009766&&i>=.06598803584531254){if(i>1.444667861009099)return o.fromNumber(Math.E);const s=o.ln(this).neg();return s.lambertw().div(s)}else return i>1.444667861009766?o.fromNumber(Number.POSITIVE_INFINITY):o.dNaN}if(this.eq(o.dZero)){let i=Math.abs((e+1)%2);return i>1&&(i=2-i),o.fromNumber(i)}if(e<0)return o.iteratedlog(t,this,-e);t=d(t);const a=e;e=Math.trunc(e);const n=a-e;if(this.gt(o.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let i=0;i3)return k(t.sign,t.layer+(e-i-1),t.mag);if(i>1e4)return t}return t}iteratedexp(e=2,t=k(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return o.tetrate(e,-t,this);e=d(e);let a=o.fromDecimal(this);const n=t;t=Math.trunc(t);const i=n-t;if(a.layer-e.layer>3){const s=Math.min(t,a.layer-e.layer-3);t-=s,a.layer-=s}for(let s=0;s1e4)return a}return i>0&&i<1&&(e.eq(10)?a=a.layeradd10(-i):a=a.layeradd(-i,e)),a}slog(e=10,t=100){let a=.001,n=!1,i=!1,s=this.slog_internal(e).toNumber();for(let r=1;r1&&i!=m&&(n=!0),i=m,n?a/=2:a*=2,a=Math.abs(a)*(m?-1:1),s+=a,a===0)break}return o.fromNumber(s)}slog_internal(e=10){if(e=d(e),e.lte(o.dZero)||e.eq(o.dOne))return o.dNaN;if(e.lt(o.dOne))return this.eq(o.dOne)?o.dZero:this.eq(o.dZero)?o.dNegOne:o.dNaN;if(this.mag<0||this.eq(o.dZero))return o.dNegOne;let t=0,a=o.fromDecimal(this);if(a.layer-e.layer>3){const n=a.layer-e.layer-3;t+=n,a.layer-=n}for(let n=0;n<100;++n)if(a.lt(o.dZero))a=o.pow(e,a),t-=1;else{if(a.lte(o.dOne))return o.fromNumber(t+o.slog_critical(e.toNumber(),a.toNumber()));t+=1,a=o.log(a,e)}return o.fromNumber(t)}static slog_critical(e,t){return e>10?t-1:o.critical_section(e,t,wn)}static tetrate_critical(e,t){return o.critical_section(e,t,_n)}static critical_section(e,t,a){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let n=0,i=0;for(let r=0;re){const l=(e-we[r])/(we[r+1]-we[r]);n=a[r][Math.floor(t)]*(1-l)+a[r+1][Math.floor(t)]*l,i=a[r][Math.ceil(t)]*(1-l)+a[r+1][Math.ceil(t)]*l;break}const s=t-Math.floor(t);return n<=0||i<=0?n*(1-s)+i*s:Math.pow(e,Math.log(n)/Math.log(e)*(1-s)+Math.log(i)/Math.log(e)*s)}layeradd10(e){e=o.fromValue_noAlloc(e).toNumber();const t=o.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 a=Math.trunc(e);e-=a,t.layer+=a}if(e<=-1){const a=Math.trunc(e);if(e-=a,t.layer+=a,t.layer<0)for(let n=0;n<100;++n){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 n=this.slog(t).toNumber()+e;return n>=0?o.tetrate(t,n):Number.isFinite(n)?n>=-1?o.log(o.tetrate(t,n+1),t):o.log(o.log(o.tetrate(t,n+2),t),t):o.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return o.fromNumber(Yt(this.toNumber()));if(this.layer===0)return o.fromNumber(Yt(this.sign*this.mag));if(this.layer===1)return Jt(this);if(this.layer===2)return Jt(this);if(this.layer>=3)return k(this.sign,this.layer-1,this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if(this.sign==1&&this.layer>=3)return k(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=k(1,0,1)){t=d(t);const a=e;e=Math.trunc(e);const n=a-e;n!==0&&(t.eq(o.dOne)?(++e,t=o.fromNumber(n)):this.eq(10)?t=t.layeradd10(n):t=t.layeradd(n,this));for(let i=0;i10)return t}return t}sin(){return this.mag<0?this:this.layer===0?o.fromNumber(Math.sin(this.sign*this.mag)):k(0,0,0)}cos(){return this.mag<0?o.dOne:this.layer===0?o.fromNumber(Math.cos(this.sign*this.mag)):k(0,0,0)}tan(){return this.mag<0?this:this.layer===0?o.fromNumber(Math.tan(this.sign*this.mag)):k(0,0,0)}asin(){return this.mag<0?this:this.layer===0?o.fromNumber(Math.asin(this.sign*this.mag)):k(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?o.fromNumber(Math.acos(this.toNumber())):this.layer===0?o.fromNumber(Math.acos(this.sign*this.mag)):k(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?o.fromNumber(Math.atan(this.sign*this.mag)):o.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 o.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return o.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?k(Number.NaN,Number.NaN,Number.NaN):o.ln(this.add(1).div(o.fromNumber(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(o.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 E=o;E.fromStringCache=new hn(En);E.dZero=k(0,0,0);E.dOne=k(1,0,1);E.dNegOne=k(-1,0,1);E.dTwo=k(1,0,2);E.dTen=k(1,0,10);E.dNaN=k(Number.NaN,Number.NaN,Number.NaN);E.dInf=k(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);E.dNegInf=k(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);E.dNumberMax=Q(1,0,Number.MAX_VALUE);E.dNumberMin=Q(1,0,Number.MIN_VALUE);d=E.fromValue_noAlloc;Q=E.fromComponents;k=E.fromComponents_noNormalize;E.fromMantissaExponent;E.fromMantissaExponent_noNormalize;const Sn=new E(1);function He(e,t,a=!0){let n=E.log10(e).floor(),i=E.div(e,E.pow(10,n));i.toStringWithDecimalPlaces(t)==="10"&&(i=Sn,n=n.add(1));const s=n.gte(1e9)?ie(n,Math.max(Math.max(t,3),q.defaultDecimalsShown)):n.gte(1e4)?ut(n,0):n.toStringWithDecimalPlaces(0);return a?i.toStringWithDecimalPlaces(t)+"e"+s:"e"+s}function ut(e,t){if(e==null)return"NaN";if(e=new E(e),e.mag<.001)return 0 .toFixed(t);const n=e.toStringWithDecimalPlaces(t).split(".");return n[0]=n[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),n.length==1?n[0]:n[0]+"."+n[1]}function aa(e,t){return e==null?"NaN":(e=new E(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),q.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const Qn=new E("eeee1000"),Mn=new E("e100000"),Lt=new E("e1000"),na=new E(1e9),kn=new E(1e6),Tn=new E(1e3),Dn=new E(.98),Rn=new E(.001),ia=new E(0);function ie(e,t,a){if(t==null&&(t=q.defaultDecimalsShown),a=a!=null?a:q.defaultShowSmall,e=new E(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+ie(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(Qn)){const n=e.slog();return n.gte(kn)?"F"+ie(n.floor()):E.pow(10,n.sub(n.floor())).toStringWithDecimalPlaces(3)+"F"+ut(n.floor(),0)}else{if(e.gte(Mn))return He(e,0,!1);if(e.gte(Lt))return He(e,0);if(e.gte(na))return He(e,t);if(e.gte(Tn))return ut(e,0);if(e.gte(Rn)||!a)return aa(e,t);if(e.eq(ia))return 0 .toFixed(t)}return e=ra(e),e.lt(Lt)?He(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):ie(e,t)+"\u207B\xB9"}function ae(e){return e=new E(e),e.sign<0?"-"+ae(e.neg()):e.gte(na)||e.lte(Dn)&&!e.eq(ia)?ie(e):ie(e,0)}function sa(e){return E.lt(e,0)?"-"+sa(E.neg(e)):E.gt(e,2**51)?ie(E.div(e,31536e3))+"y":(e=new E(e).toNumber(),e<60?ie(e)+"s":e<3600?ae(Math.floor(e/60))+"m "+ie(e%60)+"s":e<86400?ae(Math.floor(e/3600))+"h "+ae(Math.floor(e/60)%60)+"m "+ae(e%60)+"s":e<31536e3?ae(Math.floor(e/84600)%365)+"d "+ae(Math.floor(e/3600)%24)+"h "+ae(Math.floor(e/60)%60)+"m":ae(Math.floor(e/31536e3))+"y "+ae(Math.floor(e/84600)%365)+"d "+ae(Math.floor(e/3600)%24)+"h")}function Vn(e,t,a){e=new E(e);let n=e.toStringWithDecimalPlaces(t);return new E(n).gte(a)&&(n=E.sub(a,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),n}function Pn(e,t){return ie(e,t,!0)}function ra(e){let t=E.log10(e).ceil();const a=E.div(e,E.pow(10,t));return t=t.neg(),e=new E(10).pow(t).times(a),e}var qn=Object.freeze(Object.defineProperty({__proto__:null,default:E,exponentialFormat:He,commaFormat:ut,regularFormat:aa,format:ie,formatWhole:ae,formatTime:sa,toPlaces:Vn,formatSmall:Pn,invertOOM:ra},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:zn,commaFormat:xn,regularFormat:Gn,format:oa,formatWhole:Nt,formatTime:Mt,toPlaces:Fn,formatSmall:Un,invertOOM:On}=qn;window.Decimal=E;window.exponentialFormat=zn;window.commaFormat=xn;window.regularFormat=Gn;window.format=oa;window.formatWhole=Nt;window.formatTime=Mt;window.toPlaces=Fn;window.formatSmall=Un;window.invertOOM=On;function Yn(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function Wt(e){return typeof e=="function"}var L=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(L||{});const ct=Symbol("DoNotCache");function me(e,t){const a=e[t];Wt(a)&&a.length===0&&!a[ct]?e[t]=R(a.bind(e)):Wt(a)&&(e[t]=a.bind(e),e[t][ct]=!0)}const kt=Symbol("Component"),Tt=Symbol("GatherProps");let Jn=0;function la(e="feature-"){return e+Jn++}function K(e){return e[ct]=!0,e}function Ke(e,t,a){e[t]===void 0&&a!=null&&(e[t]=a)}const Ie={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 Dt=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(Dt||{}),mt={classic:Ie,paper:{...Ie,variables:{...Ie.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:{...Ie,variables:{...Ie.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:{...Ie,variables:{...Ie.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const $=Zt();"fonts"in document&&(document.fonts.onloadingdone=()=>$.emit("fontsLoaded"));var Ln=Object.freeze(Object.defineProperty({__proto__:null,globalBus:$},Symbol.toStringTag,{value:"Module"}));const Wn=at({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});var D=window.player=Wn;function Aa(e){return JSON.stringify(e,(t,a)=>A(a))}function ua(e={}){return Object.assign({id:`${q.id}-0`,name:"Default Save",tabs:q.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:q.id,modVersion:q.versionNumber,layers:{}},e)}function ne(e){const t=Ne.compressToUTF16(Aa(e!=null?e:D));return localStorage.setItem((e!=null?e:D).id,t),t}async function Xn(){Kn();try{let e=localStorage.getItem(V.active);if(e==null){await Me(Fe());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ne.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==q.id){await Me(Fe());return}t.id=V.active,await Me(t)}catch(e){console.error(`Failed to load save. Falling back to new save. +`,e),await Me(Fe())}}function Fe(){const e=ot(),t=ua({id:e});return ne(t),V.saves.push(e),t}function ot(){let e,t=0;do e=`${q.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const jn=_(!1);async function Me(e){console.info("Loading save",e),jn.value=!0;const{layers:t,removeLayer:a,addLayer:n}=await At(()=>Promise.resolve().then(function(){return bi}),void 0),{fixOldSave:i,getInitialLayers:s}=await At(()=>Promise.resolve().then(function(){return po}),void 0);for(const r in t){const l=t[r];l&&a(l)}s(e).forEach(r=>n(r,e)),e=ua(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,q.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==q.versionNumber&&(i(e.modVersion,e),e.modVersion=q.versionNumber),Object.assign(D,e),V.active=D.id,$.emit("onLoad")}setInterval(()=>{D.autosave&&ne()},1e3);window.onbeforeunload=()=>{D.autosave&&ne()};window.save=ne;const Hn=window.hardReset=async()=>{await Me(Fe())};window.deleteLowerSaves=()=>{const e=Object.values(V.saves).indexOf(D.id)+1;Object.values(V.saves).slice(e).forEach(t=>localStorage.removeItem(t)),V.saves=V.saves.slice(0,e)};const et=at({active:"",saves:[],showTPS:!0,theme:Dt.Nordic,unthrottled:!1,alignUnits:!1,autoplay:!1,fast:!1});de(et,e=>{const t=Ne.compressToUTF16(JSON.stringify(e));localStorage.setItem(q.id,t)},{deep:!0});var V=window.settings=et;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Dt.Nordic,alignUnits:!1,autoplay:!1,fast:!1};$.emit("loadSettings",e),Object.assign(et,e),Hn()};function Kn(){try{let e=localStorage.getItem(q.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ne.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(et,t)}$.emit("loadSettings",et)}catch{}}const ca=at([]);function Zn(e){ca.push(e)}const $n=at([]),ei=at([]),ti={class:"table"},Se=G({__name:"Row",setup(e){const t=R(()=>mt[V.theme].mergeAdjacent);return(a,n)=>(f(),C("div",ti,[c("div",{class:ee(["row",{mergeAdjacent:A(t)}])},[Ce(a.$slots,"default")],2)]))}});function ve(e,t="span"){return typeof e=="function"?G({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),G({template:e})):G({render:()=>({})}):e}function gt(e){if(da(e))return typeof e=="function"?e():ve(e);const t=e[kt];return u(t,e[Tt](),null)}function ai(e){if(da(e))return typeof e=="function"?e():typeof e=="string"?u(se,null,[e]):u(e,null,null);const t=e[kt];return u(t,e[Tt](),null)}function da(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[ct]===!0}function ni(e,t="div"){const a=ge();return wt(()=>{a.value=ve(Te(e),t)}),a}function ft(e,t="div"){const a=ge(null);return wt(()=>{const n=Te(e);a.value=n==""||n==null?null:ve(n,t)}),a}function Te(e){return A(A(e))}function te(...e){return e.includes(Object)||e.push(Object),e}var W=(e,t)=>{const a=e.__vccOpts||e;for(const[n,i]of t)a[n]=i;return a};const ii=G({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var y;const a=_({}),n=new ResizeObserver(l),i=_(null);It(()=>{const v=i.value;v!=null&&n.observe(v)});let s=!0,r=_((y=i.value)==null?void 0:y.getBoundingClientRect());function l(){s&&(s=!1,De(()=>{var v;r.value=(v=i.value)==null?void 0:v.getBoundingClientRect(),Object.values(a.value).filter(b=>b).forEach(b=>b.rect=b.element.getBoundingClientRect()),t("updateNodes",a.value),s=!0}))}$.on("fontsLoaded",l);const m={attributes:!1,childList:!0,subtree:!1};it(Vt,(v,b)=>{const N=new MutationObserver(()=>g(v));N.observe(b,m),a.value[v]={element:b,observer:N,rect:b.getBoundingClientRect()},l()}),it(Pt,v=>{var b;(b=a.value[v])==null||b.observer.disconnect(),a.value[v]=void 0,l()}),it(ga,a),it(fa,r);function g(v){const b=a.value[v];b!=null&&(b.rect=b.element.getBoundingClientRect(),t("updateNodes",a.value))}return(v,b)=>(f(),C(se,null,[Ce(v.$slots,"default",{},void 0,!0),c("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var ma=W(ii,[["__scopeId","data-v-2b1dc1bc"]]);const si=["onPointerdown"],ri={class:"modal-wrapper"},oi={class:"modal-container"},li={class:"modal-header"},Ai=I(" default header "),ui={class:"modal-body"},ci=I(" default body "),di={class:"modal-footer"},mi=c("div",{class:"modal-default-flex-grow"},null,-1),Pe=G({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:a}){const i=fe(e),s=R(()=>A(i.modelValue)||l.value);function r(){a("update:modelValue",!1)}const l=_(!1),m=_(null),g=R(()=>{var y,v;return(v=(y=m.value)==null?void 0:y.nodes)!=null?v:null});return t({isOpen:s,nodes:g}),(y,v)=>(f(),F(Ba,{to:"#modal-root"},[u(Kt,{name:"modal",onBeforeEnter:v[0]||(v[0]=b=>l.value=!0),onAfterLeave:v[1]||(v[1]=b=>l.value=!1)},{default:T(()=>[St(c("div",Ze({class:"modal-mask",onPointerdown:$e(r,["self"])},y.$attrs),[c("div",ri,[c("div",oi,[c("div",li,[Ce(y.$slots,"header",{shown:A(s)},()=>[Ai])]),c("div",ui,[u(ma,{ref_key:"contextRef",ref:m},{default:T(()=>[Ce(y.$slots,"body",{shown:A(s)},()=>[ci])]),_:3},512)]),c("div",di,[Ce(y.$slots,"footer",{shown:A(s)},()=>[c("div",{class:"modal-default-footer"},[mi,c("button",{class:"button modal-default-button",onClick:r}," Close ")])])])])])],16,si),[[Ea,e.modelValue]])]),_:3})]))}}),Qe=Symbol("ProxyState");function Rt(e,t={}){const a=t;let n=!1;function i(){return n||(Object.assign(a,e(a)),n=!0),a}return new Proxy(a,{get(s,r){if(r===Qe)return i();const l=i()[r];return l!=null&&typeof l=="object"&&Et in l?l[Et]:l},set(s,r,l){return i()[r]=l,!0},has(s,r){return r===Qe?!0:Reflect.has(i(),r)},ownKeys(){return Reflect.ownKeys(i())},getOwnPropertyDescriptor(s,r){return n||(Object.assign(a,e(a)),n=!0),Object.getOwnPropertyDescriptor(s,r)}})}var H=window.state=Qt({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const ht=Symbol("PersistentState"),Je=Symbol("DefaultValue"),dt=Symbol("StackTrace"),Ct=Symbol("Deleted"),Et=Symbol("NonPersistent"),ke=Symbol("SaveDataPath");function gi(){var e,t;return(t=(e=new Error().stack)==null?void 0:e.split(` +`).slice(3,5).map(a=>a.trim()).join(` +`))!=null?t:""}function Xt(e,t){var a;if(E.isNaN(t))throw H.hasNaN||(D.autosave=!1,H.hasNaN=!0,H.NaNPath=e[ke],H.NaNPersistent=e),console.error("Attempted to save NaN value to",(a=e[ke])==null?void 0:a.join("."),e),"Attempted to set NaN value. See above for details";e[ht].value=t}function fi(e){const t=he(e)?e:_(e);he(e)&&(e=e.value);const a=R({get(){return t.value},set(i){Xt(n,i)}});a[Je]=e;const n={get value(){return t.value},set value(i){Xt(n,i)},__v_isRef:!0,[ht]:t,[Je]:e,[dt]:gi(),[Ct]:!1,[Et]:a,[ke]:void 0};return le.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",n,` +Created at: +`+n[dt]):Ue[le[le.length-1]].add(n),n}function hi(e){return e!=null&&typeof e=="object"&&ht in e}$.on("addLayer",(e,t)=>{const a=[],n=(i,s=[])=>{let r=!1;return Object.keys(i).forEach(l=>{let m=i[l];if(m!=null&&typeof m=="object")if(Qe in m&&(m=m[Qe]),hi(m)){if(r=!0,m[Ct]){console.warn("Deleted persistent ref present in returned object. Ignoring...",m,` +Created at: +`+m[dt]);return}Ue[e.id].delete(m);const g=[e.id,...s,l];m[ke]!=null&&JSON.stringify(g)!==JSON.stringify(m[ke])&&console.error(`Persistent ref is being saved to \`${g.join(".")}\` when it's already present at \`${m[ke].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,m),m[ke]=g;const y=s.reduce((b,N)=>(N in b||(b[N]={}),b[N]),t),v=y[l];y[l]=m[ht],_a(y)?v!=null?y[l]=v:y[l]=m[Je]:v!=null?y[l].value=v:y[l].value=m[Je]}else!(m instanceof E)&&!he(m)&&!a.includes(m)&&(typeof m.type=="symbol"&&a.push(m),n(m,[...s,l])&&(bt(m)&&!bt(i)?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",Qe in i?i[Qe]:i,l):r=!0))}),r};n(e[Qe]),Ue[e.id].forEach(i=>{i[Ct]||console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,i,` +Created at: +`+i[dt])}),Ue[e.id].clear()});const Vt=Symbol("RegisterNode"),Pt=Symbol("UnregisterNode"),ga=Symbol("Nodes"),fa=Symbol("Bounds"),Z=Qt({});window.layers=Z;const Ue={},le=[];function ha(e,t){return Rt(()=>{const a={},n=a.emitter=Zt();if(a.on=n.on.bind(n),a.emit=n.emit.bind(n),a.nodes=_({}),a.id=e,le.push(e),Ue[e]=new Set,a.minimized=fi(!1),Object.assign(a,t.call(a)),le[le.length-1]==null||le[le.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen +Stack: ${le} +Trying to pop ${a.id}`;le.pop(),me(a,"color"),me(a,"display"),me(a,"classes"),me(a,"style"),me(a,"name"),Ke(a,"name",a.id),me(a,"minWidth"),Ke(a,"minWidth",600),me(a,"minimizable"),Ke(a,"minimizable",!0),me(a,"minimizedDisplay");const i=a.style;return a.style=R(()=>{var r,l;let s=A(a.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(r=A(i))!=null?r:"",(l=a.minimized)!=null&&l.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:s,flexBasis:s,margin:""}]}),a})}function va(e,t){if(console.info("Adding layer",e.id),Z[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,Z[e.id]);return}Ke(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),Z[e.id]=e,$.emit("addLayer",e,t.layers[e.id])}function vi(e){return Z[e]}function pa(e){console.info("Removing layer",e.id),$.emit("removeLayer",e),Z[e.id]=void 0}function pi(e){pa(e),va(e,D)}function yi(e){const t=_(!1);return{openModal:()=>t.value=!0,modal:K(()=>u(Pe,{modelValue:t.value,"onUpdate:modelValue":a=>t.value=a},{header:()=>u("h2",null,[A(e.name)]),body:A(e.display)}))}}$.on("update",function(t){Object.values(Z).forEach(a=>{a==null||a.emit("preUpdate",t)}),Object.values(Z).forEach(a=>{a==null||a.emit("update",t)}),Object.values(Z).forEach(a=>{a==null||a.emit("postUpdate",t)})});var bi=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Vt,UnregisterNodeInjectionKey:Pt,NodesInjectionKey:ga,BoundsInjectionKey:fa,layers:Z,persistentRefs:Ue,addingLayers:le,createLayer:ha,addLayer:va,getLayer:vi,removeLayer:pa,reloadLayer:pi,setupLayerModal:yi},Symbol.toStringTag,{value:"Module"}));const Ni=G({components:{Context:ma},props:{index:{type:Number,required:!0},display:{type:te(Object,String,Function),required:!0},minimizedDisplay:te(Object,String,Function),minimized:{type:Object,required:!0},name:{type:te(String),required:!0},color:te(String),minimizable:te(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:a,minimized:n,minimizedDisplay:i}=fe(e),s=ni(t),r=ft(i),l=R(()=>q.allowGoBack&&a.value>0&&!Te(n));function m(){D.tabs.splice(A(e.index),1/0)}function g(y){e.nodes.value=y}return{component:s,minimizedComponent:r,showGoBack:l,updateNodes:g,unref:A,goBack:m}}}),Ci={key:1};function Ei(e,t,a,n,i,s){const r=wa("Context");return f(),C("div",{class:"layer-container",style:Re({"--layer-color":e.unref(e.color)})},[e.showGoBack?(f(),C("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...l)=>e.goBack&&e.goBack(...l))},"\u274C")):M("",!0),e.unref(e.minimized)?(f(),C("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=l=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(f(),F(ue(e.minimizedComponent),{key:0})):(f(),C("div",Ci,P(e.unref(e.name)),1))])):(f(),C("div",{key:2,class:ee(["layer-tab",{showGoBack:e.showGoBack}])},[u(r,{onUpdateNodes:e.updateNodes},{default:T(()=>[(f(),F(ue(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(f(),C("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=l=>e.$emit("setMinimized",!0))}," \u25BC ")):M("",!0)],4)}var Bi=W(Ni,[["render",Ei],["__scopeId","data-v-a592996e"]]);const ya=e=>(Ee("data-v-4b4bda40"),e=e(),Be(),e),_i=ya(()=>c("h2",null,"Changelog",-1)),wi=ya(()=>c("details",{open:""},[c("summary",null,[I("v0.0 Initial Commit - "),c("time",null,"2021-09-04")]),I(" This is the first release :D "),c("ul",null,[c("li",{class:"feature"},"Did everything"),c("li",{class:"fix"},"Had some fun"),c("li",{class:"breaking"},"Removed everything"),c("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),Ii=G({__name:"Changelog",setup(e,{expose:t}){const a=_(!1);return t({open(){a.value=!0}}),(n,i)=>(f(),F(Pe,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=s=>a.value=s)},{header:T(()=>[_i]),body:T(()=>[wi]),_:1},8,["modelValue"]))}});var Si=W(Ii,[["__scopeId","data-v-4b4bda40"]]),Qi=G({props:{element:Object,display:{type:te(Object,String,Function),required:!0},style:te(Object,String,Array),classes:te(Object),direction:te(String),xoffset:te(String),yoffset:te(String),pinned:Object},setup(e){const{element:t,display:a,pinned:n}=fe(e),i=_(!1),s=R(()=>(Te(n)||i.value)&&r.value),r=ft(a),l=ge(ve(K(()=>{const y=Te(t);return y==null?"":ai(y)})));function m(y){const v=n;y.shiftKey&&v&&(v.value=!v.value,y.stopPropagation(),y.preventDefault())}const g=R(()=>Te(n)&&mt[V.theme].showPin);return{Direction:L,isHovered:i,isShown:s,comp:r,elementComp:l,unref:A,togglePinned:m,showPin:g}}});const Mi={key:0,class:"material-icons pinned"};function ki(e,t,a,n,i,s){return f(),C("div",{class:ee(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=r=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=r=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...r)=>e.togglePinned&&e.togglePinned(...r))},[Ce(e.$slots,"default",{},void 0,!0),e.elementComp?(f(),F(ue(e.elementComp),{key:0})):M("",!0),u(Kt,{name:"fade",css:!!e.comp},{default:T(()=>{var r;return[e.isShown?(f(),C("div",{key:0,class:ee(["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:Re([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(r=e.unref(e.style))!=null?r:{}])},[e.showPin?(f(),C("span",Mi,"push_pin")):M("",!0),e.comp?(f(),F(ue(e.comp),{key:1})):M("",!0)],6)):M("",!0)]}),_:1},8,["css"])],34)}var X=W(Qi,[["render",ki],["__scopeId","data-v-638848c0"]]);const qe=e=>(Ee("data-v-5d3cb6f4"),e=e(),Be(),e),Ti={class:"info-modal-header"},Di=["src","alt"],Ri={class:"info-modal-title"},Vi={key:0},Pi={key:0},qi={key:0},zi=qe(()=>c("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),xi=qe(()=>c("br",null,null,-1)),Gi=qe(()=>c("br",null,null,-1)),Fi=["href"],Ui=qe(()=>c("span",{class:"material-icons info-modal-discord"},"discord",-1)),Oi=qe(()=>c("div",null,[c("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link",target:"_blank"},[c("span",{class:"material-icons info-modal-discord"},"discord"),I(" The Paper Pilot Community ")])],-1)),Yi=qe(()=>c("div",null,[c("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link",target:"_blank"},[c("span",{class:"material-icons info-modal-discord"},"discord"),I(" The Modding Tree ")])],-1)),Ji=qe(()=>c("br",null,null,-1));var Li=G({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const a=e,{title:n,logo:i,author:s,discordName:r,discordLink:l,versionNumber:m,versionTitle:g}=q,y=fe(a),v=_(!1),b=R(()=>Mt(D.timePlayed)),N=R(()=>ve(K(()=>u(se,null,[$n.map(gt)]))));t({open(){v.value=!0}});function h(){var w;(w=A(y.changelog))==null||w.open()}return(w,Y)=>(f(),F(Pe,{modelValue:v.value,"onUpdate:modelValue":Y[0]||(Y[0]=j=>v.value=j)},{header:T(()=>[c("div",Ti,[A(i)?(f(),C("img",{key:0,class:"info-modal-logo",src:A(i),alt:A(n)},null,8,Di)):M("",!0),c("div",Ri,[c("h2",null,P(A(n)),1),c("h4",null,[I(" v"+P(A(m)),1),A(g)?(f(),C("span",Vi,": "+P(A(g)),1)):M("",!0)])])])]),body:T(({shown:j})=>[j?(f(),C("div",Pi,[A(s)?(f(),C("div",qi,"By "+P(A(s)),1)):M("",!0),zi,xi,c("div",{class:"link",onClick:h},"Changelog"),Gi,c("div",null,[A(l)?(f(),C("a",{key:0,href:A(l),class:"info-modal-discord-link",target:"_blank"},[Ui,I(" "+P(A(r)),1)],8,Fi)):M("",!0)]),Oi,Yi,Ji,c("div",null,"Time Played: "+P(A(b)),1),(f(),F(ue(A(N))))])):M("",!0)]),_:1},8,["modelValue"]))}});var Wi=W(Li,[["__scopeId","data-v-5d3cb6f4"]]);const Xi=c("h2",null,"Settings",-1);var ji=G({__name:"Options",setup(e,{expose:t}){const a=_(!1),n=_("behaviour");function i(l){return l==n.value}function s(l){n.value=l}t({isTab:i,setTab:s,save:ne,open(){a.value=!0}}),Object.keys(mt).map(l=>({label:Yn(l),value:l}));const r=R(()=>ve(K(()=>u(se,null,[ca.map(gt)]))));return fe(V),fe(D),R({get(){return D.devSpeed===0},set(l){D.devSpeed=l?0:null}}),K(()=>u("span",{class:"option-title"},[I("Unthrottled"),u("desc",null,[I("Allow the game to run as fast as possible. Not battery friendly.")])])),K(()=>u("span",{class:"option-title"},[I("Offline Production"),u(X,{display:"Save-specific",direction:L.Right},{default:()=>[I("*")]}),u("desc",null,[I("Simulate production that occurs while the game is closed.")])])),K(()=>u("span",{class:"option-title"},[I("Autosave"),u(X,{display:"Save-specific",direction:L.Right},{default:()=>[I("*")]}),u("desc",null,[I("Automatically save the game every second or when the game is closed.")])])),K(()=>u("span",{class:"option-title"},[I("Pause game"),u(X,{display:"Save-specific",direction:L.Right},{default:()=>[I("*")]}),u("desc",null,[I("Stop everything from moving.")])])),K(()=>u("span",{class:"option-title"},[I("Theme"),u("desc",null,[I("How the game looks.")])])),K(()=>u("span",{class:"option-title"},[I("Show TPS"),u("desc",null,[I("Show TPS meter at the bottom-left corner of the page.")])])),K(()=>u("span",{class:"option-title"},[I("Align modifier units"),u("desc",null,[I("Align numbers to the beginning of the unit in modifier view.")])])),(l,m)=>(f(),F(Pe,{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=g=>a.value=g)},{header:T(()=>[Xi]),body:T(()=>[(f(),F(ue(A(r))))]),_:1},8,["modelValue"]))}});const Hi={class:"field"},Ki={key:0,class:"field-title"},Zi=G({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var r;const a=e,n=ft(Ve(a,"title"),"span"),i=_((r=a.options.find(l=>l.value===a.modelValue))!=null?r:null);de(Ve(a,"modelValue"),l=>{var m;Te(i)!==l&&(i.value=(m=a.options.find(g=>g.value===l))!=null?m:null)});function s(l){t("update:modelValue",l.value)}return(l,m)=>(f(),C("div",Hi,[A(n)?(f(),C("span",Ki,[(f(),F(ue(A(n))))])):M("",!0),u(A(Va),{options:e.options,modelValue:i.value,"onUpdate:modelValue":[m[0]||(m[0]=g=>i.value=g),s],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const $i=["onSubmit"],es={class:"field"},ts={key:0,class:"field-title"},as=["placeholder"],ns=G({__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 a=e,n=ft(Ve(a,"title"),"span"),i=ge(null);It(()=>{var m;(m=i.value)==null||m.focus()});const s=R({get(){var m;return(m=A(a.modelValue))!=null?m:""},set(m){t("update:modelValue",m)}});function r(){t("submit")}function l(){a.submitOnBlur!==!1?t("submit"):t("cancel")}return(m,g)=>(f(),C("form",{onSubmit:$e(r,["prevent"])},[c("div",es,[A(n)?(f(),C("span",ts,[(f(),F(ue(A(n))))])):M("",!0),e.textArea?(f(),F(A(Pa),{key:1,modelValue:A(s),"onUpdate:modelValue":g[0]||(g[0]=y=>he(s)?s.value=y:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:l,ref_key:"field",ref:i},null,8,["modelValue","placeholder","maxHeight"])):St((f(),C("input",{key:2,type:"text","onUpdate:modelValue":g[1]||(g[1]=y=>he(s)?s.value=y:null),placeholder:e.placeholder,class:ee({fullWidth:!e.title}),onBlur:l,ref_key:"field",ref:i},null,42,as)),[[Ia,A(s)]])])],40,$i))}});var qt=W(ns,[["__scopeId","data-v-90bd4994"]]);const is={key:0},ss=["onClick","disabled"],rs={key:0},os=["onClick"],ls=G({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const n=fe(e),i=_(!1);de(i,l=>{t("confirmingChanged",l)});function s(){if(A(n.skipConfirm)){t("click");return}i.value&&t("click"),i.value=!i.value}function r(){i.value=!1}return(l,m)=>(f(),C("span",{class:ee(["container",{confirming:i.value}])},[i.value?(f(),C("span",is,"Are you sure?")):M("",!0),c("button",{onClick:$e(s,["stop"]),class:"button danger",disabled:e.disabled},[i.value?(f(),C("span",rs,"Yes")):Ce(l.$slots,"default",{key:1},void 0,!0)],8,ss),i.value?(f(),C("button",{key:1,class:"button",onClick:$e(r,["stop"])},"No",8,os)):M("",!0)],2))}});var As=W(ls,[["__scopeId","data-v-2f8ef34c"]]);const us=["onClick"],cs=G({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const a=_(!1),n=_(null);function i(){t("click"),n.value&&clearTimeout(n.value),a.value=!1,De(()=>{a.value=!0,n.value=setTimeout(()=>a.value=!1,500)})}return(s,r)=>(f(),C("button",{onClick:$e(i,["stop"]),class:ee(["feedback",{activated:a.value,left:e.left}])},[Ce(s.$slots,"default",{},void 0,!0)],10,us))}});var ds=W(cs,[["__scopeId","data-v-01a1b95c"]]);const pe=e=>(Ee("data-v-c3447434"),e=e(),Be(),e),ms=pe(()=>c("div",{class:"handle material-icons"},"drag_handle",-1)),gs={key:0,class:"actions"},fs=pe(()=>c("span",{class:"material-icons"},"content_paste",-1)),hs=pe(()=>c("span",{class:"material-icons"},"content_copy",-1)),vs=pe(()=>c("span",{class:"material-icons"},"edit",-1)),ps=pe(()=>c("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),ys={key:1,class:"actions"},bs=pe(()=>c("span",{class:"material-icons"},"check",-1)),Ns=pe(()=>c("span",{class:"material-icons"},"close",-1)),Cs={key:2,class:"details"},Es={class:"save-version"},Bs=pe(()=>c("br",null,null,-1)),_s={key:0},ws={key:3,class:"details"},Is={key:4,class:"details error"},Ss=pe(()=>c("br",null,null,-1)),Qs=G({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const a=e,{save:n}=fe(a),i=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),s=_(!1),r=_(!1),l=_("");de(s,()=>{var v;return l.value=(v=n.value.name)!=null?v:""});const m=R(()=>n.value!=null&&n.value.id===D.id),g=R(()=>{var v;return m.value?D.time:(v=n.value!=null&&n.value.time)!=null?v:0});function y(){t("editName",l.value),s.value=!1}return(v,b)=>(f(),C("div",{class:ee(["save",{active:A(m)}])},[ms,s.value?(f(),C("div",ys,[c("button",{onClick:y,class:"button"},[u(X,{display:"Save",direction:A(L).Left,class:"info"},{default:T(()=>[bs]),_:1},8,["direction"])]),c("button",{onClick:b[5]||(b[5]=N=>s.value=!s.value),class:"button"},[u(X,{display:"Cancel",direction:A(L).Left,class:"info"},{default:T(()=>[Ns]),_:1},8,["direction"])])])):(f(),C("div",gs,[A(n).error==null&&!r.value?(f(),F(ds,{key:0,onClick:b[0]||(b[0]=N=>t("export")),class:"button",left:""},{default:T(()=>[u(X,{display:"Export",direction:A(L).Left,class:"info"},{default:T(()=>[fs]),_:1},8,["direction"])]),_:1})):M("",!0),A(n).error==null&&!r.value?(f(),C("button",{key:1,onClick:b[1]||(b[1]=N=>t("duplicate")),class:"button"},[u(X,{display:"Duplicate",direction:A(L).Left,class:"info"},{default:T(()=>[hs]),_:1},8,["direction"])])):M("",!0),A(n).error==null&&!r.value?(f(),C("button",{key:2,onClick:b[2]||(b[2]=N=>s.value=!s.value),class:"button"},[u(X,{display:"Edit Name",direction:A(L).Left,class:"info"},{default:T(()=>[vs]),_:1},8,["direction"])])):M("",!0),u(As,{disabled:A(m),onClick:b[3]||(b[3]=N=>t("delete")),onConfirmingChanged:b[4]||(b[4]=N=>r.value=N)},{default:T(()=>[u(X,{display:"Delete",direction:A(L).Left,class:"info"},{default:T(()=>[ps]),_:1},8,["direction"])]),_:1},8,["disabled"])])),A(n).error==null&&!s.value?(f(),C("div",Cs,[c("button",{class:"button open",onClick:b[6]||(b[6]=N=>t("open"))},[c("h3",null,P(A(n).name),1)]),c("span",Es,"v"+P(A(n).modVersion),1),Bs,A(g)?(f(),C("div",_s,"Last played "+P(A(i).format(A(g))),1)):M("",!0)])):A(n).error==null&&s.value?(f(),C("div",ws,[u(qt,{modelValue:l.value,"onUpdate:modelValue":b[7]||(b[7]=N=>l.value=N),class:"editname",onSubmit:y},null,8,["modelValue"])])):(f(),C("div",Is,[I(" Error: Failed to load save with id "+P(A(n).id),1),Ss,I(P(A(n).error),1)]))],2))}});var Ms=W(Qs,[["__scopeId","data-v-c3447434"]]);const zt=e=>(Ee("data-v-5b5b1604"),e=e(),Be(),e),ks=zt(()=>c("h2",null,"Saves Manager",-1)),Ts={class:"modal-footer"},Ds={class:"field"},Rs=zt(()=>c("span",{class:"field-title"},"Create Save",-1)),Vs={class:"field-buttons"},Ps={class:"footer"},qs=zt(()=>c("div",{style:{"flex-grow":"1"}},null,-1)),zs=G({__name:"SavesManager",setup(e,{expose:t}){const a=_(!1),n=_(null);t({open(){a.value=!0}});const i=_(!1),s=_(""),r=_(null);de(s,p=>{p?De(()=>{try{if(p[0]!=="{")if(p[0]==="e")p=decodeURIComponent(escape(atob(p)));else if(p[0]==="\u1BE1")p=Ne.decompressFromUTF16(p);else{console.warn("Unable to determine preset encoding",p),i.value=!0;return}const B=JSON.parse(p);if(typeof B!="object"){i.value=!0;return}const z=ot();B.id=z,ne(B),s.value="",i.value=!1,V.saves.push(z)}catch{i.value=!0}}):i.value=!1});let l={},m=_(Object.keys(l).reduce((p,B)=>(p.push({label:B.split("/").slice(-1)[0].slice(0,-4),value:l[B]}),p),[]));const g=Qt({});function y(p){if(g[p]==null){let B=localStorage.getItem(p);if(B==null)g[p]={error:"Save doesn't exist in localStorage",id:p};else if(B==="dW5kZWZpbmVk")g[p]={error:"Save is undefined",id:p};else try{if(B[0]!=="{")if(B[0]==="e")B=decodeURIComponent(escape(atob(B)));else if(B[0]==="\u1BE1")B=Ne.decompressFromUTF16(B);else return console.warn("Unable to determine preset encoding",B),i.value=!0,g[p]={error:"Unable to determine preset encoding",id:p},g[p];g[p]={...JSON.parse(B),id:p}}catch(z){g[p]={error:z,id:p},console.warn(`SavesManager: Failed to load info about save with id ${p}: +${z} +${B}`)}}return g[p]}de(a,p=>{p&&Object.keys(g).forEach(B=>delete g[B])});const v=R(()=>V.saves.reduce((p,B)=>(p[B]=y(B),p),{}));function b(p){let B;switch(D.id===p?B=Aa(D):B=JSON.stringify(v.value[p]),q.exportEncoding){default:console.warn(`Unknown save encoding: ${q.exportEncoding}. Defaulting to lz`);case"lz":B=Ne.compressToUTF16(B);break;case"base64":B=btoa(unescape(encodeURIComponent(B)));break;case"plain":break}const z=document.createElement("textarea");z.value=B,document.body.appendChild(z),z.select(),z.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(z)}function N(p){D.id===p&&ne();const B={...v.value[p],id:ot()};ne(B),V.saves.push(B.id)}function h(p){V.saves=V.saves.filter(B=>B!==p),localStorage.removeItem(p),g[p]=void 0}function w(p){v.value[D.id].time=D.time,ne(),g[D.id]=void 0,Me(v.value[p]),g[p]=void 0}function Y(p){if(r.value=p,De(()=>{r.value=null}),p[0]!=="{")if(p[0]==="e")p=decodeURIComponent(escape(atob(p)));else if(p[0]==="\u1BE1")p=Ne.decompressFromUTF16(p);else{console.warn("Unable to determine preset encoding",p);return}const B=JSON.parse(p);B.id=ot(),ne(B),V.saves.push(B.id),w(B.id)}function j(p,B){const z=v.value[p];z!=null&&(z.name=B,D.id===p?(D.name=B,ne()):(ne(z),g[p]=void 0))}return(p,B)=>(f(),F(Pe,{modelValue:a.value,"onUpdate:modelValue":B[4]||(B[4]=z=>a.value=z),ref_key:"modal",ref:n},{header:T(()=>[ks]),body:T(({shown:z})=>[z?(f(),F(A(Ra),{key:0,list:A(V).saves,handle:".handle",itemKey:O=>O},{item:T(({element:O})=>[u(Ms,{save:A(v)[O],onOpen:U=>w(O),onExport:U=>b(O),onEditName:U=>j(O,U),onDuplicate:U=>N(O),onDelete:U=>h(O)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):M("",!0)]),footer:T(()=>[c("div",Ts,[u(qt,{modelValue:s.value,"onUpdate:modelValue":B[0]||(B[0]=z=>s.value=z),title:"Import Save",placeholder:"Paste your save here!",class:ee({importingFailed:i.value})},null,8,["modelValue","class"]),c("div",Ds,[Rs,c("div",Vs,[c("button",{class:"button",onClick:B[1]||(B[1]=z=>w(A(Fe)().id))},"New Game"),Object.keys(A(m)).length>0?(f(),F(Zi,{key:0,options:A(m),modelValue:r.value,"onUpdate:modelValue":B[2]||(B[2]=z=>Y(z)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):M("",!0)])]),c("div",Ps,[qs,c("button",{class:"button modal-default-button",onClick:B[3]||(B[3]=z=>a.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var ba=W(zs,[["__scopeId","data-v-5b5b1604"]]);const ce=e=>(Ee("data-v-269f7a94"),e=e(),Be(),e),xs=["src","alt"],Gs={key:1,class:"title"},Fs=ce(()=>c("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Us={class:"discord"},Os={class:"discord-links"},Ys={key:0},Js=["href"],Ls=ce(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Ws=ce(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Xs={href:"https://forums.moddingtree.com/",target:"_blank"},js=ce(()=>c("span",{class:"material-icons"},"forum",-1)),Hs=ce(()=>c("span",{class:"material-icons"},"info",-1)),Ks=ce(()=>c("span",{class:"material-icons"},"settings",-1)),Zs=ce(()=>c("span",{class:"material-icons"},"settings",-1)),$s=ce(()=>c("span",{class:"material-icons"},"info",-1)),er={href:"https://forums.moddingtree.com/",target:"_blank"},tr=ce(()=>c("span",{class:"material-icons"},"forum",-1)),ar={class:"discord"},nr={class:"discord-links"},ir={key:0},sr=["href"],rr=ce(()=>c("li",null,[c("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),or=ce(()=>c("li",null,[c("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),lr=G({__name:"Nav",setup(e){const t=_(null),a=_(null),n=_(null),i=_(null),{useHeader:s,banner:r,title:l,discordName:m,discordLink:g,versionNumber:y}=q;function v(){window.open(g,"mywindow")}return(b,N)=>(f(),C(se,null,[A(s)?(f(),C("div",Ze({key:0,class:"nav"},b.$attrs),[A(r)?(f(),C("img",{key:0,src:A(r),class:"banner",alt:A(l)},null,8,xs)):(f(),C("div",Gs,P(A(l)),1)),c("div",{onClick:N[0]||(N[0]=h=>{var w;return(w=i.value)==null?void 0:w.open()}),class:"version-container"},[u(X,{display:"Changelog",direction:A(L).Down,class:"version"},{default:T(()=>[c("span",null,"v"+P(A(y)),1)]),_:1},8,["direction"])]),Fs,c("div",Us,[c("span",{onClick:v,class:"material-icons"},"discord"),c("ul",Os,[A(g)?(f(),C("li",Ys,[c("a",{href:A(g),target:"_blank"},P(A(m)),9,Js)])):M("",!0),Ls,Ws])]),c("div",null,[c("a",Xs,[u(X,{display:"Forums",direction:A(L).Down,yoffset:"5px"},{default:T(()=>[js]),_:1},8,["direction"])])]),c("div",{onClick:N[1]||(N[1]=h=>{var w;return(w=t.value)==null?void 0:w.open()})},[u(X,{display:"Info",direction:A(L).Down,class:"info"},{default:T(()=>[Hs]),_:1},8,["direction"])]),c("div",{onClick:N[2]||(N[2]=h=>{var w;return(w=n.value)==null?void 0:w.open()})},[u(X,{display:"Settings",direction:A(L).Down,xoffset:"-66px"},{default:T(()=>[Ks]),_:1},8,["direction"])])],16)):(f(),C("div",Ze({key:1,class:"overlay-nav"},b.$attrs),[c("div",{onClick:N[3]||(N[3]=h=>{var w;return(w=i.value)==null?void 0:w.open()}),class:"version-container"},[u(X,{display:"Changelog",direction:A(L).Right,xoffset:"25%",class:"version"},{default:T(()=>[c("span",null,"v"+P(A(y)),1)]),_:1},8,["direction"])]),c("div",{onClick:N[4]||(N[4]=h=>{var w;return(w=n.value)==null?void 0:w.open()})},[u(X,{display:"Settings",direction:A(L).Right},{default:T(()=>[Zs]),_:1},8,["direction"])]),c("div",{onClick:N[5]||(N[5]=h=>{var w;return(w=t.value)==null?void 0:w.open()})},[u(X,{display:"Info",direction:A(L).Right},{default:T(()=>[$s]),_:1},8,["direction"])]),c("div",null,[c("a",er,[u(X,{display:"Forums",direction:A(L).Right,xoffset:"7px"},{default:T(()=>[tr]),_:1},8,["direction"])])]),c("div",ar,[c("span",{onClick:v,class:"material-icons"},"discord"),c("ul",nr,[A(g)?(f(),C("li",ir,[c("a",{href:A(g),target:"_blank"},P(A(m)),9,sr)])):M("",!0),rr,or])])],16)),u(Wi,{ref_key:"info",ref:t,changelog:i.value},null,8,["changelog"]),u(ba,{ref_key:"savesManager",ref:a},null,512),u(ji,{ref_key:"options",ref:n},null,512),u(Si,{ref_key:"changelog",ref:i},null,512)],64))}});var Na=W(lr,[["__scopeId","data-v-269f7a94"]]);const Ar={class:"inner-tab"},ur=G({__name:"Game",setup(e){const t=Ve(D,"tabs"),a=R(()=>Object.keys(Z)),n=q.useHeader;function i(s){const{display:r,minimized:l,name:m,color:g,minimizable:y,nodes:v,minimizedDisplay:b}=s;return{display:r,minimized:l,name:m,color:g,minimizable:y,nodes:v,minimizedDisplay:b}}return(s,r)=>(f(),C("div",{class:ee(["tabs-container",{useHeader:A(n)}])},[(f(!0),C(se,null,Sa(A(t),(l,m)=>{var g,y;return f(),C("div",{key:m,class:ee(["tab",A((g=A(Z)[l])==null?void 0:g.classes)]),style:Re(A((y=A(Z)[l])==null?void 0:y.style))},[m===0&&!A(n)?(f(),F(Na,{key:0})):M("",!0),c("div",Ar,[A(a).includes(l)?(f(),F(Bi,Ze({key:0},i(A(Z)[l]),{index:m,onSetMinimized:v=>A(Z)[l].minimized.value=v}),null,16,["index","onSetMinimized"])):(f(),F(ue(l),{key:1,index:m},null,8,["index"]))])],6)}),128))],2))}});var cr=W(ur,[["__scopeId","data-v-3e0f1aab"]]);const dr=G({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,a)=>(f(),C("div",{style:Re({width:e.width,height:e.height})},null,4))}});const mr=G({__name:"Node",props:{id:null},setup(e){const a=fe(e),n=Gt(Vt,()=>{}),i=Gt(Pt,()=>{}),s=ge(null),r=R(()=>s.value&&s.value.parentElement);return de([r,a.id],([l,m],[g,y])=>{g&&i(A(y)),l&&n(m,l)}),Qa(()=>i(A(a.id))),(l,m)=>(f(),C("div",{class:"node",ref_key:"node",ref:s},null,512))}});var gr=W(mr,[["__scopeId","data-v-a48cb382"]]),lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAAAXNSR0IArs4c6QAAAqhJREFUeJzt3LFqFFEYBeBdERGJCaKgESUWCsZCTG0dbSyCZTp9B0ufxMJu38EHsA5YCDaiKGihiCxYuhZp7x254e6O6/m+8me4M1k4/HCYzGQCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkGg69gOs2mLxbbHM86fTS8XfdKz7MuzU2A8AYxIAogkA0QSAaAJAtNNjP8Cy1FqX+zceRt1XOzTMBiCaABBNAIgmAEQTAKKtfQvU2rrsb10tzu9t/i7O9y5sF+dHP74U5w92D4rzZ9evNJ1fU7tv7e/VDg2zAYgmAEQTAKIJANEEgGhr3wL10tr21Ly4dbvLObXrq63Rp69N53PMBiCaABBNAIgmAEQTAKLFtUCff30vzl9+LF//ZKdPO1TT2vb0ui/HbACiCQDRBIBoAkA0ASBaXAt07dzF4rzWDk0ml4vTXi1N6zneBerLBiCaABBNAIgmAEQTAKL9t9+G6fW9oFo79Hz3TnHe692e2vWHb46K89cfXhXnvv8zzAYgmgAQTQCIJgBEEwCixTUE69IOaXtWwwYgmgAQTQCIJgBEEwCixTUHGxubxfl8/n6Udujpu7fF+eOzZ4rz2c95ca4dOhkbgGgCQDQBIJoAEE0AiKYh+IvWd4da1dqb2vmHW+eLc+3QydgARBMAogkA0QSAaAJAtLivQ7eqtSW1dmj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65XW5pWm1FtpVpa+99sltuV0e6++bC4/uDF8pNrb0+Xr1Od0ZqNE4BoAkA0ASCaABBNAIg2XQtUbWN2m1o71FJte9qtDofECUA0ASCaABBNAIgmAEQ7mCfCzu58G7qf3dfbUfftpbX/VpvniTCYiAAQTQCIJgBEEwCiDf9FXm171lKdQTr0+/bivUBwwASAaAJANAEgmgAQbbpZIPgfvdokJwDRBIBoAkA0ASCaABBtqrkM/qjOUM32NubR/1DfUm2HnABEEwCiCQDRBIBoAkC06d4OzXHo1UqNbr2cAEQTAKIJANEEgGgCQDQt0JGrtiijW5fqjNDoGScnANEEgGgCQDQBIJoAEE0LxJWqtjpmgWAgASCaABBNAIgmAETTAh2J0TM/vT5fZRYIBhIAogkA0QSAaAJANG+HnpT/UPs7/xEGHQgA0QSAaAJANAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAK7ILzj6vECOPLAcAAAAAElFTkSuQmCC";const xt=e=>(Ee("data-v-5cbd66ac"),e=e(),Be(),e),Nr=["ondragstart","ondragend","ondragenter","ondragleave","ondragover","ondrop"],Cr={key:0,class:"move-indicator"},Er=xt(()=>c("span",{class:"material-icons"},"straight",-1)),Br=[Er],_r={key:1,class:"move-indicator"},wr=xt(()=>c("span",{class:"material-icons"},"merge",-1)),Ir=[wr],Sr={key:2,class:"character-display"},Qr=["src"],Mr={key:3,class:"relevancy-display"},kr=["src"],Tr={key:4,class:"presence-display"},Dr=xt(()=>c("span",{class:"material-icons"}," extension ",-1)),Rr={key:5,class:"level-display"},Vr=["src"],Pr=["src"],qr=["src"],zr=["src"],xr=["src"],Gr=["src"];var Fr=G({__name:"CharacterSlot",props:{id:null,character:null,isSelected:{type:Boolean},isShop:{type:Boolean},isDragging:{type:Boolean},selected:null,shake:{type:Boolean}},emits:["dragstart","dragend","drop"],setup(e,{emit:t}){const a=e,n=_(!1),i=_(!1);de(n,r=>{t(r?"dragstart":"dragend")});const s=ge("");return wt(()=>{if(a.character==null||a.selected!=null||n.value){s.value="";return}const r=ve(Ae[a.character.type].abilityDescription);s.value=K(()=>u(se,null,[u("b",null,[Ae[a.character.type].nickname]),u("br",null,null),u(r,null,null)]))}),(r,l)=>(f(),F(X,{display:A(s),direction:A(L).Up},{default:T(()=>{var m,g,y;return[c("div",{class:ee(["character",{selected:e.isSelected,empty:e.character==null&&e.selected==null,dragging:n.value,isDragging:e.isDragging,draggingOver:i.value,shake:e.shake}]),draggable:"true",ondragstart:()=>n.value=!0,ondragend:()=>n.value=!1,ondragenter:()=>i.value=!0,ondragleave:()=>i.value=!1,ondragover:v=>{var b;e.selected!=null&&!e.isShop&&(((b=e.character)==null?void 0:b.type)!==e.selected.type||e.isSelected)&&v.preventDefault(),e.character!=null&&e.selected!=null&&!e.isSelected&&e.character.type===e.selected.type&&e.character.exp<6&&v.preventDefault()},ondrop:()=>{i.value=!1,t("drop")}},[e.selected!=null&&!e.isShop&&(((m=e.character)==null?void 0:m.type)!==e.selected.type||e.isSelected)&&n.value===!1?(f(),C("span",Cr,Br)):M("",!0),e.character!=null&&e.selected!=null&&!e.isSelected&&e.character.type===e.selected.type&&e.character.exp<6?(f(),C("span",_r,Ir)):M("",!0),e.character!=null?(f(),C("span",Sr,[c("img",{src:A(Ae)[e.character.type].display},null,8,Qr)])):M("",!0),e.character!=null?(f(),C("span",Mr,[c("img",{src:A(lt)},null,8,kr),c("span",null,P((g=e.character)==null?void 0:g.relevancy),1)])):M("",!0),e.character!=null?(f(),C("span",Tr,[Dr,c("span",null,P((y=e.character)==null?void 0:y.presence),1)])):M("",!0),e.character!=null?(f(),C("span",Rr,[e.character.exp===1?(f(),C("img",{key:0,src:A(fr)},null,8,Vr)):M("",!0),e.character.exp===2?(f(),C("img",{key:1,src:A(hr)},null,8,Pr)):M("",!0),e.character.exp===3?(f(),C("img",{key:2,src:A(vr)},null,8,qr)):M("",!0),e.character.exp===4?(f(),C("img",{key:3,src:A(pr)},null,8,zr)):M("",!0),e.character.exp===5?(f(),C("img",{key:4,src:A(yr)},null,8,xr)):M("",!0),e.character.exp===6?(f(),C("img",{key:5,src:A(br)},null,8,Gr)):M("",!0)])):M("",!0),e.id?(f(),F(gr,{key:6,id:e.id},null,8,["id"])):M("",!0)],10,Nr)]}),_:1},8,["display","direction"]))}});var xe=W(Fr,[["__scopeId","data-v-5cbd66ac"]]);const Ur={min:.25,max:.5},Or=[{s:0,cp:.329,e:.548},{s:.548,cp:.767,e:.876},{s:.876,cp:.985,e:1}],Yr=.01,Jr=.1,Lr=100,Wr=!0,Xr={x:0,y:0},jr=!1,Hr=[{type:"alpha",config:{alpha:{list:[{time:0,value:.74},{time:1,value:0}]}}},{type:"moveSpeed",config:{speed:{list:[{time:0,value:100},{time:1,value:0}]},minMult:1}},{type:"scale",config:{scale:{list:[{time:0,value:2},{time:1,value:.5}]},minMult:1}},{type:"color",config:{color:{list:[{time:0,value:"#FFC000"},{time:1,value:"#FFDF00"}]}}},{type:"rotation",config:{accel:0,minSpeed:0,maxSpeed:200,minStart:0,maxStart:360}},{type:"textureRandom",config:{textures:["/particle.png"]}},{type:"spawnShape",config:{type:"torus",data:{radius:100,x:0,y:0}}}];var Kr={lifetime:Ur,ease:Or,frequency:Yr,emitterLifetime:Jr,maxParticles:Lr,addAtBack:Wr,pos:Xr,emit:jr,behaviors:Hr};const tt=_(!1),Bt=_(""),jt=$t(),Ge=_(),Oe=_("");function Ye(e,...t){var a;!tt.value||(a=Ge.value)==null||a.emit(e,...t)}$.on("loadSettings",e=>{Ke(e,"server","https://Super-Auto-Coots.thepaperpilot.repl.co"),de(()=>e.server,t=>{Ge.value&&Ge.value.close(),Ge.value=za(t),Zr(Ge.value),tt.value=!1,Oe.value="",Ge.value.connect()},{immediate:!0}),Zn(K(()=>u(se,null,[u(qt,{title:"Server URL","onUpdate:modelValue":t=>e.server=t,modelValue:e.server},null),u("div",{style:"font-style: italic; font-size: small; margin-top: -10px;"},[tt.value?u("span",null,[I("Connected!")]):Oe.value?u("span",{style:"color: red"},[Oe.value]):u("span",null,[I("Connecting...")])])])))});function be(e){var n;const t=S.particles.boundingRect.value;if(!t)return;const a=(n=S.nodes.value[e])==null?void 0:n.rect;a&&S.particles.addEmitter(Kr).then(i=>{i.updateOwnerPos(a.x+a.width/2-t.x,a.y+a.height/2-t.y),i.playOnceAndDestroy()})}function Zr(e){e.on("connect",()=>{Oe.value="",tt.value=!0,S.reset.reset()}),e.on("connect_error",t=>{Oe.value=`${t.name}: ${t.message}`}),e.on("disconnect",(t,a)=>{var n;Oe.value=a instanceof Error?`${a.name}: ${a.message}`:(n=a==null?void 0:a.description)!=null?n:t,tt.value=!1}),e.on("server version",t=>{qa(q.versionNumber,t)||(jt.info("Server only accepts game versions in range: "+t),e.disconnect())}),e.on("info",t=>{jt.info(t),t==="Failed to start streaming"&&(S.findingMatch.value=!1)}),e.on("nickname",t=>{Bt.value=t}),e.on("newTurn",t=>{S.gold.value=10,S.turn.value++,S.battle.value=null,S.shop.value=t.map(a=>({type:a,relevancy:Ae[a].initialRelevancy,presence:Ae[a].initialPresence,exp:1})),setTimeout(()=>{t.forEach((a,n)=>be(`shop-char-${n}`))},0)}),e.on("reroll",t=>{S.gold.value--,S.shop.value=t.map(a=>({type:a,relevancy:Ae[a].initialRelevancy,presence:Ae[a].initialPresence,exp:1})),setTimeout(()=>{t.forEach((a,n)=>be(`shop-char-${n}`))},0)}),e.on("buy",(t,a,n)=>{S.team.value[a]=n,S.shop.value[t]=null,S.gold.value-=3,be(`shop-char-${t}`),be(`team-char-${a}`)}),e.on("move",(t,a)=>{const n=S.team.value[t];S.team.value[t]=S.team.value[a],S.team.value[a]=n,be(`team-char-${t}`),be(`team-char-${a}`)}),e.on("merge",(t,a,n)=>{S.team.value[t]=null,S.team.value[a]=n,be(`team-char-${t}`),be(`team-char-${a}`)}),e.on("stream",(t,a)=>{S.findingMatch.value=!1,S.battle.value={team:JSON.parse(JSON.stringify(S.team.value.filter(n=>n!=null))),streamers:[],enemyTeam:t.team,enemyStreamers:[],enemyNickname:t.nickname,enemyLives:t.lives,enemyWins:t.wins,enemyTurn:t.turn},S.outcome.value=a,S.showingOutcome.value=!1,S.playClicked.value=!1,setTimeout(S.prepareMove,1e3)})}var $r="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAYAAABS3GwHAAAAAXNSR0IArs4c6QAABTlJREFUeJzt3U2oVVUYBuBjFIQNopCopCAsxElhcANREsISMpCoQcOI0okOGhlUIwsSGgQ5EsuGDYp+yMCSIEmC7kCqUZkIhRUiQYN+oIFNHK7v1qp9PGef93mG392sve69vCz2x9prTyYAAAAAAAAAAAAAAAAAjMOqWU9g3l28eOHirOfwf6xatcb/eAVXzHoCMEsCQDQBIJoAEE0AiHblrCdwufV2dZbWPjytqVwWvb9vWtfICkA0ASCaABBNAIgmAERb2C5Q1f3o7eosnzk2yHxmZWnt9q7rq7/bonaHrABEEwCiCQDRBIBoAkC00TzZD7WHZ+xdnWlbWtfuGi2fe6dZH3t3yApANAEgmgAQTQCIJgBEm7u9QEPt4RnK+bOnm/UbbrvjMs9kZWOZ57yxAhBNAIgmAEQTAKIJANFmto+jt9tz9PjBZr3qclR7Wiq9449F1R3asW1Ps76oe34qVgCiCQDRBIBoAkA0ASDa3O0FqvR2Y6o3v6ruUO/4h3c/1aw/894HzfqFn3/qGr/XmhtvatZf2vnQVO87dlYAogkA0QSAaAJANAEg2mi6QL2qbs8rr+5t1k9+2O7ebH6w3UV58rUjzfq5b7f8i9kNb++G9c16Nc8N77/brFd7sRb11GgrANEEgGgCQDQBIJoAEG1h3wirlKcfd54a/ePxj5v1m7fd3zVO5devvmzWr73zrq5xqnnu3P1ys+6NMAgiAEQTAKIJANEEgGhz92Q/b+cFjf2bYmnf/OplBSCaABBNAIgmAEQTAKIt7Bth1anIldVP3NesV12Ut9/a3zX+rRvv6bq+8v2pL5r1Rx59vlnX7VmZFYBoAkA0ASCaABBNAIi2sF2g6htYf957S7O+uhin6g4N1dXpVd237GKFnfPTywpANAEgmgAQTQCIJgBEW9gu0LRtffFAs/7ps/umOn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/y+Gl+PqcDg0MAAGANQIAawQA1ggArDVfC9S6HVJan8+TpZ5H/V1VLUr2e75j/z3heJZ611jf2iFmAFgjALBGAGCNAMAaAYC15i1QtoVQ7YHaOZU1lLVDVe1Q3/StHWIGgDUCAGsEANYIAKwRAFgra4FarzlR7UH2nVZV5whld65l9W0tk6K+/+wp0121Q8wAsEYAYI0AwBoBgDUCAGu9Ox062ypk24bz6SeKqbVJrdshJXsKdNXOL2Uob5xnBoA1AgBrBADWCACsEQBY693p0H+N1sJx1d78vhK/qVytLcm2Rop6ntbtkPp+tu6/P3UdRZ4CLd4RtrbyXcl9t4y2huOt3zjPDABrBADWCACsEQBYIwCw1tmOMNVmvPPW8XD85ddeCccXDjwXjk8W3wvH9ywdCsf7Ru1c66rt+Vp8n+r7z5osnwrH2REGNEQAYI0AwBoBgDUCAGvpFqiq7VFWL3wbjmfbIUW1GVlVbUzVG+SV1m3P6fWz0z3YLV6/dTvEDABrBADWCACsEQBYIwCw1tm5QNn/9Y8WxPCC+IfGJiuTcFztbMpSO8jUjjN1zs+DO3eH41VrotQOO9Umyfueu1HyPFnMALBGAGCNAMAaAYA1AgBrvTsdWq2xUa3LUFS96V6trVpbicdV63Jm8aPUfXeMd4TjV25cTt03e/3RcuoyacwAsEYAYI0AwBoBgDUCAGslJ+yORnU7xVqfM6Nk76uur9YCqdOqW1Ntjzp1Oft7vXny7eke7F9ef/FION761GhmAFgjALBGAGCNAMAaAYC1shZIaX2OkJLdmZW9b7adyL7JvUq2Lenb78U7woCGCACsEQBYIwCwRgBgrXkLpGTbhizVHijZ+1a1K61VtSVd/V5Vz68wA8AaAYA1AgBrBADWCACsddYCKVVtSbY9yN63dTsxFF39XlWYAWCNAMAaAYA1AgBrBADW/gYSpT1chMivagAAAABJRU5ErkJggg==",oo="./assets/start stream.dd66a6ec.png";const lo=Symbol("Reset");function Ao(e){return Rt(()=>{const t=e();return t.id=la("reset-"),t.type=lo,t.reset=function(){var i;const a=s=>{if(s!=null&&typeof s=="object")if(Je in s){const r=s;r.value=r[Je]}else!(s instanceof E)&&!he(s)&&Object.values(s).forEach(r=>a(r))},n=A(t.thingsToReset);bt(n)?n.forEach(a):a(n),$.emit("reset",t),(i=t.onReset)==null||i.call(t)},me(t,"thingsToReset"),t})}const rt={};$.on("removeLayer",e=>{var t;(t=rt[e.id])==null||t.call(rt),rt[e.id]=void 0});ea.registerPlugin(Ga);Fa.registerPlugin("batch",Ua);var uo=G({props:{style:te(String,Object,Array),classes:te(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(e){const t=ge(null),a=new ResizeObserver(s),n=ge(null);It(()=>{var l,m;const r=n.value;r!=null&&(a.observe(r),t.value=new ea({resizeTo:r,backgroundAlpha:0}),(l=n.value)==null||l.appendChild(t.value.view),(m=e.onInit)==null||m.call(e,t.value)),s(),e.onHotReload&&De(e.onHotReload)}),Ma(()=>{var r;(r=t.value)==null||r.destroy()});let i=!0;function s(){i&&(i=!1,De(()=>{var r;n.value!=null&&((r=e.onContainerResized)==null||r.call(e,n.value.getBoundingClientRect())),i=!0}))}return $.on("fontsLoaded",s),{unref:A,resizeListener:n}}});function co(e,t,a,n,i,s){return f(),C("div",{ref:"resizeListener",class:ee(["resize-listener",e.unref(e.classes)]),style:Re(e.unref(e.style))},null,6)}var mo=W(uo,[["render",co],["__scopeId","data-v-0b99a6fc"]]);const go=Symbol("Particles");function fo(e){return Rt(()=>{var i,s;const t=(i=e==null?void 0:e())!=null?i:{};t.id=la("particles-"),t.type=go,t[kt]=mo,t.app=ge(null),t.addEmitter=r=>{const l=t;return l.app.value?Promise.resolve(new Ft(l.app.value.stage,r)):new Promise(m=>{a.push({resolve:m,config:r})})};let a=[];function n(r){const l=t;l.app.value=r,a.forEach(({resolve:m,config:g})=>m(new Ft(r.stage,g))),a=[]}return t.onContainerResized=(s=t.onContainerResized)==null?void 0:s.bind(t),t[Tt]=function(){const{id:r,style:l,classes:m,onContainerResized:g,onHotReload:y}=this;return{id:r,style:A(l),classes:m,onContainerResized:g,onHotReload:y,onInit:n}},t})}window.upgradeConfig=Oa;function je(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ka(e)}const Ae={coots:{nickname:"Coots",initialRelevancy:1,initialPresence:1,display:no,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},ludwig:{nickname:"Ludwig Coots",initialRelevancy:1,initialPresence:1,display:$r,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},qt:{nickname:"Qt Coots",initialRelevancy:1,initialPresence:1,display:io,abilityType:"LivestreamJoined",abilityDescription:K(()=>u(se,null,[u("i",null,[I("Livestream joined")]),I(": Set both stats to 100")])),performAbility(e){e.presence=100,e.relevancy=100}},maid:{nickname:"Maid Coots",initialRelevancy:1,initialPresence:1,display:eo,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},mail:{nickname:"Mogul Mail Coots",initialRelevancy:1,initialPresence:1,display:to,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},stanz:{nickname:"Stanz Coots",initialRelevancy:1,initialPresence:1,display:so,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},money:{nickname:"Mogul Money Coots",initialRelevancy:1,initialPresence:1,display:ao,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}},vespa:{nickname:"Vespa Coots",initialRelevancy:1,initialPresence:1,display:ro,abilityType:"LivestreamJoined",abilityDescription:"Do nothing",performAbility(){}}},S=ha("main",function(){const e=_(3),t=_(0),a=_(0),n=_(0),i=_([null,null,null]),s=_([]),r=_(null),l=_(null),m=_(!1),g=_(""),y=_(!1),v=_(!1),b=_(!1),N=_([]),h=_(null),w=R(()=>h.value==null?0:h.value.streamers.reduce((O,U)=>O+Math.max(0,U.presence)*Math.max(0,U.relevancy),0)*100),Y=R(()=>h.value==null?0:h.value.enemyStreamers.reduce((O,U)=>O+Math.max(0,U.presence)*Math.max(0,U.relevancy),0)*100),j=Ao(()=>({onReset(){e.value=3,t.value=0,a.value=0,n.value=0,i.value=[null,null,null],s.value=[],r.value=null,l.value=null,m.value=!1,h.value=null,g.value="",y.value=!1,b.value=!1,N.value=[]}})),p=_(!1);function B(){var O,U;if(h.value==null)throw"Preparing move while not in battle";if(N.value.length===0&&h.value.team.length===0&&h.value.enemyTeam.length===0){g.value==="Victory"?t.value++:g.value==="Defeat"&&e.value--,y.value=!0;return}if(N.value.length===0?N.value.push({action:"join"}):N.value.length>1&&(N.value=N.value.sort((x,J)=>x.action!==J.action?1:x.target!=null&&J.target!=null?J.target.relevancy-x.target.relevancy:0)),V.autoplay===!1&&b.value===!1)v.value=!0;else{v.value=!1;const x=N.value.shift();switch(x.action){case"join":if(((O=h.value.team.length)!=null?O:0)>0){const J=h.value.team.pop();h.value.streamers.push(J),Ae[J.type].abilityType==="LivestreamJoined"&&N.value.unshift({action:"LivestreamJoined",target:J})}if(((U=h.value.enemyTeam.length)!=null?U:0)>0){const J=h.value.enemyTeam.pop();h.value.enemyStreamers.push(J),Ae[J.type].abilityType==="LivestreamJoined"&&N.value.unshift({action:"LivestreamJoined",target:J})}break;default:if(x.target==null){console.error("Invalid action",x);break}Ae[x.target.type].performAbility(x.target);break}b.value=!1,setTimeout(B,V.fast?750:1250)}}const z=fo(()=>({fullscreen:!1,zIndex:10,boundingRect:_(null),onContainerResized(O){this.boundingRect.value=O}}));return{name:"Game",minimizable:!1,display:K(()=>{let O;if(h.value!=null){let U,x,J,ze;return u("div",{class:{["battle-container"]:!0,fast:V.fast}},[u("div",{class:"battle-controls"},[u("button",{class:"button",onClick:()=>{b.value=!0,B()}},[u("span",{class:"material-icons"},[I("play_arrow")]),u("span",null,[I("Play")])]),u("button",{class:{button:!0,active:V.autoplay},onClick:()=>{V.autoplay=!V.autoplay,v.value&&B()}},[u("span",{class:"material-icons"},[I("all_inclusive")]),u("span",null,[I("Autoplay")])]),u("button",{class:{button:!0,active:V.fast},onClick:()=>V.fast=!V.fast},[u("span",{class:"material-icons"},[I("fast_forward")]),u("span",null,[I("Fast")])])]),u("div",{class:"teams-container",style:y.value?"pointer-events: none;":""},[u("div",{class:"team-container"},[u("div",{class:"stream-container"},[u("div",{class:"stream-details",style:"left: 1vmin"},[u("span",{style:"margin-left: 0"},[Bt.value,I(" (YOU)")]),u("div",{class:"stats",style:"margin-left: 0"},[u("div",{class:"resource-box"},[u("img",{src:lt},null),u("span",null,[e.value])]),u("div",{class:"resource-box"},[u("span",{class:"material-icons"},[I("emoji_events")]),u("span",null,[t.value,I("/5")])])])]),u("div",{class:"view-counter",style:"right: 1vmin"},[Nt(w.value),I(" Views")]),u(Se,{class:"streamers-container"},{default:()=>[u(st,{name:"character-transition"},je(U=h.value.streamers.slice().reverse().map((re,_e)=>{var oe;return u(xe,{key:h.value.streamers.length-_e,character:re,shake:v.value&&((oe=N.value[0])==null?void 0:oe.target)===re},null)}))?U:{default:()=>[U]})]})]),u(Se,{class:"members-container",style:"margin-left: 0"},{default:()=>[u(st,{name:"character-transition"},je(x=h.value.team.map((re,_e)=>{var oe,Le,We,Xe;return u(xe,{character:re,key:_e,shake:v.value&&((oe=N.value[0])==null?void 0:oe.action)==="join"&&re===((Xe=h.value)==null?void 0:Xe.team[((We=(Le=h.value)==null?void 0:Le.team.length)!=null?We:0)-1])},null)}))?x:{default:()=>[x]})]})]),u("div",{class:"team-container"},[u("div",{class:"stream-container"},[u("div",{class:"stream-details",style:"right: 1vmin"},[u("span",{style:"margin-right: 0"},[h.value.enemyNickname]),u("div",{class:"stats",style:"margin-right: 0"},[u("div",{class:"resource-box"},[u("img",{src:lt},null),u("span",null,[h.value.enemyLives])]),u("div",{class:"resource-box"},[u("span",{class:"material-icons"},[I("emoji_events")]),u("span",null,[h.value.enemyWins,I("/5")])])])]),u("div",{class:"view-counter",style:"left: 1vmin"},[Nt(Y.value),I(" Views")]),u(Se,{class:"streamers-container"},{default:()=>[u(st,{name:"character-transition"},je(J=h.value.enemyStreamers.map((re,_e)=>{var oe;return u(xe,{key:_e,character:re,shake:v.value&&((oe=N.value[0])==null?void 0:oe.target)===re},null)}))?J:{default:()=>[J]})]})]),u(Se,{class:"members-container",style:"margin-right: 0"},{default:()=>[u(st,{name:"character-transition"},je(ze=h.value.enemyTeam.slice().reverse().map((re,_e)=>{var oe,Le,We,Xe;return u(xe,{character:re,key:h.value.enemyStreamers.length+_e,shake:v.value&&((oe=N.value[0])==null?void 0:oe.action)==="join"&&re===((Xe=h.value)==null?void 0:Xe.enemyTeam[((We=(Le=h.value)==null?void 0:Le.enemyTeam.length)!=null?We:0)-1])},null)}))?ze:{default:()=>[ze]})]})])]),y.value?u("div",{class:"outcome",onClick:()=>Ye("newTurn")},[u("span",null,[g.value]),u("span",{style:"font-size: 2vmin"},[I("Next Turn")])]):null])}return u("div",{class:"game-container",style:m.value?"pointer-events: none":"",onClick:()=>{r.value=null,l.value=null}},[u(Se,{style:"position: absolute; top: 10px; left: -5px"},{default:()=>[u("div",{class:"resource-box"},[u("span",{class:"material-icons"},[I("credit_card")]),n.value]),u("div",{class:"resource-box"},[u("img",{src:lt},null),e.value]),u("div",{class:"resource-box"},[u("span",{class:"material-icons"},[I("emoji_events")]),t.value,I("/5")])]}),u("h2",{style:"font-size: 3vmin"},[Bt.value]),u(Se,{style:"margin-top: 10vh"},je(O=new Array(3).fill(0).map((U,x)=>{var J,ze;return u(xe,{id:`team-char-${x}`,character:i.value[x],isSelected:r.value===x,selected:r.value==null?l.value==null||i.value[x]!=null&&((J=s.value[l.value])==null?void 0:J.type)!==((ze=i.value[x])==null?void 0:ze.type)||n.value<3?null:s.value[l.value]:i.value[r.value],isDragging:p.value,onClick:Ht(x),onDragstart:()=>{p.value=!0,r.value=x,l.value=null},onDragend:()=>{p.value=!1,r.value=null,l.value=null},onDrop:()=>Ht(x)()},null)}))?O:{default:()=>[O]}),u(Se,{style:"margin-top: 10vh"},{default:()=>[u("div",{class:"reroll",style:n.value>0?"":"color: var(--locked); cursor: not-allowed",onClick:()=>{n.value>0&&Ye("reroll")}},[u("span",{class:"material-icons",style:"font-size: 8vmin"},[I("casino")]),u("span",{style:"font-size: 2vmin"},[I("Roll")])]),s.value.map((U,x)=>u(xe,{id:`shop-char-${x}`,character:U==null?void 0:U,isSelected:l.value===x,isShop:!0,isDragging:p.value,onClick:J=>{U!=null&&(l.value=l.value===x?null:x,r.value=null,J.stopPropagation())},onDragstart:()=>{p.value=!0,r.value=null,l.value=x},onDragend:()=>{p.value=!1,r.value=null,l.value=null}},null))]}),u(dr,{height:"4vh"},null),m.value?u("div",{class:"waiting"},[I("Finding opposing team...")]):u("img",{class:"startStream",draggable:"false",onClick:()=>{Ye("stream"),m.value=!0},src:oo},null),gt(z)])}),lives:e,wins:t,turn:a,gold:n,team:i,shop:s,selectedCharacter:r,selectedShopItem:l,findingMatch:m,showingOutcome:y,outcome:g,reset:j,battle:h,playClicked:b,prepareMove:B,particles:z}});function Ht(e){return t=>{var a,n,i,s,r,l,m;S.selectedCharacter.value!=null&&S.selectedCharacter.value!==e?((a=S.team.value[S.selectedCharacter.value])==null?void 0:a.type)===((n=S.team.value[e])==null?void 0:n.type)&&((s=(i=S.team.value[S.selectedCharacter.value])==null?void 0:i.exp)!=null?s:0)<6&&((l=(r=S.team.value[e])==null?void 0:r.exp)!=null?l:0)<6?(Ye("merge",S.selectedCharacter.value,e),S.selectedCharacter.value=null):(Ye("move",S.selectedCharacter.value,e),S.selectedCharacter.value=null):S.selectedCharacter.value===e?S.selectedCharacter.value=null:S.selectedShopItem.value!==null?((S.team.value[e]==null||S.team.value[e].type===((m=S.shop.value[S.selectedShopItem.value])==null?void 0:m.type)&&S.team.value[e].exp<6)&&S.gold.value>=3&&Ye("buy",S.selectedShopItem.value,e),S.selectedShopItem.value=null):S.selectedCharacter.value=e,t==null||t.stopPropagation()}}const ho=e=>[S],Ca=R(()=>!1);function vo(e,t){}var po=Object.freeze(Object.defineProperty({__proto__:null,characters:Ae,main:S,getInitialLayers:ho,hasWon:Ca,fixOldSave:vo},Symbol.toStringTag,{value:"Module"}));const yo={class:"field"},bo=G({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=R(()=>{var s;return ve((s=A(a.title))!=null?s:"","span")}),i=R({get(){return!!a.modelValue},set(s){t("update:modelValue",s)}});return(s,r)=>(f(),C("label",yo,[St(c("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":r[0]||(r[0]=l=>he(i)?i.value=l:null)},null,512),[[Ta,A(i)]]),(f(),F(ue(A(n))))]))}});var _t=W(bo,[["__scopeId","data-v-11046116"]]);const nt=e=>(Ee("data-v-4a50ce42"),e=e(),Be(),e),No={class:"game-over-modal-header"},Co=["src","alt"],Eo={class:"game-over-modal-title"},Bo=nt(()=>c("h2",null,"Congratulations!",-1)),_o={key:0},wo=nt(()=>c("br",null,null,-1)),Io=nt(()=>c("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),So=nt(()=>c("br",null,null,-1)),Qo=["href"],Mo=nt(()=>c("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),ko=G({__name:"GameOverScreen",setup(e){const{title:t,logo:a,discordName:n,discordLink:i,versionNumber:s,versionTitle:r}=q,l=R(()=>Mt(D.timePlayed)),m=R(()=>Ca.value&&!D.keepGoing),g=Ve(D,"autosave");function y(){D.keepGoing=!0}function v(){Me(Fe())}return(b,N)=>(f(),F(Pe,{"model-value":A(m)},{header:T(()=>[c("div",No,[A(a)?(f(),C("img",{key:0,class:"game-over-modal-logo",src:A(a),alt:A(t)},null,8,Co)):M("",!0),c("div",Eo,[Bo,c("h4",null,"You've beaten "+P(A(t))+" v"+P(A(s))+": "+P(A(r)),1)])])]),body:T(({shown:h})=>[h?(f(),C("div",_o,[c("div",null,"It took you "+P(A(l))+" to beat the game.",1),wo,Io,So,c("div",null,[c("a",{href:A(i),class:"game-over-modal-discord-link"},[Mo,I(" "+P(A(n)),1)],8,Qo)]),u(_t,{title:"Autosave",modelValue:A(g),"onUpdate:modelValue":N[0]||(N[0]=w=>he(g)?g.value=w:null)},null,8,["modelValue"])])):M("",!0)]),footer:T(()=>[c("div",{class:"game-over-footer"},[c("button",{onClick:y,class:"button"},"Keep Going"),c("button",{onClick:v,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var To=W(ko,[["__scopeId","data-v-4a50ce42"]]);const vt=e=>(Ee("data-v-336bf74f"),e=e(),Be(),e),Do=vt(()=>c("div",{class:"nan-modal-header"},[c("h2",null,"NaN value detected!")],-1)),Ro={key:0},Vo=vt(()=>c("br",null,null,-1)),Po=["href"],qo=vt(()=>c("span",{class:"material-icons nan-modal-discord"},"discord",-1)),zo=vt(()=>c("br",null,null,-1)),xo={class:"nan-footer"},Go=G({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:a}=q,n=_(!0),i=_(!0),s=Ve(H,"hasNaN"),r=_(null);de(s,b=>{b?(n.value=D.autosave,i.value=D.devSpeed===0):(D.autosave=n.value,D.devSpeed=i.value?0:null)});const l=R(()=>{var b;return(b=H.NaNPath)==null?void 0:b.join(".")}),m=R(()=>H.NaNPersistent!=null?H.NaNPersistent.value:null);function g(){H.NaNPersistent!=null&&(H.NaNPersistent.value=new E(0),H.hasNaN=!1)}function y(){H.NaNPersistent&&(H.NaNPersistent.value=new E(1),H.hasNaN=!1)}function v(){H.NaNPersistent&&(H.NaNPersistent.value=new E(NaN),H.hasNaN=!1)}return(b,N)=>(f(),C(se,null,[u(Pe,Ze({modelValue:A(s),"onUpdate:modelValue":N[4]||(N[4]=h=>he(s)?s.value=h:null)},b.$attrs),{header:T(()=>[Do]),body:T(()=>[c("div",null,[I(' Attempted to assign "'+P(A(l))+'" to NaN',1),A(m)?(f(),C("span",Ro,P(" ")+"(previously "+P(A(oa)(A(m)))+")",1)):M("",!0),I(". Auto-saving has been "+P(n.value?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),Vo,c("div",null,[c("a",{href:A(a)||"https://discord.gg/WzejVAx",class:"nan-modal-discord-link"},[qo,I(" "+P(A(t)||"The Paper Pilot Community"),1)],8,Po)]),zo,u(_t,{title:"Autosave",modelValue:n.value,"onUpdate:modelValue":N[0]||(N[0]=h=>n.value=h)},null,8,["modelValue"]),A(q).enablePausing?(f(),F(_t,{key:0,title:"Pause game",modelValue:i.value,"onUpdate:modelValue":N[1]||(N[1]=h=>i.value=h)},null,8,["modelValue"])):M("",!0)]),footer:T(()=>[c("div",xo,[c("button",{onClick:N[2]||(N[2]=h=>{var w;return(w=r.value)==null?void 0:w.open()}),class:"button"},"Open Saves Manager"),c("button",{onClick:g,class:"button"},"Set to 0"),c("button",{onClick:y,class:"button"},"Set to 1"),A(m)&&A(E).neq(A(m),0)&&A(E).neq(A(m),1)?(f(),C("button",{key:0,onClick:N[3]||(N[3]=h=>s.value=!1),class:"button"}," Set to previous ")):M("",!0),c("button",{onClick:v,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),u(ba,{ref_key:"savesManager",ref:r},null,512)],64))}});var Fo=W(Go,[["__scopeId","data-v-336bf74f"]]);var Uo=G({__name:"App",setup(e){const t=q.useHeader,a=R(()=>mt[V.theme].variables);Ve(V,"showTPS");const n=R(()=>ve(K(()=>u(se,null,[ei.map(gt)]))));return(i,s)=>(f(),C(se,null,[c("div",{id:"modal-root",style:Re(A(a))},null,4),c("div",{class:ee(["app",{useHeader:A(t)}]),style:Re(A(a))},[A(t)?(f(),F(Na,{key:0})):M("",!0),u(cr),u(To),u(Fo),(f(),F(ue(A(n))))],6)],64))}});var Oo=W(Uo,[["__scopeId","data-v-ff7f8b84"]]);$.on("setupVue",e=>e.use(xa));function Yo(e={}){const{immediate:t=!1,onNeedRefresh:a,onOfflineReady:n,onRegistered:i,onRegisterError:s}=e;let r,l;const m=async(g=!0)=>{g&&(r==null||r.addEventListener("controlling",y=>{y.isUpdate&&window.location.reload()})),l&&l.waiting&&await Ja(l.waiting,{type:"SKIP_WAITING"})};if("serviceWorker"in navigator){r=new Ya("./sw.js",{scope:"./",type:"classic"}),r.addEventListener("activated",g=>{g.isUpdate||n==null||n()});{const g=()=>{a==null||a()};r.addEventListener("waiting",g),r.addEventListener("externalwaiting",g)}r.register({immediate:t}).then(g=>{l=g,i==null||i(g)}).catch(g=>{s==null||s(g)})}return m}function Jo(e={}){const{immediate:t=!0,onNeedRefresh:a,onOfflineReady:n,onRegistered:i,onRegisterError:s}=e,r=_(!1),l=_(!1);return{updateServiceWorker:Yo({immediate:t,onNeedRefresh(){r.value=!0,a==null||a()},onOfflineReady(){l.value=!0,n==null||n()},onRegistered:i,onRegisterError:s}),offlineReady:l,needRefresh:r}}document.title=q.title;window.projInfo=q;if(q.id==="")throw"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 Xn();const{globalBus:e}=await At(()=>Promise.resolve().then(function(){return Ln}),void 0),{startGameLoop:t}=await At(()=>import("./gameLoop.f1593b24.js"),["assets/gameLoop.f1593b24.js","assets/@fontsource.f66d05e7.css","assets/vue.f6263579.js","assets/earcut.b6f90e68.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/vuedraggable.c3acdf62.js","assets/sortablejs.cbae5b2d.js","assets/vue-next-select.0dc4e443.js","assets/vue-next-select.9e6f4164.css","assets/vue-textarea-autosize.35804eaf.js","assets/semver.83ff78cf.js","assets/lru-cache.9a21e90b.js","assets/yallist.fd762fe7.js","assets/socket.io-client.79ce0df5.js","assets/engine.io-client.58517560.js","assets/engine.io-parser.3f360695.js","assets/@socket.io.aec831e2.js","assets/socket.io-parser.544e37d1.js","assets/vue-toastification.b7cd620e.js","assets/vue-toastification.4b5f8ac8.css","assets/@pixi.1eac1889.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.e51cb87b.js","assets/querystring.23ae9a54.js","assets/workbox-window.8d14e8b7.js"]),a=window.vue=Da(Oo);e.emit("setupVue",a),a.mount("#app"),De(()=>{const n=$t(),{updateServiceWorker:i}=Jo({onNeedRefresh(){n.info("New content available, click here to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){i()}})},onOfflineReady(){n.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(s){s&&setInterval(()=>s.update(),60*60*1e3)}})}),t()});export{E as D,At as _,H as a,q as b,po as c,$ as g,jn as l,D as p,V as s}; diff --git a/assets/ismobilejs.5c6954b9.js b/assets/ismobilejs.5c6954b9.js new file mode 100644 index 0000000..e1313fc --- /dev/null +++ b/assets/ismobilejs.5c6954b9.js @@ -0,0 +1 @@ +var p=/iPhone/i,b=/iPod/i,h=/iPad/i,v=/\biOS-universal(?:.+)Mac\b/i,s=/\bAndroid(?:.+)Mobile\b/i,f=/Android/i,r=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,d=/Silk/i,t=/Windows Phone/i,u=/\bWindows(?:.+)ARM\b/i,c=/BlackBerry/i,m=/BB10/i,w=/Opera Mini/i,y=/\b(CriOS|Chrome)(?:.+)Mobile/i,A=/Mobile(?:.+)Firefox\b/i,P=function(i){return typeof i!="undefined"&&i.platform==="MacIntel"&&typeof i.maxTouchPoints=="number"&&i.maxTouchPoints>1&&typeof MSStream=="undefined"};function T(i){return function(n){return n.test(i)}}function g(i){var n={userAgent:"",platform:"",maxTouchPoints:0};!i&&typeof navigator!="undefined"?n={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof i=="string"?n.userAgent=i:i&&i.userAgent&&(n={userAgent:i.userAgent,platform:i.platform,maxTouchPoints:i.maxTouchPoints||0});var a=n.userAgent,l=a.split("[FBAN");typeof l[1]!="undefined"&&(a=l[0]),l=a.split("Twitter"),typeof l[1]!="undefined"&&(a=l[0]);var e=T(a),o={apple:{phone:e(p)&&!e(t),ipod:e(b),tablet:!e(p)&&(e(h)||P(n))&&!e(t),universal:e(v),device:(e(p)||e(b)||e(h)||e(v)||P(n))&&!e(t)},amazon:{phone:e(r),tablet:!e(r)&&e(d),device:e(r)||e(d)},android:{phone:!e(t)&&e(r)||!e(t)&&e(s),tablet:!e(t)&&!e(r)&&!e(s)&&(e(d)||e(f)),device:!e(t)&&(e(r)||e(d)||e(s)||e(f))||e(/\bokhttp\b/i)},windows:{phone:e(t),tablet:e(u),device:e(t)||e(u)},other:{blackberry:e(c),blackberry10:e(m),opera:e(w),firefox:e(A),chrome:e(y),device:e(c)||e(m)||e(w)||e(A)||e(y)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}export{g as i}; diff --git a/assets/lru-cache.9506e0ec.js b/assets/lru-cache.9506e0ec.js deleted file mode 100644 index 458f4f0..0000000 --- a/assets/lru-cache.9506e0ec.js +++ /dev/null @@ -1 +0,0 @@ -import{y as x}from"./yallist.fd762fe7.js";var C=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function G(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function N(n){if(n.__esModule)return n;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(n).forEach(function(e){var r=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return n[e]}})}),t}const O=x,u=Symbol("max"),l=Symbol("length"),g=Symbol("lengthCalculator"),b=Symbol("allowStale"),c=Symbol("maxAge"),o=Symbol("dispose"),A=Symbol("noDisposeOnSet"),i=Symbol("lruList"),a=Symbol("cache"),S=Symbol("updateAgeOnGet"),v=()=>1;class _{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[u]=t.max||1/0;const e=t.length||v;if(this[g]=typeof e!="function"?v:e,this[b]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[c]=t.maxAge||0,this[o]=t.dispose,this[A]=t.noDisposeOnSet||!1,this[S]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[u]=t||1/0,d(this)}get max(){return this[u]}set allowStale(t){this[b]=!!t}get allowStale(){return this[b]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[c]=t,d(this)}get maxAge(){return this[c]}set lengthCalculator(t){typeof t!="function"&&(t=v),t!==this[g]&&(this[g]=t,this[l]=0,this[i].forEach(e=>{e.length=this[g](e.value,e.key),this[l]+=e.length})),d(this)}get lengthCalculator(){return this[g]}get length(){return this[l]}get itemCount(){return this[i].length}rforEach(t,e){e=e||this;for(let r=this[i].tail;r!==null;){const s=r.prev;E(this,t,r,e),r=s}}forEach(t,e){e=e||this;for(let r=this[i].head;r!==null;){const s=r.next;E(this,t,r,e),r=s}}keys(){return this[i].toArray().map(t=>t.key)}values(){return this[i].toArray().map(t=>t.value)}reset(){this[o]&&this[i]&&this[i].length&&this[i].forEach(t=>this[o](t.key,t.value)),this[a]=new Map,this[i]=new O,this[l]=0}dump(){return this[i].map(t=>w(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[i]}set(t,e,r){if(r=r||this[c],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const s=r?Date.now():0,h=this[g](e,t);if(this[a].has(t)){if(h>this[u])return y(this,this[a].get(t)),!1;const m=this[a].get(t).value;return this[o]&&(this[A]||this[o](t,m.value)),m.now=s,m.maxAge=r,m.value=e,this[l]+=h-m.length,m.length=h,this.get(t),d(this),!0}const f=new T(t,e,h,s,r);return f.length>this[u]?(this[o]&&this[o](t,e),!1):(this[l]+=f.length,this[i].unshift(f),this[a].set(t,this[i].head),d(this),!0)}has(t){if(!this[a].has(t))return!1;const e=this[a].get(t).value;return!w(this,e)}get(t){return p(this,t,!0)}peek(t){return p(this,t,!1)}pop(){const t=this[i].tail;return t?(y(this,t),t.value):null}del(t){y(this,this[a].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const s=t[r],h=s.e||0;if(h===0)this.set(s.k,s.v);else{const f=h-e;f>0&&this.set(s.k,s.v,f)}}}prune(){this[a].forEach((t,e)=>p(this,e,!1))}}const p=(n,t,e)=>{const r=n[a].get(t);if(r){const s=r.value;if(w(n,s)){if(y(n,r),!n[b])return}else e&&(n[S]&&(r.value.now=Date.now()),n[i].unshiftNode(r));return s.value}},w=(n,t)=>{if(!t||!t.maxAge&&!n[c])return!1;const e=Date.now()-t.now;return t.maxAge?e>t.maxAge:n[c]&&e>n[c]},d=n=>{if(n[l]>n[u])for(let t=n[i].tail;n[l]>n[u]&&t!==null;){const e=t.prev;y(n,t),t=e}},y=(n,t)=>{if(t){const e=t.value;n[o]&&n[o](e.key,e.value),n[l]-=e.length,n[a].delete(e.key),n[i].removeNode(t)}};class T{constructor(t,e,r,s,h){this.key=t,this.value=e,this.length=r,this.now=s,this.maxAge=h||0}}const E=(n,t,e,r)=>{let s=e.value;w(n,s)&&(y(n,e),n[b]||(s=void 0)),s&&t.call(r,s.value,s.key,n)};var j=_;export{G as a,C as c,N as g,j as l}; diff --git a/assets/lru-cache.9a21e90b.js b/assets/lru-cache.9a21e90b.js new file mode 100644 index 0000000..ca7ddf2 --- /dev/null +++ b/assets/lru-cache.9a21e90b.js @@ -0,0 +1 @@ +import{y as p}from"./yallist.fd762fe7.js";const T=p,u=Symbol("max"),o=Symbol("length"),g=Symbol("lengthCalculator"),v=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),S=Symbol("noDisposeOnSet"),i=Symbol("lruList"),h=Symbol("cache"),d=Symbol("updateAgeOnGet"),A=()=>1;class L{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[u]=t.max||1/0;const e=t.length||A;if(this[g]=typeof e!="function"?A:e,this[v]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[c]=t.maxAge||0,this[l]=t.dispose,this[S]=t.noDisposeOnSet||!1,this[d]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[u]=t||1/0,w(this)}get max(){return this[u]}set allowStale(t){this[v]=!!t}get allowStale(){return this[v]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[c]=t,w(this)}get maxAge(){return this[c]}set lengthCalculator(t){typeof t!="function"&&(t=A),t!==this[g]&&(this[g]=t,this[o]=0,this[i].forEach(e=>{e.length=this[g](e.value,e.key),this[o]+=e.length})),w(this)}get lengthCalculator(){return this[g]}get length(){return this[o]}get itemCount(){return this[i].length}rforEach(t,e){e=e||this;for(let s=this[i].tail;s!==null;){const r=s.prev;E(this,t,s,e),s=r}}forEach(t,e){e=e||this;for(let s=this[i].head;s!==null;){const r=s.next;E(this,t,s,e),s=r}}keys(){return this[i].toArray().map(t=>t.key)}values(){return this[i].toArray().map(t=>t.value)}reset(){this[l]&&this[i]&&this[i].length&&this[i].forEach(t=>this[l](t.key,t.value)),this[h]=new Map,this[i]=new T,this[o]=0}dump(){return this[i].map(t=>b(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[i]}set(t,e,s){if(s=s||this[c],s&&typeof s!="number")throw new TypeError("maxAge must be a number");const r=s?Date.now():0,a=this[g](e,t);if(this[h].has(t)){if(a>this[u])return y(this,this[h].get(t)),!1;const f=this[h].get(t).value;return this[l]&&(this[S]||this[l](t,f.value)),f.now=r,f.maxAge=s,f.value=e,this[o]+=a-f.length,f.length=a,this.get(t),w(this),!0}const m=new O(t,e,a,r,s);return m.length>this[u]?(this[l]&&this[l](t,e),!1):(this[o]+=m.length,this[i].unshift(m),this[h].set(t,this[i].head),w(this),!0)}has(t){if(!this[h].has(t))return!1;const e=this[h].get(t).value;return!b(this,e)}get(t){return x(this,t,!0)}peek(t){return x(this,t,!1)}pop(){const t=this[i].tail;return t?(y(this,t),t.value):null}del(t){y(this,this[h].get(t))}load(t){this.reset();const e=Date.now();for(let s=t.length-1;s>=0;s--){const r=t[s],a=r.e||0;if(a===0)this.set(r.k,r.v);else{const m=a-e;m>0&&this.set(r.k,r.v,m)}}}prune(){this[h].forEach((t,e)=>x(this,e,!1))}}const x=(n,t,e)=>{const s=n[h].get(t);if(s){const r=s.value;if(b(n,r)){if(y(n,s),!n[v])return}else e&&(n[d]&&(s.value.now=Date.now()),n[i].unshiftNode(s));return r.value}},b=(n,t)=>{if(!t||!t.maxAge&&!n[c])return!1;const e=Date.now()-t.now;return t.maxAge?e>t.maxAge:n[c]&&e>n[c]},w=n=>{if(n[o]>n[u])for(let t=n[i].tail;n[o]>n[u]&&t!==null;){const e=t.prev;y(n,t),t=e}},y=(n,t)=>{if(t){const e=t.value;n[l]&&n[l](e.key,e.value),n[o]-=e.length,n[h].delete(e.key),n[i].removeNode(t)}};class O{constructor(t,e,s,r,a){this.key=t,this.value=e,this.length=s,this.now=r,this.maxAge=a||0}}const E=(n,t,e,s)=>{let r=e.value;b(n,r)&&(y(n,e),n[v]||(r=void 0)),r&&t.call(s,r.value,r.key,n)};var k=L;export{k as l}; diff --git a/assets/querystring.23ae9a54.js b/assets/querystring.23ae9a54.js new file mode 100644 index 0000000..a57af59 --- /dev/null +++ b/assets/querystring.23ae9a54.js @@ -0,0 +1 @@ +var d={};function C(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var I=function(e,r,t,a){r=r||"&",t=t||"=";var n={};if(typeof e!="string"||e.length===0)return n;var f=/\+/g;e=e.split(r);var i=1e3;a&&typeof a.maxKeys=="number"&&(i=a.maxKeys);var l=e.length;i>0&&l>i&&(l=i);for(var p=0;p=0?(m=c.substr(0,s),g=c.substr(s+1)):(m=c,g=""),o=decodeURIComponent(m),y=decodeURIComponent(g),C(n,o)?Array.isArray(n[o])?n[o].push(y):n[o]=[n[o],y]:n[o]=y}return n},u=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},R=function(e,r,t,a){return r=r||"&",t=t||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(n){var f=encodeURIComponent(u(n))+t;return Array.isArray(e[n])?e[n].map(function(i){return f+encodeURIComponent(u(i))}).join(r):f+encodeURIComponent(u(e[n]))}).join(r):a?encodeURIComponent(u(a))+t+encodeURIComponent(u(e)):""};d.decode=d.parse=I;d.encode=d.stringify=R;export{d as q}; diff --git a/assets/semver.d101e2be.js b/assets/semver.83ff78cf.js similarity index 99% rename from assets/semver.d101e2be.js rename to assets/semver.83ff78cf.js index 0bd921c..2687742 100644 --- a/assets/semver.d101e2be.js +++ b/assets/semver.83ff78cf.js @@ -1 +1 @@ -import{l as z}from"./lru-cache.9506e0ec.js";const M=["includePrerelease","loose","rtl"],Z=r=>r?typeof r!="object"?{loose:!0}:M.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};var G=Z,A={exports:{}};const K="2.0.0",J=256,Q=Number.MAX_SAFE_INTEGER||9007199254740991,W=16;var V={SEMVER_SPEC_VERSION:K,MAX_LENGTH:J,MAX_SAFE_INTEGER:Q,MAX_SAFE_COMPONENT_LENGTH:W};const ee=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var P=ee;(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t}=V,n=P;e=r.exports={};const E=e.re=[],s=e.src=[],i=e.t={};let o=0;const a=(l,$,h)=>{const N=o++;n(l,N,$),i[l]=N,s[N]=$,E[N]=new RegExp($,h?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION",`(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})`),a("MAINVERSIONLOOSE",`(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})`),a("PRERELEASEIDENTIFIER",`(?:${s[i.NUMERICIDENTIFIER]}|${s[i.NONNUMERICIDENTIFIER]})`),a("PRERELEASEIDENTIFIERLOOSE",`(?:${s[i.NUMERICIDENTIFIERLOOSE]}|${s[i.NONNUMERICIDENTIFIER]})`),a("PRERELEASE",`(?:-(${s[i.PRERELEASEIDENTIFIER]}(?:\\.${s[i.PRERELEASEIDENTIFIER]})*))`),a("PRERELEASELOOSE",`(?:-?(${s[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[i.PRERELEASEIDENTIFIERLOOSE]})*))`),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD",`(?:\\+(${s[i.BUILDIDENTIFIER]}(?:\\.${s[i.BUILDIDENTIFIER]})*))`),a("FULLPLAIN",`v?${s[i.MAINVERSION]}${s[i.PRERELEASE]}?${s[i.BUILD]}?`),a("FULL",`^${s[i.FULLPLAIN]}$`),a("LOOSEPLAIN",`[v=\\s]*${s[i.MAINVERSIONLOOSE]}${s[i.PRERELEASELOOSE]}?${s[i.BUILD]}?`),a("LOOSE",`^${s[i.LOOSEPLAIN]}$`),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE",`${s[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),a("XRANGEIDENTIFIER",`${s[i.NUMERICIDENTIFIER]}|x|X|\\*`),a("XRANGEPLAIN",`[v=\\s]*(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:${s[i.PRERELEASE]})?${s[i.BUILD]}?)?)?`),a("XRANGEPLAINLOOSE",`[v=\\s]*(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:${s[i.PRERELEASELOOSE]})?${s[i.BUILD]}?)?)?`),a("XRANGE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAIN]}$`),a("XRANGELOOSE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAINLOOSE]}$`),a("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),a("COERCERTL",s[i.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM",`(\\s*)${s[i.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",a("TILDE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAIN]}$`),a("TILDELOOSE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAINLOOSE]}$`),a("LONECARET","(?:\\^)"),a("CARETTRIM",`(\\s*)${s[i.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",a("CARET",`^${s[i.LONECARET]}${s[i.XRANGEPLAIN]}$`),a("CARETLOOSE",`^${s[i.LONECARET]}${s[i.XRANGEPLAINLOOSE]}$`),a("COMPARATORLOOSE",`^${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]})$|^$`),a("COMPARATOR",`^${s[i.GTLT]}\\s*(${s[i.FULLPLAIN]})$|^$`),a("COMPARATORTRIM",`(\\s*)${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]}|${s[i.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE",`^\\s*(${s[i.XRANGEPLAIN]})\\s+-\\s+(${s[i.XRANGEPLAIN]})\\s*$`),a("HYPHENRANGELOOSE",`^\\s*(${s[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[i.XRANGEPLAINLOOSE]})\\s*$`),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(A,A.exports);const F=/^[0-9]+$/,q=(r,e)=>{const t=F.test(r),n=F.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:rq(e,r);var se={compareIdentifiers:q,rcompareIdentifiers:te};const S=P,{MAX_LENGTH:X,MAX_SAFE_INTEGER:d}=V,{re:y,t:g}=A.exports,re=G,{compareIdentifiers:p}=se;class f{constructor(e,t){if(t=re(t),e instanceof f){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>X)throw new TypeError(`version is longer than ${X} characters`);S("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?y[g.LOOSE]:y[g.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>d||this.major<0)throw new TypeError("Invalid major version");if(this.minor>d||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>d||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(E=>{if(/^[0-9]+$/.test(E)){const s=+E;if(s>=0&&s=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(p(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}var C=f;const U=C,ie=(r,e,t)=>new U(r,t).compare(new U(e,t));var O=ie;const ne=O,ae=(r,e,t)=>ne(r,e,t)===0;var Ee=ae;const oe=O,le=(r,e,t)=>oe(r,e,t)!==0;var ce=le;const he=O,$e=(r,e,t)=>he(r,e,t)>0;var Ie=$e;const ue=O,Re=(r,e,t)=>ue(r,e,t)>=0;var fe=Re;const Ne=O,pe=(r,e,t)=>Ne(r,e,t)<0;var Oe=pe;const Le=O,Te=(r,e,t)=>Le(r,e,t)<=0;var Ae=Te;const Se=Ee,de=ce,ve=Ie,Pe=fe,De=Oe,me=Ae,we=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Se(r,t,n);case"!=":return de(r,t,n);case">":return ve(r,t,n);case">=":return Pe(r,t,n);case"<":return De(r,t,n);case"<=":return me(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};var Ge=we;const L=Symbol("SemVer ANY");class v{static get ANY(){return L}constructor(e,t){if(t=Fe(t),e instanceof v){if(e.loose===!!t.loose)return e;e=e.value}m("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===L?this.value="":this.value=this.operator+this.semver.version,m("comp",this)}parse(e){const t=this.options.loose?j[b.COMPARATORLOOSE]:j[b.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new _(n[2],this.options.loose):this.semver=L}toString(){return this.value}test(e){if(m("Comparator.test",e,this.options.loose),this.semver===L||e===L)return!0;if(typeof e=="string")try{e=new _(e,this.options)}catch{return!1}return D(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof v))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new x(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new x(this.value,t).test(e.semver);const n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),E=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=D(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),a=D(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||E||s&&i||o||a}}var Ce=v;const Fe=G,{re:j,t:b}=A.exports,D=Ge,m=P,_=C,x=Y;class T{constructor(e,t){if(t=ye(t),e instanceof T)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new T(e.raw,t);if(e instanceof w)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const n=this.set[0];if(this.set=this.set.filter(E=>!k(E[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(const E of this.set)if(E.length===1&&_e(E[0])){this.set=[E];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,E=H.get(n);if(E)return E;const s=this.options.loose,i=s?R[I.HYPHENRANGELOOSE]:R[I.HYPHENRANGE];e=e.replace(i,Ze(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(R[I.COMPARATORTRIM],Ue),c("comparator trim",e),e=e.replace(R[I.TILDETRIM],je),e=e.replace(R[I.CARETTRIM],be),e=e.split(/\s+/).join(" ");let o=e.split(" ").map(h=>xe(h,this.options)).join(" ").split(/\s+/).map(h=>Me(h,this.options));s&&(o=o.filter(h=>(c("loose invalid filter",h,this.options),!!h.match(R[I.COMPARATORLOOSE])))),c("range list",o);const a=new Map,l=o.map(h=>new w(h,this.options));for(const h of l){if(k(h))return[h];a.set(h.value,h)}a.size>1&&a.has("")&&a.delete("");const $=[...a.values()];return H.set(n,$),$}intersects(e,t){if(!(e instanceof T))throw new TypeError("a Range is required");return this.set.some(n=>B(n,t)&&e.set.some(E=>B(E,t)&&n.every(s=>E.every(i=>s.intersects(i,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new ge(e,this.options)}catch{return!1}for(let t=0;tr.value==="<0.0.0-0",_e=r=>r.value==="",B=(r,e)=>{let t=!0;const n=r.slice();let E=n.pop();for(;t&&n.length;)t=n.every(s=>E.intersects(s,e)),E=n.pop();return t},xe=(r,e)=>(c("comp",r,e),r=Be(r,e),c("caret",r),r=He(r,e),c("tildes",r),r=qe(r,e),c("xrange",r),r=ze(r,e),c("stars",r),r),u=r=>!r||r.toLowerCase()==="x"||r==="*",He=(r,e)=>r.trim().split(/\s+/).map(t=>ke(t,e)).join(" "),ke=(r,e)=>{const t=e.loose?R[I.TILDELOOSE]:R[I.TILDE];return r.replace(t,(n,E,s,i,o)=>{c("tilde",r,n,E,s,i,o);let a;return u(E)?a="":u(s)?a=`>=${E}.0.0 <${+E+1}.0.0-0`:u(i)?a=`>=${E}.${s}.0 <${E}.${+s+1}.0-0`:o?(c("replaceTilde pr",o),a=`>=${E}.${s}.${i}-${o} <${E}.${+s+1}.0-0`):a=`>=${E}.${s}.${i} <${E}.${+s+1}.0-0`,c("tilde return",a),a})},Be=(r,e)=>r.trim().split(/\s+/).map(t=>Ve(t,e)).join(" "),Ve=(r,e)=>{c("caret",r,e);const t=e.loose?R[I.CARETLOOSE]:R[I.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(E,s,i,o,a)=>{c("caret",r,E,s,i,o,a);let l;return u(s)?l="":u(i)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:u(o)?s==="0"?l=`>=${s}.${i}.0${n} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${n} <${+s+1}.0.0-0`:a?(c("replaceCaret pr",a),s==="0"?i==="0"?l=`>=${s}.${i}.${o}-${a} <${s}.${i}.${+o+1}-0`:l=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${o}-${a} <${+s+1}.0.0-0`):(c("no pr"),s==="0"?i==="0"?l=`>=${s}.${i}.${o}${n} <${s}.${i}.${+o+1}-0`:l=`>=${s}.${i}.${o}${n} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${o} <${+s+1}.0.0-0`),c("caret return",l),l})},qe=(r,e)=>(c("replaceXRanges",r,e),r.split(/\s+/).map(t=>Ye(t,e)).join(" ")),Ye=(r,e)=>{r=r.trim();const t=e.loose?R[I.XRANGELOOSE]:R[I.XRANGE];return r.replace(t,(n,E,s,i,o,a)=>{c("xRange",r,n,E,s,i,o,a);const l=u(s),$=l||u(i),h=$||u(o),N=h;return E==="="&&N&&(E=""),a=e.includePrerelease?"-0":"",l?E===">"||E==="<"?n="<0.0.0-0":n="*":E&&N?($&&(i=0),o=0,E===">"?(E=">=",$?(s=+s+1,i=0,o=0):(i=+i+1,o=0)):E==="<="&&(E="<",$?s=+s+1:i=+i+1),E==="<"&&(a="-0"),n=`${E+s}.${i}.${o}${a}`):$?n=`>=${s}.0.0${a} <${+s+1}.0.0-0`:h&&(n=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`),c("xRange return",n),n})},ze=(r,e)=>(c("replaceStars",r,e),r.trim().replace(R[I.STAR],"")),Me=(r,e)=>(c("replaceGTE0",r,e),r.trim().replace(R[e.includePrerelease?I.GTE0PRE:I.GTE0],"")),Ze=r=>(e,t,n,E,s,i,o,a,l,$,h,N,We)=>(u(n)?t="":u(E)?t=`>=${n}.0.0${r?"-0":""}`:u(s)?t=`>=${n}.${E}.0${r?"-0":""}`:i?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,u(l)?a="":u($)?a=`<${+l+1}.0.0-0`:u(h)?a=`<${l}.${+$+1}.0-0`:N?a=`<=${l}.${$}.${h}-${N}`:r?a=`<${l}.${$}.${+h+1}-0`:a=`<=${a}`,`${t} ${a}`.trim()),Ke=(r,e,t)=>{for(let n=0;n0){const E=r[n].semver;if(E.major===e.major&&E.minor===e.minor&&E.patch===e.patch)return!0}return!1}return!0},Je=Y,Qe=(r,e,t)=>{try{e=new Je(e,t)}catch{return!1}return e.test(r)};var tt=Qe;export{tt as s}; +import{l as z}from"./lru-cache.9a21e90b.js";const M=["includePrerelease","loose","rtl"],Z=r=>r?typeof r!="object"?{loose:!0}:M.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};var G=Z,A={exports:{}};const K="2.0.0",J=256,Q=Number.MAX_SAFE_INTEGER||9007199254740991,W=16;var V={SEMVER_SPEC_VERSION:K,MAX_LENGTH:J,MAX_SAFE_INTEGER:Q,MAX_SAFE_COMPONENT_LENGTH:W};const ee=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var P=ee;(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t}=V,n=P;e=r.exports={};const E=e.re=[],s=e.src=[],i=e.t={};let o=0;const a=(l,$,h)=>{const N=o++;n(l,N,$),i[l]=N,s[N]=$,E[N]=new RegExp($,h?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION",`(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})`),a("MAINVERSIONLOOSE",`(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})`),a("PRERELEASEIDENTIFIER",`(?:${s[i.NUMERICIDENTIFIER]}|${s[i.NONNUMERICIDENTIFIER]})`),a("PRERELEASEIDENTIFIERLOOSE",`(?:${s[i.NUMERICIDENTIFIERLOOSE]}|${s[i.NONNUMERICIDENTIFIER]})`),a("PRERELEASE",`(?:-(${s[i.PRERELEASEIDENTIFIER]}(?:\\.${s[i.PRERELEASEIDENTIFIER]})*))`),a("PRERELEASELOOSE",`(?:-?(${s[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[i.PRERELEASEIDENTIFIERLOOSE]})*))`),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD",`(?:\\+(${s[i.BUILDIDENTIFIER]}(?:\\.${s[i.BUILDIDENTIFIER]})*))`),a("FULLPLAIN",`v?${s[i.MAINVERSION]}${s[i.PRERELEASE]}?${s[i.BUILD]}?`),a("FULL",`^${s[i.FULLPLAIN]}$`),a("LOOSEPLAIN",`[v=\\s]*${s[i.MAINVERSIONLOOSE]}${s[i.PRERELEASELOOSE]}?${s[i.BUILD]}?`),a("LOOSE",`^${s[i.LOOSEPLAIN]}$`),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE",`${s[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),a("XRANGEIDENTIFIER",`${s[i.NUMERICIDENTIFIER]}|x|X|\\*`),a("XRANGEPLAIN",`[v=\\s]*(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:${s[i.PRERELEASE]})?${s[i.BUILD]}?)?)?`),a("XRANGEPLAINLOOSE",`[v=\\s]*(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:${s[i.PRERELEASELOOSE]})?${s[i.BUILD]}?)?)?`),a("XRANGE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAIN]}$`),a("XRANGELOOSE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAINLOOSE]}$`),a("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),a("COERCERTL",s[i.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM",`(\\s*)${s[i.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",a("TILDE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAIN]}$`),a("TILDELOOSE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAINLOOSE]}$`),a("LONECARET","(?:\\^)"),a("CARETTRIM",`(\\s*)${s[i.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",a("CARET",`^${s[i.LONECARET]}${s[i.XRANGEPLAIN]}$`),a("CARETLOOSE",`^${s[i.LONECARET]}${s[i.XRANGEPLAINLOOSE]}$`),a("COMPARATORLOOSE",`^${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]})$|^$`),a("COMPARATOR",`^${s[i.GTLT]}\\s*(${s[i.FULLPLAIN]})$|^$`),a("COMPARATORTRIM",`(\\s*)${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]}|${s[i.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE",`^\\s*(${s[i.XRANGEPLAIN]})\\s+-\\s+(${s[i.XRANGEPLAIN]})\\s*$`),a("HYPHENRANGELOOSE",`^\\s*(${s[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[i.XRANGEPLAINLOOSE]})\\s*$`),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(A,A.exports);const F=/^[0-9]+$/,q=(r,e)=>{const t=F.test(r),n=F.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:rq(e,r);var se={compareIdentifiers:q,rcompareIdentifiers:te};const S=P,{MAX_LENGTH:X,MAX_SAFE_INTEGER:d}=V,{re:y,t:g}=A.exports,re=G,{compareIdentifiers:p}=se;class f{constructor(e,t){if(t=re(t),e instanceof f){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>X)throw new TypeError(`version is longer than ${X} characters`);S("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?y[g.LOOSE]:y[g.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>d||this.major<0)throw new TypeError("Invalid major version");if(this.minor>d||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>d||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(E=>{if(/^[0-9]+$/.test(E)){const s=+E;if(s>=0&&s=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(p(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}var C=f;const U=C,ie=(r,e,t)=>new U(r,t).compare(new U(e,t));var O=ie;const ne=O,ae=(r,e,t)=>ne(r,e,t)===0;var Ee=ae;const oe=O,le=(r,e,t)=>oe(r,e,t)!==0;var ce=le;const he=O,$e=(r,e,t)=>he(r,e,t)>0;var Ie=$e;const ue=O,Re=(r,e,t)=>ue(r,e,t)>=0;var fe=Re;const Ne=O,pe=(r,e,t)=>Ne(r,e,t)<0;var Oe=pe;const Le=O,Te=(r,e,t)=>Le(r,e,t)<=0;var Ae=Te;const Se=Ee,de=ce,ve=Ie,Pe=fe,De=Oe,me=Ae,we=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Se(r,t,n);case"!=":return de(r,t,n);case">":return ve(r,t,n);case">=":return Pe(r,t,n);case"<":return De(r,t,n);case"<=":return me(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};var Ge=we;const L=Symbol("SemVer ANY");class v{static get ANY(){return L}constructor(e,t){if(t=Fe(t),e instanceof v){if(e.loose===!!t.loose)return e;e=e.value}m("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===L?this.value="":this.value=this.operator+this.semver.version,m("comp",this)}parse(e){const t=this.options.loose?j[b.COMPARATORLOOSE]:j[b.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new _(n[2],this.options.loose):this.semver=L}toString(){return this.value}test(e){if(m("Comparator.test",e,this.options.loose),this.semver===L||e===L)return!0;if(typeof e=="string")try{e=new _(e,this.options)}catch{return!1}return D(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof v))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new x(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new x(this.value,t).test(e.semver);const n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),E=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=D(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),a=D(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||E||s&&i||o||a}}var Ce=v;const Fe=G,{re:j,t:b}=A.exports,D=Ge,m=P,_=C,x=Y;class T{constructor(e,t){if(t=ye(t),e instanceof T)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new T(e.raw,t);if(e instanceof w)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const n=this.set[0];if(this.set=this.set.filter(E=>!k(E[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(const E of this.set)if(E.length===1&&_e(E[0])){this.set=[E];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,E=H.get(n);if(E)return E;const s=this.options.loose,i=s?R[I.HYPHENRANGELOOSE]:R[I.HYPHENRANGE];e=e.replace(i,Ze(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(R[I.COMPARATORTRIM],Ue),c("comparator trim",e),e=e.replace(R[I.TILDETRIM],je),e=e.replace(R[I.CARETTRIM],be),e=e.split(/\s+/).join(" ");let o=e.split(" ").map(h=>xe(h,this.options)).join(" ").split(/\s+/).map(h=>Me(h,this.options));s&&(o=o.filter(h=>(c("loose invalid filter",h,this.options),!!h.match(R[I.COMPARATORLOOSE])))),c("range list",o);const a=new Map,l=o.map(h=>new w(h,this.options));for(const h of l){if(k(h))return[h];a.set(h.value,h)}a.size>1&&a.has("")&&a.delete("");const $=[...a.values()];return H.set(n,$),$}intersects(e,t){if(!(e instanceof T))throw new TypeError("a Range is required");return this.set.some(n=>B(n,t)&&e.set.some(E=>B(E,t)&&n.every(s=>E.every(i=>s.intersects(i,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new ge(e,this.options)}catch{return!1}for(let t=0;tr.value==="<0.0.0-0",_e=r=>r.value==="",B=(r,e)=>{let t=!0;const n=r.slice();let E=n.pop();for(;t&&n.length;)t=n.every(s=>E.intersects(s,e)),E=n.pop();return t},xe=(r,e)=>(c("comp",r,e),r=Be(r,e),c("caret",r),r=He(r,e),c("tildes",r),r=qe(r,e),c("xrange",r),r=ze(r,e),c("stars",r),r),u=r=>!r||r.toLowerCase()==="x"||r==="*",He=(r,e)=>r.trim().split(/\s+/).map(t=>ke(t,e)).join(" "),ke=(r,e)=>{const t=e.loose?R[I.TILDELOOSE]:R[I.TILDE];return r.replace(t,(n,E,s,i,o)=>{c("tilde",r,n,E,s,i,o);let a;return u(E)?a="":u(s)?a=`>=${E}.0.0 <${+E+1}.0.0-0`:u(i)?a=`>=${E}.${s}.0 <${E}.${+s+1}.0-0`:o?(c("replaceTilde pr",o),a=`>=${E}.${s}.${i}-${o} <${E}.${+s+1}.0-0`):a=`>=${E}.${s}.${i} <${E}.${+s+1}.0-0`,c("tilde return",a),a})},Be=(r,e)=>r.trim().split(/\s+/).map(t=>Ve(t,e)).join(" "),Ve=(r,e)=>{c("caret",r,e);const t=e.loose?R[I.CARETLOOSE]:R[I.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(E,s,i,o,a)=>{c("caret",r,E,s,i,o,a);let l;return u(s)?l="":u(i)?l=`>=${s}.0.0${n} <${+s+1}.0.0-0`:u(o)?s==="0"?l=`>=${s}.${i}.0${n} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.0${n} <${+s+1}.0.0-0`:a?(c("replaceCaret pr",a),s==="0"?i==="0"?l=`>=${s}.${i}.${o}-${a} <${s}.${i}.${+o+1}-0`:l=`>=${s}.${i}.${o}-${a} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${o}-${a} <${+s+1}.0.0-0`):(c("no pr"),s==="0"?i==="0"?l=`>=${s}.${i}.${o}${n} <${s}.${i}.${+o+1}-0`:l=`>=${s}.${i}.${o}${n} <${s}.${+i+1}.0-0`:l=`>=${s}.${i}.${o} <${+s+1}.0.0-0`),c("caret return",l),l})},qe=(r,e)=>(c("replaceXRanges",r,e),r.split(/\s+/).map(t=>Ye(t,e)).join(" ")),Ye=(r,e)=>{r=r.trim();const t=e.loose?R[I.XRANGELOOSE]:R[I.XRANGE];return r.replace(t,(n,E,s,i,o,a)=>{c("xRange",r,n,E,s,i,o,a);const l=u(s),$=l||u(i),h=$||u(o),N=h;return E==="="&&N&&(E=""),a=e.includePrerelease?"-0":"",l?E===">"||E==="<"?n="<0.0.0-0":n="*":E&&N?($&&(i=0),o=0,E===">"?(E=">=",$?(s=+s+1,i=0,o=0):(i=+i+1,o=0)):E==="<="&&(E="<",$?s=+s+1:i=+i+1),E==="<"&&(a="-0"),n=`${E+s}.${i}.${o}${a}`):$?n=`>=${s}.0.0${a} <${+s+1}.0.0-0`:h&&(n=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`),c("xRange return",n),n})},ze=(r,e)=>(c("replaceStars",r,e),r.trim().replace(R[I.STAR],"")),Me=(r,e)=>(c("replaceGTE0",r,e),r.trim().replace(R[e.includePrerelease?I.GTE0PRE:I.GTE0],"")),Ze=r=>(e,t,n,E,s,i,o,a,l,$,h,N,We)=>(u(n)?t="":u(E)?t=`>=${n}.0.0${r?"-0":""}`:u(s)?t=`>=${n}.${E}.0${r?"-0":""}`:i?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,u(l)?a="":u($)?a=`<${+l+1}.0.0-0`:u(h)?a=`<${l}.${+$+1}.0-0`:N?a=`<=${l}.${$}.${h}-${N}`:r?a=`<${l}.${$}.${+h+1}-0`:a=`<=${a}`,`${t} ${a}`.trim()),Ke=(r,e,t)=>{for(let n=0;n0){const E=r[n].semver;if(E.major===e.major&&E.minor===e.minor&&E.patch===e.patch)return!0}return!1}return!0},Je=Y,Qe=(r,e,t)=>{try{e=new Je(e,t)}catch{return!1}return e.test(r)};var tt=Qe;export{tt as s}; diff --git a/assets/sortablejs.80af5380.js b/assets/sortablejs.cbae5b2d.js similarity index 99% rename from assets/sortablejs.80af5380.js rename to assets/sortablejs.cbae5b2d.js index dde9cea..20ee9e5 100644 --- a/assets/sortablejs.80af5380.js +++ b/assets/sortablejs.cbae5b2d.js @@ -1,4 +1,4 @@ -import{g as Ue}from"./lru-cache.9506e0ec.js";/**! +import{g as Ue}from"./earcut.b6f90e68.js";/**! * Sortable 1.14.0 * @author RubaXa * @author owenm diff --git a/assets/url.e51cb87b.js b/assets/url.e51cb87b.js new file mode 100644 index 0000000..de128e0 --- /dev/null +++ b/assets/url.e51cb87b.js @@ -0,0 +1,2 @@ +import{c as st}from"./earcut.b6f90e68.js";import{q as ct}from"./querystring.23ae9a54.js";var ht={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */(function(s,a){(function(t){var g=a&&!a.nodeType&&a,p=s&&!s.nodeType&&s,d=typeof st=="object"&&st;(d.global===d||d.window===d||d.self===d)&&(t=d);var m,h=2147483647,x=36,y=1,j=26,G=38,b=700,f=72,T=128,k="-",q=/^xn--/,Z=/[^\x20-\x7E]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=x-y,u=Math.floor,v=String.fromCharCode,z;function O(e){throw RangeError(c[e])}function I(e,o){for(var n=e.length,i=[];n--;)i[n]=o(e[n]);return i}function S(e,o){var n=e.split("@"),i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(r,".");var l=e.split("."),w=I(l,o).join(".");return i+w}function K(e){for(var o=[],n=0,i=e.length,l,w;n=55296&&l<=56319&&n65535&&(o-=65536,n+=v(o>>>10&1023|55296),o=56320|o&1023),n+=v(o),n}).join("")}function _(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:x}function W(e,o){return e+22+75*(e<26)-((o!=0)<<5)}function X(e,o,n){var i=0;for(e=n?u(e/b):e>>1,e+=u(e/o);e>F*j>>1;i+=x)e=u(e/F);return u(i+(F+1)*e/(e+G))}function V(e){var o=[],n=e.length,i,l=0,w=T,C=f,M,P,D,$,A,N,U,B,J;for(M=e.lastIndexOf(k),M<0&&(M=0),P=0;P=128&&O("not-basic"),o.push(e.charCodeAt(P));for(D=M>0?M+1:0;D=n&&O("invalid-input"),U=_(e.charCodeAt(D++)),(U>=x||U>u((h-l)/A))&&O("overflow"),l+=U*A,B=N<=C?y:N>=C+j?j:N-C,!(Uu(h/J)&&O("overflow"),A*=J;i=o.length+1,C=X(l-$,i,$==0),u(l/i)>h-w&&O("overflow"),w+=u(l/i),l%=i,o.splice(l++,0,w)}return E(o)}function H(e){var o,n,i,l,w,C,M,P,D,$,A,N=[],U,B,J,tt;for(e=K(e),U=e.length,o=T,n=0,w=f,C=0;C=o&&Au((h-n)/B)&&O("overflow"),n+=(M-o)*B,o=M,C=0;Ch&&O("overflow"),A==o){for(P=n,D=x;$=D<=w?y:D>=w+j?j:D-w,!(P<$);D+=x)tt=P-$,J=x-$,N.push(v(W($+tt%J,0))),P=u(tt/J);N.push(v(W(P,0))),w=X(n,B,i==l),n=0,++i}++n,++o}return N.join("")}function ft(e){return S(e,function(o){return q.test(o)?V(o.slice(4).toLowerCase()):o})}function ut(e){return S(e,function(o){return Z.test(o)?"xn--"+H(o):o})}if(m={version:"1.3.2",ucs2:{decode:K,encode:E},decode:V,encode:H,toASCII:ut,toUnicode:ft},g&&p)if(s.exports==g)p.exports=m;else for(z in m)m.hasOwnProperty(z)&&(g[z]=m[z]);else t.punycode=m})(st)})(ht,ht.exports);var lt={isString:function(s){return typeof s=="string"},isObject:function(s){return typeof s=="object"&&s!==null},isNull:function(s){return s===null},isNullOrUndefined:function(s){return s==null}},pt=ht.exports,L=lt,Ft=Q,jt=Ot,It=qt;function R(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var mt=/^([a-z0-9.+-]+:)/i,xt=/:[0-9]*$/,gt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,dt=["<",">",'"',"`"," ","\r",` +`," "],yt=["{","}","|","\\","^","`"].concat(dt),et=["'"].concat(yt),nt=["%","/","?",";","#"].concat(et),at=["/","?","#"],bt=255,it=/^[+a-z0-9A-Z_-]{0,63}$/,vt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ct={javascript:!0,"javascript:":!0},rt={javascript:!0,"javascript:":!0},Y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ot=ct;function Q(s,a,t){if(s&&L.isObject(s)&&s instanceof R)return s;var g=new R;return g.parse(s,a,t),g}R.prototype.parse=function(s,a,t){if(!L.isString(s))throw new TypeError("Parameter 'url' must be a string, not "+typeof s);var g=s.indexOf("?"),p=g!==-1&&g127?u+="x":u+=F[v];if(!u.match(it)){var O=r.slice(0,f),I=r.slice(f+1),S=F.match(vt);S&&(O.push(S[1]),I.unshift(S[2])),I.length&&(h="/"+I.join(".")+h),this.hostname=O.join(".");break}}}this.hostname.length>bt?this.hostname="":this.hostname=this.hostname.toLowerCase(),Z||(this.hostname=pt.toASCII(this.hostname));var K=this.port?":"+this.port:"",E=this.hostname||"";this.host=E+K,this.href+=this.host,Z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),h[0]!=="/"&&(h="/"+h))}if(!Ct[j])for(var f=0,c=et.length;f0?t.host.split("@"):!1;u&&(t.auth=u.shift(),t.host=t.hostname=u.shift())}return t.search=s.search,t.query=s.query,(!L.isNull(t.pathname)||!L.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!r.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var v=r.slice(-1)[0],z=(t.host||s.host||r.length>1)&&(v==="."||v==="..")||v==="",O=0,I=r.length;I>=0;I--)v=r[I],v==="."?r.splice(I,1):v===".."?(r.splice(I,1),O++):O&&(r.splice(I,1),O--);if(!q&&!Z)for(;O--;O)r.unshift("..");q&&r[0]!==""&&(!r[0]||r[0].charAt(0)!=="/")&&r.unshift(""),z&&r.join("/").substr(-1)!=="/"&&r.push("");var S=r[0]===""||r[0]&&r[0].charAt(0)==="/";if(F){t.hostname=t.host=S?"":r.length?r.shift():"";var u=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;u&&(t.auth=u.shift(),t.host=t.hostname=u.shift())}return q=q||t.host&&r.length,q&&!S&&r.unshift(""),r.length?t.pathname=r.join("/"):(t.pathname=null,t.path=null),(!L.isNull(t.pathname)||!L.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=s.auth||t.auth,t.slashes=t.slashes||s.slashes,t.href=t.format(),t};R.prototype.parseHost=function(){var s=this.host,a=xt.exec(s);a&&(a=a[0],a!==":"&&(this.port=a.substr(1)),s=s.substr(0,s.length-a.length)),s&&(this.hostname=s)};export{It as f,Ft as p,jt as r}; diff --git a/assets/vue-next-select.8d9e0122.js b/assets/vue-next-select.0dc4e443.js similarity index 99% rename from assets/vue-next-select.8d9e0122.js rename to assets/vue-next-select.0dc4e443.js index 69fe173..d289ecc 100644 --- a/assets/vue-next-select.8d9e0122.js +++ b/assets/vue-next-select.0dc4e443.js @@ -1,3 +1,3 @@ -import"./vue.5bd9f35e.js";import{aE as b,a0 as B,aK as x,a1 as y,bt as $,bu as I,O as q,aJ as ye,aq as re,aa as Ne,aL as Y,$ as z,a8 as X,b6 as ge,_ as Ee,b8 as Le,bs as je,t as F,ay as $e,aD as ze,al as he,G as K,J,q as Ue,z as W,b2 as S,Z as h,af as qe,b1 as j,ar as _,aG as Pe}from"./@vue.4ce677c2.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.f6263579.js";import{aE as b,a0 as B,aK as x,a1 as y,bt as $,bu as I,O as q,aJ as ye,aq as re,aa as Ne,aL as Y,$ as z,a8 as X,b6 as ge,_ as Ee,b8 as Le,bs as je,t as F,ay as $e,aD as ze,al as he,G as K,J,q as Ue,z as W,b2 as S,Z as h,af as qe,b1 as j,ar as _,aG as Pe}from"./@vue.4ce677c2.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(q,null,ye(n.modelValue,function(u){return b(),B(q,{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,J(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)}}}},Ze=["id","aria-multiselectable","aria-busy","aria-disabled"],Re=["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(q,null,ye(n.modelValue,function(u,v){return b(),B(q,{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,J(u.label),1)]})],42,Re)):z("v-if",!0)],64)}),128))],16,Ze)},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})})},D=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}})},We=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=N(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=N(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}});Pe("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:Z,pointerForward:function(){Fe(),_(H)},pointerBackward:function(){Ve(),_(H)},pointerFirst:function(){var a,o=N(n.options.keys());try{for(o.s();!(a=o.n()).done;){var i=a.value;if(P(i))break}}catch(r){o.e(r)}finally{o.f()}_(H)},pointerLast:function(){var a,o=N(me(n.options.keys()).reverse());try{for(o.s();!(a=o.n()).done;){var i=a.value;if(P(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)?(R+=a.key.toLowerCase(),r=!0):a.code==="Space"&&(R+=" "),r){var M,p=N(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(R))===!0&&P(k))break}}catch(C){p.e(C)}finally{p.f()}clearTimeout(se),se=setTimeout(function(){R=""},500)}}},pointerSet:P,direction:fe}},components:{VInput:ae,VTags:le,VDropdown:oe}});ue.__VERSION__="2.10.4";var Ge=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],Ke={class:"vue-select-header"},Je={key:0,class:"vue-input"},Qe=["placeholder","autocomplete"],Ye=["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=Y("v-tags"),v=Y("v-input"),s=Y("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",Je,[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,Qe)]})])):z("v-if",!0),e.multiple&&e.taggable?(b(),B(q,{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,J(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,Ye)]})]}),_: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(q,{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,J(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-toastification.b272a510.js b/assets/vue-toastification.b7cd620e.js similarity index 99% rename from assets/vue-toastification.b272a510.js rename to assets/vue-toastification.b7cd620e.js index 2ff027e..92810ed 100644 --- a/assets/vue-toastification.b272a510.js +++ b/assets/vue-toastification.b7cd620e.js @@ -1 +1 @@ -import"./vue.5bd9f35e.js";import{aa as C,y as mt,C as pt,aE as o,a0 as u,I as x,G as b,_ as p,b6 as I,aq as V,aN as M,a7 as $,J as W,aL as y,$ as R,a1 as _,O as N,aV as vt,bu as gt,aK as Tt,bc as Ct,aJ as H,a8 as yt,af as bt,al as Ot,ar as _t,be as St}from"./@vue.4ce677c2.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"},Xt=_("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=[Xt];function Wt(t,e){return o(),u("svg",Gt,xt)}at.render=Wt;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(()=>[$(W(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},[$(W(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,X=(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)?X({eventBus:t},!1):X(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.f6263579.js";import{aa as C,y as mt,C as pt,aE as o,a0 as u,I as x,G as b,_ as p,b6 as I,aq as V,aN as M,a7 as $,J as W,aL as y,$ as R,a1 as _,O as N,aV as vt,bu as gt,aK as Tt,bc as Ct,aJ as H,a8 as yt,af as bt,al as Ot,ar as _t,be as St}from"./@vue.4ce677c2.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"},Xt=_("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=[Xt];function Wt(t,e){return o(),u("svg",Gt,xt)}at.render=Wt;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(()=>[$(W(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},[$(W(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,X=(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)?X({eventBus:t},!1):X(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.5bd9f35e.js b/assets/vue.5bd9f35e.js deleted file mode 100644 index c799fc0..0000000 --- a/assets/vue.5bd9f35e.js +++ /dev/null @@ -1 +0,0 @@ -import{g as f}from"./lru-cache.9506e0ec.js";import{r as i,i as m,N as r,c as u,e as p,a as S,E as h,R as v,b as R,d as C,f as y,g as w,h as g,j as b,k as T,l as E,m as x,n as k,o as M,p as D,q as P,s as V,t as A,u as B,v as H,w as N,x as F,y as U,z,A as I,B as K,C as O,D as j,F as _,G as q,H as W,I as L,J as G,K as $,L as J,M as Q,O as X,P as Y,S as Z,Q as ee,T as ae,U as se,V as oe,W as te,X as re,Y as ne,Z as ie,_ as ce,$ as le,a0 as de,a1 as fe,a2 as me,a3 as ue,a4 as pe,a5 as Se,a6 as he,a7 as ve,a8 as Re,a9 as Ce,aa as ye,ab as we,ac as ge,ad as be,ae as Te,af as Ee,ag as xe,ah as ke,ai as Me,aj as De,ak as Pe,al as Ve,am as Ae,an as Be,ao as He,ap as Ne,aq as Fe,ar as Ue,as as ze,at as Ie,au as Ke,av as Oe,aw as je,ax as _e,ay as qe,az as We,aA as Le,aB as Ge,aC as $e,aD as Je,aE as Qe,aF as Xe,aG as Ye,aH as Ze,aI as ea,aJ as aa,aK as sa,aL as oa,aM as ta,aN as ra,aO as na,aP as ia,aQ as ca,aR as la,aS as da,aT as fa,aU as ma,aV as ua,aW as pa,aX as Sa,aY as ha,aZ as va,a_ as Ra,a$ as Ca,b0 as ya,b1 as wa,b2 as ga,b3 as ba,b4 as Ta,b5 as Ea,b6 as xa,b7 as ka,b8 as Ma,b9 as Da,ba as Pa,bb as Va,bc as Aa,bd as Ba,be as Ha,bf as Na,bg as Fa,bh as Ua,bi as za,bj as Ia,bk as Ka,bl as Oa,bm as ja,bn as _a,bo as qa,bp as Wa,bq as La,br as Ga,bs as $a,bt as Ja,bu as Qa}from"./@vue.4ce677c2.js";const n=Object.create(null);function c(e,l){if(!m(e))if(e.nodeType)e=e.innerHTML;else return r;const a=e,s=n[a];if(s)return s;if(e[0]==="#"){const t=document.querySelector(e);e=t?t.innerHTML:""}const{code:d}=u(e,p({hoistStatic:!0,onError:void 0,onWarn:r},l)),o=new Function("Vue",d)(S);return o._rc=!0,n[a]=o}i(c);var Xa=Object.freeze(Object.defineProperty({__proto__:null,compile:c,EffectScope:h,ReactiveEffect:v,customRef:R,effect:C,effectScope:y,getCurrentScope:w,isProxy:g,isReactive:b,isReadonly:T,isRef:E,isShallow:x,markRaw:k,onScopeDispose:M,proxyRefs:D,reactive:P,readonly:V,ref:A,shallowReactive:B,shallowReadonly:H,shallowRef:N,stop:F,toRaw:U,toRef:z,toRefs:I,triggerRef:K,unref:O,camelize:j,capitalize:_,normalizeClass:q,normalizeProps:W,normalizeStyle:L,toDisplayString:G,toHandlerKey:$,BaseTransition:J,Comment:Q,Fragment:X,KeepAlive:Y,Static:Z,Suspense:ee,Teleport:ae,Text:se,callWithAsyncErrorHandling:oe,callWithErrorHandling:te,cloneVNode:re,compatUtils:ne,computed:ie,createBlock:ce,createCommentVNode:le,createElementBlock:de,createElementVNode:fe,createHydrationRenderer:me,createPropsRestProxy:ue,createRenderer:pe,createSlots:Se,createStaticVNode:he,createTextVNode:ve,createVNode:Re,defineAsyncComponent:Ce,defineComponent:ye,defineEmits:we,defineExpose:ge,defineProps:be,get devtools(){return Te},getCurrentInstance:Ee,getTransitionRawChildren:xe,guardReactiveProps:ke,h:Me,handleError:De,initCustomFormatter:Pe,inject:Ve,isMemoSame:Ae,isRuntimeOnly:Be,isVNode:He,mergeDefaults:Ne,mergeProps:Fe,nextTick:Ue,onActivated:ze,onBeforeMount:Ie,onBeforeUnmount:Ke,onBeforeUpdate:Oe,onDeactivated:je,onErrorCaptured:_e,onMounted:qe,onRenderTracked:We,onRenderTriggered:Le,onServerPrefetch:Ge,onUnmounted:$e,onUpdated:Je,openBlock:Qe,popScopeId:Xe,provide:Ye,pushScopeId:Ze,queuePostFlushCb:ea,registerRuntimeCompiler:i,renderList:aa,renderSlot:sa,resolveComponent:oa,resolveDirective:ta,resolveDynamicComponent:ra,resolveFilter:na,resolveTransitionHooks:ia,setBlockTracking:ca,setDevtoolsHook:la,setTransitionHooks:da,ssrContextKey:fa,ssrUtils:ma,toHandlers:ua,transformVNodeArgs:pa,useAttrs:Sa,useSSRContext:ha,useSlots:va,useTransitionState:Ra,version:Ca,warn:ya,watch:wa,watchEffect:ga,watchPostEffect:ba,watchSyncEffect:Ta,withAsyncContext:Ea,withCtx:xa,withDefaults:ka,withDirectives:Ma,withMemo:Da,withScopeId:Pa,Transition:Va,TransitionGroup:Aa,VueElement:Ba,createApp:Ha,createSSRApp:Na,defineCustomElement:Fa,defineSSRCustomElement:Ua,hydrate:za,initDirectivesForSSR:Ia,render:Ka,useCssModule:Oa,useCssVars:ja,vModelCheckbox:_a,vModelDynamic:qa,vModelRadio:Wa,vModelSelect:La,vModelText:Ga,vShow:$a,withKeys:Ja,withModifiers:Qa},Symbol.toStringTag,{value:"Module"})),es=f(Xa);export{es as r}; diff --git a/assets/vue.f6263579.js b/assets/vue.f6263579.js new file mode 100644 index 0000000..169b4fc --- /dev/null +++ b/assets/vue.f6263579.js @@ -0,0 +1 @@ +import{g as f}from"./earcut.b6f90e68.js";import{r as i,i as m,N as r,c as u,e as p,a as S,E as h,R as v,b as R,d as C,f as y,g as w,h as g,j as b,k as T,l as E,m as x,n as k,o as M,p as D,q as P,s as V,t as A,u as B,v as H,w as N,x as F,y as U,z,A as I,B as K,C as O,D as j,F as _,G as q,H as W,I as L,J as G,K as $,L as J,M as Q,O as X,P as Y,S as Z,Q as ee,T as ae,U as se,V as oe,W as te,X as re,Y as ne,Z as ie,_ as ce,$ as le,a0 as de,a1 as fe,a2 as me,a3 as ue,a4 as pe,a5 as Se,a6 as he,a7 as ve,a8 as Re,a9 as Ce,aa as ye,ab as we,ac as ge,ad as be,ae as Te,af as Ee,ag as xe,ah as ke,ai as Me,aj as De,ak as Pe,al as Ve,am as Ae,an as Be,ao as He,ap as Ne,aq as Fe,ar as Ue,as as ze,at as Ie,au as Ke,av as Oe,aw as je,ax as _e,ay as qe,az as We,aA as Le,aB as Ge,aC as $e,aD as Je,aE as Qe,aF as Xe,aG as Ye,aH as Ze,aI as ea,aJ as aa,aK as sa,aL as oa,aM as ta,aN as ra,aO as na,aP as ia,aQ as ca,aR as la,aS as da,aT as fa,aU as ma,aV as ua,aW as pa,aX as Sa,aY as ha,aZ as va,a_ as Ra,a$ as Ca,b0 as ya,b1 as wa,b2 as ga,b3 as ba,b4 as Ta,b5 as Ea,b6 as xa,b7 as ka,b8 as Ma,b9 as Da,ba as Pa,bb as Va,bc as Aa,bd as Ba,be as Ha,bf as Na,bg as Fa,bh as Ua,bi as za,bj as Ia,bk as Ka,bl as Oa,bm as ja,bn as _a,bo as qa,bp as Wa,bq as La,br as Ga,bs as $a,bt as Ja,bu as Qa}from"./@vue.4ce677c2.js";const n=Object.create(null);function c(e,l){if(!m(e))if(e.nodeType)e=e.innerHTML;else return r;const a=e,s=n[a];if(s)return s;if(e[0]==="#"){const t=document.querySelector(e);e=t?t.innerHTML:""}const{code:d}=u(e,p({hoistStatic:!0,onError:void 0,onWarn:r},l)),o=new Function("Vue",d)(S);return o._rc=!0,n[a]=o}i(c);var Xa=Object.freeze(Object.defineProperty({__proto__:null,compile:c,EffectScope:h,ReactiveEffect:v,customRef:R,effect:C,effectScope:y,getCurrentScope:w,isProxy:g,isReactive:b,isReadonly:T,isRef:E,isShallow:x,markRaw:k,onScopeDispose:M,proxyRefs:D,reactive:P,readonly:V,ref:A,shallowReactive:B,shallowReadonly:H,shallowRef:N,stop:F,toRaw:U,toRef:z,toRefs:I,triggerRef:K,unref:O,camelize:j,capitalize:_,normalizeClass:q,normalizeProps:W,normalizeStyle:L,toDisplayString:G,toHandlerKey:$,BaseTransition:J,Comment:Q,Fragment:X,KeepAlive:Y,Static:Z,Suspense:ee,Teleport:ae,Text:se,callWithAsyncErrorHandling:oe,callWithErrorHandling:te,cloneVNode:re,compatUtils:ne,computed:ie,createBlock:ce,createCommentVNode:le,createElementBlock:de,createElementVNode:fe,createHydrationRenderer:me,createPropsRestProxy:ue,createRenderer:pe,createSlots:Se,createStaticVNode:he,createTextVNode:ve,createVNode:Re,defineAsyncComponent:Ce,defineComponent:ye,defineEmits:we,defineExpose:ge,defineProps:be,get devtools(){return Te},getCurrentInstance:Ee,getTransitionRawChildren:xe,guardReactiveProps:ke,h:Me,handleError:De,initCustomFormatter:Pe,inject:Ve,isMemoSame:Ae,isRuntimeOnly:Be,isVNode:He,mergeDefaults:Ne,mergeProps:Fe,nextTick:Ue,onActivated:ze,onBeforeMount:Ie,onBeforeUnmount:Ke,onBeforeUpdate:Oe,onDeactivated:je,onErrorCaptured:_e,onMounted:qe,onRenderTracked:We,onRenderTriggered:Le,onServerPrefetch:Ge,onUnmounted:$e,onUpdated:Je,openBlock:Qe,popScopeId:Xe,provide:Ye,pushScopeId:Ze,queuePostFlushCb:ea,registerRuntimeCompiler:i,renderList:aa,renderSlot:sa,resolveComponent:oa,resolveDirective:ta,resolveDynamicComponent:ra,resolveFilter:na,resolveTransitionHooks:ia,setBlockTracking:ca,setDevtoolsHook:la,setTransitionHooks:da,ssrContextKey:fa,ssrUtils:ma,toHandlers:ua,transformVNodeArgs:pa,useAttrs:Sa,useSSRContext:ha,useSlots:va,useTransitionState:Ra,version:Ca,warn:ya,watch:wa,watchEffect:ga,watchPostEffect:ba,watchSyncEffect:Ta,withAsyncContext:Ea,withCtx:xa,withDefaults:ka,withDirectives:Ma,withMemo:Da,withScopeId:Pa,Transition:Va,TransitionGroup:Aa,VueElement:Ba,createApp:Ha,createSSRApp:Na,defineCustomElement:Fa,defineSSRCustomElement:Ua,hydrate:za,initDirectivesForSSR:Ia,render:Ka,useCssModule:Oa,useCssVars:ja,vModelCheckbox:_a,vModelDynamic:qa,vModelRadio:Wa,vModelSelect:La,vModelText:Ga,vShow:$a,withKeys:Ja,withModifiers:Qa},Symbol.toStringTag,{value:"Module"})),es=f(Xa);export{es as r}; diff --git a/assets/vuedraggable.832ed13e.js b/assets/vuedraggable.c3acdf62.js similarity index 63% rename from assets/vuedraggable.832ed13e.js rename to assets/vuedraggable.c3acdf62.js index bb5c446..5616a17 100644 --- a/assets/vuedraggable.832ed13e.js +++ b/assets/vuedraggable.c3acdf62.js @@ -1,4 +1,4 @@ -import{c as jt,a as Ct}from"./lru-cache.9506e0ec.js";import{r as Lt}from"./vue.5bd9f35e.js";import{r as Ft}from"./sortablejs.80af5380.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/particle.png b/particle.png new file mode 100644 index 0000000000000000000000000000000000000000..152e9af517ac9b231c964eb58dde17134a1ccd5e GIT binary patch literal 629 zcmV-*0*d{KP)`0@C7jPj3~vGW@f_7tE{5;s42sPjR5n59o*qW*t^0yl>4Dct+3-0{FAVS{$5b*d!l7;QcvtDjslCk|6X^f0403wS;4>9 zCV(gVN|cnRo3v9*allOgC%^$pSSkM>e71Ofi`kdMA^ke7aQvITyqEvn0{qSXKwj@p zTJgihLx|TD4bwH}tW>XY{mpKbSeYDTf} P00000NkvXXu0mjf#7HxO literal 0 HcmV?d00001 diff --git a/sw.js b/sw.js index 4dea520..1b8ee67 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,l)=>(i=new URL(i+".js",l).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=(l,n)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let o={};const t=e=>i(e,r),u={module:{uri:r},exports:o,require:t};s[r]=Promise.all(l.map((e=>u[e]||t(e)))).then((e=>(n(...e),o)))}}define(["./workbox-958fa2bd"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/@fontsource.f66d05e7.css",revision:null},{url:"assets/@socket.io.aec831e2.js",revision:null},{url:"assets/@vue.4ce677c2.js",revision:null},{url:"assets/engine.io-client.58517560.js",revision:null},{url:"assets/engine.io-parser.3f360695.js",revision:null},{url:"assets/gameLoop.ed7f4ea7.js",revision:null},{url:"assets/index.624ae6e9.js",revision:null},{url:"assets/index.7f7e174e.css",revision:null},{url:"assets/lru-cache.9506e0ec.js",revision:null},{url:"assets/lz-string.f2f3b7cf.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/semver.d101e2be.js",revision:null},{url:"assets/socket.io-client.79ce0df5.js",revision:null},{url:"assets/socket.io-parser.544e37d1.js",revision:null},{url:"assets/sortablejs.80af5380.js",revision:null},{url:"assets/vue-next-select.8d9e0122.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.4b5f8ac8.css",revision:null},{url:"assets/vue-toastification.b272a510.js",revision:null},{url:"assets/vue.5bd9f35e.js",revision:null},{url:"assets/vuedraggable.832ed13e.js",revision:null},{url:"assets/workbox-window.8d14e8b7.js",revision:null},{url:"assets/yallist.fd762fe7.js",revision:null},{url:"index.html",revision:"04421e7d384efe628d9e82f5bdc694a3"},{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:"f93609f5a1f787be307fe537f0c532f3"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let s,e={};const i=(i,l)=>(i=new URL(i+".js",l).href,e[i]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=i,s.onload=e,document.head.appendChild(s)}else s=i,importScripts(i),e()})).then((()=>{let s=e[i];if(!s)throw new Error(`Module ${i} didn’t register its module`);return s})));self.define=(l,n)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const t=s=>i(s,r),o={module:{uri:r},exports:u,require:t};e[r]=Promise.all(l.map((s=>o[s]||t(s)))).then((s=>(n(...s),u)))}}define(["./workbox-958fa2bd"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/@fontsource.f66d05e7.css",revision:null},{url:"assets/@pixi.1eac1889.js",revision:null},{url:"assets/@socket.io.aec831e2.js",revision:null},{url:"assets/@vue.4ce677c2.js",revision:null},{url:"assets/earcut.b6f90e68.js",revision:null},{url:"assets/engine.io-client.58517560.js",revision:null},{url:"assets/engine.io-parser.3f360695.js",revision:null},{url:"assets/eventemitter3.dc5195d7.js",revision:null},{url:"assets/gameLoop.f1593b24.js",revision:null},{url:"assets/index.34fd6db2.css",revision:null},{url:"assets/index.98888828.js",revision:null},{url:"assets/ismobilejs.5c6954b9.js",revision:null},{url:"assets/lru-cache.9a21e90b.js",revision:null},{url:"assets/lz-string.f2f3b7cf.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/querystring.23ae9a54.js",revision:null},{url:"assets/semver.83ff78cf.js",revision:null},{url:"assets/socket.io-client.79ce0df5.js",revision:null},{url:"assets/socket.io-parser.544e37d1.js",revision:null},{url:"assets/sortablejs.cbae5b2d.js",revision:null},{url:"assets/url.e51cb87b.js",revision:null},{url:"assets/vue-next-select.0dc4e443.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.4b5f8ac8.css",revision:null},{url:"assets/vue-toastification.b7cd620e.js",revision:null},{url:"assets/vue.f6263579.js",revision:null},{url:"assets/vuedraggable.c3acdf62.js",revision:null},{url:"assets/workbox-window.8d14e8b7.js",revision:null},{url:"assets/yallist.fd762fe7.js",revision:null},{url:"index.html",revision:"79d40e2219704d464ef264d3fa4364a4"},{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:"f93609f5a1f787be307fe537f0c532f3"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));