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