diff --git a/apple-touch-icon.png b/apple-touch-icon.png new file mode 100644 index 0000000..e570640 Binary files /dev/null and b/apple-touch-icon.png differ diff --git a/assets/@fontsource.f66d05e7.css b/assets/@fontsource.f66d05e7.css new file mode 100644 index 0000000..b26296d --- /dev/null +++ b/assets/@fontsource.f66d05e7.css @@ -0,0 +1 @@ +@font-face{font-family:Material Icons;font-style:normal;font-display:swap;font-weight:400;src:url(./material-icons-base-400-normal.cc0462d5.woff2) format("woff2"),url(./material-icons-base-400-normal.47b692f3.woff) format("woff")}.material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-cyrillic-ext-400-normal.eef02d41.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-cyrillic-400-normal.8c367f2f.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-greek-400-normal.53a8927b.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA+kAA4AAAAAIHQAAA9KAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHDYGYD9TVEFUSACBGBEICrFAqioLghAAATYCJAOCEAQgBYUEByAMBxvcGqOihpNW/BR/kWAb037ocxggUkRKVogUrLbREc8h/LaXsm0a7zAYHpLIaI+QZPbn+W3+ufAeaRMqStQTRcWYYGE2GIsUrECmY9nOtcOVur/9/12zDl1GcDiXd/98VxTutzm9qSQdo3uOSW0rzJgtoR0/8fR54dvOJYnQkRawwhWRv0FwMbcbdb1CSyvVHRN94e+XOXub/9+wl75pd6Fvhp2l1fERkqIU6t+/C3f//v6UvqmlKRKHi2UQppWi6CpCMp7BKYRCS4Q2qIzNnbTiDLyx7nOfgnMhIZUrvcL2X9/4kIAAgAEyIABLSskqAIFxhLkGJOXm0mqQ1BQ31oEEAABosAm2210fw85kLhwAX7JCAZDQaES+oOwD4EeHA0UADgBAgsum/nJTIS4k0Vqa4c8VgOkaJKUIUMcvAFgkbnuRoyunnTlbW2SdLOUVjQgA/tVSDzEBAWaQyOUk5ITmjuZeQCXEXFcJBPBLZOrBkaFgMNnkgsscTEHkd4R8USVaEdv7QfBJ8EO01m4HiIRckAJVoM5sfDsFHwWfnX0vCQ9m99eede8WBFzwAB54gwBESbgUd2Yy3cHV0p4NXuAGnsAyM07aFgGy2znzaXOWnC4bDoC1A8oqgBsAyCIgkVwE6P7YVSAqL+lITar72RaCIBqJHv+u9struEkHB4IQ0NVsD7bUieHG4/G9MTbbj+dP8Hx4CgyjqzoODG8qQV092F6B8XjevONrI4Me4DpVeSgYG9HoJF30an6ctAY7Z4EfK2+jxjapfLq+b6IIsn5BNDs7tFBevvcLOebcHw46rGAXRF169BysdShmSZIQduGApT8Vu2JmjNoFigMcRdXmIb6oXnRORzLdPARWFqk2wmOafMZrQskwdIdPKIjhTlnTZRETBKjR2VSAweynKV4uasZKJzDMJL8qoZCVK2YyrL7DxzAYTJimkjWl/unA5O3ExA/SjMJEc1b5Ce+0ctdQz8qeqQj9iSYfE9BFxnU8BQBOJ7rCUWCnSlU3O2g+zPj3zO5y1WFUny3bg93puSfsP4OE+DcUG4h7nUdHX8xTZnOtGFvPFdgklKaUQd0fVeJMHPh0KonmhVqkmlg1y/n9rEeifIQj0AO2OwGNoGXnUlaKgG2kJG8yJTTrl0Tpql7/hpUtLqJN8NDnsiZFTgXO+4N0Y9CTKjIwdLj3dFrV5KM5Oh0iA4r83ktC2i1QzYnzJcEG4Kxgq5eywvlibg6UTz4Bpcu1Ih8kn3kPP1WrlEQmhul9Sys0/lQFyqzWFfMC34nkbIf1IA3ofp7TigRwg1wbmDpbHjO6i3LVU+QAcifnDeTJ5MAO7+OVtZxOpt3OOzOiqzW+i0q0T4ijB1HTG55vHvPumLI6Bye3157e7Mz+ZiI+yJPimXJZvO8lzdI0B3JIGZstx4xoSqRXRnQOv2XouWs1Zmy50GliXukQcM/JzSdrkUYbhst9mXcyPfpYh2en+nlo6kByglbrsli6QqRN+nY5W0KTkutslzsar9LA3ScnPvj2lT800g79BAcaHSAfCs5UZl11JuzIqTu7zQ/IZkOtG2EevtP7iW0pv9S2q3F4cOdhywELRH9csXzI5b3tTYDbxi7vxoDxxLaisL6w09Q5sH7gCkhxm/wfZHt0eKbz0vPGjxs3T92v31z1OFPeeHu8R7vB0cd7Lo9kZjrBc4PH5Y2TPF/Hti85mdFw9VlgiVxtCIiPLw5Qh6lKnz11aCB1kRxMz66qSsqk5omrp/uHqcl38/Qa0wRJuG0LhN5EcXKLNqdanZpao9FmExaIg8SbNpDehNLkzdp4bcL6zKqK9VkxCTHxqZvKoN/ljJuXvPPnkQTrSAL1j3wRmg65eLOGq7/1j5/Wsmy5/4DSdk3NmMgGxm6J09WrRV6aqEF8BlOaHVx4smG7Mk4Z558ypW9Sr0b6zyi4KGwgZ/7EpOA94rNRFrXOq+t/XqLCTxB/bd5s0ZB1t+z1orKBXjBTzmnUHteka9Lb8w0lrYlh8dSGNUCBXcHZc+OKjR06TVp4WvTJnS2cXPFstbwuNqf/iAJp/Fdpyoj8gdm1MfIwcQs0s9qvjg3TmXqHxC/ONWaO0tjWB1koOVQ8vyH8UERqRMqGvKaBtsyklOTU/LOT/BoyDyQmJybvz8ZXnkwtC/X0lJtD6CmMDLXZMsyoAIetkStMP0ydMzuLl5z3CqgO14wK8Pzx5/RYHm/26b8vYATBbUo8Fpsek749f6h5W/6aUNZU8xyPnlhIBd4Ck9DL7JzJzZXPLStqiMvONsdNZcTcXG7e2KaozByblT00FoSsHLB0Re6mPTx5OaLYOyYsz2vzJq+hfabsmjSi1zoqdUavwqoVfcJyAduaXh9mtUYO9JUUPDjH3RcyVjVRsescX0ZNn7MgYPSsF4QTaQJ/ESuZCYlgtbZaYY3OCm8N+j663kVfQamG1iFP10ffu/IfCivSjXtifdJmvf2stQmtzdUkaZI1e6GuFurU+zTJ4clr85qglQzJ/0z+Dxl9Tih7j40PGvdK1ASp/zMd024ey5t2MEFt3F7uHt2wukCbljtQ59b8X5P2ZeSgqCEHLdOm7DbHDtL2i/i8ld+F8kX7iVRZ0qiCPn0sugD/bOJQYVd/5aXwnF51sdm5TWl9VWm+R0f2sRbnYpagqnbFzIH/hzsVePM3dUO27KK127rLat97JdU97W2lHtGdNHZEv9XXDGIPhZYxKffitYPjdTPfFLdzrP6hX92+P3qcyVGN2FSGNf33b4DvSkWi6ZJxOq8a4rqUDkk3jhVbjy6PHNIFv6b8zwu6whx0v64f+taym7b7bUh+nSJjGFYOY2GXZL5b8xYIuXxgA/3eNzrI5Sd20Gcx6RD8+M+3d6bPb3ltCxe1LloCof9eKuO7087e1XF84vgP3ifw/QIz5Bs2CvQB5e6O4XH+Xvsi/Pr0zdCKAzKlG9YLdBDB2bxIwGWxyn0UlnMdrmBRlJ9hy6slkpN6ok7va4DrLwPbIyLaA4M63PiOt2WlgC/7xmRI2TJUp/uXCArKuJZfwY6nVIp3VFSs53IzUrkaBDGfH8vwVim+5sjGoxtj/2RxXc+v23vPhf+lpoYjlLSn9fGIE2e5ud7ft+6gi2D7gGyOXLK8T+ps0F5+7IbvdcXXdO/aX2vLDDNzIlIF1omVqoQtToXOvfD+3mqNz3AWi+A+7tkEsQsfS/A2MX509fL9MmfXzyIdP04CyZeXUryH/rHvWt4twcvWtJBajpHAr/SoqXvxyu7+rMU0ZSw/T66YIAzkebSplFkjq+v5yUl1/FFVyiyI+Nc235321zMTRLFAwKPOU/lmVvWv5ickVPP7Z/hmGmPHBfwzODurjU8wHmQbnLQUnai1sOg/VxcWh6N2hUjcFub1faOZustWdkOUpNk6xgrR8g2tHgyh0ED4GITODI9WlW9Odf8aQWLiiShC3jAtXO9OfJSI1LOXp4jTBtal5rPxi1Lx0zF1RYrUgVNZCSQCEABQQQzOqI0hsiqCwhQDrmxKIaKofPsU1FeillNAzCyCkKKVnRjCQSmTMLkjKPzlGEKqBLsHBBXQSoRUGXY8eqDmHuWCOF5h/8Kfq/jgftB97K8xzebznKITgFCYjfj7WZfbP0UdLn/35eQ+IIRp6S/W5Vp6Ek/RmhIAFdRSQPnbTeu+QEYjbb4QrvvZPyfd5veeqgfYL6MuPOC8s+HTpIGEeYkW9D0gEmHKRQygj32E0GXY/uh1GXaAqy6CGSnWRDCTiJYfvcJ062sPIKGHmG59RMUkP/t3TLf++AIk9ALTrS+/AgnG9ElkOQHCsbx0gIxmgjT3TX9rYuftFAbD5odTBKaVe/0umJB7pt9Al2GnU67LsF1cNIX9R+oKKKB4OoCAKe8zEDN97gCm4CgDM30+AaZ8SyZm+jwGbKnmmMQuJ0A43FMyclMFMDm9uSdRrmA0x63z7W2on40/10OTYceidw2B5AJuaP4qzzjhUZdglwBh/JQYgQM/rsHB1g50GfY0KQTKzv4RrCRQI+ZZhwGw0HTMs84kAwvtAB7f1XrBAjQReHwyAAudAZ4yFwgK8CN47BiJ/1+joICyNTpwRKcFhSd3XIYgCLNbMUGmfXgkH/BHKlIqUMBJPBlQThuy/WIdd64D2NyTARsAJqDqobmvUwnUFNDO6giqBJapagoNTqmF+C/YemdC/DckTWZqyjpDN11zl80yla3GckhFjzefrENfnLeVT/a6/kaF3ul3tDR0z8Widu4jdClXRWK8ZfE/aQEUCtwVy7wAE4cVzkqhMqxCrMQ9Usg4Ew22z+ZeuM00CU7GcmQgU3sICAIoU0CPXEPvnbeV9/f6fkSF3ukntCx088WytuyjKoCmMt6x+lHTCAS1+EZPkeMpJirPZhm3EUVwWfyIquksxo8aOR16RyD3tUy95YCkpxD65pI9N5EEUKEf7W/Q0tAD19OzHi6SAFqS8ZbFnzrQIcwIteeIwJK9Yd21ghQe4J6APRn0FhciBPL6KU9H5LNGM0uAtDVbiEUOmbF7mBIpDVpNTzoiWJeOxU+AFE7jngCKCetl/Jc8nfJ6Lk9XPraA1l1oBG6TNExsyhM5zEb30KbsBo11Dvn0o+cN9mADIAAgA4z7x0QPdo7+QmPSAADg6Hs/EADg5vXvxW/8zxVKKs0AAHQgAQAAAvjYHI+dsch/py4BCC4fEmFnAOhst0GVZlpYptk0p2CkrZIspWs3bGDUDGx0tFgofKR0ZIlDMDNRf3zg1J8BdIXfXBATxSA9SkBhqBF0lt0V9He/G0OHg7abdmI/9pMjc4NTYKsycjHY31iXNrLAkTXbatNCEh9dpvJpNuHOE+FF42RrhgMsMvMxOsAfAo4aAi5s1UjgBCc1MkTCdQ0DArlpOPBQuEYBGdJvcoKCDNsBATigkxITrgonFgrMtfnkDyWqZzKCWaVyFRqJIASCIBjCQAQFXCpleisznKRGwqRsXmeaecyKVRm50d+M1wRWkUyzoZQraM1GpsmMBNWeWa4SR8zlBoFgTLzWRRSrj5U1SpVxRDUaSuVmF7WrqfhKMvVK3Z5NahQzC+VBVzUKUuUuShXl715NEABDSnggLCtiNFFeiRojYh02k7s0rhW3XFlgm5lmbiw8DywkeSepzEpGzuqEl5bm2lnSJUqWI1+yAAgRkNtbaSNZ+iyK/XlOS3itNYkMl6OzVykBgKDhztin2FoAAAA=) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-latin-ext-400-normal.820adbd1.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-latin-400-normal.7295944e.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} diff --git a/assets/@socket.io.aec831e2.js b/assets/@socket.io.aec831e2.js new file mode 100644 index 0000000..5379da2 --- /dev/null +++ b/assets/@socket.io.aec831e2.js @@ -0,0 +1 @@ +function r(t){if(t)return n(t)}function n(t){for(var s in r.prototype)t[s]=r.prototype[s];return t}r.prototype.on=r.prototype.addEventListener=function(t,s){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(s),this};r.prototype.once=function(t,s){function e(){this.off(t,e),s.apply(this,arguments)}return e.fn=s,this.on(t,e),this};r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,s){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+t];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var a,i=0;i!!n[r.toLowerCase()]:r=>!!n[r]}const Cf="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Tf=Oe(Cf),Sf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vf=Oe(Sf);function Yo(e){return!!e||e===""}function Hn(e){if(V(e)){const t={};for(let n=0;n{if(n){const s=n.split(Nf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Vn(e){let t="";if(z(e))t=e;else if(V(e))for(let n=0;nht(n,t))}const Lf=e=>z(e)?e:e==null?"":V(e)||se(e)&&(e.toString===Qo||!W(e.toString))?JSON.stringify(e,Xo,2):String(e),Xo=(e,t)=>t&&t.__v_isRef?Xo(e,t.value):Qt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Vt(t)?{[`Set(${t.size})`]:[...t.values()]}:se(t)&&!V(t)&&!Go(t)?String(t):t,Q={},Xt=[],Me=()=>{},fs=()=>!1,$f=/^on[^a-z]/,Ht=e=>$f.test(e),xr=e=>e.startsWith("onUpdate:"),ee=Object.assign,Wr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bf=Object.prototype.hasOwnProperty,Z=(e,t)=>Bf.call(e,t),V=Array.isArray,Qt=e=>Un(e)==="[object Map]",Vt=e=>Un(e)==="[object Set]",zi=e=>Un(e)==="[object Date]",W=e=>typeof e=="function",z=e=>typeof e=="string",gt=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",qr=e=>se(e)&&W(e.then)&&W(e.catch),Qo=Object.prototype.toString,Un=e=>Qo.call(e),Df=e=>Un(e).slice(8,-1),Go=e=>Un(e)==="[object Object]",zr=e=>z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rt=Oe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hf=Oe("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ls=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Vf=/-(\w)/g,Se=Ls(e=>e.replace(Vf,(t,n)=>n?n.toUpperCase():"")),Uf=/\B([A-Z])/g,xe=Ls(e=>e.replace(Uf,"-$1").toLowerCase()),Ut=Ls(e=>e.charAt(0).toUpperCase()+e.slice(1)),Gt=Ls(e=>e?`on${Ut(e)}`:""),sn=(e,t)=>!Object.is(e,t),en=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},mt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ji;const jf=()=>Ji||(Ji=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Re;class Jr{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Re&&(this.parent=Re,this.index=(Re.scopes||(Re.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Re;try{return Re=this,t()}finally{Re=n}}}on(){Re=this}off(){Re=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},tl=e=>(e.w&yt)>0,nl=e=>(e.n&yt)>0,qf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(f==="length"||f>=s)&&l.push(c)});else switch(n!==void 0&&l.push(o.get(n)),t){case"add":V(e)?zr(n)&&l.push(o.get("length")):(l.push(o.get(At)),Qt(e)&&l.push(o.get(Er)));break;case"delete":V(e)||(l.push(o.get(At)),Qt(e)&&l.push(o.get(Er)));break;case"set":Qt(e)&&l.push(o.get(At));break}if(l.length===1)l[0]&&Cr(l[0]);else{const c=[];for(const f of l)f&&c.push(...f);Cr(Yr(c))}}function Cr(e,t){const n=V(e)?e:[...e];for(const s of n)s.computed&&Zi(s);for(const s of n)s.computed||Zi(s)}function Zi(e,t){(e!==Ke||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Zf=Oe("__proto__,__v_isRef,__isVue"),il=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt)),Xf=$s(),Qf=$s(!1,!0),Gf=$s(!0),ea=$s(!0,!0),Xi=ta();function ta(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let i=0,o=this.length;i{e[t]=function(...n){jt();const s=Y(this)[t].apply(this,n);return Kt(),s}}),e}function $s(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?pl:ul:t?al:fl).get(s))return s;const o=V(s);if(!e&&o&&Z(Xi,r))return Reflect.get(Xi,r,i);const l=Reflect.get(s,r,i);return(gt(r)?il.has(r):Zf(r))||(e||$e(s,"get",r),t)?l:he(l)?o&&zr(r)?l:l.value:se(l)?e?Xr(l):Hs(l):l}}const na=ol(),sa=ol(!0);function ol(e=!1){return function(n,s,r,i){let o=n[s];if(Lt(o)&&he(o)&&!he(r))return!1;if(!e&&(!Pn(r)&&!Lt(r)&&(o=Y(o),r=Y(r)),!V(n)&&he(o)&&!he(r)))return o.value=r,!0;const l=V(n)&&zr(s)?Number(s)e,Bs=e=>Reflect.getPrototypeOf(e);function Xn(e,t,n=!1,s=!1){e=e.__v_raw;const r=Y(e),i=Y(t);n||(t!==i&&$e(r,"get",t),$e(r,"get",i));const{has:o}=Bs(r),l=s?Zr:n?ei:Rn;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Qn(e,t=!1){const n=this.__v_raw,s=Y(n),r=Y(e);return t||(e!==r&&$e(s,"has",e),$e(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Gn(e,t=!1){return e=e.__v_raw,!t&&$e(Y(e),"iterate",At),Reflect.get(e,"size",e)}function Qi(e){e=Y(e);const t=Y(this);return Bs(t).has.call(t,e)||(t.add(e),rt(t,"add",e,e)),this}function Gi(e,t){t=Y(t);const n=Y(this),{has:s,get:r}=Bs(n);let i=s.call(n,e);i||(e=Y(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?sn(t,o)&&rt(n,"set",e,t):rt(n,"add",e,t),this}function eo(e){const t=Y(this),{has:n,get:s}=Bs(t);let r=n.call(t,e);r||(e=Y(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&rt(t,"delete",e,void 0),i}function to(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&rt(e,"clear",void 0,void 0),n}function es(e,t){return function(s,r){const i=this,o=i.__v_raw,l=Y(o),c=t?Zr:e?ei:Rn;return!e&&$e(l,"iterate",At),o.forEach((f,a)=>s.call(r,c(f),c(a),i))}}function ts(e,t,n){return function(...s){const r=this.__v_raw,i=Y(r),o=Qt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),a=n?Zr:t?ei:Rn;return!t&&$e(i,"iterate",c?Er:At),{next(){const{value:u,done:d}=f.next();return d?{value:u,done:d}:{value:l?[a(u[0]),a(u[1])]:a(u),done:d}},[Symbol.iterator](){return this}}}}function lt(e){return function(...t){return e==="delete"?!1:this}}function fa(){const e={get(i){return Xn(this,i)},get size(){return Gn(this)},has:Qn,add:Qi,set:Gi,delete:eo,clear:to,forEach:es(!1,!1)},t={get(i){return Xn(this,i,!1,!0)},get size(){return Gn(this)},has:Qn,add:Qi,set:Gi,delete:eo,clear:to,forEach:es(!1,!0)},n={get(i){return Xn(this,i,!0)},get size(){return Gn(this,!0)},has(i){return Qn.call(this,i,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:es(!0,!1)},s={get(i){return Xn(this,i,!0,!0)},get size(){return Gn(this,!0)},has(i){return Qn.call(this,i,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:es(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ts(i,!1,!1),n[i]=ts(i,!0,!1),t[i]=ts(i,!1,!0),s[i]=ts(i,!0,!0)}),[e,n,t,s]}const[aa,ua,pa,da]=fa();function Ds(e,t){const n=t?e?da:pa:e?ua:aa;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Z(n,r)&&r in s?n:s,r,i)}const ha={get:Ds(!1,!1)},ga={get:Ds(!1,!0)},ma={get:Ds(!0,!1)},ya={get:Ds(!0,!0)},fl=new WeakMap,al=new WeakMap,ul=new WeakMap,pl=new WeakMap;function ba(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _a(e){return e.__v_skip||!Object.isExtensible(e)?0:ba(Df(e))}function Hs(e){return Lt(e)?e:Vs(e,!1,ll,ha,fl)}function dl(e){return Vs(e,!1,la,ga,al)}function Xr(e){return Vs(e,!0,cl,ma,ul)}function Ea(e){return Vs(e,!0,ca,ya,pl)}function Vs(e,t,n,s,r){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=_a(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function It(e){return Lt(e)?It(e.__v_raw):!!(e&&e.__v_isReactive)}function Lt(e){return!!(e&&e.__v_isReadonly)}function Pn(e){return!!(e&&e.__v_isShallow)}function Qr(e){return It(e)||Lt(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function Gr(e){return gs(e,"__v_skip",!0),e}const Rn=e=>se(e)?Hs(e):e,ei=e=>se(e)?Xr(e):e;function ti(e){pt&&Ke&&(e=Y(e),rl(e.dep||(e.dep=Yr())))}function Us(e,t){e=Y(e),e.dep&&Cr(e.dep)}function he(e){return!!(e&&e.__v_isRef===!0)}function as(e){return hl(e,!1)}function Ca(e){return hl(e,!0)}function hl(e,t){return he(e)?e:new Ta(e,t)}class Ta{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Y(t),this._value=n?t:Rn(t)}get value(){return ti(this),this._value}set value(t){const n=this.__v_isShallow||Pn(t)||Lt(t);t=n?t:Y(t),sn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Rn(t),Us(this))}}function Sa(e){Us(e)}function gl(e){return he(e)?e.value:e}const va={get:(e,t,n)=>gl(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return he(r)&&!he(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ni(e){return It(e)?e:new Proxy(e,va)}class wa{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>ti(this),()=>Us(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Na(e){return new wa(e)}function Oa(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=ml(e,n);return t}class Pa{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function ml(e,t,n){const s=e[t];return he(s)?s:new Pa(e,t,n)}var yl;class Ra{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[yl]=!1,this._dirty=!0,this.effect=new jn(t,()=>{this._dirty||(this._dirty=!0,Us(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Y(this);return ti(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}yl="__v_isReadonly";function Aa(e,t,n=!1){let s,r;const i=W(e);return i?(s=e,r=Me):(s=e.get,r=e.set),new Ra(s,r,i||!r,n)}const En=[];function bl(e,...t){jt();const n=En.length?En[En.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=Ia();if(s)Ze(s,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:i})=>`at <${fc(n,i.type)}>`).join(` +`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(` +`,...Ma(r)),console.warn(...i)}Kt()}function Ia(){let e=En[En.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Ma(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` +`],...ka(n))}),t}function ka({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${fc(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...Fa(e.props),i]:[r+i]}function Fa(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(..._l(s,e[s]))}),n.length>3&&t.push(" ..."),t}function _l(e,t,n){return z(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:he(t)?(t=_l(e,Y(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):W(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Y(t),n?t:[`${e}=`,t])}function Ze(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){xt(i,t,n)}return r}function ke(e,t,n,s){if(W(e)){const i=Ze(e,t,n,s);return i&&qr(i)&&i.catch(o=>{xt(o,t,n)}),i}const r=[];for(let i=0;i>>1;An(be[s])Je&&be.splice(t,1)}function ii(e){V(e)?tn.push(...e):(!tt||!tt.includes(e,e.allowRecurse?wt+1:wt))&&tn.push(e),Cl()}function no(e,t=Je){for(;tAn(n)-An(s)),wt=0;wte.id==null?1/0:e.id,Da=(e,t)=>{const n=An(e)-An(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Tl(e){Tr=!1,ms=!0,be.sort(Da);const t=Me;try{for(Je=0;JeYt.emit(r,...i)),ns=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((s=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||s===void 0)&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Sl(i,t)}),setTimeout(()=>{Yt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ns=[])},3e3)):ns=[]}function Ha(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Q;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const a=`${o==="modelValue"?"model":o}Modifiers`,{number:u,trim:d}=s[a]||Q;d&&(r=n.map(y=>y.trim())),u&&(r=n.map(mt))}let l,c=s[l=Gt(t)]||s[l=Gt(Se(t))];!c&&i&&(c=s[l=Gt(xe(t))]),c&&ke(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ke(f,e,6,r)}}function vl(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!W(e)){const c=f=>{const a=vl(f,t,!0);a&&(l=!0,ee(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(se(e)&&s.set(e,null),null):(V(i)?i.forEach(c=>o[c]=null):ee(o,i),se(e)&&s.set(e,o),o)}function Ks(e,t){return!e||!Ht(t)?!1:(t=t.slice(2).replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,xe(t))||Z(e,t))}let _e=null,xs=null;function In(e){const t=_e;return _e=e,xs=e&&e.type.__scopeId||null,t}function Va(e){xs=e}function Ua(){xs=null}const ja=e=>oi;function oi(e,t=_e,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Rr(-1);const i=In(t),o=e(...r);return In(i),s._d&&Rr(1),o};return s._n=!0,s._c=!0,s._d=!0,s}function us(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:c,emit:f,render:a,renderCache:u,data:d,setupState:y,ctx:b,inheritAttrs:T}=e;let w,m;const h=In(e);try{if(n.shapeFlag&4){const O=r||s;w=Ae(a.call(O,O,u,i,y,d,b)),m=c}else{const O=t;w=Ae(O.length>1?O(i,{attrs:c,slots:l,emit:f}):O(i,null)),m=t.props?c:xa(c)}}catch(O){vn.length=0,xt(O,e,1),w=ce(Ce)}let C=w;if(m&&T!==!1){const O=Object.keys(m),{shapeFlag:M}=C;O.length&&M&7&&(o&&O.some(xr)&&(m=Wa(m,o)),C=Xe(C,m))}return n.dirs&&(C=Xe(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),w=C,In(h),w}function Ka(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Ht(n))&&((t||(t={}))[n]=e[n]);return t},Wa=(e,t)=>{const n={};for(const s in e)(!xr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function qa(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?so(s,o,f):!!o;if(c&8){const a=t.dynamicProps;for(let u=0;ue.__isSuspense,za={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,c,f){e==null?Ya(t,n,s,r,i,o,l,c,f):Za(e,t,n,s,r,o,l,c,f)},hydrate:Xa,create:ci,normalize:Qa},Ja=za;function Mn(e,t){const n=e.props&&e.props[t];W(n)&&n()}function Ya(e,t,n,s,r,i,o,l,c){const{p:f,o:{createElement:a}}=c,u=a("div"),d=e.suspense=ci(e,r,s,t,u,n,i,o,l,c);f(null,d.pendingBranch=e.ssContent,u,null,s,d,i,o),d.deps>0?(Mn(e,"onPending"),Mn(e,"onFallback"),f(null,e.ssFallback,t,n,s,null,i,o),nn(d,e.ssFallback)):d.resolve()}function Za(e,t,n,s,r,i,o,l,{p:c,um:f,o:{createElement:a}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const d=t.ssContent,y=t.ssFallback,{activeBranch:b,pendingBranch:T,isInFallback:w,isHydrating:m}=u;if(T)u.pendingBranch=d,Ye(d,T)?(c(T,d,u.hiddenContainer,null,r,u,i,o,l),u.deps<=0?u.resolve():w&&(c(b,y,n,s,r,null,i,o,l),nn(u,y))):(u.pendingId++,m?(u.isHydrating=!1,u.activeBranch=T):f(T,r,u),u.deps=0,u.effects.length=0,u.hiddenContainer=a("div"),w?(c(null,d,u.hiddenContainer,null,r,u,i,o,l),u.deps<=0?u.resolve():(c(b,y,n,s,r,null,i,o,l),nn(u,y))):b&&Ye(d,b)?(c(b,d,n,s,r,u,i,o,l),u.resolve(!0)):(c(null,d,u.hiddenContainer,null,r,u,i,o,l),u.deps<=0&&u.resolve()));else if(b&&Ye(d,b))c(b,d,n,s,r,u,i,o,l),nn(u,d);else if(Mn(t,"onPending"),u.pendingBranch=d,u.pendingId++,c(null,d,u.hiddenContainer,null,r,u,i,o,l),u.deps<=0)u.resolve();else{const{timeout:h,pendingId:C}=u;h>0?setTimeout(()=>{u.pendingId===C&&u.fallback(y)},h):h===0&&u.fallback(y)}}function ci(e,t,n,s,r,i,o,l,c,f,a=!1){const{p:u,m:d,um:y,n:b,o:{parentNode:T,remove:w}}=f,m=mt(e.props&&e.props.timeout),h={vnode:e,parent:t,parentComponent:n,isSVG:o,container:s,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:a,isUnmounted:!1,effects:[],resolve(C=!1){const{vnode:O,activeBranch:M,pendingBranch:H,pendingId:N,effects:_,parentComponent:A,container:P}=h;if(h.isHydrating)h.isHydrating=!1;else if(!C){const j=M&&H.transition&&H.transition.mode==="out-in";j&&(M.transition.afterLeave=()=>{N===h.pendingId&&d(H,P,$,0)});let{anchor:$}=h;M&&($=b(M),y(M,A,h,!0)),j||d(H,P,$,0)}nn(h,H),h.pendingBranch=null,h.isInFallback=!1;let B=h.parent,I=!1;for(;B;){if(B.pendingBranch){B.effects.push(..._),I=!0;break}B=B.parent}I||ii(_),h.effects=[],Mn(O,"onResolve")},fallback(C){if(!h.pendingBranch)return;const{vnode:O,activeBranch:M,parentComponent:H,container:N,isSVG:_}=h;Mn(O,"onFallback");const A=b(M),P=()=>{!h.isInFallback||(u(null,C,N,A,H,null,_,l,c),nn(h,C))},B=C.transition&&C.transition.mode==="out-in";B&&(M.transition.afterLeave=P),h.isInFallback=!0,y(M,H,null,!0),B||P()},move(C,O,M){h.activeBranch&&d(h.activeBranch,C,O,M),h.container=C},next(){return h.activeBranch&&b(h.activeBranch)},registerDep(C,O){const M=!!h.pendingBranch;M&&h.deps++;const H=C.vnode.el;C.asyncDep.catch(N=>{xt(N,C,0)}).then(N=>{if(C.isUnmounted||h.isUnmounted||h.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:_}=C;Ar(C,N,!1),H&&(_.el=H);const A=!H&&C.subTree.el;O(C,_,T(H||C.subTree.el),H?null:b(C.subTree),h,o,c),A&&w(A),li(C,_.el),M&&--h.deps===0&&h.resolve()})},unmount(C,O){h.isUnmounted=!0,h.activeBranch&&y(h.activeBranch,n,C,O),h.pendingBranch&&y(h.pendingBranch,n,C,O)}};return h}function Xa(e,t,n,s,r,i,o,l,c){const f=t.suspense=ci(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),a=c(e,f.pendingBranch=t.ssContent,n,f,i,o);return f.deps===0&&f.resolve(),a}function Qa(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=ro(s?n.default:n),e.ssFallback=s?ro(n.fallback):ce(Ce)}function ro(e){let t;if(W(e)){const n=Bt&&e._c;n&&(e._d=!1,Zs()),e=e(),n&&(e._d=!0,t=Ne,Gl())}return V(e)&&(e=Ka(e)),e=Ae(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Nl(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):ii(e)}function nn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,r=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=r,li(s,r))}function Ol(e,t){if(de){let n=de.provides;const s=de.parent&&de.parent.provides;s===n&&(n=de.provides=Object.create(s)),n[e]=t}}function Cn(e,t,n=!1){const s=de||_e;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&W(t)?t.call(s.proxy):t}}function Ga(e,t){return Kn(e,null,t)}function Pl(e,t){return Kn(e,null,{flush:"post"})}function eu(e,t){return Kn(e,null,{flush:"sync"})}const io={};function Tn(e,t,n){return Kn(e,t,n)}function Kn(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=Q){const l=de;let c,f=!1,a=!1;if(he(e)?(c=()=>e.value,f=Pn(e)):It(e)?(c=()=>e,s=!0):V(e)?(a=!0,f=e.some(m=>It(m)||Pn(m)),c=()=>e.map(m=>{if(he(m))return m.value;if(It(m))return Ot(m);if(W(m))return Ze(m,l,2)})):W(e)?t?c=()=>Ze(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return u&&u(),ke(e,l,3,[d])}:c=Me,t&&s){const m=c;c=()=>Ot(m())}let u,d=m=>{u=w.onStop=()=>{Ze(m,l,4)}};if(ln)return d=Me,t?n&&ke(t,l,3,[c(),a?[]:void 0,d]):c(),Me;let y=a?[]:io;const b=()=>{if(!!w.active)if(t){const m=w.run();(s||f||(a?m.some((h,C)=>sn(h,y[C])):sn(m,y)))&&(u&&u(),ke(t,l,3,[m,y===io?void 0:y,d]),y=m)}else w.run()};b.allowRecurse=!!t;let T;r==="sync"?T=b:r==="post"?T=()=>me(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),T=()=>js(b));const w=new jn(c,T);return t?n?b():y=w.run():r==="post"?me(w.run.bind(w),l&&l.suspense):w.run(),()=>{w.stop(),l&&l.scope&&Wr(l.scope.effects,w)}}function tu(e,t,n){const s=this.proxy,r=z(e)?e.includes(".")?Rl(s,e):()=>s[e]:e.bind(s,s);let i;W(t)?i=t:(i=t.handler,n=t);const o=de;_t(this);const l=Kn(r,i.bind(s),n);return o?_t(o):dt(),l}function Rl(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Ot(n,t)});else if(Go(e))for(const n in e)Ot(e[n],t);return e}function fi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Wn(()=>{e.isMounted=!0}),Js(()=>{e.isUnmounting=!0}),e}const De=[Function,Array],nu={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:De,onEnter:De,onAfterEnter:De,onEnterCancelled:De,onBeforeLeave:De,onLeave:De,onAfterLeave:De,onLeaveCancelled:De,onBeforeAppear:De,onAppear:De,onAfterAppear:De,onAppearCancelled:De},setup(e,{slots:t}){const n=Ct(),s=fi();let r;return()=>{const i=t.default&&Ws(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const T of i)if(T.type!==Ce){o=T;break}}const l=Y(e),{mode:c}=l;if(s.isLeaving)return cr(o);const f=oo(o);if(!f)return cr(o);const a=rn(f,l,s,n);$t(f,a);const u=n.subTree,d=u&&oo(u);let y=!1;const{getTransitionKey:b}=f.type;if(b){const T=b();r===void 0?r=T:T!==r&&(r=T,y=!0)}if(d&&d.type!==Ce&&(!Ye(f,d)||y)){const T=rn(d,l,s,n);if($t(d,T),c==="out-in")return s.isLeaving=!0,T.afterLeave=()=>{s.isLeaving=!1,n.update()},cr(o);c==="in-out"&&f.type!==Ce&&(T.delayLeave=(w,m,h)=>{const C=Al(s,d);C[String(d.key)]=d,w._leaveCb=()=>{m(),w._leaveCb=void 0,delete a.delayedLeave},a.delayedLeave=h})}return o}}},ai=nu;function Al(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function rn(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:f,onEnterCancelled:a,onBeforeLeave:u,onLeave:d,onAfterLeave:y,onLeaveCancelled:b,onBeforeAppear:T,onAppear:w,onAfterAppear:m,onAppearCancelled:h}=t,C=String(e.key),O=Al(n,e),M=(_,A)=>{_&&ke(_,s,9,A)},H=(_,A)=>{const P=A[1];M(_,A),V(_)?_.every(B=>B.length<=1)&&P():_.length<=1&&P()},N={mode:i,persisted:o,beforeEnter(_){let A=l;if(!n.isMounted)if(r)A=T||l;else return;_._leaveCb&&_._leaveCb(!0);const P=O[C];P&&Ye(e,P)&&P.el._leaveCb&&P.el._leaveCb(),M(A,[_])},enter(_){let A=c,P=f,B=a;if(!n.isMounted)if(r)A=w||c,P=m||f,B=h||a;else return;let I=!1;const j=_._enterCb=$=>{I||(I=!0,$?M(B,[_]):M(P,[_]),N.delayedLeave&&N.delayedLeave(),_._enterCb=void 0)};A?H(A,[_,j]):j()},leave(_,A){const P=String(e.key);if(_._enterCb&&_._enterCb(!0),n.isUnmounting)return A();M(u,[_]);let B=!1;const I=_._leaveCb=j=>{B||(B=!0,A(),j?M(b,[_]):M(y,[_]),_._leaveCb=void 0,O[P]===e&&delete O[P])};O[P]=e,d?H(d,[_,I]):I()},clone(_){return rn(_,t,n,s)}};return N}function cr(e){if(xn(e))return e=Xe(e),e.children=null,e}function oo(e){return xn(e)?e.children?e.children[0]:void 0:e}function $t(e,t){e.shapeFlag&6&&e.component?$t(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ws(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function su(e){W(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:l}=e;let c=null,f,a=0;const u=()=>(a++,c=null,d()),d=()=>{let y;return c||(y=c=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),l)return new Promise((T,w)=>{l(b,()=>T(u()),()=>w(b),a+1)});throw b}).then(b=>y!==c&&c?c:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),f=b,b)))};return ui({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return f},setup(){const y=de;if(f)return()=>fr(f,y);const b=h=>{c=null,xt(h,y,13,!s)};if(o&&y.suspense||ln)return d().then(h=>()=>fr(h,y)).catch(h=>(b(h),()=>s?ce(s,{error:h}):null));const T=as(!1),w=as(),m=as(!!r);return r&&setTimeout(()=>{m.value=!1},r),i!=null&&setTimeout(()=>{if(!T.value&&!w.value){const h=new Error(`Async component timed out after ${i}ms.`);b(h),w.value=h}},i),d().then(()=>{T.value=!0,y.parent&&xn(y.parent.vnode)&&js(y.parent.update)}).catch(h=>{b(h),w.value=h}),()=>{if(T.value&&f)return fr(f,y);if(w.value&&s)return ce(s,{error:w.value});if(n&&!m.value)return ce(n)}}})}function fr(e,{vnode:{ref:t,props:n,children:s,shapeFlag:r},parent:i}){const o=ce(e,n,s);return o.ref=t,o}const xn=e=>e.type.__isKeepAlive,ru={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ct(),s=n.ctx;if(!s.renderer)return()=>{const h=t.default&&t.default();return h&&h.length===1?h[0]:h};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:c,m:f,um:a,o:{createElement:u}}}=s,d=u("div");s.activate=(h,C,O,M,H)=>{const N=h.component;f(h,C,O,0,l),c(N.vnode,h,C,O,N,l,M,h.slotScopeIds,H),me(()=>{N.isDeactivated=!1,N.a&&en(N.a);const _=h.props&&h.props.onVnodeMounted;_&&we(_,N.parent,h)},l)},s.deactivate=h=>{const C=h.component;f(h,d,null,1,l),me(()=>{C.da&&en(C.da);const O=h.props&&h.props.onVnodeUnmounted;O&&we(O,C.parent,h),C.isDeactivated=!0},l)};function y(h){ar(h),a(h,n,l,!0)}function b(h){r.forEach((C,O)=>{const M=Ts(C.type);M&&(!h||!h(M))&&T(O)})}function T(h){const C=r.get(h);!o||C.type!==o.type?y(C):o&&ar(o),r.delete(h),i.delete(h)}Tn(()=>[e.include,e.exclude],([h,C])=>{h&&b(O=>_n(h,O)),C&&b(O=>!_n(C,O))},{flush:"post",deep:!0});let w=null;const m=()=>{w!=null&&r.set(w,ur(n.subTree))};return Wn(m),zs(m),Js(()=>{r.forEach(h=>{const{subTree:C,suspense:O}=n,M=ur(C);if(h.type===M.type){ar(M);const H=M.component.da;H&&me(H,O);return}y(h)})}),()=>{if(w=null,!t.default)return null;const h=t.default(),C=h[0];if(h.length>1)return o=null,h;if(!bt(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return o=null,C;let O=ur(C);const M=O.type,H=Ts(Mt(O)?O.type.__asyncResolved||{}:M),{include:N,exclude:_,max:A}=e;if(N&&(!H||!_n(N,H))||_&&H&&_n(_,H))return o=O,C;const P=O.key==null?M:O.key,B=r.get(P);return O.el&&(O=Xe(O),C.shapeFlag&128&&(C.ssContent=O)),w=P,B?(O.el=B.el,O.component=B.component,O.transition&&$t(O,O.transition),O.shapeFlag|=512,i.delete(P),i.add(P)):(i.add(P),A&&i.size>parseInt(A,10)&&T(i.values().next().value)),O.shapeFlag|=256,o=O,wl(C.type)?C:O}}},iu=ru;function _n(e,t){return V(e)?e.some(n=>_n(n,t)):z(e)?e.split(",").includes(t):e.test?e.test(t):!1}function Il(e,t){kl(e,"a",t)}function Ml(e,t){kl(e,"da",t)}function kl(e,t,n=de){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(qs(t,s,n),n){let r=n.parent;for(;r&&r.parent;)xn(r.parent.vnode)&&ou(s,t,n,r),r=r.parent}}function ou(e,t,n,s){const r=qs(t,e,s,!0);Ys(()=>{Wr(s[t],r)},n)}function ar(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function ur(e){return e.shapeFlag&128?e.ssContent:e}function qs(e,t,n=de,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;jt(),_t(n);const l=ke(t,n,e,o);return dt(),Kt(),l});return s?r.unshift(i):r.push(i),i}}const it=e=>(t,n=de)=>(!ln||e==="sp")&&qs(e,t,n),Fl=it("bm"),Wn=it("m"),Ll=it("bu"),zs=it("u"),Js=it("bum"),Ys=it("um"),$l=it("sp"),Bl=it("rtg"),Dl=it("rtc");function Hl(e,t=de){qs("ec",e,t)}function lu(e,t){const n=_e;if(n===null)return e;const s=Qs(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;it(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,c=o.length;l{const i=s.fn(...r);return i.key=s.key,i}:s.fn)}return e}function hu(e,t,n={},s,r){if(_e.isCE||_e.parent&&Mt(_e.parent)&&_e.parent.isCE)return ce("slot",t==="default"?null:{name:t},s&&s());let i=e[t];i&&i._c&&(i._d=!1),Zs();const o=i&&Ul(i(n)),l=mi(ye,{key:n.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Ul(e){return e.some(t=>bt(t)?!(t.type===Ce||t.type===ye&&!Ul(t.children)):!0)?e:null}function gu(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Gt(s)]=e[s];return n}const Sr=e=>e?ic(e)?Qs(e)||e.proxy:Sr(e.parent):null,bs=ee(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Sr(e.parent),$root:e=>Sr(e.root),$emit:e=>e.emit,$options:e=>Kl(e),$forceUpdate:e=>e.f||(e.f=()=>js(e.update)),$nextTick:e=>e.n||(e.n=ri.bind(e.proxy)),$watch:e=>tu.bind(e)}),vr={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let f;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(s!==Q&&Z(s,t))return o[t]=1,s[t];if(r!==Q&&Z(r,t))return o[t]=2,r[t];if((f=e.propsOptions[0])&&Z(f,t))return o[t]=3,i[t];if(n!==Q&&Z(n,t))return o[t]=4,n[t];wr&&(o[t]=0)}}const a=bs[t];let u,d;if(a)return t==="$attrs"&&$e(e,"get",t),a(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==Q&&Z(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,Z(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return r!==Q&&Z(r,t)?(r[t]=n,!0):s!==Q&&Z(s,t)?(s[t]=n,!0):Z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==Q&&Z(e,o)||t!==Q&&Z(t,o)||(l=i[0])&&Z(l,o)||Z(s,o)||Z(bs,o)||Z(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},mu=ee({},vr,{get(e,t){if(t!==Symbol.unscopables)return vr.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Tf(t)}});let wr=!0;function yu(e){const t=Kl(e),n=e.proxy,s=e.ctx;wr=!1,t.beforeCreate&&co(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:a,beforeMount:u,mounted:d,beforeUpdate:y,updated:b,activated:T,deactivated:w,beforeDestroy:m,beforeUnmount:h,destroyed:C,unmounted:O,render:M,renderTracked:H,renderTriggered:N,errorCaptured:_,serverPrefetch:A,expose:P,inheritAttrs:B,components:I,directives:j,filters:$}=t;if(f&&bu(f,s,null,e.appContext.config.unwrapInjectedRef),o)for(const oe in o){const te=o[oe];W(te)&&(s[oe]=te.bind(n))}if(r){const oe=r.call(n,n);se(oe)&&(e.data=Hs(oe))}if(wr=!0,i)for(const oe in i){const te=i[oe],Qe=W(te)?te.bind(n,n):W(te.get)?te.get.bind(n,n):Me,ir=!W(te)&&W(te.set)?te.set.bind(n):Me,dn=ac({get:Qe,set:ir});Object.defineProperty(s,oe,{enumerable:!0,configurable:!0,get:()=>dn.value,set:Wt=>dn.value=Wt})}if(l)for(const oe in l)jl(l[oe],s,n,oe);if(c){const oe=W(c)?c.call(n):c;Reflect.ownKeys(oe).forEach(te=>{Ol(te,oe[te])})}a&&co(a,e,"c");function G(oe,te){V(te)?te.forEach(Qe=>oe(Qe.bind(n))):te&&oe(te.bind(n))}if(G(Fl,u),G(Wn,d),G(Ll,y),G(zs,b),G(Il,T),G(Ml,w),G(Hl,_),G(Dl,H),G(Bl,N),G(Js,h),G(Ys,O),G($l,A),V(P))if(P.length){const oe=e.exposed||(e.exposed={});P.forEach(te=>{Object.defineProperty(oe,te,{get:()=>n[te],set:Qe=>n[te]=Qe})})}else e.exposed||(e.exposed={});M&&e.render===Me&&(e.render=M),B!=null&&(e.inheritAttrs=B),I&&(e.components=I),j&&(e.directives=j)}function bu(e,t,n=Me,s=!1){V(e)&&(e=Nr(e));for(const r in e){const i=e[r];let o;se(i)?"default"in i?o=Cn(i.from||r,i.default,!0):o=Cn(i.from||r):o=Cn(i),he(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function co(e,t,n){ke(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function jl(e,t,n,s){const r=s.includes(".")?Rl(n,s):()=>n[s];if(z(e)){const i=t[e];W(i)&&Tn(r,i)}else if(W(e))Tn(r,e.bind(n));else if(se(e))if(V(e))e.forEach(i=>jl(i,t,n,s));else{const i=W(e.handler)?e.handler.bind(n):t[e.handler];W(i)&&Tn(r,i,e)}}function Kl(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>_s(c,f,o,!0)),_s(c,t,o)),se(t)&&i.set(t,c),c}function _s(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&_s(e,i,n,!0),r&&r.forEach(o=>_s(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=_u[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const _u={data:fo,props:vt,emits:vt,methods:vt,computed:vt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:vt,directives:vt,watch:Cu,provide:fo,inject:Eu};function fo(e,t){return t?e?function(){return ee(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function Eu(e,t){return vt(Nr(e),Nr(t))}function Nr(e){if(V(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let u=0;u{c=!0;const[d,y]=Wl(u,t,!0);ee(o,d),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return se(e)&&s.set(e,Xt),Xt;if(V(i))for(let a=0;a-1,y[1]=T<0||b-1||Z(y,"default"))&&l.push(u)}}}const f=[o,l];return se(e)&&s.set(e,f),f}function ao(e){return e[0]!=="$"}function uo(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function po(e,t){return uo(e)===uo(t)}function ho(e,t){return V(t)?t.findIndex(n=>po(n,e)):W(t)&&po(t,e)?0:-1}const ql=e=>e[0]==="_"||e==="$stable",hi=e=>V(e)?e.map(Ae):[Ae(e)],vu=(e,t,n)=>{if(t._n)return t;const s=oi((...r)=>hi(t(...r)),n);return s._c=!1,s},zl=(e,t,n)=>{const s=e._ctx;for(const r in e){if(ql(r))continue;const i=e[r];if(W(i))t[r]=vu(r,i,s);else if(i!=null){const o=hi(i);t[r]=()=>o}}},Jl=(e,t)=>{const n=hi(t);e.slots.default=()=>n},wu=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),gs(t,"_",n)):zl(t,e.slots={})}else e.slots={},t&&Jl(e,t);gs(e.slots,Xs,1)},Nu=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=Q;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(ee(r,t),!n&&l===1&&delete r._):(i=!t.$stable,zl(t,r)),o=t}else t&&(Jl(e,t),o={default:1});if(i)for(const l in r)!ql(l)&&!(l in o)&&delete r[l]};function Yl(){return{app:null,config:{isNativeTag:fs,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ou=0;function Pu(e,t){return function(s,r=null){W(s)||(s=Object.assign({},s)),r!=null&&!se(r)&&(r=null);const i=Yl(),o=new Set;let l=!1;const c=i.app={_uid:Ou++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:gc,get config(){return i.config},set config(f){},use(f,...a){return o.has(f)||(f&&W(f.install)?(o.add(f),f.install(c,...a)):W(f)&&(o.add(f),f(c,...a))),c},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),c},component(f,a){return a?(i.components[f]=a,c):i.components[f]},directive(f,a){return a?(i.directives[f]=a,c):i.directives[f]},mount(f,a,u){if(!l){const d=ce(s,r);return d.appContext=i,a&&t?t(d,f):e(d,f,u),l=!0,c._container=f,f.__vue_app__=c,Qs(d.component)||d.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(f,a){return i.provides[f]=a,c}};return c}}function Es(e,t,n,s,r=!1){if(V(e)){e.forEach((d,y)=>Es(d,t&&(V(t)?t[y]:t),n,s,r));return}if(Mt(s)&&!r)return;const i=s.shapeFlag&4?Qs(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,a=l.refs===Q?l.refs={}:l.refs,u=l.setupState;if(f!=null&&f!==c&&(z(f)?(a[f]=null,Z(u,f)&&(u[f]=null)):he(f)&&(f.value=null)),W(c))Ze(c,l,12,[o,a]);else{const d=z(c),y=he(c);if(d||y){const b=()=>{if(e.f){const T=d?a[c]:c.value;r?V(T)&&Wr(T,i):V(T)?T.includes(i)||T.push(i):d?(a[c]=[i],Z(u,c)&&(u[c]=a[c])):(c.value=[i],e.k&&(a[e.k]=c.value))}else d?(a[c]=o,Z(u,c)&&(u[c]=o)):y&&(c.value=o,e.k&&(a[e.k]=o))};o?(b.id=-1,me(b,n)):b()}}}let ct=!1;const ss=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",rs=e=>e.nodeType===8;function Ru(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:f}}=e,a=(m,h)=>{if(!h.hasChildNodes()){n(null,m,h),ys(),h._vnode=m;return}ct=!1,u(h.firstChild,m,null,null,null),ys(),h._vnode=m,ct&&console.error("Hydration completed but contains mismatches.")},u=(m,h,C,O,M,H=!1)=>{const N=rs(m)&&m.data==="[",_=()=>T(m,h,C,O,M,N),{type:A,ref:P,shapeFlag:B,patchFlag:I}=h,j=m.nodeType;h.el=m,I===-2&&(H=!1,h.dynamicChildren=null);let $=null;switch(A){case on:j!==3?h.children===""?(c(h.el=r(""),o(m),m),$=m):$=_():(m.data!==h.children&&(ct=!0,m.data=h.children),$=i(m));break;case Ce:j!==8||N?$=_():$=i(m);break;case kt:if(j!==1&&j!==3)$=_();else{$=m;const fe=!h.children.length;for(let G=0;G{H=H||!!h.dynamicChildren;const{type:N,props:_,patchFlag:A,shapeFlag:P,dirs:B}=h,I=N==="input"&&B||N==="option";if(I||A!==-1){if(B&&ze(h,null,C,"created"),_)if(I||!H||A&48)for(const $ in _)(I&&$.endsWith("value")||Ht($)&&!Rt($))&&s(m,$,null,_[$],!1,void 0,C);else _.onClick&&s(m,"onClick",null,_.onClick,!1,void 0,C);let j;if((j=_&&_.onVnodeBeforeMount)&&we(j,C,h),B&&ze(h,null,C,"beforeMount"),((j=_&&_.onVnodeMounted)||B)&&Nl(()=>{j&&we(j,C,h),B&&ze(h,null,C,"mounted")},O),P&16&&!(_&&(_.innerHTML||_.textContent))){let $=y(m.firstChild,h,m,C,O,M,H);for(;$;){ct=!0;const fe=$;$=$.nextSibling,l(fe)}}else P&8&&m.textContent!==h.children&&(ct=!0,m.textContent=h.children)}return m.nextSibling},y=(m,h,C,O,M,H,N)=>{N=N||!!h.dynamicChildren;const _=h.children,A=_.length;for(let P=0;P{const{slotScopeIds:N}=h;N&&(M=M?M.concat(N):N);const _=o(m),A=y(i(m),h,_,C,O,M,H);return A&&rs(A)&&A.data==="]"?i(h.anchor=A):(ct=!0,c(h.anchor=f("]"),_,A),A)},T=(m,h,C,O,M,H)=>{if(ct=!0,h.el=null,H){const A=w(m);for(;;){const P=i(m);if(P&&P!==A)l(P);else break}}const N=i(m),_=o(m);return l(m),n(null,h,_,N,C,O,ss(_),M),N},w=m=>{let h=0;for(;m;)if(m=i(m),m&&rs(m)&&(m.data==="["&&h++,m.data==="]")){if(h===0)return i(m);h--}return m};return[a,u]}const me=Nl;function Zl(e){return Ql(e)}function Xl(e){return Ql(e,Ru)}function Ql(e,t){const n=jf();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:a,parentNode:u,nextSibling:d,setScopeId:y=Me,cloneNode:b,insertStaticContent:T}=e,w=(p,g,E,v=null,S=null,F=null,D=!1,k=null,L=!!g.dynamicChildren)=>{if(p===g)return;p&&!Ye(p,g)&&(v=Zn(p),ot(p,S,F,!0),p=null),g.patchFlag===-2&&(L=!1,g.dynamicChildren=null);const{type:R,ref:K,shapeFlag:U}=g;switch(R){case on:m(p,g,E,v);break;case Ce:h(p,g,E,v);break;case kt:p==null&&C(g,E,v,D);break;case ye:j(p,g,E,v,S,F,D,k,L);break;default:U&1?H(p,g,E,v,S,F,D,k,L):U&6?$(p,g,E,v,S,F,D,k,L):(U&64||U&128)&&R.process(p,g,E,v,S,F,D,k,L,qt)}K!=null&&S&&Es(K,p&&p.ref,F,g||p,!g)},m=(p,g,E,v)=>{if(p==null)s(g.el=l(g.children),E,v);else{const S=g.el=p.el;g.children!==p.children&&f(S,g.children)}},h=(p,g,E,v)=>{p==null?s(g.el=c(g.children||""),E,v):g.el=p.el},C=(p,g,E,v)=>{[p.el,p.anchor]=T(p.children,g,E,v,p.el,p.anchor)},O=({el:p,anchor:g},E,v)=>{let S;for(;p&&p!==g;)S=d(p),s(p,E,v),p=S;s(g,E,v)},M=({el:p,anchor:g})=>{let E;for(;p&&p!==g;)E=d(p),r(p),p=E;r(g)},H=(p,g,E,v,S,F,D,k,L)=>{D=D||g.type==="svg",p==null?N(g,E,v,S,F,D,k,L):P(p,g,S,F,D,k,L)},N=(p,g,E,v,S,F,D,k)=>{let L,R;const{type:K,props:U,shapeFlag:x,transition:q,patchFlag:X,dirs:re}=p;if(p.el&&b!==void 0&&X===-1)L=p.el=b(p.el);else{if(L=p.el=o(p.type,F,U&&U.is,U),x&8?a(L,p.children):x&16&&A(p.children,L,null,v,S,F&&K!=="foreignObject",D,k),re&&ze(p,null,v,"created"),U){for(const le in U)le!=="value"&&!Rt(le)&&i(L,le,null,U[le],F,p.children,v,S,Ge);"value"in U&&i(L,"value",null,U.value),(R=U.onVnodeBeforeMount)&&we(R,v,p)}_(L,p,p.scopeId,D,v)}re&&ze(p,null,v,"beforeMount");const ie=(!S||S&&!S.pendingBranch)&&q&&!q.persisted;ie&&q.beforeEnter(L),s(L,g,E),((R=U&&U.onVnodeMounted)||ie||re)&&me(()=>{R&&we(R,v,p),ie&&q.enter(L),re&&ze(p,null,v,"mounted")},S)},_=(p,g,E,v,S)=>{if(E&&y(p,E),v)for(let F=0;F{for(let R=L;R{const k=g.el=p.el;let{patchFlag:L,dynamicChildren:R,dirs:K}=g;L|=p.patchFlag&16;const U=p.props||Q,x=g.props||Q;let q;E&&Tt(E,!1),(q=x.onVnodeBeforeUpdate)&&we(q,E,g,p),K&&ze(g,p,E,"beforeUpdate"),E&&Tt(E,!0);const X=S&&g.type!=="foreignObject";if(R?B(p.dynamicChildren,R,k,E,v,X,F):D||Qe(p,g,k,null,E,v,X,F,!1),L>0){if(L&16)I(k,g,U,x,E,v,S);else if(L&2&&U.class!==x.class&&i(k,"class",null,x.class,S),L&4&&i(k,"style",U.style,x.style,S),L&8){const re=g.dynamicProps;for(let ie=0;ie{q&&we(q,E,g,p),K&&ze(g,p,E,"updated")},v)},B=(p,g,E,v,S,F,D)=>{for(let k=0;k{if(E!==v){for(const k in v){if(Rt(k))continue;const L=v[k],R=E[k];L!==R&&k!=="value"&&i(p,k,R,L,D,g.children,S,F,Ge)}if(E!==Q)for(const k in E)!Rt(k)&&!(k in v)&&i(p,k,E[k],null,D,g.children,S,F,Ge);"value"in v&&i(p,"value",E.value,v.value)}},j=(p,g,E,v,S,F,D,k,L)=>{const R=g.el=p?p.el:l(""),K=g.anchor=p?p.anchor:l("");let{patchFlag:U,dynamicChildren:x,slotScopeIds:q}=g;q&&(k=k?k.concat(q):q),p==null?(s(R,E,v),s(K,E,v),A(g.children,E,K,S,F,D,k,L)):U>0&&U&64&&x&&p.dynamicChildren?(B(p.dynamicChildren,x,E,S,F,D,k),(g.key!=null||S&&g===S.subTree)&&gi(p,g,!0)):Qe(p,g,E,K,S,F,D,k,L)},$=(p,g,E,v,S,F,D,k,L)=>{g.slotScopeIds=k,p==null?g.shapeFlag&512?S.ctx.activate(g,E,v,D,L):fe(g,E,v,S,F,D,L):G(p,g,L)},fe=(p,g,E,v,S,F,D)=>{const k=p.component=rc(p,v,S);if(xn(p)&&(k.ctx.renderer=qt),oc(k),k.asyncDep){if(S&&S.registerDep(k,oe),!p.el){const L=k.subTree=ce(Ce);h(null,L,g,E)}return}oe(k,p,g,E,S,F,D)},G=(p,g,E)=>{const v=g.component=p.component;if(qa(p,g,E))if(v.asyncDep&&!v.asyncResolved){te(v,g,E);return}else v.next=g,Ba(v.update),v.update();else g.el=p.el,v.vnode=g},oe=(p,g,E,v,S,F,D)=>{const k=()=>{if(p.isMounted){let{next:K,bu:U,u:x,parent:q,vnode:X}=p,re=K,ie;Tt(p,!1),K?(K.el=X.el,te(p,K,D)):K=X,U&&en(U),(ie=K.props&&K.props.onVnodeBeforeUpdate)&&we(ie,q,K,X),Tt(p,!0);const le=us(p),je=p.subTree;p.subTree=le,w(je,le,u(je.el),Zn(je),p,S,F),K.el=le.el,re===null&&li(p,le.el),x&&me(x,S),(ie=K.props&&K.props.onVnodeUpdated)&&me(()=>we(ie,q,K,X),S)}else{let K;const{el:U,props:x}=g,{bm:q,m:X,parent:re}=p,ie=Mt(g);if(Tt(p,!1),q&&en(q),!ie&&(K=x&&x.onVnodeBeforeMount)&&we(K,re,g),Tt(p,!0),U&&lr){const le=()=>{p.subTree=us(p),lr(U,p.subTree,p,S,null)};ie?g.type.__asyncLoader().then(()=>!p.isUnmounted&&le()):le()}else{const le=p.subTree=us(p);w(null,le,E,v,p,S,F),g.el=le.el}if(X&&me(X,S),!ie&&(K=x&&x.onVnodeMounted)){const le=g;me(()=>we(K,re,le),S)}(g.shapeFlag&256||re&&Mt(re.vnode)&&re.vnode.shapeFlag&256)&&p.a&&me(p.a,S),p.isMounted=!0,g=E=v=null}},L=p.effect=new jn(k,()=>js(R),p.scope),R=p.update=()=>L.run();R.id=p.uid,Tt(p,!0),R()},te=(p,g,E)=>{g.component=p;const v=p.vnode.props;p.vnode=g,p.next=null,Su(p,g.props,v,E),Nu(p,g.children,E),jt(),no(),Kt()},Qe=(p,g,E,v,S,F,D,k,L=!1)=>{const R=p&&p.children,K=p?p.shapeFlag:0,U=g.children,{patchFlag:x,shapeFlag:q}=g;if(x>0){if(x&128){dn(R,U,E,v,S,F,D,k,L);return}else if(x&256){ir(R,U,E,v,S,F,D,k,L);return}}q&8?(K&16&&Ge(R,S,F),U!==R&&a(E,U)):K&16?q&16?dn(R,U,E,v,S,F,D,k,L):Ge(R,S,F,!0):(K&8&&a(E,""),q&16&&A(U,E,v,S,F,D,k,L))},ir=(p,g,E,v,S,F,D,k,L)=>{p=p||Xt,g=g||Xt;const R=p.length,K=g.length,U=Math.min(R,K);let x;for(x=0;xK?Ge(p,S,F,!0,!1,U):A(g,E,v,S,F,D,k,L,U)},dn=(p,g,E,v,S,F,D,k,L)=>{let R=0;const K=g.length;let U=p.length-1,x=K-1;for(;R<=U&&R<=x;){const q=p[R],X=g[R]=L?ut(g[R]):Ae(g[R]);if(Ye(q,X))w(q,X,E,null,S,F,D,k,L);else break;R++}for(;R<=U&&R<=x;){const q=p[U],X=g[x]=L?ut(g[x]):Ae(g[x]);if(Ye(q,X))w(q,X,E,null,S,F,D,k,L);else break;U--,x--}if(R>U){if(R<=x){const q=x+1,X=qx)for(;R<=U;)ot(p[R],S,F,!0),R++;else{const q=R,X=R,re=new Map;for(R=X;R<=x;R++){const Pe=g[R]=L?ut(g[R]):Ae(g[R]);Pe.key!=null&&re.set(Pe.key,R)}let ie,le=0;const je=x-X+1;let zt=!1,xi=0;const hn=new Array(je);for(R=0;R=je){ot(Pe,S,F,!0);continue}let qe;if(Pe.key!=null)qe=re.get(Pe.key);else for(ie=X;ie<=x;ie++)if(hn[ie-X]===0&&Ye(Pe,g[ie])){qe=ie;break}qe===void 0?ot(Pe,S,F,!0):(hn[qe-X]=R+1,qe>=xi?xi=qe:zt=!0,w(Pe,g[qe],E,null,S,F,D,k,L),le++)}const Wi=zt?Au(hn):Xt;for(ie=Wi.length-1,R=je-1;R>=0;R--){const Pe=X+R,qe=g[Pe],qi=Pe+1{const{el:F,type:D,transition:k,children:L,shapeFlag:R}=p;if(R&6){Wt(p.component.subTree,g,E,v);return}if(R&128){p.suspense.move(g,E,v);return}if(R&64){D.move(p,g,E,qt);return}if(D===ye){s(F,g,E);for(let U=0;Uk.enter(F),S);else{const{leave:U,delayLeave:x,afterLeave:q}=k,X=()=>s(F,g,E),re=()=>{U(F,()=>{X(),q&&q()})};x?x(F,X,re):re()}else s(F,g,E)},ot=(p,g,E,v=!1,S=!1)=>{const{type:F,props:D,ref:k,children:L,dynamicChildren:R,shapeFlag:K,patchFlag:U,dirs:x}=p;if(k!=null&&Es(k,null,E,p,!0),K&256){g.ctx.deactivate(p);return}const q=K&1&&x,X=!Mt(p);let re;if(X&&(re=D&&D.onVnodeBeforeUnmount)&&we(re,g,p),K&6)Ef(p.component,E,v);else{if(K&128){p.suspense.unmount(E,v);return}q&&ze(p,null,g,"beforeUnmount"),K&64?p.type.remove(p,g,E,S,qt,v):R&&(F!==ye||U>0&&U&64)?Ge(R,g,E,!1,!0):(F===ye&&U&384||!S&&K&16)&&Ge(L,g,E),v&&ji(p)}(X&&(re=D&&D.onVnodeUnmounted)||q)&&me(()=>{re&&we(re,g,p),q&&ze(p,null,g,"unmounted")},E)},ji=p=>{const{type:g,el:E,anchor:v,transition:S}=p;if(g===ye){_f(E,v);return}if(g===kt){M(p);return}const F=()=>{r(E),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(p.shapeFlag&1&&S&&!S.persisted){const{leave:D,delayLeave:k}=S,L=()=>D(E,F);k?k(p.el,F,L):L()}else F()},_f=(p,g)=>{let E;for(;p!==g;)E=d(p),r(p),p=E;r(g)},Ef=(p,g,E)=>{const{bum:v,scope:S,update:F,subTree:D,um:k}=p;v&&en(v),S.stop(),F&&(F.active=!1,ot(D,p,g,E)),k&&me(k,g),me(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Ge=(p,g,E,v=!1,S=!1,F=0)=>{for(let D=F;Dp.shapeFlag&6?Zn(p.component.subTree):p.shapeFlag&128?p.suspense.next():d(p.anchor||p.el),Ki=(p,g,E)=>{p==null?g._vnode&&ot(g._vnode,null,null,!0):w(g._vnode||null,p,g,null,null,null,E),no(),ys(),g._vnode=p},qt={p:w,um:ot,m:Wt,r:ji,mt:fe,mc:A,pc:Qe,pbc:B,n:Zn,o:e};let or,lr;return t&&([or,lr]=t(qt)),{render:Ki,hydrate:or,createApp:Pu(Ki,or)}}function Tt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function gi(e,t,n=!1){const s=e.children,r=t.children;if(V(s)&&V(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Iu=e=>e.__isTeleport,Sn=e=>e&&(e.disabled||e.disabled===""),go=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Pr=(e,t)=>{const n=e&&e.to;return z(n)?t?t(n):null:n},Mu={__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,f){const{mc:a,pc:u,pbc:d,o:{insert:y,querySelector:b,createText:T,createComment:w}}=f,m=Sn(t.props);let{shapeFlag:h,children:C,dynamicChildren:O}=t;if(e==null){const M=t.el=T(""),H=t.anchor=T("");y(M,n,s),y(H,n,s);const N=t.target=Pr(t.props,b),_=t.targetAnchor=T("");N&&(y(_,N),o=o||go(N));const A=(P,B)=>{h&16&&a(C,P,B,r,i,o,l,c)};m?A(n,H):N&&A(N,_)}else{t.el=e.el;const M=t.anchor=e.anchor,H=t.target=e.target,N=t.targetAnchor=e.targetAnchor,_=Sn(e.props),A=_?n:H,P=_?M:N;if(o=o||go(H),O?(d(e.dynamicChildren,O,A,r,i,o,l),gi(e,t,!0)):c||u(e,t,A,P,r,i,o,l,!1),m)_||is(t,n,M,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=Pr(t.props,b);B&&is(t,B,null,f,0)}else _&&is(t,H,N,f,1)}},remove(e,t,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:l,children:c,anchor:f,targetAnchor:a,target:u,props:d}=e;if(u&&i(a),(o||!Sn(d))&&(i(f),l&16))for(let y=0;y0?Ne||Xt:null,Gl(),Bt>0&&Ne&&Ne.push(e),e}function Lu(e,t,n,s,r,i){return ec(yi(e,t,n,s,r,i,!0))}function mi(e,t,n,s,r){return ec(ce(e,t,n,s,r,!0))}function bt(e){return e?e.__v_isVNode===!0:!1}function Ye(e,t){return e.type===t.type&&e.key===t.key}function $u(e){}const Xs="__vInternal",tc=({key:e})=>e!=null?e:null,ps=({ref:e,ref_key:t,ref_for:n})=>e!=null?z(e)||he(e)||W(e)?{i:_e,r:e,k:t,f:!!n}:e:null;function yi(e,t=null,n=null,s=0,r=null,i=e===ye?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tc(t),ref:t&&ps(t),scopeId:xs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null};return l?(_i(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=z(n)?8:16),Bt>0&&!o&&Ne&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ne.push(c),c}const ce=Bu;function Bu(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Vl)&&(e=Ce),bt(e)){const l=Xe(e,t,!0);return n&&_i(l,n),Bt>0&&!i&&Ne&&(l.shapeFlag&6?Ne[Ne.indexOf(e)]=l:Ne.push(l)),l.patchFlag|=-2,l}if(Ju(e)&&(e=e.__vccOpts),t){t=nc(t);let{class:l,style:c}=t;l&&!z(l)&&(t.class=Vn(l)),se(c)&&(Qr(c)&&!V(c)&&(c=ee({},c)),t.style=Hn(c))}const o=z(e)?1:wl(e)?128:Iu(e)?64:se(e)?4:W(e)?2:0;return yi(e,t,n,s,r,o,i,!0)}function nc(e){return e?Qr(e)||Xs in e?ee({},e):e:null}function Xe(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?sc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&tc(l),ref:t&&t.ref?n&&r?V(r)?r.concat(ps(t)):[r,ps(t)]:ps(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xe(e.ssContent),ssFallback:e.ssFallback&&Xe(e.ssFallback),el:e.el,anchor:e.anchor}}function bi(e=" ",t=0){return ce(on,null,e,t)}function Du(e,t){const n=ce(kt,null,e);return n.staticCount=t,n}function Hu(e="",t=!1){return t?(Zs(),mi(Ce,null,e)):ce(Ce,null,e)}function Ae(e){return e==null||typeof e=="boolean"?ce(Ce):V(e)?ce(ye,null,e.slice()):typeof e=="object"?ut(e):ce(on,null,String(e))}function ut(e){return e.el===null||e.memo?e:Xe(e)}function _i(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),_i(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Xs in t)?t._ctx=_e:r===3&&_e&&(_e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else W(t)?(t={default:t,_ctx:_e},n=32):(t=String(t),s&64?(n=16,t=[bi(t)]):n=8);e.children=t,e.shapeFlag|=n}function sc(...e){const t={};for(let n=0;nde||_e,_t=e=>{de=e,e.scope.on()},dt=()=>{de&&de.scope.off(),de=null};function ic(e){return e.vnode.shapeFlag&4}let ln=!1;function oc(e,t=!1){ln=t;const{props:n,children:s}=e.vnode,r=ic(e);Tu(e,n,r,t),wu(e,s);const i=r?ju(e,t):void 0;return ln=!1,i}function ju(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Gr(new Proxy(e.ctx,vr));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?cc(e):null;_t(e),jt();const i=Ze(s,e,0,[e.props,r]);if(Kt(),dt(),qr(i)){if(i.then(dt,dt),t)return i.then(o=>{Ar(e,o,t)}).catch(o=>{xt(o,e,0)});e.asyncDep=i}else Ar(e,i,t)}else lc(e,t)}function Ar(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=ni(t)),lc(e,n)}let Cs,Ir;function Ku(e){Cs=e,Ir=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,mu))}}const xu=()=>!Cs;function lc(e,t,n){const s=e.type;if(!e.render){if(!t&&Cs&&!s.render){const r=s.template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,f=ee(ee({isCustomElement:i,delimiters:l},o),c);s.render=Cs(r,f)}}e.render=s.render||Me,Ir&&Ir(e)}_t(e),jt(),yu(e),Kt(),dt()}function Wu(e){return new Proxy(e.attrs,{get(t,n){return $e(e,"get","$attrs"),t[n]}})}function cc(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=Wu(e))},slots:e.slots,emit:e.emit,expose:t}}function Qs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ni(Gr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bs)return bs[n](e)}}))}const qu=/(?:^|[-_])(\w)/g,zu=e=>e.replace(qu,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ts(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function fc(e,t,n=!1){let s=Ts(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=i=>{for(const o in i)if(i[o]===t)return o};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?zu(s):n?"App":"Anonymous"}function Ju(e){return W(e)&&"__vccOpts"in e}const ac=(e,t)=>Aa(e,t,ln);function Yu(){return null}function Zu(){return null}function Xu(e){}function Qu(e,t){return null}function Gu(){return uc().slots}function ep(){return uc().attrs}function uc(){const e=Ct();return e.setupContext||(e.setupContext=cc(e))}function tp(e,t){const n=V(e)?e.reduce((s,r)=>(s[r]={},s),{}):e;for(const s in t){const r=n[s];r?V(r)||W(r)?n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(n[s]={default:t[s]})}return n}function np(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function sp(e){const t=Ct();let n=e();return dt(),qr(n)&&(n=n.catch(s=>{throw _t(t),s})),[n,()=>_t(t)]}function pc(e,t,n){const s=arguments.length;return s===2?se(t)&&!V(t)?bt(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&bt(n)&&(n=[n]),ce(e,t,n))}const dc=Symbol(""),rp=()=>{{const e=Cn(dc);return e||bl("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ip(){}function op(e,t,n,s){const r=n[s];if(r&&hc(r,e))return r;const i=t();return i.memo=e.slice(),n[s]=i}function hc(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s0&&Ne&&Ne.push(e),!0}const gc="3.2.38",lp={createComponentInstance:rc,setupComponent:oc,renderComponentRoot:us,setCurrentRenderingInstance:In,isVNode:bt,normalizeVNode:Ae},cp=lp,fp=null,ap=null,up="http://www.w3.org/2000/svg",Nt=typeof document!="undefined"?document:null,mo=Nt&&Nt.createElement("template"),pp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Nt.createElementNS(up,e):Nt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{mo.innerHTML=s?`${e}`:e;const l=mo.content;if(s){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function dp(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function hp(e,t,n){const s=e.style,r=z(n);if(n&&!r){for(const i in n)Mr(s,i,n[i]);if(t&&!z(t))for(const i in t)n[i]==null&&Mr(s,i,"")}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const yo=/\s*!important$/;function Mr(e,t,n){if(V(n))n.forEach(s=>Mr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=gp(e,t);yo.test(n)?e.setProperty(xe(s),n.replace(yo,""),"important"):e[s]=n}}const bo=["Webkit","Moz","ms"],pr={};function gp(e,t){const n=pr[t];if(n)return n;let s=Se(t);if(s!=="filter"&&s in e)return pr[t]=s;s=Ut(s);for(let r=0;r{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let kr=0;const _p=Promise.resolve(),Ep=()=>{kr=0},Cp=()=>kr||(_p.then(Ep),kr=mc());function nt(e,t,n,s){e.addEventListener(t,n,s)}function Tp(e,t,n,s){e.removeEventListener(t,n,s)}function Sp(e,t,n,s,r=null){const i=e._vei||(e._vei={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=vp(t);if(s){const f=i[t]=wp(s,r);nt(e,l,f,c)}else o&&(Tp(e,l,o,c),i[t]=void 0)}}const Eo=/(?:Once|Passive|Capture)$/;function vp(e){let t;if(Eo.test(e)){t={};let s;for(;s=e.match(Eo);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xe(e.slice(2)),t]}function wp(e,t){const n=s=>{const r=s.timeStamp||mc();(bp||r>=n.attached-1)&&ke(Np(s,n.value),t,5,[s])};return n.value=e,n.attached=Cp(),n}function Np(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Co=/^on[a-z]/,Op=(e,t,n,s,r=!1,i,o,l,c)=>{t==="class"?dp(e,s,r):t==="style"?hp(e,n,s):Ht(t)?xr(t)||Sp(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Pp(e,t,s,r))?yp(e,t,s,i,o,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),mp(e,t,s,r))};function Pp(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Co.test(t)&&W(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Co.test(t)&&z(n)?!1:t in e}function yc(e,t){const n=ui(e);class s extends Gs{constructor(i){super(n,i,t)}}return s.def=n,s}const Rp=e=>yc(e,Mc),Ap=typeof HTMLElement!="undefined"?HTMLElement:class{};class Gs extends Ap{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,ri(()=>{this._connected||(Lr(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let s=0;s{for(const r of s)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=s=>{const{props:r,styles:i}=s,o=!V(r),l=r?o?Object.keys(r):r:[];let c;if(o)for(const f in this._props){const a=r[f];(a===Number||a&&a.type===Number)&&(this._props[f]=mt(this._props[f]),(c||(c=Object.create(null)))[f]=!0)}this._numberProps=c;for(const f of Object.keys(this))f[0]!=="_"&&this._setProp(f,this[f],!0,!1);for(const f of l.map(Se))Object.defineProperty(this,f,{get(){return this._getProp(f)},set(a){this._setProp(f,a)}});this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=mt(n)),this._setProp(Se(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(xe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(xe(t),n+""):n||this.removeAttribute(xe(t))))}_update(){Lr(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ce(this._def,ee({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(r,...i)=>{this.dispatchEvent(new CustomEvent(r,{detail:i}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof Gs){n.parent=s._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}function Ip(e="$style"){{const t=Ct();if(!t)return Q;const n=t.type.__cssModules;if(!n)return Q;const s=n[e];return s||Q}}function Mp(e){const t=Ct();if(!t)return;const n=()=>Fr(t.subTree,e(t.proxy));Pl(n),Wn(()=>{const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),Ys(()=>s.disconnect())})}function Fr(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Fr(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)To(e.el,t);else if(e.type===ye)e.children.forEach(n=>Fr(n,t));else if(e.type===kt){let{el:n,anchor:s}=e;for(;n&&(To(n,t),n!==s);)n=n.nextSibling}}function To(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const ft="transition",gn="animation",Ei=(e,{slots:t})=>pc(ai,_c(e),t);Ei.displayName="Transition";const bc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},kp=Ei.props=ee({},ai.props,bc),St=(e,t=[])=>{V(e)?e.forEach(n=>n(...t)):e&&e(...t)},So=e=>e?V(e)?e.some(t=>t.length>1):e.length>1:!1;function _c(e){const t={};for(const I in e)I in bc||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=o,appearToClass:a=l,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,b=Fp(r),T=b&&b[0],w=b&&b[1],{onBeforeEnter:m,onEnter:h,onEnterCancelled:C,onLeave:O,onLeaveCancelled:M,onBeforeAppear:H=m,onAppear:N=h,onAppearCancelled:_=C}=t,A=(I,j,$)=>{at(I,j?a:l),at(I,j?f:o),$&&$()},P=(I,j)=>{I._isLeaving=!1,at(I,u),at(I,y),at(I,d),j&&j()},B=I=>(j,$)=>{const fe=I?N:h,G=()=>A(j,I,$);St(fe,[j,G]),vo(()=>{at(j,I?c:i),et(j,I?a:l),So(fe)||wo(j,s,T,G)})};return ee(t,{onBeforeEnter(I){St(m,[I]),et(I,i),et(I,o)},onBeforeAppear(I){St(H,[I]),et(I,c),et(I,f)},onEnter:B(!1),onAppear:B(!0),onLeave(I,j){I._isLeaving=!0;const $=()=>P(I,j);et(I,u),Cc(),et(I,d),vo(()=>{!I._isLeaving||(at(I,u),et(I,y),So(O)||wo(I,s,w,$))}),St(O,[I,$])},onEnterCancelled(I){A(I,!1),St(C,[I])},onAppearCancelled(I){A(I,!0),St(_,[I])},onLeaveCancelled(I){P(I),St(M,[I])}})}function Fp(e){if(e==null)return null;if(se(e))return[dr(e.enter),dr(e.leave)];{const t=dr(e);return[t,t]}}function dr(e){return mt(e)}function et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function at(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function vo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Lp=0;function wo(e,t,n,s){const r=e._endId=++Lp,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Ec(e,t);if(!o)return s();const f=o+"end";let a=0;const u=()=>{e.removeEventListener(f,d),i()},d=y=>{y.target===e&&++a>=c&&u()};setTimeout(()=>{a(n[b]||"").split(", "),r=s(ft+"Delay"),i=s(ft+"Duration"),o=No(r,i),l=s(gn+"Delay"),c=s(gn+"Duration"),f=No(l,c);let a=null,u=0,d=0;t===ft?o>0&&(a=ft,u=o,d=i.length):t===gn?f>0&&(a=gn,u=f,d=c.length):(u=Math.max(o,f),a=u>0?o>f?ft:gn:null,d=a?a===ft?i.length:c.length:0);const y=a===ft&&/\b(transform|all)(,|$)/.test(n[ft+"Property"]);return{type:a,timeout:u,propCount:d,hasTransform:y}}function No(e,t){for(;e.lengthOo(n)+Oo(e[s])))}function Oo(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Cc(){return document.body.offsetHeight}const Tc=new WeakMap,Sc=new WeakMap,$p={name:"TransitionGroup",props:ee({},kp,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ct(),s=fi();let r,i;return zs(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Up(r[0].el,n.vnode.el,o))return;r.forEach(Dp),r.forEach(Hp);const l=r.filter(Vp);Cc(),l.forEach(c=>{const f=c.el,a=f.style;et(f,o),a.transform=a.webkitTransform=a.transitionDuration="";const u=f._moveCb=d=>{d&&d.target!==f||(!d||/transform$/.test(d.propertyName))&&(f.removeEventListener("transitionend",u),f._moveCb=null,at(f,o))};f.addEventListener("transitionend",u)})}),()=>{const o=Y(e),l=_c(o);let c=o.tag||ye;r=i,i=t.default?Ws(t.default()):[];for(let f=0;f{o.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Ec(s);return r.removeChild(s),i}const Et=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>en(t,n):t};function jp(e){e.target.composing=!0}function Po(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ss={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=Et(r);const i=s||r.props&&r.props.type==="number";nt(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=mt(l)),e._assign(l)}),n&&nt(e,"change",()=>{e.value=e.value.trim()}),t||(nt(e,"compositionstart",jp),nt(e,"compositionend",Po),nt(e,"change",Po))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=Et(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&mt(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},Ci={deep:!0,created(e,t,n){e._assign=Et(n),nt(e,"change",()=>{const s=e._modelValue,r=cn(e),i=e.checked,o=e._assign;if(V(s)){const l=Fs(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const f=[...s];f.splice(l,1),o(f)}}else if(Vt(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(wc(e,i))})},mounted:Ro,beforeUpdate(e,t,n){e._assign=Et(n),Ro(e,t,n)}};function Ro(e,{value:t,oldValue:n},s){e._modelValue=t,V(t)?e.checked=Fs(t,s.props.value)>-1:Vt(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=ht(t,wc(e,!0)))}const Ti={created(e,{value:t},n){e.checked=ht(t,n.props.value),e._assign=Et(n),nt(e,"change",()=>{e._assign(cn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=Et(s),t!==n&&(e.checked=ht(t,s.props.value))}},vc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Vt(t);nt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?mt(cn(o)):cn(o));e._assign(e.multiple?r?new Set(i):i:i[0])}),e._assign=Et(s)},mounted(e,{value:t}){Ao(e,t)},beforeUpdate(e,t,n){e._assign=Et(n)},updated(e,{value:t}){Ao(e,t)}};function Ao(e,t){const n=e.multiple;if(!(n&&!V(t)&&!Vt(t))){for(let s=0,r=e.options.length;s-1:i.selected=t.has(o);else if(ht(cn(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function cn(e){return"_value"in e?e._value:e.value}function wc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Nc={created(e,t,n){os(e,t,n,null,"created")},mounted(e,t,n){os(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){os(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){os(e,t,n,s,"updated")}};function Oc(e,t){switch(e){case"SELECT":return vc;case"TEXTAREA":return Ss;default:switch(t){case"checkbox":return Ci;case"radio":return Ti;default:return Ss}}}function os(e,t,n,s,r){const o=Oc(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}function Kp(){Ss.getSSRProps=({value:e})=>({value:e}),Ti.getSSRProps=({value:e},t)=>{if(t.props&&ht(t.props.value,e))return{checked:!0}},Ci.getSSRProps=({value:e},t)=>{if(V(e)){if(t.props&&Fs(e,t.props.value)>-1)return{checked:!0}}else if(Vt(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Nc.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Oc(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const xp=["ctrl","shift","alt","meta"],Wp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xp.some(n=>e[`${n}Key`]&&!t.includes(n))},qp=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=xe(n.key);if(t.some(r=>r===s||zp[r]===s))return e(n)},Pc={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):mn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),mn(e,!0),s.enter(e)):s.leave(e,()=>{mn(e,!1)}):mn(e,t))},beforeUnmount(e,{value:t}){mn(e,t)}};function mn(e,t){e.style.display=t?e._vod:"none"}function Yp(){Pc.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Rc=ee({patchProp:Op},pp);let wn,Io=!1;function Ac(){return wn||(wn=Zl(Rc))}function Ic(){return wn=Io?wn:Xl(Rc),Io=!0,wn}const Lr=(...e)=>{Ac().render(...e)},Mc=(...e)=>{Ic().hydrate(...e)},Zp=(...e)=>{const t=Ac().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=kc(s);if(!r)return;const i=t._component;!W(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},Xp=(...e)=>{const t=Ic().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=kc(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function kc(e){return z(e)?document.querySelector(e):e}let Mo=!1;const Qp=()=>{Mo||(Mo=!0,Kp(),Yp())};var qh=Object.freeze(Object.defineProperty({__proto__:null,Transition:Ei,TransitionGroup:Bp,VueElement:Gs,createApp:Zp,createSSRApp:Xp,defineCustomElement:yc,defineSSRCustomElement:Rp,hydrate:Mc,initDirectivesForSSR:Qp,render:Lr,useCssModule:Ip,useCssVars:Mp,vModelCheckbox:Ci,vModelDynamic:Nc,vModelRadio:Ti,vModelSelect:vc,vModelText:Ss,vShow:Pc,withKeys:Jp,withModifiers:qp,EffectScope:Jr,ReactiveEffect:jn,customRef:Na,effect:Jf,effectScope:Kf,getCurrentScope:xf,isProxy:Qr,isReactive:It,isReadonly:Lt,isRef:he,isShallow:Pn,markRaw:Gr,onScopeDispose:Wf,proxyRefs:ni,reactive:Hs,readonly:Xr,ref:as,shallowReactive:dl,shallowReadonly:Ea,shallowRef:Ca,stop:Yf,toRaw:Y,toRef:ml,toRefs:Oa,triggerRef:Sa,unref:gl,camelize:Se,capitalize:Ut,normalizeClass:Vn,normalizeProps:Of,normalizeStyle:Hn,toDisplayString:Lf,toHandlerKey:Gt,BaseTransition:ai,Comment:Ce,Fragment:ye,KeepAlive:iu,Static:kt,Suspense:Ja,Teleport:Fu,Text:on,callWithAsyncErrorHandling:ke,callWithErrorHandling:Ze,cloneVNode:Xe,compatUtils:ap,computed:ac,createBlock:mi,createCommentVNode:Hu,createElementBlock:Lu,createElementVNode:yi,createHydrationRenderer:Xl,createPropsRestProxy:np,createRenderer:Zl,createSlots:du,createStaticVNode:Du,createTextVNode:bi,createVNode:ce,defineAsyncComponent:su,defineComponent:ui,defineEmits:Zu,defineExpose:Xu,defineProps:Yu,get devtools(){return Yt},getCurrentInstance:Ct,getTransitionRawChildren:Ws,guardReactiveProps:nc,h:pc,handleError:xt,initCustomFormatter:ip,inject:Cn,isMemoSame:hc,isRuntimeOnly:xu,isVNode:bt,mergeDefaults:tp,mergeProps:sc,nextTick:ri,onActivated:Il,onBeforeMount:Fl,onBeforeUnmount:Js,onBeforeUpdate:Ll,onDeactivated:Ml,onErrorCaptured:Hl,onMounted:Wn,onRenderTracked:Dl,onRenderTriggered:Bl,onServerPrefetch:$l,onUnmounted:Ys,onUpdated:zs,openBlock:Zs,popScopeId:Ua,provide:Ol,pushScopeId:Va,queuePostFlushCb:ii,registerRuntimeCompiler:Ku,renderList:pu,renderSlot:hu,resolveComponent:fu,resolveDirective:uu,resolveDynamicComponent:au,resolveFilter:fp,resolveTransitionHooks:rn,setBlockTracking:Rr,setDevtoolsHook:Sl,setTransitionHooks:$t,ssrContextKey:dc,ssrUtils:cp,toHandlers:gu,transformVNodeArgs:$u,useAttrs:ep,useSSRContext:rp,useSlots:Gu,useTransitionState:fi,version:gc,warn:bl,watch:Tn,watchEffect:Ga,watchPostEffect:Pl,watchSyncEffect:eu,withAsyncContext:sp,withCtx:oi,withDefaults:Qu,withDirectives:lu,withMemo:op,withScopeId:ja},Symbol.toStringTag,{value:"Module"}));function Si(e){throw e}function Fc(e){}function ae(e,t,n,s){const r=e,i=new SyntaxError(String(r));return i.code=e,i.loc=t,i}const kn=Symbol(""),Nn=Symbol(""),vi=Symbol(""),vs=Symbol(""),Lc=Symbol(""),Dt=Symbol(""),$c=Symbol(""),Bc=Symbol(""),wi=Symbol(""),Ni=Symbol(""),qn=Symbol(""),Oi=Symbol(""),Dc=Symbol(""),Pi=Symbol(""),ws=Symbol(""),Ri=Symbol(""),Ai=Symbol(""),Ii=Symbol(""),Mi=Symbol(""),Hc=Symbol(""),Vc=Symbol(""),er=Symbol(""),Ns=Symbol(""),ki=Symbol(""),Fi=Symbol(""),Fn=Symbol(""),zn=Symbol(""),Li=Symbol(""),$r=Symbol(""),Gp=Symbol(""),Br=Symbol(""),Os=Symbol(""),ed=Symbol(""),td=Symbol(""),$i=Symbol(""),nd=Symbol(""),sd=Symbol(""),Bi=Symbol(""),Uc=Symbol(""),fn={[kn]:"Fragment",[Nn]:"Teleport",[vi]:"Suspense",[vs]:"KeepAlive",[Lc]:"BaseTransition",[Dt]:"openBlock",[$c]:"createBlock",[Bc]:"createElementBlock",[wi]:"createVNode",[Ni]:"createElementVNode",[qn]:"createCommentVNode",[Oi]:"createTextVNode",[Dc]:"createStaticVNode",[Pi]:"resolveComponent",[ws]:"resolveDynamicComponent",[Ri]:"resolveDirective",[Ai]:"resolveFilter",[Ii]:"withDirectives",[Mi]:"renderList",[Hc]:"renderSlot",[Vc]:"createSlots",[er]:"toDisplayString",[Ns]:"mergeProps",[ki]:"normalizeClass",[Fi]:"normalizeStyle",[Fn]:"normalizeProps",[zn]:"guardReactiveProps",[Li]:"toHandlers",[$r]:"camelize",[Gp]:"capitalize",[Br]:"toHandlerKey",[Os]:"setBlockTracking",[ed]:"pushScopeId",[td]:"popScopeId",[$i]:"withCtx",[nd]:"unref",[sd]:"isRef",[Bi]:"withMemo",[Uc]:"isMemoSame"};function rd(e){Object.getOwnPropertySymbols(e).forEach(t=>{fn[t]=e[t]})}const Be={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function id(e,t=Be){return{type:0,children:e,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function Ln(e,t,n,s,r,i,o,l=!1,c=!1,f=!1,a=Be){return e&&(l?(e.helper(Dt),e.helper(pn(e.inSSR,f))):e.helper(un(e.inSSR,f)),o&&e.helper(Ii)),{type:13,tag:t,props:n,children:s,patchFlag:r,dynamicProps:i,directives:o,isBlock:l,disableTracking:c,isComponent:f,loc:a}}function Jn(e,t=Be){return{type:17,loc:t,elements:e}}function Ve(e,t=Be){return{type:15,loc:t,properties:e}}function ue(e,t){return{type:16,loc:Be,key:z(e)?J(e,!0):e,value:t}}function J(e,t=!1,n=Be,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function We(e,t=Be){return{type:8,loc:t,children:e}}function pe(e,t=[],n=Be){return{type:14,loc:n,callee:e,arguments:t}}function an(e,t=void 0,n=!1,s=!1,r=Be){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:r}}function Dr(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:Be}}function od(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:Be}}function ld(e){return{type:21,body:e,loc:Be}}const Fe=e=>e.type===4&&e.isStatic,Zt=(e,t)=>e===t||e===xe(t);function jc(e){if(Zt(e,"Teleport"))return Nn;if(Zt(e,"Suspense"))return vi;if(Zt(e,"KeepAlive"))return vs;if(Zt(e,"BaseTransition"))return Lc}const cd=/^\d|[^\$\w]/,Di=e=>!cd.test(e),fd=/[A-Za-z_$\xA0-\uFFFF]/,ad=/[\.\?\w$\xA0-\uFFFF]/,ud=/\s+[.[]\s*|\s*[.[]\s+/g,pd=e=>{e=e.trim().replace(ud,o=>o.trim());let t=0,n=[],s=0,r=0,i=null;for(let o=0;ot.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function hr(e){return e.type===5||e.type===2}function hd(e){return e.type===7&&e.name==="slot"}function As(e){return e.type===1&&e.tagType===3}function Is(e){return e.type===1&&e.tagType===2}function un(e,t){return e||t?wi:Ni}function pn(e,t){return e||t?$c:Bc}const gd=new Set([Fn,zn]);function Wc(e,t=[]){if(e&&!z(e)&&e.type===14){const n=e.callee;if(!z(n)&&gd.has(n))return Wc(e.arguments[0],t.concat(e))}return[e,t]}function Ms(e,t,n){let s,r=e.type===13?e.props:e.arguments[2],i=[],o;if(r&&!z(r)&&r.type===14){const l=Wc(r);r=l[0],i=l[1],o=i[i.length-1]}if(r==null||z(r))s=Ve([t]);else if(r.type===14){const l=r.arguments[0];!z(l)&&l.type===15?l.properties.unshift(t):r.callee===Li?s=pe(n.helper(Ns),[Ve([t]),r]):r.arguments.unshift(Ve([t])),!s&&(s=r)}else if(r.type===15){let l=!1;if(t.key.type===4){const c=t.key.content;l=r.properties.some(f=>f.key.type===4&&f.key.content===c)}l||r.properties.unshift(t),s=r}else s=pe(n.helper(Ns),[Ve([t]),r]),o&&o.callee===zn&&(o=i[i.length-2]);e.type===13?o?o.arguments[0]=s:e.props=s:o?o.arguments[0]=s:e.arguments[2]=s}function $n(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function md(e){return e.type===14&&e.callee===Bi?e.arguments[1].returns:e}function Hi(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(un(s,e.isComponent)),t(Dt),t(pn(s,e.isComponent)))}function ko(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,s=n&&n[e];return e==="MODE"?s||3:s}function Ft(e,t){const n=ko("MODE",t),s=ko(e,t);return n===3?s===!0:s!==!1}function Bn(e,t,n,...s){return Ft(e,t)}const yd=/&(gt|lt|amp|apos|quot);/g,bd={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Fo={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:fs,isPreTag:fs,isCustomElement:fs,decodeEntities:e=>e.replace(yd,(t,n)=>bd[n]),onError:Si,onWarn:Fc,comments:!1};function _d(e,t={}){const n=Ed(e,t),s=Le(n);return id(Vi(n,0,[]),Ue(n,s))}function Ed(e,t){const n=ee({},Fo);let s;for(s in t)n[s]=t[s]===void 0?Fo[s]:t[s];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Vi(e,t,n){const s=nr(n),r=s?s.ns:0,i=[];for(;!Rd(e,t,n);){const l=e.source;let c;if(t===0||t===1){if(!e.inVPre&&Ee(l,e.options.delimiters[0]))c=Od(e,t);else if(t===0&&l[0]==="<")if(l.length===1)ne(e,5,1);else if(l[1]==="!")Ee(l,"=0;){const f=o[l];f&&f.type===9&&(c+=f.branches.length)}return()=>{if(i)s.codegenNode=Ho(r,c,n);else{const f=eh(s.codegenNode);f.alternate=Ho(r,c+s.branches.length-1,n)}}}));function Gd(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(ae(28,t.loc)),t.exp=J("true",!1,r)}if(t.name==="if"){const r=Do(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),s)return s(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-->=-1;){const o=r[i];if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&n.onError(ae(30,e.loc)),n.removeNode();const l=Do(e,t);o.branches.push(l);const c=s&&s(o,l,!1);sr(l,n),c&&c(),n.currentNode=null}else n.onError(ae(30,e.loc));break}}}function Do(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!He(e,"for")?e.children:[e],userKey:tr(e,"key"),isTemplateIf:n}}function Ho(e,t,n){return e.condition?Dr(e.condition,Vo(e,t,n),pe(n.helper(qn),['""',"true"])):Vo(e,t,n)}function Vo(e,t,n){const{helper:s}=n,r=ue("key",J(`${t}`,!1,Be,2)),{children:i}=e,o=i[0];if(i.length!==1||o.type!==1)if(i.length===1&&o.type===11){const c=o.codegenNode;return Ms(c,r,n),c}else{let c=64;return Ln(n,s(kn),Ve([r]),i,c+"",void 0,void 0,!0,!1,!1,e.loc)}else{const c=o.codegenNode,f=md(c);return f.type===13&&Hi(f,n),Ms(f,r,n),c}}function eh(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const th=Qc("for",(e,t,n)=>{const{helper:s,removeHelper:r}=n;return nh(e,t,n,i=>{const o=pe(s(Mi),[i.source]),l=As(e),c=He(e,"memo"),f=tr(e,"key"),a=f&&(f.type===6?J(f.value.content,!0):f.exp),u=f?ue("key",a):null,d=i.source.type===4&&i.source.constType>0,y=d?64:f?128:256;return i.codegenNode=Ln(n,s(kn),void 0,o,y+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let b;const{children:T}=i,w=T.length!==1||T[0].type!==1,m=Is(e)?e:l&&e.children.length===1&&Is(e.children[0])?e.children[0]:null;if(m?(b=m.codegenNode,l&&u&&Ms(b,u,n)):w?b=Ln(n,s(kn),u?Ve([u]):void 0,e.children,64+"",void 0,void 0,!0,void 0,!1):(b=T[0].codegenNode,l&&u&&Ms(b,u,n),b.isBlock!==!d&&(b.isBlock?(r(Dt),r(pn(n.inSSR,b.isComponent))):r(un(n.inSSR,b.isComponent))),b.isBlock=!d,b.isBlock?(s(Dt),s(pn(n.inSSR,b.isComponent))):s(un(n.inSSR,b.isComponent))),c){const h=an(Ur(i.parseResult,[J("_cached")]));h.body=ld([We(["const _memo = (",c.exp,")"]),We(["if (_cached",...a?[" && _cached.key === ",a]:[],` && ${n.helperString(Uc)}(_cached, _memo)) return _cached`]),We(["const _item = ",b]),J("_item.memo = _memo"),J("return _item")]),o.arguments.push(h,J("_cache"),J(String(n.cached++)))}else o.arguments.push(an(Ur(i.parseResult),b,!0))}})});function nh(e,t,n,s){if(!t.exp){n.onError(ae(31,t.loc));return}const r=nf(t.exp);if(!r){n.onError(ae(32,t.loc));return}const{addIdentifiers:i,removeIdentifiers:o,scopes:l}=n,{source:c,value:f,key:a,index:u}=r,d={type:11,loc:t.loc,source:c,valueAlias:f,keyAlias:a,objectIndexAlias:u,parseResult:r,children:As(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const y=s&&s(d);return()=>{l.vFor--,y&&y()}}const sh=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Uo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,rh=/^\(|\)$/g;function nf(e,t){const n=e.loc,s=e.content,r=s.match(sh);if(!r)return;const[,i,o]=r,l={source:ls(n,o.trim(),s.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0};let c=i.trim().replace(rh,"").trim();const f=i.indexOf(c),a=c.match(Uo);if(a){c=c.replace(Uo,"").trim();const u=a[1].trim();let d;if(u&&(d=s.indexOf(u,f+c.length),l.key=ls(n,u,d)),a[2]){const y=a[2].trim();y&&(l.index=ls(n,y,s.indexOf(y,l.key?d+u.length:f+c.length)))}}return c&&(l.value=ls(n,c,f)),l}function ls(e,t,n){return J(t,!1,xc(e,n,t.length))}function Ur({value:e,key:t,index:n},s=[]){return ih([e,t,n,...s])}function ih(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||J("_".repeat(s+1),!1))}const jo=J("undefined",!1),oh=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=He(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},lh=(e,t,n)=>an(e,t,!1,!0,t.length?t[0].loc:n);function ch(e,t,n=lh){t.helper($i);const{children:s,loc:r}=e,i=[],o=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=He(e,"slot",!0);if(c){const{arg:w,exp:m}=c;w&&!Fe(w)&&(l=!0),i.push(ue(w||J("default",!0),n(m,s,r)))}let f=!1,a=!1;const u=[],d=new Set;let y=0;for(let w=0;w{const C=n(m,h,r);return t.compatConfig&&(C.isNonScopedSlot=!0),ue("default",C)};f?u.length&&u.some(m=>sf(m))&&(a?t.onError(ae(39,u[0].loc)):i.push(w(void 0,u))):i.push(w(void 0,s))}const b=l?2:hs(e.children)?3:1;let T=Ve(i.concat(ue("_",J(b+"",!1))),r);return o.length&&(T=pe(t.helper(Vc),[T,Jn(o)])),{slots:T,hasDynamicSlots:l}}function cs(e,t,n){const s=[ue("name",e),ue("fn",t)];return n!=null&&s.push(ue("key",J(String(n),!0))),Ve(s)}function hs(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:r}=e,i=e.tagType===1;let o=i?ah(e,t):`"${s}"`;const l=se(o)&&o.callee===ws;let c,f,a,u=0,d,y,b,T=l||o===Nn||o===vi||!i&&(s==="svg"||s==="foreignObject");if(r.length>0){const w=of(e,t,void 0,i,l);c=w.props,u=w.patchFlag,y=w.dynamicPropNames;const m=w.directives;b=m&&m.length?Jn(m.map(h=>ph(h,t))):void 0,w.shouldUseBlock&&(T=!0)}if(e.children.length>0)if(o===vs&&(T=!0,u|=1024),i&&o!==Nn&&o!==vs){const{slots:m,hasDynamicSlots:h}=ch(e,t);f=m,h&&(u|=1024)}else if(e.children.length===1&&o!==Nn){const m=e.children[0],h=m.type,C=h===5||h===8;C&&Ie(m,t)===0&&(u|=1),C||h===2?f=m:f=e.children}else f=e.children;u!==0&&(a=String(u),y&&y.length&&(d=dh(y))),e.codegenNode=Ln(t,o,c,f,a,d,b,!!T,!1,i,e.loc)};function ah(e,t,n=!1){let{tag:s}=e;const r=jr(s),i=tr(e,"is");if(i)if(r||Ft("COMPILER_IS_ON_ELEMENT",t)){const c=i.type===6?i.value&&J(i.value.content,!0):i.exp;if(c)return pe(t.helper(ws),[c])}else i.type===6&&i.value.content.startsWith("vue:")&&(s=i.value.content.slice(4));const o=!r&&He(e,"is");if(o&&o.exp)return pe(t.helper(ws),[o.exp]);const l=jc(s)||t.isBuiltInComponent(s);return l?(n||t.helper(l),l):(t.helper(Pi),t.components.add(s),$n(s,"component"))}function of(e,t,n=e.props,s,r,i=!1){const{tag:o,loc:l,children:c}=e;let f=[];const a=[],u=[],d=c.length>0;let y=!1,b=0,T=!1,w=!1,m=!1,h=!1,C=!1,O=!1;const M=[],H=({key:_,value:A})=>{if(Fe(_)){const P=_.content,B=Ht(P);if(B&&(!s||r)&&P.toLowerCase()!=="onclick"&&P!=="onUpdate:modelValue"&&!Rt(P)&&(h=!0),B&&Rt(P)&&(O=!0),A.type===20||(A.type===4||A.type===8)&&Ie(A,t)>0)return;P==="ref"?T=!0:P==="class"?w=!0:P==="style"?m=!0:P!=="key"&&!M.includes(P)&&M.push(P),s&&(P==="class"||P==="style")&&!M.includes(P)&&M.push(P)}else C=!0};for(let _=0;_0&&f.push(ue(J("ref_for",!0),J("true")))),B==="is"&&(jr(o)||I&&I.content.startsWith("vue:")||Ft("COMPILER_IS_ON_ELEMENT",t)))continue;f.push(ue(J(B,!0,xc(P,0,B.length)),J(I?I.content:"",j,I?I.loc:P)))}else{const{name:P,arg:B,exp:I,loc:j}=A,$=P==="bind",fe=P==="on";if(P==="slot"){s||t.onError(ae(40,j));continue}if(P==="once"||P==="memo"||P==="is"||$&&Pt(B,"is")&&(jr(o)||Ft("COMPILER_IS_ON_ELEMENT",t))||fe&&i)continue;if(($&&Pt(B,"key")||fe&&d&&Pt(B,"vue:before-update"))&&(y=!0),$&&Pt(B,"ref")&&t.scopes.vFor>0&&f.push(ue(J("ref_for",!0),J("true"))),!B&&($||fe)){if(C=!0,I)if(f.length&&(a.push(Ve(mr(f),l)),f=[]),$){if(Ft("COMPILER_V_BIND_OBJECT_ORDER",t)){a.unshift(I);continue}a.push(I)}else a.push({type:14,loc:j,callee:t.helper(Li),arguments:s?[I]:[I,"true"]});else t.onError(ae($?34:35,j));continue}const G=t.directiveTransforms[P];if(G){const{props:oe,needRuntime:te}=G(A,e,t);!i&&oe.forEach(H),f.push(...oe),te&&(u.push(A),gt(te)&&rf.set(A,te))}else Hf(P)||(u.push(A),d&&(y=!0))}}let N;if(a.length?(f.length&&a.push(Ve(mr(f),l)),a.length>1?N=pe(t.helper(Ns),a,l):N=a[0]):f.length&&(N=Ve(mr(f),l)),C?b|=16:(w&&!s&&(b|=2),m&&!s&&(b|=4),M.length&&(b|=8),h&&(b|=32)),!y&&(b===0||b===32)&&(T||O||u.length>0)&&(b|=512),!t.inSSR&&N)switch(N.type){case 15:let _=-1,A=-1,P=!1;for(let j=0;jue(o,i)),r))}return Jn(n,e.loc)}function dh(e){let t="[";for(let n=0,s=e.length;n{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gh=/-(\w)/g,Ko=hh(e=>e.replace(gh,(t,n)=>n?n.toUpperCase():"")),mh=(e,t)=>{if(Is(e)){const{children:n,loc:s}=e,{slotName:r,slotProps:i}=yh(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(o[2]=i,l=3),n.length&&(o[3]=an([],n,!1,!1,s),l=4),t.scopeId&&!t.slotted&&(l=5),o.splice(l),e.codegenNode=pe(t.helper(Hc),o,s)}};function yh(e,t){let n='"default"',s;const r=[];for(let i=0;i0){const{props:i,directives:o}=of(e,t,r,!1,!1);s=i,o.length&&t.onError(ae(36,o[0].loc))}return{slotName:n,slotProps:s}}const bh=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,lf=(e,t,n,s)=>{const{loc:r,modifiers:i,arg:o}=e;!e.exp&&!i.length&&n.onError(ae(35,r));let l;if(o.type===4)if(o.isStatic){let u=o.content;u.startsWith("vue:")&&(u=`vnode-${u.slice(4)}`);const d=t.tagType===1||u.startsWith("vnode")||!/[A-Z]/.test(u)?Gt(Se(u)):`on:${u}`;l=J(d,!0,o.loc)}else l=We([`${n.helperString(Br)}(`,o,")"]);else l=o,l.children.unshift(`${n.helperString(Br)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let f=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const u=Kc(c.content),d=!(u||bh.test(c.content)),y=c.content.includes(";");(d||f&&u)&&(c=We([`${d?"$event":"(...args)"} => ${y?"{":"("}`,c,y?"}":")"]))}let a={props:[ue(l,c||J("() => {}",!1,r))]};return s&&(a=s(a)),f&&(a.props[0].value=n.cache(a.props[0].value)),a.props.forEach(u=>u.key.isHandlerKey=!0),a},_h=(e,t,n)=>{const{exp:s,modifiers:r,loc:i}=e,o=e.arg;return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),r.includes("camel")&&(o.type===4?o.isStatic?o.content=Se(o.content):o.content=`${n.helperString($r)}(${o.content})`:(o.children.unshift(`${n.helperString($r)}(`),o.children.push(")"))),n.inSSR||(r.includes("prop")&&xo(o,"."),r.includes("attr")&&xo(o,"^")),!s||s.type===4&&!s.content.trim()?(n.onError(ae(34,i)),{props:[ue(o,J("",!0,i))]}):{props:[ue(o,s)]}},xo=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Eh=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,r=!1;for(let i=0;ii.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i{if(e.type===1&&He(e,"once",!0))return Wo.has(e)||t.inVOnce?void 0:(Wo.add(e),t.inVOnce=!0,t.helper(Os),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},cf=(e,t,n)=>{const{exp:s,arg:r}=e;if(!s)return n.onError(ae(41,e.loc)),yr();const i=s.loc.source,o=s.type===4?s.content:i;n.bindingMetadata[i];const l=!1;if(!o.trim()||!Kc(o)&&!l)return n.onError(ae(42,s.loc)),yr();const c=r||J("modelValue",!0),f=r?Fe(r)?`onUpdate:${r.content}`:We(['"onUpdate:" + ',r]):"onUpdate:modelValue";let a;const u=n.isTS?"($event: any)":"$event";a=We([`${u} => ((`,s,") = $event)"]);const d=[ue(c,e.exp),ue(f,a)];if(e.modifiers.length&&t.tagType===1){const y=e.modifiers.map(T=>(Di(T)?T:JSON.stringify(T))+": true").join(", "),b=r?Fe(r)?`${r.content}Modifiers`:We([r,' + "Modifiers"']):"modelModifiers";d.push(ue(b,J(`{ ${y} }`,!1,e.loc,2)))}return yr(d)};function yr(e=[]){return{props:e}}const Th=/[\w).+\-_$\]]/,Sh=(e,t)=>{!Ft("COMPILER_FILTER",t)||(e.type===5&&ks(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&ks(n.exp,t)}))};function ks(e,t){if(e.type===4)qo(e,t);else for(let n=0;n=0&&(h=n.charAt(m),h===" ");m--);(!h||!Th.test(h))&&(o=!0)}}b===void 0?b=n.slice(0,y).trim():a!==0&&w();function w(){T.push(n.slice(a,y).trim()),a=y+1}if(T.length){for(y=0;y{if(e.type===1){const n=He(e,"memo");return!n||zo.has(e)?void 0:(zo.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&Hi(s,t),e.codegenNode=pe(t.helper(Bi),[n.exp,an(void 0,s),"_cache",String(t.cached++)]))})}};function Nh(e){return[[Ch,Qd,wh,th,Sh,mh,fh,oh,Eh],{on:lf,bind:_h,model:cf}]}function Oh(e,t={}){const n=t.onError||Si,s=t.mode==="module";t.prefixIdentifiers===!0?n(ae(46)):s&&n(ae(47));const r=!1;t.cacheHandlers&&n(ae(48)),t.scopeId&&!s&&n(ae(49));const i=z(e)?_d(e,t):e,[o,l]=Nh();return kd(i,ee({},t,{prefixIdentifiers:r,nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:ee({},l,t.directiveTransforms||{})})),Bd(i,ee({},t,{prefixIdentifiers:r}))}const Ph=()=>({props:[]}),ff=Symbol(""),af=Symbol(""),uf=Symbol(""),pf=Symbol(""),Kr=Symbol(""),df=Symbol(""),hf=Symbol(""),gf=Symbol(""),mf=Symbol(""),yf=Symbol("");rd({[ff]:"vModelRadio",[af]:"vModelCheckbox",[uf]:"vModelText",[pf]:"vModelSelect",[Kr]:"vModelDynamic",[df]:"withModifiers",[hf]:"withKeys",[gf]:"vShow",[mf]:"Transition",[yf]:"TransitionGroup"});let Jt;function Rh(e,t=!1){return Jt||(Jt=document.createElement("div")),t?(Jt.innerHTML=`
`,Jt.children[0].getAttribute("foo")):(Jt.innerHTML=e,Jt.textContent)}const Ah=Oe("style,iframe,script,noscript",!0),Ih={isVoidTag:kf,isNativeTag:e=>If(e)||Mf(e),isPreTag:e=>e==="pre",decodeEntities:Rh,isBuiltInComponent:e=>{if(Zt(e,"Transition"))return mf;if(Zt(e,"TransitionGroup"))return yf},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(Ah(e))return 2}return 0}},Mh=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:J("style",!0,t.loc),exp:kh(t.value.content,t.loc),modifiers:[],loc:t.loc})})},kh=(e,t)=>{const n=Zo(e);return J(JSON.stringify(n),!1,t,3)};function st(e,t){return ae(e,t)}const Fh=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(st(50,r)),t.children.length&&(n.onError(st(51,r)),t.children.length=0),{props:[ue(J("innerHTML",!0,r),s||J("",!0))]}},Lh=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(st(52,r)),t.children.length&&(n.onError(st(53,r)),t.children.length=0),{props:[ue(J("textContent",!0),s?Ie(s,n)>0?s:pe(n.helperString(er),[s],r):J("",!0))]}},$h=(e,t,n)=>{const s=cf(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(st(55,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||i){let o=uf,l=!1;if(r==="input"||i){const c=tr(t,"type");if(c){if(c.type===7)o=Kr;else if(c.value)switch(c.value.content){case"radio":o=ff;break;case"checkbox":o=af;break;case"file":l=!0,n.onError(st(56,e.loc));break}}else dd(t)&&(o=Kr)}else r==="select"&&(o=pf);l||(s.needRuntime=n.helper(o))}else n.onError(st(54,e.loc));return s.props=s.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),s},Bh=Oe("passive,once,capture"),Dh=Oe("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Hh=Oe("left,right"),bf=Oe("onkeyup,onkeydown,onkeypress",!0),Vh=(e,t,n,s)=>{const r=[],i=[],o=[];for(let l=0;lFe(e)&&e.content.toLowerCase()==="onclick"?J(t,!0):e.type!==4?We(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,Uh=(e,t,n)=>lf(e,t,n,s=>{const{modifiers:r}=e;if(!r.length)return s;let{key:i,value:o}=s.props[0];const{keyModifiers:l,nonKeyModifiers:c,eventOptionModifiers:f}=Vh(i,r,n,e.loc);if(c.includes("right")&&(i=Jo(i,"onContextmenu")),c.includes("middle")&&(i=Jo(i,"onMouseup")),c.length&&(o=pe(n.helper(df),[o,JSON.stringify(c)])),l.length&&(!Fe(i)||bf(i.content))&&(o=pe(n.helper(hf),[o,JSON.stringify(l)])),f.length){const a=f.map(Ut).join("");i=Fe(i)?J(`${i.content}${a}`,!0):We(["(",i,`) + "${a}"`])}return{props:[ue(i,o)]}}),jh=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(st(58,r)),{props:[],needRuntime:n.helper(gf)}},Kh=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(st(60,e.loc)),t.removeNode())},xh=[Mh],Wh={cloak:Ph,html:Fh,text:Lh,model:$h,on:Uh,show:jh};function zh(e,t={}){return Oh(e,ee({},Ih,t,{nodeTransforms:[Kh,...xh,...t.nodeTransforms||[]],directiveTransforms:ee({},Wh,t.directiveTransforms||{}),transformHoist:null}))}export{Hu as $,Oa as A,Sa as B,gl as C,Se as D,Jr as E,Ut as F,Vn as G,Of as H,Hn as I,Lf as J,Gt as K,ai as L,Ce as M,Me as N,ye as O,iu as P,Ja as Q,jn as R,kt as S,Fu as T,on as U,ke as V,Ze as W,Xe as X,ap as Y,ac as Z,mi as _,qh as a,gc as a$,Lu as a0,yi as a1,Xl as a2,np as a3,Zl as a4,du as a5,Du as a6,bi as a7,ce as a8,su as a9,Bl as aA,$l as aB,Ys as aC,zs as aD,Zs as aE,Ua as aF,Ol as aG,Va as aH,ii as aI,pu as aJ,hu as aK,fu as aL,uu as aM,au as aN,fp as aO,rn as aP,Rr as aQ,Sl as aR,$t as aS,dc as aT,cp as aU,gu as aV,$u as aW,ep as aX,rp as aY,Gu as aZ,fi as a_,ui as aa,Zu as ab,Xu as ac,Yu as ad,Yt as ae,Ct as af,Ws as ag,nc as ah,pc as ai,xt as aj,ip as ak,Cn as al,hc as am,xu as an,bt as ao,tp as ap,sc as aq,ri as ar,Il as as,Fl as at,Js as au,Ll as av,Ml as aw,Hl as ax,Wn as ay,Dl as az,Na as b,bl as b0,Tn as b1,Ga as b2,Pl as b3,eu as b4,sp as b5,oi as b6,Qu as b7,lu as b8,op as b9,ja as ba,Ei as bb,Bp as bc,Gs as bd,Zp as be,Xp as bf,yc as bg,Rp as bh,Mc as bi,Qp as bj,Lr as bk,Ip as bl,Mp as bm,Ci as bn,Nc as bo,Ti as bp,vc as bq,Ss as br,Pc as bs,Jp as bt,qp as bu,V as bv,zh as c,Jf as d,ee as e,Kf as f,xf as g,Qr as h,z as i,It as j,Lt as k,he as l,Pn as m,Gr as n,Wf as o,ni as p,Hs as q,Ku as r,Xr as s,as as t,dl as u,Ea as v,Ca as w,Yf as x,Y as y,ml as z}; diff --git a/assets/engine.io-client.6ba5801d.js b/assets/engine.io-client.6ba5801d.js new file mode 100644 index 0000000..40dd4a1 --- /dev/null +++ b/assets/engine.io-client.6ba5801d.js @@ -0,0 +1 @@ +import{d as F,a as I,e as W,b as M,p as q}from"./engine.io-parser.730afdce.js";import{E as y}from"./@socket.io.aec831e2.js";const h=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")())();function C(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const D=setTimeout,N=clearTimeout;function g(r,e){e.useNativeTimers?(r.setTimeoutFn=D.bind(h),r.clearTimeoutFn=N.bind(h)):(r.setTimeoutFn=setTimeout.bind(h),r.clearTimeoutFn=clearTimeout.bind(h))}const z=1.33;function X(r){return typeof r=="string"?V(r):Math.ceil((r.byteLength||r.size)*z)}function V(r){let e=0,t=0;for(let s=0,i=r.length;s=57344?t+=3:(s++,t+=4);return t}class j extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class L extends y{constructor(e){super(),this.writable=!1,g(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t,s){return super.emitReserved("error",new j(e,t,s)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=F(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}}const O="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),m=64,K={};let T=0,u=0,x;function S(r){let e="";do e=O[r%m]+e,r=Math.floor(r/m);while(r>0);return e}function B(){const r=S(+new Date);return r!==x?(T=0,x=r):r+"."+S(T++)}for(;u{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};I(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,W(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let s="";this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=B()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.opts.port&&(t==="https"&&Number(this.opts.port)!==443||t==="http"&&Number(this.opts.port)!==80)&&(s=":"+this.opts.port);const i=H(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+s+this.opts.path+(i.length?"?"+i:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new n(this.uri(),e)}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class n extends y{constructor(e,t){super(),g(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=t.async!==!1,this.data=t.data!==void 0?t.data:null,this.create()}create(){const e=C(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new A(e);try{t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&t.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{t.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{t.readyState===4&&(t.status===200||t.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof t.status=="number"?t.status:0)},0))},t.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document!="undefined"&&(this.index=n.requestsCount++,n.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.xhr.onreadystatechange=G,e)try{this.xhr.abort()}catch{}typeof document!="undefined"&&delete n.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}n.requestsCount=0;n.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",k);else if(typeof addEventListener=="function"){const r="onpagehide"in h?"pagehide":"unload";addEventListener(r,k,!1)}}function k(){for(let r in n.requests)n.requests.hasOwnProperty(r)&&n.requests[r].abort()}const Z=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0))(),d=h.WebSocket||h.MozWebSocket,E=!0,_="arraybuffer",R=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ee extends L{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=R?{}:C(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=E&&!R?t?new d(e,t):new d(e):new d(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||_,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{const a={};try{E&&this.ws.send(o)}catch{}i&&Z(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws!="undefined"&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let s="";this.opts.port&&(t==="wss"&&Number(this.opts.port)!==443||t==="ws"&&Number(this.opts.port)!==80)&&(s=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=B()),this.supportsBinary||(e.b64=1);const i=H(e),o=this.opts.hostname.indexOf(":")!==-1;return t+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+s+this.opts.path+(i.length?"?"+i:"")}check(){return!!d}}const te={websocket:ee,polling:Y},se=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,re=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function P(r){const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=se.exec(r||""),o={},a=14;for(;a--;)o[re[a]]=i[a]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ie(o,o.path),o.queryKey=oe(o,o.query),o}function ie(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.substr(0,1)=="/"||e.length===0)&&s.splice(0,1),e.substr(e.length-1,1)=="/"&&s.splice(s.length-1,1),s}function oe(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}class c extends y{constructor(e,t={}){super(),e&&typeof e=="object"&&(t=e,e=null),e?(e=P(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=P(t.host).host),g(this,t),this.secure=t.secure!=null?t.secure:typeof location!="undefined"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=t.port||(typeof location!="undefined"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=Q(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=q,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new te[e](s)}open(){let e;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(b(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const l=new Error("probe error");l.transport=t.name,this.emitReserved("upgradeError",l)}}))};function o(){s||(s=!0,b(),t.close(),t=null)}const a=p=>{const l=new Error("probe error: "+p);l.transport=t.name,o(),this.emitReserved("upgradeError",l)};function f(){a("transport closed")}function w(){a("socket closed")}function v(p){t&&p.name!==t.name&&o()}const b=()=>{t.removeListener("open",i),t.removeListener("error",a),t.removeListener("close",f),this.off("close",w),this.off("upgrading",v)};t.once("open",i),t.once("error",a),t.once("close",f),this.once("close",w),this.once("upgrading",v),t.open()}onOpen(){if(this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this.maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}write(e,t,s){return this.sendPacket("message",e,t,s),this}send(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}onError(e){c.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const i=e.length;for(;s{a[o[e]]=e});const B={type:"error",data:"parser error"},w=typeof Blob=="function"||typeof Blob!="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",b=typeof ArrayBuffer=="function",E=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,C=({type:e,data:t},n,r)=>w&&t instanceof Blob?n?r(t):d(t,r):b&&(t instanceof ArrayBuffer||E(t))?n?r(t):d(new Blob([t]),r):r(o[e]+(t||"")),d=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,c=0,f,s,i,y;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const p=new ArrayBuffer(t),l=new Uint8Array(p);for(r=0;r>4,l[c++]=(s&15)<<4|i>>2,l[c++]=(i&3)<<6|y&63;return p},P=typeof ArrayBuffer=="function",T=(e,t)=>{if(typeof e!="string")return{type:"message",data:h(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:O(e.substring(1),t)}:a[n]?e.length>1?{type:a[n],data:e.substring(1)}:{type:a[n]}:B},O=(e,t)=>{if(P){const n=R(e);return h(n,t)}else return{base64:!0,data:e}},h=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},g=String.fromCharCode(30),S=(e,t)=>{const n=e.length,r=new Array(n);let c=0;e.forEach((f,s)=>{C(f,!1,i=>{r[s]=i,++c===n&&t(r.join(g))})})},m=(e,t)=>{const n=e.split(g),r=[];for(let c=0;c10&&(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,r.offlineLimit*3600)&&(e.offlineTime=r.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,r.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,a),p.unthrottled?(requestAnimationFrame(m),o!=null&&(clearInterval(o),o=null)):o==null&&(o=setInterval(m,50)))}}async function j(){f=(await d(()=>import("./index.a46ad75f.js").then(function(t){return t.c}),["assets/index.a46ad75f.js","assets/index.44c96c8f.css","assets/@fontsource.f66d05e7.css","assets/vue.228877f7.js","assets/lru-cache.9506e0ec.js","assets/yallist.fd762fe7.js","assets/@vue.8948d9b0.js","assets/lz-string.f2f3b7cf.js","assets/nanoevents.1080beb7.js","assets/socket.io-client.03bb8f3a.js","assets/engine.io-client.6ba5801d.js","assets/engine.io-parser.730afdce.js","assets/@socket.io.aec831e2.js","assets/socket.io-parser.0ab387d5.js","assets/unique-names-generator.9178d3e3.js","assets/vue-toastification.97914fdb.js","assets/vue-toastification.4b5f8ac8.css","assets/semver.334eb41f.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-next-select.f2be13cc.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.5218041c.js","assets/sortablejs.692999e9.js","assets/workbox-window.8d14e8b7.js"])).hasWon,c(f,t=>{t&&u.emit("gameWon")}),p.unthrottled?requestAnimationFrame(m):o=setInterval(m,50)}export{j as startGameLoop}; diff --git a/assets/index.44c96c8f.css b/assets/index.44c96c8f.css new file mode 100644 index 0000000..3db24ec --- /dev/null +++ b/assets/index.44c96c8f.css @@ -0,0 +1 @@ +.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%)}}.error[data-v-ac351c02]{border:solid 10px var(--danger);position:absolute;top:0;left:0;right:0;min-height:calc(100% - 20px);text-align:left;color:var(--foreground)}.error-title[data-v-ac351c02]{background:var(--danger);color:var(--feature-foreground);display:block;margin:-10px 0 10px;position:sticky;top:0}.error-details[data-v-ac351c02]{white-space:nowrap;overflow:auto;padding:10px;background-color:var(--raised-background)}.instructions[data-v-ac351c02]{padding:10px}.discord-link[data-v-ac351c02]{display:inline}summary[data-v-ac351c02]{cursor:pointer;user-select:none}.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-a9f5b1da]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-a9f5b1da]: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-a9f5b1da]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-a9f5b1da]{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-a9f5b1da]{margin:0;writing-mode:vertical-rl;text-align:left;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-a9f5b1da]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-a9f5b1da]{padding-bottom:0}.modal-body .layer-tab[data-v-a9f5b1da]:not(.hasSubtabs){padding-top:0}.minimize[data-v-a9f5b1da]{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-a9f5b1da]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-a9f5b1da]{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-a9f5b1da]: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)}.field{display:flex;position:relative;min-height:2em;margin:10px 0;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}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%}.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}.tabButton[data-v-21427abb]{background-color:transparent;color:var(--foreground);font-size:20px;cursor:pointer;padding:5px 20px;margin:5px;border-radius:5px;border:2px solid;flex-shrink:0;border-color:var(--layer-color)}.tabButton[data-v-21427abb]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}:not(.floating)>.tabButton[data-v-21427abb]{height:50px;margin:0;border-left:none;border-right:none;border-top:none;border-bottom-width:4px;border-radius:0;transform:unset}:not(.floating) .tabButton[data-v-21427abb]:not(.active){border-bottom-color:transparent}.tabButton>*[data-v-21427abb]{pointer-events:none}.sticky[data-v-cccac690]{position:sticky;background:var(--background);width:calc(100% - 2px);z-index:3}.tab-family-container[data-v-58dbf83a]{margin:calc(50px + var(--feature-margin)) 20px var(--feature-margin) 20px;position:relative;border:solid 4px;border-color:var(--outline)}.layer-tab>.tab-family-container[data-v-58dbf83a]:first-child{margin:-4px -11px var(--feature-margin) -11px}.layer-tab>.tab-family-container[data-v-58dbf83a]:first-child:nth-last-child(3){border-bottom-style:none;border-left-style:none;border-right-style:none;height:calc(100% + 50px)}.modal-body>.tab-family-container[data-v-58dbf83a]:first-child{margin:calc(10px + var(--feature-margin)) 10px 0 10px;border:none}.tab-family-container[data-v-58dbf83a]>:nth-child(2){margin-top:20px}.modal-body>.tab-family-container[data-v-58dbf83a]>:nth-child(2){margin-top:50px}.tab-family-container[data-v-f18896fc][data-v-58dbf83a]>:last-child{margin-bottom:20px}.tab-buttons-container[data-v-58dbf83a]{z-index:4}.tab-buttons-container[data-v-58dbf83a]:not(.floating){border-bottom:solid 4px;border-color:inherit}:not(.layer-tab):not(.modal-body)>.tab-family-container>.tab-buttons-container[data-v-58dbf83a]:not(.floating){width:calc(100% + 6px);margin-left:-3px}.tab-buttons-container:not(.floating) .tab-buttons[data-v-58dbf83a]{text-align:left;margin-bottom:-4px}.tab-buttons-container.floating .tab-buttons[data-v-58dbf83a]{justify-content:center;margin-top:-25px}.tab-buttons[data-v-58dbf83a]{margin-bottom:24px;display:flex;flex-flow:wrap;z-index:4}.layer-tab>.tab-family-container:first-child:nth-last-child(3)>.tab-buttons-container>.tab-buttons[data-v-58dbf83a]{padding-right:60px}.tab-buttons[data-v-58dbf83a]:not(.floating){text-align:left;border-bottom:inherit;border-width:4px;box-sizing:border-box;height:50px}.modal-body .tab-buttons[data-v-58dbf83a]{width:100%;margin-left:0;margin-right:0;padding-left:0}.showGoBack>.tab-family-container:first-child>.tab-buttons-container:not(.floating) .tab-buttons[data-v-58dbf83a]{padding-left:70px}:not(.showGoBack)>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-58dbf83a]{padding-left:0}.minimizable>.tab-buttons-container[data-v-58dbf83a]:not(.floating):first-child{padding-right:50px}.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-58dbf83a]{margin-top:-50px}.tab-buttons-container+*[data-v-58dbf83a]{margin-top:20px}.tooltip-container[data-v-6102fa3a]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-6102fa3a],.tooltip[data-v-6102fa3a]:after{pointer-events:none;position:absolute}.tooltip[data-v-6102fa3a]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translate(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.tooltip[data-v-6102fa3a] hr{margin:var(--feature-margin) 0}.shown[data-v-6102fa3a]{z-index:10}.fade-enter-from[data-v-6102fa3a],.fade-leave-to[data-v-6102fa3a]{opacity:0}.tooltip[data-v-6102fa3a]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.tooltip.left[data-v-6102fa3a],.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top){bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.tooltip.left[data-v-6102fa3a]:after,.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top):after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-6102fa3a]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-6102fa3a]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-6102fa3a]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translate(-50%)}.tooltip.bottom[data-v-6102fa3a]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-6102fa3a]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.room[data-v-a7843e62]{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}.room.active[data-v-a7843e62]{border-color:var(--bought)}.open[data-v-a7843e62]{display:inline;margin:0;padding-left:0}.details[data-v-a7843e62]{margin:0 80px 0 0;flex-grow:1}.details .material-icons[data-v-a7843e62]{font-size:20px;margin-right:4px;transform:translateY(2px)}.room-host[data-v-a7843e62]{font-size:.7em;opacity:.7}.actions[data-v-a7843e62]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-a7843e62]{margin:0}.room button{transition-duration:0s}.room .actions button{display:flex;font-size:1.2em}.room .actions button .material-icons{font-size:unset}.room .button.danger{display:flex;align-items:center;padding:4px}.room .field,.field form[data-v-6c2b3a99],.field .field-title[data-v-6c2b3a99],.field .field-buttons[data-v-6c2b3a99]{margin:0}.field-buttons[data-v-6c2b3a99]{display:flex}.field-buttons .field[data-v-6c2b3a99]{margin:0 0 0 8px}.modal-footer[data-v-6c2b3a99]{margin-top:-20px}.footer[data-v-6c2b3a99]{display:flex;margin-top:20px}.field-title[data-v-6c2b3a99]{white-space:nowrap}.large.button{font-size:large;width:100%;background:var(--feature-background);border-radius:var(--border-radius)}.large.button:hover{background:var(--highlighted);text-shadow:unset}.info-modal-header[data-v-10effbe8]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-10effbe8]{margin:0}.info-modal-logo[data-v-10effbe8]{height:4em;width:4em}.info-modal-title[data-v-10effbe8]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-10effbe8]{display:flex;align-items:center}.info-modal-discord[data-v-10effbe8]{margin:0 4px 0 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)}.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}.container[data-v-2f8ef34c]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-2f8ef34c]{font-size:1em}.container>*[data-v-2f8ef34c]{margin:0 4px}.danger,.button.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.save[data-v-32313015]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-32313015]{border-color:var(--bought)}.open[data-v-32313015]{display:inline;margin:0;padding-left:0}.handle[data-v-32313015]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-32313015]{margin:0 80px 0 0;flex-grow:1}.error[data-v-32313015]{font-size:.8em;color:var(--danger)}.save-version[data-v-32313015]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-32313015]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-32313015]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.save .field,.field form[data-v-f10c7950],.field .field-title[data-v-f10c7950],.field .field-buttons[data-v-f10c7950]{margin:0}.field-buttons[data-v-f10c7950]{display:flex}.field-buttons .field[data-v-f10c7950]{margin:0 0 0 8px}.modal-footer[data-v-f10c7950]{margin-top:-20px}.footer[data-v-f10c7950]{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-1fa4f177]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline);z-index:2}.nav>*[data-v-1fa4f177]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-1fa4f177]{height:100%;width:unset}.overlay-nav[data-v-1fa4f177]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-1fa4f177]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-1fa4f177]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-1fa4f177]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-1fa4f177],.nav .info[data-v-1fa4f177]{display:flex}.tooltip-container[data-v-1fa4f177]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-1fa4f177]{position:relative}.discord img[data-v-1fa4f177]{width:100%;height:100%}.discord-links[data-v-1fa4f177]{position:fixed;top:45px;padding:20px;right:-340px;width:300px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-1fa4f177]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-1fa4f177]{left:-10px}.discord-links li[data-v-1fa4f177]{margin-bottom:4px}.discord-links li[data-v-1fa4f177]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-1fa4f177]{right:0}.material-icons[data-v-1fa4f177]{font-size:36px}.material-icons[data-v-1fa4f177]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-1fa4f177]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-1fa4f177]{width:unset;height:25px}.version[data-v-1fa4f177]{color:var(--points)}.version:hover span[data-v-1fa4f177]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-1fa4f177],.overlay-nav>div>a[data-v-1fa4f177]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-dcd207b4]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-dcd207b4]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-dcd207b4]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-dcd207b4]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-dcd207b4]{border-left:solid 4px var(--outline)}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) 0}.tab .modal-body hr{margin:7px 0}.chat[data-v-2a68614e]{position:fixed;top:100%;right:4px;height:500px;width:300px;border:solid 1px var(--outline);display:flex;flex-flow:column;background:var(--background)}.chat.open[data-v-2a68614e]{top:calc(100% - 500px)}.chat-toggle[data-v-2a68614e]{margin-top:-23px;margin-left:-1px;margin-right:-1px;border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border:solid 1px var(--outline);cursor:pointer;user-select:none;background:var(--background)}.chat-messages[data-v-2a68614e]{flex-grow:1;width:calc(100% - 8px);padding:4px;word-break:break-all;overflow-y:auto}.chat-message-container[data-v-2a68614e]{font-size:smaller;text-align:left;margin-bottom:4px}.chat-user[data-v-2a68614e]{font-weight:bolder;margin-right:10px}.chat-message[data-v-2a68614e]{font-weight:lighter}.chat-submit[data-v-2a68614e]{display:flex;width:100%}.chat-submit>form[data-v-2a68614e]{margin-left:10px}.grid[data-v-579ff0b3]{display:flex;flex-direction:column;align-items:center}.row[data-v-579ff0b3]{margin-top:-1vw}.hexagon-wrapper[data-v-579ff0b3]{position:relative;width:5vw;height:5vw;margin:.2vw}.hexagon-wrapper[data-v-579ff0b3]:before,.hexagon-wrapper[data-v-579ff0b3]:after,.hexagon-overlay[data-v-579ff0b3]:before,.hexagon-overlay[data-v-579ff0b3]:after{content:"";position:absolute;bottom:.1vw;width:50%;height:.6vw;backdrop-filter:blur(3px);background-color:var(--color);transform-origin:bottom;pointer-events:none;z-index:-1}.hexagon-wrapper[data-v-579ff0b3]:before,.hexagon-overlay[data-v-579ff0b3]:before{left:0;transform:skewY(26.5deg);filter:brightness(85%)}.hexagon-wrapper[data-v-579ff0b3]:after,.hexagon-overlay[data-v-579ff0b3]:after{right:0;transform:skewY(-26.5deg);filter:brightness(65%)}.hexagon[data-v-579ff0b3]{position:relative;width:100%;height:100%;backdrop-filter:blur(3px);clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%)}.hexagon-overlay[data-v-579ff0b3]{position:absolute;top:0;left:0;right:0;bottom:0;opacity:.5;pointer-events:none;animation:bounce-579ff0b3 1s infinite}.fade-enter-from[data-v-579ff0b3],.fade-leave-to[data-v-579ff0b3]{opacity:0}@keyframes bounce-579ff0b3{0%,to{transform:translateY(-15px)}50%{transform:translateY(-7.5px)}}.main:before{content:"";position:fixed;top:-100vmax;left:-100vmax;right:-100vmax;bottom:-100vmax;opacity:.25;background:linear-gradient(45deg,#81A1C1 25%,transparent 25%) -100px 0,linear-gradient(45deg,transparent 75%,#81A1C1 75%) -100px 0,linear-gradient(135deg,#88C0D0 25%,transparent 25%),linear-gradient(135deg,transparent 75%,#88C0D0 75%);background-size:200px 200px;background-color:#2e3440;animation:moveBackground 30s linear infinite}@keyframes moveBackground{0%{transform:translate(0)}to{transform:translate(200px,200px)}}.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-d3bb0716]{padding:10px 0;margin-left:10px}.nan-footer[data-v-d3bb0716]{display:flex;justify-content:flex-end}.nan-footer button[data-v-d3bb0716]{margin:0 10px}.nan-modal-discord-link[data-v-d3bb0716]{display:flex;align-items:center}.nan-modal-discord[data-v-d3bb0716]{margin:0 4px 0 0}.tpsDisplay[data-v-89b89152]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-89b89152]{color:var(--danger)}.fade-leave-to[data-v-89b89152]{opacity:0}:root{color-scheme:dark}*{transition-duration:.5s;font-family:Roboto Mono,monospace;font-weight:700;margin:auto;text-size-adjust:none}*:focus{outline:none}body{overflow:hidden;transition:none;text-align:center}html,body,#app{min-height:100%;height:100%}h1,h2,h3,b,input{display:inline}button{color:#000}a,.button,.link{display:block;color:var(--link);background:none;border:none;cursor:pointer;text-decoration:none}a:hover,.button:hover,.link:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--link)}.button:disabled{opacity:.5;cursor:not-allowed}.button:disabled:hover{text-shadow:none}ul{list-style-type:none}.Vue-Toastification__toast{margin:unset}.app[data-v-bf4e22ac]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-bf4e22ac]{position:absolute;min-height:100%;height:100%;color:var(--foreground)}.error-container[data-v-bf4e22ac]{background:var(--background);overflow:auto;width:100%;height:100%}.error-container>.error[data-v-bf4e22ac]{position:static} diff --git a/assets/index.a46ad75f.js b/assets/index.a46ad75f.js new file mode 100644 index 0000000..8d84ed7 --- /dev/null +++ b/assets/index.a46ad75f.js @@ -0,0 +1,18 @@ +/* empty css */import"./vue.228877f7.js";import{q as Re,C as s,aa as B,t as M,aE as h,a0 as w,aK as Me,bu as tt,G as ne,ar as Fe,Z as D,ay as pt,a1 as f,J as P,O as U,aJ as ge,$ as F,I as ie,a8 as y,b6 as T,a7 as V,aH as pe,aF as be,u as Mt,aG as ot,A as fe,_ as q,b8 as bt,bs as Kt,aq as qe,bb as xt,T as Tn,j as Pn,l as he,bv as At,b1 as se,w as Je,b2 as Ft,ax as En,aL as ct,aN as le,z as Te,br as Vn,bn as On,be as Ln}from"./@vue.8948d9b0.js";import{L as we}from"./lz-string.f2f3b7cf.js";import{c as Yt}from"./nanoevents.1080beb7.js";import{l as Dn}from"./socket.io-client.03bb8f3a.js";import{n as qn,l as Rn,t as Bn,r as An}from"./unique-names-generator.9178d3e3.js";import{u as Xt,s as Un}from"./vue-toastification.97914fdb.js";import{s as zn}from"./semver.334eb41f.js";import{p as jn}from"./vue-textarea-autosize.35804eaf.js";import{Y as Gn}from"./vue-next-select.f2be13cc.js";import{D as Hn}from"./vuedraggable.5218041c.js";import{v as Wn,n as Jn}from"./workbox-window.8d14e8b7.js";import"./lru-cache.9506e0ec.js";import"./yallist.fd762fe7.js";import"./engine.io-client.6ba5801d.js";import"./engine.io-parser.730afdce.js";import"./@socket.io.aec831e2.js";import"./socket.io-parser.0ab387d5.js";import"./sortablejs.692999e9.js";const Zn=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}};Zn();const Kn="modulepreload",Ut={},Yn="./",dt=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${Yn}${r}`,r in Ut)return;Ut[r]=!0;const i=r.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${o}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":Kn,i||(c.as="script",c.crossOrigin=""),c.href=r,document.head.appendChild(c),i)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Xn="./projInfo-schema.json",Qn="Chromatic Latice",er="A multiplayer game about light and hexagons",tr="chromatic",nr="thepaperpilot",rr="",ir="",ar="0.0.0",or="Initial Commit",sr=!1,lr=!1,ur=2,cr=!0,dr=null,fr="",mr=["main"],gr=3600,hr=1,vr=!0,pr="base64";var R={$schema:Xn,title:Qn,description:er,id:tr,author:nr,discordName:rr,discordLink:ir,versionNumber:ar,versionTitle:or,allowGoBack:sr,defaultShowSmall:lr,defaultDecimalsShown:ur,useHeader:cr,banner:dr,logo:fr,initialTabs:mr,maxTickLength:gr,offlineLimit:hr,enablePausing:vr,exportEncoding:pr};const br=Re({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});var O=window.player=br;function Tt(e){return JSON.stringify(e,(t,n)=>s(n))}var H=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const _r=["onClick"],yr=B({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=M(!1),r=M(null);function i(){t("click"),r.value&&clearTimeout(r.value),n.value=!1,Fe(()=>{n.value=!0,r.value=setTimeout(()=>n.value=!1,500)})}return(o,c)=>(h(),w("button",{onClick:tt(i,["stop"]),class:ne(["feedback",{activated:n.value,left:e.left}])},[Me(o.$slots,"default",{},void 0,!0)],10,_r))}});var Qt=H(yr,[["__scopeId","data-v-01a1b95c"]]);const _t=e=>(pe("data-v-ac351c02"),e=e(),be(),e),wr={class:"error"},Nr={class:"error-title"},Cr={class:"error-details",style:{"margin-top":"-10px"}},Sr={key:0},Ir={class:"instructions"},$r=V(" Check the console for more details, and consider sharing it with the developers on "),kr=["href"],Mr=V("! "),xr=_t(()=>f("span",{class:"material-icons",style:{"font-size":"16px"}},"content_paste",-1)),Fr=_t(()=>f("span",{style:{"margin-left":"8px","font-size":"medium"}},"Copy Save",-1)),Tr=_t(()=>f("br",null,null,-1)),Pr={key:0,style:{"margin-top":"20px"}},Er=_t(()=>f("h3",null,"Other errors",-1)),Vr=[Er],Or={class:"error-details"},Lr={key:0,style:{"margin-top":"10px"}},Dr={key:1,style:{"margin-top":"10px"}},qr=B({__name:"Error",props:{errors:null},setup(e){const t=e,n=D(()=>t.errors[0]),r=D(()=>t.errors.map(c=>c.stack==null?[]:c.stack.split(` +`))),i=D(()=>t.errors.map(c=>c.cause==null?[]:(typeof c.cause=="string"?c.cause:JSON.stringify(c.cause)).split(` +`)));function o(){let c=Tt(O);switch(R.exportEncoding){default:console.warn(`Unknown save encoding: ${R.exportEncoding}. Defaulting to lz`);case"lz":c=we.compressToUTF16(c);break;case"base64":c=btoa(unescape(encodeURIComponent(c)));break;case"plain":break}console.log(c);const u=document.createElement("textarea");u.value=c,document.body.appendChild(u),u.select(),u.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(u)}return pt(()=>{O.autosave=!1,O.devSpeed=0}),(c,u)=>(h(),w("div",wr,[f("h1",Nr,P(s(n).name)+": "+P(s(n).message),1),f("div",Cr,[s(n).cause?(h(),w("div",Sr,[(h(!0),w(U,null,ge(s(i)[0],d=>(h(),w("div",{key:d},P(d),1))),128))])):F("",!0),s(n).stack?(h(),w("div",{key:1,style:ie(s(n).cause?"margin-top: 10px":"")},[(h(!0),w(U,null,ge(s(r)[0],d=>(h(),w("div",{key:d},P(d),1))),128))],4)):F("",!0)]),f("div",Ir,[$r,f("a",{href:s(R).discordLink||"https://discord.gg/yJ4fjnjU54",class:"discord-link"},"discord",8,kr),Mr,y(Qt,{onClick:o,class:"button",style:{display:"inline-flex"}},{default:T(()=>[xr,Fr]),_:1}),Tr,e.errors.length>1?(h(),w("div",Pr,Vr)):F("",!0),(h(!0),w(U,null,ge(e.errors.slice(1),(d,v)=>(h(),w("div",{key:v,style:{"margin-top":"20px"}},[f("details",Or,[f("summary",null,P(d.name)+": "+P(d.message),1),d.cause?(h(),w("div",Lr,[(h(!0),w(U,null,ge(s(i)[v+1],_=>(h(),w("div",{key:_},P(_),1))),128))])):F("",!0),d.stack?(h(),w("div",Dr,[(h(!0),w(U,null,ge(s(r)[v+1],_=>(h(),w("div",{key:_},P(_),1))),128))])):F("",!0)])]))),128))])]))}});var en=H(qr,[["__scopeId","data-v-ac351c02"]]);class Rr{constructor(t){this.map=new Map,this.first=void 0,this.last=void 0,this.maxSize=t}get size(){return this.map.size}get(t){const n=this.map.get(t);if(n!==void 0)return n!==this.first&&(n===this.last?(this.last=n.prev,this.last.next=void 0):(n.prev.next=n.next,n.next.prev=n.prev),n.next=this.first,this.first.prev=n,this.first=n),n.value}set(t,n){if(this.maxSize<1)return;if(this.map.has(t))throw new Error("Cannot update existing keys in the cache");const r=new Br(t,n);for(this.first===void 0?(this.first=r,this.last=r):(r.next=this.first,this.first.prev=r,this.first=r),this.map.set(t,r);this.map.size>this.maxSize;){const i=this.last;this.map.delete(i.key),this.last=i.prev,this.last.next=void 0}}}class Br{constructor(t,n){this.next=void 0,this.prev=void 0,this.key=t,this.value=n}}const St=17,Ar=9e15,Ur=Math.log10(9e15),zr=1/9e15,jr=308,Gr=-324,zt=5,Hr=(1<<10)-1,Wr=function(){const e=[];for(let n=Gr+1;n<=jr;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Ee=[2,Math.E,3,4,5,6,7,8,9,10],Jr=[[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]],Zr=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.80786507256596,-.7064666939634,-.60294836853664,-.49849837513117,-.39430303318768,-.29147201034755,-.19097820800866,-.09361896280296,0],[-1,-.9021579584316141,-.8005762598234203,-.6964780623319391,-.5911906810998454,-.486050182576545,-.3823089430815083,-.28106046722897615,-.1831906535795894,-.08935809204418144,0],[-1,-.8917227442365535,-.781258746326964,-.6705130326902455,-.5612813129406509,-.4551067709033134,-.35319256652135966,-.2563741554088552,-.1651412821106526,-.0796919581982668,0],[-1,-.8843387974366064,-.7678744063886243,-.6529563724510552,-.5415870994657841,-.4352842206588936,-.33504449124791424,-.24138853420685147,-.15445285440944467,-.07409659641336663,0],[-1,-.8786709358426346,-.7577735191184886,-.6399546189952064,-.527284921869926,-.4211627631006314,-.3223479611761232,-.23107655627789858,-.1472057700818259,-.07035171210706326,0],[-1,-.8740862815291583,-.7497032990976209,-.6297119746181752,-.5161838335958787,-.41036238255751956,-.31277212146489963,-.2233976621705518,-.1418697367979619,-.06762117662323441,0],[-1,-.8702632331800649,-.7430366914122081,-.6213373075161548,-.5072025698095242,-.40171437727184167,-.30517930701410456,-.21736343968190863,-.137710238299109,-.06550774483471955,0],[-1,-.8670016295947213,-.7373984232432306,-.6143173985094293,-.49973884395492807,-.394584953527678,-.2989649949848695,-.21245647317021688,-.13434688362382652,-.0638072667348083,0],[-1,-.8641642839543857,-.732534623168535,-.6083127477059322,-.4934049257184696,-.3885773075899922,-.29376029055315767,-.2083678561173622,-.13155653399373268,-.062401588652553186,0]];let g=function(t){return l.fromValue_noAlloc(t)},E=function(e,t,n){return l.fromComponents(e,t,n)},L=function(t,n,r){return l.fromComponents_noNormalize(t,n,r)};const Se=function(t,n){const r=n+1,i=Math.ceil(Math.log10(Math.abs(t))),o=Math.round(t*Math.pow(10,r-i))*Math.pow(10,i-r);return parseFloat(o.toFixed(Math.max(r-i,0)))},It=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},Kr=function(e){if(!isFinite(e))return e;if(e<-50)return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let t=1;for(;e<10;)t=t*e,++e;e-=1;let n=.9189385332046727;n=n+(e+.5)*Math.log(e),n=n-e;const r=e*e;let i=e;return n=n+1/(12*i),i=i*r,n=n+1/(360*i),i=i*r,n=n+1/(1260*i),i=i*r,n=n+1/(1680*i),i=i*r,n=n+1/(1188*i),i=i*r,n=n+691/(360360*i),i=i*r,n=n+7/(1092*i),i=i*r,n=n+3617/(122400*i),Math.exp(n)/t},tn=.5671432904097838,jt=function(e,t=1e-10){let n,r;if(!Number.isFinite(e)||e===0)return e;if(e===1)return tn;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let i=0;i<100;++i){if(r=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(r-n).5?1:-1;if(Math.random()*20<1)return L(t,0,1);const n=Math.floor(Math.random()*(e+1));let r=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(r=Math.trunc(r));let i=Math.pow(10,r);return Math.random()>.9&&(i=Math.trunc(i)),E(t,n,i)}static affordGeometricSeries_core(e,t,n,r){const i=t.mul(n.pow(r));return m.floor(e.div(i).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,r){return t.mul(n.pow(r)).mul(m.sub(1,n.pow(e))).div(m.sub(1,n))}static affordArithmeticSeries_core(e,t,n,r){const o=t.add(r.mul(n)).sub(n.div(2)),c=o.pow(2);return o.neg().add(c.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,r){const i=t.add(r.mul(n));return e.div(2).mul(i.mul(2).plus(e.sub(1).mul(n)))}static efficiencyOfPurchase_core(e,t,n){return e.div(t).add(e.div(n))}normalize(){if(this.sign===0||this.mag===0&&this.layer===0)return this.sign=0,this.mag=0,this.layer=0,this;if(this.layer===0&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),this.layer===0&&this.mag=Ar)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){const t=e,n=m.fromStringCache.get(t);if(n!==void 0)return this.fromDecimal(n);e=e.replace(",","");const r=e.split("^^^");if(r.length===2){const b=parseFloat(r[0]),S=parseFloat(r[1]),$=r[1].split(";");let A=1;if($.length===2&&(A=parseFloat($[1]),isFinite(A)||(A=1)),isFinite(b)&&isFinite(S)){const I=m.pentate(b,S,A);return this.sign=I.sign,this.layer=I.layer,this.mag=I.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}const i=e.split("^^");if(i.length===2){const b=parseFloat(i[0]),S=parseFloat(i[1]),$=i[1].split(";");let A=1;if($.length===2&&(A=parseFloat($[1]),isFinite(A)||(A=1)),isFinite(b)&&isFinite(S)){const I=m.tetrate(b,S,A);return this.sign=I.sign,this.layer=I.layer,this.mag=I.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}const o=e.split("^");if(o.length===2){const b=parseFloat(o[0]),S=parseFloat(o[1]);if(isFinite(b)&&isFinite(S)){const $=m.pow(b,S);return this.sign=$.sign,this.layer=$.layer,this.mag=$.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}e=e.trim().toLowerCase();let c,u,d=e.split("pt");if(d.length===2){c=10,u=parseFloat(d[0]),d[1]=d[1].replace("(",""),d[1]=d[1].replace(")","");let b=parseFloat(d[1]);if(isFinite(b)||(b=1),isFinite(c)&&isFinite(u)){const S=m.tetrate(c,u,b);return this.sign=S.sign,this.layer=S.layer,this.mag=S.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}if(d=e.split("p"),d.length===2){c=10,u=parseFloat(d[0]),d[1]=d[1].replace("(",""),d[1]=d[1].replace(")","");let b=parseFloat(d[1]);if(isFinite(b)||(b=1),isFinite(c)&&isFinite(u)){const S=m.tetrate(c,u,b);return this.sign=S.sign,this.layer=S.layer,this.mag=S.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}const v=e.split("e"),_=v.length-1;if(_===0){const b=parseFloat(e);if(isFinite(b))return this.fromNumber(b),m.fromStringCache.size>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}else if(_===1){const b=parseFloat(e);if(isFinite(b)&&b!==0)return this.fromNumber(b),m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}const p=e.split("e^");if(p.length===2){this.sign=1,p[0].charAt(0)=="-"&&(this.sign=-1);let b="";for(let S=0;S=43&&$<=57||$===101)b+=p[1].charAt(S);else return this.layer=parseFloat(b),this.mag=parseFloat(p[1].substr(S+1)),this.normalize(),m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}if(_<1)return this.sign=0,this.layer=0,this.mag=0,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this;const C=parseFloat(v[0]);if(C===0)return this.sign=0,this.layer=0,this.mag=0,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this;let k=parseFloat(v[v.length-1]);if(_>=2){const b=parseFloat(v[v.length-2]);isFinite(b)&&(k*=Math.sign(b),k+=It(b))}if(!isFinite(C))this.sign=v[0]==="-"?-1:1,this.layer=_,this.mag=k;else if(_===1)this.sign=Math.sign(C),this.layer=1,this.mag=k+Math.log10(Math.abs(C));else if(this.sign=Math.sign(C),this.layer=_,_===2){const b=m.mul(E(1,2,k),g(C));return this.sign=b.sign,this.layer=b.layer,this.mag=b.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}else this.mag=k;return this.normalize(),m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}fromValue(e){return e instanceof m?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:Se(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:Se(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?this.sign===1?"Infinity":"-Infinity":this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toString():this.m+"e"+this.e:this.layer===1?this.m+"e"+this.e:this.layer<=zt?(this.sign===-1?"-":"")+"e".repeat(this.layer)+this.mag:(this.sign===-1?"-":"")+"(e^"+this.layer+")"+this.mag}toExponential(e){return this.layer===0?(this.sign*this.mag).toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return this.layer===0?(this.sign*this.mag).toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return this.e<=-7?this.toExponential(e-1):e>this.e?this.toFixed(e-this.exponent-1):this.toExponential(e-1)}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toFixed(e):Se(this.m,e)+"e"+Se(this.e,e):this.layer===1?Se(this.m,e)+"e"+Se(this.e,e):this.layer<=zt?(this.sign===-1?"-":"")+"e".repeat(this.layer)+Se(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+Se(this.mag,e)}abs(){return L(this.sign===0?0:1,this.layer,this.mag)}neg(){return L(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?m.dZero:this.layer===0?E(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?m.dZero:this.layer===0?E(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?m.dZero:this.layer===0?E(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?m.dZero:this.layer===0?E(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=g(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer)||this.sign===0)return t;if(t.sign===0)return this;if(this.sign===-t.sign&&this.layer===t.layer&&this.mag===t.mag)return L(0,0,0);let n,r;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(m.cmpabs(this,t)>0?(n=this,r=t):(n=t,r=this),n.layer===0&&r.layer===0)return m.fromNumber(n.sign*n.mag+r.sign*r.mag);const i=n.layer*Math.sign(n.mag),o=r.layer*Math.sign(r.mag);if(i-o>=2)return n;if(i===0&&o===-1){if(Math.abs(r.mag-Math.log10(n.mag))>St)return n;{const c=Math.pow(10,Math.log10(n.mag)-r.mag),u=r.sign+n.sign*c;return E(Math.sign(u),1,r.mag+Math.log10(Math.abs(u)))}}if(i===1&&o===0){if(Math.abs(n.mag-Math.log10(r.mag))>St)return n;{const c=Math.pow(10,n.mag-Math.log10(r.mag)),u=r.sign+n.sign*c;return E(Math.sign(u),1,Math.log10(r.mag)+Math.log10(Math.abs(u)))}}if(Math.abs(n.mag-r.mag)>St)return n;{const c=Math.pow(10,n.mag-r.mag),u=r.sign+n.sign*c;return E(Math.sign(u),1,r.mag+Math.log10(Math.abs(u)))}}plus(e){return this.add(e)}sub(e){return this.add(g(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=g(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return L(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return L(this.sign*t.sign,0,1);let n,r;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,r=t):(n=t,r=this),n.layer===0&&r.layer===0)return m.fromNumber(n.sign*r.sign*n.mag*r.mag);if(n.layer>=3||n.layer-r.layer>=2)return E(n.sign*r.sign,n.layer,n.mag);if(n.layer===1&&r.layer===0)return E(n.sign*r.sign,1,n.mag+Math.log10(r.mag));if(n.layer===1&&r.layer===1)return E(n.sign*r.sign,1,n.mag+r.mag);if(n.layer===2&&r.layer===1){const i=E(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(E(Math.sign(r.mag),r.layer-1,Math.abs(r.mag)));return E(n.sign*r.sign,i.layer+1,i.sign*i.mag)}if(n.layer===2&&r.layer===2){const i=E(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(E(Math.sign(r.mag),r.layer-1,Math.abs(r.mag)));return E(n.sign*r.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=g(e);return this.mul(t.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return this.mag===0?m.dNaN:this.layer===0?E(this.sign,0,1/this.mag):E(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=g(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,r=t.mag>0?t.layer:-t.layer;return n>r?1:nt.mag?1:this.mag0?t:this}clamp(e,t){return this.max(e).min(t)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,t){const n=g(e);return this.eq_tolerance(n,t)?0:this.cmp(n)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const n=g(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let r=this.mag,i=n.mag;return this.layer>n.layer&&(i=It(i)),this.layer0?E(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):E(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?m.dNaN:this.layer>0?E(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):E(this.sign,0,Math.log10(this.mag))}log(e){return e=g(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?m.dNaN:this.layer===0&&e.layer===0?E(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):m.div(this.log10(),e.log10())}log2(){return this.sign<=0?m.dNaN:this.layer===0?E(this.sign,0,Math.log2(this.mag)):this.layer===1?E(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?E(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):E(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?m.dNaN:this.layer===0?E(this.sign,0,Math.log(this.mag)):this.layer===1?E(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?E(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):E(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=g(e),n=this,r=t;if(n.sign===0)return r.eq(0)?L(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(r.sign===0)return L(1,0,1);if(r.sign===1&&r.layer===0&&r.mag===1)return n;const i=n.absLog10().mul(r).pow10();return this.sign===-1?Math.abs(r.toNumber()%2)%2===1?i.neg():Math.abs(r.toNumber()%2)%2===0?i:m.dNaN:i}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return m.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 E(1,0,t);if(e.sign===0)return m.dOne;e=L(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?E(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?E(-e.sign,e.layer+1,-e.mag):m.dOne}pow_base(e){return g(e).pow(this)}root(e){const t=g(e);return this.pow(t.recip())}factorial(){return this.mag<0?this.add(1).gamma():this.layer===0?this.add(1).gamma():this.layer===1?m.exp(m.mul(this,m.ln(this).sub(1))):m.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(L(1,0,24)))return m.fromNumber(Kr(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const n=e*e;let r=e,i=12*r,o=1/i,c=t+o;if(c===t||(t=c,r=r*n,i=360*r,o=1/i,c=t-o,c===t))return m.exp(t);t=c,r=r*n,i=1260*r;let u=1/i;return t=t+u,r=r*n,i=1680*r,u=1/i,t=t-u,m.exp(t)}else return this.layer===1?m.exp(m.mul(this,m.ln(this).sub(1))):m.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?m.dOne:this.layer===0&&this.mag<=709.7?m.fromNumber(Math.exp(this.sign*this.mag)):this.layer===0?E(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?E(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):E(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return m.fromNumber(Math.sqrt(this.sign*this.mag));if(this.layer===1)return E(1,2,Math.log10(this.mag)-.3010299956639812);{const e=m.div(L(this.sign,this.layer-1,this.mag),L(1,0,2));return e.layer+=1,e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow(1/3)}tetrate(e=2,t=L(1,0,1)){if(e===1)return m.pow(this,t);if(e===0)return new m(t);if(this.eq(m.dOne))return m.dOne;if(this.eq(-1))return m.pow(this,t);if(e===Number.POSITIVE_INFINITY){const i=this.toNumber();if(i<=1.444667861009766&&i>=.06598803584531254){if(i>1.444667861009099)return m.fromNumber(Math.E);const o=m.ln(this).neg();return o.lambertw().div(o)}else return i>1.444667861009766?m.fromNumber(Number.POSITIVE_INFINITY):m.dNaN}if(this.eq(m.dZero)){let i=Math.abs((e+1)%2);return i>1&&(i=2-i),m.fromNumber(i)}if(e<0)return m.iteratedlog(t,this,-e);t=g(t);const n=e;e=Math.trunc(e);const r=n-e;if(this.gt(m.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let i=0;i3)return L(t.sign,t.layer+(e-i-1),t.mag);if(i>1e4)return t}return t}iteratedexp(e=2,t=L(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return m.tetrate(e,-t,this);e=g(e);let n=m.fromDecimal(this);const r=t;t=Math.trunc(t);const i=r-t;if(n.layer-e.layer>3){const o=Math.min(t,n.layer-e.layer-3);t-=o,n.layer-=o}for(let o=0;o1e4)return n}return i>0&&i<1&&(e.eq(10)?n=n.layeradd10(-i):n=n.layeradd(-i,e)),n}slog(e=10,t=100){let n=.001,r=!1,i=!1,o=this.slog_internal(e).toNumber();for(let c=1;c1&&i!=d&&(r=!0),i=d,r?n/=2:n*=2,n=Math.abs(n)*(d?-1:1),o+=n,n===0)break}return m.fromNumber(o)}slog_internal(e=10){if(e=g(e),e.lte(m.dZero)||e.eq(m.dOne))return m.dNaN;if(e.lt(m.dOne))return this.eq(m.dOne)?m.dZero:this.eq(m.dZero)?m.dNegOne:m.dNaN;if(this.mag<0||this.eq(m.dZero))return m.dNegOne;let t=0,n=m.fromDecimal(this);if(n.layer-e.layer>3){const r=n.layer-e.layer-3;t+=r,n.layer-=r}for(let r=0;r<100;++r)if(n.lt(m.dZero))n=m.pow(e,n),t-=1;else{if(n.lte(m.dOne))return m.fromNumber(t+m.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=m.log(n,e)}return m.fromNumber(t)}static slog_critical(e,t){return e>10?t-1:m.critical_section(e,t,Zr)}static tetrate_critical(e,t){return m.critical_section(e,t,Jr)}static critical_section(e,t,n){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let r=0,i=0;for(let c=0;ce){const u=(e-Ee[c])/(Ee[c+1]-Ee[c]);r=n[c][Math.floor(t)]*(1-u)+n[c+1][Math.floor(t)]*u,i=n[c][Math.ceil(t)]*(1-u)+n[c+1][Math.ceil(t)]*u;break}const o=t-Math.floor(t);return r<=0||i<=0?r*(1-o)+i*o:Math.pow(e,Math.log(r)/Math.log(e)*(1-o)+Math.log(i)/Math.log(e)*o)}layeradd10(e){e=m.fromValue_noAlloc(e).toNumber();const t=m.fromDecimal(this);if(e>=1){t.mag<0&&t.layer>0?(t.sign=0,t.mag=0,t.layer=0):t.sign===-1&&t.layer==0&&(t.sign=1,t.mag=-t.mag);const n=Math.trunc(e);e-=n,t.layer+=n}if(e<=-1){const n=Math.trunc(e);if(e-=n,t.layer+=n,t.layer<0)for(let r=0;r<100;++r){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 r=this.slog(t).toNumber()+e;return r>=0?m.tetrate(t,r):Number.isFinite(r)?r>=-1?m.log(m.tetrate(t,r+1),t):m.log(m.log(m.tetrate(t,r+2),t),t):m.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return m.fromNumber(jt(this.toNumber()));if(this.layer===0)return m.fromNumber(jt(this.sign*this.mag));if(this.layer===1)return Gt(this);if(this.layer===2)return Gt(this);if(this.layer>=3)return L(this.sign,this.layer-1,this.mag);throw new Error("Unhandled behavior in lambertw()")}ssqrt(){if(this.sign==1&&this.layer>=3)return L(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=L(1,0,1)){t=g(t);const n=e;e=Math.trunc(e);const r=n-e;r!==0&&(t.eq(m.dOne)?(++e,t=m.fromNumber(r)):this.eq(10)?t=t.layeradd10(r):t=t.layeradd(r,this));for(let i=0;i10)return t}return t}sin(){return this.mag<0?this:this.layer===0?m.fromNumber(Math.sin(this.sign*this.mag)):L(0,0,0)}cos(){return this.mag<0?m.dOne:this.layer===0?m.fromNumber(Math.cos(this.sign*this.mag)):L(0,0,0)}tan(){return this.mag<0?this:this.layer===0?m.fromNumber(Math.tan(this.sign*this.mag)):L(0,0,0)}asin(){return this.mag<0?this:this.layer===0?m.fromNumber(Math.asin(this.sign*this.mag)):L(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?m.fromNumber(Math.acos(this.toNumber())):this.layer===0?m.fromNumber(Math.acos(this.sign*this.mag)):L(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?m.fromNumber(Math.atan(this.sign*this.mag)):m.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 m.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return m.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?L(Number.NaN,Number.NaN,Number.NaN):m.ln(this.add(1).div(m.fromNumber(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(m.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 l=m;l.fromStringCache=new Rr(Hr);l.dZero=L(0,0,0);l.dOne=L(1,0,1);l.dNegOne=L(-1,0,1);l.dTwo=L(1,0,2);l.dTen=L(1,0,10);l.dNaN=L(Number.NaN,Number.NaN,Number.NaN);l.dInf=L(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);l.dNegInf=L(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);l.dNumberMax=E(1,0,Number.MAX_VALUE);l.dNumberMin=E(1,0,Number.MIN_VALUE);g=l.fromValue_noAlloc;E=l.fromComponents;L=l.fromComponents_noNormalize;l.fromMantissaExponent;l.fromMantissaExponent_noNormalize;const Yr=new l(1);function Qe(e,t,n=!0){let r=l.log10(e).floor(),i=l.div(e,l.pow(10,r));i.toStringWithDecimalPlaces(t)==="10"&&(i=Yr,r=r.add(1));const o=r.gte(1e9)?de(r,Math.max(Math.max(t,3),R.defaultDecimalsShown)):r.gte(1e4)?ft(r,0):r.toStringWithDecimalPlaces(0);return n?i.toStringWithDecimalPlaces(t)+"e"+o:"e"+o}function ft(e,t){if(e==null)return"NaN";if(e=new l(e),e.mag<.001)return 0 .toFixed(t);const r=e.toStringWithDecimalPlaces(t).split(".");return r[0]=r[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),r.length==1?r[0]:r[0]+"."+r[1]}function nn(e,t){return e==null?"NaN":(e=new l(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),R.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const Xr=new l("eeee1000"),Qr=new l("e100000"),Ht=new l("e1000"),rn=new l(1e9),ei=new l(1e6),ti=new l(1e3),ni=new l(.98),ri=new l(.001),an=new l(0);function de(e,t,n){if(t==null&&(t=R.defaultDecimalsShown),n=n!=null?n:R.defaultShowSmall,e=new l(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+de(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(Xr)){const r=e.slog();return r.gte(ei)?"F"+de(r.floor()):l.pow(10,r.sub(r.floor())).toStringWithDecimalPlaces(3)+"F"+ft(r.floor(),0)}else{if(e.gte(Qr))return Qe(e,0,!1);if(e.gte(Ht))return Qe(e,0);if(e.gte(rn))return Qe(e,t);if(e.gte(ti))return ft(e,0);if(e.gte(ri)||!n)return nn(e,t);if(e.eq(an))return 0 .toFixed(t)}return e=sn(e),e.lt(Ht)?Qe(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):de(e,t)+"\u207B\xB9"}function ue(e){return e=new l(e),e.sign<0?"-"+ue(e.neg()):e.gte(rn)||e.lte(ni)&&!e.eq(an)?de(e):de(e,0)}function on(e){return l.lt(e,0)?"-"+on(l.neg(e)):l.gt(e,2**51)?de(l.div(e,31536e3))+"y":(e=new l(e).toNumber(),e<60?de(e)+"s":e<3600?ue(Math.floor(e/60))+"m "+de(e%60)+"s":e<86400?ue(Math.floor(e/3600))+"h "+ue(Math.floor(e/60)%60)+"m "+ue(e%60)+"s":e<31536e3?ue(Math.floor(e/84600)%365)+"d "+ue(Math.floor(e/3600)%24)+"h "+ue(Math.floor(e/60)%60)+"m":ue(Math.floor(e/31536e3))+"y "+ue(Math.floor(e/84600)%365)+"d "+ue(Math.floor(e/3600)%24)+"h")}function ii(e,t,n){e=new l(e);let r=e.toStringWithDecimalPlaces(t);return new l(r).gte(n)&&(r=l.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),r}function ai(e,t){return de(e,t,!0)}function sn(e){let t=l.log10(e).ceil();const n=l.div(e,l.pow(10,t));return t=t.neg(),e=new l(10).pow(t).times(n),e}var oi=Object.freeze(Object.defineProperty({__proto__:null,default:l,exponentialFormat:Qe,commaFormat:ft,regularFormat:nn,format:de,formatWhole:ue,formatTime:on,toPlaces:ii,formatSmall:ai,invertOOM:sn},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:si,commaFormat:li,regularFormat:ui,format:ln,formatWhole:un,formatTime:Pt,toPlaces:ci,formatSmall:di,invertOOM:fi}=oi;window.Decimal=l;window.exponentialFormat=si;window.commaFormat=li;window.regularFormat=ui;window.format=ln;window.formatWhole=un;window.formatTime=Pt;window.toPlaces=ci;window.formatSmall=di;window.invertOOM=fi;function mi(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function $t(e){return typeof e=="function"}var G=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(G||{});const nt=Symbol("DoNotCache");function ee(e,t){const n=e[t];$t(n)&&n.length===0&&!n[nt]?e[t]=D(n.bind(e)):$t(n)&&(e[t]=n.bind(e),e[t][nt]=!0)}function Wt(e){return $t(e)&&!e[nt]&&(e=D(e)),e}const mt=Symbol("Component"),Et=Symbol("GatherProps");let gi=0;function hi(e="feature-"){return e+gi++}var rt=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(rt||{});function gt(e){const t=s(e);return t!==2&&t!==!1}function cn(e){return s(e)===1}function te(e){return e[nt]=!0,e}function xe(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}var K=window.state=Mt({lastTenTicks:[],hasNaN:!1,NaNPath:[],errors:Re([])});const Ve={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#0f0f0f","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},floatingTabs:!0,mergeAdjacent:!0,showPin:!0};var Vt=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(Vt||{}),yt={classic:Ve,paper:{...Ve,variables:{...Ve.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},floatingTabs:!1},nordic:{...Ve,variables:{...Ve.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},floatingTabs:!1},aqua:{...Ve,variables:{...Ve.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const Q=Yt();"fonts"in document&&(document.fonts.onloadingdone=()=>Q.emit("fontsLoaded"));var vi=Object.freeze(Object.defineProperty({__proto__:null,globalBus:Q},Symbol.toStringTag,{value:"Module"}));const pi=B({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var _;const n=M({}),r=new ResizeObserver(u),i=M(null);pt(()=>{const p=i.value;p!=null&&r.observe(p)});let o=!0,c=M((_=i.value)==null?void 0:_.getBoundingClientRect());function u(){o&&(o=!1,Fe(()=>{var p;c.value=(p=i.value)==null?void 0:p.getBoundingClientRect(),Object.values(n.value).filter(C=>C).forEach(C=>C.rect=C.element.getBoundingClientRect()),t("updateNodes",n.value),o=!0}))}Q.on("fontsLoaded",u);const d={attributes:!1,childList:!0,subtree:!1};ot(fn,(p,C)=>{const k=new MutationObserver(()=>v(p));k.observe(C,d),n.value[p]={element:C,observer:k,rect:C.getBoundingClientRect()},u()}),ot(mn,p=>{var C;(C=n.value[p])==null||C.observer.disconnect(),n.value[p]=void 0,u()}),ot(gn,n),ot(hn,c);function v(p){const C=n.value[p];C!=null&&(C.rect=C.element.getBoundingClientRect(),t("updateNodes",n.value))}return(p,C)=>(h(),w(U,null,[Me(p.$slots,"default",{},void 0,!0),f("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var dn=H(pi,[["__scopeId","data-v-2b1dc1bc"]]);const bi=["onPointerdown"],_i={class:"modal-wrapper"},yi={class:"modal-container"},wi={class:"modal-header"},Ni=V(" default header "),Ci={class:"modal-body"},Si=V(" default body "),Ii={class:"modal-footer"},$i=f("div",{class:"modal-default-flex-grow"},null,-1),Pe=B({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const i=fe(e),o=D(()=>s(i.modelValue)||u.value);function c(){n("update:modelValue",!1)}const u=M(!1),d=M(null),v=D(()=>{var _,p;return(p=(_=d.value)==null?void 0:_.nodes)!=null?p:null});return t({isOpen:o,nodes:v}),(_,p)=>(h(),q(Tn,{to:"#modal-root"},[y(xt,{name:"modal",onBeforeEnter:p[0]||(p[0]=C=>u.value=!0),onAfterLeave:p[1]||(p[1]=C=>u.value=!1)},{default:T(()=>[bt(f("div",qe({class:"modal-mask",onPointerdown:tt(c,["self"])},_.$attrs),[f("div",_i,[f("div",yi,[f("div",wi,[Me(_.$slots,"header",{shown:s(o)},()=>[Ni])]),f("div",Ci,[y(dn,{ref_key:"contextRef",ref:d},{default:T(()=>[Me(_.$slots,"body",{shown:s(o)},()=>[Si])]),_:3},512)]),f("div",Ii,[Me(_.$slots,"footer",{shown:s(o)},()=>[f("div",{class:"modal-default-footer"},[$i,f("button",{class:"button modal-default-button",onClick:c}," Close ")])])])])])],16,bi),[[Kt,e.modelValue]])]),_:3})]))}}),fn=Symbol("RegisterNode"),mn=Symbol("UnregisterNode"),gn=Symbol("Nodes"),hn=Symbol("Bounds"),re=Mt({});window.layers=re;const ze={},me=[];function vn(e,t){return yn(()=>{const n={},r=n.emitter=Yt();if(n.on=r.on.bind(r),n.emit=r.emit.bind(r),n.nodes=M({}),n.id=e,me.push(e),ze[e]=new Set,n.minimized=Ot(!1,!1),Object.assign(n,t.call(n,n)),me[me.length-1]==null||me[me.length-1]!==e)throw new Error(`Adding layers stack in invalid state. This should not happen +Stack: ${me} +Trying to pop ${n.id}`);me.pop(),ee(n,"color"),ee(n,"display"),ee(n,"classes"),ee(n,"style"),ee(n,"name"),xe(n,"name",n.id),ee(n,"minWidth"),xe(n,"minWidth",600),ee(n,"minimizable"),xe(n,"minimizable",!0),ee(n,"minimizedDisplay");const i=n.style;return n.style=D(()=>{var c,u;let o=s(n.minWidth);return(typeof o=="number"||!Number.isNaN(parseInt(o)))&&(o=o+"px"),[(c=s(i))!=null?c:"",(u=n.minimized)!=null&&u.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:o,flexBasis:o,margin:""}]}),n})}function pn(e,t){if(console.info("Adding layer",e.id),re[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,re[e.id]);return}xe(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),re[e.id]=e,Q.emit("addLayer",e,t.layers[e.id])}function ki(e){return re[e]}function bn(e){console.info("Removing layer",e.id),Q.emit("removeLayer",e),re[e.id]=void 0}function Mi(e){bn(e),pn(e,O)}function xi(e){const t=M(!1);return{openModal:()=>t.value=!0,modal:te(()=>y(Pe,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>y("h2",null,[s(e.name)]),body:s(e.display)}))}}Q.on("update",function(t){Object.values(re).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(re).forEach(n=>{n==null||n.emit("update",t)}),Object.values(re).forEach(n=>{n==null||n.emit("postUpdate",t)})});var Fi=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:fn,UnregisterNodeInjectionKey:mn,NodesInjectionKey:gn,BoundsInjectionKey:hn,layers:re,persistentRefs:ze,addingLayers:me,createLayer:vn,addLayer:pn,getLayer:ki,removeLayer:bn,reloadLayer:Mi,setupLayerModal:xi},Symbol.toStringTag,{value:"Module"}));const _n=l.ln(10);function st(e){return e}function Xe(e,...t){const n=t.find(r=>N(r));return n==null?(console.error("Could not invert due to no input being a variable"),0):n.invert(e)}function Ti(e,t){return N(t)?t.invert(l.neg(e)):(console.error("Could not invert due to no input being a variable"),0)}function Pi(e,t){return N(t)?t.isIntegrable()?a.neg(t.getIntegralFormula(e)):(console.error("Could not integrate due to variable not being integrable"),a.constant(0)):(console.error("Could not integrate due to no input being a variable"),a.constant(0))}function Ei(e){return a.neg(e)}function Vi(e,t,n){return N(t)?t.invert(l.sub(e,Y(n))):N(n)?n.invert(l.sub(e,Y(t))):(console.error("Could not invert due to no input being a variable"),0)}function Oi(e,t,n){var r,i;if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const o=t.getIntegralFormula(e);return a.times(n,(r=t.innermostVariable)!=null?r:0).add(o)}else if(N(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const o=n.getIntegralFormula(e);return a.times(t,(i=n.innermostVariable)!=null?i:0).add(o)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Li(e,t,n){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=t.getIntegralFormula(e);return a.add(r,n)}else if(N(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=n.getIntegralFormula(e);return a.add(r,t)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Di(e,t,n){return N(t)?t.invert(l.add(e,Y(n))):N(n)?n.invert(l.sub(Y(t),e)):(console.error("Could not invert due to no input being a variable"),0)}function qi(e,t,n){var r,i;if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const o=t.getIntegralFormula(e);return a.sub(o,a.times(n,(r=t.innermostVariable)!=null?r:0))}else if(N(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const o=n.getIntegralFormula(e);return a.times(t,(i=n.innermostVariable)!=null?i:0).sub(o)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Ri(e,t,n){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=t.getIntegralFormula(e);return a.sub(r,n)}else if(N(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=n.getIntegralFormula(e);return a.sub(r,t)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Bi(e,t,n){return N(t)?t.invert(l.div(e,Y(n))):N(n)?n.invert(l.div(e,Y(t))):(console.error("Could not invert due to no input being a variable"),0)}function Ai(e,t,n){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=t.getIntegralFormula(e);return a.times(r,n)}else if(N(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=n.getIntegralFormula(e);return a.times(r,t)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Ui(e,t,n){return N(t)?a.div(e,n):N(n)?a.div(e,t):(console.error("Could not apply substitution due to no input being a variable"),a.constant(0))}function zi(e,t,n){return N(t)?t.invert(l.mul(e,Y(n))):N(n)?n.invert(l.div(Y(t),e)):(console.error("Could not invert due to no input being a variable"),0)}function ji(e,t,n){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=t.getIntegralFormula(e);return a.div(r,n)}else if(N(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=n.getIntegralFormula(e);return a.div(t,r)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Gi(e,t,n){return N(t)?a.mul(e,n):N(n)?a.mul(e,t):(console.error("Could not apply substitution due to no input being a variable"),a.constant(0))}function Hi(e,t){return N(t)?t.invert(l.recip(e)):(console.error("Could not invert due to no input being a variable"),0)}function Wi(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.ln(n)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Ji(e,t){return N(t)?t.invert(l.pow10(e)):(console.error("Could not invert due to no input being a variable"),0)}function Zi(e){return l.ln(e).sub(1).times(e).div(_n)}function Ki(e,t){if(N(t)){const n=_n.times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}return console.error("Could not invert due to no input being a variable"),0}function Yi(e,t){return N(t)?t.isIntegrable()?new a({inputs:[t.getIntegralFormula(e)],evaluate:Zi,invert:Ki}):(console.error("Could not integrate due to variable not being integrable"),a.constant(0)):(console.error("Could not integrate due to no input being a variable"),a.constant(0))}function Xi(e,t,n){return N(t)?t.invert(l.pow(Y(n),e)):N(n)?n.invert(l.root(Y(t),e)):(console.error("Could not invert due to no input being a variable"),0)}function Qi(e,t){return l.ln(e).sub(1).times(e).div(l.ln(t))}function ea(e,t,n){if(N(t)){const r=l.ln(Y(n)).times(e);return t.invert(r.div(r.div(Math.E).lambertw()))}return console.error("Could not invert due to no input being a variable"),0}function ta(e,t,n){return N(t)?t.isIntegrable()?new a({inputs:[t.getIntegralFormula(e),n],evaluate:Qi,invert:ea}):(console.error("Could not integrate due to variable not being integrable"),a.constant(0)):(console.error("Could not integrate due to no input being a variable"),a.constant(0))}function na(e,t){return N(t)?t.invert(l.pow(2,e)):(console.error("Could not invert due to no input being a variable"),0)}function ra(e){return l.ln(e).sub(1).times(e).div(l.ln(2))}function ia(e,t){if(N(t)){const n=l.ln(2).times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}return console.error("Could not invert due to no input being a variable"),0}function aa(e,t){return N(t)?t.isIntegrable()?new a({inputs:[t.getIntegralFormula(e)],evaluate:ra,invert:ia}):(console.error("Could not integrate due to variable not being integrable"),a.constant(0)):(console.error("Could not integrate due to no input being a variable"),a.constant(0))}function oa(e,t){return N(t)?t.invert(l.exp(e)):(console.error("Could not invert due to no input being a variable"),0)}function sa(e){return l.ln(e).sub(1).times(e)}function la(e,t){return N(t)?t.invert(l.div(e,l.div(e,Math.E).lambertw())):(console.error("Could not invert due to no input being a variable"),0)}function ua(e,t){return N(t)?t.isIntegrable()?new a({inputs:[t.getIntegralFormula(e)],evaluate:sa,invert:la}):(console.error("Could not integrate due to variable not being integrable"),a.constant(0)):(console.error("Could not integrate due to no input being a variable"),a.constant(0))}function ca(e,t,n){return N(t)?t.invert(l.root(e,Y(n))):N(n)?n.invert(l.ln(e).div(l.ln(Y(t)))):(console.error("Could not invert due to no input being a variable"),0)}function da(e,t,n){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=t.getIntegralFormula(e),i=a.add(n,1);return a.pow(r,i).div(i)}else if(N(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=n.getIntegralFormula(e);return a.pow(t,r).div(a.ln(t))}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function fa(e,t){return N(t)?t.invert(l.root(e,10)):(console.error("Could not invert due to no input being a variable"),0)}function ma(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.pow10(n).div(a.ln(10))}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function ga(e,t,n){return N(t)?t.invert(l.ln(e).div(l.ln(Y(n)))):N(n)?n.invert(l.root(Y(t),e)):(console.error("Could not invert due to no input being a variable"),0)}function ha(e,t,n){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=t.getIntegralFormula(e);return a.pow(n,r).div(a.ln(n))}else if(N(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=n.getIntegralFormula(e),i=a.add(t,1);return a.pow(r,i).div(i)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function va(e,t,n){return N(t)?t.invert(l.root(e,l.recip(Y(n)))):N(n)?n.invert(l.ln(Y(t)).div(l.ln(e))):(console.error("Could not invert due to no input being a variable"),0)}function pa(e,t,n){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const r=t.getIntegralFormula(e);return a.pow(r,a.recip(n).add(1)).times(n).div(a.add(n,1))}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function ba(e,t){return N(t)?t.invert(l.ln(e)):(console.error("Could not invert due to no input being a variable"),0)}function _a(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.exp(n)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function ya(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){const r=l.minabs(t,1e308).toNumber();return l.tetrate(e,r,n)}function wa(e,t,n,r){return N(t)?t.invert(l.ssqrt(e)):(console.error("Could not invert due to no input being a variable"),0)}function Na(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){const r=l.minabs(t,1e308).toNumber();return l.iteratedexp(e,r,new l(n))}function Ca(e,t,n,r){return N(t)?t.invert(l.iteratedlog(e,Math.E,l.minabs(1e308,Y(n)).toNumber())):(console.error("Could not invert due to no input being a variable"),0)}function Sa(e,t=10,n=2){const r=l.minabs(n,1e308).toNumber();return l.iteratedlog(e,t,r)}function Ia(e,t=10){const n=l.minabs(t,1e308).toNumber();return l.slog(e,n)}function $a(e,t,n){return N(t)?t.invert(l.tetrate(e,l.minabs(1e308,Y(n)).toNumber())):(console.error("Could not invert due to no input being a variable"),0)}function ka(e,t,n){const r=l.minabs(t,1e308).toNumber();return l.layeradd(e,r,n)}function Ma(e,t,n,r){return N(t)?t.invert(l.layeradd(e,l.minabs(1e308,Y(n)).negate().toNumber())):(console.error("Could not invert due to no input being a variable"),0)}function xa(e,t){return N(t)?t.invert(l.pow(Math.E,e).times(e)):(console.error("Could not invert due to no input being a variable"),0)}function Fa(e,t){return N(t)?t.invert(l.tetrate(e,2)):(console.error("Could not invert due to no input being a variable"),0)}function Ta(e,t,n){const r=l.minabs(t,1e308).toNumber();return l.pentate(e,r,n)}function Pa(e,t){return N(t)?t.invert(l.asin(e)):(console.error("Could not invert due to no input being a variable"),0)}function Ea(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.cos(n).neg()}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Va(e,t){return N(t)?t.invert(l.acos(e)):(console.error("Could not invert due to no input being a variable"),0)}function Oa(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.sin(n)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function La(e,t){return N(t)?t.invert(l.atan(e)):(console.error("Could not invert due to no input being a variable"),0)}function Da(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.cos(n).ln().neg()}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function qa(e,t){return N(t)?t.invert(l.sin(e)):(console.error("Could not invert due to no input being a variable"),0)}function Ra(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.asin(n).times(n).add(a.sqrt(a.sub(1,a.pow(n,2))))}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Ba(e,t){return N(t)?t.invert(l.cos(e)):(console.error("Could not invert due to no input being a variable"),0)}function Aa(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.acos(n).times(n).sub(a.sqrt(a.sub(1,a.pow(n,2))))}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Ua(e,t){return N(t)?t.invert(l.tan(e)):(console.error("Could not invert due to no input being a variable"),0)}function za(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.atan(n).times(n).sub(a.ln(a.pow(n,2).add(1)).div(2))}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function ja(e,t){return N(t)?t.invert(l.asinh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Ga(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.cosh(n)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Ha(e,t){return N(t)?t.invert(l.acosh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Wa(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.sinh(n)}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Ja(e,t){return N(t)?t.invert(l.atanh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Za(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.cosh(n).ln()}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Ka(e,t){return N(t)?t.invert(l.sinh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Ya(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.asinh(n).times(n).sub(a.pow(n,2).add(1).sqrt())}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Xa(e,t){return N(t)?t.invert(l.cosh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Qa(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.acosh(n).times(n).sub(a.add(n,1).sqrt().times(a.sub(n,1).sqrt()))}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function eo(e,t){return N(t)?t.invert(l.tanh(e)):(console.error("Could not invert due to no input being a variable"),0)}function to(e,t){if(N(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),a.constant(0);const n=t.getIntegralFormula(e);return a.atanh(n).times(n).add(a.sub(1,a.pow(n,2)).ln().div(2))}return console.error("Could not integrate due to no input being a variable"),a.constant(0)}function Ze(e){return(t,n)=>new a({inputs:[t,n],evaluate:e,invert:st})}function N(e){return e instanceof Z&&e.hasVariable()}function Y(e,t){return e instanceof Z?e.evaluate(t):s(e)}function no(){return a.pow(this,2).div(2)}function ro(){return this}const X=class{constructor(e){this.negate=this.neg,this.negated=this.neg,this.sgn=this.sign,this.plus=this.add,this.subtract=this.sub,this.minus=this.sub,this.multiply=this.mul,this.times=this.mul,this.divide=this.div,this.divideBy=this.div,this.dividedBy=this.div,this.reciprocal=this.recip,this.reciprocate=this.recip,this.logarithm=this.log;let t;"inputs"in e&&(e.inputs=e.inputs.map(n=>typeof n=="object"&&Oe in n?n[Oe]:n)),"variable"in e?(typeof e.variable=="object"&&Oe in e.variable&&(e.variable=e.variable[Oe]),t=this.setupVariable(e)):"evaluate"in e?t=this.setupFormula(e):t=this.setupConstant(e),this.inputs=t.inputs,this.internalVariables=t.internalVariables,this.innermostVariable=t.innermostVariable,this.internalEvaluate=t.internalEvaluate,this.internalInvert=t.internalInvert,this.internalIntegrate=t.internalIntegrate,this.internalIntegrateInner=t.internalIntegrateInner,this.applySubstitution=t.applySubstitution}setupVariable({variable:e}){return{inputs:[e],internalVariables:1,innermostVariable:e,internalIntegrate:no,internalIntegrateInner:ro,applySubstitution:st}}setupConstant({inputs:e}){return e.length!==1&&console.error("Evaluate function is required if inputs is not length 1"),{inputs:e,internalVariables:0}}setupFormula(e){var C,k;const{inputs:t,evaluate:n,invert:r,integrate:i,integrateInner:o,applySubstitution:c}=e,u=t.reduce((b,S)=>b+(S instanceof X?S.internalVariables:0),0),d=t.find(b=>b instanceof X&&b.hasVariable()),v=u===1?d==null?void 0:d.innermostVariable:void 0,_=(C=d==null?void 0:d.isInvertible())!=null?C:!1,p=(k=d==null?void 0:d.isIntegrable())!=null?k:!1;return{inputs:t,internalEvaluate:n,internalInvert:_?r:void 0,internalIntegrate:p?i:void 0,internalIntegrateInner:o,applySubstitution:c,innermostVariable:v,internalVariables:u}}isInvertible(){return this.hasVariable()&&(this.internalInvert!=null||this.internalEvaluate==null)}isIntegrable(){return this.hasVariable()&&this.internalIntegrate!=null}isIntegralInvertible(){return this.isIntegrable()?this.getIntegralFormula().isInvertible():!1}hasVariable(){return this.internalVariables===1}evaluate(e){var t,n,r;return(r=(n=(t=this.internalEvaluate)==null?void 0:t.call(this,...this.inputs.map(i=>Y(i,e))))!=null?n:this.hasVariable()?e:null)!=null?r:Y(this.inputs[0])}equals(e){return this.inputs.length===e.inputs.length&&this.inputs.every((t,n)=>t instanceof X&&e.inputs[n]instanceof X?t.equals(e.inputs[n]):!(t instanceof X)&&!(e.inputs[n]instanceof X)&&l.eq(s(t),s(e.inputs[n])))&&this.internalEvaluate===e.internalEvaluate&&this.internalInvert===e.internalInvert&&this.internalIntegrate===e.internalIntegrate&&this.internalVariables===e.internalVariables}static constant(e){return new a({inputs:[e]})}static variable(e){return new a({variable:e})}static step(e,t,n){const r=n(a.variable(0)),i=Wt(t);function o(u){return l.lt(u,s(i))?u:l.add(r.evaluate(l.sub(u,s(i))),s(i))}function c(u,d){return N(d)&&r.isInvertible()?(l.gt(u,s(i))&&(u=l.add(r.invert(l.sub(u,s(i))),s(i))),d.invert(u)):(console.error("Could not invert due to no input being a variable"),0)}return new a({inputs:[e],evaluate:o,invert:r.isInvertible()&&r.hasVariable()?c:void 0})}static if(e,t,n,r){const i=M(0),o=a.variable(i),c=n(o),u=r==null?void 0:r(o),d=Wt(t);function v(p){return s(d)?(i.value=p,c.evaluate()):u?(i.value=p,u.evaluate()):p}function _(p,C){return!N(C)||!c.isInvertible()||u!=null&&!u.isInvertible()?(console.error("Could not invert due to no input being a variable"),0):s(d)?C.invert(c.invert(p)):u?C.invert(u.invert(p)):C.invert(p)}return new a({inputs:[e],evaluate:v,invert:c.isInvertible()&&c.hasVariable()?_:void 0})}static conditional(e,t,n,r){return a.if(e,t,n,r)}static abs(e){return new a({inputs:[e],evaluate:l.abs})}static neg(e){return new a({inputs:[e],evaluate:l.neg,invert:Ti,applySubstitution:Ei,integrate:Pi})}static sign(e){return new a({inputs:[e],evaluate:l.sign})}static round(e){return new a({inputs:[e],evaluate:l.round,invert:Xe})}static floor(e){return new a({inputs:[e],evaluate:l.floor,invert:Xe})}static ceil(e){return new a({inputs:[e],evaluate:l.ceil,invert:Xe})}static trunc(e){return new a({inputs:[e],evaluate:l.trunc,invert:Xe})}static add(e,t){return new a({inputs:[e,t],evaluate:l.add,invert:Vi,integrate:Oi,integrateInner:Li,applySubstitution:st})}static sub(e,t){return new a({inputs:[e,t],evaluate:l.sub,invert:Di,integrate:qi,integrateInner:Ri,applySubstitution:st})}static mul(e,t){return new a({inputs:[e,t],evaluate:l.mul,invert:Bi,integrate:Ai,applySubstitution:Ui})}static div(e,t){return new a({inputs:[e,t],evaluate:l.div,invert:zi,integrate:ji,applySubstitution:Gi})}static recip(e){return new a({inputs:[e],evaluate:l.recip,invert:Hi,integrate:Wi})}static clamp(e,t,n){return new a({inputs:[e,t,n],evaluate:l.clamp,invert:Xe})}static pLog10(e){return new a({inputs:[e],evaluate:l.pLog10})}static absLog10(e){return new a({inputs:[e],evaluate:l.absLog10})}static log10(e){return new a({inputs:[e],evaluate:l.log10,invert:Ji,integrate:Yi})}static log(e,t){return new a({inputs:[e,t],evaluate:l.log,invert:Xi,integrate:ta})}static log2(e){return new a({inputs:[e],evaluate:l.log2,invert:na,integrate:aa})}static ln(e){return new a({inputs:[e],evaluate:l.ln,invert:oa,integrate:ua})}static pow(e,t){return new a({inputs:[e,t],evaluate:l.pow,invert:ca,integrate:da})}static pow10(e){return new a({inputs:[e],evaluate:l.pow10,invert:fa,integrate:ma})}static pow_base(e,t){return new a({inputs:[e,t],evaluate:l.pow_base,invert:ga,integrate:ha})}static root(e,t){return new a({inputs:[e,t],evaluate:l.root,invert:va,integrate:pa})}static factorial(e){return new a({inputs:[e],evaluate:l.factorial})}static gamma(e){return new a({inputs:[e],evaluate:l.gamma})}static lngamma(e){return new a({inputs:[e],evaluate:l.lngamma})}static exp(e){return new a({inputs:[e],evaluate:l.exp,invert:ba,integrate:_a})}static sqr(e){return a.pow(e,2)}static sqrt(e){return a.root(e,2)}static cube(e){return a.pow(e,3)}static cbrt(e){return a.root(e,3)}static tetrate(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){return new a({inputs:[e,t,n],evaluate:ya,invert:wa})}static iteratedexp(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){return new a({inputs:[e,t,n],evaluate:Na,invert:Ca})}static iteratedlog(e,t=10,n=1){return new a({inputs:[e,t,n],evaluate:Sa})}static slog(e,t=10){return new a({inputs:[e,t],evaluate:Ia,invert:$a})}static layeradd10(e,t){return new a({inputs:[e,t],evaluate:l.layeradd10})}static layeradd(e,t,n=10){return new a({inputs:[e,t,n],evaluate:ka,invert:Ma})}static lambertw(e){return new a({inputs:[e],evaluate:l.lambertw,invert:xa})}static ssqrt(e){return new a({inputs:[e],evaluate:l.ssqrt,invert:Fa})}static pentate(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){return new a({inputs:[e,t,n],evaluate:Ta})}static sin(e){return new a({inputs:[e],evaluate:l.sin,invert:qa,integrate:Ea})}static cos(e){return new a({inputs:[e],evaluate:l.cos,invert:Ba,integrate:Oa})}static tan(e){return new a({inputs:[e],evaluate:l.tan,invert:Ua,integrate:Da})}static asin(e){return new a({inputs:[e],evaluate:l.asin,invert:Pa,integrate:Ra})}static acos(e){return new a({inputs:[e],evaluate:l.acos,invert:Va,integrate:Aa})}static atan(e){return new a({inputs:[e],evaluate:l.atan,invert:La,integrate:za})}static sinh(e){return new a({inputs:[e],evaluate:l.sinh,invert:Ka,integrate:Ga})}static cosh(e){return new a({inputs:[e],evaluate:l.cosh,invert:Xa,integrate:Wa})}static tanh(e){return new a({inputs:[e],evaluate:l.tanh,invert:eo,integrate:Za})}static asinh(e){return new a({inputs:[e],evaluate:l.asinh,invert:ja,integrate:Ya})}static acosh(e){return new a({inputs:[e],evaluate:l.acosh,invert:Ha,integrate:Qa})}static atanh(e){return new a({inputs:[e],evaluate:l.atanh,invert:Ja,integrate:to})}step(e,t){return a.step(this,e,t)}if(e,t){return a.if(this,e,t)}conditional(e,t){return a.if(this,e,t)}abs(){return a.abs(this)}neg(){return a.neg(this)}sign(){return a.sign(this)}round(){return a.round(this)}floor(){return a.floor(this)}ceil(){return a.ceil(this)}trunc(){return a.trunc(this)}add(e){return a.add(this,e)}sub(e){return a.sub(this,e)}mul(e){return a.mul(this,e)}div(e){return a.div(this,e)}recip(){return a.recip(this)}max(e){return a.max(this,e)}min(e){return a.min(this,e)}maxabs(e){return a.maxabs(this,e)}minabs(e){return a.minabs(this,e)}clamp(e,t){return a.clamp(this,e,t)}clampMin(e){return a.clampMin(this,e)}clampMax(e){return a.clampMax(this,e)}pLog10(){return a.pLog10(this)}absLog10(){return a.absLog10(this)}log10(){return a.log10(this)}log(e){return a.log(this,e)}log2(){return a.log2(this)}ln(){return a.ln(this)}pow(e){return a.pow(this,e)}pow10(){return a.pow10(this)}pow_base(e){return a.pow_base(this,e)}root(e){return a.root(this,e)}factorial(){return a.factorial(this)}gamma(){return a.gamma(this)}lngamma(){return a.lngamma(this)}exp(){return a.exp(this)}sqr(){return a.pow(this,2)}sqrt(){return a.root(this,2)}cube(){return a.pow(this,3)}cbrt(){return a.root(this,3)}tetrate(e=2,t=l.fromComponents_noNormalize(1,0,1)){return a.tetrate(this,e,t)}iteratedexp(e=2,t=l.fromComponents_noNormalize(1,0,1)){return a.iteratedexp(this,e,t)}iteratedlog(e=10,t=1){return a.iteratedlog(this,e,t)}slog(e=10){return a.slog(this,e)}layeradd10(e){return a.layeradd10(this,e)}layeradd(e,t){return a.layeradd(this,e,t)}lambertw(){return a.lambertw(this)}ssqrt(){return a.ssqrt(this)}pentate(e=2,t=l.fromComponents_noNormalize(1,0,1)){return a.pentate(this,e,t)}sin(){return a.sin(this)}cos(){return a.cos(this)}tan(){return a.tan(this)}asin(){return a.asin(this)}acos(){return a.acos(this)}atan(){return a.atan(this)}sinh(){return a.sinh(this)}cosh(){return a.cosh(this)}tanh(){return a.tanh(this)}asinh(){return a.asinh(this)}acosh(){return a.acosh(this)}atanh(){return a.atanh(this)}};let Z=X;Z.negate=X.neg;Z.negated=X.neg;Z.sgn=X.sign;Z.plus=X.add;Z.subtract=X.sub;Z.minus=X.sub;Z.multiply=X.mul;Z.times=X.mul;Z.divide=X.div;Z.divideBy=X.div;Z.dividedBy=X.div;Z.reciprocal=X.recip;Z.reciprocate=X.recip;Z.max=Ze(l.max);Z.min=Ze(l.min);Z.minabs=Ze(l.minabs);Z.maxabs=Ze(l.maxabs);Z.clampMin=Ze(l.clampMin);Z.clampMax=Ze(l.clampMax);Z.logarithm=X.log;class a extends Z{invert(t){return this.internalInvert&&this.hasVariable()?this.internalInvert.call(this,t,...this.inputs):this.inputs.length===1&&this.hasVariable()?t:(console.error("Cannot invert non-invertible formula"),0)}evaluateIntegral(t){return this.isIntegrable()?this.getIntegralFormula().evaluate(t):(console.error("Cannot evaluate integral of formula without integral"),0)}invertIntegral(t){return!this.isIntegrable()||!this.getIntegralFormula().isInvertible()?(console.error("Cannot invert integral of formula without invertible integral"),0):this.getIntegralFormula().invert(t)}calculateConstantOfIntegration(){const t=this.getIntegralFormula().evaluate(1),n=l.add(this.evaluate(0),this.evaluate(1)).div(2);return l.sub(n,t)}getIntegralFormula(t){if(this.integralFormula!=null&&t==null)return this.integralFormula;if(t==null){if(this.applySubstitution==null){if(t=[],this.internalIntegrate==null)return console.error("Cannot integrate formula with non-integrable operation"),a.constant(0);let n=this.internalIntegrate.call(this,t,...this.inputs);t.forEach(r=>n=r(n)),this.integralFormula=n}else if(this.internalIntegrate)this.integralFormula=this.internalIntegrate.call(this,void 0,...this.inputs);else if(this.inputs.length===1&&this.internalEvaluate==null&&this.hasVariable())this.integralFormula=this;else return console.error("Cannot integrate formula without variable"),a.constant(0);return this.integralFormula}else return this.applySubstitution==null?(console.error("Cannot have two complex operations in an integrable formula"),a.constant(0)):(t.push(n=>this.applySubstitution.call(this,n,...this.inputs)),this.internalIntegrateInner?this.internalIntegrateInner.call(this,t,...this.inputs):this.internalIntegrate?this.internalIntegrate.call(this,t,...this.inputs):this.inputs.length===1&&this.internalEvaluate==null&&this.hasVariable()?this:(console.error("Cannot integrate formula without variable"),a.constant(0)))}}const je=Symbol("PersistentState"),ht=Symbol("DefaultValue"),vt=Symbol("StackTrace"),kt=Symbol("Deleted"),Oe=Symbol("NonPersistent"),Le=Symbol("SaveDataPath"),io=Symbol("SkipPersistence");function ao(){var e,t;return(t=(e=new Error().stack)==null?void 0:e.split(` +`).slice(3,5).map(n=>n.trim()).join(` +`))!=null?t:""}function Jt(e,t){var n;l.isNaN(t)&&(K.hasNaN||(O.autosave=!1,K.hasNaN=!0,K.NaNPath=e[Le],K.NaNPersistent=e),console.error(`Attempted to save NaN value to ${(n=e[Le])==null?void 0:n.join(".")}`)),e[je].value=t}function Ot(e,t=!0){const n=he(e)?e:M(e);he(e)&&(e=e.value);const r=D({get(){return n.value},set(o){t?Jt(i,o):i[je].value=o}});r[ht]=e;const i={get value(){return n.value},set value(o){t?Jt(i,o):i[je].value=o},__v_isRef:!0,[je]:n,[ht]:e,[vt]:ao(),[kt]:!1,[Oe]:r,[Le]:void 0};return me.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",i,` +Created at: +`+i[vt]):ze[me[me.length-1]].add(i),i}function oo(e){return e!=null&&typeof e=="object"&&je in e}Q.on("addLayer",(e,t)=>{const n=[],r=(i,o=[])=>{let c=!1;return Object.keys(i).forEach(u=>{let d=i[u];if(d!=null&&typeof d=="object"){if(d[io]===!0)return;if($e in d&&(d=d[$e]),oo(d)){if(c=!0,d[kt]){console.warn("Deleted persistent ref present in returned object. Ignoring...",d,` +Created at: +`+d[vt]);return}ze[e.id].delete(d);const v=[e.id,...o,u];d[Le]!=null&&JSON.stringify(v)!==JSON.stringify(d[Le])&&console.error(`Persistent ref is being saved to \`${v.join(".")}\` when it's already present at \`${d[Le].join(".")}\`.`,"This can cause unexpected behavior when loading saves between updates."),d[Le]=v;const _=o.reduce((C,k)=>(k in C||(C[k]={}),C[k]),t),p=_[u];_[u]=d[je],Pn(_)?p!=null?_[u]=p:_[u]=d[ht]:p!=null?_[u].value=p:_[u].value=d[ht]}else!(d instanceof l)&&!(d instanceof a)&&!he(d)&&!n.includes(d)&&(typeof d.type=="symbol"&&n.push(d),r(d,[...o,u])&&(At(d)&&!At(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.",$e in i?i[$e]:i,u):c=!0))}}),c};r(e[$e]),ze[e.id].forEach(i=>{i[kt]||console.error(`Created persistent ref in ${e.id} without registering it to the layer!`,`Make sure to include everything persistent in the returned object. + +Created at: +`+i[vt])}),ze[e.id].clear()});const $e=Symbol("ProxyState");function yn(e,t={}){const n=t;let r=!1,i=!1;function o(){return r||(i&&console.error("Cyclical dependency detected. Cannot evaluate lazy proxy."),i=!0,Object.assign(n,e.call(n,n)),r=!0),n}return new Proxy(n,{get(c,u){if(u===$e)return o();const d=o()[u];return d!=null&&typeof d=="object"&&Oe in d?d[Oe]:d},set(c,u,d){return o()[u]=d,!0},has(c,u){return u===$e?!0:Reflect.has(o(),u)},ownKeys(){return Reflect.ownKeys(o())},getOwnPropertyDescriptor(c,u){return r||(Object.assign(n,e.call(n,n)),r=!0),Object.getOwnPropertyDescriptor(c,u)}})}const He=M(!1),oe=M(null),_e=M(!1),Lt=M({});M({});const Zt=Xt(),Ae=M(),lt=M("");function Ue(e,...t){var n;!He.value||(n=Ae.value)==null||n.emit(e,...t)}function so(){return O.layers.main[$e]}Q.on("loadSettings",e=>{xe(e,"server",window.location.origin),xe(e,"nickname",uo()),se(()=>e.server,t=>{Ae.value&&Ae.value.close(),Ae.value=Dn(t),lo(Ae.value),He.value=!1,lt.value="",Ae.value.connect()},{immediate:!0}),se(()=>e.nickname,t=>{oe.value&&Ue("set nickname",t)})});function lo(e){e.on("connect",()=>{lt.value="",He.value=!0}),e.on("connect_error",t=>{lt.value=`${t.name}: ${t.message}`}),e.on("disconnect",(t,n)=>{var r;lt.value=n instanceof Error?`${n.name}: ${n.message}`:(r=n==null?void 0:n.description)!=null?r:t,He.value=!1}),e.on("server version",t=>{zn(R.versionNumber,t)||(Zt.info("Server only accepts game versions in range: "+t),e.disconnect())}),e.on("info",t=>{Zt.info(t),Q.emit("serverSentInfo")}),e.on("chat",(t,n)=>{Q.emit("chat",t,n)}),e.on("set rooms",t=>{Q.emit("setRooms",t)}),e.on("joined room",(t,n)=>{oe.value=t,_e.value=n,Q.emit("chat",void 0,"you joined "+t)}),e.on("left room",()=>{oe.value=null}),e.on("set nicknames",t=>{Lt.value=t})}function uo(){return qn({dictionaries:[Rn,Bn,An],length:3,separator:" ",style:"capital"})}se(He,e=>{!e&&oe.value&&co()});function co(){_e.value||Nn(),oe.value=null,_e.value=!1}function wn(e={}){return Object.assign({id:`${R.id}-0`,name:"Default Save",tabs:R.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:R.id,modVersion:R.versionNumber,layers:{}},e)}function ce(e){const t=we.compressToUTF16(Tt(e!=null?e:O));return localStorage.setItem((e!=null?e:O).id,t),t}async function Nn(){go();try{let e=localStorage.getItem(z.active);if(e==null){await De(Ge());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=we.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==R.id){await De(Ge());return}t.id=z.active,await De(t)}catch(e){console.error(`Failed to load save. Falling back to new save. +`,e),await De(Ge())}}function Ge(){const e=ut(),t=wn({id:e});return ce(t),z.saves.push(e),t}function ut(){let e,t=0;do e=`${R.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const fo=M(!1);async function De(e){console.info("Loading save",e),fo.value=!0;const{layers:t,removeLayer:n,addLayer:r}=await dt(()=>Promise.resolve().then(function(){return Fi}),void 0),{fixOldSave:i,getInitialLayers:o}=await dt(()=>Promise.resolve().then(function(){return gu}),void 0);for(const c in t){const u=t[c];u&&n(u)}o(e).forEach(c=>r(c,e)),e=wn(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,R.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==R.versionNumber&&(i(e.modVersion,e),e.modVersion=R.versionNumber),Object.assign(O,e),z.active=O.id,Q.emit("onLoad")}setInterval(()=>{O.autosave&&(!oe.value||_e.value)&&ce()},1e3);window.onbeforeunload=()=>{O.autosave&&(!oe.value||_e.value)&&ce()};window.save=ce;const mo=window.hardReset=async()=>{await De(Ge())};window.deleteLowerSaves=()=>{const e=Object.values(z.saves).indexOf(O.id)+1;Object.values(z.saves).slice(e).forEach(t=>localStorage.removeItem(t)),z.saves=z.saves.slice(0,e)};const it=Re({active:"",saves:[],showTPS:!0,theme:Vt.Nordic,unthrottled:!1,alignUnits:!1});se(it,e=>{const t=we.compressToUTF16(JSON.stringify(e));localStorage.setItem(R.id,t)},{deep:!0});var z=window.settings=it;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Vt.Nordic,alignUnits:!1};Q.emit("loadSettings",e),Object.assign(it,e),mo()};function go(){try{let e=localStorage.getItem(R.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=we.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(it,t)}Q.emit("loadSettings",it)}catch{}}const ho=Re([]),vo=Re([]),po=Re([]);function ye(e,t="span"){return typeof e=="function"?B({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),B({template:e})):B({render:()=>({})}):e}function wt(e){if(et(e))return typeof e=="function"?e():ye(e);const t=e[mt];return y(t,e[Et](),null)}function bo(e){if(et(e))return typeof e=="function"?e():typeof e=="string"?y(U,null,[e]):y(e,null,null);const t=e[mt];return y(t,e[Et](),null)}function et(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[nt]===!0}function Cn(e,t="div"){const n=Je();return Ft(()=>{n.value=ye(ve(e),t)}),n}function Nt(e,t="div"){const n=Je(null);return Ft(()=>{const r=ve(e);n.value=r==""||r==null?null:ye(r,t)}),n}function ve(e){return s(s(e))}function J(...e){return e.includes(Object)||e.push(Object),e}const _o=B({components:{Context:dn,ErrorVue:en},props:{index:{type:Number,required:!0},display:{type:J(Object,String,Function),required:!0},minimizedDisplay:J(Object,String,Function),minimized:{type:Object,required:!0},name:{type:J(String),required:!0},color:J(String),minimizable:J(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:n,minimized:r,minimizedDisplay:i}=fe(e),o=Cn(t),c=Nt(i),u=D(()=>R.allowGoBack&&n.value>0&&!ve(r));function d(){O.tabs.splice(s(e.index),1/0)}function v(p){e.nodes.value=p}const _=M([]);return En((p,C,k)=>(console.warn(`Error caught in "${e.name}" layer`,p,C,k),_.value.push(p instanceof Error?p:new Error(JSON.stringify(p))),!1)),{component:o,minimizedComponent:c,showGoBack:u,updateNodes:v,unref:s,goBack:d,errors:_}}}),yo={key:1};function wo(e,t,n,r,i,o){const c=ct("ErrorVue"),u=ct("Context");return e.errors.length>0?(h(),q(c,{key:0,errors:e.errors},null,8,["errors"])):(h(),w("div",qe({key:1,class:"layer-container",style:{"--layer-color":e.unref(e.color)}},e.$attrs),[e.showGoBack?(h(),w("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...d)=>e.goBack&&e.goBack(...d))},"\u274C")):F("",!0),e.unref(e.minimized)?(h(),w("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=d=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(h(),q(le(e.minimizedComponent),{key:0})):(h(),w("div",yo,P(e.unref(e.name)),1))])):(h(),w("div",{key:2,class:ne(["layer-tab",{showGoBack:e.showGoBack}])},[y(u,{onUpdateNodes:e.updateNodes},{default:T(()=>[(h(),q(le(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(h(),w("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=d=>e.$emit("setMinimized",!0))}," \u25BC ")):F("",!0)],16))}var No=H(_o,[["render",wo],["__scopeId","data-v-a9f5b1da"]]);const Sn=e=>(pe("data-v-4b4bda40"),e=e(),be(),e),Co=Sn(()=>f("h2",null,"Changelog",-1)),So=Sn(()=>f("details",{open:""},[f("summary",null,[V("v0.0 Initial Commit - "),f("time",null,"2021-09-04")]),V(" This is the first release :D "),f("ul",null,[f("li",{class:"feature"},"Did everything"),f("li",{class:"fix"},"Had some fun"),f("li",{class:"breaking"},"Removed everything"),f("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),Io=B({__name:"Changelog",setup(e,{expose:t}){const n=M(!1);return t({open(){n.value=!0}}),(r,i)=>(h(),q(Pe,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=o=>n.value=o)},{header:T(()=>[Co]),body:T(()=>[So]),_:1},8,["modelValue"]))}});var $o=H(Io,[["__scopeId","data-v-4b4bda40"]]);const ko=["onSubmit"],Mo={class:"field"},xo={key:0,class:"field-title"},Fo=["placeholder"],To=B({__name:"Text",props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null,submitOnBlur:{type:Boolean}},emits:["update:modelValue","submit","cancel"],setup(e,{emit:t}){const n=e,r=Nt(Te(n,"title"),"span"),i=Je(null);pt(()=>{var d;(d=i.value)==null||d.focus()});const o=D({get(){var d;return(d=s(n.modelValue))!=null?d:""},set(d){t("update:modelValue",d)}});function c(){t("submit")}function u(){n.submitOnBlur!==!1?t("submit"):t("cancel")}return(d,v)=>(h(),w("form",{onSubmit:tt(c,["prevent"])},[f("div",Mo,[s(r)?(h(),w("span",xo,[(h(),q(le(s(r))))])):F("",!0),e.textArea?(h(),q(s(jn),{key:1,modelValue:s(o),"onUpdate:modelValue":v[0]||(v[0]=_=>he(o)?o.value=_:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:u,ref_key:"field",ref:i},null,8,["modelValue","placeholder","maxHeight"])):bt((h(),w("input",{key:2,type:"text","onUpdate:modelValue":v[1]||(v[1]=_=>he(o)?o.value=_:null),placeholder:e.placeholder,class:ne({fullWidth:!e.title}),onBlur:u,ref_key:"field",ref:i},null,42,Fo)),[[Vn,s(o)]])])],40,ko))}});var ke=H(To,[["__scopeId","data-v-90bd4994"]]);const Po={class:"field"},Eo=B({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=D(()=>{var o;return ye((o=s(n.title))!=null?o:"","span")}),i=D({get(){return!!n.modelValue},set(o){t("update:modelValue",o)}});return(o,c)=>(h(),w("label",Po,[bt(f("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":c[0]||(c[0]=u=>he(i)?i.value=u:null)},null,512),[[On,s(i)]]),(h(),q(le(s(r))))]))}});var We=H(Eo,[["__scopeId","data-v-11046116"]]);Q.on("setupVue",e=>e.use(Un));function Vo(e="white",t="8px"){return{transform:"scale(1.05, 1.05)",borderColor:"rgba(0, 0, 0, 0.125)",boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${t} ${e}`,zIndex:1}}const Oo=B({props:{visibility:{type:J(Number,Boolean),required:!0},display:{type:J(Object,String,Function),required:!0},style:J(String,Object,Array),classes:J(Object),glowColor:J(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:t}){const{display:n,glowColor:r,floating:i}=fe(e),o=Cn(n),c=D(()=>{const d=ve(r);return d==null||d===""?{}:s(i)?Vo(d):{boxShadow:`0px 9px 5px -6px ${d}`}});function u(){t("selectTab")}return{selectTab:u,component:o,glowColorStyle:c,unref:s,Visibility:rt,isVisible:gt,isHidden:cn}}});function Lo(e,t,n,r,i,o){var c;return e.isVisible(e.visibility)?(h(),w("button",{key:0,onClick:t[0]||(t[0]=(...u)=>e.selectTab&&e.selectTab(...u)),class:ne(["tabButton",{active:e.active,...e.unref(e.classes)}]),style:ie([{visibility:e.isHidden(e.visibility)?"hidden":void 0},e.glowColorStyle,(c=e.unref(e.style))!=null?c:{}])},[(h(),q(le(e.component)))],6)):F("",!0)}var In=H(Oo,[["render",Lo],["__scopeId","data-v-21427abb"]]);const Do=B({__name:"Sticky",setup(e){const t=M("0"),n=new ResizeObserver(i),r=Je(null);function i(){let o=r.value;if(o==null)return;let c=0;for(;o.previousSibling;){const u=o.previousSibling;u.dataset&&"vSticky"in u.dataset&&(c+=u.offsetHeight),o=u}t.value=c+"px"}return Fe(i),document.fonts.ready.then(i),pt(()=>{var c;const o=(c=r.value)==null?void 0:c.parentElement;o&&n.observe(o)}),(o,c)=>(h(),w("div",{class:"sticky",style:ie({top:t.value}),ref_key:"element",ref:r,"data-v-sticky":""},[Me(o.$slots,"default",{},void 0,!0)],4))}});var qo=H(Do,[["__scopeId","data-v-cccac690"]]);const Ro=B({props:{visibility:{type:J(Number,Boolean),required:!0},activeTab:{type:J(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:J(Object),required:!0},style:J(String,Object,Array),classes:J(Object),buttonContainerStyle:J(String,Object,Array),buttonContainerClasses:J(Object)},components:{Sticky:qo,TabButton:In},setup(e){const{activeTab:t}=fe(e),n=D(()=>yt[z.theme].floatingTabs),r=Je("");Ft(()=>{const u=ve(t);if(u==null){r.value="";return}if(et(u)){r.value=ye(u);return}r.value=ye(s(u.display))});const i=D(()=>{const u=ve(t);return et(u)||!u?void 0:s(u.classes)}),o=D(()=>{const u=ve(t);return et(u)||!u?void 0:s(u.style)});function c(u){const{display:d,style:v,classes:_,glowColor:p,visibility:C}=u;return{display:d,style:s(v),classes:_,glowColor:p,visibility:C}}return{floating:n,tabClasses:i,tabStyle:o,Visibility:rt,component:r,gatherButtonProps:c,unref:s,isVisible:gt,isHidden:cn}}});function Bo(e,t,n,r,i,o){var d,v;const c=ct("TabButton"),u=ct("Sticky");return e.isVisible(e.visibility)?(h(),w("div",{key:0,class:ne(["tab-family-container",{...e.unref(e.classes),...e.tabClasses}]),style:ie([{visibility:e.isHidden(e.visibility)?"hidden":void 0},(d=e.unref(e.style))!=null?d:[],(v=e.tabStyle)!=null?v:[]])},[y(u,{class:ne(["tab-buttons-container",e.unref(e.buttonContainerClasses)]),style:ie(e.unref(e.buttonContainerStyle))},{default:T(()=>[f("div",{class:ne(["tab-buttons",{floating:e.floating}])},[(h(!0),w(U,null,ge(e.unref(e.tabs),(_,p)=>(h(),q(c,qe({onSelectTab:C=>e.selected.value=p,floating:e.floating,key:p,active:e.unref(_.tab)===e.unref(e.activeTab)},e.gatherButtonProps(_)),null,16,["onSelectTab","floating","active"]))),128))],2)]),_:1},8,["class","style"]),e.unref(e.activeTab)?(h(),q(le(e.unref(e.component)),{key:0})):F("",!0)],6)):F("",!0)}var Ao=H(Ro,[["render",Bo],["__scopeId","data-v-58dbf83a"]]);const Uo=Symbol("TabButton"),zo=Symbol("TabFamily");function jo(e,t){Object.keys(e).length===0&&console.error("Cannot create tab family with 0 tabs");const n=Ot(Object.keys(e)[0],!1);return yn(r=>{var c;const i=(c=t==null?void 0:t.call(r,r))!=null?c:{};i.id=hi("tabFamily-"),i.type=zo,i[mt]=Ao,i.tabs=Object.keys(e).reduce((u,d)=>{const v=e[d]();return v.type=Uo,v[mt]=In,ee(v,"visibility"),xe(v,"visibility",rt.Visible),ee(v,"tab"),ee(v,"display"),ee(v,"classes"),ee(v,"style"),ee(v,"glowColor"),u[d]=v,u},{}),i.selected=n,i.activeTab=D(()=>{const u=s(o.tabs);if(n.value in u&>(u[n.value].visibility))return s(u[n.value].tab);const d=Object.values(u).find(v=>gt(v.visibility));return d?s(d.tab):null}),ee(i,"visibility"),xe(i,"visibility",rt.Visible),ee(i,"classes"),ee(i,"style"),ee(i,"buttonContainerClasses"),ee(i,"buttonContainerStyle"),i[Et]=function(){const{visibility:u,activeTab:d,selected:v,tabs:_,style:p,classes:C,buttonContainerClasses:k,buttonContainerStyle:b}=this;return{visibility:u,activeTab:d,selected:v,tabs:_,style:s(p),classes:C,buttonContainerClasses:k,buttonContainerStyle:b}};const o=i;return o})}var Go=B({props:{element:Object,display:{type:J(Object,String,Function),required:!0},style:J(Object,String,Array),classes:J(Object),direction:J(String),xoffset:J(String),yoffset:J(String),pinned:Object},setup(e){const{element:t,display:n,pinned:r}=fe(e),i=M(!1),o=D(()=>(ve(r)||i.value)&&c.value),c=Nt(n),u=Je(ye(te(()=>{const _=ve(t);return _==null?"":bo(_)})));function d(_){const p=r;_.shiftKey&&p&&(p.value=!p.value,_.stopPropagation(),_.preventDefault())}const v=D(()=>ve(r)&&yt[z.theme].showPin);return{Direction:G,isHovered:i,isShown:o,comp:c,elementComp:u,unref:s,togglePinned:d,showPin:v}}});const Ho={key:0,class:"material-icons pinned"};function Wo(e,t,n,r,i,o){return h(),w("div",{class:ne(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=c=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=c=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...c)=>e.togglePinned&&e.togglePinned(...c))},[Me(e.$slots,"default",{},void 0,!0),e.elementComp?(h(),q(le(e.elementComp),{key:0})):F("",!0),y(xt,{name:"fade"},{default:T(()=>{var c;return[e.isShown?(h(),w("div",{key:0,class:ne(["tooltip",{top:e.unref(e.direction)===e.Direction.Up,left:e.unref(e.direction)===e.Direction.Left,right:e.unref(e.direction)===e.Direction.Right,bottom:e.unref(e.direction)===e.Direction.Down,...e.unref(e.classes)}]),style:ie([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(c=e.unref(e.style))!=null?c:{}])},[e.showPin?(h(),w("span",Ho,"push_pin")):F("",!0),e.comp?(h(),q(le(e.comp),{key:1})):F("",!0)],6)):F("",!0)]}),_:1})],34)}var W=H(Go,[["render",Wo],["__scopeId","data-v-6102fa3a"]]);const Dt=e=>(pe("data-v-a7843e62"),e=e(),be(),e),Jo={class:"room"},Zo={key:0,class:"actions"},Ko=Dt(()=>f("span",{class:"material-icons"},"check",-1)),Yo=Dt(()=>f("span",{class:"material-icons"},"close",-1)),Xo={key:1,class:"details"},Qo={key:0,class:"material-icons"},es={key:1,class:"material-icons"},ts={class:"room-host"},ns={key:2,class:"details",style:{display:"flex"}},rs=Dt(()=>f("span",null,"Password:",-1)),is=B({__name:"Room",props:{isPrivate:{type:Boolean},room:null},emits:["connect"],setup(e,{emit:t}){const n=e,{room:r}=fe(n),i=M(!1),o=M("");se(i,d=>{d&&(o.value="")});function c(){r.value.hasPassword?i.value=!0:t("connect")}function u(){t("connect",o.value),i.value=!1}return(d,v)=>(h(),w("div",Jo,[i.value?(h(),w("div",Zo,[f("button",{onPointerdown:u,class:"button"},[y(W,{display:"Join",direction:s(G).Left,class:"info"},{default:T(()=>[Ko]),_:1},8,["direction"])],32),f("button",{onPointerdown:v[0]||(v[0]=_=>i.value=!i.value),class:"button"},[y(W,{display:"Cancel",direction:s(G).Left,class:"info"},{default:T(()=>[Yo]),_:1},8,["direction"])],32)])):F("",!0),i.value?(h(),w("div",ns,[rs,y(ke,{modelValue:o.value,"onUpdate:modelValue":v[1]||(v[1]=_=>o.value=_),class:"editname",onSubmit:u,onCancel:v[2]||(v[2]=_=>i.value=!i.value),submitOnBlur:!1},null,8,["modelValue"])])):(h(),w("div",Xo,[s(r).hasPassword?(h(),w("span",Qo,"lock")):F("",!0),e.isPrivate?(h(),w("span",es,"visibility_off")):F("",!0),f("button",{class:"button open",onClick:c},[f("h3",null,P(s(r).name),1)]),f("div",ts,"Hosted by "+P(s(r).host),1)]))]))}});var as=H(is,[["__scopeId","data-v-a7843e62"]]);const Ke=e=>(pe("data-v-6c2b3a99"),e=e(),be(),e),os=Ke(()=>f("h2",null,"Multiplayer",-1)),ss={style:{"text-align":"center"}},ls=Ke(()=>f("br",null,null,-1)),us={class:"players-list"},cs={key:0,style:{"font-size":"small",color:"grey","margin-left":"10px"}},ds=Ke(()=>f("div",{style:{"flex-grow":"1"}},null,-1)),fs=["onClick"],ms=Ke(()=>f("br",null,null,-1)),gs={key:1},hs=V(" Not connected to a server. Please set up networking in the options modal. "),vs=Ke(()=>f("br",null,null,-1)),ps=[hs,vs],bs={class:"modal-footer"},_s={class:"footer"},ys=Ke(()=>f("div",{style:{"flex-grow":"1"}},null,-1));var ws=B({__name:"RoomsDialog",setup(e,{expose:t}){const n=M(!1),r=M(null);t({open(){n.value=!0}});const i=M(null),o=M(""),c=M(""),u=M(""),d=M(""),v=M(!1),_=jo({roomList:()=>({display:"Room List",tab:te(()=>{var b;return y(U,null,[((b=i.value)!=null?b:[]).map(S=>y(as,{room:S,isPrivate:!1,onConnect:$=>C(S.name,$)},null)),i.value!=null&&i.value.length===0?y("div",{style:"text-align: center"},[V("No public rooms found")]):null,i.value==null?y("div",{style:"text-align: center"},[V("Loading public rooms list...")]):null,y("br",null,null),y("button",{class:"button large",onClick:p},[V("Refresh")])])})}),direct:()=>({display:"Private Room",tab:te(()=>y(U,null,[y("div",{class:"direct-connect"},[y("div",{class:"field"},[y(ke,{"onUpdate:modelValue":b=>o.value=b,modelValue:o.value,title:"Room Name"},null)]),y("div",{class:"field"},[y(ke,{"onUpdate:modelValue":b=>c.value=b,modelValue:c.value,title:"Room Password"},null)]),y("button",{class:"button large",onClick:()=>C(o.value,c.value)},[V("Connect")])])]))}),host:()=>({display:"Host",tab:te(()=>y(U,null,[y("div",{class:"field"},[y(ke,{"onUpdate:modelValue":b=>u.value=b,modelValue:u.value,title:"Room Name"},null)]),y("div",{class:"field"},[y(ke,{"onUpdate:modelValue":b=>d.value=b,modelValue:d.value,title:"Room Password"},null)]),y(We,{"onUpdate:modelValue":b=>v.value=b,modelValue:v.value,title:"Private"},null),y("div",{style:"font-size: small"},[V("You will host the currently active single player world, allowing other players to join and modify your save. It is recommended to backup your save frequently.")]),y("br",null,null),y("button",{class:"button large",onClick:()=>k(u.value,d.value,v.value)},[V("Host")])]))})},()=>({style:"margin-left: 0; margin-right: 0; --layer-color: var(--link)"}));se([n,_.selected],([b,S])=>{b&&S==="roomList"?p():b&&S==="host"&&(u.value=`${z.nickname}'s ${O.name}`)}),se(oe,b=>{b||(o.value="",c.value="",u.value=`${z.nickname}'s ${O.name}`,d.value="",p())}),Q.on("setRooms",b=>i.value=b),Q.on("serverSentInfo",()=>{n.value&&p()});function p(){i.value=null,Ue("get rooms")}function C(b,S){Ue("connect to room",b,S,z.nickname)}function k(b,S,$){Ue("create room",{name:b,password:S,nickname:z.nickname,privateRoom:$===!0,state:so()})}return(b,S)=>(h(),q(Pe,{modelValue:n.value,"onUpdate:modelValue":S[2]||(S[2]=$=>n.value=$),ref_key:"modal",ref:r},{header:T(()=>[os]),body:T(({shown:$})=>[$?(h(),w(U,{key:0},[s(He)?(h(),w(U,{key:0},[s(oe)?(h(),w(U,{key:0},[f("div",ss,[f("h3",null,"Connected to "+P(s(oe)),1)]),ls,f("ul",us,[(h(!0),w(U,null,ge(s(Lt),(A,I)=>(h(),w("div",{key:I,style:{display:"flex"}},[f("span",null,P(A),1),A===s(z).nickname?(h(),w("span",cs,"(YOU)")):F("",!0),ds,s(_e)&&A!==s(z).nickname?(h(),w("button",{key:1,class:"button",style:{color:"red",display:"inline"},onClick:x=>s(Ue)("kick user",A)}," KICK ",8,fs)):F("",!0)]))),128))]),ms,f("button",{class:"button large",onClick:S[0]||(S[0]=()=>k(u.value,d.value,v.value))},P(s(_e)?"Close":"Leave")+" room ",1)],64)):(h(),q(le(s(wt)(s(_))),{key:1}))],64)):(h(),w("div",gs,ps))],64)):F("",!0)]),footer:T(()=>[f("div",bs,[f("div",_s,[ys,f("button",{class:"button modal-default-button",onClick:S[1]||(S[1]=$=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Ns=H(ws,[["__scopeId","data-v-6c2b3a99"]]);const Be=e=>(pe("data-v-10effbe8"),e=e(),be(),e),Cs={class:"info-modal-header"},Ss=["src","alt"],Is={class:"info-modal-title"},$s={key:0},ks={key:0},Ms={key:0},xs=Be(()=>f("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),Fs=Be(()=>f("br",null,null,-1)),Ts=Be(()=>f("br",null,null,-1)),Ps=["href"],Es=Be(()=>f("span",{class:"material-icons info-modal-discord"},"discord",-1)),Vs=Be(()=>f("div",null,[f("a",{href:"https://discord.gg/yJ4fjnjU54",class:"info-modal-discord-link",target:"_blank"},[f("span",{class:"material-icons info-modal-discord"},"discord"),V(" Profectus & Friends ")])],-1)),Os=Be(()=>f("div",null,[f("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link",target:"_blank"},[f("span",{class:"material-icons info-modal-discord"},"discord"),V(" The Modding Tree ")])],-1)),Ls=Be(()=>f("br",null,null,-1));var Ds=B({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:r,logo:i,author:o,discordName:c,discordLink:u,versionNumber:d,versionTitle:v}=R,_=fe(n),p=M(!1),C=D(()=>Pt(O.timePlayed)),k=D(()=>ye(te(()=>y(U,null,[vo.map(wt)]))));t({open(){p.value=!0}});function b(){var S;(S=s(_.changelog))==null||S.open()}return(S,$)=>(h(),q(Pe,{modelValue:p.value,"onUpdate:modelValue":$[0]||($[0]=A=>p.value=A)},{header:T(()=>[f("div",Cs,[s(i)?(h(),w("img",{key:0,class:"info-modal-logo",src:s(i),alt:s(r)},null,8,Ss)):F("",!0),f("div",Is,[f("h2",null,P(s(r)),1),f("h4",null,[V(" v"+P(s(d)),1),s(v)?(h(),w("span",$s,": "+P(s(v)),1)):F("",!0)])])])]),body:T(({shown:A})=>[A?(h(),w("div",ks,[s(o)?(h(),w("div",Ms,"By "+P(s(o)),1)):F("",!0),xs,Fs,f("div",{class:"link",onClick:b},"Changelog"),Ts,f("div",null,[s(u)?(h(),w("a",{key:0,href:s(u),class:"info-modal-discord-link",target:"_blank"},[Es,V(" "+P(s(c)),1)],8,Ps)):F("",!0)]),Vs,Os,Ls,f("div",null,"Time Played: "+P(s(C)),1),(h(),q(le(s(k))))])):F("",!0)]),_:1},8,["modelValue"]))}});var qs=H(Ds,[["__scopeId","data-v-10effbe8"]]);const Rs={class:"field"},Bs={key:0,class:"field-title"},$n=B({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var c;const n=e,r=Nt(Te(n,"title"),"span"),i=M((c=n.options.find(u=>u.value===n.modelValue))!=null?c:null);se(Te(n,"modelValue"),u=>{var d;ve(i)!==u&&(i.value=(d=n.options.find(v=>v.value===u))!=null?d:null)});function o(u){t("update:modelValue",u.value)}return(u,d)=>(h(),w("div",Rs,[s(r)?(h(),w("span",Bs,[(h(),q(le(s(r))))])):F("",!0),y(s(Gn),{options:e.options,modelValue:i.value,"onUpdate:modelValue":[d[0]||(d[0]=v=>i.value=v),o],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}}),As=f("div",{class:"header"},[f("h2",null,"Settings")],-1);var Us=B({__name:"Options",setup(e,{expose:t}){const n=M(!1),r=M("behaviour");function i(S){return S==r.value}function o(S){r.value=S}t({isTab:i,setTab:o,save:ce,open(){n.value=!0}});const c=Object.keys(yt).map(S=>({label:mi(S),value:S})),u=D(()=>ye(te(()=>y(U,null,[ho.map(wt)])))),{showTPS:d,theme:v,unthrottled:_,alignUnits:p}=fe(z);fe(O),D({get(){return O.devSpeed===0},set(S){O.devSpeed=S?0:null}}),te(()=>y("span",{class:"option-title"},[V("Unthrottled"),y("desc",null,[V("Allow the game to run as fast as possible. Not battery friendly.")])])),te(()=>y("span",{class:"option-title"},[V("Offline Production"),y(W,{display:"Save-specific",direction:G.Right},{default:()=>[V("*")]}),y("desc",null,[V("Simulate production that occurs while the game is closed.")])])),te(()=>y("span",{class:"option-title"},[V("Autosave"),y(W,{display:"Save-specific",direction:G.Right},{default:()=>[V("*")]}),y("desc",null,[V("Automatically save the game every second or when the game is closed.")])])),te(()=>y("span",{class:"option-title"},[V("Pause game"),y(W,{display:"Save-specific",direction:G.Right},{default:()=>[V("*")]}),y("desc",null,[V("Stop everything from moving.")])]));const C=te(()=>y("span",{class:"option-title"},[V("Theme"),y("desc",null,[V("How the game looks.")])])),k=te(()=>y("span",{class:"option-title"},[V("Show TPS"),y("desc",null,[V("Show TPS meter at the bottom-left corner of the page.")])])),b=te(()=>y("span",{class:"option-title"},[V("Align modifier units"),y("desc",null,[V("Align numbers to the beginning of the unit in modifier view.")])]));return(S,$)=>(h(),q(Pe,{modelValue:n.value,"onUpdate:modelValue":$[3]||($[3]=A=>n.value=A)},{header:T(()=>[As]),body:T(()=>[y($n,{title:s(C),options:s(c),modelValue:s(v),"onUpdate:modelValue":$[0]||($[0]=A=>he(v)?v.value=A:null)},null,8,["title","options","modelValue"]),(h(),q(le(s(u)))),y(We,{title:s(k),modelValue:s(d),"onUpdate:modelValue":$[1]||($[1]=A=>he(d)?d.value=A:null)},null,8,["title","modelValue"]),y(We,{title:s(b),modelValue:s(p),"onUpdate:modelValue":$[2]||($[2]=A=>he(p)?p.value=A:null)},null,8,["title","modelValue"])]),_:1},8,["modelValue"]))}});const zs={key:0},js=["onClick","disabled"],Gs={key:0},Hs=["onClick"],Ws=B({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const r=fe(e),i=M(!1);se(i,u=>{t("confirmingChanged",u)});function o(){if(s(r.skipConfirm)){t("click");return}i.value&&t("click"),i.value=!i.value}function c(){i.value=!1}return(u,d)=>(h(),w("span",{class:ne(["container",{confirming:i.value}])},[i.value?(h(),w("span",zs,"Are you sure?")):F("",!0),f("button",{onClick:tt(o,["stop"]),class:"button danger",disabled:e.disabled},[i.value?(h(),w("span",Gs,"Yes")):Me(u.$slots,"default",{key:1},void 0,!0)],8,js),i.value?(h(),w("button",{key:1,class:"button",onClick:tt(c,["stop"])},"No",8,Hs)):F("",!0)],2))}});var Js=H(Ws,[["__scopeId","data-v-2f8ef34c"]]);const Ne=e=>(pe("data-v-32313015"),e=e(),be(),e),Zs=Ne(()=>f("div",{class:"handle material-icons"},"drag_handle",-1)),Ks={key:0,class:"actions"},Ys=Ne(()=>f("span",{class:"material-icons"},"content_paste",-1)),Xs=Ne(()=>f("span",{class:"material-icons"},"content_copy",-1)),Qs=Ne(()=>f("span",{class:"material-icons"},"edit",-1)),el=Ne(()=>f("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),tl={key:1,class:"actions"},nl=Ne(()=>f("span",{class:"material-icons"},"check",-1)),rl=Ne(()=>f("span",{class:"material-icons"},"close",-1)),il={key:2,class:"details"},al={class:"save-version"},ol=Ne(()=>f("br",null,null,-1)),sl={key:0},ll={key:3,class:"details"},ul={key:4,class:"details error"},cl=Ne(()=>f("br",null,null,-1)),dl=B({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:r}=fe(n),i=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),o=M(!1),c=M(!1),u=M("");se(o,()=>{var p;return u.value=(p=r.value.name)!=null?p:""});const d=D(()=>r.value!=null&&r.value.id===O.id),v=D(()=>{var p;return d.value?O.time:(p=r.value!=null&&r.value.time)!=null?p:0});function _(){t("editName",u.value),o.value=!1}return(p,C)=>(h(),w("div",{class:ne(["save",{active:s(d)}])},[Zs,o.value?(h(),w("div",tl,[f("button",{onClick:_,class:"button"},[y(W,{display:"Save",direction:s(G).Left,class:"info"},{default:T(()=>[nl]),_:1},8,["direction"])]),f("button",{onClick:C[5]||(C[5]=k=>o.value=!o.value),class:"button"},[y(W,{display:"Cancel",direction:s(G).Left,class:"info"},{default:T(()=>[rl]),_:1},8,["direction"])])])):(h(),w("div",Ks,[s(r).error==null&&!c.value?(h(),q(Qt,{key:0,onClick:C[0]||(C[0]=k=>t("export")),class:"button",left:""},{default:T(()=>[y(W,{display:"Export",direction:s(G).Left,class:"info"},{default:T(()=>[Ys]),_:1},8,["direction"])]),_:1})):F("",!0),s(r).error==null&&!c.value?(h(),w("button",{key:1,onClick:C[1]||(C[1]=k=>t("duplicate")),class:"button"},[y(W,{display:"Duplicate",direction:s(G).Left,class:"info"},{default:T(()=>[Xs]),_:1},8,["direction"])])):F("",!0),s(r).error==null&&!c.value?(h(),w("button",{key:2,onClick:C[2]||(C[2]=k=>o.value=!o.value),class:"button"},[y(W,{display:"Edit Name",direction:s(G).Left,class:"info"},{default:T(()=>[Qs]),_:1},8,["direction"])])):F("",!0),y(Js,{disabled:s(d),onClick:C[3]||(C[3]=k=>t("delete")),onConfirmingChanged:C[4]||(C[4]=k=>c.value=k)},{default:T(()=>[y(W,{display:"Delete",direction:s(G).Left,class:"info"},{default:T(()=>[el]),_:1},8,["direction"])]),_:1},8,["disabled"])])),s(r).error==null&&!o.value?(h(),w("div",il,[f("button",{class:"button open",onClick:C[6]||(C[6]=k=>t("open"))},[f("h3",null,P(s(r).name),1)]),f("span",al,"v"+P(s(r).modVersion),1),ol,s(v)?(h(),w("div",sl,"Last played "+P(s(i).format(s(v))),1)):F("",!0)])):s(r).error==null&&o.value?(h(),w("div",ll,[y(ke,{modelValue:u.value,"onUpdate:modelValue":C[7]||(C[7]=k=>u.value=k),class:"editname",onSubmit:_},null,8,["modelValue"])])):(h(),w("div",ul,[V(" Error: Failed to load save with id "+P(s(r).id),1),cl,V(P(s(r).error),1)]))],2))}});var fl=H(dl,[["__scopeId","data-v-32313015"]]);const qt=e=>(pe("data-v-f10c7950"),e=e(),be(),e),ml=qt(()=>f("h2",null,"Saves Manager",-1)),gl={key:1},hl={class:"modal-footer"},vl={key:1,class:"field"},pl=qt(()=>f("span",{class:"field-title"},"Create Save",-1)),bl={class:"field-buttons"},_l={class:"footer"},yl=qt(()=>f("div",{style:{"flex-grow":"1"}},null,-1)),wl=B({__name:"SavesManager",setup(e,{expose:t}){const n=M(!1),r=M(null);t({open(){n.value=!0}});const i=M(!1),o=M(""),c=M(null);se(o,I=>{I?Fe(()=>{try{if(I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=we.decompressFromUTF16(I);else{console.warn("Unable to determine preset encoding",I),i.value=!0;return}const x=JSON.parse(I);if(typeof x!="object"){i.value=!0;return}const j=ut();x.id=j,ce(x),o.value="",i.value=!1,z.saves.push(j)}catch{i.value=!0}}):i.value=!1});let u={},d=M(Object.keys(u).reduce((I,x)=>(I.push({label:x.split("/").slice(-1)[0].slice(0,-4),value:u[x]}),I),[]));const v=Mt({});function _(I){if(v[I]==null){let x=localStorage.getItem(I);if(x==null)v[I]={error:"Save doesn't exist in localStorage",id:I};else if(x==="dW5kZWZpbmVk")v[I]={error:"Save is undefined",id:I};else try{if(x[0]!=="{")if(x[0]==="e")x=decodeURIComponent(escape(atob(x)));else if(x[0]==="\u1BE1")x=we.decompressFromUTF16(x);else return console.warn("Unable to determine preset encoding",x),i.value=!0,v[I]={error:"Unable to determine preset encoding",id:I},v[I];v[I]={...JSON.parse(x),id:I}}catch(j){v[I]={error:j,id:I},console.warn(`SavesManager: Failed to load info about save with id ${I}: +${j} +${x}`)}}return v[I]}se(n,I=>{I&&Object.keys(v).forEach(x=>delete v[x])});const p=D(()=>z.saves.reduce((I,x)=>(I[x]=_(x),I),{}));function C(I){let x;switch(O.id===I?x=Tt(O):x=JSON.stringify(p.value[I]),R.exportEncoding){default:console.warn(`Unknown save encoding: ${R.exportEncoding}. Defaulting to lz`);case"lz":x=we.compressToUTF16(x);break;case"base64":x=btoa(unescape(encodeURIComponent(x)));break;case"plain":break}const j=document.createElement("textarea");j.value=x,document.body.appendChild(j),j.select(),j.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(j)}function k(I){O.id===I&&ce();const x={...p.value[I],id:ut()};ce(x),z.saves.push(x.id)}function b(I){z.saves=z.saves.filter(x=>x!==I),localStorage.removeItem(I),v[I]=void 0}function S(I){p.value[O.id].time=O.time,ce(),v[O.id]=void 0,De(p.value[I]),v[I]=void 0}function $(I){if(c.value=I,Fe(()=>{c.value=null}),I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=we.decompressFromUTF16(I);else{console.warn("Unable to determine preset encoding",I);return}const x=JSON.parse(I);x.id=ut(),ce(x),z.saves.push(x.id),S(x.id)}function A(I,x){const j=p.value[I];j!=null&&(j.name=x,O.id===I?(O.name=x,ce()):(ce(j),v[I]=void 0))}return(I,x)=>(h(),q(Pe,{modelValue:n.value,"onUpdate:modelValue":x[4]||(x[4]=j=>n.value=j),ref_key:"modal",ref:r},{header:T(()=>[ml]),body:T(({shown:j})=>[j&&(!s(oe)||s(_e))?(h(),q(s(Hn),{key:0,list:s(z).saves,handle:".handle",itemKey:Ce=>Ce},{item:T(({element:Ce})=>[y(fl,{save:s(p)[Ce],onOpen:Ye=>S(Ce),onExport:Ye=>C(Ce),onEditName:Ye=>A(Ce,Ye),onDuplicate:Ye=>k(Ce),onDelete:Ye=>b(Ce)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):(h(),w("div",gl,"You are connected to a server - cannot change saves"))]),footer:T(()=>[f("div",hl,[!s(oe)||s(_e)?(h(),q(ke,{key:0,modelValue:o.value,"onUpdate:modelValue":x[0]||(x[0]=j=>o.value=j),title:"Import Save",placeholder:"Paste your save here!",class:ne({importingFailed:i.value})},null,8,["modelValue","class"])):F("",!0),!s(oe)||s(_e)?(h(),w("div",vl,[pl,f("div",bl,[f("button",{class:"button",onClick:x[1]||(x[1]=j=>S(s(Ge)().id))},"New Game"),Object.keys(s(d)).length>0?(h(),q($n,{key:0,options:s(d),modelValue:c.value,"onUpdate:modelValue":x[2]||(x[2]=j=>$(j)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):F("",!0)])])):F("",!0),f("div",_l,[yl,f("button",{class:"button modal-default-button",onClick:x[3]||(x[3]=j=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var kn=H(wl,[["__scopeId","data-v-f10c7950"]]);const ae=e=>(pe("data-v-1fa4f177"),e=e(),be(),e),Nl=["src","alt"],Cl={key:1,class:"title"},Sl=ae(()=>f("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Il={class:"discord"},$l={class:"discord-links"},kl={key:0},Ml=["href"],xl=ae(()=>f("li",null,[f("a",{href:"https://discord.gg/yJ4fjnjU54",target:"_blank"},"Profectus & Friends")],-1)),Fl=ae(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Tl={href:"https://forums.moddingtree.com/",target:"_blank"},Pl=ae(()=>f("span",{class:"material-icons"},"forum",-1)),El=ae(()=>f("span",{class:"material-icons"},"info",-1)),Vl=ae(()=>f("span",{class:"material-icons"},"library_books",-1)),Ol=ae(()=>f("span",{class:"material-icons"},"group",-1)),Ll=ae(()=>f("span",{class:"material-icons"},"settings",-1)),Dl=ae(()=>f("span",{class:"material-icons"},"library_books",-1)),ql=ae(()=>f("span",{class:"material-icons"},"group",-1)),Rl=ae(()=>f("span",{class:"material-icons"},"settings",-1)),Bl=ae(()=>f("span",{class:"material-icons"},"info",-1)),Al={href:"https://forums.moddingtree.com/",target:"_blank"},Ul=ae(()=>f("span",{class:"material-icons"},"forum",-1)),zl={class:"discord"},jl={class:"discord-links"},Gl={key:0},Hl=["href"],Wl=ae(()=>f("li",null,[f("a",{href:"https://discord.gg/yJ4fjnjU54",target:"_blank"},"Profectus & Friends")],-1)),Jl=ae(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Zl=B({__name:"Nav",setup(e){const t=M(null),n=M(null),r=M(null),i=M(null),o=M(null);Q.on("openMultiplayer",()=>{var k;return(k=o.value)==null?void 0:k.open()});const{useHeader:c,banner:u,title:d,discordName:v,discordLink:_,versionNumber:p}=R;function C(){window.open(_,"mywindow")}return(k,b)=>(h(),w(U,null,[s(c)?(h(),w("div",qe({key:0,class:"nav"},k.$attrs),[s(u)?(h(),w("img",{key:0,src:s(u),class:"banner",alt:s(d)},null,8,Nl)):(h(),w("div",Cl,P(s(d)),1)),f("div",{onClick:b[0]||(b[0]=S=>{var $;return($=i.value)==null?void 0:$.open()}),class:"version-container"},[y(W,{display:"Changelog",direction:s(G).Down,class:"version"},{default:T(()=>[f("span",null,"v"+P(s(p)),1)]),_:1},8,["direction"])]),Sl,f("div",Il,[f("span",{onClick:C,class:"material-icons"},"discord"),f("ul",$l,[s(_)?(h(),w("li",kl,[f("a",{href:s(_),target:"_blank"},P(s(v)),9,Ml)])):F("",!0),xl,Fl])]),f("div",null,[f("a",Tl,[y(W,{display:"Forums",direction:s(G).Down,yoffset:"5px"},{default:T(()=>[Pl]),_:1},8,["direction"])])]),f("div",{onClick:b[1]||(b[1]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[y(W,{display:"Info",direction:s(G).Down,class:"info"},{default:T(()=>[El]),_:1},8,["direction"])]),f("div",{onClick:b[2]||(b[2]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[y(W,{display:"Saves",direction:s(G).Down,xoffset:"-20px"},{default:T(()=>[Vl]),_:1},8,["direction"])]),f("div",{onClick:b[3]||(b[3]=S=>{var $;return($=o.value)==null?void 0:$.open()})},[y(W,{display:"Multiplayer",direction:s(G).Down,xoffset:"-20px"},{default:T(()=>[Ol]),_:1},8,["direction"])]),f("div",{onClick:b[4]||(b[4]=S=>{var $;return($=r.value)==null?void 0:$.open()})},[y(W,{display:"Settings",direction:s(G).Down,xoffset:"-66px"},{default:T(()=>[Ll]),_:1},8,["direction"])])],16)):(h(),w("div",qe({key:1,class:"overlay-nav"},k.$attrs),[f("div",{onClick:b[5]||(b[5]=S=>{var $;return($=i.value)==null?void 0:$.open()}),class:"version-container"},[y(W,{display:"Changelog",direction:s(G).Right,xoffset:"25%",class:"version"},{default:T(()=>[f("span",null,"v"+P(s(p)),1)]),_:1},8,["direction"])]),f("div",{onClick:b[6]||(b[6]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[y(W,{display:"Saves",direction:s(G).Right},{default:T(()=>[Dl]),_:1},8,["direction"])]),f("div",{onClick:b[7]||(b[7]=S=>{var $;return($=o.value)==null?void 0:$.open()})},[y(W,{display:"Multiplayer",direction:s(G).Right},{default:T(()=>[ql]),_:1},8,["direction"])]),f("div",{onClick:b[8]||(b[8]=S=>{var $;return($=r.value)==null?void 0:$.open()})},[y(W,{display:"Settings",direction:s(G).Right},{default:T(()=>[Rl]),_:1},8,["direction"])]),f("div",{onClick:b[9]||(b[9]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[y(W,{display:"Info",direction:s(G).Right},{default:T(()=>[Bl]),_:1},8,["direction"])]),f("div",null,[f("a",Al,[y(W,{display:"Forums",direction:s(G).Right,xoffset:"7px"},{default:T(()=>[Ul]),_:1},8,["direction"])])]),f("div",zl,[f("span",{onClick:C,class:"material-icons"},"discord"),f("ul",jl,[s(_)?(h(),w("li",Gl,[f("a",{href:s(_),target:"_blank"},P(s(v)),9,Hl)])):F("",!0),Wl,Jl])])],16)),y(qs,{ref_key:"info",ref:t,changelog:i.value},null,8,["changelog"]),y(kn,{ref_key:"savesManager",ref:n},null,512),y(Us,{ref_key:"options",ref:r},null,512),y($o,{ref_key:"changelog",ref:i},null,512),y(Ns,{ref_key:"roomsDialog",ref:o},null,512)],64))}});var Mn=H(Zl,[["__scopeId","data-v-1fa4f177"]]);const Kl={class:"inner-tab"},Yl=B({__name:"Game",setup(e){const t=Te(O,"tabs"),n=D(()=>Object.keys(re)),r=R.useHeader;function i(o){const{display:c,minimized:u,name:d,color:v,minimizable:_,nodes:p,minimizedDisplay:C}=o;return{display:c,minimized:u,name:d,color:v,minimizable:_,nodes:p,minimizedDisplay:C}}return(o,c)=>(h(),w("div",{class:ne(["tabs-container",{useHeader:s(r)}])},[(h(!0),w(U,null,ge(s(t),(u,d)=>{var v,_;return h(),w("div",{key:d,class:ne(["tab",s((v=s(re)[u])==null?void 0:v.classes)]),style:ie(s((_=s(re)[u])==null?void 0:_.style))},[d===0&&!s(r)?(h(),q(Mn,{key:0})):F("",!0),f("div",Kl,[s(n).includes(u)?(h(),q(No,qe({key:0},i(s(re)[u]),{index:d,onSetMinimized:p=>s(re)[u].minimized.value=p}),null,16,["index","onSetMinimized"])):(h(),q(le(u),{key:1,index:d},null,8,["index"]))])],6)}),128))],2))}});var Xl=H(Yl,[["__scopeId","data-v-dcd207b4"]]);const Rt=e=>(pe("data-v-2a68614e"),e=e(),be(),e),Ql=Rt(()=>f("span",null,"Chat",-1)),eu={key:0,style:{"margin-left":"10px"}},tu={key:0,class:"chat-user"},nu=Rt(()=>f("hr",{style:{"margin-top":"0"}},null,-1)),ru={class:"chat-submit"},iu=Rt(()=>f("span",{class:"material-icons"},"check",-1)),au=[iu],ou=B({__name:"Chat",setup(e){const t=M(!1),n=M(0),r=M(""),i=Re([]),o=M(null);function c(){Ue("chat",r.value),r.value=""}Q.on("chat",(d,v)=>{i.push({user:d,message:v});const _=o.value&&o.value.scrollTop>=o.value.scrollHeight-o.value.clientHeight;_&&Fe(()=>{o.value&&(o.value.scrollTop=o.value.scrollHeight-o.value.clientHeight)}),(!_||!t.value)&&d&&n.value++});function u(){Fe(()=>{o.value&&n.value>0&&o.value.scrollTop>=o.value.scrollHeight-o.value.clientHeight&&(n.value=0)})}return se(t,d=>{d&&(n.value=0)}),(d,v)=>bt((h(),w("div",{class:ne(["chat",{open:t.value}])},[f("div",{class:"chat-toggle",onClick:v[0]||(v[0]=_=>t.value=!t.value)},[Ql,n.value?(h(),w("span",eu,"["+P(n.value>9?"9+":n.value)+"]",1)):F("",!0)]),f("div",{class:"chat-messages",ref_key:"scroll",ref:o,onScrollPassive:u},[(h(!0),w(U,null,ge(i,(_,p)=>(h(),w("div",{key:p,class:"chat-message-container"},[_.user?(h(),w("span",tu,P(s(Lt)[_.user]),1)):F("",!0),f("span",{class:"chat-message",style:ie(_.user?"":"font-style: italic")},P(_.message),5)]))),128))],544),nu,f("div",ru,[y(ke,{modelValue:r.value,"onUpdate:modelValue":v[1]||(v[1]=_=>r.value=_),onSubmit:c,submitOnBlur:!1},null,8,["modelValue"]),f("button",{onPointerdown:c,class:"button"},au,32)])],2)),[[Kt,s(oe)]])}});var su=H(ou,[["__scopeId","data-v-2a68614e"]]);const lu={class:"grid"},uu=["onClick","onMouseover"],cu=B({__name:"HexGrid",props:{gridData:null,selectedColor:null},emits:["updateColor"],setup(e,{emit:t}){const n=e,{selectedColor:r}=fe(n),i=M(null);function o(d,v){t("updateColor",d,v,r.value)}function c(d,v){i.value={row:d,col:v}}function u(){i.value=null}return(d,v)=>(h(),w("div",lu,[(h(!0),w(U,null,ge(e.gridData,(_,p)=>(h(),w("div",{key:p,class:"row"},[(h(!0),w(U,null,ge(_,(C,k)=>(h(),w("div",{key:`${p}-${k}-${C}`,class:"hexagon-wrapper",style:ie({"--color":C}),onClick:b=>o(p,k),onMouseover:b=>c(p,k),onMouseout:u},[f("div",{class:"hexagon",style:ie({backgroundColor:C})},null,4),y(xt,{name:"fade"},{default:T(()=>{var b,S;return[((b=i.value)==null?void 0:b.row)===p&&((S=i.value)==null?void 0:S.col)===k&&C!==s(r)?(h(),w("div",{key:0,class:"hexagon-overlay",style:ie({"--color":s(r)})},[f("div",{class:"hexagon",style:ie({backgroundColor:s(r)})},null,4)],4)):F("",!0)]}),_:2},1024)],44,uu))),128))]))),128))]))}});var du=H(cu,[["__scopeId","data-v-579ff0b3"]]);const Ie={gray:"rgba(64, 64, 64, 0.6)",red:"rgba(255, 0, 0, 0.86)",green:"rgba(0, 255, 0, 0.6)",blue:"rgba(0, 0, 255, 0.6)"},xn=vn("main",function(){const e=Ot([[Ie.gray,Ie.gray],[Ie.gray,Ie.gray,Ie.gray],[Ie.gray,Ie.gray]]);return{name:"Main",minimizable:!1,classes:{main:!0},grid:e,display:te(()=>y(U,null,[y(du,{gridData:e.value,selectedColor:Ie.red},null),y(su,null,null)]))}}),fu=e=>[xn],Fn=D(()=>!1);function mu(e,t){}var gu=Object.freeze(Object.defineProperty({__proto__:null,main:xn,getInitialLayers:fu,hasWon:Fn,fixOldSave:mu},Symbol.toStringTag,{value:"Module"}));const at=e=>(pe("data-v-4a50ce42"),e=e(),be(),e),hu={class:"game-over-modal-header"},vu=["src","alt"],pu={class:"game-over-modal-title"},bu=at(()=>f("h2",null,"Congratulations!",-1)),_u={key:0},yu=at(()=>f("br",null,null,-1)),wu=at(()=>f("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),Nu=at(()=>f("br",null,null,-1)),Cu=["href"],Su=at(()=>f("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),Iu=B({__name:"GameOverScreen",setup(e){const{title:t,logo:n,discordName:r,discordLink:i,versionNumber:o,versionTitle:c}=R,u=D(()=>Pt(O.timePlayed)),d=D(()=>Fn.value&&!O.keepGoing),v=Te(O,"autosave");function _(){O.keepGoing=!0}function p(){De(Ge())}return(C,k)=>(h(),q(Pe,{"model-value":s(d)},{header:T(()=>[f("div",hu,[s(n)?(h(),w("img",{key:0,class:"game-over-modal-logo",src:s(n),alt:s(t)},null,8,vu)):F("",!0),f("div",pu,[bu,f("h4",null,"You've beaten "+P(s(t))+" v"+P(s(o))+": "+P(s(c)),1)])])]),body:T(({shown:b})=>[b?(h(),w("div",_u,[f("div",null,"It took you "+P(s(u))+" to beat the game.",1),yu,wu,Nu,f("div",null,[f("a",{href:s(i),class:"game-over-modal-discord-link"},[Su,V(" "+P(s(r)),1)],8,Cu)]),y(We,{title:"Autosave",modelValue:s(v),"onUpdate:modelValue":k[0]||(k[0]=S=>he(v)?v.value=S:null)},null,8,["modelValue"])])):F("",!0)]),footer:T(()=>[f("div",{class:"game-over-footer"},[f("button",{onClick:_,class:"button"},"Keep Going"),f("button",{onClick:p,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var $u=H(Iu,[["__scopeId","data-v-4a50ce42"]]);const Ct=e=>(pe("data-v-d3bb0716"),e=e(),be(),e),ku=Ct(()=>f("div",{class:"nan-modal-header"},[f("h2",null,"NaN value detected!")],-1)),Mu={key:0},xu=Ct(()=>f("br",null,null,-1)),Fu=["href"],Tu=Ct(()=>f("span",{class:"material-icons nan-modal-discord"},"discord",-1)),Pu=Ct(()=>f("br",null,null,-1)),Eu={class:"nan-footer"},Vu=B({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:n}=R,r=M(!0),i=M(!0),o=Te(K,"hasNaN"),c=M(null);se(o,C=>{C?(r.value=O.autosave,i.value=O.devSpeed===0):(O.autosave=r.value,O.devSpeed=i.value?0:null)});const u=D(()=>{var C;return(C=K.NaNPath)==null?void 0:C.join(".")}),d=D(()=>K.NaNPersistent!=null?K.NaNPersistent.value:null);function v(){K.NaNPersistent!=null&&(K.NaNPersistent.value=new l(0),K.hasNaN=!1)}function _(){K.NaNPersistent&&(K.NaNPersistent.value=new l(1),K.hasNaN=!1)}function p(){K.NaNPersistent&&(K.NaNPersistent.value=new l(NaN),K.hasNaN=!1)}return(C,k)=>(h(),w(U,null,[y(Pe,qe({modelValue:s(o),"onUpdate:modelValue":k[4]||(k[4]=b=>he(o)?o.value=b:null)},C.$attrs),{header:T(()=>[ku]),body:T(()=>[f("div",null,[V(' Attempted to assign "'+P(s(u))+'" to NaN',1),s(d)?(h(),w("span",Mu,P(" ")+"(previously "+P(s(ln)(s(d)))+")",1)):F("",!0),V(". Auto-saving has been "+P(r.value?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),xu,f("div",null,[f("a",{href:s(n)||"https://discord.gg/yJ4fjnjU54",class:"nan-modal-discord-link"},[Tu,V(" "+P(s(t)||"Profectus & Friends"),1)],8,Fu)]),Pu,y(We,{title:"Autosave",modelValue:r.value,"onUpdate:modelValue":k[0]||(k[0]=b=>r.value=b)},null,8,["modelValue"]),s(R).enablePausing?(h(),q(We,{key:0,title:"Pause game",modelValue:i.value,"onUpdate:modelValue":k[1]||(k[1]=b=>i.value=b)},null,8,["modelValue"])):F("",!0)]),footer:T(()=>[f("div",Eu,[f("button",{onClick:k[2]||(k[2]=b=>{var S;return(S=c.value)==null?void 0:S.open()}),class:"button"},"Open Saves Manager"),f("button",{onClick:v,class:"button"},"Set to 0"),f("button",{onClick:_,class:"button"},"Set to 1"),s(d)&&s(l).neq(s(d),0)&&s(l).neq(s(d),1)?(h(),w("button",{key:0,onClick:k[3]||(k[3]=b=>o.value=!1),class:"button"}," Set to previous ")):F("",!0),f("button",{onClick:p,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),y(kn,{ref_key:"savesManager",ref:c},null,512)],64))}});var Ou=H(Vu,[["__scopeId","data-v-d3bb0716"]]);const Lu={key:0,class:"tpsDisplay"},Du=B({__name:"TPS",setup(e){const t=D(()=>l.div(K.lastTenTicks.length,K.lastTenTicks.reduce((n,r)=>n+r,0)));return(n,r)=>s(t).isNan()?F("",!0):(h(),w("div",Lu,"TPS: "+P(s(un)(s(t))),1))}});var qu=H(Du,[["__scopeId","data-v-89b89152"]]);var Ru=B({__name:"App",setup(e){const t=R.useHeader,n=D(()=>yt[z.theme].variables),r=Te(z,"showTPS"),i=Te(K,"errors"),o=D(()=>ye(te(()=>y(U,null,[po.map(wt)]))));return(c,u)=>s(i).length>0?(h(),w("div",{key:0,class:"error-container",style:ie(s(n))},[y(en,{errors:s(i)},null,8,["errors"])],4)):(h(),w(U,{key:1},[f("div",{id:"modal-root",style:ie(s(n))},null,4),f("div",{class:ne(["app",{useHeader:s(t)}]),style:ie(s(n))},[s(t)?(h(),q(Mn,{key:0})):F("",!0),y(Xl),s(s(r))?(h(),q(qu,{key:1})):F("",!0),y($u),y(Ou),(h(),q(le(s(o))))],6)],64))}});var Bu=H(Ru,[["__scopeId","data-v-bf4e22ac"]]);function Au(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:i,onRegisterError:o}=e;let c,u;const d=async(v=!0)=>{v&&(c==null||c.addEventListener("controlling",_=>{_.isUpdate&&window.location.reload()})),u&&u.waiting&&await Jn(u.waiting,{type:"SKIP_WAITING"})};if("serviceWorker"in navigator){c=new Wn("./sw.js",{scope:"./",type:"classic"}),c.addEventListener("activated",v=>{v.isUpdate||r==null||r()});{const v=()=>{n==null||n()};c.addEventListener("waiting",v),c.addEventListener("externalwaiting",v)}c.register({immediate:t}).then(v=>{u=v,i==null||i(v)}).catch(v=>{o==null||o(v)})}return d}function Uu(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:i,onRegisterError:o}=e,c=M(!1),u=M(!1);return{updateServiceWorker:Au({immediate:t,onNeedRefresh(){c.value=!0,n==null||n()},onOfflineReady(){u.value=!0,r==null||r()},onRegistered:i,onRegisterError:o}),offlineReady:u,needRefresh:c}}const Bt=console.error;console.error=function(...e){Bt(...e)};window.onerror=function(e,t,n,r,i){return K.errors.push(i instanceof Error?i:new Error(JSON.stringify(i))),Bt(i),!0};window.onunhandledrejection=function(e){K.errors.push(e.reason instanceof Error?e.reason:new Error(JSON.stringify(e.reason))),Bt(e.reason)};document.title=R.title;window.projInfo=R;R.id===""&&console.error("Project ID is empty!","Please select a unique ID for this project in /src/data/projInfo.json");requestAnimationFrame(async()=>{console.log(`%cMade in Profectus%c +Learn more at www.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await Nn();const{globalBus:e}=await dt(()=>Promise.resolve().then(function(){return vi}),void 0),{startGameLoop:t}=await dt(()=>import("./gameLoop.2be595af.js"),["assets/gameLoop.2be595af.js","assets/@fontsource.f66d05e7.css","assets/vue.228877f7.js","assets/lru-cache.9506e0ec.js","assets/yallist.fd762fe7.js","assets/@vue.8948d9b0.js","assets/lz-string.f2f3b7cf.js","assets/nanoevents.1080beb7.js","assets/socket.io-client.03bb8f3a.js","assets/engine.io-client.6ba5801d.js","assets/engine.io-parser.730afdce.js","assets/@socket.io.aec831e2.js","assets/socket.io-parser.0ab387d5.js","assets/unique-names-generator.9178d3e3.js","assets/vue-toastification.97914fdb.js","assets/vue-toastification.4b5f8ac8.css","assets/semver.334eb41f.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-next-select.f2be13cc.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.5218041c.js","assets/sortablejs.692999e9.js","assets/workbox-window.8d14e8b7.js"]),n=window.vue=Ln(Bu);n.config.errorHandler=function(r,i,o){console.error(r,o,i)},e.emit("setupVue",n),n.mount("#app"),Fe(()=>{const r=Xt(),{updateServiceWorker:i}=Uu({onNeedRefresh(){r.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(){r.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(o){o&&setInterval(()=>o.update(),60*60*1e3)}})}),t()});export{l as D,dt as _,K as a,R as b,gu as c,Q as g,fo as l,O as p,z as s}; diff --git a/assets/lru-cache.9506e0ec.js b/assets/lru-cache.9506e0ec.js new file mode 100644 index 0000000..458f4f0 --- /dev/null +++ b/assets/lru-cache.9506e0ec.js @@ -0,0 +1 @@ +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/lz-string.f2f3b7cf.js b/assets/lz-string.f2f3b7cf.js new file mode 100644 index 0000000..20dd9fe --- /dev/null +++ b/assets/lz-string.f2f3b7cf.js @@ -0,0 +1 @@ +var O={exports:{}};(function(y){var U=function(){var _=String.fromCharCode,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",x={};function m(o,r){if(!x[o]){x[o]={};for(var c=0;c>>8,c[e*2+1]=p%256}return c},decompressFromUint8Array:function(o){if(o==null)return d.decompress(o);for(var r=new Array(o.length/2),c=0,e=r.length;c>1}else{for(t=1,e=0;e>1}h--,h==0&&(h=Math.pow(2,f),f++),delete w[u]}else for(t=p[u],e=0;e>1;h--,h==0&&(h=Math.pow(2,f),f++),p[A]=a++,u=String(v)}if(u!==""){if(Object.prototype.hasOwnProperty.call(w,u)){if(u.charCodeAt(0)<256){for(e=0;e>1}else{for(t=1,e=0;e>1}h--,h==0&&(h=Math.pow(2,f),f++),delete w[u]}else for(t=p[u],e=0;e>1;h--,h==0&&(h=Math.pow(2,f),f++)}for(t=2,e=0;e>1;for(;;)if(n=n<<1,s==r-1){l.push(c(n));break}else s++;return l.join("")},decompress:function(o){return o==null?"":o==""?null:d._decompress(o.length,32768,function(r){return o.charCodeAt(r)})},_decompress:function(o,r,c){var e=[],t=4,p=4,w=3,v="",A=[],u,h,a,f,l,n,s,i={val:c(0),position:r,index:1};for(u=0;u<3;u+=1)e[u]=u;for(a=0,l=Math.pow(2,2),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;switch(a){case 0:for(a=0,l=Math.pow(2,8),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;s=_(a);break;case 1:for(a=0,l=Math.pow(2,16),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;s=_(a);break;case 2:return""}for(e[3]=s,h=s,A.push(s);;){if(i.index>o)return"";for(a=0,l=Math.pow(2,w),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;switch(s=a){case 0:for(a=0,l=Math.pow(2,8),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;e[p++]=_(a),s=p-1,t--;break;case 1:for(a=0,l=Math.pow(2,16),n=1;n!=l;)f=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=c(i.index++)),a|=(f>0?1:0)*n,n<<=1;e[p++]=_(a),s=p-1,t--;break;case 2:return A.join("")}if(t==0&&(t=Math.pow(2,w),w++),e[s])v=e[s];else if(s===p)v=h+h.charAt(0);else return null;A.push(v),e[p++]=h+v.charAt(0),t--,h=v,t==0&&(t=Math.pow(2,w),w++)}}};return d}();y!=null&&(y.exports=U)})(O);var j=O.exports;export{j as L}; diff --git a/assets/material-icons-base-400-normal.47b692f3.woff b/assets/material-icons-base-400-normal.47b692f3.woff new file mode 100644 index 0000000..3031d46 Binary files /dev/null and b/assets/material-icons-base-400-normal.47b692f3.woff differ diff --git a/assets/material-icons-base-400-normal.cc0462d5.woff2 b/assets/material-icons-base-400-normal.cc0462d5.woff2 new file mode 100644 index 0000000..65a3d31 Binary files /dev/null and b/assets/material-icons-base-400-normal.cc0462d5.woff2 differ diff --git a/assets/nanoevents.1080beb7.js b/assets/nanoevents.1080beb7.js new file mode 100644 index 0000000..9d7a85f --- /dev/null +++ b/assets/nanoevents.1080beb7.js @@ -0,0 +1 @@ +let h=()=>({events:{},emit(t,...e){(this.events[t]||[]).forEach(s=>s(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(s=>s!==e)}});export{h as c}; diff --git a/assets/roboto-mono-all-400-normal.66268f92.woff b/assets/roboto-mono-all-400-normal.66268f92.woff new file mode 100644 index 0000000..068df61 Binary files /dev/null and b/assets/roboto-mono-all-400-normal.66268f92.woff differ diff --git a/assets/roboto-mono-cyrillic-400-normal.8c367f2f.woff2 b/assets/roboto-mono-cyrillic-400-normal.8c367f2f.woff2 new file mode 100644 index 0000000..966b1a0 Binary files /dev/null and b/assets/roboto-mono-cyrillic-400-normal.8c367f2f.woff2 differ diff --git a/assets/roboto-mono-cyrillic-ext-400-normal.eef02d41.woff2 b/assets/roboto-mono-cyrillic-ext-400-normal.eef02d41.woff2 new file mode 100644 index 0000000..184deab Binary files /dev/null and b/assets/roboto-mono-cyrillic-ext-400-normal.eef02d41.woff2 differ diff --git a/assets/roboto-mono-greek-400-normal.53a8927b.woff2 b/assets/roboto-mono-greek-400-normal.53a8927b.woff2 new file mode 100644 index 0000000..5e1ac28 Binary files /dev/null and b/assets/roboto-mono-greek-400-normal.53a8927b.woff2 differ diff --git a/assets/roboto-mono-latin-400-normal.7295944e.woff2 b/assets/roboto-mono-latin-400-normal.7295944e.woff2 new file mode 100644 index 0000000..f8894ba Binary files /dev/null and b/assets/roboto-mono-latin-400-normal.7295944e.woff2 differ diff --git a/assets/roboto-mono-latin-ext-400-normal.820adbd1.woff2 b/assets/roboto-mono-latin-ext-400-normal.820adbd1.woff2 new file mode 100644 index 0000000..f34ae00 Binary files /dev/null and b/assets/roboto-mono-latin-ext-400-normal.820adbd1.woff2 differ diff --git a/assets/semver.334eb41f.js b/assets/semver.334eb41f.js new file mode 100644 index 0000000..0bd921c --- /dev/null +++ b/assets/semver.334eb41f.js @@ -0,0 +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}; diff --git a/assets/socket.io-client.03bb8f3a.js b/assets/socket.io-client.03bb8f3a.js new file mode 100644 index 0000000..18b10ff --- /dev/null +++ b/assets/socket.io-client.03bb8f3a.js @@ -0,0 +1 @@ +import{p as g,i as _,S as b}from"./engine.io-client.6ba5801d.js";import"./engine.io-parser.730afdce.js";import{E as m}from"./@socket.io.aec831e2.js";import{P as r,p as k}from"./socket.io-parser.0ab387d5.js";function v(i,t="",e){let s=i;e=e||typeof location!="undefined"&&location,i==null&&(i=e.protocol+"//"+e.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=e.protocol+i:i=e.host+i),/^(https?|wss?):\/\//.test(i)||(typeof e!="undefined"?i=e.protocol+"//"+i:i="https://"+i),s=g(i)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+t,s.href=s.protocol+"://"+o+(e&&e.port===s.port?"":":"+s.port),s}function c(i,t,e){return i.on(t,e),function(){i.off(t,e)}}const O=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class y extends m{constructor(t,e,s){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[c(t,"open",this.onopen.bind(this)),c(t,"packet",this.onpacket.bind(this)),c(t,"error",this.onerror.bind(this)),c(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){if(O.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');e.unshift(t);const s={type:r.EVENT,data:e};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const h=this.ids++,a=e.pop();this._registerAckCallback(h,a),s.id=h}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!n||!this.connected)||(this.connected?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,e){const s=this.flags.timeout;if(s===void 0){this.acks[t]=e;return}const n=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(n),e.apply(this,[null,...o])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:r.CONNECT,data:t})}):this.packet({type:r.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case r.CONNECT:if(t.data&&t.data.sid){const n=t.data.sid;this.onconnect(n)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case r.EVENT:case r.BINARY_EVENT:this.onevent(t);break;case r.ACK:case r.BINARY_ACK:this.onack(t);break;case r.DISCONNECT:this.ondisconnect();break;case r.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t)}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:r.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:r.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s0&&i.jitter<=1?i.jitter:0,this.attempts=0}f.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*i);i=(Math.floor(t*10)&1)==0?i-e:i+e}return Math.min(i,this.max)|0};f.prototype.reset=function(){this.attempts=0};f.prototype.setMin=function(i){this.ms=i};f.prototype.setMax=function(i){this.max=i};f.prototype.setJitter=function(i){this.jitter=i};class p extends m{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,_(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((s=e.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new f({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const n=e.parser||k;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new b(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=c(e,"open",function(){s.onopen(),t&&t()}),o=c(e,"error",h=>{s.cleanup(),s._readyState="closed",this.emitReserved("error",h),t?t(h):s.maybeReconnectOnOpen()});if(this._timeout!==!1){const h=this._timeout;h===0&&n();const a=this.setTimeoutFn(()=>{n(),e.close(),e.emit("error",new Error("timeout"))},h);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(n),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(c(t,"ping",this.onping.bind(this)),c(t,"data",this.ondata.bind(this)),c(t,"error",this.onerror.bind(this)),c(t,"close",this.onclose.bind(this)),c(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch{this.onclose("parse error")}}ondecoded(t){this.emitReserved("packet",t)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s||(s=new y(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e)if(this.nsps[s].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;st()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(function(){clearTimeout(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const u={};function l(i,t){typeof i=="object"&&(t=i,i=void 0),t=t||{};const e=v(i,t.path||"/socket.io"),s=e.source,n=e.id,o=e.path,h=u[n]&&o in u[n].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||h;let d;return a?d=new p(s,t):(u[n]||(u[n]=new p(s,t)),d=u[n]),e.query&&!t.query&&(t.query=e.queryKey),d.socket(e.path,t)}Object.assign(l,{Manager:p,Socket:y,io:l,connect:l});export{l}; diff --git a/assets/socket.io-parser.0ab387d5.js b/assets/socket.io-parser.0ab387d5.js new file mode 100644 index 0000000..ece8a6b --- /dev/null +++ b/assets/socket.io-parser.0ab387d5.js @@ -0,0 +1 @@ +import{E as y}from"./@socket.io.aec831e2.js";const N=typeof ArrayBuffer=="function",A=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,p=Object.prototype.toString,E=typeof Blob=="function"||typeof Blob!="undefined"&&p.call(Blob)==="[object BlobConstructor]",d=typeof File=="function"||typeof File!="undefined"&&p.call(File)==="[object FileConstructor]";function a(e){return N&&(e instanceof ArrayBuffer||A(e))||E&&e instanceof Blob||d&&e instanceof File}function u(e,r){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t=0&&e.num0;case i.ACK:case i.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class R{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const t=w(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}var O=Object.freeze(Object.defineProperty({__proto__:null,protocol:B,get PacketType(){return i},Encoder:C,Decoder:h},Symbol.toStringTag,{value:"Module"}));export{i as P,O as p}; diff --git a/assets/sortablejs.692999e9.js b/assets/sortablejs.692999e9.js new file mode 100644 index 0000000..dde9cea --- /dev/null +++ b/assets/sortablejs.692999e9.js @@ -0,0 +1,7 @@ +import{g as Ue}from"./lru-cache.9506e0ec.js";/**! + * Sortable 1.14.0 + * @author RubaXa + * @author owenm + * @license MIT + */function De(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),e.push.apply(e,n)}return e}function J(o){for(var t=1;t=0)&&(e[i]=o[i]);return e}function Ve(o,t){if(o==null)return{};var e=$e(o,t),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(o,n)||(e[n]=o[n]))}return e}function Ze(o){return Qe(o)||Je(o)||tn(o)||en()}function Qe(o){if(Array.isArray(o))return he(o)}function Je(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function tn(o,t){if(!!o){if(typeof o=="string")return he(o,t);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return he(o,t)}}function he(o,t){(t==null||t>o.length)&&(t=o.length);for(var e=0,n=new Array(t);e"&&(t=t.substring(1)),o)try{if(o.matches)return o.matches(t);if(o.msMatchesSelector)return o.msMatchesSelector(t);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(t)}catch{return!1}return!1}}function rn(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function $(o,t,e,n){if(o){e=e||document;do{if(t!=null&&(t[0]===">"?o.parentNode===e&&Zt(o,t):Zt(o,t))||n&&o===e)return o;if(o===e)break}while(o=rn(o))}return null}var Ce=/\s+/g;function T(o,t,e){if(o&&t)if(o.classList)o.classList[e?"add":"remove"](t);else{var n=(" "+o.className+" ").replace(Ce," ").replace(" "+t+" "," ");o.className=(n+(e?" "+t:"")).replace(Ce," ")}}function h(o,t,e){var n=o&&o.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(e=o.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function ht(o,t){var e="";if(typeof o=="string")e=o;else do{var n=h(o,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(o=o.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(e)}function ke(o,t,e){if(o){var n=o.getElementsByTagName(t),i=0,r=n.length;if(e)for(;i=r:a=i<=r,!a)return n;if(n===Q())break;n=lt(n,!1)}return!1}function wt(o,t,e,n){for(var i=0,r=0,a=o.children;r2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,r=Ve(n,dn);Yt.pluginEvent.bind(g)(t,e,J({dragEl:c,parentEl:A,ghostEl:v,rootEl:C,nextEl:dt,lastDownEl:Ut,cloneEl:I,cloneHidden:at,dragStarted:It,putSortable:F,activeSortable:g.active,originalEvent:i,oldIndex:bt,oldDraggableIndex:Ft,newIndex:W,newDraggableIndex:rt,hideGhostForTarget:Le,unhideGhostForTarget:We,cloneNowHidden:function(){at=!0},cloneNowShown:function(){at=!1},dispatchSortableEvent:function(l){X({sortable:e,name:l,originalEvent:i})}},r))};function X(o){At(J({putSortable:F,cloneEl:I,targetEl:c,rootEl:C,oldIndex:bt,oldDraggableIndex:Ft,newIndex:W,newDraggableIndex:rt},o))}var c,A,v,C,dt,Ut,I,at,bt,W,Ft,rt,Ht,F,vt=!1,Qt=!1,Jt=[],ct,U,ae,le,Ie,Ne,It,gt,Rt,kt=!1,Gt=!1,qt,R,se=[],pe=!1,te=[],ne=typeof document!="undefined",Lt=Fe,Pe=Xt||nt?"cssFloat":"float",hn=ne&&!on&&!Fe&&"draggable"in document.createElement("div"),Be=function(){if(!!ne){if(nt)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),He=function(t,e){var n=h(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=wt(t,0,e),a=wt(t,1,e),l=r&&h(r),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(r).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+O(a).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&n[Pe]==="none"||a&&n[Pe]==="none"&&u+d>i)?"vertical":"horizontal"},pn=function(t,e,n){var i=n?t.left:t.top,r=n?t.right:t.bottom,a=n?t.width:t.height,l=n?e.left:e.top,s=n?e.right:e.bottom,u=n?e.width:e.height;return i===l||r===s||i+a/2===l+u/2},gn=function(t,e){var n;return Jt.some(function(i){var r=i[k].options.emptyInsertThreshold;if(!(!r||be(i))){var a=O(i),l=t>=a.left-r&&t<=a.right+r,s=e>=a.top-r&&e<=a.bottom+r;if(l&&s)return n=i}}),n},Ge=function(t){function e(r,a){return function(l,s,u,d){var f=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||f))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return e(r(l,s,u,d),a)(l,s,u,d);var p=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var n={},i=t.group;(!i||zt(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Le=function(){!Be&&v&&h(v,"display","none")},We=function(){!Be&&v&&h(v,"display","")};ne&&document.addEventListener("click",function(o){if(Qt)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),Qt=!1,!1},!0);var ft=function(t){if(c){t=t.touches?t.touches[0]:t;var e=gn(t.clientX,t.clientY);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[k]._onDragOver(n)}}},mn=function(t){c&&c.parentNode[k]._isOutsideThisEl(t.target)};function g(o,t){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=t=z({},t),o[k]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return He(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:g.supportPointer!==!1&&"PointerEvent"in window&&!Mt,emptyInsertThreshold:5};Yt.initializePlugins(this,o,e);for(var n in e)!(n in t)&&(t[n]=e[n]);Ge(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:hn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(o,"pointerdown",this._onTapStart):(y(o,"mousedown",this._onTapStart),y(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(o,"dragover",this),y(o,"dragenter",this)),Jt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),z(this,un())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(gt=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,c):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var e=this,n=this.el,i=this.options,r=i.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,d=i.filter;if(_n(n),!c&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Mt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,i.draggable,n,!1),!(s&&s.animated)&&Ut!==s)){if(bt=N(s),Ft=N(s,i.draggable),typeof d=="function"){if(d.call(this,t,s,this)){X({sortable:e,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),B("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=$(u,f.trim(),n,!1),f)return X({sortable:e,rootEl:f,name:"filter",targetEl:s,fromEl:n,toEl:n}),B("filter",e,{evt:t}),!0}),d)){r&&t.cancelable&&t.preventDefault();return}i.handle&&!$(u,i.handle,n,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,n){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(n&&!c&&n.parentNode===r){var u=O(n);if(C=r,c=n,A=c.parentNode,dt=c.nextSibling,Ut=n,Ht=a.group,g.dragged=c,ct={target:c,clientX:(e||t).clientX,clientY:(e||t).clientY},Ie=ct.clientX-u.left,Ne=ct.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,c.style["will-change"]="all",s=function(){if(B("delayEnded",i,{evt:t}),g.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!_e&&i.nativeDraggable&&(c.draggable=!0),i._triggerDragStart(t,e),X({sortable:i,name:"choose",originalEvent:t}),T(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){ke(c,d.trim(),ue)}),y(l,"dragover",ft),y(l,"mousemove",ft),y(l,"touchmove",ft),y(l,"mouseup",i._onDrop),y(l,"touchend",i._onDrop),y(l,"touchcancel",i._onDrop),_e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),B("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Xt||nt))){if(g.eventCanceled){this._onDrop();return}y(l,"mouseup",i._disableDelayedDrag),y(l,"touchend",i._disableDelayedDrag),y(l,"touchcancel",i._disableDelayedDrag),y(l,"mousemove",i._delayedDragTouchMoveHandler),y(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&y(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&ue(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._disableDelayedDrag),w(t,"touchend",this._disableDelayedDrag),w(t,"touchcancel",this._disableDelayedDrag),w(t,"mousemove",this._delayedDragTouchMoveHandler),w(t,"touchmove",this._delayedDragTouchMoveHandler),w(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):e?y(document,"touchmove",this._onTouchMove):y(document,"mousemove",this._onTouchMove):(y(c,"dragend",this),y(C,"dragstart",this._onDragStart));try{document.selection?$t(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(vt=!1,C&&c){B("dragStarted",this,{evt:e}),this.nativeDraggable&&y(document,"dragover",mn);var n=this.options;!t&&T(c,n.dragClass,!1),T(c,n.ghostClass,!0),g.active=this,t&&this._appendGhost(),X({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(U){this._lastX=U.clientX,this._lastY=U.clientY,Le();for(var t=document.elementFromPoint(U.clientX,U.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(U.clientX,U.clientY),t!==e);)e=t;if(c.parentNode[k]._isOutsideThisEl(t),e)do{if(e[k]){var n=void 0;if(n=e[k]._onDragOver({clientX:U.clientX,clientY:U.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);We()}},_onTouchMove:function(t){if(ct){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,a=v&&ht(v,!0),l=v&&a&&a.a,s=v&&a&&a.d,u=Lt&&R&&Te(R),d=(r.clientX-ct.clientX+i.x)/(l||1)+(u?u[0]-se[0]:0)/(l||1),f=(r.clientY-ct.clientY+i.y)/(s||1)+(u?u[1]-se[1]:0)/(s||1);if(!g.active&&!vt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))=0&&(X({rootEl:A,name:"add",toEl:A,fromEl:C,originalEvent:t}),X({sortable:this,name:"remove",toEl:A,originalEvent:t}),X({rootEl:A,name:"sort",toEl:A,fromEl:C,originalEvent:t}),X({sortable:this,name:"sort",toEl:A,originalEvent:t})),F&&F.save()):W!==bt&&W>=0&&(X({sortable:this,name:"update",toEl:A,originalEvent:t}),X({sortable:this,name:"sort",toEl:A,originalEvent:t})),g.active&&((W==null||W===-1)&&(W=bt,rt=Ft),X({sortable:this,name:"end",toEl:A,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){B("nulling",this),C=c=A=v=dt=I=Ut=at=ct=U=It=W=rt=bt=Ft=gt=Rt=F=Ht=g.dragged=g.ghost=g.clone=g.active=null,te.forEach(function(t){t.checked=!0}),te.length=ae=le=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),vn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,i=0,r=n.length,a=this.options;in.right+i||o.clientX<=n.right&&o.clientY>n.bottom&&o.clientX>=n.left:o.clientX>n.right&&o.clientY>n.top||o.clientX<=n.right&&o.clientY>n.bottom+i}function En(o,t,e,n,i,r,a,l){var s=n?o.clientY:o.clientX,u=n?e.height:e.width,d=n?e.top:e.left,f=n?e.bottom:e.right,p=!1;if(!a){if(l&&qtd+u*r/2:sf-qt)return-Rt}else if(s>d+u*(1-i)/2&&sf-u*r/2)?s>d+u/2?1:-1:0}function Sn(o){return N(c)1&&(m.forEach(function(l){r.addAnimationState({target:l,rect:H?O(l):a}),ie(l),l.fromRect=a,n.removeAnimationState(l)}),H=!1,In(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(e){var n=e.sortable,i=e.isOwner,r=e.insertion,a=e.activeSortable,l=e.parentEl,s=e.putSortable,u=this.options;if(r){if(i&&a._hideClone(),Ot=!1,u.animation&&m.length>1&&(H||!i&&!a.options.sort&&!s)){var d=O(_,!1,!0,!0);m.forEach(function(p){p!==_&&(Ae(p,d),l.appendChild(p))}),H=!0}if(!i)if(H||jt(),m.length>1){var f=Kt;a._showClone(n),a.options.animation&&!Kt&&f&&L.forEach(function(p){a.addAnimationState({target:p,rect:Tt}),p.fromRect=Tt,p.thisAnimationDuration=null})}else a._showClone(n)}},dragOverAnimationCapture:function(e){var n=e.dragRect,i=e.isOwner,r=e.activeSortable;if(m.forEach(function(l){l.thisAnimationDuration=null}),r.options.animation&&!i&&r.multiDrag.isMultiDrag){Tt=z({},n);var a=ht(_,!0);Tt.top-=a.f,Tt.left-=a.e}},dragOverAnimationComplete:function(){H&&(H=!1,jt())},drop:function(e){var n=e.originalEvent,i=e.rootEl,r=e.parentEl,a=e.sortable,l=e.dispatchSortableEvent,s=e.oldIndex,u=e.putSortable,d=u||this.sortable;if(!!n){var f=this.options,p=r.children;if(!mt)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),T(_,f.selectedClass,!~m.indexOf(_)),~m.indexOf(_))m.splice(m.indexOf(_),1),Ct=null,At({sortable:a,rootEl:i,name:"deselect",targetEl:_,originalEvt:n});else{if(m.push(_),At({sortable:a,rootEl:i,name:"select",targetEl:_,originalEvt:n}),n.shiftKey&&Ct&&a.el.contains(Ct)){var E=N(Ct),b=N(_);if(~E&&~b&&E!==b){var S,P;for(b>E?(P=E,S=b):(P=b,S=E+1);P1){var K=O(_),x=N(_,":not(."+this.options.selectedClass+")");if(!Ot&&f.animation&&(_.thisAnimationDuration=null),d.captureAnimationState(),!Ot&&(f.animation&&(_.fromRect=K,m.forEach(function(D){if(D.thisAnimationDuration=null,D!==_){var V=H?O(D):K;D.fromRect=V,d.addAnimationState({target:D,rect:V})}})),jt(),m.forEach(function(D){p[x]?r.insertBefore(D,p[x]):r.appendChild(D),x++}),s===N(_))){var Y=!1;m.forEach(function(D){if(D.sortableIndex!==N(D)){Y=!0;return}}),Y&&l("update")}m.forEach(function(D){ie(D)}),d.animateAll()}q=d}(i===r||u&&u.lastPutMode!=="clone")&&L.forEach(function(D){D.parentNode&&D.parentNode.removeChild(D)})}},nullingGlobal:function(){this.isMultiDrag=mt=!1,L.length=0},destroyGlobal:function(){this._deselectMultiDrag(),w(document,"pointerup",this._deselectMultiDrag),w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(typeof mt!="undefined"&&mt)&&q===this.sortable&&!(e&&$(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;m.length;){var n=m[0];T(n,this.options.selectedClass,!1),m.shift(),At({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},z(o,{pluginName:"multiDrag",utils:{select:function(e){var n=e.parentNode[k];!n||!n.options.multiDrag||~m.indexOf(e)||(q&&q!==n&&(q.multiDrag._deselectMultiDrag(),q=n),T(e,n.options.selectedClass,!0),m.push(e))},deselect:function(e){var n=e.parentNode[k],i=m.indexOf(e);!n||!n.options.multiDrag||!~i||(T(e,n.options.selectedClass,!1),m.splice(i,1))}},eventProperties:function(){var e=this,n=[],i=[];return m.forEach(function(r){n.push({multiDragElement:r,index:r.sortableIndex});var a;H&&r!==_?a=-1:H?a=N(r,":not(."+e.options.selectedClass+")"):a=N(r),i.push({multiDragElement:r,index:a})}),{items:Ze(m),clones:[].concat(L),oldIndicies:n,newIndicies:i}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e==="ctrl"?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function In(o,t){m.forEach(function(e,n){var i=t.children[e.sortableIndex+(o?Number(n):0)];i?t.insertBefore(e,i):t.appendChild(e)})}function xe(o,t){L.forEach(function(e,n){var i=t.children[e.sortableIndex+(o?Number(n):0)];i?t.insertBefore(e,i):t.appendChild(e)})}function jt(){m.forEach(function(o){o!==_&&o.parentNode&&o.parentNode.removeChild(o)})}g.mount(new Cn);g.mount(Ee,ye);var Nn=Object.freeze(Object.defineProperty({__proto__:null,default:g,MultiDrag:An,Sortable:g,Swap:On},Symbol.toStringTag,{value:"Module"})),xn=Ue(Nn);export{xn as r}; diff --git a/assets/unique-names-generator.9178d3e3.js b/assets/unique-names-generator.9178d3e3.js new file mode 100644 index 0000000..05acee3 --- /dev/null +++ b/assets/unique-names-generator.9178d3e3.js @@ -0,0 +1,2 @@ +const c=i=>{i=1831565813+(i|=0)|0;let e=Math.imul(i^i>>>15,1|i);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296};class g{constructor(e){this.dictionaries=void 0,this.length=void 0,this.separator=void 0,this.style=void 0,this.seed=void 0;const{length:t,separator:l,dictionaries:n,style:a,seed:r}=e;this.dictionaries=n,this.separator=l,this.length=t,this.style=a,this.seed=r}generate(){if(!this.dictionaries)throw new Error('Cannot find any dictionary. Please provide at least one, or leave the "dictionary" field empty in the config object');if(this.length<=0)throw new Error("Invalid length provided");if(this.length>this.dictionaries.length)throw new Error(`The length cannot be bigger than the number of dictionaries. +Length provided: ${this.length}. Number of dictionaries provided: ${this.dictionaries.length}`);let e=this.seed;return this.dictionaries.slice(0,this.length).reduce((t,l)=>{let n;e?(n=(r=>{if(typeof r=="string"){const o=r.split("").map(s=>s.charCodeAt(0)).reduce((s,p)=>s+p,1),d=Math.floor(Number(o));return c(d)}return c(r)})(e),e=4294967296*n):n=Math.random();let a=l[Math.floor(n*l.length)]||"";if(this.style==="lowerCase")a=a.toLowerCase();else if(this.style==="capital"){const[r,...o]=a.split("");a=r.toUpperCase()+o.join("")}else this.style==="upperCase"&&(a=a.toUpperCase());return t?`${t}${this.separator}${a}`:`${a}`},"")}}const u={separator:"_",dictionaries:[]},m=i=>{const e=[...i&&i.dictionaries||u.dictionaries],t={...u,...i,length:i&&i.length||e.length,dictionaries:e};if(!i||!i.dictionaries||!i.dictionaries.length)throw new Error('A "dictionaries" array must be provided. This is a breaking change introduced starting from Unique Name Generator v4. Read more about the breaking change here: https://github.com/andreasonny83/unique-names-generator#migration-guide');return new g(t).generate()};var h=["able","above","absent","absolute","abstract","abundant","academic","acceptable","accepted","accessible","accurate","accused","active","actual","acute","added","additional","adequate","adjacent","administrative","adorable","advanced","adverse","advisory","aesthetic","afraid","aggregate","aggressive","agreeable","agreed","agricultural","alert","alive","alleged","allied","alone","alright","alternative","amateur","amazing","ambitious","amused","ancient","angry","annoyed","annual","anonymous","anxious","appalling","apparent","applicable","appropriate","arbitrary","architectural","armed","arrogant","artificial","artistic","ashamed","asleep","assistant","associated","atomic","attractive","automatic","autonomous","available","average","awake","aware","awful","awkward","back","bad","balanced","bare","basic","beautiful","beneficial","better","bewildered","big","binding","biological","bitter","bizarre","blank","blind","blonde","bloody","blushing","boiling","bold","bored","boring","bottom","brainy","brave","breakable","breezy","brief","bright","brilliant","broad","broken","bumpy","burning","busy","calm","capable","capitalist","careful","casual","causal","cautious","central","certain","changing","characteristic","charming","cheap","cheerful","chemical","chief","chilly","chosen","christian","chronic","chubby","circular","civic","civil","civilian","classic","classical","clean","clear","clever","clinical","close","closed","cloudy","clumsy","coastal","cognitive","coherent","cold","collective","colonial","colorful","colossal","coloured","colourful","combative","combined","comfortable","coming","commercial","common","communist","compact","comparable","comparative","compatible","competent","competitive","complete","complex","complicated","comprehensive","compulsory","conceptual","concerned","concrete","condemned","confident","confidential","confused","conscious","conservation","conservative","considerable","consistent","constant","constitutional","contemporary","content","continental","continued","continuing","continuous","controlled","controversial","convenient","conventional","convinced","convincing","cooing","cool","cooperative","corporate","correct","corresponding","costly","courageous","crazy","creative","creepy","criminal","critical","crooked","crowded","crucial","crude","cruel","cuddly","cultural","curious","curly","current","curved","cute","daily","damaged","damp","dangerous","dark","dead","deaf","deafening","dear","decent","decisive","deep","defeated","defensive","defiant","definite","deliberate","delicate","delicious","delighted","delightful","democratic","dependent","depressed","desirable","desperate","detailed","determined","developed","developing","devoted","different","difficult","digital","diplomatic","direct","dirty","disabled","disappointed","disastrous","disciplinary","disgusted","distant","distinct","distinctive","distinguished","disturbed","disturbing","diverse","divine","dizzy","domestic","dominant","double","doubtful","drab","dramatic","dreadful","driving","drunk","dry","dual","due","dull","dusty","dutch","dying","dynamic","eager","early","eastern","easy","economic","educational","eerie","effective","efficient","elaborate","elated","elderly","eldest","electoral","electric","electrical","electronic","elegant","eligible","embarrassed","embarrassing","emotional","empirical","empty","enchanting","encouraging","endless","energetic","enormous","enthusiastic","entire","entitled","envious","environmental","equal","equivalent","essential","established","estimated","ethical","ethnic","eventual","everyday","evident","evil","evolutionary","exact","excellent","exceptional","excess","excessive","excited","exciting","exclusive","existing","exotic","expected","expensive","experienced","experimental","explicit","extended","extensive","external","extra","extraordinary","extreme","exuberant","faint","fair","faithful","familiar","famous","fancy","fantastic","far","fascinating","fashionable","fast","fat","fatal","favourable","favourite","federal","fellow","female","feminist","few","fierce","filthy","final","financial","fine","firm","fiscal","fit","fixed","flaky","flat","flexible","fluffy","fluttering","flying","following","fond","foolish","foreign","formal","formidable","forthcoming","fortunate","forward","fragile","frail","frantic","free","frequent","fresh","friendly","frightened","front","frozen","full","fun","functional","fundamental","funny","furious","future","fuzzy","gastric","gay","general","generous","genetic","gentle","genuine","geographical","giant","gigantic","given","glad","glamorous","gleaming","global","glorious","golden","good","gorgeous","gothic","governing","graceful","gradual","grand","grateful","greasy","great","grieving","grim","gross","grotesque","growing","grubby","grumpy","guilty","handicapped","handsome","happy","hard","harsh","head","healthy","heavy","helpful","helpless","hidden","high","hilarious","hissing","historic","historical","hollow","holy","homeless","homely","hon","honest","horizontal","horrible","hostile","hot","huge","human","hungry","hurt","hushed","husky","icy","ideal","identical","ideological","ill","illegal","imaginative","immediate","immense","imperial","implicit","important","impossible","impressed","impressive","improved","inadequate","inappropriate","inc","inclined","increased","increasing","incredible","independent","indirect","individual","industrial","inevitable","influential","informal","inherent","initial","injured","inland","inner","innocent","innovative","inquisitive","instant","institutional","insufficient","intact","integral","integrated","intellectual","intelligent","intense","intensive","interested","interesting","interim","interior","intermediate","internal","international","intimate","invisible","involved","irrelevant","isolated","itchy","jealous","jittery","joint","jolly","joyous","judicial","juicy","junior","just","keen","key","kind","known","labour","large","late","latin","lazy","leading","left","legal","legislative","legitimate","lengthy","lesser","level","lexical","liable","liberal","light","like","likely","limited","linear","linguistic","liquid","literary","little","live","lively","living","local","logical","lonely","long","loose","lost","loud","lovely","low","loyal","ltd","lucky","mad","magic","magnetic","magnificent","main","major","male","mammoth","managerial","managing","manual","many","marginal","marine","marked","married","marvellous","marxist","mass","massive","mathematical","mature","maximum","mean","meaningful","mechanical","medical","medieval","melodic","melted","mental","mere","metropolitan","mid","middle","mighty","mild","military","miniature","minimal","minimum","ministerial","minor","miserable","misleading","missing","misty","mixed","moaning","mobile","moderate","modern","modest","molecular","monetary","monthly","moral","motionless","muddy","multiple","mushy","musical","mute","mutual","mysterious","naked","narrow","nasty","national","native","natural","naughty","naval","near","nearby","neat","necessary","negative","neighbouring","nervous","net","neutral","new","nice","noble","noisy","normal","northern","nosy","notable","novel","nuclear","numerous","nursing","nutritious","nutty","obedient","objective","obliged","obnoxious","obvious","occasional","occupational","odd","official","ok","okay","old","olympic","only","open","operational","opposite","optimistic","oral","ordinary","organic","organisational","original","orthodox","other","outdoor","outer","outrageous","outside","outstanding","overall","overseas","overwhelming","painful","pale","panicky","parallel","parental","parliamentary","partial","particular","passing","passive","past","patient","payable","peaceful","peculiar","perfect","permanent","persistent","personal","petite","philosophical","physical","plain","planned","plastic","pleasant","pleased","poised","polite","political","poor","popular","positive","possible","potential","powerful","practical","precious","precise","preferred","pregnant","preliminary","premier","prepared","present","presidential","pretty","previous","prickly","primary","prime","primitive","principal","printed","prior","private","probable","productive","professional","profitable","profound","progressive","prominent","promising","proper","proposed","prospective","protective","protestant","proud","provincial","psychiatric","psychological","public","puny","pure","purring","puzzled","quaint","qualified","quarrelsome","querulous","quick","quickest","quiet","quintessential","quixotic","racial","radical","rainy","random","rapid","rare","raspy","rational","ratty","raw","ready","real","realistic","rear","reasonable","recent","reduced","redundant","regional","registered","regular","regulatory","related","relative","relaxed","relevant","reliable","relieved","religious","reluctant","remaining","remarkable","remote","renewed","representative","repulsive","required","resident","residential","resonant","respectable","respective","responsible","resulting","retail","retired","revolutionary","rich","ridiculous","right","rigid","ripe","rising","rival","roasted","robust","rolling","romantic","rotten","rough","round","royal","rubber","rude","ruling","running","rural","sacred","sad","safe","salty","satisfactory","satisfied","scared","scary","scattered","scientific","scornful","scrawny","screeching","secondary","secret","secure","select","selected","selective","selfish","semantic","senior","sensible","sensitive","separate","serious","severe","sexual","shaggy","shaky","shallow","shared","sharp","sheer","shiny","shivering","shocked","short","shrill","shy","sick","significant","silent","silky","silly","similar","simple","single","skilled","skinny","sleepy","slight","slim","slimy","slippery","slow","small","smart","smiling","smoggy","smooth","social","socialist","soft","solar","sole","solid","sophisticated","sore","sorry","sound","sour","southern","soviet","spare","sparkling","spatial","special","specific","specified","spectacular","spicy","spiritual","splendid","spontaneous","sporting","spotless","spotty","square","squealing","stable","stale","standard","static","statistical","statutory","steady","steep","sticky","stiff","still","stingy","stormy","straight","straightforward","strange","strategic","strict","striking","striped","strong","structural","stuck","stupid","subjective","subsequent","substantial","subtle","successful","successive","sudden","sufficient","suitable","sunny","super","superb","superior","supporting","supposed","supreme","sure","surprised","surprising","surrounding","surviving","suspicious","sweet","swift","symbolic","sympathetic","systematic","tall","tame","tart","tasteless","tasty","technical","technological","teenage","temporary","tender","tense","terrible","territorial","testy","then","theoretical","thick","thin","thirsty","thorough","thoughtful","thoughtless","thundering","tight","tiny","tired","top","tory","total","tough","toxic","traditional","tragic","tremendous","tricky","tropical","troubled","typical","ugliest","ugly","ultimate","unable","unacceptable","unaware","uncertain","unchanged","uncomfortable","unconscious","underground","underlying","unemployed","uneven","unexpected","unfair","unfortunate","unhappy","uniform","uninterested","unique","united","universal","unknown","unlikely","unnecessary","unpleasant","unsightly","unusual","unwilling","upper","upset","uptight","urban","urgent","used","useful","useless","usual","vague","valid","valuable","variable","varied","various","varying","vast","verbal","vertical","very","vicarious","vicious","victorious","violent","visible","visiting","visual","vital","vitreous","vivacious","vivid","vocal","vocational","voiceless","voluminous","voluntary","vulnerable","wandering","warm","wasteful","watery","weak","wealthy","weary","wee","weekly","weird","welcome","well","western","wet","whispering","whole","wicked","wide","widespread","wild","wilful","willing","willowy","wily","wise","wispy","wittering","witty","wonderful","wooden","working","worldwide","worried","worrying","worthwhile","worthy","written","wrong","xenacious","xenial","xenogeneic","xenophobic","xeric","xerothermic","yabbering","yammering","yappiest","yappy","yawning","yearling","yearning","yeasty","yelling","yelping","yielding","yodelling","young","youngest","youthful","ytterbic","yucky","yummy","zany","zealous","zeroth","zestful","zesty","zippy","zonal","zoophagous","zygomorphic","zygotic"],y=["aardvark","aardwolf","albatross","alligator","alpaca","amphibian","anaconda","angelfish","anglerfish","ant","anteater","antelope","antlion","ape","aphid","armadillo","asp","baboon","badger","bandicoot","barnacle","barracuda","basilisk","bass","bat","bear","beaver","bedbug","bee","beetle","bird","bison","blackbird","boa","boar","bobcat","bobolink","bonobo","booby","bovid","bug","butterfly","buzzard","camel","canid","canidae","capybara","cardinal","caribou","carp","cat","caterpillar","catfish","catshark","cattle","centipede","cephalopod","chameleon","cheetah","chickadee","chicken","chimpanzee","chinchilla","chipmunk","cicada","clam","clownfish","cobra","cockroach","cod","condor","constrictor","coral","cougar","cow","coyote","crab","crane","crawdad","crayfish","cricket","crocodile","crow","cuckoo","damselfly","deer","dingo","dinosaur","dog","dolphin","donkey","dormouse","dove","dragon","dragonfly","duck","eagle","earthworm","earwig","echidna","eel","egret","elephant","elk","emu","ermine","falcon","felidae","ferret","finch","firefly","fish","flamingo","flea","fly","flyingfish","fowl","fox","frog","galliform","gamefowl","gayal","gazelle","gecko","gerbil","gibbon","giraffe","goat","goldfish","goose","gopher","gorilla","grasshopper","grouse","guan","guanaco","guineafowl","gull","guppy","haddock","halibut","hamster","hare","harrier","hawk","hedgehog","heron","herring","hippopotamus","hookworm","hornet","horse","hoverfly","hummingbird","hyena","iguana","impala","jackal","jaguar","jay","jellyfish","junglefowl","kangaroo","kingfisher","kite","kiwi","koala","koi","krill","ladybug","lamprey","landfowl","lark","leech","lemming","lemur","leopard","leopon","limpet","lion","lizard","llama","lobster","locust","loon","louse","lungfish","lynx","macaw","mackerel","magpie","mammal","manatee","mandrill","marlin","marmoset","marmot","marsupial","marten","mastodon","meadowlark","meerkat","mink","minnow","mite","mockingbird","mole","mollusk","mongoose","monkey","moose","mosquito","moth","mouse","mule","muskox","narwhal","newt","nightingale","ocelot","octopus","opossum","orangutan","orca","ostrich","otter","owl","ox","panda","panther","parakeet","parrot","parrotfish","partridge","peacock","peafowl","pelican","penguin","perch","pheasant","pig","pigeon","pike","pinniped","piranha","planarian","platypus","pony","porcupine","porpoise","possum","prawn","primate","ptarmigan","puffin","puma","python","quail","quelea","quokka","rabbit","raccoon","rat","rattlesnake","raven","reindeer","reptile","rhinoceros","roadrunner","rodent","rook","rooster","roundworm","sailfish","salamander","salmon","sawfish","scallop","scorpion","seahorse","shark","sheep","shrew","shrimp","silkworm","silverfish","skink","skunk","sloth","slug","smelt","snail","snake","snipe","sole","sparrow","spider","spoonbill","squid","squirrel","starfish","stingray","stoat","stork","sturgeon","swallow","swan","swift","swordfish","swordtail","tahr","takin","tapir","tarantula","tarsier","termite","tern","thrush","tick","tiger","tiglon","toad","tortoise","toucan","trout","tuna","turkey","turtle","tyrannosaurus","unicorn","urial","vicuna","viper","vole","vulture","wallaby","walrus","warbler","wasp","weasel","whale","whippet","whitefish","wildcat","wildebeest","wildfowl","wolf","wolverine","wombat","woodpecker","worm","wren","xerinae","yak","zebra"],f=["amaranth","amber","amethyst","apricot","aqua","aquamarine","azure","beige","black","blue","blush","bronze","brown","chocolate","coffee","copper","coral","crimson","cyan","emerald","fuchsia","gold","gray","green","harlequin","indigo","ivory","jade","lavender","lime","magenta","maroon","moccasin","olive","orange","peach","pink","plum","purple","red","rose","salmon","sapphire","scarlet","silver","tan","teal","tomato","turquoise","violet","white","yellow"];export{h as l,m as n,y as r,f as t}; diff --git a/assets/vue-next-select.9e6f4164.css b/assets/vue-next-select.9e6f4164.css new file mode 100644 index 0000000..e4812d2 --- /dev/null +++ b/assets/vue-next-select.9e6f4164.css @@ -0,0 +1 @@ +.icon.delete{display:flex;justify-content:center;align-items:center;padding:0;margin:0;border:none;background:none;height:8px;width:8px;min-height:8px;min-width:8px;max-height:8px;max-width:8px;cursor:pointer}.icon.arrow-downward{color:#999;border-style:solid;border-width:4px 4px 0;border-color:#999 transparent transparent;content:"";transition:transform .2s linear;cursor:pointer}.icon.arrow-downward.active{transform:rotate(180deg)}.vue-select{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;width:150px;border-radius:4px;border:1px solid #999;box-sizing:border-box;outline:none}.vue-select[aria-disabled=true]{background-color:#efefef}.vue-select[aria-disabled=true] *,.vue-select[aria-disabled=true] input{cursor:not-allowed}.vue-select-header{display:flex;width:100%;align-items:center;justify-content:space-between}.vue-select-header .icon.loading,.vue-select-header .icon.arrow-downward{margin-right:4px}.vue-tags{display:flex;flex-wrap:wrap;margin:0;padding:2px;min-height:calc(1rem + 4px);user-select:none}.vue-tags.collapsed{flex-wrap:nowrap;overflow:auto}.vue-tag{display:none;align-items:center;justify-content:center;list-style-type:none;border-radius:4px;background-color:#999;padding:0 4px;margin:2px;min-height:1rem;font-size:.8rem}.vue-tag span{margin-right:4px}.vue-tag.selected{display:flex;align-items:center;justify-content:center;background-color:#999;border-radius:4px;padding:0 4px;font-size:.8rem}.vue-tags[data-removable=false] .vue-tag.selected img:hover{cursor:not-allowed}.vue-select-input-wrapper{position:relative;display:flex;width:100%;align-items:center;justify-content:space-between}.vue-select-input-wrapper .icon.loading{margin-right:4px}.vue-input{display:inline-flex;align-items:center;border-radius:4px;border:none;outline:none;max-width:100%;min-width:0;width:100%;box-sizing:border-box;padding:4px}.vue-select[data-is-focusing=false][aria-disabled=false] .vue-input input,input[readonly]{cursor:default}.vue-input input{border:none;outline:none;width:100%;min-width:0;font-size:.8rem;padding:0}.vue-input input[disabled]{background-color:#efefef}.vue-input input[readonly],.vue-select-header .vue-input input[disabled]{background-color:unset}.vue-dropdown{display:none;position:absolute;background-color:#fff;z-index:1;overflow-y:auto;width:100%;min-width:0;margin:0;padding:0;left:-1px;box-sizing:content-box;border:1px solid #999;list-style-type:none}.vue-select[aria-expanded=true] .vue-dropdown{display:unset}.vue-dropdown[data-visible-length="0"]{border:none}.vue-dropdown-item{list-style-type:none;padding:4px;cursor:pointer;min-height:1rem}.vue-dropdown-item.highlighted{background-color:#41b883}.vue-dropdown-item.disabled{background-color:#efefef;cursor:not-allowed}.vue-dropdown-item.selected{background-color:#f3f3f3}.vue-dropdown-item.selected.highlighted{background-color:#ff6a6a}.vue-dropdown[data-removable=false] .vue-dropdown-item.selected:hover{cursor:not-allowed}.vue-dropdown[data-addable=false][data-multiple=true] .vue-dropdown-item:not(.selected):hover{cursor:not-allowed}.icon.loading{display:inline-block;position:relative;width:8px;min-width:8px;height:8px;min-height:8px}.icon.loading div{box-sizing:border-box;display:block;position:absolute;border:1px solid #999;width:8px;height:8px;border-radius:50%;animation:loading 1s cubic-bezier(.5,0,.5,1) infinite;border-color:#999 transparent transparent transparent}.icon.loading div:nth-child(1){animation-delay:-.08s}.icon.loading div:nth-child(2){animation-delay:-.16s}@keyframes loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.inline-flex{display:inline-flex}.vue-select[aria-expanded=true].direction-bottom{border-bottom-left-radius:0;border-bottom-right-radius:0}.vue-select[aria-expanded=true].direction-top{border-top-left-radius:0;border-top-right-radius:0}.vue-select.direction-top .vue-dropdown{bottom:100%;border-top-left-radius:3px;border-top-right-radius:3px}.vue-select.direction-bottom .vue-dropdown{top:100%;border-bottom-left-radius:3px;border-bottom-right-radius:3px} diff --git a/assets/vue-next-select.f2be13cc.js b/assets/vue-next-select.f2be13cc.js new file mode 100644 index 0000000..6303446 --- /dev/null +++ b/assets/vue-next-select.f2be13cc.js @@ -0,0 +1,3 @@ +import"./vue.228877f7.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.8948d9b0.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-textarea-autosize.35804eaf.js b/assets/vue-textarea-autosize.35804eaf.js new file mode 100644 index 0000000..e0bd93a --- /dev/null +++ b/assets/vue-textarea-autosize.35804eaf.js @@ -0,0 +1,5 @@ +/*! + * vue-textarea-autosize v1.1.1 + * (c) 2019 Saymon + * Released under the MIT License. + */var p={name:"TextareaAutosize",props:{value:{type:[String,Number],default:""},autosize:{type:Boolean,default:!0},minHeight:{type:[Number],default:null},maxHeight:{type:[Number],default:null},important:{type:[Boolean,Array],default:!1}},data:function(){return{val:null,maxHeightScroll:!1,height:"auto"}},computed:{computedStyles:function(){return this.autosize?{resize:this.isResizeImportant?"none !important":"none",height:this.height,overflow:this.maxHeightScroll?"auto":this.isOverflowImportant?"hidden !important":"hidden"}:{}},isResizeImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("resize")},isOverflowImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("overflow")},isHeightImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("height")}},watch:{value:function(e){this.val=e},val:function(e){this.$nextTick(this.resize),this.$emit("input",e)},minHeight:function(){this.$nextTick(this.resize)},maxHeight:function(){this.$nextTick(this.resize)},autosize:function(e){e&&this.resize()}},methods:{resize:function(){var e=this,a=this.isHeightImportant?"important":"";return this.height="auto".concat(a?" !important":""),this.$nextTick(function(){var i=e.$el.scrollHeight+1;e.minHeight&&(i=ie.maxHeight?(i=e.maxHeight,e.maxHeightScroll=!0):e.maxHeightScroll=!1);var u=i+"px";e.height="".concat(u).concat(a?" !important":"")}),this}},created:function(){this.val=this.value},mounted:function(){this.resize()}};function g(t,e,a,i,u,f,s,l,m,d){typeof s!="boolean"&&(m=l,l=s,s=!1);var n=typeof a=="function"?a.options:a;t&&t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns,n._compiled=!0,u&&(n.functional=!0)),i&&(n._scopeId=i);var o;if(f?(o=function(r){r=r||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!r&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(r=__VUE_SSR_CONTEXT__),e&&e.call(this,m(r)),r&&r._registeredComponents&&r._registeredComponents.add(f)},n._ssrRegister=o):e&&(o=s?function(){e.call(this,d(this.$root.$options.shadowRoot))}:function(h){e.call(this,l(h))}),o)if(n.functional){var v=n.render;n.render=function(r,c){return o.call(c),v(r,c)}}else{var _=n.beforeCreate;n.beforeCreate=_?[].concat(_,o):[o]}return a}var z=g;const H=p;var y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],style:t.computedStyles,domProps:{value:t.val},on:{focus:t.resize,input:function(i){i.target.composing||(t.val=i.target.value)}}})},x=[];const $=void 0,w=void 0,S=void 0,T=!1;var A=z({render:y,staticRenderFns:x},$,H,w,T,S,void 0,void 0),C="1.1.1",R=function(e){e.component("TextareaAutosize",A)},b={install:R,version:C};typeof window!="undefined"&&window.Vue&&window.Vue.use(b);export{b as p}; diff --git a/assets/vue-toastification.4b5f8ac8.css b/assets/vue-toastification.4b5f8ac8.css new file mode 100644 index 0000000..b701b41 --- /dev/null +++ b/assets/vue-toastification.4b5f8ac8.css @@ -0,0 +1 @@ +.Vue-Toastification__container{z-index:9999;position:fixed;padding:4px;width:600px;box-sizing:border-box;display:flex;min-height:100%;color:#fff;flex-direction:column;pointer-events:none}@media only screen and (min-width : 600px){.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:1em}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:1em;flex-direction:column-reverse}.Vue-Toastification__container.top-left,.Vue-Toastification__container.bottom-left{left:1em}.Vue-Toastification__container.top-left .Vue-Toastification__toast,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast{margin-right:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-left .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast--rtl{margin-right:unset;margin-left:auto}}.Vue-Toastification__container.top-right,.Vue-Toastification__container.bottom-right{right:1em}.Vue-Toastification__container.top-right .Vue-Toastification__toast,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast{margin-left:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-right .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast--rtl{margin-left:unset;margin-right:auto}}.Vue-Toastification__container.top-center,.Vue-Toastification__container.bottom-center{left:50%;margin-left:-300px}.Vue-Toastification__container.top-center .Vue-Toastification__toast,.Vue-Toastification__container.bottom-center .Vue-Toastification__toast{margin-left:auto;margin-right:auto}}@media only screen and (max-width : 600px){.Vue-Toastification__container{width:100vw;padding:0;left:0;margin:0}.Vue-Toastification__container .Vue-Toastification__toast{width:100%}.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:0}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:0;flex-direction:column-reverse}}.Vue-Toastification__toast{display:inline-flex;position:relative;max-height:800px;min-height:64px;box-sizing:border-box;margin-bottom:1rem;padding:22px 24px;border-radius:8px;box-shadow:0 1px 10px #0000001a,0 2px 15px #0000000d;justify-content:space-between;font-family:Lato,Helvetica,Roboto,Arial,sans-serif;max-width:600px;min-width:326px;pointer-events:auto;overflow:hidden;transform:translateZ(0);direction:ltr}.Vue-Toastification__toast--rtl{direction:rtl}.Vue-Toastification__toast--default{background-color:#1976d2;color:#fff}.Vue-Toastification__toast--info{background-color:#2196f3;color:#fff}.Vue-Toastification__toast--success{background-color:#4caf50;color:#fff}.Vue-Toastification__toast--error{background-color:#ff5252;color:#fff}.Vue-Toastification__toast--warning{background-color:#ffc107;color:#fff}@media only screen and (max-width : 600px){.Vue-Toastification__toast{border-radius:0;margin-bottom:.5rem}}.Vue-Toastification__toast-body{flex:1;line-height:24px;font-size:16px;word-break:break-word;white-space:pre-wrap}.Vue-Toastification__toast-component-body{flex:1}.Vue-Toastification__toast.disable-transition{animation:none!important}.Vue-Toastification__close-button{font-weight:700;font-size:24px;line-height:24px;background:transparent;outline:none;border:none;padding:0 0 0 10px;cursor:pointer;transition:.3s ease;align-items:center;color:#fff;opacity:.3;transition:visibility 0s,opacity .2s linear}.Vue-Toastification__close-button:hover,.Vue-Toastification__close-button:focus{opacity:1}.Vue-Toastification__toast:not(:hover) .Vue-Toastification__close-button.show-on-hover{opacity:0}.Vue-Toastification__toast--rtl .Vue-Toastification__close-button{padding-left:unset;padding-right:10px}@keyframes scale-x-frames{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Vue-Toastification__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:10000;background-color:#ffffffb3;transform-origin:left;animation:scale-x-frames linear 1 forwards}.Vue-Toastification__toast--rtl .Vue-Toastification__progress-bar{right:0;left:unset;transform-origin:right}.Vue-Toastification__icon{margin:auto 18px auto 0;background:transparent;outline:none;border:none;padding:0;transition:.3s ease;align-items:center;width:20px;height:100%}.Vue-Toastification__toast--rtl .Vue-Toastification__icon{margin:auto 0 auto 18px}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes bounceOutRight{40%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(1000px,0,0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Vue-Toastification__bounce-enter-active.top-left,.Vue-Toastification__bounce-enter-active.bottom-left{animation-name:bounceInLeft}.Vue-Toastification__bounce-enter-active.top-right,.Vue-Toastification__bounce-enter-active.bottom-right{animation-name:bounceInRight}.Vue-Toastification__bounce-enter-active.top-center{animation-name:bounceInDown}.Vue-Toastification__bounce-enter-active.bottom-center{animation-name:bounceInUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-left,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-left{animation-name:bounceOutLeft}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-right,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-right{animation-name:bounceOutRight}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-center{animation-name:bounceOutUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-center{animation-name:bounceOutDown}.Vue-Toastification__bounce-leave-active,.Vue-Toastification__bounce-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__bounce-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes fadeOutTop{0%{transform:translateY(0);opacity:1}to{transform:translateY(-50px);opacity:0}}@keyframes fadeOutLeft{0%{transform:translate(0);opacity:1}to{transform:translate(-50px);opacity:0}}@keyframes fadeOutBottom{0%{transform:translateY(0);opacity:1}to{transform:translateY(50px);opacity:0}}@keyframes fadeOutRight{0%{transform:translate(0);opacity:1}to{transform:translate(50px);opacity:0}}@keyframes fadeInLeft{0%{transform:translate(-50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInRight{0%{transform:translate(50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInTop{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeInBottom{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.Vue-Toastification__fade-enter-active.top-left,.Vue-Toastification__fade-enter-active.bottom-left{animation-name:fadeInLeft}.Vue-Toastification__fade-enter-active.top-right,.Vue-Toastification__fade-enter-active.bottom-right{animation-name:fadeInRight}.Vue-Toastification__fade-enter-active.top-center{animation-name:fadeInTop}.Vue-Toastification__fade-enter-active.bottom-center{animation-name:fadeInBottom}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-left,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-left{animation-name:fadeOutLeft}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-right,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-right{animation-name:fadeOutRight}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-center{animation-name:fadeOutTop}.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-center{animation-name:fadeOutBottom}.Vue-Toastification__fade-leave-active,.Vue-Toastification__fade-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__fade-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes slideInBlurredLeft{0%{transform:translate(-1000px) scaleX(2.5) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredTop{0%{transform:translateY(-1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredRight{0%{transform:translate(1000px) scaleX(2.5) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredBottom{0%{transform:translateY(1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideOutBlurredTop{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 0%;filter:blur(0);opacity:1}to{transform:translateY(-1000px) scaleY(2) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredBottom{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translateY(1000px) scaleY(2) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredLeft{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(-1000px) scaleX(2) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}}@keyframes slideOutBlurredRight{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(1000px) scaleX(2) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}}.Vue-Toastification__slideBlurred-enter-active.top-left,.Vue-Toastification__slideBlurred-enter-active.bottom-left{animation-name:slideInBlurredLeft}.Vue-Toastification__slideBlurred-enter-active.top-right,.Vue-Toastification__slideBlurred-enter-active.bottom-right{animation-name:slideInBlurredRight}.Vue-Toastification__slideBlurred-enter-active.top-center{animation-name:slideInBlurredTop}.Vue-Toastification__slideBlurred-enter-active.bottom-center{animation-name:slideInBlurredBottom}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-left,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-left{animation-name:slideOutBlurredLeft}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-right,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-right{animation-name:slideOutBlurredRight}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-center{animation-name:slideOutBlurredTop}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-center{animation-name:slideOutBlurredBottom}.Vue-Toastification__slideBlurred-leave-active,.Vue-Toastification__slideBlurred-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__slideBlurred-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s} diff --git a/assets/vue-toastification.97914fdb.js b/assets/vue-toastification.97914fdb.js new file mode 100644 index 0000000..c85cb91 --- /dev/null +++ b/assets/vue-toastification.97914fdb.js @@ -0,0 +1 @@ +import"./vue.228877f7.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.8948d9b0.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.228877f7.js b/assets/vue.228877f7.js new file mode 100644 index 0000000..4768c6e --- /dev/null +++ b/assets/vue.228877f7.js @@ -0,0 +1 @@ +import{g as u}from"./lru-cache.9506e0ec.js";import{r as c,i as f,N as n,e as p,c as S,a as h,E as v,R,b as C,d as y,f as g,g as w,h as b,j as E,k as T,l as x,m as k,n as M,o as D,p as P,q as V,s as A,t as B,u as H,v as N,w as F,x as U,y as z,z as I,A as K,B as O,C as j,D as _,F as q,G as W,H as L,I as G,J as $,K as J,L as Q,M as X,O as Y,P as Z,S as ee,Q as ae,T as se,U as te,V as oe,W as re,X as ne,Y as ie,Z as ce,_ as le,$ as de,a0 as me,a1 as ue,a2 as fe,a3 as pe,a4 as Se,a5 as he,a6 as ve,a7 as Re,a8 as Ce,a9 as ye,aa as ge,ab as we,ac as be,ad as Ee,ae as Te,af as xe,ag as ke,ah as Me,ai as De,aj as Pe,ak as Ve,al as Ae,am as Be,an as He,ao as Ne,ap as Fe,aq as Ue,ar as ze,as as Ie,at as Ke,au as Oe,av as je,aw as _e,ax as qe,ay as We,az as Le,aA as Ge,aB as $e,aC as Je,aD as Qe,aE as Xe,aF as Ye,aG as Ze,aH as ea,aI as aa,aJ as sa,aK as ta,aL as oa,aM as ra,aN as na,aO as ia,aP as ca,aQ as la,aR as da,aS as ma,aT as ua,aU as fa,aV as pa,aW as Sa,aX as ha,aY as va,aZ as Ra,a_ as Ca,a$ as ya,b0 as ga,b1 as wa,b2 as ba,b3 as Ea,b4 as Ta,b5 as xa,b6 as ka,b7 as Ma,b8 as Da,b9 as Pa,ba as Va,bb as Aa,bc as Ba,bd as Ha,be as Na,bf as Fa,bg as Ua,bh as za,bi as Ia,bj as Ka,bk as Oa,bl as ja,bm as _a,bn as qa,bo as Wa,bp as La,bq as Ga,br as $a,bs as Ja,bt as Qa,bu as Xa}from"./@vue.8948d9b0.js";const i=Object.create(null);function l(e,d){if(!f(e))if(e.nodeType)e=e.innerHTML;else return n;const t=e,o=i[t];if(o)return o;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const s=p({hoistStatic:!0,onError:void 0,onWarn:n},d);!s.isCustomElement&&typeof customElements!="undefined"&&(s.isCustomElement=a=>!!customElements.get(a));const{code:m}=S(e,s),r=new Function("Vue",m)(h);return r._rc=!0,i[t]=r}c(l);var Ya=Object.freeze(Object.defineProperty({__proto__:null,compile:l,EffectScope:v,ReactiveEffect:R,customRef:C,effect:y,effectScope:g,getCurrentScope:w,isProxy:b,isReactive:E,isReadonly:T,isRef:x,isShallow:k,markRaw:M,onScopeDispose:D,proxyRefs:P,reactive:V,readonly:A,ref:B,shallowReactive:H,shallowReadonly:N,shallowRef:F,stop:U,toRaw:z,toRef:I,toRefs:K,triggerRef:O,unref:j,camelize:_,capitalize:q,normalizeClass:W,normalizeProps:L,normalizeStyle:G,toDisplayString:$,toHandlerKey:J,BaseTransition:Q,Comment:X,Fragment:Y,KeepAlive:Z,Static:ee,Suspense:ae,Teleport:se,Text:te,callWithAsyncErrorHandling:oe,callWithErrorHandling:re,cloneVNode:ne,compatUtils:ie,computed:ce,createBlock:le,createCommentVNode:de,createElementBlock:me,createElementVNode:ue,createHydrationRenderer:fe,createPropsRestProxy:pe,createRenderer:Se,createSlots:he,createStaticVNode:ve,createTextVNode:Re,createVNode:Ce,defineAsyncComponent:ye,defineComponent:ge,defineEmits:we,defineExpose:be,defineProps:Ee,get devtools(){return Te},getCurrentInstance:xe,getTransitionRawChildren:ke,guardReactiveProps:Me,h:De,handleError:Pe,initCustomFormatter:Ve,inject:Ae,isMemoSame:Be,isRuntimeOnly:He,isVNode:Ne,mergeDefaults:Fe,mergeProps:Ue,nextTick:ze,onActivated:Ie,onBeforeMount:Ke,onBeforeUnmount:Oe,onBeforeUpdate:je,onDeactivated:_e,onErrorCaptured:qe,onMounted:We,onRenderTracked:Le,onRenderTriggered:Ge,onServerPrefetch:$e,onUnmounted:Je,onUpdated:Qe,openBlock:Xe,popScopeId:Ye,provide:Ze,pushScopeId:ea,queuePostFlushCb:aa,registerRuntimeCompiler:c,renderList:sa,renderSlot:ta,resolveComponent:oa,resolveDirective:ra,resolveDynamicComponent:na,resolveFilter:ia,resolveTransitionHooks:ca,setBlockTracking:la,setDevtoolsHook:da,setTransitionHooks:ma,ssrContextKey:ua,ssrUtils:fa,toHandlers:pa,transformVNodeArgs:Sa,useAttrs:ha,useSSRContext:va,useSlots:Ra,useTransitionState:Ca,version:ya,warn:ga,watch:wa,watchEffect:ba,watchPostEffect:Ea,watchSyncEffect:Ta,withAsyncContext:xa,withCtx:ka,withDefaults:Ma,withDirectives:Da,withMemo:Pa,withScopeId:Va,Transition:Aa,TransitionGroup:Ba,VueElement:Ha,createApp:Na,createSSRApp:Fa,defineCustomElement:Ua,defineSSRCustomElement:za,hydrate:Ia,initDirectivesForSSR:Ka,render:Oa,useCssModule:ja,useCssVars:_a,vModelCheckbox:qa,vModelDynamic:Wa,vModelRadio:La,vModelSelect:Ga,vModelText:$a,vShow:Ja,withKeys:Qa,withModifiers:Xa},Symbol.toStringTag,{value:"Module"})),as=u(Ya);export{as as r}; diff --git a/assets/vuedraggable.5218041c.js b/assets/vuedraggable.5218041c.js new file mode 100644 index 0000000..0636333 --- /dev/null +++ b/assets/vuedraggable.5218041c.js @@ -0,0 +1,4 @@ +import{c as jt,a as Ct}from"./lru-cache.9506e0ec.js";import{r as Lt}from"./vue.228877f7.js";import{r as Ft}from"./sortablejs.692999e9.js";var Pt={exports:{}};(function(Rt,Dt){(function(bt,o){Rt.exports=o(Lt,Ft)})(typeof self!="undefined"?self:jt,function(Tt,bt){return function(o){var g={};function t(r){if(g[r])return g[r].exports;var e=g[r]={i:r,l:!1,exports:{}};return o[r].call(e.exports,e,e.exports,t),e.l=!0,e.exports}return t.m=o,t.c=g,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(e&1&&(r=t(r)),e&8||e&4&&typeof r=="object"&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),e&2&&typeof r!="string")for(var a in r)t.d(n,a,function(i){return r[i]}.bind(null,a));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s="fb15")}({"00ee":function(o,g,t){var r=t("b622"),e=r("toStringTag"),n={};n[e]="z",o.exports=String(n)==="[object z]"},"0366":function(o,g,t){var r=t("1c0b");o.exports=function(e,n,a){if(r(e),n===void 0)return e;switch(a){case 0:return function(){return e.call(n)};case 1:return function(i){return e.call(n,i)};case 2:return function(i,f){return e.call(n,i,f)};case 3:return function(i,f,s){return e.call(n,i,f,s)}}return function(){return e.apply(n,arguments)}}},"057f":function(o,g,t){var r=t("fc6a"),e=t("241c").f,n={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i=function(f){try{return e(f)}catch{return a.slice()}};o.exports.f=function(s){return a&&n.call(s)=="[object Window]"?i(s):e(r(s))}},"06cf":function(o,g,t){var r=t("83ab"),e=t("d1e7"),n=t("5c6c"),a=t("fc6a"),i=t("c04e"),f=t("5135"),s=t("0cfb"),u=Object.getOwnPropertyDescriptor;g.f=r?u:function(c,m){if(c=a(c),m=i(m,!0),s)try{return u(c,m)}catch{}if(f(c,m))return n(!e.f.call(c,m),c[m])}},"0cfb":function(o,g,t){var r=t("83ab"),e=t("d039"),n=t("cc12");o.exports=!r&&!e(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,g,t){var r=t("23e7"),e=t("d58f").left,n=t("a640"),a=t("ae40"),i=n("reduce"),f=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!i||!f},{reduce:function(u){return e(this,u,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,g,t){var r=t("c6b6"),e=t("9263");o.exports=function(n,a){var i=n.exec;if(typeof i=="function"){var f=i.call(n,a);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(r(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return e.call(n,a)}},"159b":function(o,g,t){var r=t("da84"),e=t("fdbc"),n=t("17c2"),a=t("9112");for(var i in e){var f=r[i],s=f&&f.prototype;if(s&&s.forEach!==n)try{a(s,"forEach",n)}catch{s.forEach=n}}},"17c2":function(o,g,t){var r=t("b727").forEach,e=t("a640"),n=t("ae40"),a=e("forEach"),i=n("forEach");o.exports=!a||!i?function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,g,t){var r=t("d066");o.exports=r("document","documentElement")},"1c0b":function(o,g){o.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(o,g,t){var r=t("b622"),e=r("iterator"),n=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){n=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}o.exports=function(f,s){if(!s&&!n)return!1;var u=!1;try{var l={};l[e]=function(){return{next:function(){return{done:u=!0}}}},f(l)}catch{}return u}},"1d80":function(o,g){o.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(o,g,t){var r=t("d039"),e=t("b622"),n=t("2d00"),a=e("species");o.exports=function(i){return n>=51||!r(function(){var f=[],s=f.constructor={};return s[a]=function(){return{foo:1}},f[i](Boolean).foo!==1})}},"23cb":function(o,g,t){var r=t("a691"),e=Math.max,n=Math.min;o.exports=function(a,i){var f=r(a);return f<0?e(f+i,0):n(f,i)}},"23e7":function(o,g,t){var r=t("da84"),e=t("06cf").f,n=t("9112"),a=t("6eeb"),i=t("ce4e"),f=t("e893"),s=t("94ca");o.exports=function(u,l){var c=u.target,m=u.global,h=u.stat,O,E,I,p,L,F;if(m?E=r:h?E=r[c]||i(c,{}):E=(r[c]||{}).prototype,E)for(I in l){if(L=l[I],u.noTargetGet?(F=e(E,I),p=F&&F.value):p=E[I],O=s(m?I:c+(h?".":"#")+I,u.forced),!O&&p!==void 0){if(typeof L==typeof p)continue;f(L,p)}(u.sham||p&&p.sham)&&n(L,"sham",!0),a(E,I,L,u)}}},"241c":function(o,g,t){var r=t("ca84"),e=t("7839"),n=e.concat("length","prototype");g.f=Object.getOwnPropertyNames||function(i){return r(i,n)}},"25f0":function(o,g,t){var r=t("6eeb"),e=t("825a"),n=t("d039"),a=t("ad6d"),i="toString",f=RegExp.prototype,s=f[i],u=n(function(){return s.call({source:"a",flags:"b"})!="/a/b"}),l=s.name!=i;(u||l)&&r(RegExp.prototype,i,function(){var m=e(this),h=String(m.source),O=m.flags,E=String(O===void 0&&m instanceof RegExp&&!("flags"in f)?a.call(m):O);return"/"+h+"/"+E},{unsafe:!0})},"2ca0":function(o,g,t){var r=t("23e7"),e=t("06cf").f,n=t("50c4"),a=t("5a34"),i=t("1d80"),f=t("ab13"),s=t("c430"),u="".startsWith,l=Math.min,c=f("startsWith"),m=!s&&!c&&!!function(){var h=e(String.prototype,"startsWith");return h&&!h.writable}();r({target:"String",proto:!0,forced:!m&&!c},{startsWith:function(O){var E=String(i(this));a(O);var I=n(l(arguments.length>1?arguments[1]:void 0,E.length)),p=String(O);return u?u.call(E,p,I):E.slice(I,I+p.length)===p}})},"2d00":function(o,g,t){var r=t("da84"),e=t("342f"),n=r.process,a=n&&n.versions,i=a&&a.v8,f,s;i?(f=i.split("."),s=f[0]+f[1]):e&&(f=e.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=e.match(/Chrome\/(\d+)/),f&&(s=f[1]))),o.exports=s&&+s},"342f":function(o,g,t){var r=t("d066");o.exports=r("navigator","userAgent")||""},"35a1":function(o,g,t){var r=t("f5df"),e=t("3f8c"),n=t("b622"),a=n("iterator");o.exports=function(i){if(i!=null)return i[a]||i["@@iterator"]||e[r(i)]}},"37e8":function(o,g,t){var r=t("83ab"),e=t("9bf2"),n=t("825a"),a=t("df75");o.exports=r?Object.defineProperties:function(f,s){n(f);for(var u=a(s),l=u.length,c=0,m;l>c;)e.f(f,m=u[c++],s[m]);return f}},"3bbe":function(o,g,t){var r=t("861d");o.exports=function(e){if(!r(e)&&e!==null)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(o,g,t){var r=t("6547").charAt,e=t("69f3"),n=t("7dd0"),a="String Iterator",i=e.set,f=e.getterFor(a);n(String,"String",function(s){i(this,{type:a,string:String(s),index:0})},function(){var u=f(this),l=u.string,c=u.index,m;return c>=l.length?{value:void 0,done:!0}:(m=r(l,c),u.index+=m.length,{value:m,done:!1})})},"3f8c":function(o,g){o.exports={}},4160:function(o,g,t){var r=t("23e7"),e=t("17c2");r({target:"Array",proto:!0,forced:[].forEach!=e},{forEach:e})},"428f":function(o,g,t){var r=t("da84");o.exports=r},"44ad":function(o,g,t){var r=t("d039"),e=t("c6b6"),n="".split;o.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return e(a)=="String"?n.call(a,""):Object(a)}:Object},"44d2":function(o,g,t){var r=t("b622"),e=t("7c73"),n=t("9bf2"),a=r("unscopables"),i=Array.prototype;i[a]==null&&n.f(i,a,{configurable:!0,value:e(null)}),o.exports=function(f){i[a][f]=!0}},"44e7":function(o,g,t){var r=t("861d"),e=t("c6b6"),n=t("b622"),a=n("match");o.exports=function(i){var f;return r(i)&&((f=i[a])!==void 0?!!f:e(i)=="RegExp")}},4930:function(o,g,t){var r=t("d039");o.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(o,g,t){var r=t("fc6a"),e=t("50c4"),n=t("23cb"),a=function(i){return function(f,s,u){var l=r(f),c=e(l.length),m=n(u,c),h;if(i&&s!=s){for(;c>m;)if(h=l[m++],h!=h)return!0}else for(;c>m;m++)if((i||m in l)&&l[m]===s)return i||m||0;return!i&&-1}};o.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(o,g,t){var r=t("23e7"),e=t("b727").filter,n=t("1dde"),a=t("ae40"),i=n("filter"),f=a("filter");r({target:"Array",proto:!0,forced:!i||!f},{filter:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,g,t){var r=t("0366"),e=t("7b0b"),n=t("9bdd"),a=t("e95a"),i=t("50c4"),f=t("8418"),s=t("35a1");o.exports=function(l){var c=e(l),m=typeof this=="function"?this:Array,h=arguments.length,O=h>1?arguments[1]:void 0,E=O!==void 0,I=s(c),p=0,L,F,S,P,C,K;if(E&&(O=r(O,h>2?arguments[2]:void 0,2)),I!=null&&!(m==Array&&a(I)))for(P=I.call(c),C=P.next,F=new m;!(S=C.call(P)).done;p++)K=E?n(P,O,[S.value,p],!0):S.value,f(F,p,K);else for(L=i(c.length),F=new m(L);L>p;p++)K=E?O(c[p],p):c[p],f(F,p,K);return F.length=p,F}},"4fad":function(o,g,t){var r=t("23e7"),e=t("6f53").entries;r({target:"Object",stat:!0},{entries:function(a){return e(a)}})},"50c4":function(o,g,t){var r=t("a691"),e=Math.min;o.exports=function(n){return n>0?e(r(n),9007199254740991):0}},5135:function(o,g){var t={}.hasOwnProperty;o.exports=function(r,e){return t.call(r,e)}},5319:function(o,g,t){var r=t("d784"),e=t("825a"),n=t("7b0b"),a=t("50c4"),i=t("a691"),f=t("1d80"),s=t("8aa5"),u=t("14c3"),l=Math.max,c=Math.min,m=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,O=/\$([$&'`]|\d\d?)/g,E=function(I){return I===void 0?I:String(I)};r("replace",2,function(I,p,L,F){var S=F.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,P=F.REPLACE_KEEPS_$0,C=S?"$":"$0";return[function(b,G){var R=f(this),M=b==null?void 0:b[I];return M!==void 0?M.call(b,R,G):p.call(String(R),b,G)},function(T,b){if(!S&&P||typeof b=="string"&&b.indexOf(C)===-1){var G=L(p,T,this,b);if(G.done)return G.value}var R=e(T),M=String(this),W=typeof b=="function";W||(b=String(b));var z=R.global;if(z){var rt=R.unicode;R.lastIndex=0}for(var w=[];;){var Q=u(R,M);if(Q===null||(w.push(Q),!z))break;var k=String(Q[0]);k===""&&(R.lastIndex=s(M,a(R.lastIndex),rt))}for(var q="",Z=0,X=0;X=Z&&(q+=M.slice(Z,ot)+_,Z=ot+Y.length)}return q+M.slice(Z)}];function K(T,b,G,R,M,W){var z=G+T.length,rt=R.length,w=O;return M!==void 0&&(M=n(M),w=h),p.call(W,w,function(Q,k){var q;switch(k.charAt(0)){case"$":return"$";case"&":return T;case"`":return b.slice(0,G);case"'":return b.slice(z);case"<":q=M[k.slice(1,-1)];break;default:var Z=+k;if(Z===0)return Q;if(Z>rt){var X=m(Z/10);return X===0?Q:X<=rt?R[X-1]===void 0?k.charAt(1):R[X-1]+k.charAt(1):Q}q=R[Z-1]}return q===void 0?"":q})}})},5692:function(o,g,t){var r=t("c430"),e=t("c6cd");(o.exports=function(n,a){return e[n]||(e[n]=a!==void 0?a:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,g,t){var r=t("d066"),e=t("241c"),n=t("7418"),a=t("825a");o.exports=r("Reflect","ownKeys")||function(f){var s=e.f(a(f)),u=n.f;return u?s.concat(u(f)):s}},"5a34":function(o,g,t){var r=t("44e7");o.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(o,g){o.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}},"5db7":function(o,g,t){var r=t("23e7"),e=t("a2bf"),n=t("7b0b"),a=t("50c4"),i=t("1c0b"),f=t("65f0");r({target:"Array",proto:!0},{flatMap:function(u){var l=n(this),c=a(l.length),m;return i(u),m=f(l,0),m.length=e(m,l,l,c,0,1,u,arguments.length>1?arguments[1]:void 0),m}})},6547:function(o,g,t){var r=t("a691"),e=t("1d80"),n=function(a){return function(i,f){var s=String(e(i)),u=r(f),l=s.length,c,m;return u<0||u>=l?a?"":void 0:(c=s.charCodeAt(u),c<55296||c>56319||u+1===l||(m=s.charCodeAt(u+1))<56320||m>57343?a?s.charAt(u):c:a?s.slice(u,u+2):(c-55296<<10)+(m-56320)+65536)}};o.exports={codeAt:n(!1),charAt:n(!0)}},"65f0":function(o,g,t){var r=t("861d"),e=t("e8b5"),n=t("b622"),a=n("species");o.exports=function(i,f){var s;return e(i)&&(s=i.constructor,typeof s=="function"&&(s===Array||e(s.prototype))?s=void 0:r(s)&&(s=s[a],s===null&&(s=void 0))),new(s===void 0?Array:s)(f===0?0:f)}},"69f3":function(o,g,t){var r=t("7f9a"),e=t("da84"),n=t("861d"),a=t("9112"),i=t("5135"),f=t("f772"),s=t("d012"),u=e.WeakMap,l,c,m,h=function(S){return m(S)?c(S):l(S,{})},O=function(S){return function(P){var C;if(!n(P)||(C=c(P)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return C}};if(r){var E=new u,I=E.get,p=E.has,L=E.set;l=function(S,P){return L.call(E,S,P),P},c=function(S){return I.call(E,S)||{}},m=function(S){return p.call(E,S)}}else{var F=f("state");s[F]=!0,l=function(S,P){return a(S,F,P),P},c=function(S){return i(S,F)?S[F]:{}},m=function(S){return i(S,F)}}o.exports={set:l,get:c,has:m,enforce:h,getterFor:O}},"6eeb":function(o,g,t){var r=t("da84"),e=t("9112"),n=t("5135"),a=t("ce4e"),i=t("8925"),f=t("69f3"),s=f.get,u=f.enforce,l=String(String).split("String");(o.exports=function(c,m,h,O){var E=O?!!O.unsafe:!1,I=O?!!O.enumerable:!1,p=O?!!O.noTargetGet:!1;if(typeof h=="function"&&(typeof m=="string"&&!n(h,"name")&&e(h,"name",m),u(h).source=l.join(typeof m=="string"?m:"")),c===r){I?c[m]=h:a(m,h);return}else E?!p&&c[m]&&(I=!0):delete c[m];I?c[m]=h:e(c,m,h)})(Function.prototype,"toString",function(){return typeof this=="function"&&s(this).source||i(this)})},"6f53":function(o,g,t){var r=t("83ab"),e=t("df75"),n=t("fc6a"),a=t("d1e7").f,i=function(f){return function(s){for(var u=n(s),l=e(u),c=l.length,m=0,h=[],O;c>m;)O=l[m++],(!r||a.call(u,O))&&h.push(f?[O,u[O]]:u[O]);return h}};o.exports={entries:i(!0),values:i(!1)}},"73d9":function(o,g,t){var r=t("44d2");r("flatMap")},7418:function(o,g){g.f=Object.getOwnPropertySymbols},"746f":function(o,g,t){var r=t("428f"),e=t("5135"),n=t("e538"),a=t("9bf2").f;o.exports=function(i){var f=r.Symbol||(r.Symbol={});e(f,i)||a(f,i,{value:n.f(i)})}},7839:function(o,g){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,g,t){var r=t("1d80");o.exports=function(e){return Object(r(e))}},"7c73":function(o,g,t){var r=t("825a"),e=t("37e8"),n=t("7839"),a=t("d012"),i=t("1be4"),f=t("cc12"),s=t("f772"),u=">",l="<",c="prototype",m="script",h=s("IE_PROTO"),O=function(){},E=function(S){return l+m+u+S+l+"/"+m+u},I=function(S){S.write(E("")),S.close();var P=S.parentWindow.Object;return S=null,P},p=function(){var S=f("iframe"),P="java"+m+":",C;return S.style.display="none",i.appendChild(S),S.src=String(P),C=S.contentWindow.document,C.open(),C.write(E("document.F=Object")),C.close(),C.F},L,F=function(){try{L=document.domain&&new ActiveXObject("htmlfile")}catch{}F=L?I(L):p();for(var S=n.length;S--;)delete F[c][n[S]];return F()};a[h]=!0,o.exports=Object.create||function(P,C){var K;return P!==null?(O[c]=r(P),K=new O,O[c]=null,K[h]=P):K=F(),C===void 0?K:e(K,C)}},"7dd0":function(o,g,t){var r=t("23e7"),e=t("9ed3"),n=t("e163"),a=t("d2bb"),i=t("d44e"),f=t("9112"),s=t("6eeb"),u=t("b622"),l=t("c430"),c=t("3f8c"),m=t("ae93"),h=m.IteratorPrototype,O=m.BUGGY_SAFARI_ITERATORS,E=u("iterator"),I="keys",p="values",L="entries",F=function(){return this};o.exports=function(S,P,C,K,T,b,G){e(C,P,K);var R=function(X){if(X===T&&w)return w;if(!O&&X in z)return z[X];switch(X){case I:return function(){return new C(this,X)};case p:return function(){return new C(this,X)};case L:return function(){return new C(this,X)}}return function(){return new C(this)}},M=P+" Iterator",W=!1,z=S.prototype,rt=z[E]||z["@@iterator"]||T&&z[T],w=!O&&rt||R(T),Q=P=="Array"&&z.entries||rt,k,q,Z;if(Q&&(k=n(Q.call(new S)),h!==Object.prototype&&k.next&&(!l&&n(k)!==h&&(a?a(k,h):typeof k[E]!="function"&&f(k,E,F)),i(k,M,!0,!0),l&&(c[M]=F))),T==p&&rt&&rt.name!==p&&(W=!0,w=function(){return rt.call(this)}),(!l||G)&&z[E]!==w&&f(z,E,w),c[P]=w,T)if(q={values:R(p),keys:b?w:R(I),entries:R(L)},G)for(Z in q)(O||W||!(Z in z))&&s(z,Z,q[Z]);else r({target:P,proto:!0,forced:O||W},q);return q}},"7f9a":function(o,g,t){var r=t("da84"),e=t("8925"),n=r.WeakMap;o.exports=typeof n=="function"&&/native code/.test(e(n))},"825a":function(o,g,t){var r=t("861d");o.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(o,g,t){var r=t("d039");o.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,g,t){var r=t("c04e"),e=t("9bf2"),n=t("5c6c");o.exports=function(a,i,f){var s=r(i);s in a?e.f(a,s,n(0,f)):a[s]=f}},"861d":function(o,g){o.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(o,g,t){var r,e,n;(function(a,i){e=[],r=i,n=typeof r=="function"?r.apply(g,e):r,n!==void 0&&(o.exports=n)})(typeof self!="undefined"?self:this,function(){function a(){var i=Object.getOwnPropertyDescriptor(document,"currentScript");if(!i&&"currentScript"in document&&document.currentScript||i&&i.get!==a&&document.currentScript)return document.currentScript;try{throw new Error}catch(L){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,s=/@([^@]*):(\d+):(\d+)\s*$/ig,u=f.exec(L.stack)||s.exec(L.stack),l=u&&u[1]||!1,c=u&&u[2]||!1,m=document.location.href.replace(document.location.hash,""),h,O,E,I=document.getElementsByTagName("script");l===m&&(h=document.documentElement.outerHTML,O=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]* + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/manifest.webmanifest b/manifest.webmanifest new file mode 100644 index 0000000..b8222e5 --- /dev/null +++ b/manifest.webmanifest @@ -0,0 +1 @@ +{"name":"Chromatic Latice","short_name":"Chromatic Latice","start_url":"./","display":"standalone","background_color":"#ffffff","lang":"en","scope":"./","description":"A multiplayer game about light and hexagons","theme_color":"#2E3440","icons":[{"src":"pwa-192x192.png","sizes":"192x192","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]} diff --git a/pwa-192x192.png b/pwa-192x192.png new file mode 100644 index 0000000..00eaafd Binary files /dev/null and b/pwa-192x192.png differ diff --git a/pwa-512x512.png b/pwa-512x512.png new file mode 100644 index 0000000..1ad85e8 Binary files /dev/null and b/pwa-512x512.png differ diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..c2a49f4 --- /dev/null +++ b/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / diff --git a/sw.js b/sw.js new file mode 100644 index 0000000..edc06f1 --- /dev/null +++ b/sw.js @@ -0,0 +1 @@ +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,l)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let o={};const a=e=>i(e,r),u={module:{uri:r},exports:o,require:a};s[r]=Promise.all(n.map((e=>u[e]||a(e)))).then((e=>(l(...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:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"assets/@fontsource.f66d05e7.css",revision:null},{url:"assets/@socket.io.aec831e2.js",revision:null},{url:"assets/@vue.8948d9b0.js",revision:null},{url:"assets/engine.io-client.6ba5801d.js",revision:null},{url:"assets/engine.io-parser.730afdce.js",revision:null},{url:"assets/gameLoop.2be595af.js",revision:null},{url:"assets/index.44c96c8f.css",revision:null},{url:"assets/index.a46ad75f.js",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.334eb41f.js",revision:null},{url:"assets/socket.io-client.03bb8f3a.js",revision:null},{url:"assets/socket.io-parser.0ab387d5.js",revision:null},{url:"assets/sortablejs.692999e9.js",revision:null},{url:"assets/unique-names-generator.9178d3e3.js",revision:null},{url:"assets/vue-next-select.9e6f4164.css",revision:null},{url:"assets/vue-next-select.f2be13cc.js",revision:null},{url:"assets/vue-textarea-autosize.35804eaf.js",revision:null},{url:"assets/vue-toastification.4b5f8ac8.css",revision:null},{url:"assets/vue-toastification.97914fdb.js",revision:null},{url:"assets/vue.228877f7.js",revision:null},{url:"assets/vuedraggable.5218041c.js",revision:null},{url:"assets/workbox-window.8d14e8b7.js",revision:null},{url:"assets/yallist.fd762fe7.js",revision:null},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"favicon.svg",revision:"c8dd2748f1fedd25449164d7dda6aecb"},{url:"index.html",revision:"1d9779636f65aa331c9f02348d3d8ad4"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"852433ea6749ac07c966385bbc65fdcc"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); diff --git a/workbox-958fa2bd.js b/workbox-958fa2bd.js new file mode 100644 index 0000000..6ac7348 --- /dev/null +++ b/workbox-958fa2bd.js @@ -0,0 +1 @@ +define(["exports"],(function(t){"use strict";try{self["workbox:core:6.5.3"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.5.3"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=r&&r.handler;const c=t.method;if(!o&&this.i.has(c)&&(o=this.i.get(c)),!o)return;let a;try{a=o.handle({url:s,request:t,event:e,params:i})}catch(t){a=Promise.reject(t)}const h=r&&r.catchHandler;return a instanceof Promise&&(this.o||h)&&(a=a.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),a}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const o=r.match({url:t,sameOrigin:e,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&0===i.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let c;const a=()=>(c||(c=new o,c.addFetchListener(),c.addCacheListener()),c);function h(t,e,n){let o;if("string"==typeof t){const s=new URL(t,location.href);o=new i((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)o=new r(t,e,n);else if("function"==typeof t)o=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=t}return a().registerRoute(o),o}const u={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=t=>[u.prefix,t,u.suffix].filter((t=>t&&t.length>0)).join("-"),f=t=>t||l(u.precache),w=t=>t||l(u.runtime);function d(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:6.5.3"]&&_()}catch(t){}function p(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class y{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class g{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.h.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.h=t}}let R;async function m(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=e?e(r):r,c=function(){if(void 0===R){const t=new Response("");if("body"in t)try{new Response(t.body),R=!0}catch(t){R=!1}R=!1}return R}()?i.body:await i.blob();return new Response(c,o)}function v(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class q{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const U=new Set;try{self["workbox:strategies:6.5.3"]&&_()}catch(t){}function L(t){return"string"==typeof t?new Request(t):t}class b{constructor(t,e){this.u={},Object.assign(this,e),this.event=e.event,this.l=t,this.p=new q,this.g=[],this.R=[...t.plugins],this.m=new Map;for(const t of this.R)this.m.set(t,{});this.event.waitUntil(this.p.promise)}async fetch(t){const{event:e}=this;let n=L(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.l.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=L(t);let s;const{cacheName:n,matchOptions:i}=this.l,r=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=L(t);var i;await(i=0,new Promise((t=>setTimeout(t,i))));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=r.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const c=await this.v(e);if(!c)return!1;const{cacheName:a,matchOptions:h}=this.l,u=await self.caches.open(a),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=v(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,r);for(const e of o)if(i===v(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?c.clone():c)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of U)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:a,oldResponse:f,newResponse:c.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.u[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=L(await t({mode:e,request:n,event:this.event,params:this.params}));this.u[s]=n}return this.u[s]}hasCallback(t){for(const e of this.l.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.l.plugins)if("function"==typeof e[t]){const s=this.m.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.g.push(t),t}async doneWaiting(){let t;for(;t=this.g.shift();)await t}destroy(){this.p.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class C extends class{constructor(t={}){this.cacheName=w(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new b(this,{event:e,request:s,params:n}),r=this.q(i,s,e);return[r,this.U(r,i,s,e)]}async q(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this.L(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async U(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}{constructor(t={}){t.cacheName=f(t.cacheName),super(t),this._=!1!==t.fallbackToNetwork,this.plugins.push(C.copyRedirectedCacheableResponsesPlugin)}async L(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.C(t,e):await this.O(t,e))}async O(t,e){let n;const i=e.params||{};if(!this._)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,o=!r||r===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?r||s:void 0})),s&&o&&"no-cors"!==t.mode&&(this.N(),await e.cachePut(t,n.clone()))}return n}async C(t,e){this.N();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}N(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==C.copyRedirectedCacheableResponsesPlugin&&(n===C.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(C.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}C.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},C.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await m(t):t};class E{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.k=new Map,this.K=new Map,this.P=new Map,this.l=new C({cacheName:f(t),plugins:[...e,new g({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.l}precache(t){this.addToCacheList(t),this.T||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.T=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=p(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.k.has(i)&&this.k.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.k.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.P.has(t)&&this.P.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.P.set(t,n.integrity)}if(this.k.set(i,t),this.K.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return d(t,(async()=>{const e=new y;this.strategy.plugins.push(e);for(const[e,s]of this.k){const n=this.P.get(s),i=this.K.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return d(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.k.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.k}getCachedURLs(){return[...this.k.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.k.get(e.href)}getIntegrityForCacheKey(t){return this.P.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}let O;const x=()=>(O||(O=new E),O);class N extends i{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(r,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}t.NavigationRoute=class extends i{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super((t=>this.W(t)),t),this.j=e,this.M=s}W({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.M)if(t.test(s))return!1;return!!this.j.some((t=>t.test(s)))}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",(t=>{const e=f();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t));return await Promise.all(s.map((t=>self.caches.delete(t)))),s})(e).then((t=>{})))}))},t.createHandlerBoundToURL=function(t){return x().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){x().precache(t)}(t),function(t){const e=x();h(new N(e,t))}(e)},t.registerRoute=h}));