// ==UserScript== // @name Exynos // @version v7.1 // @author ItalianDude! // @match *://*.moomoo.io/* // @match https://www.mohmoh.eu/ // @grant none // @icon https://media.discordapp.net/attachments/1194836360830406727/1218270075857932378/ENJnXcy.png?ex=66070d6c&is=65f4986c&hm=0f825f9eadffac187cf495c8005d283e2d538e22f6c8d5afd011707291410601&=&format=webp&quality=lossless&width=437&height=437 // @description monad, also Metamorphosis is pro song // @namespace https://greasyfork.org/users/1426606 // @downloadURL https://update.greasyfork.icu/scripts/525658/Exynos.user.js // @updateURL https://update.greasyfork.icu/scripts/525658/Exynos.meta.js // ==/UserScript== let tmpCanvas = document.createElement("canvas"); let tmpContext = tmpCanvas.getContext('2d'); let trapSid = undefined; let hitCount = 0; let maxplacement = 5; let menuHidden; let advHeal = []; let healing = []; let mode = (arr) => arr.reduce((a, b, i, arr) => (arr.filter(v => v === a).length >= arr.filter(v => v === b).length ? a : b), null); let abs = true, chain = false, antibull = false; let ez = true, smooth = false, still = false, normal = false; let toggle = true, hold = false; let uzi = true, syrup = false, sclient = false, ae = false, fz = false; let antis = { reverse: false, onetick: false, } let txt = true; let Qt = document.getElementById("pingDisplay"); let antiTick; // kys ass code let turretEmp = []; let spikeTick = false; let waitSpikeTick = false; let antiinsta = "Calibrating.."; (function (a) { if (typeof exports == "object" && typeof module != "undefined") { module.exports = a(); } else if (typeof define == "function" && define.amd) { define([], a); } else { var b; b = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this; b.msgpack = a(); } })(function () { return function g(b, d, e) { function a(h, f) { if (!d[h]) { if (!b[h]) { var i = typeof require == "function" && require; if (!f && i) { return i(h, true); } if (c) { return c(h, true); } var j = new Error("Cannot find module '" + h + "'"); j.code = "MODULE_NOT_FOUND"; throw j; } var k = d[h] = { exports: {} }; b[h][0].call(k.exports, function (c) { var d = b[h][1][c]; return a(d ? d : c); }, k, k.exports, g, b, d, e); } return d[h].exports; } var c = typeof require == "function" && require; for (var h = 0; h < e.length; h++) { a(e[h]); } return a; }({ 1: [function (a, b, c) { c.encode = a("./encode").encode; c.decode = a("./decode").decode; c.Encoder = a("./encoder").Encoder; c.Decoder = a("./decoder").Decoder; c.createCodec = a("./ext").createCodec; c.codec = a("./codec").codec; }, { "./codec": 10, "./decode": 12, "./decoder": 13, "./encode": 15, "./encoder": 16, "./ext": 20 }], 2: [function (a, b, c) { (function (a) { function c(a) { return a && a.isBuffer && a; } b.exports = c(typeof a != "undefined" && a) || c(this.Buffer) || c(typeof window != "undefined" && window.Buffer) || this.Buffer; }).call(this, a("buffer").Buffer); }, { buffer: 29 }], 3: [function (a, b, c) { function d(a, b) { var c = this; var d = b || (b |= 0); for (var e = a.length, g = 0, h = 0; h < e;) { g = a.charCodeAt(h++); if (g < 128) { c[d++] = g; } else if (g < 2048) { c[d++] = g >>> 6 | 192; c[d++] = g & 63 | 128; } else if (g < 55296 || g > 57343) { c[d++] = g >>> 12 | 224; c[d++] = g >>> 6 & 63 | 128; c[d++] = g & 63 | 128; } else { g = (g - 55296 << 10 | a.charCodeAt(h++) - 56320) + 65536; c[d++] = g >>> 18 | 240; c[d++] = g >>> 12 & 63 | 128; c[d++] = g >>> 6 & 63 | 128; c[d++] = g & 63 | 128; } } return d - b; } function e(a, b, c) { var d = this; var g = b | 0; c ||= d.length; for (var h = "", j = 0; g < c;) { j = d[g++]; if (j < 128) { h += String.fromCharCode(j); } else { if ((j & 224) === 192) { j = (j & 31) << 6 | d[g++] & 63; } else if ((j & 240) === 224) { j = (j & 15) << 12 | (d[g++] & 63) << 6 | d[g++] & 63; } else if ((j & 248) === 240) { j = (j & 7) << 18 | (d[g++] & 63) << 12 | (d[g++] & 63) << 6 | d[g++] & 63; } if (j >= 65536) { j -= 65536; h += String.fromCharCode((j >>> 10) + 55296, (j & 1023) + 56320); } else { h += String.fromCharCode(j); } } } return h; } function f(a, b, c, d) { var f; c ||= 0; if (!d && d !== 0) { d = this.length; } b ||= 0; var g = d - c; if (a === this && c < b && b < d) { for (f = g - 1; f >= 0; f--) { a[f + b] = this[f + c]; } } else { for (f = 0; f < g; f++) { a[f + b] = this[f + c]; } } return g; } c.copy = f; c.toString = e; c.write = d; }, {}], 4: [function (a, b, c) { function d(a) { return new Array(a); } function f(a) { if (!g.isBuffer(a) && g.isView(a)) { a = g.Uint8Array.from(a); } else if (g.isArrayBuffer(a)) { a = new Uint8Array(a); } else { if (typeof a == "string") { return g.from.call(c, a); } if (typeof a == "number") { throw new TypeError("\"value\" argument must not be a number"); } } return Array.prototype.slice.call(a); } var g = a("./bufferish"); var c = b.exports = d(0); c.alloc = d; c.concat = g.concat; c.from = f; }, { "./bufferish": 8 }], 5: [function (a, b, c) { function d(a) { return new h(a); } function f(a) { if (!g.isBuffer(a) && g.isView(a)) { a = g.Uint8Array.from(a); } else if (g.isArrayBuffer(a)) { a = new Uint8Array(a); } else { if (typeof a == "string") { return g.from.call(c, a); } if (typeof a == "number") { throw new TypeError("\"value\" argument must not be a number"); } } if (h.from && h.from.length !== 1) { return h.from(a); } else { return new h(a); } } var g = a("./bufferish"); var h = g.global; var c = b.exports = g.hasBuffer ? d(0) : []; c.alloc = g.hasBuffer && h.alloc || d; c.concat = g.concat; c.from = f; }, { "./bufferish": 8 }], 6: [function (b, d, g) { function h(a, b, c, d) { var e = k.isBuffer(this); var g = k.isBuffer(a); if (e && g) { return this.copy(a, b, c, d); } if (m || e || g || !k.isView(this) || !k.isView(a)) { return f.copy.call(this, a, b, c, d); } var h = c || d != null ? j.call(this, c, d) : this; a.set(h, b); return h.length; } function j(a, b) { var c = this.slice || !m && this.subarray; if (c) { return c.call(this, a, b); } var d = k.alloc.call(this, b - a); h.call(this, d, 0, a, b); return d; } function e(a, b, c) { var d = !l && k.isBuffer(this) ? this.toString : f.toString; return d.apply(this, arguments); } function i(a) { function b() { var b = this[a] || f[a]; return b.apply(this, arguments); } return b; } var f = b("./buffer-lite"); g.copy = h; g.slice = j; g.toString = e; g.write = i("write"); var k = b("./bufferish"); var a = k.global; var l = k.hasBuffer && "TYPED_ARRAY_SUPPORT" in a; var m = l && !a.TYPED_ARRAY_SUPPORT; }, { "./buffer-lite": 3, "./bufferish": 8 }], 7: [function (a, b, c) { function d(a) { return new Uint8Array(a); } function f(a) { if (g.isView(a)) { var b = a.byteOffset; var d = a.byteLength; a = a.buffer; if (a.byteLength !== d) { if (a.slice) { a = a.slice(b, b + d); } else { a = new Uint8Array(a); if (a.byteLength !== d) { a = Array.prototype.slice.call(a, b, b + d); } } } } else { if (typeof a == "string") { return g.from.call(c, a); } if (typeof a == "number") { throw new TypeError("\"value\" argument must not be a number"); } } return new Uint8Array(a); } var g = a("./bufferish"); var c = b.exports = g.hasArrayBuffer ? d(0) : []; c.alloc = d; c.concat = g.concat; c.from = f; }, { "./bufferish": 8 }], 8: [function (j, k, m) { function e(a) { if (typeof a == "string") { return f.call(this, a); } else { return o(this).from(a); } } function q(a) { return o(this).alloc(a); } function i(c, d) { function e(a) { d += a.length; } function g(a) { i += b.copy.call(a, f, i); } if (!d) { d = 0; Array.prototype.forEach.call(c, e); } var h = this !== m && this || c[0]; var f = q.call(h, d); var i = 0; Array.prototype.forEach.call(c, g); return f; } function n(a) { return a instanceof ArrayBuffer || v(a); } function f(a) { var c = a.length * 3; var d = q.call(this, c); var f = b.write.call(d, a); if (c !== f) { d = b.slice.call(d, 0, f); } return d; } function o(a) { if (p(a)) { return u; } else if (d(a)) { return g; } else if (l(a)) { return t; } else if (s) { return u; } else if (h) { return g; } else { return t; } } function a() { return false; } function r(a, b) { a = "[object " + a + "]"; return function (c) { return c != null && {}.toString.call(b ? c[b] : c) === a; }; } var c = m.global = j("./buffer-global"); var s = m.hasBuffer = c && !!c.isBuffer; var h = m.hasArrayBuffer = typeof ArrayBuffer != "undefined"; var l = m.isArray = j("isarray"); m.isArrayBuffer = h ? n : a; var p = m.isBuffer = s ? c.isBuffer : a; var d = m.isView = h ? ArrayBuffer.isView || r("ArrayBuffer", "buffer") : a; m.alloc = q; m.concat = i; m.from = e; var t = m.Array = j("./bufferish-array"); var u = m.Buffer = j("./bufferish-buffer"); var g = m.Uint8Array = j("./bufferish-uint8array"); var b = m.prototype = j("./bufferish-proto"); var v = r("ArrayBuffer"); }, { "./buffer-global": 2, "./bufferish-array": 4, "./bufferish-buffer": 5, "./bufferish-proto": 6, "./bufferish-uint8array": 7, isarray: 34 }], 9: [function (b, d, g) { function e(a) { if (this instanceof e) { this.options = a; this.init(); return; } else { return new e(a); } } function h(a) { for (var b in a) { e.prototype[b] = i(e.prototype[b], a[b]); } } function i(a, b) { function c() { a.apply(this, arguments); return b.apply(this, arguments); } if (a && b) { return c; } else { return a || b; } } function j(a) { function b(a, b) { return b(a); } a = a.slice(); return function (c) { return a.reduce(b, c); }; } function f(b) { if (a(b)) { return j(b); } else { return b; } } function k(a) { return new e(a); } var a = b("isarray"); g.createCodec = k; g.install = h; g.filter = f; var l = b("./bufferish"); e.prototype.init = function () { var a = this.options; if (a && a.uint8array) { this.bufferish = l.Uint8Array; } return this; }; g.preset = k({ preset: true }); }, { "./bufferish": 8, isarray: 34 }], 10: [function (a, b, c) { a("./read-core"); a("./write-core"); c.codec = { preset: a("./codec-base").preset }; }, { "./codec-base": 9, "./read-core": 22, "./write-core": 25 }], 11: [function (a, b, c) { function d(a) { if (!(this instanceof d)) { return new d(a); } if (a && (this.options = a, a.codec)) { var b = this.codec = a.codec; if (b.bufferish) { this.bufferish = b.bufferish; } } } c.DecodeBuffer = d; var e = a("./read-core").preset; var f = a("./flex-buffer").FlexDecoder; f.mixin(d.prototype); d.prototype.codec = e; d.prototype.fetch = function () { return this.codec.decode(this); }; }, { "./flex-buffer": 21, "./read-core": 22 }], 12: [function (a, b, c) { function d(a, b) { var c = new f(b); c.write(a); return c.read(); } c.decode = d; var f = a("./decode-buffer").DecodeBuffer; }, { "./decode-buffer": 11 }], 13: [function (a, b, c) { function d(a) { if (this instanceof d) { f.call(this, a); return; } else { return new d(a); } } c.Decoder = d; var e = a("event-lite"); var f = a("./decode-buffer").DecodeBuffer; d.prototype = new f(); e.mixin(d.prototype); d.prototype.decode = function (a) { if (arguments.length) { this.write(a); } this.flush(); }; d.prototype.push = function (a) { this.emit("data", a); }; d.prototype.end = function (a) { this.decode(a); this.emit("end"); }; }, { "./decode-buffer": 11, "event-lite": 31 }], 14: [function (a, b, c) { function d(a) { if (!(this instanceof d)) { return new d(a); } if (a && (this.options = a, a.codec)) { var b = this.codec = a.codec; if (b.bufferish) { this.bufferish = b.bufferish; } } } c.EncodeBuffer = d; var e = a("./write-core").preset; var f = a("./flex-buffer").FlexEncoder; f.mixin(d.prototype); d.prototype.codec = e; d.prototype.write = function (a) { this.codec.encode(this, a); }; }, { "./flex-buffer": 21, "./write-core": 25 }], 15: [function (a, b, c) { function d(a, b) { var c = new f(b); c.write(a); return c.read(); } c.encode = d; var f = a("./encode-buffer").EncodeBuffer; }, { "./encode-buffer": 14 }], 16: [function (a, b, c) { function d(a) { if (this instanceof d) { f.call(this, a); return; } else { return new d(a); } } c.Encoder = d; var e = a("event-lite"); var f = a("./encode-buffer").EncodeBuffer; d.prototype = new f(); e.mixin(d.prototype); d.prototype.encode = function (a) { this.write(a); this.emit("data", this.read()); }; d.prototype.end = function (a) { if (arguments.length) { this.encode(a); } this.flush(); this.emit("end"); }; }, { "./encode-buffer": 14, "event-lite": 31 }], 17: [function (a, b, c) { function d(a, b) { if (this instanceof d) { this.buffer = e.from(a); this.type = b; return; } else { return new d(a, b); } } c.ExtBuffer = d; var e = a("./bufferish"); }, { "./bufferish": 8 }], 18: [function (b, d, g) { function e(a) { a.addExtPacker(14, Error, [f, j]); a.addExtPacker(1, EvalError, [f, j]); a.addExtPacker(2, RangeError, [f, j]); a.addExtPacker(3, ReferenceError, [f, j]); a.addExtPacker(4, SyntaxError, [f, j]); a.addExtPacker(5, TypeError, [f, j]); a.addExtPacker(6, URIError, [f, j]); a.addExtPacker(10, RegExp, [k, j]); a.addExtPacker(11, Boolean, [i, j]); a.addExtPacker(12, String, [i, j]); a.addExtPacker(13, Date, [Number, j]); a.addExtPacker(15, Number, [i, j]); if (typeof Uint8Array != "undefined") { a.addExtPacker(17, Int8Array, o); a.addExtPacker(18, Uint8Array, o); a.addExtPacker(19, Int16Array, o); a.addExtPacker(20, Uint16Array, o); a.addExtPacker(21, Int32Array, o); a.addExtPacker(22, Uint32Array, o); a.addExtPacker(23, Float32Array, o); if (typeof Float64Array != "undefined") { a.addExtPacker(24, Float64Array, o); } if (typeof Uint8ClampedArray != "undefined") { a.addExtPacker(25, Uint8ClampedArray, o); } a.addExtPacker(26, ArrayBuffer, o); a.addExtPacker(29, DataView, o); } if (m.hasBuffer) { a.addExtPacker(27, n, m.from); } } function j(a) { l ||= b("./encode").encode; return l(a); } function i(a) { return a.valueOf(); } function k(a) { a = RegExp.prototype.toString.call(a).split("/"); a.shift(); var b = [a.pop()]; b.unshift(a.join("/")); return b; } function f(a) { var b = {}; for (var d in c) { b[d] = a[d]; } return b; } g.setExtPackers = e; var l; var m = b("./bufferish"); var n = m.global; var o = m.Uint8Array.from; var c = { name: 1, message: 1, stack: 1, columnNumber: 1, fileName: 1, lineNumber: 1 }; }, { "./bufferish": 8, "./encode": 15 }], 19: [function (b, d, g) { function e(a) { a.addExtUnpacker(14, [j, k(Error)]); a.addExtUnpacker(1, [j, k(EvalError)]); a.addExtUnpacker(2, [j, k(RangeError)]); a.addExtUnpacker(3, [j, k(ReferenceError)]); a.addExtUnpacker(4, [j, k(SyntaxError)]); a.addExtUnpacker(5, [j, k(TypeError)]); a.addExtUnpacker(6, [j, k(URIError)]); a.addExtUnpacker(10, [j, i]); a.addExtUnpacker(11, [j, f(Boolean)]); a.addExtUnpacker(12, [j, f(String)]); a.addExtUnpacker(13, [j, f(Date)]); a.addExtUnpacker(15, [j, f(Number)]); if (typeof Uint8Array != "undefined") { a.addExtUnpacker(17, f(Int8Array)); a.addExtUnpacker(18, f(Uint8Array)); a.addExtUnpacker(19, [l, f(Int16Array)]); a.addExtUnpacker(20, [l, f(Uint16Array)]); a.addExtUnpacker(21, [l, f(Int32Array)]); a.addExtUnpacker(22, [l, f(Uint32Array)]); a.addExtUnpacker(23, [l, f(Float32Array)]); if (typeof Float64Array != "undefined") { a.addExtUnpacker(24, [l, f(Float64Array)]); } if (typeof Uint8ClampedArray != "undefined") { a.addExtUnpacker(25, f(Uint8ClampedArray)); } a.addExtUnpacker(26, l); a.addExtUnpacker(29, [l, f(DataView)]); } if (m.hasBuffer) { a.addExtUnpacker(27, f(c)); } } function j(c) { a ||= b("./decode").decode; return a(c); } function i(a) { return RegExp.apply(null, a); } function k(a) { return function (b) { var c = new a(); for (var d in o) { c[d] = b[d]; } return c; }; } function f(a) { return function (b) { return new a(b); }; } function l(a) { return new Uint8Array(a).buffer; } g.setExtUnpackers = e; var a; var m = b("./bufferish"); var c = m.global; var o = { name: 1, message: 1, stack: 1, columnNumber: 1, fileName: 1, lineNumber: 1 }; }, { "./bufferish": 8, "./decode": 12 }], 20: [function (a, b, c) { a("./read-core"); a("./write-core"); c.createCodec = a("./codec-base").createCodec; }, { "./codec-base": 9, "./read-core": 22, "./write-core": 25 }], 21: [function (b, g, j) { function e() { if (!(this instanceof e)) { return new e(); } } function k() { if (!(this instanceof k)) { return new k(); } } function i() { function b(a) { var b = this.offset ? l.prototype.slice.call(this.buffer, this.offset) : this.buffer; this.buffer = b ? a ? this.bufferish.concat([b, a]) : b : a; this.offset = 0; } function d() { while (this.offset < this.buffer.length) { var a; var b = this.offset; try { a = this.fetch(); } catch (a) { if (a && a.message != q) { throw a; } this.offset = b; break; } this.push(a); } } function f(a) { var b = this.offset; var c = b + a; if (c > this.buffer.length) { throw new Error(q); } this.offset = c; return b; } return { bufferish: l, write: b, fetch: n, flush: d, push: o, pull: c, read: a, reserve: f, offset: 0 }; } function m() { function b() { var a = this.start; if (a < this.offset) { var b = this.start = this.offset; return l.prototype.slice.call(this.buffer, a, b); } } function c() { while (this.start < this.offset) { var a = this.fetch(); if (a) { this.push(a); } } } function g() { var a = this.buffers ||= []; var b = a.length > 1 ? this.bufferish.concat(a) : a[0]; a.length = 0; return b; } function e(a) { var b = a | 0; if (this.buffer) { var c = this.buffer.length; var d = this.offset | 0; var e = d + b; if (e < c) { this.offset = e; return d; } this.flush(); a = Math.max(a, Math.min(c * 2, this.maxBufferSize)); } a = Math.max(a, this.minBufferSize); this.buffer = this.bufferish.alloc(a); this.start = 0; this.offset = b; return 0; } function h(a) { var b = a.length; if (b > this.minBufferSize) { this.flush(); this.push(a); } else { var c = this.reserve(b); l.prototype.copy.call(a, this.buffer, c); } } return { bufferish: l, write: f, fetch: b, flush: c, push: o, pull: g, read: a, reserve: e, send: h, maxBufferSize: d, minBufferSize: p, offset: 0, start: 0 }; } function f() { throw new Error("method not implemented: write()"); } function n() { throw new Error("method not implemented: fetch()"); } function a() { var a = this.buffers && this.buffers.length; if (a) { this.flush(); return this.pull(); } else { return this.fetch(); } } function o(a) { var b = this.buffers ||= []; b.push(a); } function c() { var a = this.buffers ||= []; return a.shift(); } function h(a) { function b(b) { for (var c in a) { b[c] = a[c]; } return b; } return b; } j.FlexDecoder = e; j.FlexEncoder = k; var l = b("./bufferish"); var p = 2048; var d = 65536; var q = "BUFFER_SHORTAGE"; e.mixin = h(i()); e.mixin(e.prototype); k.mixin = h(m()); k.mixin(k.prototype); }, { "./bufferish": 8 }], 22: [function (b, d, g) { function e(b) { function c(b) { var c = a(b); var e = d[c]; if (!e) { throw new Error("Invalid type: " + (c ? "0x" + c.toString(16) : c)); } return e(b); } var d = m.getReadToken(b); return c; } function j() { var a = this.options; this.decode = e(a); if (a && a.preset) { l.setExtUnpackers(this); } return this; } function i(a, b) { var d = this.extUnpackers ||= []; d[a] = c.filter(b); } function k(a) { function b(b) { return new f(b, a); } var c = this.extUnpackers ||= []; return c[a] || b; } var f = b("./ext-buffer").ExtBuffer; var l = b("./ext-unpacker"); var a = b("./read-format").readUint8; var m = b("./read-token"); var c = b("./codec-base"); c.install({ addExtUnpacker: i, getExtUnpacker: k, init: j }); g.preset = j.call(c.preset); }, { "./codec-base": 9, "./ext-buffer": 17, "./ext-unpacker": 19, "./read-format": 23, "./read-token": 24 }], 23: [function (j, q, r) { function e(j) { var k = D.hasArrayBuffer && j && j.binarraybuffer; var q = j && j.int64; var e = E && j && j.usemap; var n = { map: e ? i : z, array: o, str: f, bin: k ? a : u, ext: s, uint8: c, uint16: l, uint32: d, uint64: v(8, q ? w : g), int8: h, int16: p, int32: y, int64: v(8, q ? C : b), float32: v(4, A), float64: v(8, m) }; return n; } function z(a, b) { var c; var d = {}; var g = new Array(b); var h = new Array(b); var i = a.codec.decode; for (c = 0; c < b; c++) { g[c] = i(a); h[c] = i(a); } for (c = 0; c < b; c++) { d[g[c]] = h[c]; } return d; } function i(a, b) { var c; var d = new Map(); var g = new Array(b); var h = new Array(b); var i = a.codec.decode; for (c = 0; c < b; c++) { g[c] = i(a); h[c] = i(a); } for (c = 0; c < b; c++) { d.set(g[c], h[c]); } return d; } function o(a, b) { var c = new Array(b); var d = a.codec.decode; for (var e = 0; e < b; e++) { c[e] = d(a); } return c; } function f(a, b) { var c = a.reserve(b); var d = c + b; return k.toString.call(a.buffer, "utf-8", c, d); } function u(a, b) { var c = a.reserve(b); var d = c + b; var e = k.slice.call(a.buffer, c, d); return D.from(e); } function a(a, b) { var c = a.reserve(b); var d = c + b; var e = k.slice.call(a.buffer, c, d); return D.Uint8Array.from(e).buffer; } function s(a, b) { var c = a.reserve(b + 1); var d = a.buffer[c++]; var g = c + b; var h = a.codec.getExtUnpacker(d); if (!h) { throw new Error("Invalid ext type: " + (d ? "0x" + d.toString(16) : d)); } var i = k.slice.call(a.buffer, c, g); return h(i); } function c(a) { var b = a.reserve(1); return a.buffer[b]; } function h(a) { var b = a.reserve(1); var c = a.buffer[b]; if (c & 128) { return c - 256; } else { return c; } } function l(a) { var b = a.reserve(2); var c = a.buffer; return c[b++] << 8 | c[b]; } function p(a) { var b = a.reserve(2); var c = a.buffer; var d = c[b++] << 8 | c[b]; if (d & 32768) { return d - 65536; } else { return d; } } function d(a) { var b = a.reserve(4); var c = a.buffer; return c[b++] * 16777216 + (c[b++] << 16) + (c[b++] << 8) + c[b]; } function y(a) { var b = a.reserve(4); var c = a.buffer; return c[b++] << 24 | c[b++] << 16 | c[b++] << 8 | c[b]; } function v(a, b) { return function (c) { var d = c.reserve(a); return b.call(c.buffer, d, F); }; } function g(a) { return new x(this, a).toNumber(); } function b(a) { return new B(this, a).toNumber(); } function w(a) { return new x(this, a); } function C(a) { return new B(this, a); } function A(a) { return n.read(this, a, false, 23, 4); } function m(a) { return n.read(this, a, false, 52, 8); } var n = j("ieee754"); var t = j("int64-buffer"); var x = t.Uint64BE; var B = t.Int64BE; r.getReadFormat = e; r.readUint8 = c; var D = j("./bufferish"); var k = j("./bufferish-proto"); var E = typeof Map != "undefined"; var F = true; }, { "./bufferish": 8, "./bufferish-proto": 6, ieee754: 32, "int64-buffer": 33 }], 24: [function (b, c, d) { function e(b) { var c = a.getReadFormat(b); if (b && b.useraw) { return h(c); } else { return g(c); } } function g(a) { var b; var c = new Array(256); for (b = 0; b <= 127; b++) { c[b] = i(b); } for (b = 128; b <= 143; b++) { c[b] = j(b - 128, a.map); } for (b = 144; b <= 159; b++) { c[b] = j(b - 144, a.array); } for (b = 160; b <= 191; b++) { c[b] = j(b - 160, a.str); } c[192] = i(null); c[193] = null; c[194] = i(false); c[195] = i(true); c[196] = f(a.uint8, a.bin); c[197] = f(a.uint16, a.bin); c[198] = f(a.uint32, a.bin); c[199] = f(a.uint8, a.ext); c[200] = f(a.uint16, a.ext); c[201] = f(a.uint32, a.ext); c[202] = a.float32; c[203] = a.float64; c[204] = a.uint8; c[205] = a.uint16; c[206] = a.uint32; c[207] = a.uint64; c[208] = a.int8; c[209] = a.int16; c[210] = a.int32; c[211] = a.int64; c[212] = j(1, a.ext); c[213] = j(2, a.ext); c[214] = j(4, a.ext); c[215] = j(8, a.ext); c[216] = j(16, a.ext); c[217] = f(a.uint8, a.str); c[218] = f(a.uint16, a.str); c[219] = f(a.uint32, a.str); c[220] = f(a.uint16, a.array); c[221] = f(a.uint32, a.array); c[222] = f(a.uint16, a.map); c[223] = f(a.uint32, a.map); b = 224; for (; b <= 255; b++) { c[b] = i(b - 256); } return c; } function h(a) { var b; var c = g(a).slice(); c[217] = c[196]; c[218] = c[197]; c[219] = c[198]; b = 160; for (; b <= 191; b++) { c[b] = j(b - 160, a.bin); } return c; } function i(a) { return function () { return a; }; } function f(a, b) { return function (c) { var d = a(c); return b(c, d); }; } function j(a, b) { return function (c) { return b(c, a); }; } var a = b("./read-format"); d.getReadToken = e; }, { "./read-format": 23 }], 25: [function (b, d, g) { function e(b) { function c(a, b) { var c = d[typeof b]; if (!c) { throw new Error("Unsupported type \"" + typeof b + "\": " + b); } c(a, b); } var d = a.getWriteType(b); return c; } function h() { var a = this.options; this.encode = e(a); if (a && a.preset) { k.setExtPackers(this); } return this; } function i(a, b, c) { function d(b) { if (c) { b = c(b); } return new f(b, a); } c = l.filter(c); var g = b.name; if (g && g !== "Object") { var h = this.extPackers ||= {}; h[g] = d; } else { var i = this.extEncoderList ||= []; i.unshift([b, d]); } } function j(a) { var b = this.extPackers ||= {}; var c = a.constructor; var d = c && c.name && b[c.name]; if (d) { return d; } var e = this.extEncoderList ||= []; for (var g = e.length, h = 0; h < g; h++) { var i = e[h]; if (c === i[0]) { return i[1]; } } } var f = b("./ext-buffer").ExtBuffer; var k = b("./ext-packer"); var a = b("./write-type"); var l = b("./codec-base"); l.install({ addExtPacker: i, getExtPacker: j, init: h }); g.preset = h.call(l.preset); }, { "./codec-base": 9, "./ext-buffer": 17, "./ext-packer": 18, "./write-type": 27 }], 26: [function (j, k, q) { function e(a) { if (a && a.uint8array) { return n(); } else if (z || v.hasBuffer && a && a.safe) { return o(); } else { return i(); } } function n() { var a = i(); a[202] = s(202, 4, l); a[203] = s(203, 8, p); return a; } function i() { var d = b.slice(); d[196] = f(196); d[197] = r(197); d[198] = a(198); d[199] = f(199); d[200] = r(200); d[201] = a(201); d[202] = s(202, 4, m.writeFloatBE || l, true); d[203] = s(203, 8, m.writeDoubleBE || p, true); d[204] = f(204); d[205] = r(205); d[206] = a(206); d[207] = s(207, 8, c); d[208] = f(208); d[209] = r(209); d[210] = a(210); d[211] = s(211, 8, h); d[217] = f(217); d[218] = r(218); d[219] = a(219); d[220] = r(220); d[221] = a(221); d[222] = r(222); d[223] = a(223); return d; } function o() { var a = b.slice(); a[196] = s(196, 1, w.prototype.writeUInt8); a[197] = s(197, 2, w.prototype.writeUInt16BE); a[198] = s(198, 4, w.prototype.writeUInt32BE); a[199] = s(199, 1, w.prototype.writeUInt8); a[200] = s(200, 2, w.prototype.writeUInt16BE); a[201] = s(201, 4, w.prototype.writeUInt32BE); a[202] = s(202, 4, w.prototype.writeFloatBE); a[203] = s(203, 8, w.prototype.writeDoubleBE); a[204] = s(204, 1, w.prototype.writeUInt8); a[205] = s(205, 2, w.prototype.writeUInt16BE); a[206] = s(206, 4, w.prototype.writeUInt32BE); a[207] = s(207, 8, c); a[208] = s(208, 1, w.prototype.writeInt8); a[209] = s(209, 2, w.prototype.writeInt16BE); a[210] = s(210, 4, w.prototype.writeInt32BE); a[211] = s(211, 8, h); a[217] = s(217, 1, w.prototype.writeUInt8); a[218] = s(218, 2, w.prototype.writeUInt16BE); a[219] = s(219, 4, w.prototype.writeUInt32BE); a[220] = s(220, 2, w.prototype.writeUInt16BE); a[221] = s(221, 4, w.prototype.writeUInt32BE); a[222] = s(222, 2, w.prototype.writeUInt16BE); a[223] = s(223, 4, w.prototype.writeUInt32BE); return a; } function f(a) { return function (b, c) { var d = b.reserve(2); var e = b.buffer; e[d++] = a; e[d] = c; }; } function r(a) { return function (b, c) { var d = b.reserve(3); var e = b.buffer; e[d++] = a; e[d++] = c >>> 8; e[d] = c; }; } function a(a) { return function (b, c) { var d = b.reserve(5); var e = b.buffer; e[d++] = a; e[d++] = c >>> 24; e[d++] = c >>> 16; e[d++] = c >>> 8; e[d] = c; }; } function s(a, b, c, d) { return function (e, g) { var h = e.reserve(b + 1); e.buffer[h++] = a; c.call(e.buffer, g, h, d); }; } function c(a, b) { new u(this, b, a); } function h(a, b) { new g(this, b, a); } function l(a, b) { d.write(this, a, b, false, 23, 4); } function p(a, b) { d.write(this, a, b, false, 52, 8); } var d = j("ieee754"); var t = j("int64-buffer"); var u = t.Uint64BE; var g = t.Int64BE; var b = j("./write-uint8").uint8; var v = j("./bufferish"); var w = v.global; var y = v.hasBuffer && "TYPED_ARRAY_SUPPORT" in w; var z = y && !w.TYPED_ARRAY_SUPPORT; var m = v.hasBuffer && w.prototype || {}; q.getWriteToken = e; }, { "./bufferish": 8, "./write-uint8": 28, ieee754: 32, "int64-buffer": 33 }], 27: [function (b, g, j) { function e(i) { function j(a, b) { var c = b ? 195 : 194; F[c](a, b); } function r(a, b) { var c; var d = b | 0; if (b !== d) { c = 203; F[c](a, b); return; } else { c = d >= -32 && d <= 127 ? d & 255 : d >= 0 ? d <= 255 ? 204 : d <= 65535 ? 205 : 206 : d >= -128 ? 208 : d >= -32768 ? 209 : 210; F[c](a, d); return; } } function e(a, b) { var c = 207; F[c](a, b.toArray()); } function n(a, b) { var c = 211; F[c](a, b.toArray()); } function o(a) { if (a < 32) { return 1; } else if (a <= 255) { return 2; } else if (a <= 65535) { return 3; } else { return 5; } } function s(a) { if (a < 32) { return 1; } else if (a <= 65535) { return 3; } else { return 5; } } function g(b) { function a(d, g) { var e = g.length; var j = 5 + e * 3; d.offset = d.reserve(j); var i = d.buffer; var k = b(e); var f = d.offset + k; e = m.write.call(i, g, f); var o = b(e); if (k !== o) { var a = f + o - k; var c = f + e; m.copy.call(i, i, a, f, c); } var h = o === 1 ? 160 + e : o <= 3 ? 215 + o : 219; F[h](d, e); d.offset += e; } return a; } function b(a, b) { if (b === null) { return v(a, b); } if (J(b)) { return I(a, b); } if (k(b)) { return w(a, b); } if (q.isUint64BE(b)) { return e(a, b); } if (f.isInt64BE(b)) { return n(a, b); } var c = a.codec.getExtPacker(b); if (c) { b = c(b); } if (b instanceof h) { return z(a, b); } else { C(a, b); return; } } function t(a, c) { if (J(c)) { return E(a, c); } else { b(a, c); return; } } function v(a, b) { var c = 192; F[c](a, b); } function w(a, b) { var c = b.length; var d = c < 16 ? 144 + c : c <= 65535 ? 220 : 221; F[d](a, c); var e = a.codec.encode; for (var f = 0; f < c; f++) { e(a, b[f]); } } function y(a, b) { var c = b.length; var d = c < 255 ? 196 : c <= 65535 ? 197 : 198; F[d](a, c); a.send(b); } function x(a, b) { y(a, new Uint8Array(b)); } function z(a, b) { var f = b.buffer; var e = f.length; var g = d[e] || (e < 255 ? 199 : e <= 65535 ? 200 : 201); F[g](a, e); c[b.type](a); a.send(f); } function A(a, b) { var c = Object.keys(b); var d = c.length; var e = d < 16 ? 128 + d : d <= 65535 ? 222 : 223; F[e](a, d); var f = a.codec.encode; c.forEach(function (c) { f(a, c); f(a, b[c]); }); } function B(a, b) { if (!(b instanceof Map)) { return A(a, b); } var c = b.size; var d = c < 16 ? 128 + c : c <= 65535 ? 222 : 223; F[d](a, c); var f = a.codec.encode; b.forEach(function (b, c, d) { f(a, c); f(a, b); }); } function E(a, b) { var c = b.length; var d = c < 32 ? 160 + c : c <= 65535 ? 218 : 219; F[d](a, c); a.send(b); } var F = a.getWriteToken(i); var G = i && i.useraw; var H = l && i && i.binarraybuffer; var J = H ? u.isArrayBuffer : u.isBuffer; var I = H ? x : y; var K = p && i && i.usemap; var C = K ? B : A; var D = { boolean: j, function: v, number: r, object: G ? t : b, string: g(G ? s : o), symbol: v, undefined: v }; return D; } var k = b("isarray"); var i = b("int64-buffer"); var q = i.Uint64BE; var f = i.Int64BE; var u = b("./bufferish"); var m = b("./bufferish-proto"); var a = b("./write-token"); var c = b("./write-uint8").uint8; var h = b("./ext-buffer").ExtBuffer; var l = typeof Uint8Array != "undefined"; var p = typeof Map != "undefined"; var d = []; d[1] = 212; d[2] = 213; d[4] = 214; d[8] = 215; d[16] = 216; j.getWriteType = e; }, { "./bufferish": 8, "./bufferish-proto": 6, "./ext-buffer": 17, "./write-token": 26, "./write-uint8": 28, "int64-buffer": 33, isarray: 34 }], 28: [function (a, b, c) { function d(a) { return function (b) { var c = b.reserve(1); b.buffer[c] = a; }; } var e = c.uint8 = new Array(256); for (var f = 0; f <= 255; f++) { e[f] = d(f); } }, {}], 29: [function (aa, a, ba) { (function (e) { "use strict"; function r() { try { var a = new Uint8Array(1); a.__proto__ = { __proto__: Uint8Array.prototype, foo: function () { return 42; } }; return a.foo() === 42 && typeof a.subarray == "function" && a.subarray(1, 1).byteLength === 0; } catch (a) { return false; } } function n() { if (da.TYPED_ARRAY_SUPPORT) { return 2147483647; } else { return 1073741823; } } function ca(a, b) { if (n() < b) { throw new RangeError("Invalid typed array length"); } if (da.TYPED_ARRAY_SUPPORT) { a = new Uint8Array(b); a.__proto__ = da.prototype; } else { if (a === null) { a = new da(b); } a.length = b; } return a; } function da(b, c, d) { if (!da.TYPED_ARRAY_SUPPORT && !(this instanceof da)) { return new da(b, c, d); } if (typeof b == "number") { if (typeof c == "string") { throw new Error("If encoding is specified then the first argument must be a string"); } return a(this, b); } return ea(this, b, c, d); } function ea(a, b, c, d) { if (typeof b == "number") { throw new TypeError("\"value\" argument must not be a number"); } if (typeof ArrayBuffer != "undefined" && b instanceof ArrayBuffer) { return h(a, b, c, d); } else if (typeof b == "string") { return o(a, b, c); } else { return l(a, b); } } function f(a) { if (typeof a != "number") { throw new TypeError("\"size\" argument must be a number"); } if (a < 0) { throw new RangeError("\"size\" argument must not be negative"); } } function i(a, b, c, d) { f(b); if (b <= 0) { return ca(a, b); } else if (c !== undefined) { if (typeof d == "string") { return ca(a, b).fill(c, d); } else { return ca(a, b).fill(c); } } else { return ca(a, b); } } function a(a, b) { f(b); a = ca(a, b < 0 ? 0 : p(b) | 0); if (!da.TYPED_ARRAY_SUPPORT) { for (var c = 0; c < b; ++c) { a[c] = 0; } } return a; } function o(a, b, c) { if (typeof c != "string" || c === "") { c = "utf8"; } if (!da.isEncoding(c)) { throw new TypeError("\"encoding\" must be a valid string encoding"); } var d = s(b, c) | 0; a = ca(a, d); var f = a.write(b, c); if (f !== d) { a = a.slice(0, f); } return a; } function c(a, b) { var c = b.length < 0 ? 0 : p(b.length) | 0; a = ca(a, c); for (var d = 0; d < c; d += 1) { a[d] = b[d] & 255; } return a; } function h(a, b, d, e) { b.byteLength; if (d < 0 || b.byteLength < d) { throw new RangeError("'offset' is out of bounds"); } if (b.byteLength < d + (e || 0)) { throw new RangeError("'length' is out of bounds"); } b = d === undefined && e === undefined ? new Uint8Array(b) : e === undefined ? new Uint8Array(b, d) : new Uint8Array(b, d, e); if (da.TYPED_ARRAY_SUPPORT) { a = b; a.__proto__ = da.prototype; } else { a = c(a, b); } return a; } function l(a, b) { if (da.isBuffer(b)) { var d = p(b.length) | 0; a = ca(a, d); if (a.length === 0) { return a; } else { b.copy(a, 0, 0, d); return a; } } if (b) { if (typeof ArrayBuffer != "undefined" && b.buffer instanceof ArrayBuffer || "length" in b) { if (typeof b.length != "number" || G(b.length)) { return ca(a, 0); } else { return c(a, b); } } if (b.type === "Buffer" && K(b.data)) { return c(a, b.data); } } throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object."); } function p(a) { if (a >= n()) { throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + n().toString(16) + " bytes"); } return a | 0; } function d(a) { if (+a != a) { a = 0; } return da.alloc(+a); } function s(a, b) { if (da.isBuffer(a)) { return a.length; } if (typeof ArrayBuffer != "undefined" && typeof ArrayBuffer.isView == "function" && (ArrayBuffer.isView(a) || a instanceof ArrayBuffer)) { return a.byteLength; } if (typeof a != "string") { a = "" + a; } var c = a.length; if (c === 0) { return 0; } var d = false; while (true) { switch (b) { case "ascii": case "latin1": case "binary": return c; case "utf8": case "utf-8": case undefined: return U(a).length; case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return c * 2; case "hex": return c >>> 1; case "base64": return J(a).length; default: if (d) { return U(a).length; } b = ("" + b).toLowerCase(); d = true; } } } function t(a, b, c) { var d = false; if (b === undefined || b < 0) { b = 0; } if (b > this.length) { return ""; } if (c === undefined || c > this.length) { c = this.length; } if (c <= 0) { return ""; } c >>>= 0; b >>>= 0; if (c <= b) { return ""; } for (a ||= "utf8";;) { switch (a) { case "hex": return S(this, b, c); case "utf8": case "utf-8": return E(this, b, c); case "ascii": return P(this, b, c); case "latin1": case "binary": return R(this, b, c); case "base64": return B(this, b, c); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return I(this, b, c); default: if (d) { throw new TypeError("Unknown encoding: " + a); } a = (a + "").toLowerCase(); d = true; } } } function g(a, b, c) { var d = a[b]; a[b] = a[c]; a[c] = d; } function b(a, b, c, d, f) { if (a.length === 0) { return -1; } if (typeof c == "string") { d = c; c = 0; } else if (c > 2147483647) { c = 2147483647; } else if (c < -2147483648) { c = -2147483648; } c = +c; if (isNaN(c)) { c = f ? 0 : a.length - 1; } if (c < 0) { c = a.length + c; } if (c >= a.length) { if (f) { return -1; } c = a.length - 1; } else if (c < 0) { if (!f) { return -1; } c = 0; } if (typeof b == "string") { b = da.from(b, d); } if (da.isBuffer(b)) { if (b.length === 0) { return -1; } else { return u(a, b, c, d, f); } } if (typeof b == "number") { b = b & 255; if (da.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function") { if (f) { return Uint8Array.prototype.indexOf.call(a, b, c); } else { return Uint8Array.prototype.lastIndexOf.call(a, b, c); } } else { return u(a, [b], c, d, f); } } throw new TypeError("val must be string, number or Buffer"); } function u(b, d, g, j, k) { function i(a, b) { if (m === 1) { return a[b]; } else { return a.readUInt16BE(b * m); } } var m = 1; var o = b.length; var p = d.length; if (j !== undefined && (j = String(j).toLowerCase(), j === "ucs2" || j === "ucs-2" || j === "utf16le" || j === "utf-16le")) { if (b.length < 2 || d.length < 2) { return -1; } m = 2; o /= 2; p /= 2; g /= 2; } var q; if (k) { var r = -1; for (q = g; q < o; q++) { if (i(b, q) === i(d, r === -1 ? 0 : q - r)) { if (r === -1) { r = q; } if (q - r + 1 === p) { return r * m; } } else { if (r !== -1) { q -= q - r; } r = -1; } } } else { if (g + p > o) { g = o - p; } q = g; for (; q >= 0; q--) { var t = true; for (var v = 0; v < p; v++) { if (i(b, q + v) !== i(d, v)) { t = false; break; } } if (t) { return q; } } } return -1; } function v(a, b, c, d) { c = Number(c) || 0; var g = a.length - c; if (d) { d = Number(d); if (d > g) { d = g; } } else { d = g; } var h = b.length; if (h % 2 !== 0) { throw new TypeError("Invalid hex string"); } if (d > h / 2) { d = h / 2; } for (var i = 0; i < d; ++i) { var j = parseInt(b.substr(i * 2, 2), 16); if (isNaN(j)) { return i; } a[c + i] = j; } return i; } function w(a, b, c, d) { return W(U(b, a.length - c), a, c, d); } function m(a, b, c, d) { return W(q(b), a, c, d); } function x(a, b, c, d) { return m(a, b, c, d); } function y(a, b, c, d) { return W(J(b), a, c, d); } function A(a, b, c, d) { return W(V(b, a.length - c), a, c, d); } function B(a, b, c) { if (b === 0 && c === a.length) { return H.fromByteArray(a); } else { return H.fromByteArray(a.slice(b, c)); } } function E(b, d, g) { g = Math.min(b.length, g); var j = []; for (var l = d; l < g;) { var m = b[l]; var n = null; var p = m > 239 ? 4 : m > 223 ? 3 : m > 191 ? 2 : 1; if (l + p <= g) { var q; var r; var t; var v; switch (p) { case 1: if (m < 128) { n = m; } break; case 2: q = b[l + 1]; if ((q & 192) === 128) { v = (m & 31) << 6 | q & 63; if (v > 127) { n = v; } } break; case 3: q = b[l + 1]; r = b[l + 2]; if ((q & 192) === 128 && (r & 192) === 128) { v = (m & 15) << 12 | (q & 63) << 6 | r & 63; if (v > 2047 && (v < 55296 || v > 57343)) { n = v; } } break; case 4: q = b[l + 1]; r = b[l + 2]; t = b[l + 3]; if ((q & 192) === 128 && (r & 192) === 128 && (t & 192) === 128) { v = (m & 15) << 18 | (q & 63) << 12 | (r & 63) << 6 | t & 63; if (v > 65535 && v < 1114112) { n = v; } } } } if (n === null) { n = 65533; p = 1; } else if (n > 65535) { n -= 65536; j.push(n >>> 10 & 1023 | 55296); n = n & 1023 | 56320; } j.push(n); l += p; } return k(j); } function k(a) { var b = a.length; if (b <= Q) { return String.fromCharCode.apply(String, a); } var c = ""; for (var d = 0; d < b;) { c += String.fromCharCode.apply(String, a.slice(d, d += Q)); } return c; } function P(a, b, c) { var d = ""; c = Math.min(a.length, c); for (var f = b; f < c; ++f) { d += String.fromCharCode(a[f] & 127); } return d; } function R(a, b, c) { var d = ""; c = Math.min(a.length, c); for (var f = b; f < c; ++f) { d += String.fromCharCode(a[f]); } return d; } function S(a, b, c) { var d = a.length; if (!b || b < 0) { b = 0; } if (!c || c < 0 || c > d) { c = d; } var f = ""; for (var g = b; g < c; ++g) { f += z(a[g]); } return f; } function I(a, b, c) { for (var d = a.slice(b, c), e = "", f = 0; f < d.length; f += 2) { e += String.fromCharCode(d[f] + d[f + 1] * 256); } return e; } function T(a, b, c) { if (a % 1 !== 0 || a < 0) { throw new RangeError("offset is not uint"); } if (a + b > c) { throw new RangeError("Trying to access beyond buffer length"); } } function C(a, b, c, d, e, f) { if (!da.isBuffer(a)) { throw new TypeError("\"buffer\" argument must be a Buffer instance"); } if (b > e || b < f) { throw new RangeError("\"value\" argument is out of bounds"); } if (c + d > a.length) { throw new RangeError("Index out of range"); } } function D(a, b, c, d) { if (b < 0) { b = 65535 + b + 1; } for (var e = 0, f = Math.min(a.length - c, 2); e < f; ++e) { a[c + e] = (b & 255 << (d ? e : 1 - e) * 8) >>> (d ? e : 1 - e) * 8; } } function O(a, b, c, d) { if (b < 0) { b = 4294967295 + b + 1; } for (var e = 0, f = Math.min(a.length - c, 4); e < f; ++e) { a[c + e] = b >>> (d ? e : 3 - e) * 8 & 255; } } function L(a, b, c, d, e, f) { if (c + d > a.length) { throw new RangeError("Index out of range"); } if (c < 0) { throw new RangeError("Index out of range"); } } function M(a, b, c, d, e) { if (!e) { L(a, b, c, 4, 3.4028234663852886e+38, -3.4028234663852886e+38); } X.write(a, b, c, d, 23, 4); return c + 4; } function N(a, b, c, d, e) { if (!e) { L(a, b, c, 8, 1.7976931348623157e+308, -1.7976931348623157e+308); } X.write(a, b, c, d, 52, 8); return c + 8; } function F(a) { a = j(a).replace(Y, ""); if (a.length < 2) { return ""; } while (a.length % 4 !== 0) { a += "="; } return a; } function j(a) { if (a.trim) { return a.trim(); } else { return a.replace(/^\s+|\s+$/g, ""); } } function z(a) { if (a < 16) { return "0" + a.toString(16); } else { return a.toString(16); } } function U(a, b) { b = b || Infinity; var c; for (var d = a.length, g = null, h = [], j = 0; j < d; ++j) { c = a.charCodeAt(j); if (c > 55295 && c < 57344) { if (!g) { if (c > 56319) { if ((b -= 3) > -1) { h.push(239, 191, 189); } continue; } if (j + 1 === d) { if ((b -= 3) > -1) { h.push(239, 191, 189); } continue; } g = c; continue; } if (c < 56320) { if ((b -= 3) > -1) { h.push(239, 191, 189); } g = c; continue; } c = (g - 55296 << 10 | c - 56320) + 65536; } else if (g && (b -= 3) > -1) { h.push(239, 191, 189); } g = null; if (c < 128) { if ((b -= 1) < 0) { break; } h.push(c); } else if (c < 2048) { if ((b -= 2) < 0) { break; } h.push(c >> 6 | 192, c & 63 | 128); } else if (c < 65536) { if ((b -= 3) < 0) { break; } h.push(c >> 12 | 224, c >> 6 & 63 | 128, c & 63 | 128); } else { if (c >= 1114112) { throw new Error("Invalid code point"); } if ((b -= 4) < 0) { break; } h.push(c >> 18 | 240, c >> 12 & 63 | 128, c >> 6 & 63 | 128, c & 63 | 128); } } return h; } function q(a) { var b = []; for (var c = 0; c < a.length; ++c) { b.push(a.charCodeAt(c) & 255); } return b; } function V(a, b) { var c; var d; var g; var h = []; for (var j = 0; j < a.length && (b -= 2) >= 0; ++j) { c = a.charCodeAt(j); d = c >> 8; g = c % 256; h.push(g); h.push(d); } return h; } function J(a) { return H.toByteArray(F(a)); } function W(a, b, c, d) { for (var e = 0; e < d && e + c < b.length && e < a.length; ++e) { b[e + c] = a[e]; } return e; } function G(a) { return a !== a; } var H = aa("base64-js"); var X = aa("ieee754"); var K = aa("isarray"); ba.Buffer = da; ba.SlowBuffer = d; ba.INSPECT_MAX_BYTES = 50; da.TYPED_ARRAY_SUPPORT = e.TYPED_ARRAY_SUPPORT !== undefined ? e.TYPED_ARRAY_SUPPORT : r(); ba.kMaxLength = n(); da.poolSize = 8192; da._augment = function (a) { a.__proto__ = da.prototype; return a; }; da.from = function (a, b, c) { return ea(null, a, b, c); }; if (da.TYPED_ARRAY_SUPPORT) { da.prototype.__proto__ = Uint8Array.prototype; da.__proto__ = Uint8Array; if (typeof Symbol != "undefined" && Symbol.species && da[Symbol.species] === da) { Object.defineProperty(da, Symbol.species, { value: null, configurable: true }); } } da.alloc = function (a, b, c) { return i(null, a, b, c); }; da.allocUnsafe = function (b) { return a(null, b); }; da.allocUnsafeSlow = function (b) { return a(null, b); }; da.isBuffer = function (a) { return a != null && !!a._isBuffer; }; da.compare = function (a, b) { if (!da.isBuffer(a) || !da.isBuffer(b)) { throw new TypeError("Arguments must be Buffers"); } if (a === b) { return 0; } var c = a.length; var d = b.length; for (var f = 0, g = Math.min(c, d); f < g; ++f) { if (a[f] !== b[f]) { c = a[f]; d = b[f]; break; } } if (c < d) { return -1; } else if (d < c) { return 1; } else { return 0; } }; da.isEncoding = function (a) { switch (String(a).toLowerCase()) { case "hex": case "utf8": case "utf-8": case "ascii": case "latin1": case "binary": case "base64": case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return true; default: return false; } }; da.concat = function (a, b) { if (!K(a)) { throw new TypeError("\"list\" argument must be an Array of Buffers"); } if (a.length === 0) { return da.alloc(0); } var c; if (b === undefined) { b = 0; c = 0; for (; c < a.length; ++c) { b += a[c].length; } } var d = da.allocUnsafe(b); var f = 0; for (c = 0; c < a.length; ++c) { var g = a[c]; if (!da.isBuffer(g)) { throw new TypeError("\"list\" argument must be an Array of Buffers"); } g.copy(d, f); f += g.length; } return d; }; da.byteLength = s; da.prototype._isBuffer = true; da.prototype.swap16 = function () { var a = this.length; if (a % 2 !== 0) { throw new RangeError("Buffer size must be a multiple of 16-bits"); } for (var b = 0; b < a; b += 2) { g(this, b, b + 1); } return this; }; da.prototype.swap32 = function () { var a = this.length; if (a % 4 !== 0) { throw new RangeError("Buffer size must be a multiple of 32-bits"); } for (var b = 0; b < a; b += 4) { g(this, b, b + 3); g(this, b + 1, b + 2); } return this; }; da.prototype.swap64 = function () { var a = this.length; if (a % 8 !== 0) { throw new RangeError("Buffer size must be a multiple of 64-bits"); } for (var b = 0; b < a; b += 8) { g(this, b, b + 7); g(this, b + 1, b + 6); g(this, b + 2, b + 5); g(this, b + 3, b + 4); } return this; }; da.prototype.toString = function () { var a = this.length | 0; if (a === 0) { return ""; } else if (arguments.length === 0) { return E(this, 0, a); } else { return t.apply(this, arguments); } }; da.prototype.equals = function (a) { if (!da.isBuffer(a)) { throw new TypeError("Argument must be a Buffer"); } return this === a || da.compare(this, a) === 0; }; da.prototype.inspect = function () { var a = ""; var b = ba.INSPECT_MAX_BYTES; if (this.length > 0) { a = this.toString("hex", 0, b).match(/.{2}/g).join(" "); if (this.length > b) { a += " ... "; } } return ""; }; da.prototype.compare = function (b, d, g, h, j) { if (!da.isBuffer(b)) { throw new TypeError("Argument must be a Buffer"); } if (d === undefined) { d = 0; } if (g === undefined) { g = b ? b.length : 0; } if (h === undefined) { h = 0; } if (j === undefined) { j = this.length; } if (d < 0 || g > b.length || h < 0 || j > this.length) { throw new RangeError("out of range index"); } if (h >= j && d >= g) { return 0; } if (h >= j) { return -1; } if (d >= g) { return 1; } d >>>= 0; g >>>= 0; h >>>= 0; j >>>= 0; if (this === b) { return 0; } var k = j - h; var l = g - d; for (var m = Math.min(k, l), p = this.slice(h, j), a = b.slice(d, g), q = 0; q < m; ++q) { if (p[q] !== a[q]) { k = p[q]; l = a[q]; break; } } if (k < l) { return -1; } else if (l < k) { return 1; } else { return 0; } }; da.prototype.includes = function (a, b, c) { return this.indexOf(a, b, c) !== -1; }; da.prototype.indexOf = function (a, c, d) { return b(this, a, c, d, true); }; da.prototype.lastIndexOf = function (a, c, d) { return b(this, a, c, d, false); }; da.prototype.write = function (a, b, c, d) { if (b === undefined) { d = "utf8"; c = this.length; b = 0; } else if (c === undefined && typeof b == "string") { d = b; c = this.length; b = 0; } else { if (!isFinite(b)) { throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); } b = b | 0; if (isFinite(c)) { c = c | 0; if (d === undefined) { d = "utf8"; } } else { d = c; c = undefined; } } var f = this.length - b; if (c === undefined || c > f) { c = f; } if (a.length > 0 && (c < 0 || b < 0) || b > this.length) { throw new RangeError("Attempt to write outside buffer bounds"); } d ||= "utf8"; var g = false; while (true) { switch (d) { case "hex": return v(this, a, b, c); case "utf8": case "utf-8": return w(this, a, b, c); case "ascii": return m(this, a, b, c); case "latin1": case "binary": return x(this, a, b, c); case "base64": return y(this, a, b, c); case "ucs2": case "ucs-2": case "utf16le": case "utf-16le": return A(this, a, b, c); default: if (g) { throw new TypeError("Unknown encoding: " + d); } d = ("" + d).toLowerCase(); g = true; } } }; da.prototype.toJSON = function () { return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) }; }; var Q = 4096; da.prototype.slice = function (a, b) { var c = this.length; a = ~~a; b = b === undefined ? c : ~~b; if (a < 0) { a += c; if (a < 0) { a = 0; } } else if (a > c) { a = c; } if (b < 0) { b += c; if (b < 0) { b = 0; } } else if (b > c) { b = c; } if (b < a) { b = a; } var d; if (da.TYPED_ARRAY_SUPPORT) { d = this.subarray(a, b); d.__proto__ = da.prototype; } else { var e = b - a; d = new da(e, undefined); for (var f = 0; f < e; ++f) { d[f] = this[f + a]; } } return d; }; da.prototype.readUIntLE = function (a, b, c) { a = a | 0; b = b | 0; if (!c) { T(a, b, this.length); } var d = this[a]; for (var e = 1, f = 0; ++f < b && (e *= 256);) { d += this[a + f] * e; } return d; }; da.prototype.readUIntBE = function (a, b, c) { a = a | 0; b = b | 0; if (!c) { T(a, b, this.length); } var d = this[a + --b]; for (var e = 1; b > 0 && (e *= 256);) { d += this[a + --b] * e; } return d; }; da.prototype.readUInt8 = function (a, b) { if (!b) { T(a, 1, this.length); } return this[a]; }; da.prototype.readUInt16LE = function (a, b) { if (!b) { T(a, 2, this.length); } return this[a] | this[a + 1] << 8; }; da.prototype.readUInt16BE = function (a, b) { if (!b) { T(a, 2, this.length); } return this[a] << 8 | this[a + 1]; }; da.prototype.readUInt32LE = function (a, b) { if (!b) { T(a, 4, this.length); } return (this[a] | this[a + 1] << 8 | this[a + 2] << 16) + this[a + 3] * 16777216; }; da.prototype.readUInt32BE = function (a, b) { if (!b) { T(a, 4, this.length); } return this[a] * 16777216 + (this[a + 1] << 16 | this[a + 2] << 8 | this[a + 3]); }; da.prototype.readIntLE = function (a, b, c) { a = a | 0; b = b | 0; if (!c) { T(a, b, this.length); } var d = this[a]; for (var e = 1, f = 0; ++f < b && (e *= 256);) { d += this[a + f] * e; } e *= 128; if (d >= e) { d -= Math.pow(2, b * 8); } return d; }; da.prototype.readIntBE = function (a, b, c) { a = a | 0; b = b | 0; if (!c) { T(a, b, this.length); } for (var d = b, e = 1, f = this[a + --d]; d > 0 && (e *= 256);) { f += this[a + --d] * e; } e *= 128; if (f >= e) { f -= Math.pow(2, b * 8); } return f; }; da.prototype.readInt8 = function (a, b) { if (!b) { T(a, 1, this.length); } if (this[a] & 128) { return (255 - this[a] + 1) * -1; } else { return this[a]; } }; da.prototype.readInt16LE = function (a, b) { if (!b) { T(a, 2, this.length); } var c = this[a] | this[a + 1] << 8; if (c & 32768) { return c | 4294901760; } else { return c; } }; da.prototype.readInt16BE = function (a, b) { if (!b) { T(a, 2, this.length); } var c = this[a + 1] | this[a] << 8; if (c & 32768) { return c | 4294901760; } else { return c; } }; da.prototype.readInt32LE = function (a, b) { if (!b) { T(a, 4, this.length); } return this[a] | this[a + 1] << 8 | this[a + 2] << 16 | this[a + 3] << 24; }; da.prototype.readInt32BE = function (a, b) { if (!b) { T(a, 4, this.length); } return this[a] << 24 | this[a + 1] << 16 | this[a + 2] << 8 | this[a + 3]; }; da.prototype.readFloatLE = function (a, b) { if (!b) { T(a, 4, this.length); } return X.read(this, a, true, 23, 4); }; da.prototype.readFloatBE = function (a, b) { if (!b) { T(a, 4, this.length); } return X.read(this, a, false, 23, 4); }; da.prototype.readDoubleLE = function (a, b) { if (!b) { T(a, 8, this.length); } return X.read(this, a, true, 52, 8); }; da.prototype.readDoubleBE = function (a, b) { if (!b) { T(a, 8, this.length); } return X.read(this, a, false, 52, 8); }; da.prototype.writeUIntLE = function (a, b, c, d) { a = +a; b = b | 0; c = c | 0; if (!d) { var g = Math.pow(2, c * 8) - 1; C(this, a, b, c, g, 0); } var h = 1; var i = 0; for (this[b] = a & 255; ++i < c && (h *= 256);) { this[b + i] = a / h & 255; } return b + c; }; da.prototype.writeUIntBE = function (a, b, c, d) { a = +a; b = b | 0; c = c | 0; if (!d) { var g = Math.pow(2, c * 8) - 1; C(this, a, b, c, g, 0); } var h = c - 1; var i = 1; for (this[b + h] = a & 255; --h >= 0 && (i *= 256);) { this[b + h] = a / i & 255; } return b + c; }; da.prototype.writeUInt8 = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 1, 255, 0); } if (!da.TYPED_ARRAY_SUPPORT) { a = Math.floor(a); } this[b] = a & 255; return b + 1; }; da.prototype.writeUInt16LE = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 2, 65535, 0); } if (da.TYPED_ARRAY_SUPPORT) { this[b] = a & 255; this[b + 1] = a >>> 8; } else { D(this, a, b, true); } return b + 2; }; da.prototype.writeUInt16BE = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 2, 65535, 0); } if (da.TYPED_ARRAY_SUPPORT) { this[b] = a >>> 8; this[b + 1] = a & 255; } else { D(this, a, b, false); } return b + 2; }; da.prototype.writeUInt32LE = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 4, 4294967295, 0); } if (da.TYPED_ARRAY_SUPPORT) { this[b + 3] = a >>> 24; this[b + 2] = a >>> 16; this[b + 1] = a >>> 8; this[b] = a & 255; } else { O(this, a, b, true); } return b + 4; }; da.prototype.writeUInt32BE = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 4, 4294967295, 0); } if (da.TYPED_ARRAY_SUPPORT) { this[b] = a >>> 24; this[b + 1] = a >>> 16; this[b + 2] = a >>> 8; this[b + 3] = a & 255; } else { O(this, a, b, false); } return b + 4; }; da.prototype.writeIntLE = function (a, b, c, d) { a = +a; b = b | 0; if (!d) { var e = Math.pow(2, c * 8 - 1); C(this, a, b, c, e - 1, -e); } var g = 0; var h = 1; var i = 0; for (this[b] = a & 255; ++g < c && (h *= 256);) { if (a < 0 && i === 0 && this[b + g - 1] !== 0) { i = 1; } this[b + g] = (a / h >> 0) - i & 255; } return b + c; }; da.prototype.writeIntBE = function (a, b, c, d) { a = +a; b = b | 0; if (!d) { var e = Math.pow(2, c * 8 - 1); C(this, a, b, c, e - 1, -e); } var g = c - 1; var h = 1; var i = 0; for (this[b + g] = a & 255; --g >= 0 && (h *= 256);) { if (a < 0 && i === 0 && this[b + g + 1] !== 0) { i = 1; } this[b + g] = (a / h >> 0) - i & 255; } return b + c; }; da.prototype.writeInt8 = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 1, 127, -128); } if (!da.TYPED_ARRAY_SUPPORT) { a = Math.floor(a); } if (a < 0) { a = 255 + a + 1; } this[b] = a & 255; return b + 1; }; da.prototype.writeInt16LE = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 2, 32767, -32768); } if (da.TYPED_ARRAY_SUPPORT) { this[b] = a & 255; this[b + 1] = a >>> 8; } else { D(this, a, b, true); } return b + 2; }; da.prototype.writeInt16BE = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 2, 32767, -32768); } if (da.TYPED_ARRAY_SUPPORT) { this[b] = a >>> 8; this[b + 1] = a & 255; } else { D(this, a, b, false); } return b + 2; }; da.prototype.writeInt32LE = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 4, 2147483647, -2147483648); } if (da.TYPED_ARRAY_SUPPORT) { this[b] = a & 255; this[b + 1] = a >>> 8; this[b + 2] = a >>> 16; this[b + 3] = a >>> 24; } else { O(this, a, b, true); } return b + 4; }; da.prototype.writeInt32BE = function (a, b, c) { a = +a; b = b | 0; if (!c) { C(this, a, b, 4, 2147483647, -2147483648); } if (a < 0) { a = 4294967295 + a + 1; } if (da.TYPED_ARRAY_SUPPORT) { this[b] = a >>> 24; this[b + 1] = a >>> 16; this[b + 2] = a >>> 8; this[b + 3] = a & 255; } else { O(this, a, b, false); } return b + 4; }; da.prototype.writeFloatLE = function (a, b, c) { return M(this, a, b, true, c); }; da.prototype.writeFloatBE = function (a, b, c) { return M(this, a, b, false, c); }; da.prototype.writeDoubleLE = function (a, b, c) { return N(this, a, b, true, c); }; da.prototype.writeDoubleBE = function (a, b, c) { return N(this, a, b, false, c); }; da.prototype.copy = function (a, b, c, d) { c ||= 0; if (!d && d !== 0) { d = this.length; } if (b >= a.length) { b = a.length; } b ||= 0; if (d > 0 && d < c) { d = c; } if (d === c) { return 0; } if (a.length === 0 || this.length === 0) { return 0; } if (b < 0) { throw new RangeError("targetStart out of bounds"); } if (c < 0 || c >= this.length) { throw new RangeError("sourceStart out of bounds"); } if (d < 0) { throw new RangeError("sourceEnd out of bounds"); } if (d > this.length) { d = this.length; } if (a.length - b < d - c) { d = a.length - b + c; } var f; var g = d - c; if (this === a && c < b && b < d) { for (f = g - 1; f >= 0; --f) { a[f + b] = this[f + c]; } } else if (g < 1000 || !da.TYPED_ARRAY_SUPPORT) { for (f = 0; f < g; ++f) { a[f + b] = this[f + c]; } } else { Uint8Array.prototype.set.call(a, this.subarray(c, c + g), b); } return g; }; da.prototype.fill = function (a, b, c, d) { if (typeof a == "string") { if (typeof b == "string") { d = b; b = 0; c = this.length; } else if (typeof c == "string") { d = c; c = this.length; } if (a.length === 1) { var g = a.charCodeAt(0); if (g < 256) { a = g; } } if (d !== undefined && typeof d != "string") { throw new TypeError("encoding must be a string"); } if (typeof d == "string" && !da.isEncoding(d)) { throw new TypeError("Unknown encoding: " + d); } } else if (typeof a == "number") { a = a & 255; } if (b < 0 || this.length < b || this.length < c) { throw new RangeError("Out of range index"); } if (c <= b) { return this; } b >>>= 0; c = c === undefined ? this.length : c >>> 0; a ||= 0; var h; if (typeof a == "number") { for (h = b; h < c; ++h) { this[h] = a; } } else { var i = da.isBuffer(a) ? a : U(new da(a, d).toString()); var f = i.length; for (h = 0; h < c - b; ++h) { this[h + b] = i[h % f]; } } return this; }; var Y = /[^+\/0-9A-Za-z-_]/g; }).call(this, typeof global != "undefined" ? global : typeof self != "undefined" ? self : typeof window != "undefined" ? window : {}); }, { "base64-js": 30, ieee754: 32, isarray: 34 }], 30: [function (b, g, j) { "use strict"; function k(a) { var b = a.length; if (b % 4 > 0) { throw new Error("Invalid string. Length must be a multiple of 4"); } if (a[b - 2] === "=") { return 2; } else if (a[b - 1] === "=") { return 1; } else { return 0; } } function e(a) { return a.length * 3 / 4 - k(a); } function i(b) { var d; var g; var h; var j; var l; var m; var n = b.length; l = k(b); m = new c(n * 3 / 4 - l); h = l > 0 ? n - 4 : n; var a = 0; d = 0; g = 0; for (; d < h; d += 4, g += 3) { j = q[b.charCodeAt(d)] << 18 | q[b.charCodeAt(d + 1)] << 12 | q[b.charCodeAt(d + 2)] << 6 | q[b.charCodeAt(d + 3)]; m[a++] = j >> 16 & 255; m[a++] = j >> 8 & 255; m[a++] = j & 255; } if (l === 2) { j = q[b.charCodeAt(d)] << 2 | q[b.charCodeAt(d + 1)] >> 4; m[a++] = j & 255; } else if (l === 1) { j = q[b.charCodeAt(d)] << 10 | q[b.charCodeAt(d + 1)] << 4 | q[b.charCodeAt(d + 2)] >> 2; m[a++] = j >> 8 & 255; m[a++] = j & 255; } return m; } function m(b) { return a[b >> 18 & 63] + a[b >> 12 & 63] + a[b >> 6 & 63] + a[b & 63]; } function n(a, b, c) { var d; var e = []; for (var f = b; f < c; f += 3) { d = (a[f] << 16) + (a[f + 1] << 8) + a[f + 2]; e.push(m(d)); } return e.join(""); } function f(b) { var d; var g = b.length; var e = g % 3; var h = ""; var j = []; for (var k = 16383, f = 0, l = g - e; f < l; f += k) { j.push(n(b, f, f + k > l ? l : f + k)); } if (e === 1) { d = b[g - 1]; h += a[d >> 2]; h += a[d << 4 & 63]; h += "=="; } else if (e === 2) { d = (b[g - 2] << 8) + b[g - 1]; h += a[d >> 10]; h += a[d >> 4 & 63]; h += a[d << 2 & 63]; h += "="; } j.push(h); return j.join(""); } j.byteLength = e; j.toByteArray = i; j.fromByteArray = f; var a = []; var q = []; var c = typeof Uint8Array != "undefined" ? Uint8Array : Array; var h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; for (var l = 0, o = h.length; l < o; ++l) { a[l] = h[l]; q[h.charCodeAt(l)] = l; } q["-".charCodeAt(0)] = 62; q["_".charCodeAt(0)] = 63; }, {}], 31: [function (a, b, c) { function d() { if (!(this instanceof d)) { return new d(); } } (function (c) { function d(b) { for (var c in a) { b[c] = a[c]; } return b; } function e(a, b) { j(this, a).push(b); return this; } function g(a, b) { function c() { h.call(d, a, c); b.apply(this, arguments); } var d = this; c.originalListener = b; j(d, a).push(c); return d; } function h(a, b) { function c(a) { return a !== b && a.originalListener !== b; } var d; var e = this; if (arguments.length) { if (b) { if (d = j(e, a, true)) { d = d.filter(c); if (!d.length) { return h.call(e, a); } e[f][a] = d; } } else { d = e[f]; if (d && (delete d[a], !Object.keys(d).length)) { return h.call(e); } } } else { delete e[f]; } return e; } function i(b, c) { function d(a) { a.call(h); } function e(a) { a.call(h, c); } function g(b) { b.apply(h, a); } var h = this; var i = j(h, b, true); if (!i) { return false; } var f = arguments.length; if (f === 1) { i.forEach(d); } else if (f === 2) { i.forEach(e); } else { var a = Array.prototype.slice.call(arguments, 1); i.forEach(g); } return !!i.length; } function j(a, b, c) { if (!c || a[f]) { var d = a[f] ||= {}; return d[b] ||= []; } } if (typeof b != "undefined") { b.exports = c; } var f = "listeners"; var a = { on: e, once: g, off: h, emit: i }; d(c.prototype); c.mixin = d; })(d); }, {}], 32: [function (a, b, c) { c.read = function (b, d, g, e, j) { var i; var k; var m = j * 8 - e - 1; var n = (1 << m) - 1; var a = n >> 1; var q = -7; var r = g ? j - 1 : 0; var s = g ? -1 : 1; var l = b[d + r]; r += s; i = l & (1 << -q) - 1; l >>= -q; q += m; for (; q > 0; q -= 8) { i = i * 256 + b[d + r]; r += s; } k = i & (1 << -q) - 1; i >>= -q; q += e; for (; q > 0; q -= 8) { k = k * 256 + b[d + r]; r += s; } if (i === 0) { i = 1 - a; } else { if (i === n) { if (k) { return NaN; } else { return (l ? -1 : 1) * Infinity; } } k += Math.pow(2, e); i -= a; } return (l ? -1 : 1) * k * Math.pow(2, i - e); }; c.write = function (b, g, j, e, k, m) { var n; var o; var q; var t = m * 8 - k - 1; var v = (1 << t) - 1; var c = v >> 1; var h = k === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0; var l = e ? 0 : m - 1; var w = e ? 1 : -1; var d = g < 0 || g === 0 && 1 / g < 0 ? 1 : 0; g = Math.abs(g); if (isNaN(g) || g === Infinity) { o = isNaN(g) ? 1 : 0; n = v; } else { n = Math.floor(Math.log(g) / Math.LN2); if (g * (q = Math.pow(2, -n)) < 1) { n--; q *= 2; } g += n + c >= 1 ? h / q : h * Math.pow(2, 1 - c); if (g * q >= 2) { n++; q /= 2; } if (n + c >= v) { o = 0; n = v; } else if (n + c >= 1) { o = (g * q - 1) * Math.pow(2, k); n += c; } else { o = g * Math.pow(2, c - 1) * Math.pow(2, k); n = 0; } } for (; k >= 8; k -= 8) { b[j + l] = o & 255; l += w; o /= 256; } n = n << k | o; t += k; for (; t > 0; t -= 8) { b[j + l] = n & 255; l += w; n /= 256; } b[j + l - w] |= d * 128; }; }, {}], 33: [function (a, b, c) { (function (j) { var k; var q; var z; var C; (function (G) { function e(e, g, j) { function m(a, b, c, d) { if (this instanceof m) { return q(this, a, b, c, d); } else { return new m(a, b, c, d); } } function n(a) { return !!a && !!a[N]; } function q(b, d, f, g, h) { if (w && v) { if (d instanceof v) { d = new w(d); } if (g instanceof v) { g = new w(g); } } if (!d && !f && !g && !s) { b.buffer = c(y, 0); return; } if (!a(d, f)) { var j = s || Array; h = f; g = d; f = 0; d = new j(8); } b.buffer = d; b.offset = f |= 0; if (u !== typeof g) { if (typeof g == "string") { t(d, f, g, h || 10); } else if (a(g, h)) { o(d, f, g, h); } else if (typeof h == "number") { B(d, f + E, g); B(d, f + J, h); } else if (g > 0) { D(d, f, g); } else if (g < 0) { O(d, f, g); } else { o(d, f, y, 0); } } } function t(b, c, d, e) { var g = 0; var h = d.length; var j = 0; var k = 0; if (d[0] === "-") { g++; } var l = g; while (g < h) { var a = parseInt(d[g++], e); if (a < 0) { break; } k = k * e + a; j = j * e + Math.floor(k / r); k %= r; } if (l) { j = ~j; if (k) { k = r - k; } else { j++; } } B(b, c + E, j); B(b, c + J, k); } function z() { var a = this.buffer; var b = this.offset; var c = k(a, b + E); var d = k(a, b + J); if (!j) { c |= 0; } if (c) { return c * r + d; } else { return d; } } function A(b) { var c = this.buffer; var d = this.offset; var e = k(c, d + E); var g = k(c, d + J); var h = ""; var l = !j && e & 2147483648; if (l) { e = ~e; g = r - g; } b = b || 10; while (true) { var m = e % b * r + g; e = Math.floor(e / b); g = Math.floor(m / b); h = (m % b).toString(b) + h; if (!e && !g) { break; } } if (l) { h = "-" + h; } return h; } function B(a, b, c) { a[b + C] = c & 255; c >>= 8; a[b + P] = c & 255; c >>= 8; a[b + I] = c & 255; c >>= 8; a[b + K] = c & 255; } function k(a, b) { return a[b + K] * x + (a[b + I] << 16) + (a[b + P] << 8) + a[b + C]; } var E = g ? 0 : 4; var J = g ? 4 : 0; var K = g ? 0 : 3; var I = g ? 1 : 2; var P = g ? 2 : 1; var C = g ? 3 : 0; var D = g ? h : p; var O = g ? l : d; var L = m.prototype; var M = "is" + e; var N = "_" + M; L.buffer = undefined; L.offset = 0; L[N] = true; L.toNumber = z; L.toString = A; L.toJSON = z; L.toArray = H; if (b) { L.toBuffer = f; } if (w) { L.toArrayBuffer = i; } m[M] = n; G[e] = m; return m; } function H(a) { var b = this.buffer; var d = this.offset; s = null; if (a !== false && d === 0 && b.length === 8 && m(b)) { return b; } else { return c(b, d); } } function f(a) { var c = this.buffer; var d = this.offset; s = b; if (a !== false && d === 0 && c.length === 8 && j.isBuffer(c)) { return c; } var e = new b(8); o(e, 0, c, d); return e; } function i(a) { var b = this.buffer; var c = this.offset; var d = b.buffer; s = w; if (a !== false && c === 0 && d instanceof v && d.byteLength === 8) { return d; } var e = new w(8); o(e, 0, b, c); return e.buffer; } function a(a, b) { var c = a && a.length; b |= 0; return c && b + 8 <= c && typeof a[b] != "string"; } function o(a, b, c, d) { b |= 0; d |= 0; for (var e = 0; e < 8; e++) { a[b++] = c[d++] & 255; } } function c(a, b) { return Array.prototype.slice.call(a, b, b + 8); } function h(a, b, c) { for (var d = b + 8; d > b;) { a[--d] = c & 255; c /= 256; } } function l(a, b, c) { var d = b + 8; for (c++; d > b;) { a[--d] = -c & 255 ^ 255; c /= 256; } } function p(a, b, c) { for (var d = b + 8; b < d;) { a[b++] = c & 255; c /= 256; } } function d(a, b, c) { var d = b + 8; for (c++; b < d;) { a[b++] = -c & 255 ^ 255; c /= 256; } } function n(a) { return !!a && Object.prototype.toString.call(a) == "[object Array]"; } var s; var u = "undefined"; var b = u !== typeof j && j; var w = u !== typeof Uint8Array && Uint8Array; var v = u !== typeof ArrayBuffer && ArrayBuffer; var y = [0, 0, 0, 0, 0, 0, 0, 0]; var m = Array.isArray || n; var r = 4294967296; var x = 16777216; k = e("Uint64BE", true, true); q = e("Int64BE", true, false); z = e("Uint64LE", false, true); C = e("Int64LE", false, false); })(typeof c == "object" && typeof c.nodeName != "string" ? c : this || {}); }).call(this, a("buffer").Buffer); }, { buffer: 29 }], 34: [function (a, b, c) { var d = {}.toString; b.exports = Array.isArray || function (a) { return d.call(a) == "[object Array]"; }; }, {}] }, {}, [1])(1); }); let styleItem = document.createElement("style"); styleItem.type = "text/css"; styleItem.appendChild(document.createTextNode(` #suggestBox { width: 230px; border-radius: 3px; background-color: rgba(0,0,0,0.5); margin: auto; text-align: left; z-index: 49; pointer-events: auto; position: relative; bottom: 3.5px; overflow-y: auto; } #suggestBox div { background-color: rgba(255,255,255,0); color: rgba(255,255,255,1); transition: background-color 0.3s, color 0.3s; } #suggestBox div:hover { background-color: rgba(255,255,255,0.2); color: rgba(0,0,0,1); } .suggestBoxHard { color: rgba(255,255,255,1); font-size: 18px; } .suggestBoxLight { color: rgba(255,255,255,0.7); font-size: 18px; } `)); document.head.appendChild(styleItem); function fpsbooster() { console.clear(); } setInterval(fpsbooster, 250); let messageCount = 0; let chatLogsDiv = document.createElement('div'); chatLogsDiv.id = "chatLogs"; document.body.appendChild(chatLogsDiv); function setChatLogsStyle() { chatLogsDiv.style = ` height: 150px; width: 300px; max-width: 100%; display: none; padding: 10px; background-color: rgba(0, 0, 0, 0.3); border-radius: 6px; position: absolute; font-size: 18px; color: #fff; left: 10px; top: 350px; overflow-y: scroll; scrollbar-width: none; -ms-overflow-style: none; text-align: left; `; chatLogsDiv.style.cssText += ` &::-webkit-scrollbar { display: none; } `; } setChatLogsStyle(); function addChatEntry(message, color) { let chatEntryDiv = document.createElement("div"); chatEntryDiv.className = 'chatEntry'; let timestampSpan = document.createElement('span'); timestampSpan.style.color = "rgba(255, 255, 255, 0.5)"; timestampSpan.innerText = getTimeStamp() + " [Atm]:" + " "; chatEntryDiv.appendChild(timestampSpan); let messageSpan = document.createElement('span'); messageSpan.style.color = color; messageSpan.innerText = message; chatEntryDiv.appendChild(messageSpan); chatLogsDiv.appendChild(chatEntryDiv); chatLogsDiv.scrollTop = chatLogsDiv.scrollHeight; messageCount++; if (messageCount > 100) { clearChatLog(); messageCount = 1; } } function getTimeStamp() { const now = new Date(); const hours = now.getHours(); const minutes = now.getMinutes(); const amOrPm = hours >= 12 ? 'PM' : 'AM'; const formattedHours = (hours % 12 || 12).toString(); const formattedMinutes = minutes.toString().padStart(2, '0'); return `${formattedHours}:${formattedMinutes} ${amOrPm}`; } function addSystemMessage(message) { let systemMessageDiv = document.createElement("div"); systemMessageDiv.className = "chatEntry"; let timestampSpan = document.createElement("span"); timestampSpan.style.color = "rgba(255, 255, 255, 0.5)"; timestampSpan.innerText = getTimeStamp() + " "; systemMessageDiv.appendChild(timestampSpan); let messageSpan = document.createElement("span"); messageSpan.style.color = "#fff"; messageSpan.innerText = "[Atm]: " + message; systemMessageDiv.appendChild(messageSpan); chatLogsDiv.appendChild(systemMessageDiv); chatLogsDiv.scrollTop = chatLogsDiv.scrollHeight; messageCount++; if (messageCount > 100) { clearChatLog(); messageCount = 1; } }function msgwarner(message) { let WarnsMessageDiv = document.createElement("div"); WarnsMessageDiv.className = "chatEntry"; let timestampSpan = document.createElement("span"); timestampSpan.style.color = "rgba(255, 255, 255, 0.5)"; timestampSpan.innerText = getTimeStamp() + " "; WarnsMessageDiv.appendChild(timestampSpan); let messageSpan = document.createElement("span"); messageSpan.style.color = "#ff9999"; messageSpan.innerText = "Warning: " + message; WarnsMessageDiv.appendChild(messageSpan); chatLogsDiv.appendChild(WarnsMessageDiv); chatLogsDiv.scrollTop = chatLogsDiv.scrollHeight; messageCount++; if (messageCount > 100) { clearChatLog(); messageCount = 1; } } function killChat(message) { let WarnsMessageDiv = document.createElement("div"); WarnsMessageDiv.className = "chatEntry"; let timestampSpan = document.createElement("span"); timestampSpan.style.color = "rgba(255, 255, 255, 0.5)"; timestampSpan.innerText = getTimeStamp() + " "; WarnsMessageDiv.appendChild(timestampSpan); let messageSpan = document.createElement("span"); messageSpan.style.color = "#1b85ee"; messageSpan.innerText = "Kills: " + message; WarnsMessageDiv.appendChild(messageSpan); chatLogsDiv.appendChild(WarnsMessageDiv); chatLogsDiv.scrollTop = chatLogsDiv.scrollHeight; messageCount++; if (messageCount > 100) { clearChatLog(); messageCount = 1; } } function clearChatLog() { chatLogsDiv.innerHTML = ''; } addSystemMessage("Welcome Atm User, press ` to toggle DevLog"); addSystemMessage("Discord: uzi.wupi"); document.addEventListener('keydown', function(event) { if (event.key === '`') { if (enemyData.style.display === 'none') { enemyData.style.display = 'block'; //mapDisplay.style.display = 'none'; //scoreDisplay.style.display = 'none'; } else { enemyData.style.display = 'none'; //mapDisplay.style.display = 'block'; //scoreDisplay.style.display = 'block'; } } }); document.addEventListener('keydown', function(event) { if (event.key === 'Escape') { if (leaderboard.style.display === 'none') { leaderboard.style.display = 'block'; storeButton.style.display = 'block'; allianceButton.style.display = 'block'; //mapDisplay.style.display = 'none'; //scoreDisplay.style.display = 'none'; } else { leaderboard.style.display = 'none'; storeButton.style.display = 'none'; allianceButton.style.display = 'none'; //mapDisplay.style.display = 'block'; //scoreDisplay.style.display = 'block'; } } }); function pingWarn() { } setInterval(function() { if (window.pingTime > 120) { msgwarner('High Ping Detected. Ping Is '+ window.pingTime +'.'); } }, 2000); let inantiantibull = false; let randomNumber = Math.floor(1000 + Math.random() * 9000); let randomLetter = String.fromCharCode(Math.floor(Math.random() * 26) + 65); let jadinabad = randomNumber.toString() + randomLetter; setTimeout(() => { document.getElementById('loadingText').innerHTML = ` Loading Screen
`; }, 20); function onBoxMouseOver() { this.style.transform = 'scale(1.1)'; this.style.borderRadius = '10px'; this.style.boxShadow = '0 0 0 1px #0c3fcc'; } function onBoxMouseLeave() { this.style.transform = 'scale(1)'; this.style.borderRadius = '10px'; this.style.boxShadow = 'none'; } function onEnterGameMouseOver() { const enterGameBox = document.getElementById('enterGame'); enterGameBox.style.transform = 'scale(1.05)'; enterGameBox.style.backgroundColor = 'rgb(255,255,255,.3))'; enterGameBox.style.borderRadius = '20px'; enterGameBox.style.transition = 'all 0.5s ease-in-out'; } function onEnterGameMouseLeave() { const enterGameBox = document.getElementById('enterGame'); enterGameBox.style.transform = 'scale(1)'; enterGameBox.style.backgroundColor = 'rgb(255,255,255,.3)'; enterGameBox.style.borderRadius = '10px'; enterGameBox.style.transition = 'all 0.5s ease-in-out'; } let menuLink = document.querySelector('.menuLink'); let menuText = document.querySelector('.menuText'); let DeskTopInstructions = document.getElementById("desktopInstructions"); let discordUser = localStorage.getItem('user'); if(menuText) { menuText.textContent = "Your Discord User: " + discordUser + "\nSession Id: " + jadinabad; } let skinColorHolder = document.getElementById('skinColorHolder'); skinColorHolder.style.marginBottom = '15px'; if(DeskTopInstructions) { DeskTopInstructions.textContent = 'Function:' } if (menuLink) { menuLink.href = 'https://discord.gg/APq8J4cyvb'; menuLink.textContent = 'Uzi'; } const boxes = document.querySelectorAll('.menuCard'); boxes.forEach(box => { box.style.transition = 'transform 0.5s ease'; box.addEventListener('mouseenter', onBoxMouseOver); box.addEventListener('mouseleave', onBoxMouseLeave); }); let hideSelectors = [ '.menuHeader', ] for ( let i = 0; i < hideSelectors.length; i++ ) { $(hideSelectors[i]).hide(); } const enterGameBox = document.getElementById('enterGame'); enterGameBox.addEventListener('mouseenter', onEnterGameMouseOver); enterGameBox.addEventListener('mouseleave', onEnterGameMouseLeave); $('.menuCard').css({ 'white-space': 'normal', 'text-align': 'center', 'background-color': 'rgb(255,255,255,.3)', '-moz-box-shadow': '0px 0px rgba(255, 255, 255, 0)', '-webkit-box-shadow': '0px 0px rgba(255, 255, 255, 0)', 'box-shadow': '0px 0px rgba(255, 255, 255, 0)', '-webkit-border-radius': '10px', '-moz-border-radius': '10px', 'border-radius': '10px', 'margin': '15px', 'margin-top': '15px', }); let firstCheckbox = document.getElementById('nativeResolution'); let lineBreak1 = document.createElement('br'); let newContainer = document.createElement('div'); newContainer.classList.add('newCheckboxContainer'); newContainer.style.marginBottom = '10px'; firstCheckbox.parentNode.insertBefore(newContainer, firstCheckbox); $('#gameName').css({ 'color': 'rgb(255,255,255,.3)', 'text-shadow': '0 1px 0 rgba(255, 255, 255, 0), 0 2px 0 rgba(255, 255, 255, 0), 0 3px 0 rgba(255, 255, 255, 0), 0 4px 0 rgba(255, 255, 255, 0), 0 5px 0 rgba(255, 255, 255, 0), 0 6px 0 rgba(255, 255, 255, 0), 0 7px 0 rgba(255, 255, 255, 0), 0 8px 0 rgba(255, 255, 255, 0), 0 9px 0 rgba(255, 255, 255, 0)', 'text-align': 'center', 'font-size': '156px', 'margin-bottom': '-30px', 'border-radius': '10px', }); function pageoff() { document.body.style.pointerEvents = 'none'; } function pageon() { document.body.style.pointerEvents = 'auto'; } /*function isscriptenabled() { return new Promise((resolve, reject) => { fetch('https://exclusive-nine-hubcap.glitch.me/script-status') .then(response => response.json()) .then(data => { resolve(data.enabled); }) .catch(error => { console.error('Error fetching script status:', error); reject(error); }); }); } async function main() { try { const scriptEnabled = await isscriptenabled(); if (scriptEnabled) { console.log('Script good.'); } else { console.log('Script unable.'); pageoff(); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); alert('atm its disabled'); prompt('atm its disabled'); } } catch (error) { console.error('Error:', error); } main(); } main();*/ function remValue(name) { return localStorage.removeItem(name); }; function getValue(name) { return localStorage.getItem(name); return null; }; function setValue(name, data) { return localStorage.setItem(name, data); }; getValue("clearedStorage") == undefined && setValue("clearedStorage", false); if (getValue("clearedStorage") == "false") { let clear = window.confirm("Clear Storage?"); if (clear == true) { localStorage.clear(); } setValue("clearedStorage", true); } /*let arraylist = true; function arrayList() { if (!arraylist) { const verticalMenu = document.getElementById('verticalMenu'); if (verticalMenu) { verticalMenu.classList.remove('visible'); } return; } const menuItemsData = [ { label: 'PrePlace', enabled: settings.preplace.enabled }, //{ label: 'ArrayList', enabled: arraylist }, { label: 'AutoPlace', enabled: settigs.autoplace.enabled }, { label: 'AutoRespawn', enabled: settings.autorespawn.enabled }, { label: 'DamageText', enabled: settings.dmgtext.enabled }, { label: 'AutoUpgrade', enabled: settings.autoupg.enabled }, { label: 'AutoGrind', enabled: settings.autogrind.enabled }, { label: 'AutoQ', enabled: settings.autoq.enabled }, //{ label: 'BuildHealth', enabled: getEl("buildhp").checked }, ]; let menuHTML = ''; const activeModules = menuItemsData.filter(e => e.enabled == true); for (let i = 0; i < activeModules.length; i++) { let item = activeModules[i]; menuHTML += `${item.label}
`; } const verticalMenu = document.getElementById('verticalMenu'); if (verticalMenu) { verticalMenu.innerHTML = menuHTML; setTimeout(() => { verticalMenu.classList.add('visible'); }, 50); } else { const newVerticalMenu = document.createElement('div'); newVerticalMenu.id = 'verticalMenu'; newVerticalMenu.innerHTML = menuHTML; document.body.insertAdjacentElement('afterbegin', newVerticalMenu); setTimeout(() => { newVerticalMenu.classList.add('visible'); }, 50); } const styleCSS = ` #verticalMenu { position: fixed; top: 550px; left: 20px; background-color: rgba(51, 51, 51, 0); padding: 0px; color: lime; z-index: 1000; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity 0.3s ease, transform 0.3s ease; } #verticalMenu.visible { opacity: 1; transform: translateY(0); } #verticalMenu > span { display: block; margin: 0px; } #verticalMenu > span.enabled { color: white; } #verticalMenu > span.disabled { color: red; } `; const styleElement = document.createElement('style'); styleElement.textContent = styleCSS; document.head.appendChild(styleElement); } arrayList(); setInterval(arrayList, 500);*/ const removeSnowflakes = () => { const snowflakes = document.querySelectorAll('.snowflake'); snowflakes.forEach(snowflake => { snowflake.parentNode.removeChild(snowflake); }); }; const createSnowflake = function () { const snowflake = document.createElement("div"); snowflake.className = "snowflake"; snowflake.style.position = "absolute"; snowflake.style.width = "10px"; snowflake.style.height = "10px"; snowflake.style.background = "#fff"; snowflake.style.borderRadius = "50%"; snowflake.style.zIndex = "9998"; snowflake.style.opacity = Math.random(); snowflake.style.left = Math.random() * 100 + "vw"; snowflake.style.animation = `fall ${Math.random() * 2 + 1}s linear infinite`; snowflake.addEventListener("animationiteration", function () { snowflake.style.left = Math.random() * 100 + "vw"; snowflake.style.opacity = Math.random(); }); return snowflake; }; const styleSnowflakes = document.createElement("style"); styleSnowflakes.textContent = ` @keyframes fall { 0% { transform: translateY(-10vh); opacity: 1; } 100% { transform: translateY(110vh); opacity: 0; } } .fast-fall { animation-duration: ${Math.random() * 1 + 1}s; } `; document.head.appendChild(styleSnowflakes); const snowflakeContainer = document.createElement("div"); snowflakeContainer.style.position = "absolute"; snowflakeContainer.style.top = "0"; snowflakeContainer.style.left = "0"; snowflakeContainer.style.width = "100%"; snowflakeContainer.style.height = "100%"; snowflakeContainer.style.pointerEvents = "none"; snowflakeContainer.style.zIndex = "9998"; document.body.appendChild(snowflakeContainer); const maxSnowflakes = 40; let snowing = true; const toggleSnow = () => { if (snowing) { removeSnowflakes(); snowing = false; } else { for (let i = 0; i < maxSnowflakes; i++) { const snowflake = createSnowflake(); if (Math.random() > 0.7) { snowflake.classList.add("fast-fall"); } snowflakeContainer.appendChild(snowflake); } snowing = true; } }; window.addEventListener('keydown', function(e) { if (e.key === 'Tab') { toggleSnow(); } }); toggleSnow(); let playerReplace = false; let replacing = false; window.addEventListener('keydown', function(e) { if (e.key === 'Tab') { e.preventDefault(); e.stopPropagation(); } }); document.addEventListener("keydown", function (e) { if (e.keyCode == 27) { //$('#modMenus').toggle(); }; }); // menu html $("body").append(`