Built motion from commit de2cb856.|2.0.39
[motion2.git] / server / services / agi / graph / index.js
1 var _0x708c=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6C\x6F\x64\x61\x73\x68","\x61\x67\x69","\x2E\x2E\x2F\x2E\x2E\x2F\x2E\x2E\x2F\x63\x6F\x6E\x66\x69\x67\x2F\x6C\x6F\x67\x67\x65\x72","\x6D\x65\x6E\x75","\x67\x65\x74\x64\x69\x67\x69\x74\x73","\x67\x65\x74\x73\x65\x63\x72\x65\x74\x64\x69\x67\x69\x74\x73","\x76\x65\x72\x74\x69\x63\x65\x73","\x65\x64\x67\x65\x73","\x6E\x75\x6D\x62\x65\x72\x4F\x66\x45\x64\x67\x65\x73","\x61\x64\x64\x56\x65\x72\x74\x65\x78","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x69\x64","\x61\x64\x64\x45\x64\x67\x65","\x70\x75\x73\x68","\x73\x69\x7A\x65","\x72\x65\x6C\x61\x74\x69\x6F\x6E\x73","\x67\x65\x74\x56\x65\x72\x74\x65\x78","\x74\x72\x61\x76\x65\x72\x73\x65\x42\x46\x53","\x6E\x6F\x20\x76\x65\x72\x74\x65\x78\x20\x66\x6F\x75\x6E\x64","\x69\x6E\x66\x6F","\x73\x74\x6F\x70\x20\x74\x72\x61\x76\x65\x72\x73\x65","\x6C\x65\x6E\x67\x74\x68","\x6E\x6F\x20\x65\x64\x67\x65\x2F\x73\x20\x61\x76\x61\x69\x6C\x61\x62\x6C\x65","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E","\x2C","\x73\x70\x6C\x69\x74","\x61\x67\x69\x63\x6F\x6D\x6D\x61\x6E\x64","\x76\x73\x77\x69\x74\x63\x68","\x2D","\x74\x61\x72\x67\x65\x74","\x64\x65\x66\x61\x75\x6C\x74","\x69","\x69\x6E\x76\x61\x6C\x69\x64","\x64\x65\x66\x61\x75\x6C\x74\x20\x6F\x6E\x20\x73\x77\x69\x74\x63\x68\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x69\x6E\x63\x6C\x75\x64\x65\x73","\x6D\x61\x78\x20\x72\x65\x74\x72\x79\x20\x72\x65\x61\x63\x68","\x74","\x63\x6F\x6E\x64\x69\x74\x69\x6F\x6E\x20\x6E\x6F\x74\x20\x66\x6F\x75\x6E\x64","\x65\x78\x70\x6F\x72\x74\x73"];_0x708c[0];var _=require(_0x708c[1]);var logger=require(_0x708c[3])(_0x708c[2]);var verticesWithRetry=[_0x708c[4],_0x708c[5],_0x708c[6]];var Graph=function(){this[_0x708c[7]]= {};this[_0x708c[8]]= {};this[_0x708c[9]]= 0};Graph[_0x708c[11]][_0x708c[10]]= function(_0x921dx5){this[_0x708c[7]][_0x921dx5[_0x708c[12]]]= _0x921dx5;this[_0x708c[8]][_0x921dx5[_0x708c[12]]]= []};Graph[_0x708c[11]][_0x708c[13]]= function(_0x921dx6,_0x921dx7,_0x921dx8){this[_0x708c[8]][_0x921dx6][_0x708c[14]]({target:_0x921dx7,condition:_0x921dx8});this[_0x708c[9]]+= 1};Graph[_0x708c[11]][_0x708c[15]]= function(){return _[_0x708c[15]](this[_0x708c[7]])};Graph[_0x708c[11]][_0x708c[16]]= function(){return this[_0x708c[9]]};Graph[_0x708c[11]][_0x708c[17]]= function(_0x921dx5){return this[_0x708c[7]][_0x921dx5]};Graph[_0x708c[11]][_0x708c[18]]= function(_0x921dx5,_0x921dx9){if(!this[_0x708c[7]][_0x921dx5]){return logger[_0x708c[20]](_0x708c[19])};var _0x921dxa=_0x921dx9(this[_0x708c[7]][_0x921dx5]);if(!_0x921dxa){return logger[_0x708c[20]](_0x708c[21])};if(this[_0x708c[8]][_0x921dx5][_0x708c[22]]=== 0){return logger[_0x708c[20]](_0x708c[23])};for(var _0x921dxb=0,_0x921dxc=[],_0x921dxd=false;_0x921dxb< this[_0x708c[8]][_0x921dx5][_0x708c[22]];_0x921dxb+= 1){if(this[_0x708c[8]][_0x921dx5][_0x921dxb][_0x708c[24]]){_0x921dxc= this[_0x708c[8]][_0x921dx5][_0x921dxb][_0x708c[24]][_0x708c[26]](_0x708c[25]);for(var _0x921dxe=0;_0x921dxe< _0x921dxc[_0x708c[22]];_0x921dxe+= 1){if(this[_0x708c[7]][_0x921dx5][_0x708c[27]]=== _0x708c[28]&& _0x921dxc[_0x921dxe]=== _0x708c[29]){_0x921dxd= this[_0x708c[8]][_0x921dx5][_0x921dxb][_0x708c[30]];logger[_0x708c[20]](_0x708c[31],_0x921dxc[_0x921dxe],this[_0x708c[8]][_0x921dx5][_0x921dxb][_0x708c[30]])}else {if(this[_0x708c[7]][_0x921dx5][_0x708c[27]]=== _0x708c[4]&& _0x921dxc[_0x921dxe]=== _0x708c[32]){_0x921dxd= this[_0x708c[8]][_0x921dx5][_0x921dxb][_0x708c[30]];logger[_0x708c[20]](_0x708c[33],_0x921dxc[_0x921dxe],this[_0x708c[8]][_0x921dx5][_0x921dxb][_0x708c[30]])}};if(_0x921dxc[_0x921dxe]=== _0x921dxa){return this[_0x708c[18]](this[_0x708c[8]][_0x921dx5][_0x921dxb][_0x708c[30]],_0x921dx9)}}}else {return this[_0x708c[18]](this[_0x708c[8]][_0x921dx5][_0x921dxb][_0x708c[30]],_0x921dx9)}};if(_0x921dxc[_0x708c[22]]){if(this[_0x708c[7]][_0x921dx5][_0x708c[27]]=== _0x708c[28]){if(_0x921dxd){return this[_0x708c[18]](_0x921dxd,_0x921dx9)};return logger[_0x708c[20]](_0x708c[34])}else {if(_[_0x708c[35]](verticesWithRetry,this[_0x708c[7]][_0x921dx5][_0x708c[27]])){if(_0x921dxa=== _0x708c[29]){return logger[_0x708c[20]](_0x708c[36])};if(_0x921dxd&& _0x921dxa!== _0x708c[37]){return this[_0x708c[18]](_0x921dxd,_0x921dx9)};return this[_0x708c[18]](_0x921dx5,_0x921dx9)}};return logger[_0x708c[20]](_0x708c[38])}};module[_0x708c[39]]= Graph