diff --git a/.gitignore b/.gitignore index 3c3629e..ff8123c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -node_modules +node_modules/ +dist/ +pnpm-lock.yaml \ No newline at end of file diff --git a/dist/build.js b/dist/build.js deleted file mode 100644 index 83f383c..0000000 --- a/dist/build.js +++ /dev/null @@ -1,2265 +0,0 @@ -!(function () { - "use strict"; - function t() { - let e = {}; - return ( - window.webpackChunkdiscord_app - ? window.webpackChunkdiscord_app.push([ - [Math.random().toString(36)], - {}, - (t) => { - e = t; - } - ]) - : (e = webpackJsonp( - [], - [ - (t, e, n) => { - t.exports = n; - } - ] - )), - e.c - ); - } - let s = { - modules: t(), - filter: function (t, e) { - let n = []; - for (const a in e) { - var s = e[a].exports; - s && - (s.default && s.__esModule && t(s.default) - ? n.push(s.default) - : t(s) && n.push(s)); - } - return n; - }, - find: (t) => s.filter(t, s.modules)[0], - findAll: (t) => s.filter(t, s.modules), - findByProps: (...t) => s.find((e) => t.every((t) => void 0 !== e[t])), - findByPropsAll: (...t) => - s.findAll((e) => t.every((t) => void 0 !== e[t])), - findByDisplayName: (e) => - s.find( - (t) => - (function (t) { - let e = void 0, - n = t[0], - s = 1; - for (; s < t.length; ) { - var a = t[s]; - const r = t[s + 1]; - if ( - ((s += 2), - ("optionalAccess" === a || - "optionalCall" === a) && - null == n) - ) - return; - "access" === a || "optionalAccess" === a - ? ((e = n), (n = r(n))) - : ("call" !== a && "optionalCall" !== a) || - ((n = r((...t) => n.call(e, ...t))), - (e = void 0)); - } - return n; - })([t, "optionalAccess", (t) => t.displayName]) === e - ), - findByStrings: (...t) => - s.find((e) => t.every((t) => e.toString().contains(t))), - reloadModules: () => { - s.modules = t(); - } - }; - function r(n) { - return new Promise((t, e) => { - (n.oncomplete = n.onsuccess = () => t(n.result)), - (n.onabort = n.onerror = () => e(n.error)); - }); - } - function e(e, s) { - const t = ( - !navigator.userAgentData && - /Safari\//.test(navigator.userAgent) && - !/Chrom(e|ium)\//.test(navigator.userAgent) && - indexedDB.databases - ? new Promise(function (t) { - function e() { - return indexedDB.databases().finally(t); - } - (n = setInterval(e, 100)), e(); - }).finally(function () { - return clearInterval(n); - }) - : Promise.resolve() - ).then(() => { - const t = indexedDB.open(e); - return ( - (t.onupgradeneeded = () => t.result.createObjectStore(s)), r(t) - ); - }); - var n; - return (e, n) => t.then((t) => n(t.transaction(s, e).objectStore(s))); - } - let n; - function l() { - return (n = n || e("keyval-store", "keyval")); - } - function o(e, t = l()) { - return t("readonly", (t) => r(t.get(e))); - } - function i(e, n, t = l()) { - return t("readwrite", (t) => (t.put(n, e), r(t.transaction))); - } - function a(t, e) { - return ( - (t.openCursor().onsuccess = function () { - this.result && (e(this.result), this.result.continue()); - }), - r(t.transaction) - ); - } - var c = Object.freeze({ - __proto__: null, - clear: function (t = l()) { - return t("readwrite", (t) => (t.clear(), r(t.transaction))); - }, - createStore: e, - del: function (e, t = l()) { - return t("readwrite", (t) => (t.delete(e), r(t.transaction))); - }, - delMany: function (t, e = l()) { - return e( - "readwrite", - (e) => (t.forEach((t) => e.delete(t)), r(e.transaction)) - ); - }, - entries: function (n = l()) { - return n("readonly", (t) => { - if (t.getAll && t.getAllKeys) - return Promise.all([ - r(t.getAllKeys()), - r(t.getAll()) - ]).then(([t, n]) => t.map((t, e) => [t, n[e]])); - const e = []; - return n("readonly", (t) => - a(t, (t) => e.push([t.key, t.value])).then(() => e) - ); - }); - }, - get: o, - getMany: function (t, e = l()) { - return e("readonly", (e) => - Promise.all(t.map((t) => r(e.get(t)))) - ); - }, - keys: function (t = l()) { - return t("readonly", (t) => { - if (t.getAllKeys) return r(t.getAllKeys()); - const e = []; - return a(t, (t) => e.push(t.key)).then(() => e); - }); - }, - promisifyRequest: r, - set: i, - setMany: function (t, e = l()) { - return e( - "readwrite", - (e) => ( - t.forEach((t) => e.put(t[1], t[0])), r(e.transaction) - ) - ); - }, - update: function (s, a, t = l()) { - return t( - "readwrite", - (n) => - new Promise((t, e) => { - n.get(s).onsuccess = function () { - try { - n.put(a(this.result), s), - t(r(n.transaction)); - } catch (t) { - e(t); - } - }; - }) - ); - }, - values: function (t = l()) { - return t("readonly", (t) => { - if (t.getAll) return r(t.getAll()); - const e = []; - return a(t, (t) => e.push(t.value)).then(() => e); - }); - } - }), - f = Object.freeze({ - GET: "GET", - SET: "SET", - DELETE: "DELETE", - UPDATE: "UPDATE" - }); - class u { - constructor() { - (this.listeners = Object.values(f).reduce( - (t, e) => ((t[e] = new Set()), t), - {} - )), - (this.on = function (t, e) { - if (this.listeners[t].has(e)) - throw Error(`This listener on ${t} already exists.`); - this.listeners[t].add(e); - }), - (this.once = function (t, n) { - const s = (t, e) => { - this.off(t, s), n(t, e); - }; - this.on(t, s); - }), - (this.off = function (t, e) { - this.listeners[t].delete(e); - }), - (this.emit = function (t, e) { - for (const n of this.listeners[t]) n(t, e); - }); - for (const e of Object.values(f)) - this[e.toLowerCase()] = (t) => { - this.emit(e, t); - }; - } - } - function d(t = {}, { nestArrays: o = !0 } = {}) { - const i = new u(); - return Object.assign( - { - store: (function a(t, r, l) { - return new Proxy(t, { - get(t, e) { - var n = [...l, e], - s = t[e]; - return null != s - ? (i.get({ path: n, value: s }), - (!o && Array.isArray(s)) || - "object" != typeof s - ? s - : a(s, r, n)) - : a((t[e] = {}), r, n); - }, - set(t, e, n) { - return ( - (t[e] = n), - i.set({ path: [...l, e], value: n }), - !0 - ); - }, - deleteProperty(t, e) { - return ( - delete t[e] && - (i.delete({ path: [...l, e] }), !0) - ); - }, - has(t, e) { - return ( - ("object" != typeof t[e] || - 0 !== Object.keys(t[e]).length) && - e in t - ); - } - }); - })(t, t, []), - ghost: t - }, - i - ); - } - var m = Object.freeze({ __proto__: null, Events: f, make: d }); - const { - useRef: p, - useReducer: g, - useEffect: O - } = s.findByProps("createElement"); - function h(e, n = !1, s = () => !0) { - p(e.ghost); - const [, a] = g((t) => ~t, 0); - O(() => { - function t(t, e) { - s(t, e) && a(); - } - return ( - e.on(f.UPDATE, t), - n || (e.on(f.SET, t), e.on(f.DELETE, t)), - () => { - e.off(f.UPDATE, t), - n || (e.off(f.SET, t), e.off(f.DELETE, t)); - } - ); - }, []), - e.ghost; - } - const y = s["findByProps"], - v = y("createElement"); - c = { - React: v, - ReactDOM: y("hydrate"), - dispatch: y("dirtyDispatch").__proto__, - idb: c, - nests: m - }; - function b(r, l = !1) { - return function (t, ...e) { - (e = e.join("")), - void 0 === t && - ((t = ["Default"]), - b("warn")( - "Requested hierarchy has not been passed to logger function, defaulting to default string", - ["Logger"] - )), - "string" == typeof t && ((e = t), (t = ["Default"])); - let n = ["Demoncord", ...t, e], - s = [], - a = ""; - l && n.splice(0, 1); - for (let t = 0; t < n.length; t++) - t === n.length - 1 - ? ((a += "%c" + n[t]), - s.push( - "\n\n@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@700&display=swap');\nfont-family: 'IBM Plex Mono', monospace;\n\ncolor: #E2EECE;\nfont-weight: 500;\nfont-size: 0.9em;\n" - )) - : ((a += "%c" + n[t] + "%c "), - s.push( - "\n\n@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@700&display=swap');\nfont-family: 'IBM Plex Mono', monospace;\n\ncolor: #1d1131;\nbackground-color: #aa8dd8;\nfont-weight: 600;\nfont-size: 0.9em;\npadding: 0px 5px 1px 5px;\nborder-radius: 5px;\n", - "" - )); - r(a, ...s); - }; - } - m = { - logger: { - log: b(console.log), - warn: b(console.warn), - error: b(console.error), - trace: b(console.trace), - makeLogger: b - } - }; - const w = d(); - async function E(t) { - const e = demon.summon("internal/nest"), - n = await o("demon"); - var s; - n.plugins[t] && - n.status[t].running && - ((s = w.store[t].ctx), - (0, eval)(n.plugins[t].initialize).onStop(s)), - delete n.status[t], - delete n.plugins[t], - (e.store.pluginsList = n.plugins), - (e.store.pluginsStatus = n.status), - await i("demon", n); - } - async function N(e) { - const t = demon.summon("internal/nest"), - n = await o("demon"); - var s; - n.plugins[e] && - (!(function (t) { - let e = void 0, - n = t[0], - s = 1; - for (; s < t.length; ) { - var a = t[s]; - const r = t[s + 1]; - if ( - ((s += 2), - ("optionalAccess" === a || "optionalCall" === a) && - null == n) - ) - return; - "access" === a || "optionalAccess" === a - ? ((e = n), (n = r(n))) - : ("call" !== a && "optionalCall" !== a) || - ((n = r((...t) => n.call(e, ...t))), (e = void 0)); - } - return n; - })([ - n, - "access", - (t) => t.status, - "access", - (t) => t[e], - "optionalAccess", - (t) => t.running - ]) - ? ((s = (0, eval)(n.plugins[e].initialize).onStart()), - (w.store[e].ctx = s), - (n.status[e] = { running: !0 })) - : (console.log(n.status[e].ctx), - (s = w.store[e].ctx), - (0, eval)(n.plugins[e].initialize).onStop(s), - (n.status[e].running = !1))), - (t.store.pluginsList = n.plugins), - (t.store.pluginsStatus = n.status), - await i("demon", n); - } - var x = { - init: async function () { - const t = demon.summon("internal/nest"), - s = - (window.__demon || (window.__demon = {}), - (await o("demon")) || - (await i("demon", { status: {}, plugins: {} })), - await o("demon")); - (s.status = {}), - Object.keys(s.plugins).forEach((t) => { - t = s.plugins[t]; - const e = (0, eval)(t.initialize); - var n = e.onStart(); - (w.store[t.meta.name].ctx = n), - (s.status[t.meta.name] = { running: !0 }); - }), - (t.store.pluginsList = s.plugins), - (t.store.pluginsStatus = s.status), - await i("demon", s); - }, - add: async function (t, e) { - const n = demon.summon("internal/nest"), - s = await o("demon"); - var a = (0, eval)(t); - a.meta && (e = a.meta), - (s.plugins[e.name] = { initialize: t, meta: e }), - (n.store.pluginsList = s.plugins), - (n.store.pluginsStatus = s.status), - await i("demon", s); - }, - del: E, - toggle: N - }; - const S = ["a", "b", "i"], - C = new Map(); - function D(t, e, n, s) { - const a = C.get(t), - r = a?.[e]; - return ( - !!r?.[s].has(n) && - (r[s].delete(n), - S.every((t) => 0 === r[t].size) && - (Reflect.defineProperty(t, e, { - value: r.o, - writable: !0, - configurable: !0 - }) || (t[e] = r.o), - delete a[e]), - 0 == Object.keys(a).length && C.delete(t), - !0) - ); - } - var P = - (f) => - (s, a, t, r = !1) => { - if ("function" != typeof a[s]) - throw new Error( - s + " is not a function in " + a.constructor.name - ); - C.has(a) || C.set(a, {}); - const e = C.get(a); - if (!e[s]) { - const i = a[s], - c = - ((e[s] = { - o: i, - b: new Map(), - i: new Map(), - a: new Map() - }), - (t, e, n) => { - e = (function (t, e, n, s, a) { - const r = C.get(e)?.[t]; - if (!r) - return a - ? Reflect.construct(e[t], n, s) - : e[t].apply(s, n); - for (const c of r.b.values()) { - var l = c.call(s, n); - Array.isArray(l) && (n = l); - } - let o = (...t) => - a - ? Reflect.construct(r.o, t, s) - : r.o.apply(s, t); - for (const f of r.i.values()) { - const u = o; - o = (...t) => f.call(s, t, u); - } - let i = o(...n); - for (const d of r.a.values()) - i = d.call(s, n, i) ?? i; - return i; - })(s, a, e, t, n); - return r && o(), e; - }); - var n = new Proxy(i, { - apply: (t, e, n) => c(e, n, !1), - construct: (t, e) => c(i, e, !0), - get: (t, e, n) => - "toString" == e - ? i.toString.bind(i) - : Reflect.get(t, e, n) - }); - Reflect.defineProperty(a, s, { - value: n, - configurable: !0, - writable: !0 - }) || (a[s] = n); - } - const l = Symbol(), - o = () => D(a, s, l, f); - return e[s][f].set(l, t), o; - }, - R = P("b"), - B = P("i"); - const k = P("a"); - P = Object.freeze({ - __proto__: null, - instead: B, - before: R, - after: k, - unpatchAll: function () { - for (var [t, e] of C.entries()) - for (const n in e) - for (const s of S) - for (const a of e[n]?.[s].keys() ?? []) D(t, n, a, s); - } - }); - const A = - "/home/ruthenic/Coding/Javascript/demoncord/demoncord-rewrite/src/api/ui/settings/plugincard.jsx", - z = s.findByProps("Sizes", "Tags"), - I = s.findByDisplayName("Card"), - F = (s.findByDisplayName("Flex"), s.findByDisplayName("FormText")), - U = - (s.findByProps("BorderColors", "Colors"), - s.findByDisplayName("FormDivider"), - s.findByDisplayName("Switch")); - var H = (t) => ( - h(t.nest), - t.nest.ghost.pluginsList[t.name] && t.nest.ghost.pluginsStatus[t.name] - ? v.createElement( - v.Fragment, - null, - v.createElement( - I, - { - type: "cardPrimary", - className: "demon-settings-card-base", - outline: !1, - editable: !1, - __self: void 0, - __source: { fileName: A, lineNumber: 19 } - }, - v.createElement( - z, - { - className: "demon-settings-card-header", - size: z.Sizes.SIZE_20, - __self: void 0, - __source: { fileName: A, lineNumber: 20 } - }, - t.name - ), - v.createElement("hr", { - className: "demon-settings-card-divider", - __self: void 0, - __source: { fileName: A, lineNumber: 23 } - }), - v.createElement( - F, - { - className: "demon-settings-card-desc", - __self: void 0, - __source: { fileName: A, lineNumber: 24 } - }, - t.nest.ghost.pluginsList[t.name].meta.desc - ), - v.createElement( - "svg", - { - position: "top", - onClick: async () => { - E(t.name); - }, - className: "demon-settings-card-delete", - viewBox: "0 0 24 24", - __self: void 0, - __source: { fileName: A, lineNumber: 27 } - }, - v.createElement("path", { - fill: "var(--text-muted)", - d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z", - __self: void 0, - __source: { fileName: A, lineNumber: 35 } - }) - ), - v.createElement(U, { - className: "demon-settings-card-switch", - checked: t.nest.ghost.pluginsStatus[t.name].running, - onChange: async () => { - N(t.name); - }, - __self: void 0, - __source: { fileName: A, lineNumber: 37 } - }) - ) - ) - : null - ); - const M = - "/home/ruthenic/Coding/Javascript/demoncord/demoncord-rewrite/src/api/ui/settings/plugins.jsx", - J = s.findByProps("Sizes", "Tags"), - K = - (s.findByDisplayName("FormTitle"), - s.findByDisplayName("FormSection"), - s.findByDisplayName("FormDivider")); - var V = () => { - const e = demon.summon("internal/nest"); - return ( - h(e), - v.createElement( - v.Fragment, - null, - v.createElement( - J, - { - size: "demon-settings-header-size30", - __self: void 0, - __source: { fileName: M, lineNumber: 14 } - }, - "Plugins" - ), - v.createElement(K, { - className: "demon-settings-divider", - __self: void 0, - __source: { fileName: M, lineNumber: 15 } - }), - Object.keys(e.ghost.pluginsList).map((t) => - v.createElement( - v.Fragment, - null, - v.createElement(H, { - name: t, - nest: e, - __self: void 0, - __source: { fileName: M, lineNumber: 18 } - }) - ) - ) - ) - ); - }; - const j = - "/home/ruthenic/Coding/Javascript/demoncord/demoncord-rewrite/src/api/ui/settings/hummus.jsx", - $ = s.findByDisplayName("Checkbox"); - class q extends v.Component { - constructor(t) { - super(t), (this.state = { tg: 0 }); - } - render() { - const n = demon.summon("internal/nest"); - return v.createElement( - "div", - { - className: "control-group demon-settings-card-header", - __self: this, - __source: { fileName: j, lineNumber: 17 } - }, - v.createElement( - "label", - { - className: "demon-settings-header-size30 ", - __self: this, - __source: { fileName: j, lineNumber: 18 } - }, - "Plugins" - ), - Object.keys(n.ghost.pluginsList).map((e) => - v.createElement( - "div", - { - className: "demon-settings-card-base", - __self: this, - __source: { fileName: j, lineNumber: 20 } - }, - v.createElement( - "span", - { - __self: this, - __source: { fileName: j, lineNumber: 20 } - }, - v.createElement( - $, - { - className: - "demon-stub-plugin-checkbox-" + e, - checked: n.ghost.pluginsStatus[e].running, - onChange: async () => { - N(e); - const t = - document.getElementsByClassName( - "demon-stub-plugin-checkbox-" + - e - )[0]; - n.ghost.pluginsStatus[e].running - ? (t.value = "off") - : (t.value = "on"), - this.setState({ - tg: !this.state.tg - }); - }, - __self: this, - __source: { fileName: j, lineNumber: 21 } - }, - e - ) - ) - ) - ) - ); - } - } - function T(t) { - const e = document.createElement("style"); - (e.className = "demon-element-css"), - (e.innerHTML = t), - document.head.appendChild(e); - } - var L = { - injectCSS: T, - createClass: function (t, e) { - T( - `.${t} {${Object.entries(e) - .map(([t, e]) => t + ":" + e) - .join(";")}}` - ); - } - }; - const G = s.findByDisplayName("SettingsView"); - B = { - init: function () { - if ( - (L.createClass("demon-settings-divider", { - "margin-top": "10px", - "margin-bottom": "10px", - height: "1px" - }), - L.createClass("demon-settings-card-divider", { - "margin-top": "5px", - "margin-bottom": "5px", - "margin-left": "10px", - "margin-right": "10px", - height: "1px", - border: "thin solid var(--background-modifier-accent)" - }), - L.createClass("demon-settings-card-base", { - "margin-bottom": "10px" - }), - L.createClass("demon-settings-card-header", { - "margin-left": "10px", - "margin-top": "10px" - }), - L.createClass("demon-settings-card-desc", { - color: "var(--header-secondary)", - display: "inline-block", - "font-size": "15px", - "line-height": "15px", - "margin-left": "10px", - "margin-top": "5px", - "margin-bottom": "10px" - }), - L.createClass("demon-settings-card-switch", { - "margin-right": "10px", - "margin-top": "0px", - "margin-bottom": "10px", - float: "right" - }), - L.createClass("demon-settings-card-delete", { - "margin-right": "5px", - float: "right", - width: "24px", - cursor: "pointer" - }), - L.createClass("demon-settings-header-size30", { - "font-size": "30px", - "line-height": "34px" - }), - window.webpackChunkdiscord_app) - ) - k( - "getPredicateSections", - G.prototype, - (t, e) => ( - e.unshift( - { section: "HEADER", label: "Demoncord" }, - { - section: "demoncord", - label: "Plugins", - element: V - }, - { section: "DIVIDER" } - ), - e - ) - ); - else { - var t = s.findByProps("getUserSettingsModalSections"); - const n = s.findByProps("TabBarItem"); - k("render", t.default.prototype, (t, e) => { - e.props.children[0].props.children.props.children[1].push( - v.createElement( - n.TabBarItem, - { key: "demoncord" }, - "Plugins" - ) - ), - "demoncord" === - e.props.children[0].props.children.props - .selectedItem && - (e.props.children[1].props.children[0].props.children = - v.createElement(q, {}, "")); - }); - } - } - }; - const Z = { - modules: { webpack: s, common: c }, - utils: m, - plugins: x, - internal: { nest: c.nests.make() }, - css: L, - patcher: P, - stolas: { - monologue: () => - _.sample([ - [].flat[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ]( - "ret" + - ([][[]] + [])[0] + - "r" + - ([][[]] + [])[1] + - (NaN + [].flat)[11] + - "e" + - (31)[ - "t" + - (!0 + [].flat)[10] + - ""[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ][ - ([][[]] + [])[1] + - "a" + - ((0)[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ] + [])[11] + - "e" - ] - ]("32") + - "al" - )()( - [].flat[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ]( - "ret" + - ([][[]] + [])[0] + - "r" + - ([][[]] + [])[1] + - ""[ - "f" + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "t" + - ([].flat + [])[3] + - (!0 + [].flat)[10] + - "l" + - (!0 + [].flat)[10] + - "r" - ]()[12] + - ("t42t127t150e" + - ([][[]] + [])[1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [1] + - [1] + - "t" + - [4] + - [7] + - "t" + - [1] + - [5] + - [5] + - "t" + - [4] + - [0] + - "lt" + - [1] + - [5] + - [7] + - ([][[]] + [])[1] + - "elt" + - [1] + - [7] + - [1] + - "t" + - [5] + - [4] + - "t" + - [4] + - [0] + - "t" + - [1] + - [1] + - [1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [4] + - [2] + - "et" + - [1] + - [4] + - [3] + - "t" + - [1] + - [5] + - [7] + - "t" + - [1] + - [5] + - [5] + - "et" + - [4] + - [0] + - "t" + - [1] + - [5] + - [0] + - ([][[]] + [])[0] + - ([][[]] + [])[1] + - "t" + - [1] + - [4] + - [7] + - "rt" + - [1] + - [7] + - [1] + - ".t" + - [4] + - [0] + - "t" + - [1] + - [0] + - [1] + - ([][[]] + [])[1] + - ([][[]] + [])[2] + - "t" + - [4] + - [0] + - "t" + - [1] + - [6] + - [7] + - "t" + - [1] + - [5] + - [0] + - "e" + - ([][[]] + [])[1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [1] + - [1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [4] + - [2] + - "et" + - [1] + - [4] + - [3] + - "t" + - [1] + - [5] + - [7] + - "t" + - [1] + - [5] + - [5] + - "et" + - [4] + - [0] + - "t" + - [1] + - [5] + - [0] + - ([][[]] + [])[0] + - ([][[]] + [])[1] + - "t" + - [1] + - [4] + - [7] + - "rt" + - [1] + - [7] + - [1] + - "t" + - [5] + - [4] + - "t" + - [4] + - [0] + - "t" + - [1] + - [1] + - [1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [6] + - [7] + - "a" + - ([][[]] + [])[1] + - "t" + - [1] + - [6] + - [4] + - "t" + - [4] + - [0] + - "t" + - [1] + - [6] + - [4] + - "t" + - [1] + - [5] + - [7] + - "t" + - [4] + - [0] + - "t" + - [1] + - [4] + - [3] + - "t" + - [1] + - [5] + - [0] + - "t" + - [1] + - [5] + - [7] + - "t" + - [1] + - [5] + - [3] + - "et" + - [4] + - [0] + - "t" + - [1] + - [5] + - [7] + - ([][[]] + [])[1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [6] + - [4] + - "t" + - [1] + - [5] + - [0] + - "at" + - [1] + - [6] + - [4] + - "t" + - [4] + - [0] + - "re" + - ([][[]] + [])[2] + - "t" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [4] + - [0] + - "t" + - [1] + - [5] + - [7] + - "ft" + - [4] + - [0] + - "t" + - [1] + - [7] + - [1] + - "t" + - [1] + - [5] + - [7] + - ([][[]] + [])[0] + - "rs...t" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [4] + - [0] + - "t" + - [1] + - [7] + - [1] + - "t" + - [1] + - [5] + - [7] + - ([][[]] + [])[0] + - "rt" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [4] + - [0] + - "a" + - ([][[]] + [])[1] + - ([][[]] + [])[2] + - "t" + - [4] + - [0] + - "l" + - ([!1] + [][[]])[10] + - "t" + - [1] + - [4] + - [3] + - "t" + - [1] + - [5] + - [3] + - "t" + - [4] + - [0] + - "allt" + - [4] + - [0] + - "t" + - [1] + - [5] + - [7] + - "ft" + - [4] + - [0] + - "t" + - [1] + - [7] + - [1] + - "t" + - [1] + - [5] + - [7] + - ([][[]] + [])[0] + - "rt" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [4] + - "t" + - [4] + - [0] + - "t" + - [1] + - [4] + - [2] + - "eft" + - [1] + - [5] + - [7] + - "ret" + - [4] + - [0] + - "t" + - [1] + - [6] + - [4] + - "at" + - [1] + - [5] + - [3] + - ([!1] + [][[]])[10] + - ([][[]] + [])[1] + - "t" + - [1] + - [4] + - [7] + - "t" + - [4] + - [0] + - "t" + - [1] + - [5] + - [7] + - ([][[]] + [])[0] + - "t" + - [1] + - [6] + - [4] + - "t" + - [4] + - [0] + - "t" + - [1] + - [7] + - [1] + - "t" + - [1] + - [5] + - [7] + - ([][[]] + [])[0] + - "rt" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [4] + - "t" + - [4] + - [0] + - "a" + - ([][[]] + [])[1] + - ([][[]] + [])[2] + - "t" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [4] + - [0] + - "t" + - [1] + - [6] + - [7] + - ([!1] + [][[]])[10] + - "t" + - [1] + - [6] + - [4] + - "t" + - [1] + - [5] + - [0] + - "t" + - [4] + - [0] + - "t" + - [1] + - [5] + - [5] + - "t" + - [1] + - [5] + - [7] + - "ret" + - [4] + - [0] + - "t" + - [1] + - [6] + - [4] + - "eet" + - [1] + - [6] + - [4] + - "t" + - [1] + - [5] + - [0] + - "t" + - [4] + - [0] + - ([][[]] + [])[0] + - ([][[]] + [])[1] + - "t" + - [1] + - [6] + - [4] + - ([!1] + [][[]])[10] + - "lt" + - [4] + - [0] + - "t" + - [1] + - [7] + - [1] + - "t" + - [1] + - [5] + - [7] + - ([][[]] + [])[0] + - "t" + - [4] + - [7] + - "ret" + - [4] + - [0] + - "st" + - [1] + - [4] + - [3] + - "reat" + - [1] + - [5] + - [5] + - ([!1] + [][[]])[10] + - ([][[]] + [])[1] + - "t" + - [1] + - [4] + - [7] + - "t" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [4] + - [0] + - "l" + - ([!1] + [][[]])[10] + - "t" + - [1] + - [5] + - [3] + - "et" + - [4] + - [0] + - "at" + - [4] + - [0] + - "t" + - [1] + - [0] + - [6] + - "t" + - [1] + - [2] + - [5] + - "t" + - [1] + - [0] + - [3] + - "t" + - [1] + - [1] + - [3] + - "t" + - [1] + - [1] + - [1] + - "Nt" + - [1] + - [0] + - [7] + - "t" + - [4] + - [0] + - "t" + - [1] + - [4] + - [2] + - "at" + - [1] + - [4] + - [2] + - "t" + - [1] + - [7] + - [1] + - "t" + - [5] + - [5] + - "t" + - [5] + - [5] + - "t" + - [4] + - [1] + - "t" + - [4] + - [2]) - [ - "s" + - (211)[ - "t" + - (!0 + [].flat)[10] + - ""[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ][ - ([][[]] + [])[1] + - "a" + - ((0)[ - ([].flat + - [])[3] + - (!0 + - [] - .flat)[10] + - ([][[]] + - [])[1] + - "str" + - ([][[]] + - [])[0] + - ([].flat + - [])[3] + - "t" + - (!0 + - [] - .flat)[10] + - "r" - ] + [])[11] + - "e" - ] - ]("31")[1] + - "l" + - ([!1] + [][[]])[10] + - "t" - ]("t") - [ - ([][ - "e" + - ([][[]] + [])[1] + - "tr" + - ([!1] + [][[]])[10] + - "es" - ]() + [])[3] + - (!0 + [].flat)[10] + - ([!1] + [][[]])[10] + - ([][[]] + [])[1] - ]( - ([].flat[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ]( - "ret" + - ([][[]] + [])[0] + - "r" + - ([][[]] + [])[1] + - "false0"[ - ([!1] + [][[]])[10] + - "tal" + - ([!1] + [][[]])[10] + - ([].flat + [])[3] + - "s" - ]()[10] + - !1 + - "false0"[ - ([!1] + [][[]])[10] + - "tal" + - ([!1] + [][[]])[10] + - ([].flat + [])[3] + - "s" - ]()[10] - )()[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ]( - "false0"[ - ([!1] + [][[]])[10] + - "tal" + - ([!1] + [][[]])[10] + - ([].flat + [])[3] + - "s" - ]()[10] - ) + [])[1] - ) + - ""[ - "f" + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "t" + - ([].flat + [])[3] + - (!0 + [].flat)[10] + - "l" + - (!0 + [].flat)[10] + - "r" - ]()[12] - )() - ), - [].flat[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ]( - "ret" + - ([][[]] + [])[0] + - "r" + - ([][[]] + [])[1] + - (+[!1] + [].flat)[11] + - "e" + - (31)[ - "t" + - (!0 + [].flat)[10] + - ""[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ][ - ([][[]] + [])[1] + - "a" + - ((0)[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ] + [])[11] + - "e" - ] - ]("32") + - "al" - )()( - [].flat[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ]( - "ret" + - ([][[]] + [])[0] + - "r" + - ([][[]] + [])[1] + - ""[ - "f" + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "t" + - ([].flat + [])[3] + - (!0 + [].flat)[10] + - "l" + - (!0 + [].flat)[10] + - "r" - ]()[12] + - ("t42t117t150t150t150t54t40t102l" + - ([!1] + [][[]])[10] + - "t" + - [1] + - [6] + - [4] + - "t" + - [1] + - [7] + - [2] + - "t" + - [1] + - [5] + - [7] + - "t" + - [4] + - [1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [1] + - [1] + - "t" + - [4] + - [7] + - "t" + - [1] + - [5] + - [5] + - "t" + - [4] + - [0] + - "st" + - [1] + - [5] + - [7] + - "t" + - [4] + - [0] + - "et" + - [1] + - [7] + - [0] + - "t" + - [1] + - [4] + - [3] + - ([!1] + [][[]])[10] + - "t" + - [1] + - [6] + - [4] + - "e" + - ([][[]] + [])[2] + - "t" + - [4] + - [1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [1] + - [1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [4] + - [3] + - "a" + - ([][[]] + [])[1] + - ([][[]] + [])[1] + - "t" + - [1] + - [5] + - [7] + - "t" + - [1] + - [6] + - [4] + - "t" + - [4] + - [0] + - "t" + - [1] + - [6] + - [7] + - "a" + - ([!1] + [][[]])[10] + - "t" + - [1] + - [6] + - [4] + - "t" + - [4] + - [0] + - "t" + - [1] + - [6] + - [4] + - "t" + - [1] + - [5] + - [7] + - "t" + - [4] + - [0] + - "feelt" + - [4] + - [0] + - "t" + - [1] + - [7] + - [1] + - "t" + - [1] + - [5] + - [7] + - ([][[]] + [])[0] + - "rt" + - [4] + - [0] + - "sl" + - ([!1] + [][[]])[10] + - "t" + - [1] + - [5] + - [5] + - "t" + - [1] + - [7] + - [1] + - "t" + - [4] + - [0] + - "t" + - [1] + - [4] + - [3] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [1] + - [5] + - [3] + - "t" + - [4] + - [0] + - ([!1] + [][[]])[10] + - ([][[]] + [])[1] + - "s" + - ([!1] + [][[]])[10] + - ([][[]] + [])[2] + - "et" + - [4] + - [0] + - "t" + - [1] + - [5] + - [7] + - "ft" + - [4] + - [0] + - "t" + - [1] + - [5] + - [5] + - "t" + - [1] + - [7] + - [1] + - "t" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - ".t" + - [4] + - [0] + - "t" + - [1] + - [2] + - [4] + - "t" + - [1] + - [5] + - [7] + - "t" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [4] + - [0] + - "t" + - [1] + - [6] + - [4] + - "t" + - [1] + - [5] + - [0] + - "et" + - ([][[]] + [])[0] + - [2] + - [0] + - [1] + - [4] + - "t" + - [4] + - [0] + - "...t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [4] + - [0] + - ([][[]] + [])[0] + - "set" + - [4] + - [0] + - "t" + - [1] + - [6] + - [7] + - "t" + - [1] + - [5] + - [0] + - ([!1] + [][[]])[10] + - "let" + - [4] + - [0] + - "t" + - [1] + - [7] + - [1] + - "t" + - [1] + - [5] + - [7] + - ([][[]] + [])[0] + - "t" + - [4] + - [0] + - "a" + - ([][[]] + [])[1] + - ([][[]] + [])[2] + - "t" + - [4] + - [0] + - "t" + - [1] + - [1] + - [1] + - "t" + - [4] + - [0] + - "a" + - ([][[]] + [])[1] + - ([][[]] + [])[2] + - "t" + - [4] + - [0] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [5] + - [2] + - "t" + - [4] + - [0] + - "a" + - ([][[]] + [])[1] + - ([][[]] + [])[2] + - "t" + - [4] + - [0] + - "t" + - [1] + - [5] + - [2] + - "ellt" + - [1] + - [7] + - [1] + - "t" + - [4] + - [0] + - "sa" + - ([][[]] + [])[1] + - ([][[]] + [])[2] + - "t" + - [1] + - [6] + - [7] + - ([!1] + [][[]])[10] + - "t" + - [1] + - [4] + - [3] + - "t" + - [1] + - [5] + - [0] + - "est" + - [4] + - [0] + - "allt" + - [4] + - [0] + - ([][[]] + [])[1] + - ([!1] + [][[]])[10] + - "t" + - [1] + - [4] + - [7] + - "t" + - [1] + - [5] + - [0] + - "t" + - [1] + - [6] + - [4] + - "...t" + - [4] + - [1] + - "t" + - [4] + - [2]) - [ - "s" + - (211)[ - "t" + - (!0 + [].flat)[10] + - ""[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ][ - ([][[]] + [])[1] + - "a" + - ((0)[ - ([].flat + - [])[3] + - (!0 + - [] - .flat)[10] + - ([][[]] + - [])[1] + - "str" + - ([][[]] + - [])[0] + - ([].flat + - [])[3] + - "t" + - (!0 + - [] - .flat)[10] + - "r" - ] + [])[11] + - "e" - ] - ]("31")[1] + - "l" + - ([!1] + [][[]])[10] + - "t" - ]("t") - [ - ([][ - "e" + - ([][[]] + [])[1] + - "tr" + - ([!1] + [][[]])[10] + - "es" - ]() + [])[3] + - (!0 + [].flat)[10] + - ([!1] + [][[]])[10] + - ([][[]] + [])[1] - ]( - ([].flat[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ]( - "ret" + - ([][[]] + [])[0] + - "r" + - ([][[]] + [])[1] + - "false0"[ - ([!1] + [][[]])[10] + - "tal" + - ([!1] + [][[]])[10] + - ([].flat + [])[3] + - "s" - ]()[10] + - !1 + - "false0"[ - ([!1] + [][[]])[10] + - "tal" + - ([!1] + [][[]])[10] + - ([].flat + [])[3] + - "s" - ]()[10] - )()[ - ([].flat + [])[3] + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "str" + - ([][[]] + [])[0] + - ([].flat + [])[3] + - "t" + - (!0 + [].flat)[10] + - "r" - ]( - "false0"[ - ([!1] + [][[]])[10] + - "tal" + - ([!1] + [][[]])[10] + - ([].flat + [])[3] + - "s" - ]()[10] - ) + [])[1] - ) + - ""[ - "f" + - (!0 + [].flat)[10] + - ([][[]] + [])[1] + - "t" + - ([].flat + [])[3] + - (!0 + [].flat)[10] + - "l" + - (!0 + [].flat)[10] + - "r" - ]()[12] - )() - ) - ]) - } - }; - (window.demon = { - summon: function (t) { - const e = t.split("/"); - let n = Z; - return ( - e.forEach((t) => { - if (!(t in n)) throw new Error("Module does not exist!"); - n = n[t]; - }), - n - ); - } - }), - x.init(), - B.init(); -})(); diff --git a/package.json b/package.json index 6eb1dc2..cd5a4eb 100644 --- a/package.json +++ b/package.json @@ -4,22 +4,22 @@ "description": "A client mod for sinners.", "main": "src/index.js", "scripts": { - "build": "rollup --config rollup.config.js", - "watch": "rollup --config rollup.config.js --watch" + "build": "rollup --config rollup.config.js", + "watch": "rollup --config rollup.config.js --watch" }, "author": "Drake", "license": "BSD-3-Clause", "dependencies": { - "@rollup/plugin-alias": "^3.1.9", - "@rollup/plugin-node-resolve": "^13.3.0", - "@rollup/plugin-sucrase": "^4.0.4", - "idb-keyval": "^6.1.0", - "nests": "^2.3.1", - "prettier": "^2.7.1", - "rollup": "^2.73.0", - "rollup-plugin-swc": "^0.2.1", - "rollup-plugin-uglify": "^6.0.4", - "spitroast": "^1.4.2", - "uglify-js": "^3.15.5" + "idb-keyval": "^6.1.0", + "nests": "^2.3.1", + "spitroast": "^1.4.2" + }, + "devDependencies": { + "@rollup/plugin-alias": "^3.1.9", + "@rollup/plugin-node-resolve": "^13.3.0", + "@swc/core": "^1.2.215", + "rollup": "^2.73.0", + "rollup-plugin-swc3": "^0.3.0" } -} + } + \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml deleted file mode 100644 index 59a0925..0000000 --- a/pnpm-lock.yaml +++ /dev/null @@ -1,646 +0,0 @@ -lockfileVersion: 5.4 - -specifiers: - "@rollup/plugin-alias": ^3.1.9 - "@rollup/plugin-node-resolve": ^13.3.0 - "@rollup/plugin-sucrase": ^4.0.4 - idb-keyval: ^6.1.0 - nests: ^2.3.1 - prettier: ^2.7.1 - rollup: ^2.73.0 - rollup-plugin-swc: ^0.2.1 - rollup-plugin-uglify: ^6.0.4 - spitroast: ^1.4.2 - uglify-js: ^3.15.5 - -dependencies: - "@rollup/plugin-alias": 3.1.9_rollup@2.73.0 - "@rollup/plugin-node-resolve": 13.3.0_rollup@2.73.0 - "@rollup/plugin-sucrase": 4.0.4_rollup@2.73.0 - idb-keyval: 6.1.0 - nests: 2.3.1 - prettier: 2.7.1 - rollup: 2.73.0 - rollup-plugin-swc: 0.2.1_rollup@2.73.0 - rollup-plugin-uglify: 6.0.4_rollup@2.73.0 - spitroast: 1.4.2 - uglify-js: 3.15.5 - -packages: - /@babel/code-frame/7.16.7: - resolution: - { - integrity: sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg== - } - engines: { node: ">=6.9.0" } - dependencies: - "@babel/highlight": 7.17.9 - dev: false - - /@babel/helper-validator-identifier/7.16.7: - resolution: - { - integrity: sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw== - } - engines: { node: ">=6.9.0" } - dev: false - - /@babel/highlight/7.17.9: - resolution: - { - integrity: sha512-J9PfEKCbFIv2X5bjTMiZu6Vf341N05QIY+d6FvVKynkG1S7G0j3I0QoRtWIrXhZ+/Nlb5Q0MzqL7TokEJ5BNHg== - } - engines: { node: ">=6.9.0" } - dependencies: - "@babel/helper-validator-identifier": 7.16.7 - chalk: 2.4.2 - js-tokens: 4.0.0 - dev: false - - /@rollup/plugin-alias/3.1.9_rollup@2.73.0: - resolution: - { - integrity: sha512-QI5fsEvm9bDzt32k39wpOwZhVzRcL5ydcffUHMyLVaVaLeC70I8TJZ17F1z1eMoLu4E/UOcH9BWVkKpIKdrfiw== - } - engines: { node: ">=8.0.0" } - peerDependencies: - rollup: ^1.20.0||^2.0.0 - dependencies: - rollup: 2.73.0 - slash: 3.0.0 - dev: false - - /@rollup/plugin-node-resolve/13.3.0_rollup@2.73.0: - resolution: - { - integrity: sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw== - } - engines: { node: ">= 10.0.0" } - peerDependencies: - rollup: ^2.42.0 - dependencies: - "@rollup/pluginutils": 3.1.0_rollup@2.73.0 - "@types/resolve": 1.17.1 - deepmerge: 4.2.2 - is-builtin-module: 3.1.0 - is-module: 1.0.0 - resolve: 1.22.0 - rollup: 2.73.0 - dev: false - - /@rollup/plugin-sucrase/4.0.4_rollup@2.73.0: - resolution: - { - integrity: sha512-YH4J8yoJb5EVnLhAwWxYAQNh2SJOR+SdZ6XdgoKEv6Kxm33riYkM8MlMaggN87UoISP52qAFyZ5ey56wu6umGg== - } - engines: { node: ">=12.0.0" } - peerDependencies: - rollup: ^2.53.1 - dependencies: - "@rollup/pluginutils": 4.2.1 - rollup: 2.73.0 - sucrase: 3.23.0 - dev: false - - /@rollup/pluginutils/3.1.0_rollup@2.73.0: - resolution: - { - integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg== - } - engines: { node: ">= 8.0.0" } - peerDependencies: - rollup: ^1.20.0||^2.0.0 - dependencies: - "@types/estree": 0.0.39 - estree-walker: 1.0.1 - picomatch: 2.3.1 - rollup: 2.73.0 - dev: false - - /@rollup/pluginutils/4.2.1: - resolution: - { - integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ== - } - engines: { node: ">= 8.0.0" } - dependencies: - estree-walker: 2.0.2 - picomatch: 2.3.1 - dev: false - - /@types/estree/0.0.39: - resolution: - { - integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== - } - dev: false - - /@types/node/17.0.33: - resolution: - { - integrity: sha512-miWq2m2FiQZmaHfdZNcbpp9PuXg34W5JZ5CrJ/BaS70VuhoJENBEQybeiYSaPBRNq6KQGnjfEnc/F3PN++D+XQ== - } - dev: false - - /@types/resolve/1.17.1: - resolution: - { - integrity: sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw== - } - dependencies: - "@types/node": 17.0.33 - dev: false - - /ansi-styles/3.2.1: - resolution: - { - integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - } - engines: { node: ">=4" } - dependencies: - color-convert: 1.9.3 - dev: false - - /any-promise/1.3.0: - resolution: - { - integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A== - } - dev: false - - /balanced-match/1.0.2: - resolution: - { - integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - } - dev: false - - /brace-expansion/1.1.11: - resolution: - { - integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - } - dependencies: - balanced-match: 1.0.2 - concat-map: 0.0.1 - dev: false - - /builtin-modules/3.3.0: - resolution: - { - integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== - } - engines: { node: ">=6" } - dev: false - - /chalk/2.4.2: - resolution: - { - integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - } - engines: { node: ">=4" } - dependencies: - ansi-styles: 3.2.1 - escape-string-regexp: 1.0.5 - supports-color: 5.5.0 - dev: false - - /color-convert/1.9.3: - resolution: - { - integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - } - dependencies: - color-name: 1.1.3 - dev: false - - /color-name/1.1.3: - resolution: { integrity: sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= } - dev: false - - /commander/4.1.1: - resolution: - { - integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA== - } - engines: { node: ">= 6" } - dev: false - - /concat-map/0.0.1: - resolution: { integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= } - dev: false - - /deepmerge/4.2.2: - resolution: - { - integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== - } - engines: { node: ">=0.10.0" } - dev: false - - /escape-string-regexp/1.0.5: - resolution: { integrity: sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= } - engines: { node: ">=0.8.0" } - dev: false - - /estree-walker/1.0.1: - resolution: - { - integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg== - } - dev: false - - /estree-walker/2.0.2: - resolution: - { - integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== - } - dev: false - - /fs.realpath/1.0.0: - resolution: - { - integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - } - dev: false - - /fsevents/2.3.2: - resolution: - { - integrity: sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - } - engines: { node: ^8.16.0 || ^10.6.0 || >=11.0.0 } - os: [darwin] - requiresBuild: true - dev: false - optional: true - - /function-bind/1.1.1: - resolution: - { - integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - } - dev: false - - /glob/7.1.6: - resolution: - { - integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== - } - dependencies: - fs.realpath: 1.0.0 - inflight: 1.0.6 - inherits: 2.0.4 - minimatch: 3.1.2 - once: 1.4.0 - path-is-absolute: 1.0.1 - dev: false - - /has-flag/3.0.0: - resolution: { integrity: sha1-tdRU3CGZriJWmfNGfloH87lVuv0= } - engines: { node: ">=4" } - dev: false - - /has/1.0.3: - resolution: - { - integrity: sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== - } - engines: { node: ">= 0.4.0" } - dependencies: - function-bind: 1.1.1 - dev: false - - /idb-keyval/6.1.0: - resolution: - { - integrity: sha512-u/qHZ75rlD3gH+Zah8dAJVJcGW/RfCnfNrFkElC5RpRCnpsCXXhqjVk+6MoVKJ3WhmNbRYdI6IIVP88e+5sxGw== - } - dependencies: - safari-14-idb-fix: 3.0.0 - dev: false - - /inflight/1.0.6: - resolution: - { - integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - } - dependencies: - once: 1.4.0 - wrappy: 1.0.2 - dev: false - - /inherits/2.0.4: - resolution: - { - integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - } - dev: false - - /is-builtin-module/3.1.0: - resolution: - { - integrity: sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg== - } - engines: { node: ">=6" } - dependencies: - builtin-modules: 3.3.0 - dev: false - - /is-core-module/2.9.0: - resolution: - { - integrity: sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A== - } - dependencies: - has: 1.0.3 - dev: false - - /is-module/1.0.0: - resolution: { integrity: sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE= } - dev: false - - /jest-worker/24.9.0: - resolution: - { - integrity: sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw== - } - engines: { node: ">= 6" } - dependencies: - merge-stream: 2.0.0 - supports-color: 6.1.0 - dev: false - - /js-tokens/4.0.0: - resolution: - { - integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - } - dev: false - - /lines-and-columns/1.2.4: - resolution: - { - integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== - } - dev: false - - /merge-stream/2.0.0: - resolution: - { - integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - } - dev: false - - /minimatch/3.1.2: - resolution: - { - integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - } - dependencies: - brace-expansion: 1.1.11 - dev: false - - /mz/2.7.0: - resolution: - { - integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q== - } - dependencies: - any-promise: 1.3.0 - object-assign: 4.1.1 - thenify-all: 1.6.0 - dev: false - - /nests/2.3.1: - resolution: - { - integrity: sha512-mq9g10tzsaGbS/c5RUJVwiJVqo89JA/KIYPpBDQlKnyviJ7EDUaboIWsuWx0Abe49nys8MjnB6vK53KF1m6MUQ== - } - peerDependencies: - react: ">=16.8" - solid-js: ">=1.0.0" - dev: false - - /object-assign/4.1.1: - resolution: - { - integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== - } - engines: { node: ">=0.10.0" } - dev: false - - /once/1.4.0: - resolution: - { - integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - } - dependencies: - wrappy: 1.0.2 - dev: false - - /path-is-absolute/1.0.1: - resolution: - { - integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - } - engines: { node: ">=0.10.0" } - dev: false - - /path-parse/1.0.7: - resolution: - { - integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - } - dev: false - - /picomatch/2.3.1: - resolution: - { - integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - } - engines: { node: ">=8.6" } - dev: false - - /pirates/4.0.5: - resolution: - { - integrity: sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== - } - engines: { node: ">= 6" } - dev: false - - /prettier/2.7.1: - resolution: - { - integrity: sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== - } - engines: { node: ">=10.13.0" } - hasBin: true - dev: false - - /resolve/1.22.0: - resolution: - { - integrity: sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw== - } - hasBin: true - dependencies: - is-core-module: 2.9.0 - path-parse: 1.0.7 - supports-preserve-symlinks-flag: 1.0.0 - dev: false - - /rollup-plugin-swc/0.2.1_rollup@2.73.0: - resolution: - { - integrity: sha512-wWRYt9tC0aIBvRQHNnVtwJ6DRPDj9XYpOAcOyFB11sKSkR/R+NAmbrjBACCPNVmZcxg6joV29wXgb5mU1DI7eA== - } - peerDependencies: - "@swc/core": ">=1.0" - rollup: ">=1.5.0" - dependencies: - "@rollup/pluginutils": 4.2.1 - rollup: 2.73.0 - dev: false - - /rollup-plugin-uglify/6.0.4_rollup@2.73.0: - resolution: - { - integrity: sha512-ddgqkH02klveu34TF0JqygPwZnsbhHVI6t8+hGTcYHngPkQb5MIHI0XiztXIN/d6V9j+efwHAqEL7LspSxQXGw== - } - peerDependencies: - rollup: ">=0.66.0 <2" - dependencies: - "@babel/code-frame": 7.16.7 - jest-worker: 24.9.0 - rollup: 2.73.0 - serialize-javascript: 2.1.2 - uglify-js: 3.15.5 - dev: false - - /rollup/2.73.0: - resolution: - { - integrity: sha512-h/UngC3S4Zt28mB3g0+2YCMegT5yoftnQplwzPqGZcKvlld5e+kT/QRmJiL+qxGyZKOYpgirWGdLyEO1b0dpLQ== - } - engines: { node: ">=10.0.0" } - hasBin: true - optionalDependencies: - fsevents: 2.3.2 - dev: false - - /safari-14-idb-fix/3.0.0: - resolution: - { - integrity: sha512-eBNFLob4PMq8JA1dGyFn6G97q3/WzNtFK4RnzT1fnLq+9RyrGknzYiM/9B12MnKAxuj1IXr7UKYtTNtjyKMBog== - } - dev: false - - /serialize-javascript/2.1.2: - resolution: - { - integrity: sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ== - } - dev: false - - /slash/3.0.0: - resolution: - { - integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - } - engines: { node: ">=8" } - dev: false - - /spitroast/1.4.2: - resolution: - { - integrity: sha512-iEBsKg3EXTQj2nikYIMtOE5YSqbI5CtRxVYI+Gh+9HeQxf4u86UWF5yC5eTVAoReZSogbD2M37JYG8TYGBnFTg== - } - dev: false - - /sucrase/3.23.0: - resolution: - { - integrity: sha512-xgC1xboStzGhCnRywlBf/DLmkC+SkdAKqrNCDsxGrzM0phR5oUxoFKiQNrsc2D8wDdAm03iLbSZqjHDddo3IzQ== - } - engines: { node: ">=8" } - hasBin: true - dependencies: - commander: 4.1.1 - glob: 7.1.6 - lines-and-columns: 1.2.4 - mz: 2.7.0 - pirates: 4.0.5 - ts-interface-checker: 0.1.13 - dev: false - - /supports-color/5.5.0: - resolution: - { - integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - } - engines: { node: ">=4" } - dependencies: - has-flag: 3.0.0 - dev: false - - /supports-color/6.1.0: - resolution: - { - integrity: sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== - } - engines: { node: ">=6" } - dependencies: - has-flag: 3.0.0 - dev: false - - /supports-preserve-symlinks-flag/1.0.0: - resolution: - { - integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== - } - engines: { node: ">= 0.4" } - dev: false - - /thenify-all/1.6.0: - resolution: - { - integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA== - } - engines: { node: ">=0.8" } - dependencies: - thenify: 3.3.1 - dev: false - - /thenify/3.3.1: - resolution: - { - integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw== - } - dependencies: - any-promise: 1.3.0 - dev: false - - /ts-interface-checker/0.1.13: - resolution: - { - integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== - } - dev: false - - /uglify-js/3.15.5: - resolution: - { - integrity: sha512-hNM5q5GbBRB5xB+PMqVRcgYe4c8jbyZ1pzZhS6jbq54/4F2gFK869ZheiE5A8/t+W5jtTNpWef/5Q9zk639FNQ== - } - engines: { node: ">=0.8.0" } - hasBin: true - dev: false - - /wrappy/1.0.2: - resolution: - { - integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - } - dev: false diff --git a/rollup.config.js b/rollup.config.js index 685a5ea..d56f25d 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,44 +1,38 @@ import pkjs from "./package.json"; import { defineConfig } from "rollup"; -import { uglify } from "rollup-plugin-uglify"; import { nodeResolve } from "@rollup/plugin-node-resolve"; -import sucrase from "@rollup/plugin-sucrase"; import alias from "@rollup/plugin-alias"; -import { resolve as resolvePath } from "path"; +import { swc } from "rollup-plugin-swc3"; +import { resolve as resolvePath } from "path"; const projectRootDir = resolvePath(__dirname); export default defineConfig({ - input: pkjs.main, - output: { - file: "dist/build.js", - format: "iife", - globals: {} - }, - external: ["React"], - plugins: [ - alias({ - entries: [ - { - find: "nests", - replacement: resolvePath( - projectRootDir, - "node_modules/nests/esm/" - ) - }, - { - find: "react", - replacement: resolvePath( - projectRootDir, - "src/shim_react.js" - ) - } - ] - }), - nodeResolve(), - sucrase({ - exclude: ["node_modules/**"], - transforms: ["jsx"] - }), - uglify() - ] + input: pkjs.main, + output: { + file: "dist/build.js", + format: "iife", + }, + external: ["React"], + plugins: [ + alias({ + entries: [ + { find: "nests", replacement: resolvePath(projectRootDir, "node_modules/nests/esm/") }, + { find: "react", replacement: resolvePath(projectRootDir, "src/shim_react.js") } + ], + }), + nodeResolve(), + swc({ + jsc: { + minify: { + "compress": true + }, + parser: { + "syntax": "ecmascript", + "jsx": true + }, + "target": "es2022", + "baseUrl": "./src" + } + }) + ], });