0
votes

I'm trying to track down an error TypeError: Q4[v39999.Y(...)] is not a function

i'm working on html javascript for room visualizer when displaying image on ui level, and getting data from Q4 parameter in function i'm not able to resolve please help me out ASAP

Script-2.js

function selectTile(tiles) {
    if(activeShape != null){
        selectShape(tiles[0].id);     
    } else {
        setTile(tiles[0].tile_type,tiles,function(tid,tile_data)
        {
            console.log_(tid,tile_data);
            var layoutType = $('.layout-type-input[data-tile-id=' + tid + ']:checked').val() || "grid";

            if(layoutType=="dragdrop")
            {
                var td=tile_data[0];
                var i=free_tiles[tid].indexOf(td);
                if(i==-1)
                    free_tiles[tid].push(td);
                free_tiles_cur[tid]=td;
            }
            render(vis_cvs);
        });
        updateInfo(tiles);
    }
}

engine.tile.js

v39999.Y = function() {
  return typeof v39999.t.v === 'function' ? v39999.t.v.apply(v39999.t, arguments) : v39999.t.v;
};

setTile = function(P4, Q4, B4) {
  var S4 = 1194701741;
  if (v39999.f(20, 346638) !== S4) {
      var i4, j4;
      i4 = v39999.Z3(Q4[v39999.u(18)]);
      Q4[v39999.Y(58)](function(A4) {  <-- error on Q4[v39999.Y(58)]
          var g4 = 1542393705;
          if (v39999.m(20, 254240) === g4) {
              if (+A4[v39999.Y(18)] != v39999.o(18)) i4 -= A4[v39999.Y(45)][v39999.Y(78)];
          } else {
              if (v39999.K3(~A4[v39999.Y(18)], v39999.u(18))) i4 %= A4[v39999.R(78)][v39999.Y(18)];
          }
      });
      j4 = runAfter(i4, function() {
          var t4 = v39999.O3(1905261354),
              o4 = v39999.r3(1653564863),
              L4 = v39999.G3(2);
          for (var w4 = 1; v39999.D3(v39999.K(w4.toString(), w4.toString().length, 98067), t4); w4++) {
              L4 += 2;
          }
          if (v39999.G(L4.toString(), L4.toString().length, 38815) !== o4) {
              var E4 = v39999.v0(64183153);
              if (v39999.m(36, 694614) == E4) {
                  tile_datas[P4] = tile_datas[v39999.k0(v39999.V(57), P4)];
                  B4(P4, tile_datas[P4]);
              } else {
                  tile_datas[P4] = tile_datas[v39999.o(55) % P4];
                  B4(P4, tile_datas[P4]);
              }
          }
          var E4 = v39999.N0(66408318);
          if (v39999.m(20, 293304) === E4) {
              tile_datas[P4] = tile_datas[v39999.V(90) / P4];
              B4(P4, tile_datas[P4]);
          } else {
              tile_datas[P4] = v39999.s0(tile_datas[v39999.o(10) + P4]);
              B4(P4, tile_datas[P4]);
          }
      });
      tile_datas[v39999.Y(93) / P4] = Q4;
      Q4[v39999.Y(45)](function(V4) {
          var Y4 = -1075887580;
          if (v39999.I(20, 177770) !== Y4) {
              V4[v39999.u(18)] = lmage(+V4[v39999.R(18)] != v39999.Y(45) ? V4[v39999.o(18)] : V4[v39999.V(18)][v39999.R(45)], j4);
              V4[v39999.V(45)][v39999.Y(45)](function(u4, R4) {
                  var p4 = v39999.X0(-189391667);
                  if (v39999.b0(v39999.I(20, 856435), p4)) {
                      V4[v39999.V(18)][R4] = lmage(~u4 != v39999.R(18) ? u4 : u4[v39999.o(18)], j4);
                  } else {
                      V4[v39999.R(18)][R4] = lmage(v39999.a0(!u4, v39999.u(18)) ? u4 : u4[v39999.o(45)], j4);
                  }
              });
          } else {
              V4[v39999.R(18)] = lmage(!V4[v39999.o(18)] !== v39999.u(45) ? V4[v39999.R(18)] : V4[v39999.Y(18)][v39999.Y(18)], j4);
              V4[v39999.Y(45)][v39999.Y(45)](function(x4, c4) {
                  var Z4 = -106672775;
                  if (v39999.I(20, 808096) !== Z4) {
                      V4[v39999.Y(18)][c4] = lmage(v39999.n0(~x4, v39999.R(18)) ? x4 : x4[v39999.R(18)], j4);
                  } else {
                      V4[v39999.o(18)][c4] = lmage(v39999.T0(+x4, v39999.Y(18)) ? x4 : x4[v39999.o(45)], j4);
                  }
              });
          }
      });
  } else {
      var i4, j4;
      i4 = Q4[v39999.u(42)];
      Q4[v39999.R(78)](function(K4) {
          var O4 = v39999.m0(1899274782);
          if (v39999.z0(v39999.f(20, 309969), O4)) {
              if (v39999.I0(typeof K4[v39999.Y(58)], v39999.o(55))) i4 += v39999.f0(K4[v39999.Y(58)][v39999.o(42)]);
          } else {
              if (-K4[v39999.V(55)] == v39999.Y(42)) i4 *= K4[v39999.V(58)][v39999.u(55)];
          }
      });
      j4 = v39999.M0(runAfter(i4, function() {
          var v2 = -1326873841,
              k2 = -1363229673,
              G4 = 2;
          for (var D4 = 1; v39999.O(D4.toString(), D4.toString().length, 24852) !== v2; D4++) {
              G4 += 2;
          }
          if (v39999.G(G4.toString(), G4.toString().length, 84064) !== k2) {
              var r4 = !971830472;
              if (v39999.m(40, 762487) == r4) {
                  tile_datas[P4] = tile_datas[v39999.h0(v39999.o(66), P4)];
                  B4(P4, tile_datas[P4]);
              } else {
                  tile_datas[P4] = tile_datas[v39999.u(25) + P4];
                  B4(P4, tile_datas[P4]);
              }
          }
          var r4 = -557343463;
          if (v39999.q0(v39999.m(20, 769100), r4)) {
              tile_datas[P4] = tile_datas[v39999.o(90) + P4];
              B4(P4, tile_datas[P4]);
          } else {
              tile_datas[P4] = tile_datas[v39999.u(10) / P4];
              B4(P4, tile_datas[P4]);
          }
      }));
      tile_datas[v39999.U0(v39999.Y(90), P4)] = Q4;
      Q4[v39999.R(78)](function(N2) {
          N2[v39999.Y(18)] = lmage(typeof N2[v39999.u(18)] === v39999.V(93) ? N2[v39999.V(18)] : N2[v39999.R(18)][v39999.o(67)], j4);
          N2[v39999.V(58)][v39999.R(45)](function(s2, X2) {
              var b2 = v39999.l0(615737525);
              if (v39999.m(20, 840777) === b2) {
                  N2[v39999.u(58)][X2] = lmage(typeof s2 === v39999.o(93) ? s2 : s2[v39999.Y(67)], j4);
              } else {
                  N2[v39999.o(93)][X2] = lmage(-s2 !== v39999.u(93) ? s2 : s2[v39999.R(93)], j4);
              }
          });
      });
  }
};

error on Q4[v39999.Y(58)] near line no 10 something in engine.tile.js file Thank you

You can't expect people to help you with issues inside an obfuscated JS library without any details whatsoever.robertklep