Facebook
From Innocent Earthworm, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 209
  1. // ==UserScript==
  2. // @name         Bot na e2 test!!!
  3. // @version      1.54
  4. // @description  bot na e2 w trakcie rozbudowy, dziala na NI i SI
  5. // @author       Adi Wilk
  6. // @match        http://gefion.margonem.pl/
  7. // @match        https://gefion.margonem.pl/
  8. // @match        http://brutal.margonem.pl
  9. // @match        https://www.margonem.pl
  10. // @match        http://tarhuna.margonem.pl
  11. // @grant        none
  12. // ==/UserScript==
  13.  
  14. function _instanceof(left, right) {
  15.   if (
  16.     right != null &&
  17.     typeof Symbol !== "undefined" &&
  18.     right[Symbol.hasInstance]
  19.   ) {
  20.     return right[Symbol.hasInstance](left);
  21.   } else {
  22.     return left instanceof right;
  23.   }
  24. }
  25.  
  26. function _slicedToArray(arr, i) {
  27.   return (
  28.     _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest()
  29.   );
  30. }
  31.  
  32. function _nonIterableRest() {
  33.   throw new TypeError("Invalid attempt to destructure non-iterable instance");
  34. }
  35.  
  36. function _iterableToArrayLimit(arr, i) {
  37.   var _arr = [];
  38.   var _n = true;
  39.   var _d = false;
  40.   var _e = undefined;
  41.   try {
  42.     for (
  43.       var _i = arr[Symbol.iterator](), _s;
  44.       !(_n = (_s = _i.next()).done);
  45.       _n = true
  46.     ) {
  47.       _arr.push(_s.value);
  48.       if (i && _arr.length === i) break;
  49.     }
  50.   } catch (err) {
  51.     _d = true;
  52.     _e = err;
  53.   } finally {
  54.     try {
  55.       if (!_n && _i["return"] != null) _i["return"]();
  56.     } finally {
  57.       if (_d) throw _e;
  58.     }
  59.   }
  60.   return _arr;
  61. }
  62.  
  63. function _arrayWithHoles(arr) {
  64.   if (Array.isArray(arr)) return arr;
  65. }
  66.  
  67. function _typeof(obj) {
  68.   if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  69.     _typeof = function _typeof(obj) {
  70.       return typeof obj;
  71.     };
  72.   } else {
  73.     _typeof = function _typeof(obj) {
  74.       return obj &&
  75.         typeof Symbol === "function" &&
  76.         obj.constructor === Symbol &&
  77.         obj !== Symbol.prototype
  78.         ? "symbol"
  79.         : typeof obj;
  80.     };
  81.   }
  82.   return _typeof(obj);
  83. }
  84.  
  85. function _classCallCheck(instance, Constructor) {
  86.   if (!_instanceof(instance, Constructor)) {
  87.     throw new TypeError("Cannot call a class as a function");
  88.   }
  89. }
  90.  
  91. function _defineProperties(target, props) {
  92.   for (var i = 0; i < props.length; i++) {
  93.     var descriptor = props[i];
  94.     descriptor.enumerable = descriptor.enumerable || false;
  95.     descriptor.configurable = true;
  96.     if ("value" in descriptor) descriptor.writable = true;
  97.     Object.defineProperty(target, descriptor.key, descriptor);
  98.   }
  99. }
  100.  
  101. function _createClass(Constructor, protoProps, staticProps) {
  102.   if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  103.   if (staticProps) _defineProperties(Constructor, staticProps);
  104.   return Constructor;
  105. }
  106.  
  107. (function() {
  108.   var a =
  109.     /*#__PURE__*/
  110.     (function() {
  111.       "use strict";
  112.  
  113.       function a(_a, b, c, d, e, f) {
  114.         _classCallCheck(this, a);
  115.  
  116.         (this.width = b),
  117.           (this.height = c),
  118.           (this.collisions = this.parseCollisions(_a, b, c)),
  119.           (this.additionalCollisions = f || {}),
  120.           (this.start = this.collisions[d.x][d.y]),
  121.           (this.end = this.collisions[e.x][e.y]),
  122.           (this.start.beginning = !0),
  123.           (this.start.g = 0),
  124.           (this.start.f = this.heuristic(this.start, this.end)),
  125.           (this.end.target = !0),
  126.           (this.end.g = 0),
  127.           this.addNeighbours(),
  128.           (this.openSet = []),
  129.           (this.closedSet = []),
  130.           this.openSet.push(this.start);
  131.       }
  132.  
  133.       _createClass(a, [
  134.         {
  135.           key: "parseCollisions",
  136.           value: function parseCollisions(a, c, d) {
  137.             var e = Array(c);
  138.  
  139.             for (var f = 0; f < c; f++) {
  140.               e[f] = Array(d);
  141.  
  142.               for (var g = 0; g < d; g++) {
  143.                 e[f][g] = new b(f, g, "0" !== a.charAt(f + g * c));
  144.               }
  145.             }
  146.  
  147.             return e;
  148.           }
  149.         },
  150.         {
  151.           key: "addNeighbours",
  152.           value: function addNeighbours() {
  153.             for (var _a2 = 0; _a2 < this.width; _a2++) {
  154.               for (var _b = 0; _b < this.height; _b++) {
  155.                 this.addPointNeighbours(this.collisions[_a2][_b]);
  156.               }
  157.             }
  158.           }
  159.         },
  160.         {
  161.           key: "addPointNeighbours",
  162.           value: function addPointNeighbours(a) {
  163.             var _ref = [a.x, a.y],
  164.               b = _ref[0],
  165.               c = _ref[1],
  166.               d = [];
  167.             0 < b && d.push(this.collisions[b - 1][c]),
  168.               0 < c && d.push(this.collisions[b][c - 1]),
  169.               b < this.width - 1 && d.push(this.collisions[b + 1][c]),
  170.               c < this.height - 1 && d.push(this.collisions[b][c + 1]),
  171.               (a.neighbours = d);
  172.           }
  173.         },
  174.         {
  175.           key: "anotherFindPath",
  176.           value: function anotherFindPath() {
  177.             for (; 0 < this.openSet.length; ) {
  178.               var _a3 = this.getLowestF(),
  179.                 _b2 = this.openSet[_a3];
  180.  
  181.               if (_b2 === this.end) return this.reconstructPath();
  182.               this.openSet.splice(_a3, 1), this.closedSet.push(_b2);
  183.               var _iteratorNormalCompletion = true;
  184.               var _didIteratorError = false;
  185.               var _iteratorError = undefined;
  186.  
  187.               try {
  188.                 for (
  189.                   var _iterator = _b2.neighbours[Symbol.iterator](), _step;
  190.                   !(_iteratorNormalCompletion = (_step = _iterator.next())
  191.                     .done);
  192.                   _iteratorNormalCompletion = true
  193.                 ) {
  194.                   var _a4 = _step.value;
  195.                   if (this.closedSet.includes(_a4)) continue;
  196.                   else {
  197.                     var c = _b2.g + 1;
  198.                     var d = !1;
  199.                     this.end != this.collisions[_a4.x][_a4.y] &&
  200.                     (this.openSet.includes(_a4) ||
  201.                       _a4.collision ||
  202.                       this.additionalCollisions[_a4.x + 256 * _a4.y])
  203.                       ? c < _a4.g && !_a4.collision && (d = !0)
  204.                       : (this.openSet.push(_a4),
  205.                         (_a4.h = this.heuristic(_a4, this.end)),
  206.                         (d = !0)),
  207.                       d &&
  208.                         ((_a4.previous = _b2),
  209.                         (_a4.g = c),
  210.                         (_a4.f = _a4.g + _a4.h));
  211.                   }
  212.                 }
  213.               } catch (err) {
  214.                 _didIteratorError = true;
  215.                 _iteratorError = err;
  216.               } finally {
  217.                 try {
  218.                   if (!_iteratorNormalCompletion && _iterator.return != null) {
  219.                     _iterator.return();
  220.                   }
  221.                 } finally {
  222.                   if (_didIteratorError) {
  223.                     throw _iteratorError;
  224.                   }
  225.                 }
  226.               }
  227.             }
  228.           }
  229.         },
  230.         {
  231.           key: "getLowestF",
  232.           value: function getLowestF() {
  233.             var a = 0;
  234.  
  235.             for (var _b3 = 0; _b3 < this.openSet.length; _b3++) {
  236.               this.openSet[_b3].f < this.openSet[a].f && (a = _b3);
  237.             }
  238.  
  239.             return a;
  240.           }
  241.         },
  242.         {
  243.           key: "reconstructPath",
  244.           value: function reconstructPath() {
  245.             var a = [];
  246.  
  247.             for (var _b4 = this.end; _b4 !== this.start; ) {
  248.               a.push(_b4), (_b4 = _b4.previous);
  249.             }
  250.  
  251.             return a;
  252.           }
  253.         },
  254.         {
  255.           key: "heuristic",
  256.           value: function heuristic(a, b) {
  257.             return Math.abs(a.x - b.x) + Math.abs(a.y - b.y);
  258.           }
  259.         }
  260.       ]);
  261.  
  262.       return a;
  263.     })();
  264.  
  265.   var b = function b(a, _b5, c) {
  266.     "use strict";
  267.  
  268.     _classCallCheck(this, b);
  269.  
  270.     (this.x = a),
  271.       (this.y = _b5),
  272.       (this.collision = c),
  273.       (this.g = 1e7),
  274.       (this.f = 1e7),
  275.       (this.neighbours = []),
  276.       (this.beginning = !1),
  277.       (this.target = !1),
  278.       (this.previous = void 0);
  279.   };
  280.  
  281.   new /*#__PURE__*/
  282.   ((function() {
  283.     "use strict";
  284.  
  285.     function _class() {
  286.       _classCallCheck(this, _class);
  287.  
  288.       (this.storage = JSON.parse(localStorage.getItem("adi-bot-storage")) || {
  289.         x: 0,
  290.         y: 0,
  291.         name: "",
  292.         minimalized: !1
  293.       }),
  294.         (this.interface =
  295.           "object" == _typeof(window.Engine)
  296.             ? "ni"
  297.             : "object" == _typeof(window.g)
  298.               ? "si"
  299.               : "none"),
  300.         (this.lootfilterSettings = JSON.parse(
  301.           localStorage.getItem("adi-bot-lootfilterSettings123")
  302.         ) || {
  303.           stat: {
  304.             all: {
  305.               translation: "\u0141ap wszystkie itemki",
  306.               active: !0
  307.             },
  308.             gold: {
  309.               translation: "Z\u0142oto",
  310.               active: !0
  311.             },
  312.             quest: {
  313.               translation: "Questowe",
  314.               active: !0
  315.             },
  316.             runes: {
  317.               translation: "Runy",
  318.               active: !0
  319.             },
  320.             unique: {
  321.               translation: "Unikaty",
  322.               active: !0
  323.             },
  324.             heroic: {
  325.               translation: "Heroiki",
  326.               active: !0
  327.             },
  328.             legendary: {
  329.               translation: "Legendy",
  330.               active: !0
  331.             }
  332.           },
  333.           names: []
  334.         }),
  335.         (this.QuickGroupSettings = JSON.parse(
  336.           localStorage.getItem("adi-bot-QuickGroupSettings12")
  337.         ) || {
  338.           adding: {
  339.             translation: "Automatycznie dodawaj do grupy znaj/klan",
  340.             active: !0
  341.           },
  342.           accepting: {
  343.             translation: "Automatycznie przyjmuj zaproszenia do grupy",
  344.             active: !0
  345.           },
  346.           reSendingMessage: {
  347.             translation: "Automatycznie odpisuj innym graczom",
  348.             active: !0
  349.           }
  350.         }),
  351.         (this.npcToKillId = void 0),
  352.         (this.lastAttackTimestamp = this.timeStamp),
  353.         (this.timerData = JSON.parse(this.getCookie("adi-bot-timer")) || {}),
  354.         (this.refreshTime = [3, 6]),
  355.         (this.delayToRelog = 30),
  356.         (this.waitForNpcRespawn = 120),
  357.         (this.randomAnswers = [
  358.           "nie",
  359.           "kurla kiedys to bylo",
  360.           "super xd",
  361.           "nie mam czasu, nie pisz na razie",
  362.           "zajety jestem",
  363.           "co ?",
  364.           "spierdalaj",
  365.           "idz se kurwa bij co innego",
  366.           "smiec jebany",
  367.           "Xd",
  368.           "co",
  369.           "goÅ‚ fak jorself",
  370.           "a moze nie",
  371.           "xD",
  372.           "xd",
  373.           "ehh wez nie spam",
  374.           "elo",
  375.           "wypad"
  376.         ]),
  377.         (this.answersBeforeAddingToEnemies = [
  378.           "dobra, nie spamxd",
  379.           "papapapaaaa",
  380.           "nara",
  381.           "serio mi sie gadac nie chce elo",
  382.           "zegnam",
  383.           "nara typie",
  384.           "lecisz do wrogow elo",
  385.           "nara c:",
  386.           "heh. elo",
  387.           "nie...",
  388.           "haha. nie "
  389.         ]),
  390.         (this.messagesInc =
  391.           JSON.parse(localStorage.getItem("adi-bot-messages")) || {}),
  392.         (this.isHealing = !1),
  393.         (this.isActuallySendingMessage = !1),
  394.         (this.startInctementingLagRefresher = !1),
  395.         (this.incrementValue = 0),
  396.         this.init();
  397.     }
  398.  
  399.     _createClass(_class, [
  400.       {
  401.         key: "getNpcColsNI",
  402.         value: function getNpcColsNI() {
  403.           var a = {};
  404.  
  405.           var _arr = Object.values(this.npcs);
  406.  
  407.           for (var _i = 0; _i < _arr.length; _i++) {
  408.             var _arr$_i = _arr[_i],
  409.               _b6 = _arr$_i.x,
  410.               c = _arr$_i.y;
  411.             a[_b6 + 256 * c] = !0;
  412.           }
  413.  
  414.           return a;
  415.         }
  416.       },
  417.       {
  418.         key: "chatParser",
  419.         value: function chatParser() {
  420.           var _this = this;
  421.  
  422.           "ni" === this.interface &&
  423.             window.API.addCallbackToEvent("newMsg", function(_ref2) {
  424.               var _ref3 = _slicedToArray(_ref2, 2),
  425.                 a = _ref3[0],
  426.                 b = _ref3[1];
  427.  
  428.               _this.chatFilter(b);
  429.             }),
  430.             "si" === this.interface &&
  431.               window.g.chat.parsers.push(function(a) {
  432.                 _this.chatFilter(a);
  433.               });
  434.         }
  435.       },
  436.       {
  437.         key: "chatFilter",
  438.         value: function chatFilter(a) {
  439.           var b = a.n,
  440.             c = a.t,
  441.             d = a.ts,
  442.             e = a.k;
  443.  
  444.           if (
  445.             "" !== b &&
  446.             b !== this.hero.nick &&
  447.             "System" !== b &&
  448.             !1 !== this.QuickGroupSettings.reSendingMessage.active &&
  449.             5 >= window.unix_time(!0) - d &&
  450.             !this.isActuallySendingMessage
  451.           ) {
  452.             if (
  453.               void 0 !== this.messagesInc[b + this.world] &&
  454.               3 < this.messagesInc[b + this.world]
  455.             )
  456.               return;
  457.             c.toLowerCase().includes(this.hero.nick.toLowerCase()) &&
  458.               0 === e &&
  459.               this.sendMessage(b, e),
  460.               3 === e && this.sendMessage(b, e);
  461.           }
  462.         }
  463.       },
  464.       {
  465.         key: "sendMessage",
  466.         value: function sendMessage(a, b) {
  467.           var _this2 = this;
  468.  
  469.           var c =
  470.             arguments.length > 2 && arguments[2] !== undefined
  471.               ? arguments[2]
  472.               : !1;
  473.           var d = arguments.length > 3 ? arguments[3] : undefined;
  474.           (this.isActuallySendingMessage = !0),
  475.             this.messagesInc[a + this.world] === void 0
  476.               ? (this.messagesInc[a + this.world] = 1)
  477.               : this.messagesInc[a + this.world]++,
  478.             this.saveMessages(),
  479.             3 < this.messagesInc[a + this.world] && (c = !0),
  480.             (d = c
  481.               ? this.answersBeforeAddingToEnemies[
  482.                   Math.floor(
  483.                     Math.random() * this.answersBeforeAddingToEnemies.length
  484.                   )
  485.                 ]
  486.               : this.randomAnswers[
  487.                   Math.floor(Math.random() * this.randomAnswers.length)
  488.                 ]),
  489.             3 === b && (d = "@".concat(a.split(" ").join("_"), " ").concat(d)),
  490.             this.Sleep(1e3 * (Math.floor(11 * Math.random()) + 5)).then(
  491.               function() {
  492.                 window._g("chat", {
  493.                   c: d
  494.                 }),
  495.                   !0 === c && _this2.addToEnemy(a),
  496.                   (_this2.isActuallySendingMessage = !1);
  497.               }
  498.             );
  499.         }
  500.       },
  501.       {
  502.         key: "Sleep",
  503.         value: function Sleep(a) {
  504.           return new Promise(function(b) {
  505.             setTimeout(function() {
  506.               b(null);
  507.             }, a);
  508.           });
  509.         }
  510.       },
  511.       {
  512.         key: "saveMessages",
  513.         value: function saveMessages() {
  514.           localStorage.setItem(
  515.             "adi-bot-messages",
  516.             JSON.stringify(this.messagesInc)
  517.           );
  518.         }
  519.       },
  520.       {
  521.         key: "addToEnemy",
  522.         value: function addToEnemy(a) {
  523.           window._g("friends&a=eadd&nick=".concat(a));
  524.         }
  525.       },
  526.       {
  527.         key: "getWay",
  528.         value: function getWay(b, c) {
  529.           return new a(
  530.             this.collisions,
  531.             this.map.x,
  532.             this.map.y,
  533.             {
  534.               x: this.hero.x,
  535.               y: this.hero.y
  536.             },
  537.             {
  538.               x: b,
  539.               y: c
  540.             },
  541.             this.npccol
  542.           ).anotherFindPath();
  543.         }
  544.       },
  545.       {
  546.         key: "goTo",
  547.         value: function goTo(a, b) {
  548.           var c = this.getWay(a, b);
  549.           Array.isArray(c) &&
  550.             ("ni" === this.interface
  551.               ? (window.Engine.hero.autoPath = c)
  552.               : (window.road = c));
  553.         }
  554.       },
  555.       {
  556.         key: "getDistanceToNpc",
  557.         value: function getDistanceToNpc(a, b) {
  558.           var c = this.getWay(a, b);
  559.           return Array.isArray(c) ? c.length : void 0;
  560.         }
  561.       },
  562.       {
  563.         key: "updateCollisions",
  564.         value: function updateCollisions() {
  565.           var a = [],
  566.             _this$map = this.map,
  567.             b = _this$map.x,
  568.             c = _this$map.y;
  569.  
  570.           for (var d = 0; d < c; d++) {
  571.             for (var _c = 0; _c < b; _c++) {
  572.               a.push(window.Engine.map.col.check(_c, d));
  573.             }
  574.           }
  575.  
  576.           return a.join("");
  577.         }
  578.       },
  579.       {
  580.         key: "initBox",
  581.         value: function initBox() {
  582.           var _this3 = this;
  583.  
  584.           var a = document.createElement("div");
  585.           a.classList.add("adi-bot-box"),
  586.             this.appendText(a, "Wprowad\u017A nazwy elit II:");
  587.           var b = document.createElement("input");
  588.           (b.type = "text"),
  589.             b.classList.add("adi-bot-input-text"),
  590.             (b.value = this.storage.name),
  591.             b.addEventListener("keyup", function() {
  592.               (_this3.storage.name = b.value), _this3.saveStorage();
  593.             }),
  594.             a.appendChild(b),
  595.             this.appendText(a, "Lootfilter:");
  596.  
  597.           var _arr2 = Object.entries(this.lootfilterSettings.stat);
  598.  
  599.           var _loop = function _loop() {
  600.             var _arr2$_i = _slicedToArray(_arr2[_i2], 2),
  601.               b = _arr2$_i[0],
  602.               _arr2$_i$ = _arr2$_i[1],
  603.               c = _arr2$_i$.translation,
  604.               d = _arr2$_i$.active;
  605.  
  606.             _this3.createCheckBox(a, c, d, function(a) {
  607.               (_this3.lootfilterSettings.stat[b].active = a),
  608.                 localStorage.setItem(
  609.                   "adi-bot-lootfilterSettings123",
  610.                   JSON.stringify(_this3.lootfilterSettings)
  611.                 );
  612.             });
  613.           };
  614.  
  615.           for (var _i2 = 0; _i2 < _arr2.length; _i2++) {
  616.             _loop();
  617.           }
  618.  
  619.           this.appendText(a, "\u0141ap itemki po nazwie:");
  620.           var c = document.createElement("input");
  621.           c.classList.add("adi-bot-input-text"),
  622.             (c.tip = "Oddzielaj przecinkiem!"),
  623.             (c.type = "text"),
  624.             (c.value = this.lootfilterSettings.names.join(", ")),
  625.             c.addEventListener("keyup", function() {
  626.               var a = c.value.split(",");
  627.  
  628.               for (var _b7 = 0; _b7 < a.length; _b7++) {
  629.                 a[_b7] = a[_b7].trim();
  630.               }
  631.  
  632.               (_this3.lootfilterSettings.names = a),
  633.                 localStorage.setItem(
  634.                   "adi-bot-lootfilterSettings123",
  635.                   JSON.stringify(_this3.lootfilterSettings)
  636.                 );
  637.             }),
  638.             a.appendChild(c),
  639.             this.appendText(a, "Ustawienia QG:");
  640.  
  641.           var _arr3 = Object.entries(this.QuickGroupSettings);
  642.  
  643.           var _loop2 = function _loop2() {
  644.             var _arr3$_i = _slicedToArray(_arr3[_i3], 2),
  645.               b = _arr3$_i[0],
  646.               _arr3$_i$ = _arr3$_i[1],
  647.               c = _arr3$_i$.translation,
  648.               d = _arr3$_i$.active;
  649.  
  650.             _this3.createCheckBox(a, c, d, function(a) {
  651.               (_this3.QuickGroupSettings[b].active = a),
  652.                 localStorage.setItem(
  653.                   "adi-bot-QuickGroupSettings12",
  654.                   JSON.stringify(_this3.QuickGroupSettings)
  655.                 );
  656.             });
  657.           };
  658.  
  659.           for (var _i3 = 0; _i3 < _arr3.length; _i3++) {
  660.             _loop2();
  661.           }
  662.  
  663.           this.makeBoxDraggable(a, function() {
  664.             (_this3.storage.x = parseInt(a.style.left)),
  665.               (_this3.storage.y = parseInt(a.style.top)),
  666.               _this3.saveStorage(),
  667.               window.message(
  668.                 '<span style="color: red">Zapisano pozycj\u0119 okienka :)</span>'
  669.               );
  670.           }),
  671.             this.storage.hasOwnProperty("minimalized") ||
  672.               ((this.storage.minimalized = !1), this.saveStorage()),
  673.             a.addEventListener("dblclick", function(_ref4) {
  674.               var b = _ref4.x,
  675.                 c = _ref4.y;
  676.               !1 === _this3.storage.minimalized
  677.                 ? ((a.style.width = "10px"),
  678.                   (a.style.height = "10px"),
  679.                   (_this3.storage.minimalized = !0),
  680.                   _this3.changeVisibility(a, !0))
  681.                 : ((a.style.width = "360px"),
  682.                   (a.style.height = "290px"),
  683.                   (_this3.storage.minimalized = !1),
  684.                   _this3.changeVisibility(a, !1)),
  685.                 (a.style.left = b - parseInt(a.style.width) / 2 + "px"),
  686.                 (a.style.top = c - parseInt(a.style.height) / 2 + "px"),
  687.                 (_this3.storage.x = parseInt(a.style.left)),
  688.                 (_this3.storage.y = parseInt(a.style.top)),
  689.                 _this3.saveStorage();
  690.             }),
  691.             "ni" === this.interface
  692.               ? document.querySelector(".game-window-positioner").appendChild(a)
  693.               : document.body.appendChild(a),
  694.             this.initStyle(),
  695.             !0 === this.storage.minimalized &&
  696.               ((a.style.width = "10px"),
  697.               (a.style.height = "10px"),
  698.               this.changeVisibility(a, !0));
  699.         }
  700.       },
  701.       {
  702.         key: "changeVisibility",
  703.         value: function changeVisibility(a, b) {
  704.           var _iteratorNormalCompletion2 = true;
  705.           var _didIteratorError2 = false;
  706.           var _iteratorError2 = undefined;
  707.  
  708.           try {
  709.             for (
  710.               var _iterator2 = a.childNodes[Symbol.iterator](), _step2;
  711.               !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done);
  712.               _iteratorNormalCompletion2 = true
  713.             ) {
  714.               var c = _step2.value;
  715.               c.style.display = !0 === b ? "none" : "";
  716.             }
  717.           } catch (err) {
  718.             _didIteratorError2 = true;
  719.             _iteratorError2 = err;
  720.           } finally {
  721.             try {
  722.               if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
  723.                 _iterator2.return();
  724.               }
  725.             } finally {
  726.               if (_didIteratorError2) {
  727.                 throw _iteratorError2;
  728.               }
  729.             }
  730.           }
  731.         }
  732.       },
  733.       {
  734.         key: "appendText",
  735.         value: function appendText(a, b) {
  736.           var c = document.createElement("div");
  737.           c.appendChild(document.createTextNode(b)), a.appendChild(c);
  738.         }
  739.       },
  740.       {
  741.         key: "createCheckBox",
  742.         value: function createCheckBox(a, b, c, d) {
  743.           var e = document.createElement("div"),
  744.             f = document.createElement("input");
  745.           (f.type = "checkbox"),
  746.             (f.name = b + "adi-bot"),
  747.             (f.id = b + "adi-bot"),
  748.             (f.checked = c),
  749.             e.appendChild(f);
  750.           var g = document.createElement("label");
  751.           g.setAttribute("for", b + "adi-bot"),
  752.             (g.innerHTML = b),
  753.             f.addEventListener("change", function() {
  754.               d(f.checked);
  755.             }),
  756.             e.appendChild(g),
  757.             a.appendChild(e);
  758.         }
  759.       },
  760.       {
  761.         key: "makeBoxDraggable",
  762.         value: function makeBoxDraggable(a, b) {
  763.           $(a).draggable({
  764.             containment: "window",
  765.             stop: b
  766.           });
  767.         }
  768.       },
  769.       {
  770.         key: "saveStorage",
  771.         value: function saveStorage() {
  772.           localStorage.setItem("adi-bot-storage", JSON.stringify(this.storage));
  773.         }
  774.       },
  775.       {
  776.         key: "initStyle",
  777.         value: function initStyle() {
  778.           var a = document.createElement("style"),
  779.             b = "\n            .adi-bot-box {\n                position: absolute;\n                text-align: center;\n                padding: 10px;\n                height: 290px;\n                width: 360px;\n                left: "
  780.               .concat(this.storage.x, "px;\n                top: ")
  781.               .concat(
  782.                 this.storage.y,
  783.                 "px;\n                background: #975b83;\n                border: 2px solid white;\n                border-radius: 8px;\n                color: black;\n                z-index: 999;\n            }\n            .adi-bot-input-text {\n                text-align: center;\n                border: 2px solid lightblue;\n                border-radius: 3px;\n                color: black;\n                cursor: text;\n            }\n            "
  784.               );
  785.           (a.type = "text/css"),
  786.             a.appendChild(document.createTextNode(b)),
  787.             document.head.appendChild(a);
  788.         }
  789.       },
  790.       {
  791.         key: "initNewNpc",
  792.         value: function initNewNpc() {
  793.           var _this4 = this;
  794.  
  795.           if (
  796.             ("ni" === this.interface &&
  797.               (window.API.addCallbackToEvent("newNpc", function(a) {
  798.                 void 0 !== a && _this4.addNpcs(a.d);
  799.               }),
  800.               window.API.addCallbackToEvent("removeNpc", function(a) {
  801.                 void 0 !== a && _this4.removeNpcs(a.d);
  802.               })),
  803.             "si" === this.interface)
  804.           ) {
  805.             var _a5 = window.newNpc;
  806.  
  807.             window.newNpc = function(b) {
  808.               if (void 0 !== b) {
  809.                 var _arr4 = Object.entries(b);
  810.  
  811.                 for (var _i4 = 0; _i4 < _arr4.length; _i4++) {
  812.                   var _arr4$_i = _slicedToArray(_arr4[_i4], 2),
  813.                     _a6 = _arr4$_i[0],
  814.                     c = _arr4$_i[1];
  815.  
  816.                   void 0 !== c.del && void 0 !== window.g.npc[_a6]
  817.                     ? _this4.removeNpcs(window.g.npc[_a6], _a6)
  818.                     : void 0 !== c && _this4.addNpcs(c, _a6);
  819.                 }
  820.               }
  821.  
  822.               _a5(b);
  823.             };
  824.           }
  825.         }
  826.       },
  827.       {
  828.         key: "initNewOther",
  829.         value: function initNewOther() {
  830.           var _this5 = this;
  831.  
  832.           if (
  833.             ("ni" === this.interface &&
  834.               (this.makeParty(),
  835.               window.API.addCallbackToEvent("newOther", function(a) {
  836.                 _this5.filterOther(a.d);
  837.               })),
  838.             "si" === this.interface)
  839.           ) {
  840.             this.makeParty();
  841.             var _a7 = window.newOther;
  842.  
  843.             window.newOther = function(b) {
  844.               if ((_a7(b), void 0 !== b)) {
  845.                 var _arr5 = Object.values(b);
  846.  
  847.                 for (var _i5 = 0; _i5 < _arr5.length; _i5++) {
  848.                   var _a8 = _arr5[_i5];
  849.  
  850.                   _this5.filterOther(_a8);
  851.                 }
  852.               }
  853.             };
  854.           }
  855.         }
  856.       },
  857.       {
  858.         key: "filterOther",
  859.         value: function filterOther(a) {
  860.           if (a !== void 0) {
  861.             var _b8 = a.relation,
  862.               c = a.id;
  863.             !0 === this.canHeroTryToAttack() &&
  864.               ["cl", "fr"].includes(_b8) &&
  865.               !0 === this.QuickGroupSettings.adding.active &&
  866.               this.sendInviteToParty(c);
  867.           }
  868.         }
  869.       },
  870.       {
  871.         key: "makeParty",
  872.         value: function makeParty() {
  873.           if ("object" != _typeof(this.party)) return this.sendInvites();
  874.           var a =
  875.             "ni" === this.interface
  876.               ? this.party.getLeaderId() === this.hero.id
  877.               : 1 === this.party[this.hero.id].r;
  878.           !0 == a && this.sendInvites();
  879.         }
  880.       },
  881.       {
  882.         key: "sendInvites",
  883.         value: function sendInvites() {
  884.           if (this.others !== void 0) {
  885.             var _arr6 = Object.values(this.others);
  886.  
  887.             for (var _i6 = 0; _i6 < _arr6.length; _i6++) {
  888.               var _a9 = _arr6[_i6];
  889.               this.filterOther(_a9);
  890.             }
  891.           }
  892.         }
  893.       },
  894.       {
  895.         key: "sendInviteToParty",
  896.         value: function sendInviteToParty(a) {
  897.           window._g("party&a=inv&id=".concat(a));
  898.         }
  899.       },
  900.       {
  901.         key: "initChecker",
  902.         value: function initChecker() {
  903.           var _this6 = this;
  904.  
  905.           if (
  906.             (setTimeout(function() {
  907.               _this6.initChecker();
  908.             }, 500),
  909.             !0 === this.dead &&
  910.               (this.removeNpcsFromThisCharId(this.hero.id), this.logout()),
  911.             !0 === this.canHeroTryToAttack())
  912.           )
  913.             try {
  914.               if (void 0 !== this.npcToKillId) {
  915.                 var _this$npcs$this$npcTo = this.npcs[this.npcToKillId],
  916.                   _a10 = _this$npcs$this$npcTo.x,
  917.                   _b9 = _this$npcs$this$npcTo.y;
  918.                 1 >= Math.abs(this.hero.x - _a10) &&
  919.                 1 >= Math.abs(this.hero.y - _b9)
  920.                   ? 0 < this.timeStamp - this.lastAttackTimestamp &&
  921.                     window._g(
  922.                       "fight&a=attack&ff=1&id=-".concat(this.npcToKillId),
  923.                       function(a) {
  924.                         return a.hasOwnProperty("alert") &&
  925.                           a.alert.includes(
  926.                             "Przeciwnik walczy ju\u017C z kim\u015B innym"
  927.                           )
  928.                           ? void (_this6.lastAttackTimestamp =
  929.                               _this6.timeStamp + 2)
  930.                           : void (_this6.lastAttackTimestamp =
  931.                               _this6.timeStamp + 1);
  932.                       }
  933.                     )
  934.                   : this.goTo(_a10, _b9);
  935.               } else this.reFindNpcs();
  936.             } catch (a) {
  937.               this.npcToKillId = void 0;
  938.             }
  939.         }
  940.       },
  941.       {
  942.         key: "canHeroTryToAttack",
  943.         value: function canHeroTryToAttack() {
  944.           return !(this.battle || this.dead);
  945.         }
  946.       },
  947.       {
  948.         key: "removeNpcs",
  949.         value: function removeNpcs(a) {
  950.           var b = a.x,
  951.             c = a.y,
  952.             d = a.nick,
  953.             e = a.lvl;
  954.           "ni" === this.interface
  955.             ? window.Engine.map.col.unset(
  956.                 b,
  957.                 c,
  958.                 window.Engine.map.col.check(b, c)
  959.               )
  960.             : window.map.nodes.changeCollision(b, c, 0),
  961.             this.storage.name !== void 0 &&
  962.               this.storage.name.toLowerCase().includes(d.toLowerCase()) &&
  963.               (this.addNpcToTimer(d, e),
  964.               (this.npcToKillId = void 0),
  965.               this.reFindNpcs());
  966.         }
  967.       },
  968.       {
  969.         key: "findEilteIIName",
  970.         value: function findEilteIIName(a) {
  971.           var _arr7 = Object.values(this.npcs);
  972.  
  973.           for (var _i7 = 0; _i7 < _arr7.length; _i7++) {
  974.             var _b10 = _arr7[_i7];
  975.             var c = _b10.nick,
  976.               d = _b10.lvl,
  977.               e = _b10.grp,
  978.               f = _b10.wt;
  979.             if (e === a && 19 < f) return [c, d];
  980.           }
  981.         }
  982.       },
  983.       {
  984.         key: "addNpcs",
  985.         value: function addNpcs(a, b) {
  986.           "ni" === this.interface && (b = a.id), this.filterNpc(a, b);
  987.         }
  988.       },
  989.       {
  990.         key: "isNpcFake",
  991.         value: function isNpcFake(a, b) {
  992.           var c = new Image(),
  993.             d = document.createElement("canvas").getContext("2d"),
  994.             e = function e() {
  995.               var a = d.getImageData(Math.floor(d.width / 2), 0, 1, d.height)
  996.                 .data;
  997.  
  998.               for (var _c2 = 3; _c2 < a.length; _c2 += 4) {
  999.                 if (0 < a[_c2]) return b(!1);
  1000.               }
  1001.  
  1002.               return b(!0);
  1003.             };
  1004.  
  1005.           (c.onload = function() {
  1006.             (d.width = this.width),
  1007.               (d.height = this.height),
  1008.               d.drawImage(c, 0, 0),
  1009.               e();
  1010.           }),
  1011.             (c.src = a);
  1012.         }
  1013.       },
  1014.       {
  1015.         key: "filterNpc",
  1016.         value: function filterNpc(a, b) {
  1017.           var _this7 = this;
  1018.  
  1019.           var c = a.nick,
  1020.             d = a.icon,
  1021.             e = a.type,
  1022.             f = a.wt,
  1023.             g = a.grp;
  1024.  
  1025.           if (
  1026.             !((2 !== e && 3 !== e) || 10 > f || void 0 === c) &&
  1027.             void 0 === this.npcToKillId &&
  1028.             this.storage.name.toLowerCase().includes(c.toLowerCase()) &&
  1029.             "" !== this.storage.name &&
  1030.             null !== this.storage.name
  1031.           ) {
  1032.             var _a11 = d.includes("/obrazki/npc/")
  1033.               ? d
  1034.               : "/obrazki/npc/".concat(d);
  1035.  
  1036.             this.isNpcFake(_a11, function(a) {
  1037.               !1 === a &&
  1038.                 ((_this7.npcToKillId =
  1039.                   0 === g
  1040.                     ? parseInt(b)
  1041.                     : parseInt(_this7.findBestNpcFromGrp(g))),
  1042.                 _this7.makeParty());
  1043.             });
  1044.           }
  1045.         }
  1046.       },
  1047.       {
  1048.         key: "findBestNpcFromGrp",
  1049.         value: function findBestNpcFromGrp(a) {
  1050.           var b,
  1051.             c = 999999;
  1052.  
  1053.           var _arr8 = Object.entries(this.npcs);
  1054.  
  1055.           for (var _i8 = 0; _i8 < _arr8.length; _i8++) {
  1056.             var _arr8$_i = _slicedToArray(_arr8[_i8], 2),
  1057.               d = _arr8$_i[0],
  1058.               e = _arr8$_i[1];
  1059.  
  1060.             var f = e.x,
  1061.               g = e.y,
  1062.               h = e.grp;
  1063.  
  1064.             if (a === h) {
  1065.               var _a12 = this.getDistanceToNpc(f, g);
  1066.  
  1067.               _a12 < c && ((b = d), (c = _a12));
  1068.             }
  1069.           }
  1070.  
  1071.           return b;
  1072.         }
  1073.       },
  1074.       {
  1075.         key: "reFindNpcs",
  1076.         value: function reFindNpcs() {
  1077.           var _arr9 = Object.entries(this.npcs);
  1078.  
  1079.           for (var _i9 = 0; _i9 < _arr9.length; _i9++) {
  1080.             var _arr9$_i = _slicedToArray(_arr9[_i9], 2),
  1081.               _a13 = _arr9$_i[0],
  1082.               _b11 = _arr9$_i[1];
  1083.  
  1084.             this.filterNpc(_b11, _a13);
  1085.           }
  1086.         }
  1087.       },
  1088.       {
  1089.         key: "logout",
  1090.         value: function logout() {
  1091.           this.battle ||
  1092.             this.loots ||
  1093.             this.issetMyNpcOnMap ||
  1094.             this.isHealing ||
  1095.             (window.location.href = "http://margonem.pl");
  1096.         }
  1097.       },
  1098.       {
  1099.         key: "logIn",
  1100.         value: function logIn(a, b) {
  1101.           if (
  1102.             ("none" === this.interface ||
  1103.               void 0 === this.hero.id ||
  1104.               this.hero.id != a) &&
  1105.             !(
  1106.               "none" !== this.interface &&
  1107.               (this.battle ||
  1108.                 this.loots ||
  1109.                 this.issetMyNpcOnMap ||
  1110.                 this.isHealing)
  1111.             )
  1112.           )
  1113.             try {
  1114.               var c = new Date();
  1115.               c.setTime(c.getTime() + 259200000),
  1116.                 (document.cookie = "mchar_id="
  1117.                   .concat(a, "; path=/; expires=")
  1118.                   .concat(c.toGMTString(), "; domain=.margonem.pl")),
  1119.                 (window.location.href = "http://".concat(
  1120.                   b.toLowerCase(),
  1121.                   ".margonem.pl"
  1122.                 ));
  1123.             } catch (a) {}
  1124.         }
  1125.       },
  1126.       {
  1127.         key: "getNewRespawnTime",
  1128.         value: function getNewRespawnTime(a) {
  1129.           return Math.round(
  1130.             (1 *
  1131.               (60 *
  1132.                 (200 < a
  1133.                   ? 18
  1134.                   : Math.min(18, 0.7 + 0.18 * a - 45e-5 * a * a)))) /
  1135.               parseInt(this.serverTimerSpeed)
  1136.           );
  1137.         }
  1138.       },
  1139.       {
  1140.         key: "addNpcToTimer",
  1141.         value: function addNpcToTimer(a, b) {
  1142.           var c = this.mapName;
  1143.           (this.timerData[a + this.world] = {
  1144.             name: a,
  1145.             lvl: b,
  1146.             mapName: c,
  1147.             nextRespawn: this.timeStamp + this.getNewRespawnTime(b),
  1148.             charId: this.hero.id,
  1149.             world: this.world
  1150.           }),
  1151.             this.saveTimersCookies();
  1152.         }
  1153.       },
  1154.       {
  1155.         key: "deleteNpcFromTimer",
  1156.         value: function deleteNpcFromTimer(a) {
  1157.           this.timerData[a] !== void 0 &&
  1158.             (delete this.timerData[a], this.saveTimersCookies());
  1159.         }
  1160.       },
  1161.       {
  1162.         key: "removeNpcsFromThisCharId",
  1163.         value: function removeNpcsFromThisCharId(a) {
  1164.           if (void 0 !== a) {
  1165.             var _arr10 = Object.entries(this.timerData);
  1166.  
  1167.             for (var _i10 = 0; _i10 < _arr10.length; _i10++) {
  1168.               var _arr10$_i = _slicedToArray(_arr10[_i10], 2),
  1169.                 _b12 = _arr10$_i[0],
  1170.                 c = _arr10$_i[1];
  1171.  
  1172.               c.charId == a && this.deleteNpcFromTimer(_b12);
  1173.             }
  1174.           }
  1175.         }
  1176.       },
  1177.       {
  1178.         key: "checkTimers",
  1179.         value: function checkTimers() {
  1180.           var _arr11 = Object.entries(this.timerData);
  1181.  
  1182.           for (var _i11 = 0; _i11 < _arr11.length; _i11++) {
  1183.             var _arr11$_i = _slicedToArray(_arr11[_i11], 2),
  1184.               _a14 = _arr11$_i[0],
  1185.               _b13 = _arr11$_i[1];
  1186.  
  1187.             _b13.nextRespawn + this.waitForNpcRespawn < this.timeStamp &&
  1188.               this.createNewRespawnTime(_a14);
  1189.           }
  1190.         }
  1191.       },
  1192.       {
  1193.         key: "createNewRespawnTime",
  1194.         value: function createNewRespawnTime(a) {
  1195.           var _this8 = this;
  1196.  
  1197.           if (
  1198.             !(
  1199.               Object.values(this.npcs).some(function(b) {
  1200.                 return b.nick == _this8.timerData[a].name;
  1201.               }) || this.timerData[a].charId !== this.hero.id
  1202.             )
  1203.           ) {
  1204.             for (; this.timeStamp > this.timerData[a].nextRespawn; ) {
  1205.               this.timerData[a].nextRespawn += this.getNewRespawnTime(
  1206.                 this.timerData[a].lvl
  1207.               );
  1208.             }
  1209.  
  1210.             this.saveTimersCookies();
  1211.           }
  1212.         }
  1213.       },
  1214.       {
  1215.         key: "isThisHeroIssetInTimer",
  1216.         value: function isThisHeroIssetInTimer(b) {
  1217.           return (
  1218.             void 0 !== b &&
  1219.             Object.values(this.timerData).some(function(c) {
  1220.               return c.charId == b;
  1221.             })
  1222.           );
  1223.         }
  1224.       },
  1225.       {
  1226.         key: "isntTimersInRange",
  1227.         value: function isntTimersInRange() {
  1228.           var _this9 = this;
  1229.  
  1230.           return Object.values(this.timerData).every(function(b) {
  1231.             return b.nextRespawn - _this9.timeStamp > _this9.delayToRelog;
  1232.           });
  1233.         }
  1234.       },
  1235.       {
  1236.         key: "checkHeroOnGoodMap",
  1237.         value: function checkHeroOnGoodMap(a) {
  1238.           var _arr12 = Object.entries(this.timerData);
  1239.  
  1240.           for (var _i12 = 0; _i12 < _arr12.length; _i12++) {
  1241.             var _arr12$_i = _slicedToArray(_arr12[_i12], 2),
  1242.               _b14 = _arr12$_i[0],
  1243.               c = _arr12$_i[1];
  1244.  
  1245.             var d = c.mapName,
  1246.               e = c.charId;
  1247.             e == a &&
  1248.               this.mapName !== void 0 &&
  1249.               d !== void 0 &&
  1250.               d !== this.mapName &&
  1251.               this.deleteNpcFromTimer(_b14);
  1252.           }
  1253.         }
  1254.       },
  1255.       {
  1256.         key: "initTimer",
  1257.         value: function initTimer() {
  1258.           var _this10 = this;
  1259.  
  1260.           if (0 < Object.keys(this.timerData).length)
  1261.             if ("none" === this.interface) {
  1262.               if (
  1263.                 Object.values(this.timerData).some(function(b) {
  1264.                   return (
  1265.                     b.nextRespawn - _this10.timeStamp <= _this10.delayToRelog
  1266.                   );
  1267.                 })
  1268.               ) {
  1269.                 var _Object$values$reduce = Object.values(
  1270.                     this.timerData
  1271.                   ).reduce(function(c, a) {
  1272.                     return c.nextRespawn <= a.nextRespawn ? c : a;
  1273.                   }),
  1274.                   _a15 = _Object$values$reduce.world,
  1275.                   _b15 = _Object$values$reduce.charId;
  1276.  
  1277.                 void 0 !== _b15 && this.logIn(_b15, _a15);
  1278.               }
  1279.             } else if (
  1280.               this.isntTimersInRange() &&
  1281.               this.isThisHeroIssetInTimer(this.hero.id)
  1282.             )
  1283.               this.logout();
  1284.             else {
  1285.               this.checkHeroOnGoodMap(this.hero.id);
  1286.  
  1287.               var _a16 = Object.values(this.timerData).filter(function(b) {
  1288.                 return (
  1289.                   b.nextRespawn - _this10.timeStamp <= _this10.delayToRelog
  1290.                 );
  1291.               });
  1292.  
  1293.               if (0 < _a16.length) {
  1294.                 var _a16$reduce = _a16.reduce(function(c, a) {
  1295.                     return c.nextRespawn <= a.nextRespawn ? c : a;
  1296.                   }),
  1297.                   _b16 = _a16$reduce.charId,
  1298.                   c = _a16$reduce.world;
  1299.  
  1300.                 void 0 !== this.hero.id &&
  1301.                   parseInt(_b16) !== this.hero.id &&
  1302.                   this.logIn(_b16, c);
  1303.               }
  1304.             }
  1305.           this.checkTimers(),
  1306.             setTimeout(function() {
  1307.               _this10.initTimer();
  1308.             }, 500);
  1309.         }
  1310.       },
  1311.       {
  1312.         key: "saveTimersCookies",
  1313.         value: function saveTimersCookies() {
  1314.           var a = new Date();
  1315.           a.setMonth(a.getMonth() + 1),
  1316.             this.setCookie(
  1317.               "adi-bot-timer",
  1318.               JSON.stringify(this.timerData),
  1319.               a,
  1320.               "/",
  1321.               "margonem.pl"
  1322.             );
  1323.         }
  1324.       },
  1325.       {
  1326.         key: "randomSeconds",
  1327.         value: function randomSeconds(a, b) {
  1328.           return (
  1329.             (a *= 60), (b *= 60), Math.floor(Math.random() * (b - a + 1)) + a
  1330.           );
  1331.         }
  1332.       },
  1333.       {
  1334.         key: "randomRefresh",
  1335.         value: function randomRefresh() {
  1336.           var _this$refreshTime = _slicedToArray(this.refreshTime, 2),
  1337.             a = _this$refreshTime[0],
  1338.             b = _this$refreshTime[1];
  1339.  
  1340.           setTimeout(function() {
  1341.             location.href = location.href;
  1342.           }, 1e3 * this.randomSeconds(a, b));
  1343.         }
  1344.       },
  1345.       {
  1346.         key: "getCookie",
  1347.         value: function getCookie(a) {
  1348.           var b = document.cookie,
  1349.             c = a + "=";
  1350.           var d = b.indexOf("; " + c);
  1351.           if (-1 != d) d += 2;
  1352.           else if (((d = b.indexOf(c)), 0 != d)) return null;
  1353.           var e = document.cookie.indexOf(";", d);
  1354.           return (
  1355.             -1 == e && (e = b.length), unescape(b.substring(d + c.length, e))
  1356.           );
  1357.         }
  1358.       },
  1359.       {
  1360.         key: "setCookie",
  1361.         value: function setCookie(a, b, c, d, e, f) {
  1362.           var g =
  1363.             a +
  1364.             "=" +
  1365.             escape(b) +
  1366.             (c ? "; expires=" + c.toGMTString() : "") +
  1367.             (d ? "; path=" + d : "") +
  1368.             (e ? "; domain=" + e : "") +
  1369.             (f ? "; secure" : "");
  1370.           document.cookie = g;
  1371.         }
  1372.       },
  1373.       {
  1374.         key: "createTimerOnMainPage",
  1375.         value: function createTimerOnMainPage() {
  1376.           var _this11 = this;
  1377.  
  1378.           if (0 === Object.keys(this.timerData).length) return;
  1379.           var a = document.createElement("div");
  1380.           a.classList.add("adi-bot-minutnik-strona-glowna"),
  1381.             document.querySelector(".rmenu").appendChild(a);
  1382.           var b = document.createElement("style");
  1383.           (b.type = "text/css"),
  1384.             b.appendChild(
  1385.               document.createTextNode(
  1386.                 "\n            .adi-bot-minutnik-strona-glowna {\n                color: white;\n                font-size: 14px;\n                text-align: left;\n            }\n\n            .timer_data {\n                font-weight: bold;\n                float: right;\n                cursor: pointer;\n            }\n\n            .timer_data:hover {\n                color: gray;\n            }\n\n            .adi-bot-konfiguracja {\n\n            }\n        "
  1387.               )
  1388.             ),
  1389.             document.head.appendChild(b),
  1390.             this.addNpcsToTimerBox(a),
  1391.             document.addEventListener("click", function(a) {
  1392.               try {
  1393.                 if ("timer_data" === a.target.className) {
  1394.                   var _a$target$getAttribut = a.target
  1395.                       .getAttribute("timer-data")
  1396.                       .split("|"),
  1397.                     _a$target$getAttribut2 = _slicedToArray(
  1398.                       _a$target$getAttribut,
  1399.                       2
  1400.                     ),
  1401.                     _b17 = _a$target$getAttribut2[0],
  1402.                     c = _a$target$getAttribut2[1];
  1403.  
  1404.                   c !== void 0 &&
  1405.                     _b17 !== void 0 &&
  1406.                     (_this11.deleteNpcFromTimer(_b17 + c),
  1407.                     window.showMsg(
  1408.                       "Usuni\u0119to "
  1409.                         .concat(_b17, " ze \u015Bwiata ")
  1410.                         .concat(c.charAt(0).toUpperCase() + c.slice(1), ".")
  1411.                     ));
  1412.                 }
  1413.               } catch (a) {}
  1414.             });
  1415.         }
  1416.       },
  1417.       {
  1418.         key: "addNpcsToTimerBox",
  1419.         value: function addNpcsToTimerBox(a) {
  1420.           var _this12 = this;
  1421.  
  1422.           var b = {};
  1423.  
  1424.           var _arr13 = Object.values(this.timerData);
  1425.  
  1426.           for (var _i13 = 0; _i13 < _arr13.length; _i13++) {
  1427.             var _c3 = _arr13[_i13];
  1428.             var _a17 = _c3.name,
  1429.               d = _c3.nextRespawn,
  1430.               e = _c3.world;
  1431.             b[e] === void 0
  1432.               ? (b[e] = [
  1433.                   {
  1434.                     name: _a17,
  1435.                     nextRespawn: d
  1436.                   }
  1437.                 ])
  1438.               : b[e].push({
  1439.                   name: _a17,
  1440.                   nextRespawn: d
  1441.                 });
  1442.           }
  1443.  
  1444.           var c = "";
  1445.  
  1446.           var _arr14 = Object.entries(b);
  1447.  
  1448.           for (var _i14 = 0; _i14 < _arr14.length; _i14++) {
  1449.             var _arr14$_i = _slicedToArray(_arr14[_i14], 2),
  1450.               d = _arr14$_i[0],
  1451.               e = _arr14$_i[1];
  1452.  
  1453.             (c += '<br><div style="text-align: center; font-weight: bold; text-decoration: underline">'.concat(
  1454.               this.capitalizeWorld(d),
  1455.               "</div>"
  1456.             )),
  1457.               e.sort(function(a, b) {
  1458.                 return a.nextRespawn - b.nextRespawn;
  1459.               });
  1460.             var _a18 = [];
  1461.  
  1462.             _a18.push("");
  1463.  
  1464.             var _iteratorNormalCompletion3 = true;
  1465.             var _didIteratorError3 = false;
  1466.             var _iteratorError3 = undefined;
  1467.  
  1468.             try {
  1469.               for (
  1470.                 var _iterator3 = e[Symbol.iterator](), _step3;
  1471.                 !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next())
  1472.                   .done);
  1473.                 _iteratorNormalCompletion3 = true
  1474.               ) {
  1475.                 var _b18 = _step3.value;
  1476.                 var _c4 = _b18.name,
  1477.                   _e2 = _b18.nextRespawn;
  1478.  
  1479.                 _a18.push(
  1480.                   "<span>"
  1481.                     .concat(
  1482.                       this.getTimeToRespawn(_c4, _e2),
  1483.                       '</span><span class="timer_data" tip="Kliknij, aby usun\u0105\u0107 z timera." timer-data="'
  1484.                     )
  1485.                     .concat(_c4, "|")
  1486.                     .concat(d, '">---</span>')
  1487.                 );
  1488.               }
  1489.             } catch (err) {
  1490.               _didIteratorError3 = true;
  1491.               _iteratorError3 = err;
  1492.             } finally {
  1493.               try {
  1494.                 if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
  1495.                   _iterator3.return();
  1496.                 }
  1497.               } finally {
  1498.                 if (_didIteratorError3) {
  1499.                   throw _iteratorError3;
  1500.                 }
  1501.               }
  1502.             }
  1503.  
  1504.             _a18.push(""), (c += _a18.join("<hr>"));
  1505.           }
  1506.  
  1507.           (a.innerHTML = c),
  1508.             setTimeout(function() {
  1509.               _this12.addNpcsToTimerBox(a);
  1510.             }, 1e3);
  1511.         }
  1512.       },
  1513.       {
  1514.         key: "capitalizeWorld",
  1515.         value: function capitalizeWorld(a) {
  1516.           return a.charAt(0).toUpperCase() + a.slice(1) + ":";
  1517.         }
  1518.       },
  1519.       {
  1520.         key: "getTimeToRespawn",
  1521.         value: function getTimeToRespawn(a, b) {
  1522.           var c = b - this.timeStamp,
  1523.             d =
  1524.               10 > parseInt(c / 60)
  1525.                 ? "0".concat(parseInt(c / 60))
  1526.                 : parseInt(c / 60),
  1527.             e = 10 > c % 60 ? "0".concat(c % 60) : c % 60;
  1528.           return ""
  1529.             .concat(a, ": ")
  1530.             .concat(d, ":")
  1531.             .concat(e);
  1532.         }
  1533.       },
  1534.       {
  1535.         key: "removeLockAdding",
  1536.         value: function removeLockAdding() {
  1537.           "ni" === this.interface &&
  1538.             (window.Engine.lock.add = Function.prototype),
  1539.             "si" === this.interface && (window.g.lock.add = Function.prototype),
  1540.             (window.mAlert = Function.prototype);
  1541.         }
  1542.       },
  1543.       {
  1544.         key: "initLagRefresher",
  1545.         value: function initLagRefresher() {
  1546.           var _this13 = this;
  1547.  
  1548.           !1 === this.startInctementingLagRefresher &&
  1549.             ((this.startInctementingLagRefresher = !0),
  1550.             setInterval(function() {
  1551.               _this13.incrementValue++,
  1552.                 8 < _this13.incrementValue && (location.href = location.href);
  1553.             }, 500));
  1554.           var a = this,
  1555.             b = window.$.ajax;
  1556.  
  1557.           window.$.ajax = function() {
  1558.             for (
  1559.               var _len = arguments.length, c = new Array(_len), _key = 0;
  1560.               _key < _len;
  1561.               _key++
  1562.             ) {
  1563.               c[_key] = arguments[_key];
  1564.             }
  1565.  
  1566.             if (c[0].url.includes("engine?t=")) {
  1567.               var _b19 = c[0].success;
  1568.  
  1569.               c[0].success = function() {
  1570.                 for (
  1571.                   var _len2 = arguments.length, c = new Array(_len2), _key2 = 0;
  1572.                   _key2 < _len2;
  1573.                   _key2++
  1574.                 ) {
  1575.                   c[_key2] = arguments[_key2];
  1576.                 }
  1577.  
  1578.                 var d =
  1579.                     "object" == _typeof(c[0]) &&
  1580.                     null !== c[0] &&
  1581.                     "ok" === c[0].e,
  1582.                   e = _b19.apply(_this13, c);
  1583.  
  1584.                 return d && a.parseAjaxData(c[0]), e;
  1585.               };
  1586.             }
  1587.  
  1588.             return b.apply(_this13, c);
  1589.           };
  1590.         }
  1591.       },
  1592.       {
  1593.         key: "parseAjaxData",
  1594.         value: function parseAjaxData(a) {
  1595.           if (
  1596.             (((a.hasOwnProperty("d") && "stop" === a.d) ||
  1597.               (a.hasOwnProperty("t") && "stop" === a.t)) &&
  1598.               this.Sleep(2500).then(function() {
  1599.                 location.href = location.href;
  1600.               }),
  1601.             (this.incrementValue = 0),
  1602.             a.hasOwnProperty("loot") &&
  1603.               a.hasOwnProperty("item") &&
  1604.               a.loot.hasOwnProperty("init") &&
  1605.               a.loot.hasOwnProperty("source") &&
  1606.               0 < a.loot.init &&
  1607.               "fight" === a.loot.source)
  1608.           ) {
  1609.             var _b20 = [],
  1610.               c = [];
  1611.  
  1612.             var _arr15 = Object.entries(a.item);
  1613.  
  1614.             for (var _i15 = 0; _i15 < _arr15.length; _i15++) {
  1615.               var _arr15$_i = _slicedToArray(_arr15[_i15], 2),
  1616.                 d = _arr15$_i[0],
  1617.                 e = _arr15$_i[1];
  1618.  
  1619.               var _a19 = e.stat,
  1620.                 f = e.name;
  1621.               !0 === this.isGoodItem(_a19, f) ? _b20.push(d) : c.push(d);
  1622.             }
  1623.  
  1624.             this.sendLoots(_b20, c);
  1625.           }
  1626.  
  1627.           a.hasOwnProperty("f") &&
  1628.             a.f.hasOwnProperty("move") &&
  1629.             a.f.hasOwnProperty("current") &&
  1630.             0 === a.f.current &&
  1631.             -1 === a.f.move &&
  1632.             (this.closeBattle(), a.f.hasOwnProperty("w") && this.autoHeal()),
  1633.             a.hasOwnProperty("event_done") && this.autoHeal(),
  1634.             a.hasOwnProperty("ask") &&
  1635.               a.ask.hasOwnProperty("re") &&
  1636.               "party&a=accept&answer=" === a.ask.re &&
  1637.               !0 === this.QuickGroupSettings.accepting.active &&
  1638.               window._g("party&a=accept&answer=1");
  1639.         }
  1640.       },
  1641.       {
  1642.         key: "isGoodItem",
  1643.         value: function isGoodItem(a, b) {
  1644.           if (!0 === this.lootfilterSettings.stat.all.active) return !0;
  1645.           var c = [];
  1646.  
  1647.           var _arr16 = Object.entries(this.lootfilterSettings.stat);
  1648.  
  1649.           for (var _i16 = 0; _i16 < _arr16.length; _i16++) {
  1650.             var _arr16$_i = _slicedToArray(_arr16[_i16], 2),
  1651.               _d2 = _arr16$_i[0],
  1652.               e = _arr16$_i[1].active;
  1653.  
  1654.             !0 === e && c.push(_d2);
  1655.           }
  1656.  
  1657.           var d = this.lootfilterSettings.names;
  1658.  
  1659.           for (var _i17 = 0; _i17 < c.length; _i17++) {
  1660.             var _d3 = c[_i17];
  1661.             if (a.includes(_d3)) return !0;
  1662.           }
  1663.  
  1664.           var _iteratorNormalCompletion4 = true;
  1665.           var _didIteratorError4 = false;
  1666.           var _iteratorError4 = undefined;
  1667.  
  1668.           try {
  1669.             for (
  1670.               var _iterator4 = d[Symbol.iterator](), _step4;
  1671.               !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done);
  1672.               _iteratorNormalCompletion4 = true
  1673.             ) {
  1674.               var _c5 = _step4.value;
  1675.               if (b.toLowerCase() === _c5.toLowerCase()) return !0;
  1676.             }
  1677.           } catch (err) {
  1678.             _didIteratorError4 = true;
  1679.             _iteratorError4 = err;
  1680.           } finally {
  1681.             try {
  1682.               if (!_iteratorNormalCompletion4 && _iterator4.return != null) {
  1683.                 _iterator4.return();
  1684.               }
  1685.             } finally {
  1686.               if (_didIteratorError4) {
  1687.                 throw _iteratorError4;
  1688.               }
  1689.             }
  1690.           }
  1691.  
  1692.           return !1;
  1693.         }
  1694.       },
  1695.       {
  1696.         key: "sendLoots",
  1697.         value: function sendLoots(a, b) {
  1698.           window._g(
  1699.             "loot&not="
  1700.               .concat(b.join(","), "&want=&must=")
  1701.               .concat(a.join(","), "&final=1")
  1702.           ),
  1703.             "si" === this.interface &&
  1704.               (document.querySelector("#loots").style.display = "none");
  1705.         }
  1706.       },
  1707.       {
  1708.         key: "closeBattle",
  1709.         value: function closeBattle() {
  1710.           window._g("fight&a=quit"),
  1711.             "si" === this.interface &&
  1712.               (document.querySelector("#battle").style.display = "none");
  1713.         }
  1714.       },
  1715.       {
  1716.         key: "autoHeal",
  1717.         value: function autoHeal() {
  1718.           var _this14 = this;
  1719.  
  1720.           if (this.dead) return;
  1721.           var a =
  1722.             "ni" === this.interface
  1723.               ? window.Engine.hero.d.warrior_stats
  1724.               : window.hero;
  1725.           if (a.hp === a.maxhp) return (this.isHealing = !1);
  1726.           this.isHealing = !0;
  1727.           var b = [],
  1728.             c = [];
  1729.           var d = !1;
  1730.           var _iteratorNormalCompletion5 = true;
  1731.           var _didIteratorError5 = false;
  1732.           var _iteratorError5 = undefined;
  1733.  
  1734.           try {
  1735.             for (
  1736.               var _iterator5 = this.items[Symbol.iterator](), _step5;
  1737.               !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done);
  1738.               _iteratorNormalCompletion5 = true
  1739.             ) {
  1740.               var e = _step5.value;
  1741.               var f = e.stat,
  1742.                 g = e.loc,
  1743.                 h = e.name;
  1744.  
  1745.               if ("g" === g) {
  1746.                 var _this$parseItemStat = this.parseItemStat(f),
  1747.                   _g = _this$parseItemStat.timelimit,
  1748.                   i = _this$parseItemStat.lvl,
  1749.                   j = _this$parseItemStat.leczy,
  1750.                   k = _this$parseItemStat.fullheal;
  1751.  
  1752.                 if (_g !== void 0 && _g.includes(",")) continue;
  1753.                 if (void 0 !== i && i > a.lvl) continue;
  1754.                 j !== void 0 && (j <= a.maxhp - a.hp ? c.push(e) : (d = !0)),
  1755.                   "Czarna per\u0142a \u017Cycia" === h &&
  1756.                     (16e3 <= a.maxhp - a.hp ? c.push(e) : (d = !0)),
  1757.                   k !== void 0 && b.push(e);
  1758.               }
  1759.             }
  1760.           } catch (err) {
  1761.             _didIteratorError5 = true;
  1762.             _iteratorError5 = err;
  1763.           } finally {
  1764.             try {
  1765.               if (!_iteratorNormalCompletion5 && _iterator5.return != null) {
  1766.                 _iterator5.return();
  1767.               }
  1768.             } finally {
  1769.               if (_didIteratorError5) {
  1770.                 throw _iteratorError5;
  1771.               }
  1772.             }
  1773.           }
  1774.  
  1775.           if (0 < c.length) {
  1776.             var _a20 = c.sort(function(a, b) {
  1777.               return (
  1778.                 _this14.parseItemStat(b.stat).leczy -
  1779.                 _this14.parseItemStat(a.stat).leczy
  1780.               );
  1781.             });
  1782.  
  1783.             this.useItem(_a20[0].id, function() {
  1784.               _this14.Sleep(100).then(function() {
  1785.                 _this14.autoHeal();
  1786.               });
  1787.             });
  1788.           } else
  1789.             0 < b.length
  1790.               ? this.useItem(b[0].id, function() {
  1791.                   _this14.Sleep(100).then(function() {
  1792.                     _this14.autoHeal();
  1793.                   });
  1794.                 })
  1795.               : !1 == d &&
  1796.                 window.message(
  1797.                   '<span style="color: red">Brakuje Ci potek!</span>'
  1798.                 );
  1799.  
  1800.           this.isHealing = !1;
  1801.         }
  1802.       },
  1803.       {
  1804.         key: "parseItemStat",
  1805.         value: function parseItemStat(a) {
  1806.           var b = {},
  1807.             c = a.split(";");
  1808.           var _iteratorNormalCompletion6 = true;
  1809.           var _didIteratorError6 = false;
  1810.           var _iteratorError6 = undefined;
  1811.  
  1812.           try {
  1813.             for (
  1814.               var _iterator6 = c[Symbol.iterator](), _step6;
  1815.               !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done);
  1816.               _iteratorNormalCompletion6 = true
  1817.             ) {
  1818.               var d = _step6.value;
  1819.  
  1820.               var _d$split = d.split("="),
  1821.                 _d$split2 = _slicedToArray(_d$split, 2),
  1822.                 _a21 = _d$split2[0],
  1823.                 _c6 = _d$split2[1];
  1824.  
  1825.               b[_a21] = _c6;
  1826.             }
  1827.           } catch (err) {
  1828.             _didIteratorError6 = true;
  1829.             _iteratorError6 = err;
  1830.           } finally {
  1831.             try {
  1832.               if (!_iteratorNormalCompletion6 && _iterator6.return != null) {
  1833.                 _iterator6.return();
  1834.               }
  1835.             } finally {
  1836.               if (_didIteratorError6) {
  1837.                 throw _iteratorError6;
  1838.               }
  1839.             }
  1840.           }
  1841.  
  1842.           return b;
  1843.         }
  1844.       },
  1845.       {
  1846.         key: "useItem",
  1847.         value: function useItem(a, b) {
  1848.           window._g("moveitem&id=".concat(a, "&st=1"), b);
  1849.         }
  1850.       },
  1851.       {
  1852.         key: "init",
  1853.         value: function init() {
  1854.           if ((this.initTimer(), "none" === this.interface))
  1855.             return this.createTimerOnMainPage();
  1856.  
  1857.           if ("ni" === this.interface) {
  1858.             var _a22 = window.Storage.prototype.setItem;
  1859.  
  1860.             window.Storage.prototype.setItem = function(b, c) {
  1861.               if ("Margonem" === b) {
  1862.                 var _a23 = JSON.parse(c);
  1863.  
  1864.                 (_a23.f = 0), (c = JSON.stringify(_a23));
  1865.               }
  1866.  
  1867.               _a22.apply(this, [b, c]);
  1868.             };
  1869.           } else window.bB = Function.prototype;
  1870.  
  1871.           this.initBox(),
  1872.             this.initNewNpc(),
  1873.             this.initNewOther(),
  1874.             this.removeLockAdding(),
  1875.             this.initChecker(),
  1876.             this.randomRefresh(),
  1877.             this.initLagRefresher(),
  1878.             this.chatParser();
  1879.         }
  1880.       },
  1881.       {
  1882.         key: "collisions",
  1883.         get: function get() {
  1884.           return "ni" === this.interface
  1885.             ? this.updateCollisions()
  1886.             : window.map.col;
  1887.         }
  1888.       },
  1889.       {
  1890.         key: "npccol",
  1891.         get: function get() {
  1892.           return "ni" === this.interface
  1893.             ? this.getNpcColsNI()
  1894.             : window.g.npccol;
  1895.         }
  1896.       },
  1897.       {
  1898.         key: "timeStamp",
  1899.         get: function get() {
  1900.           return Math.floor(new Date().getTime() / 1e3);
  1901.         }
  1902.       },
  1903.       {
  1904.         key: "hero",
  1905.         get: function get() {
  1906.           return "ni" === this.interface ? window.Engine.hero.d : window.hero;
  1907.         }
  1908.       },
  1909.       {
  1910.         key: "map",
  1911.         get: function get() {
  1912.           return "ni" === this.interface ? window.Engine.map.size : window.map;
  1913.         }
  1914.       },
  1915.       {
  1916.         key: "mapName",
  1917.         get: function get() {
  1918.           return "ni" === this.interface
  1919.             ? window.Engine.map.d.name
  1920.             : window.map.name;
  1921.         }
  1922.       },
  1923.       {
  1924.         key: "npcs",
  1925.         get: function get() {
  1926.           return "ni" === this.interface
  1927.             ? this.npcsOnNewInterface
  1928.             : window.g.npc;
  1929.         }
  1930.       },
  1931.       {
  1932.         key: "others",
  1933.         get: function get() {
  1934.           return "ni" === this.interface
  1935.             ? this.othersOnNewInterface
  1936.             : window.g.other;
  1937.         }
  1938.       },
  1939.       {
  1940.         key: "world",
  1941.         get: function get() {
  1942.           return "ni" === this.interface
  1943.             ? window.Engine.worldName
  1944.             : window.g.worldname;
  1945.         }
  1946.       },
  1947.       {
  1948.         key: "serverTimerSpeed",
  1949.         get: function get() {
  1950.           return "none" !== this.interface &&
  1951.             [
  1952.               "nerthus",
  1953.               "aldous",
  1954.               "berufs",
  1955.               "brutal",
  1956.               "classic",
  1957.               "gefion",
  1958.               "hutena",
  1959.               "jaruna",
  1960.               "katahha",
  1961.               "lelwani",
  1962.               "majuna",
  1963.               "nomada",
  1964.               "perkun",
  1965.               "tarhuna",
  1966.               "telawel",
  1967.               "tempest",
  1968.               "zemyna",
  1969.               "zorza"
  1970.             ].includes(this.world.toLowerCase())
  1971.             ? 1
  1972.             : "none" !== this.interface &&
  1973.               "syberia" === this.world.toLowerCase()
  1974.               ? 2
  1975.               : 3;
  1976.         }
  1977.       },
  1978.       {
  1979.         key: "battle",
  1980.         get: function get() {
  1981.           return "ni" === this.interface
  1982.             ? !!window.Engine.battle && !window.Engine.battle.endBattle
  1983.             : window.g.battle;
  1984.         }
  1985.       },
  1986.       {
  1987.         key: "dead",
  1988.         get: function get() {
  1989.           return "ni" === this.interface ? window.Engine.dead : window.g.dead;
  1990.         }
  1991.       },
  1992.       {
  1993.         key: "party",
  1994.         get: function get() {
  1995.           return "ni" === this.interface ? Engine.party : window.g.party;
  1996.         }
  1997.       },
  1998.       {
  1999.         key: "loots",
  2000.         get: function get() {
  2001.           return "ni" === this.interface
  2002.             ? window.Engine.loots !== void 0 &&
  2003.                 !!(0 < Object.keys(window.Engine.loots.items).length)
  2004.             : !1 !== window.g.loots;
  2005.         }
  2006.       },
  2007.       {
  2008.         key: "issetMyNpcOnMap",
  2009.         get: function get() {
  2010.           var _this15 = this;
  2011.  
  2012.           return Object.values(this.npcs).some(function(a) {
  2013.             return _this15.storage.name
  2014.               .toLowerCase()
  2015.               .includes(a.nick.toLowerCase());
  2016.           });
  2017.         }
  2018.       },
  2019.       {
  2020.         key: "items",
  2021.         get: function get() {
  2022.           return "ni" === this.interface
  2023.             ? window.Engine.items.fetchLocationItems("g")
  2024.             : Object.values(window.g.item);
  2025.         }
  2026.       },
  2027.       {
  2028.         key: "npcsOnNewInterface",
  2029.         get: function get() {
  2030.           var a = window.Engine.npcs.check(),
  2031.             b = {};
  2032.  
  2033.           var _arr17 = Object.entries(a);
  2034.  
  2035.           for (var _i18 = 0; _i18 < _arr17.length; _i18++) {
  2036.             var _arr17$_i = _slicedToArray(_arr17[_i18], 2),
  2037.               c = _arr17$_i[0],
  2038.               d = _arr17$_i[1];
  2039.  
  2040.             b[c] = d.d;
  2041.           }
  2042.  
  2043.           return b;
  2044.         }
  2045.       },
  2046.       {
  2047.         key: "othersOnNewInterface",
  2048.         get: function get() {
  2049.           var a = window.Engine.others.check(),
  2050.             b = {};
  2051.  
  2052.           var _arr18 = Object.entries(a);
  2053.  
  2054.           for (var _i19 = 0; _i19 < _arr18.length; _i19++) {
  2055.             var _arr18$_i = _slicedToArray(_arr18[_i19], 2),
  2056.               c = _arr18$_i[0],
  2057.               d = _arr18$_i[1];
  2058.  
  2059.             b[c] = d.d;
  2060.           }
  2061.  
  2062.           return b;
  2063.         }
  2064.       }
  2065.     ]);
  2066.  
  2067.     return _class;
  2068.   })())();
  2069. })();